/**
* @package DPCalendar
* @copyright Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
var e="top",t="bottom",n="right",r="left",o="auto",i=[e,t,n,r],a="start",s="end",f="clippingParents",c="viewport",p="popper",u="reference",l=i.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),d=[].concat(i,[o]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),h="beforeRead",m="read",v="afterRead",g="beforeMain",y="main",b="afterMain",x="beforeWrite",w="write",O="afterWrite",j=[h,m,v,g,y,b,x,w,O];function E(e){return e?(e.nodeName||"").toLowerCase():null}function D(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A(e){return e instanceof D(e).Element||e instanceof Element}function k(e){return e instanceof D(e).HTMLElement||e instanceof HTMLElement}function L(e){return"undefined"!=typeof ShadowRoot&&(e instanceof D(e).ShadowRoot||e instanceof ShadowRoot)}var W={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];k(o)&&E(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});k(r)&&E(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function M(e){return e.split("-")[0]}var P=Math.max,B=Math.min,H=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(R())}function S(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&k(e)&&(o=e.offsetWidth>0&&H(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&H(r.height)/e.offsetHeight||1);var a=(A(e)?D(e):window).visualViewport,s=!T()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,p=r.width/o,u=r.height/i;return{width:p,height:u,top:c,right:f+p,bottom:c+u,left:f,x:f,y:c}}function q(e){var t=S(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&L(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function V(e){return D(e).getComputedStyle(e)}function N(e){return["table","td","th"].indexOf(E(e))>=0}function I(e){return((A(e)?e.ownerDocument:e.document)||window.document).documentElement}function F(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(L(e)?e.host:null)||I(e)}function z(e){return k(e)&&"fixed"!==V(e).position?e.offsetParent:null}function U(e){for(var t=D(e),n=z(e);n&&N(n)&&"static"===V(n).position;)n=z(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===V(n).position)?t:n||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&k(e)&&"fixed"===V(e).position)return null;var n=F(e);for(L(n)&&(n=n.host);k(n)&&["html","body"].indexOf(E(n))<0;){var r=V(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function _(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e,t,n){return P(e,B(t,n))}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var J={name:"arrow",enabled:!0,phase:"main",fn:function(o){var a,s=o.state,f=o.name,c=o.options,p=s.elements.arrow,u=s.modifiersData.popperOffsets,l=M(s.placement),d=_(l),h=[r,n].indexOf(l)>=0?"height":"width";if(p&&u){var m=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,i))}(c.padding,s),v=q(p),g="y"===d?e:r,y="y"===d?t:n,b=s.rects.reference[h]+s.rects.reference[d]-u[d]-s.rects.popper[h],x=u[d]-s.rects.reference[d],w=U(p),O=w?"y"===d?w.clientHeight||0:w.clientWidth||0:0,j=b/2-x/2,E=m[g],D=O-v[h]-m[y],A=O/2-v[h]/2+j,k=X(E,A,D),L=d;s.modifiersData[f]=((a={})[L]=k,a.centerOffset=k-A,a)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function K(e){return e.split("-")[1]}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(o){var i,a=o.popper,f=o.popperRect,c=o.placement,p=o.variation,u=o.offsets,l=o.position,d=o.gpuAcceleration,h=o.adaptive,m=o.roundOffsets,v=o.isFixed,g=u.x,y=void 0===g?0:g,b=u.y,x=void 0===b?0:b,w="function"==typeof m?m({x:y,y:x}):{x:y,y:x};y=w.x,x=w.y;var O=u.hasOwnProperty("x"),j=u.hasOwnProperty("y"),E=r,A=e,k=window;if(h){var L=U(a),W="clientHeight",M="clientWidth";if(L===D(a)&&"static"!==V(L=I(a)).position&&"absolute"===l&&(W="scrollHeight",M="scrollWidth"),c===e||(c===r||c===n)&&p===s)A=t,x-=(v&&L===k&&k.visualViewport?k.visualViewport.height:L[W])-f.height,x*=d?1:-1;if(c===r||(c===e||c===t)&&p===s)E=n,y-=(v&&L===k&&k.visualViewport?k.visualViewport.width:L[M])-f.width,y*=d?1:-1}var P,B=Object.assign({position:l},h&&Q),R=!0===m?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:H(n*o)/o||0,y:H(r*o)/o||0}}({x:y,y:x},D(a)):{x:y,y:x};return y=R.x,x=R.y,d?Object.assign({},B,((P={})[A]=j?"0":"",P[E]=O?"0":"",P.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",P)):Object.assign({},B,((i={})[A]=j?x+"px":"",i[E]=O?y+"px":"",i.transform="",i))}var $={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:M(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ee={passive:!0};var te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=D(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ee)})),s&&f.addEventListener("resize",n.update,ee),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ee)})),s&&f.removeEventListener("resize",n.update,ee)}},data:{}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var oe={start:"end",end:"start"};function ie(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function ae(e){var t=D(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function se(e){return S(I(e)).left+ae(e).scrollLeft}function fe(e){var t=V(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ce(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:k(e)&&fe(e)?e:ce(F(e))}function pe(e,t){var n;void 0===t&&(t=[]);var r=ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=D(r),a=o?[i].concat(i.visualViewport||[],fe(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(pe(F(a)))}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,n){return t===c?ue(function(e,t){var n=D(e),r=I(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var c=T();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+se(e),y:f}}(e,n)):A(t)?function(e,t){var n=S(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ue(function(e){var t,n=I(e),r=ae(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=P(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=P(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+se(e),f=-r.scrollTop;return"rtl"===V(o||n).direction&&(s+=P(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(I(e)))}function de(e,t,n,r){var o="clippingParents"===t?function(e){var t=pe(F(e)),n=["absolute","fixed"].indexOf(V(e).position)>=0&&k(e)?U(e):e;return A(n)?t.filter((function(e){return A(e)&&C(e,n)&&"body"!==E(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=le(e,n,r);return t.top=P(o.top,t.top),t.right=B(o.right,t.right),t.bottom=B(o.bottom,t.bottom),t.left=P(o.left,t.left),t}),le(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function he(o){var i,f=o.reference,c=o.element,p=o.placement,u=p?M(p):null,l=p?K(p):null,d=f.x+f.width/2-c.width/2,h=f.y+f.height/2-c.height/2;switch(u){case e:i={x:d,y:f.y-c.height};break;case t:i={x:d,y:f.y+f.height};break;case n:i={x:f.x+f.width,y:h};break;case r:i={x:f.x-c.width,y:h};break;default:i={x:f.x,y:f.y}}var m=u?_(u):null;if(null!=m){var v="y"===m?"height":"width";switch(l){case a:i[m]=i[m]-(f[v]/2-c[v]/2);break;case s:i[m]=i[m]+(f[v]/2-c[v]/2)}}return i}function me(r,o){void 0===o&&(o={});var a=o,s=a.placement,l=void 0===s?r.placement:s,d=a.strategy,h=void 0===d?r.strategy:d,m=a.boundary,v=void 0===m?f:m,g=a.rootBoundary,y=void 0===g?c:g,b=a.elementContext,x=void 0===b?p:b,w=a.altBoundary,O=void 0!==w&&w,j=a.padding,E=void 0===j?0:j,D=Y("number"!=typeof E?E:G(E,i)),k=x===p?u:p,L=r.rects.popper,W=r.elements[O?k:x],M=de(A(W)?W:W.contextElement||I(r.elements.popper),v,y,h),P=S(r.elements.reference),B=he({reference:P,element:L,strategy:"absolute",placement:l}),H=ue(Object.assign({},L,B)),R=x===p?H:P,T={top:M.top-R.top+D.top,bottom:R.bottom-M.bottom+D.bottom,left:M.left-R.left+D.left,right:R.right-M.right+D.right},q=r.modifiersData.offset;if(x===p&&q){var C=q[l];Object.keys(T).forEach((function(r){var o=[n,t].indexOf(r)>=0?1:-1,i=[e,t].indexOf(r)>=0?"y":"x";T[r]+=C[i]*o}))}return T}function ve(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?d:c,u=K(r),h=u?f?l:l.filter((function(e){return K(e)===u})):i,m=h.filter((function(e){return p.indexOf(e)>=0}));0===m.length&&(m=h);var v=m.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[M(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(i){var s=i.state,f=i.options,c=i.name;if(!s.modifiersData[c]._skip){for(var p=f.mainAxis,u=void 0===p||p,l=f.altAxis,d=void 0===l||l,h=f.fallbackPlacements,m=f.padding,v=f.boundary,g=f.rootBoundary,y=f.altBoundary,b=f.flipVariations,x=void 0===b||b,w=f.allowedAutoPlacements,O=s.options.placement,j=M(O),E=h||(j===O||!x?[re(O)]:function(e){if(M(e)===o)return[];var t=re(e);return[ie(e),t,ie(t)]}(O)),D=[O].concat(E).reduce((function(e,t){return e.concat(M(t)===o?ve(s,{placement:t,boundary:v,rootBoundary:g,padding:m,flipVariations:x,allowedAutoPlacements:w}):t)}),[]),A=s.rects.reference,k=s.rects.popper,L=new Map,W=!0,P=D[0],B=0;B<D.length;B++){var H=D[B],R=M(H),T=K(H)===a,S=[e,t].indexOf(R)>=0,q=S?"width":"height",C=me(s,{placement:H,boundary:v,rootBoundary:g,altBoundary:y,padding:m}),V=S?T?n:r:T?t:e;A[q]>k[q]&&(V=re(V));var N=re(V),I=[];if(u&&I.push(C[R]<=0),d&&I.push(C[V]<=0,C[N]<=0),I.every((function(e){return e}))){P=H,W=!1;break}L.set(H,I)}if(W)for(var F=function(e){var t=D.find((function(t){var n=L.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},z=x?3:1;z>0;z--){if("break"===F(z))break}s.placement!==P&&(s.modifiersData[c]._skip=!0,s.placement=P,s.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(o){return[e,n,t,r].some((function(e){return o[e]>=0}))}var xe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),f=ye(a,r),c=ye(s,o,i),p=be(f),u=be(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}};var we={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,a=t.name,s=i.offset,f=void 0===s?[0,0]:s,c=d.reduce((function(t,i){return t[i]=function(t,o,i){var a=M(t),s=[r,e].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:t})):i,c=f[0],p=f[1];return c=c||0,p=(p||0)*s,[r,n].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(i,o.rects,f),t}),{}),p=c[o.placement],u=p.x,l=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=u,o.modifiersData.popperOffsets.y+=l),o.modifiersData[a]=c}};var Oe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=he({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,s=o.options,f=o.name,c=s.mainAxis,p=void 0===c||c,u=s.altAxis,l=void 0!==u&&u,d=s.boundary,h=s.rootBoundary,m=s.altBoundary,v=s.padding,g=s.tether,y=void 0===g||g,b=s.tetherOffset,x=void 0===b?0:b,w=me(i,{boundary:d,rootBoundary:h,padding:v,altBoundary:m}),O=M(i.placement),j=K(i.placement),E=!j,D=_(O),A="x"===D?"y":"x",k=i.modifiersData.popperOffsets,L=i.rects.reference,W=i.rects.popper,H="function"==typeof x?x(Object.assign({},i.rects,{placement:i.placement})):x,R="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),T=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,S={x:0,y:0};if(k){if(p){var C,V="y"===D?e:r,N="y"===D?t:n,I="y"===D?"height":"width",F=k[D],z=F+w[V],Y=F-w[N],G=y?-W[I]/2:0,J=j===a?L[I]:W[I],Q=j===a?-W[I]:-L[I],Z=i.elements.arrow,$=y&&Z?q(Z):{width:0,height:0},ee=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[V],ne=ee[N],re=X(0,L[I],$[I]),oe=E?L[I]/2-G-re-te-R.mainAxis:J-re-te-R.mainAxis,ie=E?-L[I]/2+G+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=i.elements.arrow&&U(i.elements.arrow),se=ae?"y"===D?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(C=null==T?void 0:T[D])?C:0,ce=F+ie-fe,pe=X(y?B(z,F+oe-fe-se):z,F,y?P(Y,ce):Y);k[D]=pe,S[D]=pe-F}if(l){var ue,le="x"===D?e:r,de="x"===D?t:n,he=k[A],ve="y"===A?"height":"width",ge=he+w[le],ye=he-w[de],be=-1!==[e,r].indexOf(O),xe=null!=(ue=null==T?void 0:T[A])?ue:0,we=be?ge:he-L[ve]-W[ve]-xe+R.altAxis,Oe=be?he+L[ve]+W[ve]-xe-R.altAxis:ye,je=y&&be?function(e,t,n){var r=X(e,t,n);return r>n?n:r}(we,he,Oe):X(y?we:ge,he,y?Oe:ye);k[A]=je,S[A]=je-he}i.modifiersData[f]=S}},requiresIfExists:["offset"]};function Ee(e,t,n){void 0===n&&(n=!1);var r,o,i=k(t),a=k(t)&&function(e){var t=e.getBoundingClientRect(),n=H(t.width)/e.offsetWidth||1,r=H(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=I(t),f=S(e,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==E(t)||fe(s))&&(c=(r=t)!==D(r)&&k(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ae(r)),k(t)?((p=S(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=se(s))),{x:f.left+c.scrollLeft-p.x,y:f.top+c.scrollTop-p.y,width:f.width,height:f.height}}function De(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Ae={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Le(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Ae:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ae,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:A(e)?pe(e):e.contextElement?pe(e.contextElement):[],popper:pe(t)};var a,c,l=function(e){var t=De(e);return j.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=l.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:p,options:r}),a=function(){};f.push(i||a)}})),p.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ke(t,n)){s.rects={reference:Ee(t,U(n),"fixed"===s.options.strategy),popper:q(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,f=void 0===a?{}:a,u=o.name;"function"==typeof i&&(s=i({state:s,options:f,name:u,instance:p})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){u(),c=!0}};if(!ke(e,t))return p;function u(){f.forEach((function(e){return e()})),f=[]}return p.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var We=Le(),Me=Le({defaultModifiers:[te,Oe,$,W,we,ge,je,J,xe]});export{y as A,b as B,x as C,w as D,O as E,j as F,J as G,ge as H,xe as I,we as J,je as K,W as a,Oe as b,Me as c,$ as d,te as e,me as f,We as g,t as h,o as i,i as j,s as k,r as l,f as m,p as n,u as o,Le as p,l as q,n as r,a as s,e as t,d as u,c as v,h as w,m as x,v as y,g as z};