Build 589089stable
Module 888767
19,020 characters · in 29609.b896f2d9d6398168.jsDependencies
Source Raw
function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){var t=r(e).Element;return e instanceof t||e instanceof Element}function i(e){var t=r(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("u"<typeof ShadowRoot)return!1;var t=r(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}n.d(t,{n:()=>el});var u,s,l,c,f,d=Math.max,h=Math.min,p=Math.round;function m(){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 v(){return!/^((?!chrome|android).)*safari/i.test(m())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),u=1,s=1;t&&i(e)&&(u=e.offsetWidth>0&&p(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&p(a.height)/e.offsetHeight||1);var l=(o(e)?r(e):window).visualViewport,c=!v()&&n,f=(a.left+(c&&l?l.offsetLeft:0))/u,d=(a.top+(c&&l?l.offsetTop:0))/s,h=a.width/u,m=a.height/s;return{width:h,height:m,top:d,right:f+h,bottom:d+m,left:f,x:f,y:d}}function g(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return y(w(e)).left+g(e).scrollLeft}function D(e){return r(e).getComputedStyle(e)}function k(e){var t=D(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function E(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===b(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||w(e)}function C(e,t){void 0===t&&(t=[]);var n,o=function e(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:i(t)&&k(t)?t:e(x(t))}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),u=r(o),s=a?[u].concat(u.visualViewport||[],k(o)?o:[]):o,l=t.concat(s);return a?l:l.concat(C(x(s)))}function S(e){return i(e)&&"fixed"!==D(e).position?e.offsetParent:null}function A(e){for(var t=r(e),n=S(e);n&&["table","td","th"].indexOf(b(n))>=0&&"static"===D(n).position;)n=S(n);return n&&("html"===b(n)||"body"===b(n)&&"static"===D(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&i(e)&&"fixed"===D(e).position)return null;var n=x(e);for(a(n)&&(n=n.host);i(n)&&0>["html","body"].indexOf(b(n));){var r=D(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}var O="bottom",B="right",T="left",F="auto",P=["top",O,B,T],z="start",R="viewport",M="popper",N=P.reduce(function(e,t){return e.concat([t+"-"+z,t+"-end"])},[]),j=[].concat(P,[F]).reduce(function(e,t){return e.concat([t,t+"-"+z,t+"-end"])},[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],I={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var Y={passive:!0};function $(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function Z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function H(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?$(o):null,a=o?W(o):null,u=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case"top":t={x:u,y:n.y-r.height};break;case O:t={x:u,y:n.y+n.height};break;case B:t={x:n.x+n.width,y:s};break;case T:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var l=i?Z(i):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case z:t[l]=t[l]-(n[c]/2-r[c]/2);break;case"end":t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V(e){var t,n,o,i,a,u,s,l=e.popper,c=e.popperRect,f=e.placement,d=e.variation,h=e.offsets,m=e.position,v=e.gpuAcceleration,y=e.adaptive,g=e.roundOffsets,b=e.isFixed,_=h.x,k=void 0===_?0:_,E=h.y,x=void 0===E?0:E,C="function"==typeof g?g({x:k,y:x}):{x:k,y:x};k=C.x,x=C.y;var S=h.hasOwnProperty("x"),F=h.hasOwnProperty("y"),P=T,z="top",R=window;if(y){var M=A(l),N="clientHeight",j="clientWidth";M===r(l)&&"static"!==D(M=w(l)).position&&"absolute"===m&&(N="scrollHeight",j="scrollWidth"),("top"===f||(f===T||f===B)&&"end"===d)&&(z=O,x-=(b&&M===R&&R.visualViewport?R.visualViewport.height:M[N])-c.height,x*=v?1:-1),(f===T||("top"===f||f===O)&&"end"===d)&&(P=B,k-=(b&&M===R&&R.visualViewport?R.visualViewport.width:M[j])-c.width,k*=v?1:-1)}var L=Object.assign({position:m},y&&q),I=!0===g?(t={x:k,y:x},n=r(l),o=t.x,i=t.y,{x:p(o*(a=n.devicePixelRatio||1))/a||0,y:p(i*a)/a||0}):{x:k,y:x};return(k=I.x,x=I.y,v)?Object.assign({},L,((s={})[z]=F?"0":"",s[P]=S?"0":"",s.transform=1>=(R.devicePixelRatio||1)?"translate("+k+"px, "+x+"px)":"translate3d("+k+"px, "+x+"px, 0)",s)):Object.assign({},L,((u={})[z]=F?x+"px":"",u[P]=S?k+"px":"",u.transform="",u))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,function(e){return K[e]})}var X={start:"end",end:"start"};function G(e){return e.replace(/start|end/g,function(e){return X[e]})}function J(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function et(e,t,n){var i,a,u,s,l,c,f,h,p,m;return t===R?ee(function(e,t){var n=r(e),o=w(e),i=n.visualViewport,a=o.clientWidth,u=o.clientHeight,s=0,l=0;if(i){a=i.width,u=i.height;var c=v();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:u,x:s+_(e),y:l}}(e,n)):o(t)?((i=y(t,!1,"fixed"===n)).top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i):ee((a=w(e),s=w(a),l=g(a),c=null==(u=a.ownerDocument)?void 0:u.body,f=d(s.scrollWidth,s.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=d(s.scrollHeight,s.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-l.scrollLeft+_(a),m=-l.scrollTop,"rtl"===D(c||s).direction&&(p+=d(s.clientWidth,c?c.clientWidth:0)-f),{width:f,height:h,x:p,y:m}))}function en(){return{top:0,right:0,bottom:0,left:0}}function er(e){return Object.assign({},en(),e)}function eo(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ei(e,t){void 0===t&&(t={});var n,r,a,u,s,l,c,f,p=t,m=p.placement,v=void 0===m?e.placement:m,g=p.strategy,_=void 0===g?e.strategy:g,k=p.boundary,E=p.rootBoundary,S=p.elementContext,T=void 0===S?M:S,F=p.altBoundary,z=p.padding,N=void 0===z?0:z,j=er("number"!=typeof N?N:eo(N,P)),L=e.rects.popper,I=e.elements[void 0!==F&&F?T===M?"reference":M:T],U=(n=o(I)?I:I.contextElement||w(e.elements.popper),r=void 0===k?"clippingParents":k,a=void 0===E?R:E,c=(l=[].concat("clippingParents"===r?(u=C(x(n)),!o(s=["absolute","fixed"].indexOf(D(n).position)>=0&&i(n)?A(n):n)?[]:u.filter(function(e){return o(e)&&J(e,s)&&"body"!==b(e)})):[].concat(r),[a]))[0],(f=l.reduce(function(e,t){var r=et(n,t,_);return e.top=d(r.top,e.top),e.right=h(r.right,e.right),e.bottom=h(r.bottom,e.bottom),e.left=d(r.left,e.left),e},et(n,c,_))).width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f),Y=y(e.elements.reference),$=H({reference:Y,element:L,strategy:"absolute",placement:v}),W=ee(Object.assign({},L,$)),Z=T===M?W:Y,q={top:U.top-Z.top+j.top,bottom:Z.bottom-U.bottom+j.bottom,left:U.left-Z.left+j.left,right:Z.right-U.right+j.right},V=e.modifiersData.offset;if(T===M&&V){var K=V[v];Object.keys(q).forEach(function(e){var t=[B,O].indexOf(e)>=0?1:-1,n=["top",O].indexOf(e)>=0?"y":"x";q[e]+=K[n]*t})}return q}function ea(e,t,n){return d(e,h(t,n))}function eu(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 es(e){return["top",B,O,T].some(function(t){return e[t]>=0})}var el=(l=void 0===(s=(u={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,u=o.resize,s=void 0===u||u,l=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,Y)}),s&&l.addEventListener("resize",n.update,Y),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Y)}),s&&l.removeEventListener("resize",n.update,Y)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=n.adaptive,i=n.roundOffsets,a=void 0===i||i,u={placement:$(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,V(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,V(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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];i(o)&&b(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});i(r)&&b(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=j.reduce(function(e,n){var r,o,a,u,s,l;return e[n]=(r=t.rects,a=[T,"top"].indexOf(o=$(n))>=0?-1:1,s=(u="function"==typeof i?i(Object.assign({},r,{placement:n})):i)[0],l=u[1],s=s||0,l=(l||0)*a,[T,B].indexOf(o)>=0?{x:l,y:s}:{x:s,y:l}),e},{}),u=a[t.placement],s=u.x,l=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,s=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,v=t.options.placement,y=$(v)===v,g=s||(y||!p?[Q(v)]:function(e){if($(e)===F)return[];var t=Q(e);return[G(e),t,G(t)]}(v)),b=[v].concat(g).reduce(function(e,n){var r,o,i,a,u,s,d,h,v,y,g,b;return e.concat($(n)===F?(o=(r={placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}).placement,i=r.boundary,a=r.rootBoundary,u=r.padding,s=r.flipVariations,h=void 0===(d=r.allowedAutoPlacements)?j:d,0===(g=(y=(v=W(o))?s?N:N.filter(function(e){return W(e)===v}):P).filter(function(e){return h.indexOf(e)>=0})).length&&(g=y),Object.keys(b=g.reduce(function(e,n){return e[n]=ei(t,{placement:n,boundary:i,rootBoundary:a,padding:u})[$(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,_=t.rects.popper,D=new Map,k=!0,E=b[0],x=0;x<b.length;x++){var C=b[x],S=$(C),A=W(C)===z,R=["top",O].indexOf(S)>=0,M=R?"width":"height",L=ei(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),I=R?A?B:T:A?O:"top";w[M]>_[M]&&(I=Q(I));var U=Q(I),Y=[];if(i&&Y.push(L[S]<=0),u&&Y.push(L[I]<=0,L[U]<=0),Y.every(function(e){return e})){E=C,k=!1;break}D.set(C,Y)}if(k)for(var Z=p?3:1,H=function(e){var t=b.find(function(t){var n=D.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},q=Z;q>0&&"break"!==H(q);q--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=n.altAxis,a=n.boundary,u=n.rootBoundary,s=n.altBoundary,l=n.padding,c=n.tether,f=void 0===c||c,p=n.tetherOffset,m=void 0===p?0:p,v=ei(t,{boundary:a,rootBoundary:u,padding:l,altBoundary:s}),y=$(t.placement),g=W(t.placement),b=!g,w=Z(y),_="x"===w?"y":"x",D=t.modifiersData.popperOffsets,k=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(D){if(void 0===o||o){var R,M="y"===w?"top":T,N="y"===w?O:B,j="y"===w?"height":"width",L=D[w],I=L+v[M],U=L-v[N],Y=f?-x[j]/2:0,H=g===z?k[j]:x[j],q=g===z?-x[j]:-k[j],V=t.elements.arrow,K=f&&V?E(V):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:en(),X=Q[M],G=Q[N],J=ea(0,k[j],K[j]),ee=b?k[j]/2-Y-J-X-S.mainAxis:H-J-X-S.mainAxis,et=b?-k[j]/2+Y+J+G+S.mainAxis:q+J+G+S.mainAxis,er=t.elements.arrow&&A(t.elements.arrow),eo=er?"y"===w?er.clientTop||0:er.clientLeft||0:0,eu=null!=(R=null==F?void 0:F[w])?R:0,es=ea(f?h(I,L+ee-eu-eo):I,L,f?d(U,L+et-eu):U);D[w]=es,P[w]=es-L}if(void 0!==i&&i){var el,ec,ef="x"===w?"top":T,ed="x"===w?O:B,eh=D[_],ep="y"===_?"height":"width",em=eh+v[ef],ev=eh-v[ed],ey=-1!==["top",T].indexOf(y),eg=null!=(ec=null==F?void 0:F[_])?ec:0,eb=ey?em:eh-k[ep]-x[ep]-eg+S.altAxis,ew=ey?eh+k[ep]+x[ep]-eg-S.altAxis:ev,e_=f&&ey?(el=ea(eb,eh,ew))>ew?ew:el:ea(f?eb:em,eh,f?ew:ev);D[_]=e_,P[_]=e_-eh}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=$(n.placement),s=Z(u),l=[T,B].indexOf(u)>=0?"height":"width";if(i&&a){var c,f=(c=o.padding,er("number"!=typeof(c="function"==typeof c?c(Object.assign({},n.rects,{placement:n.placement})):c)?c:eo(c,P))),d=E(i),h="y"===s?"top":T,p="y"===s?O:B,m=n.rects.reference[l]+n.rects.reference[s]-a[s]-n.rects.popper[l],v=a[s]-n.rects.reference[s],y=A(i),g=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,b=f[h],w=g-d[l]-f[p],_=g/2-d[l]/2+(m/2-v/2),D=ea(b,_,w);n.modifiersData[r]=((t={})[s]=D,t.centerOffset=D-_,t)}},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)))&&J(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{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=ei(t,{elementContext:"reference"}),u=ei(t,{altBoundary:!0}),s=eu(a,r),l=eu(u,o,i),c=es(s),f=es(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:s,f=void 0===(c=u.defaultOptions)?I:c,function(e,t,n){void 0===n&&(n=f);var a,u,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},I,f),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],d=!1,h={state:s,setOptions:function(n){var r,i,a,u,d,p,v="function"==typeof n?n(s.options):n;m(),s.options=Object.assign({},f,s.options,v),s.scrollParents={reference:o(e)?C(e):e.contextElement?C(e.contextElement):[],popper:C(t)};var y=(i=Object.keys(r=[].concat(l,s.options.modifiers).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},{})).map(function(e){return r[e]}),a=new Map,u=new Set,d=[],i.forEach(function(e){a.set(e.name,e)}),i.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var n=a.get(t);n&&e(n)}}),d.push(t)}(e)}),p=d,L.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return s.orderedModifiers=y.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:s,name:t,instance:h,options:void 0===n?{}:n});c.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!d){var e=s.elements,t=e.reference,n=e.popper;if(U(t,n)){s.rects={reference:(o=A(n),a="fixed"===s.options.strategy,u=i(o),m=i(o)&&(c=p((l=o.getBoundingClientRect()).width)/o.offsetWidth||1,f=p(l.height)/o.offsetHeight||1,1!==c||1!==f),v=w(o),D=y(t,m,a),x={scrollLeft:0,scrollTop:0},C={x:0,y:0},(u||!u&&!a)&&(("body"!==b(o)||k(v))&&(x=function(e){return e!==r(e)&&i(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:g(e)}(o)),i(o)?(C=y(o,!0),C.x+=o.clientLeft,C.y+=o.clientTop):v&&(C.x=_(v))),{x:D.left+x.scrollLeft-C.x,y:D.top+x.scrollTop-C.y,width:D.width,height:D.height}),popper:E(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 o,a,u,l,c,f,m,v,D,x,C,S=0;S<s.orderedModifiers.length;S++){if(!0===s.reset){s.reset=!1,S=-1;continue}var O=s.orderedModifiers[S],B=O.fn,T=O.options,F=void 0===T?{}:T,P=O.name;"function"==typeof B&&(s=B({state:s,options:F,name:P,instance:h})||s)}}}},update:(a=function(){return new Promise(function(e){h.forceUpdate(),e(s)})},function(){return u||(u=new Promise(function(e){Promise.resolve().then(function(){u=void 0,e(a())})})),u}),destroy:function(){m(),d=!0}};if(!U(e,t))return h;function m(){c.forEach(function(e){return e()}),c=[]}return h.setOptions(n).then(function(e){!d&&n.onFirstUpdate&&n.onFirstUpdate(e)}),h})}