(function(n,t){function o(n,t){return typeof n===t}function v(){var r,n,u,e,s,h,t;for(var c in f)if(f.hasOwnProperty(c)){if(r=[],n=f[c],n.name&&(r.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u0?v(f.width)/n.offsetWidth||1:1,s=n.offsetHeight>0?v(f.height)/n.offsetHeight||1:1);var w=l(n)?r(n):window,e=w.visualViewport,a=!ni()&&i,h=(f.left+(a&&e?e.offsetLeft:0))/o,c=(f.top+(a&&e?e.offsetTop:0))/s,y=f.width/o,p=f.height/s;return{width:y,height:p,top:c,right:h+y,bottom:c+p,left:h,x:h,y:c}}function ht(n){var t=r(n),i=t.pageXOffset,u=t.pageYOffset;return{scrollLeft:i,scrollTop:u}}function rr(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function ur(n){return n!==r(n)&&u(n)?rr(n):ht(n)}function o(n){return n?(n.nodeName||"").toLowerCase():null}function c(n){return((l(n)?n.ownerDocument:n.document)||window.document).documentElement}function ct(n){return y(c(n)).left+ht(n).scrollLeft}function h(n){return r(n).getComputedStyle(n)}function lt(n){var t=h(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+r)}function fr(n){var t=n.getBoundingClientRect(),i=v(t.width)/n.offsetWidth||1,r=v(t.height)/n.offsetHeight||1;return i!==1||r!==1}function er(n,t,i){i===void 0&&(i=!1);var h=u(t),l=u(t)&&fr(t),e=c(t),f=y(n,l,i),s={scrollLeft:0,scrollTop:0},r={x:0,y:0};return!h&&(h||i)||((o(t)!=="body"||lt(e))&&(s=ur(t)),u(t)?(r=y(t,!0),r.x+=t.clientLeft,r.y+=t.clientTop):e&&(r.x=ct(e))),{x:f.left+s.scrollLeft-r.x,y:f.top+s.scrollTop-r.y,width:f.width,height:f.height}}function at(n){var t=y(n),i=n.offsetWidth,r=n.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:r}}function ut(n){return o(n)==="html"?n:n.assignedSlot||n.parentNode||(ot(n)?n.host:null)||c(n)}function ti(n){return["html","body","#document"].indexOf(o(n))>=0?n.ownerDocument.body:u(n)&<(n)?n:ti(ut(n))}function k(n,t){var u;t===void 0&&(t=[]);var i=ti(n),f=i===((u=n.ownerDocument)==null?void 0:u.body),e=r(i),o=f?[e].concat(e.visualViewport||[],lt(i)?i:[]):i,s=t.concat(o);return f?s:s.concat(k(ut(o)))}function or(n){return["table","td","th"].indexOf(o(n))>=0}function ii(n){return!u(n)||h(n).position==="fixed"?null:n.offsetParent}function sr(n){var r=/firefox/i.test(st()),e=/Trident/i.test(st()),f,t,i;if(e&&u(n)&&(f=h(n),f.position==="fixed"))return null;for(t=ut(n),ot(t)&&(t=t.host);u(t)&&["html","body"].indexOf(o(t))<0;){if(i=h(t),i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||r&&i.willChange==="filter"||r&&i.filter&&i.filter!=="none")return t;t=t.parentNode}return null}function d(n){for(var i=r(n),t=ii(n);t&&or(t)&&h(t).position==="static";)t=ii(t);return t&&(o(t)==="html"||o(t)==="body"&&h(t).position==="static")?i:t||sr(n)||i}function ar(n){function u(n){t.add(n.name);var f=[].concat(n.requires||[],n.requiresIfExists||[]);f.forEach(function(n){if(!t.has(n)){var r=i.get(n);r&&u(r)}});r.push(n)}var i=new Map,t=new Set,r=[];return n.forEach(function(n){i.set(n.name,n)}),n.forEach(function(n){t.has(n.name)||u(n)}),r}function vr(n){var t=ar(n);return lr.reduce(function(n,i){return n.concat(t.filter(function(n){return n.phase===i}))},[])}function yr(n){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=undefined;i(n())})})),t}}function pr(n){var t=n.reduce(function(n,t){var i=n[t.name];return n[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,n},{});return Object.keys(t).map(function(n){return t[n]})}function wr(n,t){var l=r(n),f=c(n),i=l.visualViewport,e=f.clientWidth,o=f.clientHeight,s=0,h=0,u;return i&&(e=i.width,o=i.height,u=ni(),(u||!u&&t==="fixed")&&(s=i.offsetLeft,h=i.offsetTop)),{width:e,height:o,x:s+ct(n),y:h}}function br(n){var r,i=c(n),u=ht(n),t=(r=n.ownerDocument)==null?void 0:r.body,f=a(i.scrollWidth,i.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),o=a(i.scrollHeight,i.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),e=-u.scrollLeft+ct(n),s=-u.scrollTop;return h(t||i).direction==="rtl"&&(e+=a(i.clientWidth,t?t.clientWidth:0)-f),{width:f,height:o,x:e,y:s}}function ei(n,t){var r=t.getRootNode&&t.getRootNode(),i;if(n.contains(t))return!0;if(r&&ot(r)){i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function yt(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function kr(n,t){var i=y(n,!1,t==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function oi(n,t,i){return t===ri?yt(wr(n,i)):l(t)?kr(t,i):yt(br(c(n)))}function dr(n){var i=k(ut(n)),r=["absolute","fixed"].indexOf(h(n).position)>=0,t=r&&u(n)?d(n):n;return l(t)?i.filter(function(n){return l(n)&&ei(n,t)&&o(n)!=="body"}):[]}function gr(n,t,i,r){var e=t==="clippingParents"?dr(n):[].concat(t),f=[].concat(e,[i]),o=f[0],u=f.reduce(function(t,i){var u=oi(n,i,r);return t.top=a(u.top,t.top),t.right=rt(u.right,t.right),t.bottom=rt(u.bottom,t.bottom),t.left=a(u.left,t.left),t},oi(n,o,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function s(n){return n.split("-")[0]}function w(n){return n.split("-")[1]}function pt(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function si(n){var r=n.reference,h=n.element,l=n.placement,a=l?s(l):null,b=l?w(l):null,v=r.x+r.width/2-h.width/2,y=r.y+r.height/2-h.height/2,u,o,c;switch(a){case t:u={x:v,y:r.y-h.height};break;case f:u={x:v,y:r.y+r.height};break;case e:u={x:r.x+r.width,y:y};break;case i:u={x:r.x-h.width,y:y};break;default:u={x:r.x,y:r.y}}if(o=a?pt(a):null,o!=null){c=o==="y"?"height":"width";switch(b){case p:u[o]=u[o]-(r[c]/2-h[c]/2);break;case nt:u[o]=u[o]+(r[c]/2-h[c]/2)}}return u}function hi(){return{top:0,right:0,bottom:0,left:0}}function ci(n){return Object.assign({},hi(),n)}function li(n,t){return t.reduce(function(t,i){return t[i]=n,t},{})}function b(n,i){var st;i===void 0&&(i={});var r=i,w=r.placement,b=w===void 0?n.placement:w,k=r.strategy,ht=k===void 0?n.strategy:k,d=r.boundary,ct=d===void 0?hr:d,nt=r.rootBoundary,lt=nt===void 0?ri:nt,it=r.elementContext,u=it===void 0?tt:it,rt=r.altBoundary,at=rt===void 0?!1:rt,ut=r.padding,a=ut===void 0?0:ut,o=ci(typeof a!="number"?a:li(a,g)),vt=u===tt?cr:tt,ft=n.rects.popper,v=n.elements[at?vt:u],s=gr(l(v)?v:v.contextElement||c(n.elements.popper),ct,lt,ht),et=y(n.elements.reference),pt=si({reference:et,element:ft,strategy:"absolute",placement:b}),wt=yt(Object.assign({},ft,pt)),h=u===tt?wt:et,p={top:s.top-h.top+o.top,bottom:h.bottom-s.bottom+o.bottom,left:s.left-h.left+o.left,right:h.right-s.right+o.right},ot=n.modifiersData.offset;return u===tt&&ot&&(st=ot[b],Object.keys(p).forEach(function(n){var i=[e,f].indexOf(n)>=0?1:-1,r=[t,f].indexOf(n)>=0?"y":"x";p[n]+=st[r]*i})),p}function vi(){for(var t=arguments.length,i=new Array(t),n=0;n=0?-1:1,c=typeof u=="function"?u(Object.assign({},r,{placement:n})):u,f=c[0],o=c[1];return f=f||0,o=(o||0)*l,[i,e].indexOf(h)>=0?{x:o,y:f}:{x:f,y:o}}function su(n){var t=n.state,f=n.options,e=n.name,i=f.offset,o=i===void 0?[0,0]:i,r=fi.reduce(function(n,i){return n[i]=ou(i,t.rects,o),n},{}),u=r[t.placement],s=u.x,h=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=h);t.modifiersData[e]=r}function et(n){return n.replace(/left|right|bottom|top/g,function(n){return hu[n]})}function wi(n){return n.replace(/start|end/g,function(n){return cu[n]})}function lu(n,t){var r;t===void 0&&(t={});var i=t,h=i.placement,c=i.boundary,l=i.rootBoundary,a=i.padding,v=i.flipVariations,f=i.allowedAutoPlacements,y=f===void 0?fi:f,e=w(h),o=e?v?ui:ui.filter(function(n){return w(n)===e}):g,u=o.filter(function(n){return y.indexOf(n)>=0});return u.length===0&&(u=o),r=u.reduce(function(t,i){return t[i]=b(n,{placement:i,boundary:c,rootBoundary:l,padding:a})[s(i)],t},{}),Object.keys(r).sort(function(n,t){return r[n]-r[t]})}function au(n){if(s(n)===vt)return[];var t=et(n);return[wi(n),t,wi(t)]}function vu(n){var r=n.state,u=n.options,nt=n.name,v,pt,c,wt,bt,k,kt;if(!r.modifiersData[nt]._skip){var tt=u.mainAxis,dt=tt===void 0?!0:tt,it=u.altAxis,gt=it===void 0?!0:it,ni=u.fallbackPlacements,rt=u.padding,ut=u.boundary,ft=u.rootBoundary,ti=u.altBoundary,ot=u.flipVariations,d=ot===void 0?!0:ot,ii=u.allowedAutoPlacements,o=r.options.placement,ri=s(o),ui=ri===o,fi=ni||(ui||!d?[et(o)]:au(o)),l=[o].concat(fi).reduce(function(n,t){return n.concat(s(t)===vt?lu(r,{placement:t,boundary:ut,rootBoundary:ft,padding:rt,flipVariations:d,allowedAutoPlacements:ii}):t)},[]),ei=r.rects.reference,oi=r.rects.popper,st=new Map,ht=!0,a=l[0];for(v=0;v=0,yt=at?"width":"height",g=b(r,{placement:h,boundary:ut,rootBoundary:ft,altBoundary:ti,padding:rt}),y=at?lt?e:i:lt?f:t;if(ei[yt]>oi[yt]&&(y=et(y)),pt=et(y),c=[],dt&&c.push(g[ct]<=0),gt&&c.push(g[y]<=0,g[pt]<=0),c.every(function(n){return n})){a=h;ht=!1;break}st.set(h,c)}if(ht)for(wt=d?3:1,bt=function(n){var t=l.find(function(t){var i=st.get(t);if(i)return i.slice(0,n).every(function(n){return n})});if(t)return a=t,"break"},k=wt;k>0;k--)if(kt=bt(k),kt==="break")break;r.placement!==a&&(r.modifiersData[nt]._skip=!0,r.placement=a,r.reset=!0)}}function yu(n){return n==="x"?"y":"x"}function it(n,t,i){return a(n,rt(t,i))}function pu(n,t,i){var r=it(n,t,i);return r>i?i:r}function wu(n){var r=n.state,h=n.options,nr=n.name,wt=h.mainAxis,tr=wt===void 0?!0:wt,bt=h.altAxis,ir=bt===void 0?!1:bt,rr=h.boundary,ur=h.rootBoundary,fr=h.altBoundary,er=h.padding,kt=h.tether,c=kt===void 0?!0:kt,dt=h.tetherOffset,ht=dt===void 0?0:dt,ut=b(r,{boundary:rr,rootBoundary:ur,padding:er,altBoundary:fr}),gt=s(r.placement),ct=w(r.placement),ni=!ct,u=pt(gt),g=yu(u),nt=r.modifiersData.popperOffsets,l=r.rects.reference,tt=r.rects.popper,ft=typeof ht=="function"?ht(Object.assign({},r.rects,{placement:r.placement})):ht,y=typeof ft=="number"?{mainAxis:ft,altAxis:ft}:Object.assign({mainAxis:0,altAxis:0},ft),et=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,lt={x:0,y:0};if(nt){if(tr){var ti,ii=u==="y"?t:i,ri=u==="y"?f:e,o=u==="y"?"height":"width",k=nt[u],ui=k+ut[ii],fi=k-ut[ri],ei=c?-tt[o]/2:0,or=ct===p?l[o]:tt[o],sr=ct===p?-tt[o]:-l[o],oi=r.elements.arrow,hr=c&&oi?at(oi):{width:0,height:0},si=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:hi(),ci=si[ii],li=si[ri],ot=it(0,l[o],hr[o]),cr=ni?l[o]/2-ei-ot-ci-y.mainAxis:or-ot-ci-y.mainAxis,lr=ni?-l[o]/2+ei+ot+li+y.mainAxis:sr+ot+li+y.mainAxis,vt=r.elements.arrow&&d(r.elements.arrow),ar=vt?u==="y"?vt.clientTop||0:vt.clientLeft||0:0,ai=(ti=et==null?void 0:et[u])!=null?ti:0,vr=k+cr-ai-ar,yr=k+lr-ai,vi=it(c?rt(ui,vr):ui,k,c?a(fi,yr):fi);nt[u]=vi;lt[u]=vi-k}if(ir){var yi,pr=u==="x"?t:i,wr=u==="x"?f:e,v=nt[g],st=g==="y"?"height":"width",pi=v+ut[pr],wi=v-ut[wr],yt=[t,i].indexOf(gt)!==-1,bi=(yi=et==null?void 0:et[g])!=null?yi:0,ki=yt?pi:v-l[st]-tt[st]-bi+y.altAxis,di=yt?v+l[st]+tt[st]-bi-y.altAxis:wi,gi=c&&yt?pu(ki,v,di):it(c?ki:pi,v,c?di:wi);nt[g]=gi;lt[g]=gi-v}r.modifiersData[nr]=lt}}function ku(n){var o,r=n.state,g=n.name,nt=n.options,c=r.elements.arrow,l=r.modifiersData.popperOffsets,v=s(r.placement),u=pt(v),tt=[i,e].indexOf(v)>=0,h=tt?"height":"width";if(c&&l){var y=bu(nt.padding,r),p=at(c),rt=u==="y"?t:i,ut=u==="y"?f:e,ft=r.rects.reference[h]+r.rects.reference[u]-l[u]-r.rects.popper[h],et=l[u]-r.rects.reference[u],a=d(c),w=a?u==="y"?a.clientHeight||0:a.clientWidth||0:0,ot=ft/2-et/2,st=y[rt],ht=w-p[h]-y[ut],b=w/2-p[h]/2+ot,k=it(st,b,ht),ct=u;r.modifiersData[g]=(o={},o[ct]=k,o.centerOffset=k-b,o)}}function du(n){var i=n.state,u=n.options,r=u.element,t=r===void 0?"[data-popper-arrow]":r;t!=null&&(typeof t!="string"||(t=i.elements.popper.querySelector(t),t))&&ei(i.elements.popper,t)&&(i.elements.arrow=t)}function gi(n,t,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-t.height-i.y,right:n.right-t.width+i.x,bottom:n.bottom-t.height+i.y,left:n.left-t.width-i.x}}function nr(n){return[t,e,f,i].some(function(t){return n[t]>=0})}function gu(n){var t=n.state,e=n.name,o=t.rects.reference,s=t.rects.popper,h=t.modifiersData.preventOverflow,c=b(t,{elementContext:"reference"}),l=b(t,{altBoundary:!0}),i=gi(c,o),r=gi(l,s,h),u=nr(i),f=nr(r);t.modifiersData[e]={referenceClippingOffsets:i,popperEscapeOffsets:r,isReferenceHidden:u,hasPopperEscaped:f};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var a=Math.max,rt=Math.min,v=Math.round,t="top",f="bottom",e="right",i="left",vt="auto",g=[t,f,e,i],p="start",nt="end",hr="clippingParents",ri="viewport",tt="popper",cr="reference",ui=g.reduce(function(n,t){return n.concat([t+"-"+p,t+"-"+nt])},[]),fi=[].concat(g,[vt]).reduce(function(n,t){return n.concat([t,t+"-"+p,t+"-"+nt])},[]),lr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],ai={placement:"bottom",modifiers:[],strategy:"absolute"},ft={passive:!0},bt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nu,data:{}},kt={name:"popperOffsets",enabled:!0,phase:"read",fn:tu,data:{}},iu={top:"auto",right:"auto",bottom:"auto",left:"auto"},dt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uu,data:{}},gt={name:"applyStyles",enabled:!0,phase:"write",fn:fu,effect:eu,requires:["computeStyles"]},pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:su},hu={left:"right",right:"left",bottom:"top",top:"bottom"},cu={start:"end",end:"start"},bi={name:"flip",enabled:!0,phase:"main",fn:vu,requiresIfExists:["offset"],data:{_skip:!1}},ki={name:"preventOverflow",enabled:!0,phase:"main",fn:wu,requiresIfExists:["offset"]},bu=function(n,t){return n=typeof n=="function"?n(Object.assign({},t.rects,{placement:t.placement})):n,ci(typeof n!="number"?n:li(n,g))},di={name:"arrow",enabled:!0,phase:"main",fn:ku,effect:du,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},tr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gu},nf=[bt,kt,dt,gt],tf=wt({defaultModifiers:nf}),ir=[bt,kt,dt,gt,pi,bi,ki,di,tr],rf=wt({defaultModifiers:ir});n.applyStyles=gt;n.arrow=di;n.computeStyles=dt;n.createPopper=rf;n.createPopperLite=tf;n.defaultModifiers=ir;n.detectOverflow=b;n.eventListeners=bt;n.flip=bi;n.hide=tr;n.offset=pi;n.popperGenerator=wt;n.popperOffsets=kt;n.preventOverflow=ki;Object.defineProperty(n,"__esModule",{value:!0})})