Repository URL to install this package:
|
Version:
358.2.1 ▾
|
"use strict";(()=>{var on=Object.defineProperty;var Q=(e,t)=>{for(var r in t)on(e,r,{get:t[r],enumerable:!0})};var Dt={};Q(Dt,{add:()=>an,remove:()=>sn,toggle:()=>pn});function an(e,t){e.classList.add(t)}function sn(e,t){e.classList.remove(t)}function pn(e,t){e.classList.toggle(t)}var Rt={};Q(Rt,{scrollToBottom:()=>fn,scrollToElement:()=>cn,scrollToTop:()=>un});function fn(e){e.scrollTop=e.scrollHeight}function un(e){e.scrollTop=0}function cn(e){e.scrollIntoView()}var Bt={};Q(Bt,{createURL:()=>ln,disposeURL:()=>dn});async function ln(e){let t=await e.arrayBuffer(),r=new Blob([t]);return URL.createObjectURL(r)}function dn(e){URL.revokeObjectURL(e)}var er={};Q(er,{attach:()=>bo,destroy:()=>wo});var B="top",I="bottom",j="right",N="left",bt="auto",we=[B,I,j,N],ve="start",Pe="end",cr="clippingParents",wt="viewport",We="popper",lr="reference",Nt=we.reduce(function(e,t){return e.concat([t+"-"+ve,t+"-"+Pe])},[]),xt=[].concat(we,[bt]).reduce(function(e,t){return e.concat([t,t+"-"+ve,t+"-"+Pe])},[]),mn="beforeRead",vn="read",gn="afterRead",hn="beforeMain",yn="main",bn="afterMain",wn="beforeWrite",xn="write",On="afterWrite",dr=[mn,vn,gn,hn,yn,bn,wn,xn,On];function U(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=L(e).Element;return e instanceof t||e instanceof Element}function W(e){var t=L(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ue(e){if(typeof ShadowRoot>"u")return!1;var t=L(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function En(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!W(a)||!U(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(p){var u=i[p];u===!1?a.removeAttribute(p):a.setAttribute(p,u===!0?"":u)}))})}function Tn(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},p=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=p.reduce(function(f,l){return f[l]="",f},{});!W(i)||!U(i)||(Object.assign(i.style,u),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}var Je={name:"applyStyles",enabled:!0,phase:"write",fn:En,effect:Tn,requires:["computeStyles"]};function _(e){return e.split("-")[0]}var ne=Math.max,Ae=Math.min,ge=Math.round;function _e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Qe(){return!/^((?!chrome|android).)*safari/i.test(_e())}function ee(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&W(e)&&(i=e.offsetWidth>0&&ge(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ge(n.height)/e.offsetHeight||1);var p=Z(e)?L(e):window,u=p.visualViewport,f=!Qe()&&r,l=(n.left+(f&&u?u.offsetLeft:0))/i,c=(n.top+(f&&u?u.offsetTop:0))/a,b=n.width/i,w=n.height/a;return{width:b,height:w,top:c,right:l+b,bottom:c+w,left:l,x:l,y:c}}function Le(e){var t=ee(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ze(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ue(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(e){return L(e).getComputedStyle(e)}function kt(e){return["table","td","th"].indexOf(U(e))>=0}function $(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function he(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(Ue(e)?e.host:null)||$(e)}function mr(e){return!W(e)||z(e).position==="fixed"?null:e.offsetParent}function Cn(e){var t=/firefox/i.test(_e()),r=/Trident/i.test(_e());if(r&&W(e)){var n=z(e);if(n.position==="fixed")return null}var i=he(e);for(Ue(i)&&(i=i.host);W(i)&&["html","body"].indexOf(U(i))<0;){var a=z(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function oe(e){for(var t=L(e),r=mr(e);r&&kt(r)&&z(r).position==="static";)r=mr(r);return r&&(U(r)==="html"||U(r)==="body"&&z(r).position==="static")?t:r||Cn(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Se(e,t,r){return ne(e,Ae(t,r))}function vr(e,t,r){var n=Se(e,t,r);return n>r?r:n}function et(){return{top:0,right:0,bottom:0,left:0}}function tt(e){return Object.assign({},et(),e)}function rt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Pn=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,tt(typeof t!="number"?t:rt(t,we))};function An(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,p=r.modifiersData.popperOffsets,u=_(r.placement),f=Me(u),l=[N,j].indexOf(u)>=0,c=l?"height":"width";if(!(!a||!p)){var b=Pn(i.padding,r),w=Le(a),g=f==="y"?B:N,x=f==="y"?I:j,h=r.rects.reference[c]+r.rects.reference[f]-p[f]-r.rects.popper[c],y=p[f]-r.rects.reference[f],T=oe(a),P=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,M=h/2-y/2,o=b[g],E=P-w[c]-b[x],m=P/2-w[c]/2+M,A=Se(o,m,E),V=f;r.modifiersData[n]=(t={},t[V]=A,t.centerOffset=A-m,t)}}function Ln(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Ze(t.elements.popper,i)&&(t.elements.arrow=i))}var gr={name:"arrow",enabled:!0,phase:"main",fn:An,effect:Ln,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(e){return e.split("-")[1]}var Mn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sn(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:ge(r*i)/i||0,y:ge(n*i)/i||0}}function hr(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,p=e.offsets,u=e.position,f=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,b=e.isFixed,w=p.x,g=w===void 0?0:w,x=p.y,h=x===void 0?0:x,y=typeof c=="function"?c({x:g,y:h}):{x:g,y:h};g=y.x,h=y.y;var T=p.hasOwnProperty("x"),P=p.hasOwnProperty("y"),M=N,o=B,E=window;if(l){var m=oe(r),A="clientHeight",V="clientWidth";if(m===L(r)&&(m=$(r),z(m).position!=="static"&&u==="absolute"&&(A="scrollHeight",V="scrollWidth")),m=m,i===B||(i===N||i===j)&&a===Pe){o=I;var k=b&&m===E&&E.visualViewport?E.visualViewport.height:m[A];h-=k-n.height,h*=f?1:-1}if(i===N||(i===B||i===I)&&a===Pe){M=j;var D=b&&m===E&&E.visualViewport?E.visualViewport.width:m[V];g-=D-n.width,g*=f?1:-1}}var H=Object.assign({position:u},l&&Mn),R=c===!0?Sn({x:g,y:h},L(r)):{x:g,y:h};if(g=R.x,h=R.y,f){var S;return Object.assign({},H,(S={},S[o]=P?"0":"",S[M]=T?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",S))}return Object.assign({},H,(t={},t[o]=P?h+"px":"",t[M]=T?g+"px":"",t.transform="",t))}function Dn(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,p=a===void 0?!0:a,u=r.roundOffsets,f=u===void 0?!0:u,l={placement:_(t.placement),variation:te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hr(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:p,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hr(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var yr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dn,data:{}};var Ot={passive:!0};function Rn(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,p=n.resize,u=p===void 0?!0:p,f=L(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",r.update,Ot)}),u&&f.addEventListener("resize",r.update,Ot),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",r.update,Ot)}),u&&f.removeEventListener("resize",r.update,Ot)}}var br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rn,data:{}};var Bn={left:"right",right:"left",bottom:"top",top:"bottom"};function Fe(e){return e.replace(/left|right|bottom|top/g,function(t){return Bn[t]})}var Nn={start:"end",end:"start"};function Et(e){return e.replace(/start|end/g,function(t){return Nn[t]})}function De(e){var t=L(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Re(e){return ee($(e)).left+De(e).scrollLeft}function jt(e,t){var r=L(e),n=$(e),i=r.visualViewport,a=n.clientWidth,p=n.clientHeight,u=0,f=0;if(i){a=i.width,p=i.height;var l=Qe();(l||!l&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}return{width:a,height:p,x:u+Re(e),y:f}}function Vt(e){var t,r=$(e),n=De(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ne(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),p=ne(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+Re(e),f=-n.scrollTop;return z(i||r).direction==="rtl"&&(u+=ne(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:p,x:u,y:f}}function Be(e){var t=z(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Tt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:W(e)&&Be(e)?e:Tt(he(e))}function xe(e,t){var r;t===void 0&&(t=[]);var n=Tt(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=L(n),p=i?[a].concat(a.visualViewport||[],Be(n)?n:[]):n,u=t.concat(p);return i?u:u.concat(xe(he(p)))}function $e(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kn(e,t){var r=ee(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function wr(e,t,r){return t===wt?$e(jt(e,r)):Z(t)?kn(t,r):$e(Vt($(e)))}function jn(e){var t=xe(he(e)),r=["absolute","fixed"].indexOf(z(e).position)>=0,n=r&&W(e)?oe(e):e;return Z(n)?t.filter(function(i){return Z(i)&&Ze(i,n)&&U(i)!=="body"}):[]}function Ht(e,t,r,n){var i=t==="clippingParents"?jn(e):[].concat(t),a=[].concat(i,[r]),p=a[0],u=a.reduce(function(f,l){var c=wr(e,l,n);return f.top=ne(c.top,f.top),f.right=Ae(c.right,f.right),f.bottom=Ae(c.bottom,f.bottom),f.left=ne(c.left,f.left),f},wr(e,p,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function nt(e){var t=e.reference,r=e.element,n=e.placement,i=n?_(n):null,a=n?te(n):null,p=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,f;switch(i){case B:f={x:p,y:t.y-r.height};break;case I:f={x:p,y:t.y+t.height};break;case j:f={x:t.x+t.width,y:u};break;case N:f={x:t.x-r.width,y:u};break;default:f={x:t.x,y:t.y}}var l=i?Me(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case ve:f[l]=f[l]-(t[c]/2-r[c]/2);break;case Pe:f[l]=f[l]+(t[c]/2-r[c]/2);break;default:}}return f}function ie(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,p=a===void 0?e.strategy:a,u=r.boundary,f=u===void 0?cr:u,l=r.rootBoundary,c=l===void 0?wt:l,b=r.elementContext,w=b===void 0?We:b,g=r.altBoundary,x=g===void 0?!1:g,h=r.padding,y=h===void 0?0:h,T=tt(typeof y!="number"?y:rt(y,we)),P=w===We?lr:We,M=e.rects.popper,o=e.elements[x?P:w],E=Ht(Z(o)?o:o.contextElement||$(e.elements.popper),f,c,p),m=ee(e.elements.reference),A=nt({reference:m,element:M,strategy:"absolute",placement:i}),V=$e(Object.assign({},M,A)),k=w===We?V:m,D={top:E.top-k.top+T.top,bottom:k.bottom-E.bottom+T.bottom,left:E.left-k.left+T.left,right:k.right-E.right+T.right},H=e.modifiersData.offset;if(w===We&&H){var R=H[i];Object.keys(D).forEach(function(S){var K=[j,I].indexOf(S)>=0?1:-1,G=[B,I].indexOf(S)>=0?"y":"x";D[S]+=R[G]*K})}return D}function It(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,p=r.padding,u=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?xt:f,c=te(n),b=c?u?Nt:Nt.filter(function(x){return te(x)===c}):we,w=b.filter(function(x){return l.indexOf(x)>=0});w.length===0&&(w=b);var g=w.reduce(function(x,h){return x[h]=ie(e,{placement:h,boundary:i,rootBoundary:a,padding:p})[_(h)],x},{});return Object.keys(g).sort(function(x,h){return g[x]-g[h]})}function Vn(e){if(_(e)===bt)return[];var t=Fe(e);return[Et(e),t,Et(t)]}function Hn(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,p=r.altAxis,u=p===void 0?!0:p,f=r.fallbackPlacements,l=r.padding,c=r.boundary,b=r.rootBoundary,w=r.altBoundary,g=r.flipVariations,x=g===void 0?!0:g,h=r.allowedAutoPlacements,y=t.options.placement,T=_(y),P=T===y,M=f||(P||!x?[Fe(y)]:Vn(y)),o=[y].concat(M).reduce(function(ce,re){return ce.concat(_(re)===bt?It(t,{placement:re,boundary:c,rootBoundary:b,padding:l,flipVariations:x,allowedAutoPlacements:h}):re)},[]),E=t.rects.reference,m=t.rects.popper,A=new Map,V=!0,k=o[0],D=0;D<o.length;D++){var H=o[D],R=_(H),S=te(H)===ve,K=[B,I].indexOf(R)>=0,G=K?"width":"height",X=ie(t,{placement:H,boundary:c,rootBoundary:b,altBoundary:w,padding:l}),Y=K?S?j:N:S?I:B;E[G]>m[G]&&(Y=Fe(Y));var F=Fe(Y),se=[];if(a&&se.push(X[R]<=0),u&&se.push(X[Y]<=0,X[F]<=0),se.every(function(ce){return ce})){k=H,V=!1;break}A.set(H,se)}if(V)for(var pe=x?3:1,Oe=function(re){var le=o.find(function(ke){var de=A.get(ke);if(de)return de.slice(0,re).every(function(je){return je})});if(le)return k=le,"break"},fe=pe;fe>0;fe--){var Ee=Oe(fe);if(Ee==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}var xr={name:"flip",enabled:!0,phase:"main",fn:Hn,requiresIfExists:["offset"],data:{_skip:!1}};function Or(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Er(e){return[B,j,I,N].some(function(t){return e[t]>=0})}function In(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,p=ie(t,{elementContext:"reference"}),u=ie(t,{altBoundary:!0}),f=Or(p,n),l=Or(u,i,a),c=Er(f),b=Er(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":b})}var Tr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:In};function Wn(e,t,r){var n=_(e),i=[N,B].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,p=a[0],u=a[1];return p=p||0,u=(u||0)*i,[N,j].indexOf(n)>=0?{x:u,y:p}:{x:p,y:u}}function Un(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,p=xt.reduce(function(c,b){return c[b]=Wn(b,t.rects,a),c},{}),u=p[t.placement],f=u.x,l=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=p}var Cr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Un};function _n(e){var t=e.state,r=e.name;t.modifiersData[r]=nt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Pr={name:"popperOffsets",enabled:!0,phase:"read",fn:_n,data:{}};function Wt(e){return e==="x"?"y":"x"}function Fn(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,p=r.altAxis,u=p===void 0?!1:p,f=r.boundary,l=r.rootBoundary,c=r.altBoundary,b=r.padding,w=r.tether,g=w===void 0?!0:w,x=r.tetherOffset,h=x===void 0?0:x,y=ie(t,{boundary:f,rootBoundary:l,padding:b,altBoundary:c}),T=_(t.placement),P=te(t.placement),M=!P,o=Me(T),E=Wt(o),m=t.modifiersData.popperOffsets,A=t.rects.reference,V=t.rects.popper,k=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,D=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(m){if(a){var S,K=o==="y"?B:N,G=o==="y"?I:j,X=o==="y"?"height":"width",Y=m[o],F=Y+y[K],se=Y-y[G],pe=g?-V[X]/2:0,Oe=P===ve?A[X]:V[X],fe=P===ve?-V[X]:-A[X],Ee=t.elements.arrow,ce=g&&Ee?Le(Ee):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:et(),le=re[K],ke=re[G],de=Se(0,A[X],ce[X]),je=M?A[X]/2-pe-de-le-D.mainAxis:Oe-de-le-D.mainAxis,ye=M?-A[X]/2+pe+de+ke+D.mainAxis:fe+de+ke+D.mainAxis,Ve=t.elements.arrow&&oe(t.elements.arrow),pt=Ve?o==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,Ye=(S=H?.[o])!=null?S:0,ft=Y+je-Ye-pt,ut=Y+ye-Ye,qe=Se(g?Ae(F,ft):F,Y,g?ne(se,ut):se);m[o]=qe,R[o]=qe-Y}if(u){var ze,ct=o==="x"?B:N,lt=o==="x"?I:j,me=m[E],be=E==="y"?"height":"width",Ke=me+y[ct],Te=me-y[lt],Ge=[B,N].indexOf(T)!==-1,dt=(ze=H?.[E])!=null?ze:0,mt=Ge?Ke:me-A[be]-V[be]-dt+D.altAxis,vt=Ge?me+A[be]+V[be]-dt-D.altAxis:Te,gt=g&&Ge?vr(mt,me,vt):Se(g?mt:Ke,me,g?vt:Te);m[E]=gt,R[E]=gt-me}t.modifiersData[n]=R}}var Ar={name:"preventOverflow",enabled:!0,phase:"main",fn:Fn,requiresIfExists:["offset"]};function Ut(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _t(e){return e===L(e)||!W(e)?De(e):Ut(e)}function $n(e){var t=e.getBoundingClientRect(),r=ge(t.width)/e.offsetWidth||1,n=ge(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Ft(e,t,r){r===void 0&&(r=!1);var n=W(t),i=W(t)&&$n(t),a=$(t),p=ee(e,i,r),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((U(t)!=="body"||Be(a))&&(u=_t(t)),W(t)?(f=ee(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Re(a))),{x:p.left+u.scrollLeft-f.x,y:p.top+u.scrollTop-f.y,width:p.width,height:p.height}}function Xn(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var p=[].concat(a.requires||[],a.requiresIfExists||[]);p.forEach(function(u){if(!r.has(u)){var f=t.get(u);f&&i(f)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function $t(e){var t=Xn(e);return dr.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Xt(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yt(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Lr={placement:"bottom",modifiers:[],strategy:"absolute"};function Mr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Sr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?Lr:i;return function(u,f,l){l===void 0&&(l=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lr,a),modifiersData:{},elements:{reference:u,popper:f},attributes:{},styles:{}},b=[],w=!1,g={state:c,setOptions:function(T){var P=typeof T=="function"?T(c.options):T;h(),c.options=Object.assign({},a,c.options,P),c.scrollParents={reference:Z(u)?xe(u):u.contextElement?xe(u.contextElement):[],popper:xe(f)};var M=$t(Yt([].concat(n,c.options.modifiers)));return c.orderedModifiers=M.filter(function(o){return o.enabled}),x(),g.update()},forceUpdate:function(){if(!w){var T=c.elements,P=T.reference,M=T.popper;if(Mr(P,M)){c.rects={reference:Ft(P,oe(M),c.options.strategy==="fixed"),popper:Le(M)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(D){return c.modifiersData[D.name]=Object.assign({},D.data)});for(var o=0;o<c.orderedModifiers.length;o++){if(c.reset===!0){c.reset=!1,o=-1;continue}var E=c.orderedModifiers[o],m=E.fn,A=E.options,V=A===void 0?{}:A,k=E.name;typeof m=="function"&&(c=m({state:c,options:V,name:k,instance:g})||c)}}}},update:Xt(function(){return new Promise(function(y){g.forceUpdate(),y(c)})}),destroy:function(){h(),w=!0}};if(!Mr(u,f))return g;g.setOptions(l).then(function(y){!w&&l.onFirstUpdate&&l.onFirstUpdate(y)});function x(){c.orderedModifiers.forEach(function(y){var T=y.name,P=y.options,M=P===void 0?{}:P,o=y.effect;if(typeof o=="function"){var E=o({state:c,name:T,instance:g,options:M}),m=function(){};b.push(E||m)}})}function h(){b.forEach(function(y){return y()}),b=[]}return g}}var Yn=[br,Pr,yr,Je,Cr,xr,Ar,gr,Tr],ot=Sr({defaultModifiers:Yn});var zn="tippy-box",Wr="tippy-content",Kn="tippy-backdrop",Ur="tippy-arrow",_r="tippy-svg-arrow",Ne={passive:!0,capture:!0},Fr=function(){return document.body};function qt(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function Zt(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function $r(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Dr(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function Gn(e){return e.split(/\s+/).filter(Boolean)}function Xe(e){return[].concat(e)}function Rr(e,t){e.indexOf(t)===-1&&e.push(t)}function Jn(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function Qn(e){return e.split("-")[0]}function Pt(e){return[].slice.call(e)}function Br(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function it(){return document.createElement("div")}function At(e){return["Element","Fragment"].some(function(t){return Zt(e,t)})}function Zn(e){return Zt(e,"NodeList")}function eo(e){return Zt(e,"MouseEvent")}function to(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ro(e){return At(e)?[e]:Zn(e)?Pt(e):Array.isArray(e)?e:Pt(document.querySelectorAll(e))}function zt(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function Nr(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function no(e){var t,r=Xe(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function oo(e,t){var r=t.clientX,n=t.clientY;return e.every(function(i){var a=i.popperRect,p=i.popperState,u=i.props,f=u.interactiveBorder,l=Qn(p.placement),c=p.modifiersData.offset;if(!c)return!0;var b=l==="bottom"?c.top.y:0,w=l==="top"?c.bottom.y:0,g=l==="right"?c.left.x:0,x=l==="left"?c.right.x:0,h=a.top-n+b>f,y=n-a.bottom-w>f,T=a.left-r+g>f,P=r-a.right-x>f;return h||y||T||P})}function Kt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function kr(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var ue={isTouch:!1},jr=0;function io(){ue.isTouch||(ue.isTouch=!0,window.performance&&document.addEventListener("mousemove",Xr))}function Xr(){var e=performance.now();e-jr<20&&(ue.isTouch=!1,document.removeEventListener("mousemove",Xr)),jr=e}function ao(){var e=document.activeElement;if(to(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function so(){document.addEventListener("touchstart",io,Ne),window.addEventListener("blur",ao)}var po=typeof window<"u"&&typeof document<"u",fo=po?!!window.msCrypto:!1;var uo={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},co={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ae=Object.assign({appendTo:Fr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},uo,co),lo=Object.keys(ae),mo=function(t){var r=Object.keys(t);r.forEach(function(n){ae[n]=t[n]})};function Yr(e){var t=e.plugins||[],r=t.reduce(function(n,i){var a=i.name,p=i.defaultValue;if(a){var u;n[a]=e[a]!==void 0?e[a]:(u=ae[a])!=null?u:p}return n},{});return Object.assign({},e,r)}function vo(e,t){var r=t?Object.keys(Yr(Object.assign({},ae,{plugins:t}))):lo,n=r.reduce(function(i,a){var p=(e.getAttribute("data-tippy-"+a)||"").trim();if(!p)return i;if(a==="content")i[a]=p;else try{i[a]=JSON.parse(p)}catch{i[a]=p}return i},{});return n}function Vr(e,t){var r=Object.assign({},t,{content:$r(t.content,[e])},t.ignoreAttributes?{}:vo(e,t.plugins));return r.aria=Object.assign({},ae.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var go=function(){return"innerHTML"};function Jt(e,t){e[go()]=t}function Hr(e){var t=it();return e===!0?t.className=Ur:(t.className=_r,At(e)?t.appendChild(e):Jt(t,e)),t}function Ir(e,t){At(t.content)?(Jt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Jt(e,t.content):e.textContent=t.content)}function Qt(e){var t=e.firstElementChild,r=Pt(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(Wr)}),arrow:r.find(function(n){return n.classList.contains(Ur)||n.classList.contains(_r)}),backdrop:r.find(function(n){return n.classList.contains(Kn)})}}function qr(e){var t=it(),r=it();r.className=zn,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=it();n.className=Wr,n.setAttribute("data-state","hidden"),Ir(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(a,p){var u=Qt(t),f=u.box,l=u.content,c=u.arrow;p.theme?f.setAttribute("data-theme",p.theme):f.removeAttribute("data-theme"),typeof p.animation=="string"?f.setAttribute("data-animation",p.animation):f.removeAttribute("data-animation"),p.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof p.maxWidth=="number"?p.maxWidth+"px":p.maxWidth,p.role?f.setAttribute("role",p.role):f.removeAttribute("role"),(a.content!==p.content||a.allowHTML!==p.allowHTML)&&Ir(l,e.props),p.arrow?c?a.arrow!==p.arrow&&(f.removeChild(c),f.appendChild(Hr(p.arrow))):f.appendChild(Hr(p.arrow)):c&&f.removeChild(c)}return{popper:t,onUpdate:i}}qr.$$tippy=!0;var ho=1,Ct=[],Gt=[];function yo(e,t){var r=Vr(e,Object.assign({},ae,Yr(Br(t)))),n,i,a,p=!1,u=!1,f=!1,l=!1,c,b,w,g=[],x=Dr(ft,r.interactiveDebounce),h,y=ho++,T=null,P=Jn(r.plugins),M={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},o={id:y,reference:e,popper:it(),popperInstance:T,props:r,state:M,plugins:P,clearDelayTimeouts:mt,setProps:vt,setContent:gt,show:Qr,hide:Zr,hideWithInteractivity:en,enable:Ge,disable:dt,unmount:tn,destroy:rn};if(!r.render)return o;var E=r.render(o),m=E.popper,A=E.onUpdate;m.setAttribute("data-tippy-root",""),m.id="tippy-"+o.id,o.popper=m,e._tippy=o,m._tippy=o;var V=P.map(function(s){return s.fn(o)}),k=e.hasAttribute("aria-expanded");return Ve(),pe(),Y(),F("onCreate",[o]),r.showOnCreate&&Ke(),m.addEventListener("mouseenter",function(){o.props.interactive&&o.state.isVisible&&o.clearDelayTimeouts()}),m.addEventListener("mouseleave",function(){o.props.interactive&&o.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",x)}),o;function D(){var s=o.props.touch;return Array.isArray(s)?s:[s,0]}function H(){return D()[0]==="hold"}function R(){var s;return!!((s=o.props.render)!=null&&s.$$tippy)}function S(){return h||e}function K(){var s=S().parentNode;return s?no(s):document}function G(){return Qt(m)}function X(s){return o.state.isMounted&&!o.state.isVisible||ue.isTouch||c&&c.type==="focus"?0:qt(o.props.delay,s?0:1,ae.delay)}function Y(s){s===void 0&&(s=!1),m.style.pointerEvents=o.props.interactive&&!s?"":"none",m.style.zIndex=""+o.props.zIndex}function F(s,d,v){if(v===void 0&&(v=!0),V.forEach(function(O){O[s]&&O[s].apply(O,d)}),v){var C;(C=o.props)[s].apply(C,d)}}function se(){var s=o.props.aria;if(s.content){var d="aria-"+s.content,v=m.id,C=Xe(o.props.triggerTarget||e);C.forEach(function(O){var q=O.getAttribute(d);if(o.state.isVisible)O.setAttribute(d,q?q+" "+v:v);else{var J=q&&q.replace(v,"").trim();J?O.setAttribute(d,J):O.removeAttribute(d)}})}}function pe(){if(!(k||!o.props.aria.expanded)){var s=Xe(o.props.triggerTarget||e);s.forEach(function(d){o.props.interactive?d.setAttribute("aria-expanded",o.state.isVisible&&d===S()?"true":"false"):d.removeAttribute("aria-expanded")})}}function Oe(){K().removeEventListener("mousemove",x),Ct=Ct.filter(function(s){return s!==x})}function fe(s){if(!(ue.isTouch&&(f||s.type==="mousedown"))){var d=s.composedPath&&s.composedPath()[0]||s.target;if(!(o.props.interactive&&kr(m,d))){if(Xe(o.props.triggerTarget||e).some(function(v){return kr(v,d)})){if(ue.isTouch||o.state.isVisible&&o.props.trigger.indexOf("click")>=0)return}else F("onClickOutside",[o,s]);o.props.hideOnClick===!0&&(o.clearDelayTimeouts(),o.hide(),u=!0,setTimeout(function(){u=!1}),o.state.isMounted||le())}}}function Ee(){f=!0}function ce(){f=!1}function re(){var s=K();s.addEventListener("mousedown",fe,!0),s.addEventListener("touchend",fe,Ne),s.addEventListener("touchstart",ce,Ne),s.addEventListener("touchmove",Ee,Ne)}function le(){var s=K();s.removeEventListener("mousedown",fe,!0),s.removeEventListener("touchend",fe,Ne),s.removeEventListener("touchstart",ce,Ne),s.removeEventListener("touchmove",Ee,Ne)}function ke(s,d){je(s,function(){!o.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&d()})}function de(s,d){je(s,d)}function je(s,d){var v=G().box;function C(O){O.target===v&&(Kt(v,"remove",C),d())}if(s===0)return d();Kt(v,"remove",b),Kt(v,"add",C),b=C}function ye(s,d,v){v===void 0&&(v=!1);var C=Xe(o.props.triggerTarget||e);C.forEach(function(O){O.addEventListener(s,d,v),g.push({node:O,eventType:s,handler:d,options:v})})}function Ve(){H()&&(ye("touchstart",Ye,{passive:!0}),ye("touchend",ut,{passive:!0})),Gn(o.props.trigger).forEach(function(s){if(s!=="manual")switch(ye(s,Ye),s){case"mouseenter":ye("mouseleave",ut);break;case"focus":ye(fo?"focusout":"blur",qe);break;case"focusin":ye("focusout",qe);break}})}function pt(){g.forEach(function(s){var d=s.node,v=s.eventType,C=s.handler,O=s.options;d.removeEventListener(v,C,O)}),g=[]}function Ye(s){var d,v=!1;if(!(!o.state.isEnabled||ze(s)||u)){var C=((d=c)==null?void 0:d.type)==="focus";c=s,h=s.currentTarget,pe(),!o.state.isVisible&&eo(s)&&Ct.forEach(function(O){return O(s)}),s.type==="click"&&(o.props.trigger.indexOf("mouseenter")<0||p)&&o.props.hideOnClick!==!1&&o.state.isVisible?v=!0:Ke(s),s.type==="click"&&(p=!v),v&&!C&&Te(s)}}function ft(s){var d=s.target,v=S().contains(d)||m.contains(d);if(!(s.type==="mousemove"&&v)){var C=be().concat(m).map(function(O){var q,J=O._tippy,He=(q=J.popperInstance)==null?void 0:q.state;return He?{popperRect:O.getBoundingClientRect(),popperState:He,props:r}:null}).filter(Boolean);oo(C,s)&&(Oe(),Te(s))}}function ut(s){var d=ze(s)||o.props.trigger.indexOf("click")>=0&&p;if(!d){if(o.props.interactive){o.hideWithInteractivity(s);return}Te(s)}}function qe(s){o.props.trigger.indexOf("focusin")<0&&s.target!==S()||o.props.interactive&&s.relatedTarget&&m.contains(s.relatedTarget)||Te(s)}function ze(s){return ue.isTouch?H()!==s.type.indexOf("touch")>=0:!1}function ct(){lt();var s=o.props,d=s.popperOptions,v=s.placement,C=s.offset,O=s.getReferenceClientRect,q=s.moveTransition,J=R()?Qt(m).arrow:null,He=O?{getBoundingClientRect:O,contextElement:O.contextElement||S()}:e,ur={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ht){var Ie=ht.state;if(R()){var nn=G(),St=nn.box;["placement","reference-hidden","escaped"].forEach(function(yt){yt==="placement"?St.setAttribute("data-placement",Ie.placement):Ie.attributes.popper["data-popper-"+yt]?St.setAttribute("data-"+yt,""):St.removeAttribute("data-"+yt)}),Ie.attributes.popper={}}}},Ce=[{name:"offset",options:{offset:C}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!q}},ur];R()&&J&&Ce.push({name:"arrow",options:{element:J,padding:3}}),Ce.push.apply(Ce,d?.modifiers||[]),o.popperInstance=ot(He,m,Object.assign({},d,{placement:v,onFirstUpdate:w,modifiers:Ce}))}function lt(){o.popperInstance&&(o.popperInstance.destroy(),o.popperInstance=null)}function me(){var s=o.props.appendTo,d,v=S();o.props.interactive&&s===Fr||s==="parent"?d=v.parentNode:d=$r(s,[v]),d.contains(m)||d.appendChild(m),o.state.isMounted=!0,ct()}function be(){return Pt(m.querySelectorAll("[data-tippy-root]"))}function Ke(s){o.clearDelayTimeouts(),s&&F("onTrigger",[o,s]),re();var d=X(!0),v=D(),C=v[0],O=v[1];ue.isTouch&&C==="hold"&&O&&(d=O),d?n=setTimeout(function(){o.show()},d):o.show()}function Te(s){if(o.clearDelayTimeouts(),F("onUntrigger",[o,s]),!o.state.isVisible){le();return}if(!(o.props.trigger.indexOf("mouseenter")>=0&&o.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(s.type)>=0&&p)){var d=X(!1);d?i=setTimeout(function(){o.state.isVisible&&o.hide()},d):a=requestAnimationFrame(function(){o.hide()})}}function Ge(){o.state.isEnabled=!0}function dt(){o.hide(),o.state.isEnabled=!1}function mt(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(a)}function vt(s){if(!o.state.isDestroyed){F("onBeforeUpdate",[o,s]),pt();var d=o.props,v=Vr(e,Object.assign({},d,Br(s),{ignoreAttributes:!0}));o.props=v,Ve(),d.interactiveDebounce!==v.interactiveDebounce&&(Oe(),x=Dr(ft,v.interactiveDebounce)),d.triggerTarget&&!v.triggerTarget?Xe(d.triggerTarget).forEach(function(C){C.removeAttribute("aria-expanded")}):v.triggerTarget&&e.removeAttribute("aria-expanded"),pe(),Y(),A&&A(d,v),o.popperInstance&&(ct(),be().forEach(function(C){requestAnimationFrame(C._tippy.popperInstance.forceUpdate)})),F("onAfterUpdate",[o,s])}}function gt(s){o.setProps({content:s})}function Qr(){var s=o.state.isVisible,d=o.state.isDestroyed,v=!o.state.isEnabled,C=ue.isTouch&&!o.props.touch,O=qt(o.props.duration,0,ae.duration);if(!(s||d||v||C)&&!S().hasAttribute("disabled")&&(F("onShow",[o],!1),o.props.onShow(o)!==!1)){if(o.state.isVisible=!0,R()&&(m.style.visibility="visible"),Y(),re(),o.state.isMounted||(m.style.transition="none"),R()){var q=G(),J=q.box,He=q.content;zt([J,He],0)}w=function(){var Ce;if(!(!o.state.isVisible||l)){if(l=!0,m.offsetHeight,m.style.transition=o.props.moveTransition,R()&&o.props.animation){var Mt=G(),ht=Mt.box,Ie=Mt.content;zt([ht,Ie],O),Nr([ht,Ie],"visible")}se(),pe(),Rr(Gt,o),(Ce=o.popperInstance)==null||Ce.forceUpdate(),F("onMount",[o]),o.props.animation&&R()&&de(O,function(){o.state.isShown=!0,F("onShown",[o])})}},me()}}function Zr(){var s=!o.state.isVisible,d=o.state.isDestroyed,v=!o.state.isEnabled,C=qt(o.props.duration,1,ae.duration);if(!(s||d||v)&&(F("onHide",[o],!1),o.props.onHide(o)!==!1)){if(o.state.isVisible=!1,o.state.isShown=!1,l=!1,p=!1,R()&&(m.style.visibility="hidden"),Oe(),le(),Y(!0),R()){var O=G(),q=O.box,J=O.content;o.props.animation&&(zt([q,J],C),Nr([q,J],"hidden"))}se(),pe(),o.props.animation?R()&&ke(C,o.unmount):o.unmount()}}function en(s){K().addEventListener("mousemove",x),Rr(Ct,x),x(s)}function tn(){o.state.isVisible&&o.hide(),o.state.isMounted&&(lt(),be().forEach(function(s){s._tippy.unmount()}),m.parentNode&&m.parentNode.removeChild(m),Gt=Gt.filter(function(s){return s!==o}),o.state.isMounted=!1,F("onHidden",[o]))}function rn(){o.state.isDestroyed||(o.clearDelayTimeouts(),o.unmount(),pt(),delete e._tippy,o.state.isDestroyed=!0,F("onDestroy",[o]))}}function at(e,t){t===void 0&&(t={});var r=ae.plugins.concat(t.plugins||[]);so();var n=Object.assign({},t,{plugins:r}),i=ro(e);if(!1)var a,p;var u=i.reduce(function(f,l){var c=l&&yo(l,n);return c&&f.push(c),f},[]);return At(e)?u[0]:u}at.defaultProps=ae;at.setDefaultProps=mo;at.currentInput=ue;var Rp=Object.assign({},Je,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});at.setDefaultProps({render:qr});var zr=at;function bo(e,t,r,n,i,a,p,u){return zr(e,{content:t,delay:n,interactive:i,maxWidth:a,placement:p,theme:"the",showOnCreate:r,onTrigger(){u.invokeMethodAsync("The.Controls","OnTriggerAsync")},onShow(f){f.popperInstance?.update()},appendTo:i?document.body:void 0})}function wo(e){e.destroy()}var tr={};Q(tr,{downloadFromStream:()=>xo,openFromStream:()=>Oo});async function xo(e,t,r,n){let i=window;if(n&&typeof i.showSaveFilePicker=="function"&&typeof e.stream=="function")try{let f=(()=>{let w=r.lastIndexOf(".");return w>=0?r.substring(w):""})(),c=await(await i.showSaveFilePicker({suggestedName:r,types:[{description:t,accept:{[t]:f?[f]:[".*"]}}]})).createWritable();await(await e.stream()).pipeTo(c);return}catch(f){console.warn("Streaming save failed, falling back to buffered download",f)}let a=await e.arrayBuffer(),p=new Blob([a],{type:t}),u=URL.createObjectURL(p);Kr(u,r,null),URL.revokeObjectURL(u)}async function Oo(e,t,r){let n=await e.arrayBuffer(),i=new Blob([n],{type:t}),a=URL.createObjectURL(i);Kr(a,null,r),URL.revokeObjectURL(a)}function Kr(e,t,r){let n=document.createElement("a");n.href=e,t&&(n.download=t),r&&(n.target=r),n.click(),n.remove()}var rr={};Q(rr,{download:()=>Eo,upload:()=>To});function Eo(e,t){let r=new Uint8Array(t),n=new Blob([r],{type:"text/xml"}),i=URL.createObjectURL(n),a=document.createElement("a");a.href=i,a.download=e,a.style.display="none",document.body.appendChild(a),a.click(),URL.revokeObjectURL(i),a.remove()}function To(e){return new Promise(function(t,r){if(e==null){r("No <input> found.");return}if(e.files==null||e.files.length==0){r("No file selected.");return}let n=new FileReader;n.onerror=function(i){n.abort(),r(i.toString())},n.addEventListener("load",function(){if(typeof n.result!="string"){r("Unexpected upload type '"+n.result+"'.");return}t(n.result)},{once:!0}),n.readAsText(e.files[0])})}var nr={};Q(nr,{observe:()=>Co});function Co(e){if(e.isObserved)return;e.isObserved=!0,e.style.maxHeight=e.scrollHeight+"px",new MutationObserver(function(r,n){if(e.style.maxHeight==null||e.scrollHeight>parseInt(e.style.maxHeight)){let p=function(){e.style.minHeight=e.scrollHeight+"px",e.style.maxHeight="",e.removeEventListener("transitionend",p),e.classList.remove("the-input-disabled")};var i=p;e.addEventListener("transitionend",p,!1),e.classList.add("the-input-disabled"),e.style.maxHeight=e.scrollHeight+"px"}else if(e.style.minHeight!=""){let p=function(){e.style.minHeight="",e.style.maxHeight=e.scrollHeight+"px",e.removeEventListener("transitionend",p),e.classList.remove("the-input-disabled")};var a=p;e.addEventListener("transitionend",p,!1),e.classList.add("the-input-disabled"),e.style.minHeight="0px"}}).observe(e,{childList:!0,subtree:!0})}var or={};Q(or,{authenticate:()=>Po,deauthenticate:()=>Ao});async function Po(e){return(await fetch("_the/account/authenticate",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async function Ao(){await fetch("_the/account/deauthenticate",{method:"POST",credentials:"same-origin"})}var ir={};Q(ir,{allocate_aes_key:()=>So,deallocate_aes_key:()=>Do,decrypt_aes_cbc:()=>Bo,derive_aes_key:()=>Mo,encrypt_aes_cbc:()=>Ro});var Lo=new TextEncoder,Gr=0,st={};function Jr(e){if(!(e in st))throw Error("Key "+e+" has been deallocated!");return st[e]}async function Mo(e,t){let n={name:"PBKDF2",salt:t._unsafe_create_view(),iterations:1e4,hash:"SHA-1"},i=Lo.encode(e),a=await crypto.subtle.importKey("raw",i,"PBKDF2",!1,["deriveBits","deriveKey"]),p=Gr++;return st[p]=await window.crypto.subtle.deriveKey(n,a,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),p}async function So(e){let t=e._unsafe_create_view(),r=Gr++;return st[r]=await crypto.subtle.importKey("raw",t,"AES-CBC",!1,["encrypt","decrypt"]),r}function Do(e){delete st[e]}async function Ro(e,t){let r=crypto.getRandomValues(new Uint8Array(16)),n={name:"AES-CBC",iv:r},i=t._unsafe_create_view(),a=await crypto.subtle.encrypt(n,Jr(e),i);return{IV:r,Message:new Uint8Array(a)}}async function Bo(e,t,r){let n=t._unsafe_create_view(),i=r._unsafe_create_view(),a={name:"AES-CBC",iv:n},p=await crypto.subtle.decrypt(a,Jr(e),i);return{Message:new Uint8Array(p)}}var sr={};Q(sr,{synthesizeThemeUrls:()=>ar});function Lt(e){return e=encodeURIComponent(e),`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="${e}" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><polyline points="6 9 12 15 18 9" /></svg>')`}function ar(e){let t=getComputedStyle(e),r=t.getPropertyValue("--the-hue-neutral-4"),n=t.getPropertyValue("--the-hue-action-4"),i=t.getPropertyValue("--the-hue-warning-4"),a=t.getPropertyValue("--the-hue-error-4");e.style.setProperty("--the-box-icon__chevron-down--neutral",Lt(r)),e.style.setProperty("--the-box-icon__chevron-down--action",Lt(n)),e.style.setProperty("--the-box-icon__chevron-down--warning",Lt(i)),e.style.setProperty("--the-box-icon__chevron-down--error",Lt(a))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ar(document.documentElement)):ar(document.documentElement);var pr={};Q(pr,{attach:()=>No});function No(e,t){ot(e,t,{placement:"bottom-start",modifiers:[{name:"flip",enabled:!1},{name:"copyReferenceWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:r})=>{r.styles.popper.width=`${r.rects.reference.width}px`}}]})}var fr={};Q(fr,{listen:()=>ko});function ko(e,t){e.addEventListener("keydown",r=>r.which==13||r.which==32?(t.invokeMethodAsync("The.Controls","ToggleAsync"),r.preventDefault(),!1):!0)}window.The={BEM:Dt,Controls:{ScrollContext:Rt,StreamImage:Bt,Tooltip:er},Documents:{ClientFiles:tr},Model:{ImportExport:rr,Controls:{GrowPanel:nr}},Security:{BackendAuthenticationStateProvider:or,SubtleCrypto:ir},Styles:sr,Widgets:{ComboBox:pr,Checkbox:fr}};})();