(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7553],{61970:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,f,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(f=s;0!=f--;)if(!i(e[f],a[f]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(f=c.next()).done;)if(!a.has(f.value[0]))return!1;for(c=e.entries();!(f=c.next()).done;)if(!i(f.value[1],a.get(f.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(f=c.next()).done;)if(!a.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(f=s;0!=f--;)if(e[f]!==a[f])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(f=s;0!=f--;)if(!Object.prototype.hasOwnProperty.call(a,u[f]))return!1;if(t&&e instanceof Element)return!1;for(f=s;0!=f--;)if(("_owner"!==u[f]&&"__v"!==u[f]&&"__o"!==u[f]||!e.$$typeof)&&!i(e[u[f]],a[u[f]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},46503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>a,Popper:()=>Re,Reference:()=>We,usePopper:()=>ke});var r=n(50959),o=r.createContext(),i=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1];return r.useEffect((function(){return function(){s(null)}}),[s]),r.createElement(o.Provider,{value:a},r.createElement(i.Provider,{value:s},t))}var s=function(e){return Array.isArray(e)?e[0]:e},f=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},u=function(e,t){if("function"==typeof e)return f(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},p="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect;function l(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){return e instanceof l(e).Element||e instanceof Element}function m(e){return e instanceof l(e).HTMLElement||e instanceof HTMLElement}function h(e){return"undefined"!=typeof ShadowRoot&&(e instanceof l(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,y=Math.min,g=Math.round;function b(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){
return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function w(){return!/^((?!chrome|android).)*safari/i.test(b())}function x(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&m(e)&&(o=e.offsetWidth>0&&g(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);var a=(d(e)?l(e):window).visualViewport,s=!w()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,p=r.height/i;return{width:c,height:p,top:u,right:f+c,bottom:u+p,left:f,x:f,y:u}}function O(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function E(e){return e?(e.nodeName||"").toLowerCase():null}function j(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return x(j(e)).left+O(e).scrollLeft}function D(e){return l(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 P(e,t,n){void 0===n&&(n=!1);var r,o,i=m(t),a=m(t)&&function(e){var t=e.getBoundingClientRect(),n=g(t.width)/e.offsetWidth||1,r=g(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=j(t),f=x(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==E(t)||k(s))&&(u=(r=t)!==l(r)&&m(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:O(r)),m(t)?((c=x(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=A(s))),{x:f.left+u.scrollLeft-c.x,y:f.top+u.scrollTop-c.y,width:f.width,height:f.height}}function M(e){var t=x(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 S(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||j(e)}function R(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:m(e)&&k(e)?e:R(S(e))}function B(e,t){var n;void 0===t&&(t=[]);var r=R(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=l(r),a=o?[i].concat(i.visualViewport||[],k(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(B(S(a)))}function L(e){return["table","td","th"].indexOf(E(e))>=0}function W(e){return m(e)&&"fixed"!==D(e).position?e.offsetParent:null}function H(e){for(var t=l(e),n=W(e);n&&L(n)&&"static"===D(n).position;)n=W(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===D(n).position)?t:n||function(e){var t=/firefox/i.test(b());if(/Trident/i.test(b())&&m(e)&&"fixed"===D(e).position)return null;var n=S(e);for(h(n)&&(n=n.host);m(n)&&["html","body"].indexOf(E(n))<0;){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 C="top",T="bottom",U="right",V="left",q="auto",F=[C,T,U,V],_="start",z="end",N="viewport",I="popper",X=F.reduce((function(e,t){return e.concat([t+"-"+_,t+"-"+z])}),[]),Y=[].concat(F,[q]).reduce((function(e,t){return e.concat([t,t+"-"+_,t+"-"+z])
}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function G(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 J={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){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 Q(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?J:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},J,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],u=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:d(e)?B(e):e.contextElement?B(e.contextElement):[],popper:B(t)};var a=function(e){var t=G(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=a.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:c,options:r}),a=function(){};f.push(i||a)}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(K(t,n)){s.rects={reference:P(t,H(n),"fixed"===s.options.strategy),popper:M(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,p=o.name;"function"==typeof i&&(s=i({state:s,options:f,name:p,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),u=!0}};if(!K(e,t))return c;function p(){f.forEach((function(e){return e()})),f=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Z={passive:!0};function ee(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function ne(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function re(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ee(o):null,a=o?te(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){
case C:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case U:t={x:n.x+n.width,y:f};break;case V:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var u=i?ne(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case _:t[u]=t[u]-(n[c]/2-r[c]/2);break;case z:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var oe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=a.x,m=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof c?c({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=V,O=C,E=window;if(u){var A=H(n),k="clientHeight",P="clientWidth";if(A===l(n)&&"static"!==D(A=j(n)).position&&"absolute"===s&&(k="scrollHeight",P="scrollWidth"),o===C||(o===V||o===U)&&i===z)O=T,v-=(p&&A===E&&E.visualViewport?E.visualViewport.height:A[k])-r.height,v*=f?1:-1;if(o===V||(o===C||o===T)&&i===z)x=U,m-=(p&&A===E&&E.visualViewport?E.visualViewport.width:A[P])-r.width,m*=f?1:-1}var M,S=Object.assign({position:s},u&&oe),R=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:g(t*r)/r||0,y:g(n*r)/r||0}}({x:m,y:v}):{x:m,y:v};return m=R.x,v=R.y,f?Object.assign({},S,((M={})[O]=w?"0":"",M[x]=b?"0":"",M.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",M)):Object.assign({},S,((t={})[O]=w?v+"px":"",t[x]=b?m+"px":"",t.transform="",t))}const ae={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=Y.reduce((function(e,n){return e[n]=function(e,t,n){var r=ee(e),o=[V,C].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[V,U].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var se={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var ue={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function pe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function de(e,t,n){return t===N?le(function(e,t){var n=l(e),r=j(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var u=w();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+A(e),y:f}}(e,n)):d(t)?function(e,t){var n=x(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):le(function(e){var t,n=j(e),r=O(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=v(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=v(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+A(e),f=-r.scrollTop;return"rtl"===D(o||n).direction&&(s+=v(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(j(e)))}function me(e,t,n,r){var o="clippingParents"===t?function(e){var t=B(S(e)),n=["absolute","fixed"].indexOf(D(e).position)>=0&&m(e)?H(e):e;return d(n)?t.filter((function(e){return d(e)&&pe(e,n)&&"body"!==E(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=de(e,n,r);return t.top=v(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=v(o.left,t.left),t}),de(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(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ve(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,f=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?N:u,p=n.elementContext,l=void 0===p?I:p,m=n.altBoundary,h=void 0!==m&&m,v=n.padding,y=void 0===v?0:v,g=he("number"!=typeof y?y:ve(y,F)),b=l===I?"reference":I,w=e.rects.popper,O=e.elements[h?b:l],E=me(d(O)?O:O.contextElement||j(e.elements.popper),f,c,a),A=x(e.elements.reference),D=re({reference:A,element:w,strategy:"absolute",placement:o}),k=le(Object.assign({},w,D)),P=l===I?k:A,M={top:E.top-P.top+g.top,bottom:P.bottom-E.bottom+g.bottom,left:E.left-P.left+g.left,right:P.right-E.right+g.right},S=e.modifiersData.offset;if(l===I&&S){var R=S[o];Object.keys(M).forEach((function(e){var t=[U,T].indexOf(e)>=0?1:-1,n=[C,T].indexOf(e)>=0?"y":"x";M[e]+=R[n]*t}))}return M}function ge(e,t,n){return v(e,y(t,n))}const be={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,u=n.rootBoundary,c=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,m=n.tetherOffset,h=void 0===m?0:m,g=ye(t,{boundary:f,rootBoundary:u,padding:p,altBoundary:c}),b=ee(t.placement),w=te(t.placement),x=!w,O=ne(b),E="x"===O?"y":"x",j=t.modifiersData.popperOffsets,A=t.rects.reference,D=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,P="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(j){if(i){var B,L="y"===O?C:V,W="y"===O?T:U,q="y"===O?"height":"width",F=j[O],z=F+g[L],N=F-g[W],I=d?-D[q]/2:0,X=w===_?A[q]:D[q],Y=w===_?-D[q]:-A[q],$=t.elements.arrow,G=d&&$?M($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0
},K=J[L],Q=J[W],Z=ge(0,A[q],G[q]),re=x?A[q]/2-I-Z-K-P.mainAxis:X-Z-K-P.mainAxis,oe=x?-A[q]/2+I+Z+Q+P.mainAxis:Y+Z+Q+P.mainAxis,ie=t.elements.arrow&&H(t.elements.arrow),ae=ie?"y"===O?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(B=null==S?void 0:S[O])?B:0,fe=F+oe-se,ue=ge(d?y(z,F+re-se-ae):z,F,d?v(N,fe):N);j[O]=ue,R[O]=ue-F}if(s){var ce,pe="x"===O?C:V,le="x"===O?T:U,de=j[E],me="y"===E?"height":"width",he=de+g[pe],ve=de-g[le],be=-1!==[C,V].indexOf(b),we=null!=(ce=null==S?void 0:S[E])?ce:0,xe=be?he:de-A[me]-D[me]-we+P.altAxis,Oe=be?de+A[me]+D[me]-we-P.altAxis:ve,Ee=d&&be?function(e,t,n){var r=ge(e,t,n);return r>n?n:r}(xe,de,Oe):ge(d?xe:he,de,d?Oe:ve);j[E]=Ee,R[E]=Ee-de}t.modifiersData[r]=R}},requiresIfExists:["offset"]};const we={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,s=ee(n.placement),f=ne(s),u=[V,U].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return he("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ve(e,F))}(o.padding,n),p=M(i),l="y"===f?C:V,d="y"===f?T:U,m=n.rects.reference[u]+n.rects.reference[f]-a[f]-n.rects.popper[u],h=a[f]-n.rects.reference[f],v=H(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,b=c[l],w=y-p[u]-c[d],x=y/2-p[u]/2+g,O=ge(b,x,w),E=f;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-x,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)))&&pe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xe(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 Oe(e){return[C,U,T,V].some((function(t){return e[t]>=0}))}var Ee=Q({defaultModifiers:[{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=l(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Z)})),s&&f.addEventListener("resize",n.update,Z),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Z)})),s&&f.removeEventListener("resize",n.update,Z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=re({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=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,u={placement:ee(t.placement),variation:te(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,ie(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),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];m(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}),{});m(r)&&E(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ae,{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,s=void 0===a||a,f=n.fallbackPlacements,u=n.padding,c=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,y=ee(v),g=f||(y===v||!m?[fe(v)]:function(e){if(ee(e)===q)return[];var t=fe(e);return[ce(e),t,ce(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat(ee(n)===q?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,u=void 0===f?Y:f,c=te(r),p=c?s?X:X.filter((function(e){return te(e)===c})):F,l=p.filter((function(e){return u.indexOf(e)>=0}));0===l.length&&(l=p);var d=l.reduce((function(t,n){return t[n]=ye(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ee(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:c,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,j=b[0],A=0;A<b.length;A++){var D=b[A],k=ee(D),P=te(D)===_,M=[C,T].indexOf(k)>=0,S=M?"width":"height",R=ye(t,{placement:D,boundary:c,rootBoundary:p,altBoundary:l,padding:u}),B=M?P?U:V:P?T:C;w[S]>x[S]&&(B=fe(B));var L=fe(B),W=[];if(i&&W.push(R[k]<=0),s&&W.push(R[B]<=0,R[L]<=0),W.every((function(e){return e}))){j=D,E=!1;break}O.set(D,W)}if(E)for(var H=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"
},z=m?3:1;z>0;z--){if("break"===H(z))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},be,we,{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=ye(t,{elementContext:"reference"}),s=ye(t,{altBoundary:!0}),f=xe(a,r),u=xe(s,o,i),c=Oe(f),p=Oe(u);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),je=n(61970),Ae=n.n(je),De=[],ke=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||De},a=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),s=a[0],f=a[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);f({styles:c(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:c(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),l=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Ae()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),d=r.useRef();return p((function(){d.current&&d.current.setOptions(l)}),[l]),p((function(){if(null!=e&&null!=t){var r=(n.createPopper||Ee)(e,t,l);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Pe=function(){},Me=function(){return Promise.resolve(null)},Se=[];function Re(e){var t=e.placement,n=void 0===t?"bottom":t,i=e.strategy,a=void 0===i?"absolute":i,f=e.modifiers,c=void 0===f?Se:f,p=e.referenceElement,l=e.onFirstUpdate,d=e.innerRef,m=e.children,h=r.useContext(o),v=r.useState(null),y=v[0],g=v[1],b=r.useState(null),w=b[0],x=b[1];r.useEffect((function(){u(d,y)}),[d,y]);var O=r.useMemo((function(){return{placement:n,strategy:a,onFirstUpdate:l,modifiers:[].concat(c,[{name:"arrow",enabled:null!=w,options:{element:w}}])}}),[n,a,l,c,w]),E=ke(p||h,y,O),j=E.state,A=E.styles,D=E.forceUpdate,k=E.update,P=r.useMemo((function(){return{ref:g,style:A.popper,placement:j?j.placement:n,hasPopperEscaped:j&&j.modifiersData.hide?j.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:j&&j.modifiersData.hide?j.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:A.arrow,ref:x},forceUpdate:D||Pe,update:k||Me}}),[g,x,n,j,A,k,D]);return s(m)(P)}var Be=n(91190),Le=n.n(Be);function We(e){var t=e.children,n=e.innerRef,o=r.useContext(i),a=r.useCallback((function(e){u(n,e),f(o,e)}),[n,o])
;return r.useEffect((function(){return function(){return u(n,null)}})),r.useEffect((function(){Le()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),s(t)({ref:a})}},91190:e=>{"use strict";var t=function(){};e.exports=t}}]);