vendor: 4,105 bytes, lines 1-2
1/*! For license information please see 8689.a17f5070038473942a82.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkdam=globalThis.webpackChunkdam||[]).push([[8689],{30744(e,t,n){n.d(t,{AO:()=>b,Kr:()=>y});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},u=function e(t,n,o){for(var l=[],u=Array.from(t);u.length;){var s=u.shift();if(!c(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),f=e(a.length?a:s.children,!0,o);o.flatten?l.push.apply(l,f):l.push({scopeParent:s,candidates:f})}else{i.call(s,r)&&o.filter(s)&&(n||!t.includes(s))&&l.push(s);var d=s.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(s),m=!c(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(s));if(d&&m){var p=e(!0===d?s.children:d.children,!0,o);o.flatten?l.push.apply(l,p):l.push({scopeParent:s,candidates:p})}else u.unshift.apply(u,s.children)}}return l},s=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},a=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!s(e)?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},d=function(e){return"INPUT"===e.tagName},m=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},p=function(e,t){return!(t.disabled||c(t)||function(e){return d(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return m(e)}else{if("function"==typeof r){for(var c=e;e;){var u=e.parentElement,s=l(e);if(u&&!u.shadowRoot&&!0===r(u))return m(e);e=e.assignedSlot?e.assignedSlot:u||s===e.ownerDocument?u:s.host}e=c}if(function(e){var t,n,r,o,i=e&&l(e),c=null===(t=i)||void 0===t?void 0:t.host,u=!1;if(i&&i!==e)for(u=!!(null!==(n=c)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(c)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!u&&c;){var s,a,f;u=!(null===(a=c=null===(s=i=l(c))||void 0===s?void 0:s.host)||void 0===a||null===(f=a.ownerDocument)||void 0===f||!f.contains(c))}return u}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},v=function(e,t){return!(function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||l(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}
2catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||a(t)<0||!p(e,t))},g=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},h=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,l=i?t.scopeParent:t,c=function(e,t){var n=a(e);return n<0&&t&&!s(e)?0:n}(l,i),u=i?e(t.candidates):l;0===c?i?n.push.apply(n,u):n.push(l):r.push({documentOrder:o,tabIndex:c,item:t,isScope:i,content:u})}),r.sort(f).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},y=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:v.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:g}):function(e,t,n){if(c(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o.filter(n)}(e,t.includeContainer,v.bind(null,t)),h(n)},b=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,r)&&v(t,e)}},46885(e,t,n){n.d(t,{UE:()=>q,RK:()=>P,ll:()=>L,rD:()=>W,__:()=>A,UU:()=>D,jD:()=>N,mG:()=>F,ER:()=>_,cY:()=>O,iD:()=>C,BN:()=>M,Ej:()=>I});var r=n(97193);function o(e,t,n){let{reference:o,floating:i}=e;const l=(0,r.TV)(t),c=(0,r.Dz)(t),u=(0,r.sq)(c),s=(0,r.C0)(t),a="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[u]/2-i[u]/2;let p;switch(s){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":p[c]-=m*(n&&a?-1:1);break;case"end":p[c]+=m*(n&&a?-1:1)}return p}async function i(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:l,rects:c,elements:u,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=(0,r._3)(t,e),v=(0,r.nI)(p),g=u[m?"floating"===d?"reference":"floating":d],h=(0,r.B1)(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(g)))||n?g:g.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:a,rootBoundary:f,strategy:s})),y="floating"===d?{x:o,y:i,width:c.floating.width,height:c.floating.height}:c.reference,b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),w=await(null==l.isElement?void 0:l.isElement(b))&&await(null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},E=(0,r.B1)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:b,strategy:s}):y);return{top:(h.top-E.top+v.top)/w.y,bottom:(E.bottom-h.bottom+v.bottom)/w.y,left:(h.left-E.left+v.left)/w.x,right:(E.right-h.right+v.right)/w.x}}function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(e){return r.r_.some(t=>e[t]>=0)}function u(e){const t=(0,r.jk)(...e.map(e=>e.left)),n=(0,r.jk)(...e.map(e=>e.top));return{x:t,y:n,width:(0,r.T9)(...e.map(e=>e.right))-t,height:(0,r.T9)(...e.map(e=>e.bottom))-n}}const s=new Set(["left","top"]);var a=n(86635);function f(e){const t=(0,a.L9)(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=(0,a.sb)(e),l=i?e.offsetWidth:n,c=i?e.offsetHeight:o,u=(0,r.LI)(n)!==l||(0,r.LI)(o)!==c;return u&&(n=l,o=c),{width:n,height:o,$:u}}function d(e){return(0,a.vq)(e)?e:e.contextElement}function m(e){const t=d(e);if(!(0,a.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:l}=f(t);let c=(l?(0,r.LI)(n.width):n.width)/o,u=(l?(0,r.LI)(n.height):n.height)/i;return c&&Number.isFinite(c)||(c=1),u&&Number.isFinite(u)||(u=1),{x:c,y:u}}const p=(0,r.Jx)(0);function v(e){const t=(0,a.zk)(e);return(0,a.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function g(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),l=d(e);let c=(0,r.Jx)(1);
2t&&(o?(0,a.vq)(o)&&(c=m(o)):c=m(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,a.zk)(e))&&t}(l,n,o)?v(l):(0,r.Jx)(0);let s=(i.left+u.x)/c.x,f=(i.top+u.y)/c.y,p=i.width/c.x,g=i.height/c.y;if(l){const e=(0,a.zk)(l),t=o&&(0,a.vq)(o)?(0,a.zk)(o):o;let n=e,r=(0,a._m)(n);for(;r&&o&&t!==n;){const e=m(r),t=r.getBoundingClientRect(),o=(0,a.L9)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,f*=e.y,p*=e.x,g*=e.y,s+=i,f+=l,n=(0,a.zk)(r),r=(0,a._m)(n)}}return(0,r.B1)({width:p,height:g,x:s,y:f})}function h(e,t){const n=(0,a.CP)(e).scrollLeft;return t?t.left+n:g((0,a.ep)(e)).left+n}function y(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:h(e,r)),y:r.top+t.scrollTop}}const b=new Set(["absolute","fixed"]);function w(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=(0,a.zk)(e),r=(0,a.ep)(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){i=o.width,l=o.height;const e=(0,a.Tc)();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:c,y:u}}(e,n);else if("document"===t)o=function(e){const t=(0,a.ep)(e),n=(0,a.CP)(e),o=e.ownerDocument.body,i=(0,r.T9)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.T9)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+h(e);const u=-n.scrollTop;return"rtl"===(0,a.L9)(o).direction&&(c+=(0,r.T9)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:c,y:u}}((0,a.ep)(e));else if((0,a.vq)(t))o=function(e,t){const n=g(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,a.sb)(e)?m(e):(0,r.Jx)(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{const n=v(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(o)}function E(e,t){const n=(0,a.$4)(e);return!(n===t||!(0,a.vq)(n)||(0,a.eu)(n))&&("fixed"===(0,a.L9)(n).position||E(n,t))}function x(e,t,n){const o=(0,a.sb)(t),i=(0,a.ep)(t),l="fixed"===n,c=g(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const s=(0,r.Jx)(0);function f(){s.x=h(i)}if(o||!o&&!l)if(("body"!==(0,a.mq)(t)||(0,a.ZU)(i))&&(u=(0,a.CP)(t)),o){const e=g(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&f();l&&!o&&i&&f();const d=!i||o||l?(0,r.Jx)(0):y(i,u);return{x:c.left+u.scrollLeft-s.x-d.x,y:c.top+u.scrollTop-s.y-d.y,width:c.width,height:c.height}}function R(e){return"static"===(0,a.L9)(e).position}function T(e,t){if(!(0,a.sb)(e)||"fixed"===(0,a.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,a.ep)(e)===n&&(n=n.ownerDocument.body),n}function k(e,t){const n=(0,a.zk)(e);if((0,a.Tf)(e))return n;if(!(0,a.sb)(e)){let t=(0,a.$4)(e);for(;t&&!(0,a.eu)(t);){if((0,a.vq)(t)&&!R(t))return t;t=(0,a.$4)(t)}return n}let r=T(e,t);for(;r&&(0,a.Lv)(r)&&R(r);)r=T(r,t);return r&&(0,a.eu)(r)&&R(r)&&!(0,a.sQ)(r)?n:r||(0,a.gJ)(e)||n}const C={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const l="fixed"===i,c=(0,a.ep)(o),u=!!t&&(0,a.Tf)(t.floating);if(o===c||u&&l)return n;let s={scrollLeft:0,scrollTop:0},f=(0,r.Jx)(1);const d=(0,r.Jx)(0),p=(0,a.sb)(o);if((p||!p&&!l)&&(("body"!==(0,a.mq)(o)||(0,a.ZU)(c))&&(s=(0,a.CP)(o)),(0,a.sb)(o))){const e=g(o);f=m(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const v=!c||p||l?(0,r.Jx)(0):y(c,s,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-s.scrollLeft*f.x+d.x+v.x,y:n.y*f.y-s.scrollTop*f.y+d.y+v.y}},getDocumentElement:a.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[..."clippingAncestors"===n?(0,a.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,a.v9)(e,[],!1).filter(e=>(0,a.vq)(e)&&"body"!==(0,a.mq)(e)),o=null;const i="fixed"===(0,a.L9)(e).position;let l=i?(0,a.$4)(e):e;for(;(0,a.vq)(l)&&!(0,a.eu)(l);){const t=(0,a.L9)(l),n=(0,a.sQ)(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&b.has(o.position)||(0,a.ZU)(l)&&!n&&E(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,a.$4)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],c=l[0],u=l.reduce((e,n)=>{const o=w(t,n,i);return e.top=(0,r.T9)(o.top,e.top),e.right=(0,r.jk)(o.right,e.right),e.bottom=(0,r.jk)(o.bottom,e.bottom),e.left=(0,r.T9)(o.left,e.left),e},w(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:k,getElementRects:async function(e){const t=this.getOffsetParent||k,n=this.getDimensions,r=await n(e.floating);return{reference:x(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=f(e);return{width:t,height:n}},getScale:m,isElement:a.vq,isRTL:function(e){return"rtl"===(0,a.L9)(e).direction}};function S(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function L(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,f=d(e),m=i||l?[...f?(0,a.v9)(f):[],...(0,a.v9)(t)]:[];
2m.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});const p=f&&u?function(e,t){let n,o=null;const i=(0,a.ep)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function c(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),l();const a=e.getBoundingClientRect(),{left:f,top:d,width:m,height:p}=a;if(u||t(),!m||!p)return;const v={rootMargin:-(0,r.RI)(d)+"px "+-(0,r.RI)(i.clientWidth-(f+m))+"px "+-(0,r.RI)(i.clientHeight-(d+p))+"px "+-(0,r.RI)(f)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,s))||1};let g=!0;function h(t){const r=t[0].intersectionRatio;if(r!==s){if(!g)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==r||S(a,e.getBoundingClientRect())||c(),g=!1}try{o=new IntersectionObserver(h,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(h,v)}o.observe(e)}(!0),l}(f,n):null;let v,h=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!s&&y.observe(f),y.observe(t));let b=s?g(e):null;return s&&function t(){const r=g(e);b&&!S(b,r)&&n(),b=r,v=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=y)||e.disconnect(),y=null,s&&cancelAnimationFrame(v)}}const A=i,O=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:l,placement:c,middlewareData:u}=t,a=await async function(e,t){const{placement:n,platform:o,elements:i}=e,l=await(null==o.isRTL?void 0:o.isRTL(i.floating)),c=(0,r.C0)(n),u=(0,r.Sg)(n),a="y"===(0,r.TV)(n),f=s.has(c)?-1:1,d=l&&a?-1:1,m=(0,r._3)(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&"number"==typeof g&&(v="end"===u?-1*g:g),a?{x:v*d,y:p*f}:{x:p*f,y:v*d}}(t,e);return c===(null==(n=u.offset)?void 0:n.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:i+a.x,y:l+a.y,data:{...a,placement:c}}}}},P=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,l;const{rects:c,middlewareData:u,placement:s,platform:a,elements:f}=t,{crossAxis:d=!1,alignment:m,allowedPlacements:p=r.DD,autoAlignment:v=!0,...g}=(0,r._3)(e,t),h=void 0!==m||p===r.DD?function(e,t,n){return(e?[...n.filter(t=>(0,r.Sg)(t)===e),...n.filter(t=>(0,r.Sg)(t)!==e)]:n.filter(e=>(0,r.C0)(e)===e)).filter(n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n)}(m||null,v,p):p,y=await i(t,g),b=(null==(n=u.autoPlacement)?void 0:n.index)||0,w=h[b];if(null==w)return{};const E=(0,r.w7)(w,c,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==w)return{reset:{placement:h[0]}};const x=[y[(0,r.C0)(w)],y[E[0]],y[E[1]]],R=[...(null==(o=u.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:x}],T=h[b+1];if(T)return{data:{index:b+1,overflows:R},reset:{placement:T}};const k=R.map(e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(l=k.filter(e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||k[0][0];return C!==s?{data:{index:b+1,overflows:R},reset:{placement:C}}:{}}}},M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:l}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,r._3)(e,t),f={x:n,y:o},d=await i(t,a),m=(0,r.TV)((0,r.C0)(l)),p=(0,r.PG)(m);let v=f[p],g=f[m];if(c){const e="y"===p?"bottom":"right",t=v+d["y"===p?"top":"left"],n=v-d[e];v=(0,r.qE)(t,v,n)}if(u){const e="y"===m?"bottom":"right",t=g+d["y"===m?"top":"left"],n=g-d[e];g=(0,r.qE)(t,g,n)}const h=s.fn({...t,[p]:v,[m]:g});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[p]:c,[m]:u}}}}}},D=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:l,middlewareData:c,rects:u,initialPlacement:s,platform:a,elements:f}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=(0,r._3)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(l),w=(0,r.TV)(s),E=(0,r.C0)(s)===s,x=await(null==a.isRTL?void 0:a.isRTL(f.floating)),R=p||(E||!h?[(0,r.bV)(s)]:(0,r.WJ)(s)),T="none"!==g;!p&&T&&R.push(...(0,r.lP)(s,h,g,x));const k=[s,...R],C=await i(t,y),S=[];let L=(null==(o=c.flip)?void 0:o.overflows)||[];if(d&&S.push(C[b]),m){const e=(0,r.w7)(l,u,x);S.push(C[e[0]],C[e[1]])}if(L=[...L,{placement:l,overflows:S}],!S.every(e=>e<=0)){var A,O;const e=((null==(A=c.flip)?void 0:A.index)||0)+1,t=k[e];if(t&&("alignment"!==m||w===(0,r.TV)(t)||L.every(e=>e.overflows[0]>0&&(0,r.TV)(e.placement)===w)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(O=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(v){case"bestFit":{var P;const e=null==(P=L.filter(e=>{if(T){const t=(0,r.TV)(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}}},I=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:l,rects:c,platform:u,elements:s}=t,{apply:a=()=>{},...f}=(0,r._3)(e,t),d=await i(t,f),m=(0,r.C0)(l),p=(0,r.Sg)(l),v="y"===(0,r.TV)(l),{width:g,height:h}=c.floating;let y,b;"top"===m||"bottom"===m?(y=m,b=p===(await(null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(b=m,y="end"===p?"top":"bottom");const w=h-d.top-d.bottom,E=g-d.left-d.right,x=(0,r.jk)(h-d[y],w),R=(0,r.jk)(g-d[b],E),T=!t.middlewareData.shift;let k=x,C=R;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=E),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(k=w),T&&!p){const e=(0,r.T9)(d.left,0),t=(0,r.T9)(d.right,0),n=(0,r.T9)(d.top,0),o=(0,r.T9)(d.bottom,0);v?C=g-2*(0!==e||0!==t?e+t:(0,r.T9)(d.left,d.right)):k=h-2*(0!==n||0!==o?n+o:(0,r.T9)(d.top,d.bottom))}await a({...t,availableWidth:C,availableHeight:k});const S=await u.getDimensions(s.floating);return g!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},N=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...u}=(0,r._3)(e,t);switch(o){case"referenceHidden":{const e=l(await i(t,{...u,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c(e)}}}case"escaped":{const e=l(await i(t,{...u,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:c(e)}}}default:return{}}}}},q=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:l,platform:c,elements:u,middlewareData:s}=t,{element:a,padding:f=0}=(0,r._3)(e,t)||{};if(null==a)return{};const d=(0,r.nI)(f),m={x:n,y:o},p=(0,r.Dz)(i),v=(0,r.sq)(p),g=await c.getDimensions(a),h="y"===p,y=h?"top":"left",b=h?"bottom":"right",w=h?"clientHeight":"clientWidth",E=l.reference[v]+l.reference[p]-m[p]-l.floating[v],x=m[p]-l.reference[p],R=await(null==c.getOffsetParent?void 0:c.getOffsetParent(a));let T=R?R[w]:0;T&&await(null==c.isElement?void 0:c.isElement(R))||(T=u.floating[w]||l.floating[v]);const k=E/2-x/2,C=T/2-g[v]/2-1,S=(0,r.jk)(d[y],C),L=(0,r.jk)(d[b],C),A=S,O=T-g[v]-L,P=T/2-g[v]/2+k,M=(0,r.qE)(A,P,O),D=!s.arrow&&null!=(0,r.Sg)(i)&&P!==M&&l.reference[v]/2-(P<A?S:L)-g[v]/2<0,I=D?P<A?P-A:P-O:0;return{[p]:m[p]+I,data:{[p]:M,centerOffset:P-M-I,...D&&{alignmentOffset:I}},reset:D}}}),F=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:l,strategy:c}=t,{padding:s=2,x:a,y:f}=(0,r._3)(e,t),d=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]),m=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(e=>(0,r.B1)(u(e)))}(d),p=(0,r.B1)(u(d)),v=(0,r.nI)(s),g=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=a&&null!=f)return m.find(e=>a>e.left-v.left&&a<e.right+v.right&&f>e.top-v.top&&f<e.bottom+v.bottom)||p;if(m.length>=2){if("y"===(0,r.TV)(n)){const e=m[0],t=m[m.length-1],o="top"===(0,r.C0)(n),i=e.top,l=t.bottom,c=o?e.left:t.left,u=o?e.right:t.right;return{top:i,bottom:l,left:c,right:u,width:u-c,height:l-i,x:c,y:i}}
2const e="left"===(0,r.C0)(n),t=(0,r.T9)(...m.map(e=>e.right)),o=(0,r.jk)(...m.map(e=>e.left)),i=m.filter(n=>e?n.left===o:n.right===t),l=i[0].top,c=i[i.length-1].bottom;return{top:l,bottom:c,left:o,right:t,width:t-o,height:c-l,x:o,y:l}}return p}},floating:o.floating,strategy:c});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},_=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:l,middlewareData:c}=t,{offset:u=0,mainAxis:a=!0,crossAxis:f=!0}=(0,r._3)(e,t),d={x:n,y:o},m=(0,r.TV)(i),p=(0,r.PG)(m);let v=d[p],g=d[m];const h=(0,r._3)(u,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const e="y"===p?"height":"width",t=l.reference[p]-l.floating[e]+y.mainAxis,n=l.reference[p]+l.reference[e]-y.mainAxis;v<t?v=t:v>n&&(v=n)}if(f){var b,w;const e="y"===p?"width":"height",t=s.has((0,r.C0)(i)),n=l.reference[m]-l.floating[e]+(t&&(null==(b=c.offset)?void 0:b[m])||0)+(t?0:y.crossAxis),o=l.reference[m]+l.reference[e]+(t?0:(null==(w=c.offset)?void 0:w[m])||0)-(t?y.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[p]:v,[m]:g}}}},W=(e,t,n)=>{const r=new Map,i={platform:C,...n},l={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:c}=n,u=l.filter(Boolean),s=await(null==c.isRTL?void 0:c.isRTL(t));let a=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=o(a,r,s),m=r,p={},v=0;for(let n=0;n<u.length;n++){const{name:l,fn:g}=u[n],{x:h,y,data:b,reset:w}=await g({x:f,y:d,initialPlacement:r,placement:m,strategy:i,middlewareData:p,rects:a,platform:c,elements:{reference:e,floating:t}});f=null!=h?h:f,d=null!=y?y:d,p={...p,[l]:{...p[l],...b}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(a=!0===w.rects?await c.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:f,y:d}=o(a,m,s))),n=-1)}return{x:f,y:d,placement:m,strategy:i,middlewareData:p}})(e,t,{...i,platform:l})}},34743(e,t,n){n.d(t,{we:()=>f});var r=n(46885),o=n(56575),i=n(26033),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!c(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||c(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){const n=u(e);return Math.round(t*n)/n}function a(e){const t=o.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:m,floating:p}={},transform:v=!0,whileElementsMounted:g,open:h}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,E]=o.useState(f);c(w,f)||E(f);const[x,R]=o.useState(null),[T,k]=o.useState(null),C=o.useCallback(e=>{e!==O.current&&(O.current=e,R(e))},[]),S=o.useCallback(e=>{e!==P.current&&(P.current=e,k(e))},[]),L=m||x,A=p||T,O=o.useRef(null),P=o.useRef(null),M=o.useRef(y),D=null!=g,I=a(g),N=a(d),q=a(h),F=o.useCallback(()=>{if(!O.current||!P.current)return;const e={placement:t,strategy:n,middleware:w};N.current&&(e.platform=N.current),(0,r.rD)(O.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==q.current};_.current&&!c(M.current,t)&&(M.current=t,i.flushSync(()=>{b(t)}))})},[w,t,n,N,q]);l(()=>{!1===h&&M.current.isPositioned&&(M.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[h]);const _=o.useRef(!1);l(()=>(_.current=!0,()=>{_.current=!1}),[]),l(()=>{if(L&&(O.current=L),A&&(P.current=A),L&&A){if(I.current)return I.current(L,A,F);F()}},[L,A,F,I,D]);const W=o.useMemo(()=>({reference:O,floating:P,setReference:C,setFloating:S}),[C,S]),j=o.useMemo(()=>({reference:L,floating:A}),[L,A]),B=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=s(j.floating,y.x),r=s(j.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...u(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,j.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:F,refs:W,elements:j,floatingStyles:B}),[y,F,W,j,B])}const d=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{};var i}});n.d(t,["BN",0,(e,t)=>({...(0,r.BN)(e),options:[e,t]}),"ER",0,(e,t)=>({...(0,r.ER)(e),options:[e,t]}),"Ej",0,(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),"RK",0,(e,t)=>({...(0,r.RK)(e),options:[e,t]}),"UE",0,(e,t)=>({...d(e),options:[e,t]}),"UU",0,(e,t)=>({...(0,r.UU)(e),options:[e,t]}),"cY",0,(e,t)=>({...(0,r.cY)(e),options:[e,t]}),"jD",0,(e,t)=>({...(0,r.jD)(e),options:[e,t]}),"mG",0,(e,t)=>({...(0,r.mG)(e),options:[e,t]})])},58689(e,t,n){let r;n.d(t,{DL:()=>Ae,It:()=>Ce,Mk:()=>M,SV:()=>a,XF:()=>oe,bv:()=>Te,ck:()=>q,iB:()=>Pe,iQ:()=>we,kp:()=>pe,ph:()=>h,s3:()=>fe,s9:()=>ye,we:()=>be});var o=n(56575),i=n(66984),l=n(86635),c=n(30744),u=n(26033),s=n(34743);function a(e){return o.useMemo(()=>e.every(e=>null==e)?null:t=>
2{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}const f={...r||(r=n.t(o,2))},d=f.useInsertionEffect||(e=>e());function m(e){const t=o.useRef(()=>{});return d(()=>{t.current=e}),o.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var p="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function v(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const g=o.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function h(e){const{children:t,elementsRef:n,labelsRef:r}=e,[i,l]=o.useState(()=>new Map),c=o.useCallback(e=>{l(t=>new Map(t).set(e,null))},[]),u=o.useCallback(e=>{l(t=>{const n=new Map(t);return n.delete(e),n})},[]);return p(()=>{const e=new Map(i);Array.from(e.keys()).sort(v).forEach((t,n)=>{e.set(t,n)}),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(i,e)||l(e)},[i]),o.createElement(g.Provider,{value:o.useMemo(()=>({register:c,unregister:u,map:i,elementsRef:n,labelsRef:r}),[c,u,i,n,r])},t)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}let b=!1,w=0;const E=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+w++,x=f.useId||function(){const[e,t]=o.useState(()=>b?E():void 0);return p(()=>{null==e&&t(E())},[]),o.useEffect(()=>{b=!0},[]),e},R=o.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:c}},width:u=14,height:s=7,tipRadius:a=0,strokeWidth:f=0,staticOffset:d,stroke:m,d:v,style:{transform:g,...h}={},...b}=e,w=x(),[E,R]=o.useState(!1);if(p(()=>{r&&"rtl"===(0,l.L9)(r).direction&&R(!0)},[r]),!r)return null;const[T,k]=n.split("-"),C="top"===T||"bottom"===T;let S=d;(C&&null!=c&&c.x||!C&&null!=c&&c.y)&&(S=null);const L=2*f,A=L/2,O=u/2*(a/-8+1),P=s/2*a/4,M=!!v,D=S&&"end"===k?"bottom":"top";let I=S&&"end"===k?"right":"left";S&&E&&(I="end"===k?"left":"right");const N=null!=(null==i?void 0:i.x)?S||i.x:"",q=null!=(null==i?void 0:i.y)?S||i.y:"",F=v||"M0,0 H"+u+" L"+(u-O)+","+(s-P)+" Q"+u/2+","+s+" "+O+","+(s-P)+" Z",_={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[T];return o.createElement("svg",y({},b,{"aria-hidden":!0,ref:t,width:M?u:u+L,height:u,viewBox:"0 0 "+u+" "+(s>u?s:u),style:{position:"absolute",pointerEvents:"none",[I]:N,[D]:q,[T]:C||M?"100%":"calc(100% - "+L/2+"px)",transform:[_,g].filter(e=>!!e).join(" "),...h}}),L>0&&o.createElement("path",{clipPath:"url(#"+w+")",fill:"none",stroke:m,strokeWidth:L+(v?0:1),d:F}),o.createElement("path",{stroke:L&&!v?b.fill:"none",d:F}),o.createElement("clipPath",{id:w},o.createElement("rect",{x:-A,y:A*(M?-1:1),width:u+L,height:u})))});const T=o.createContext(null),k=o.createContext(null),C=()=>{var e;return(null==(e=o.useContext(T))?void 0:e.id)||null},S=()=>o.useContext(k);function L(e){return"data-floating-ui-"+e}function A(e){const t=(0,o.useRef)(e);return p(()=>{t.current=e}),t}const O=L("safe-polygon");function P(e,t,n){return n&&!(0,i.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function M(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:c,events:u,elements:s}=e,{enabled:a=!0,delay:f=0,handleClose:d=null,mouseOnly:v=!1,restMs:g=0,move:h=!0}=t,y=S(),b=C(),w=A(d),E=A(f),x=A(n),R=o.useRef(),T=o.useRef(-1),k=o.useRef(),L=o.useRef(-1),M=o.useRef(!0),D=o.useRef(!1),I=o.useRef(()=>{}),N=o.useRef(!1),q=o.useCallback(()=>{var e;const t=null==(e=c.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[c]);o.useEffect(()=>{if(a)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(T.current),clearTimeout(L.current),M.current=!0,N.current=!1)}},[a,u]),o.useEffect(()=>{if(!a)return;if(!w.current)return;if(!n)return;function e(e){q()&&r(!1,e,"hover")}const t=(0,i.YE)(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,a,w,q]);const F=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=P(E.current,"close",R.current);
2o&&!k.current?(clearTimeout(T.current),T.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(T.current),r(!1,e,n))},[E,r]),_=m(()=>{I.current(),k.current=void 0}),W=m(()=>{if(D.current){const e=(0,i.YE)(s.floating).body;e.style.pointerEvents="",e.removeAttribute(O),D.current=!1}}),j=m(()=>!!c.current.openEvent&&["click","mousedown"].includes(c.current.openEvent.type));o.useEffect(()=>{if(a&&(0,l.vq)(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",u),null==(e=s.floating)||e.addEventListener("mouseleave",u),h&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",o),()=>{var e;n&&r.removeEventListener("mouseleave",u),null==(e=s.floating)||e.removeEventListener("mouseleave",u),h&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",o)}}function t(e){if(clearTimeout(T.current),M.current=!1,v&&!(0,i.Go)(R.current)||g>0&&!P(E.current,"open"))return;const t=P(E.current,"open",R.current);t?T.current=window.setTimeout(()=>{x.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function o(e){if(j())return;I.current();const t=(0,i.YE)(s.floating);if(clearTimeout(L.current),N.current=!1,w.current&&c.current.floatingContext){n||clearTimeout(T.current),k.current=w.current({...c.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){W(),_(),j()||F(e,!0,"safe-polygon")}});const r=k.current;return t.addEventListener("mousemove",r),void(I.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==R.current||!(0,i.gR)(s.floating,e.relatedTarget))&&F(e)}function u(e){j()||c.current.floatingContext&&(null==w.current||w.current({...c.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){W(),_(),j()||F(e)}})(e))}},[s,a,e,v,g,h,F,_,W,r,n,x,y,E,w,c,j]),p(()=>{var e;if(a&&n&&null!=(e=w.current)&&e.__options.blockPointerEvents&&q()){D.current=!0;const e=s.floating;if((0,l.vq)(s.domReference)&&e){var t;const n=(0,i.YE)(s.floating).body;n.setAttribute(O,"");const r=s.domReference,o=null==y||null==(t=y.nodesRef.current.find(e=>e.id===b))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,b,s,y,w,q]),p(()=>{n||(R.current=void 0,N.current=!1,_(),W())},[n,_,W]),o.useEffect(()=>()=>{_(),clearTimeout(T.current),clearTimeout(L.current),W()},[a,s.domReference,_,W]);const B=o.useMemo(()=>{function e(e){R.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){M.current||x.current||r(!0,t,"hover")}v&&!(0,i.Go)(R.current)||n||0===g||N.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(L.current),"touch"===R.current?o():(N.current=!0,L.current=window.setTimeout(o,g)))}}},[v,r,n,x,g]),Y=o.useMemo(()=>({onMouseEnter(){clearTimeout(T.current)},onMouseLeave(e){j()||F(e.nativeEvent,!1)}}),[F,j]);return o.useMemo(()=>a?{reference:B,floating:Y}:{},[a,B,Y])}const D=()=>{},I=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:D,setState:D,isInstantPhase:!1}),N=()=>o.useContext(I);function q(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:l=!0}=t,c=null!=i?i:o,u=N(),{currentId:s,setCurrentId:a,initialDelay:f,setState:d,timeoutMs:m}=u;return p(()=>{l&&s&&(d({delay:{open:1,close:P(f,"close")}}),s!==c&&r(!1))},[l,c,r,d,s,f]),p(()=>{function e(){r(!1),d({delay:f,currentId:null})}if(l&&s&&!n&&s===c){if(m){const t=window.setTimeout(e,m);return()=>{clearTimeout(t)}}e()}},[l,n,d,s,c,r,f,m]),p(()=>{l&&a!==D&&n&&a(c)},[l,n,a,c]),u}let F=0;function _(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(F);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():F=requestAnimationFrame(i)}function W(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let j=new WeakMap,B=new WeakSet,Y={},V=0;const z=e=>e&&(e.host||z(e.parentNode));function U(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(0,i.YE)(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,c=(u=t,e.map(e=>{if(u.contains(e))return e;const t=z(e);return u.contains(t)?t:null}).filter(e=>null!=e));var u;const s=new Set,a=new Set(c),f=[];Y[o]||(Y[o]=new WeakMap);const d=Y[o];
2return c.forEach(function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!a.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,l.mq)(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(j.get(t)||0)+1,l=(d.get(t)||0)+1;j.set(t,r),d.set(t,l),f.push(t),1===r&&n&&B.add(t),1===l&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}})}(t),s.clear(),V++,()=>{f.forEach(e=>{const t=(j.get(e)||0)-1,n=(d.get(e)||0)-1;j.set(e,t),d.set(e,n),t||(!B.has(e)&&i&&e.removeAttribute(i),B.delete(e)),n||e.removeAttribute(o)}),V--,V||(j=new WeakMap,j=new WeakMap,B=new WeakSet,Y={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const H=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function K(e,t){const n=(0,c.Kr)(e,H());"prev"===t&&n.reverse();const r=n.indexOf((0,i.RS)((0,i.YE)(e)));return n.slice(r+1)[0]}function $(){return K(document.body,"next")}function G(){return K(document.body,"prev")}function J(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,i.gR)(n,r)}function X(e){(0,c.Kr)(e,H()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Z(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const Q={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function ee(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const te=o.forwardRef(function(e,t){const[n,r]=o.useState();p(()=>((0,i.nr)()&&r("button"),document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}),[]);const l={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[L("focus-guard")]:"",style:Q};return o.createElement("span",y({},e,l))}),ne=o.createContext(null),re=L("portal");function oe(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,c=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=x(),i=ie(),[c,u]=o.useState(null),s=o.useRef(null);return p(()=>()=>{null==c||c.remove(),queueMicrotask(()=>{s.current=null})},[c]),p(()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(re,""),e.appendChild(n),s.current=n,u(n)},[t,r]),p(()=>
2{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!(0,l.vq)(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const c=document.createElement("div");c.id=r,c.setAttribute(re,""),e=o||e,e.appendChild(c),s.current=c,u(c)},[t,n,r,i]),c}({id:n,root:r}),[s,a]=o.useState(null),f=o.useRef(null),d=o.useRef(null),m=o.useRef(null),v=o.useRef(null),g=null==s?void 0:s.modal,h=null==s?void 0:s.open,y=!!s&&!s.modal&&s.open&&i&&!(!r&&!c);return o.useEffect(()=>{if(c&&i&&!g)return c.addEventListener("focusin",e,!0),c.addEventListener("focusout",e,!0),()=>{c.removeEventListener("focusin",e,!0),c.removeEventListener("focusout",e,!0)};function e(e){c&&J(e)&&("focusin"===e.type?Z:X)(c)}},[c,i,g]),o.useEffect(()=>{c&&(h||Z(c))},[h,c]),o.createElement(ne.Provider,{value:o.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:f,afterOutsideRef:d,beforeInsideRef:m,afterInsideRef:v,portalNode:c,setFocusManagerState:a}),[i,c])},y&&c&&o.createElement(te,{"data-type":"outside",ref:f,onFocus:e=>{if(J(e,c)){var t;null==(t=m.current)||t.focus()}else{const e=G()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),y&&c&&o.createElement("span",{"aria-owns":c.id,style:Q}),c&&u.createPortal(t,c),y&&c&&o.createElement(te,{"data-type":"outside",ref:d,onFocus:e=>{if(J(e,c)){var t;null==(t=v.current)||t.focus()}else{const t=$()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const ie=()=>o.useContext(ne),le="data-floating-ui-focusable";let ce=[];function ue(e){ce=ce.filter(e=>e.isConnected);let t=e;if(t&&"body"!==(0,l.mq)(t)){if(!(0,c.AO)(t,H())){const e=(0,c.Kr)(t,H())[0];e&&(t=e)}ce.push(t),ce.length>20&&(ce=ce.slice(-20))}}function se(){return ce.slice().reverse().find(e=>e.isConnected)}const ae=o.forwardRef(function(e,t){return o.createElement("button",y({},e,{type:"button",ref:t,tabIndex:-1,style:Q}))});function fe(e){const{context:t,children:n,disabled:r=!1,order:u=["content"],guards:s=!0,initialFocus:a=0,returnFocus:f=!0,restoreFocus:d=!1,modal:v=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:h=!0}=e,{open:y,refs:b,nodeId:w,onOpenChange:E,events:x,dataRef:R,floatingId:T,elements:{domReference:k,floating:C}}=t,O="number"==typeof a&&a<0,P=(0,i.WZ)(k)&&O,M="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||s,D=A(u),I=A(a),N=A(f),q=S(),F=ie(),j=o.useRef(null),B=o.useRef(null),Y=o.useRef(!1),V=o.useRef(!1),z=o.useRef(-1),K=null!=F,X=(ne=C)?ne.hasAttribute(le)?ne:ne.querySelector("["+le+"]")||ne:null,Z=m(function(e){return void 0===e&&(e=X),e?(0,c.Kr)(e,H()):[]}),ee=m(e=>{const t=Z(e);return D.current.map(e=>k&&"reference"===e?k:X&&"floating"===e?X:t).filter(Boolean).flat()});var ne;function re(e){return!r&&g&&v?o.createElement(ae,{ref:"start"===e?j:B,onClick:e=>E(!1,e.nativeEvent)},"string"==typeof g?g:"Dismiss"):null}o.useEffect(()=>{if(r)return;if(!v)return;function e(e){if("Tab"===e.key){(0,i.gR)(X,(0,i.RS)((0,i.YE)(X)))&&0===Z().length&&!P&&(0,i.jo)(e);const t=ee(),n=(0,i.EW)(e);"reference"===D.current[0]&&n===k&&((0,i.jo)(e),e.shiftKey?_(t[t.length-1]):_(t[1])),"floating"===D.current[1]&&n===X&&e.shiftKey&&((0,i.jo)(e),_(t[0]))}}const t=(0,i.YE)(X);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,k,X,v,D,P,Z,ee]),o.useEffect(()=>{if(!r&&C)return C.addEventListener("focusin",e),()=>{C.removeEventListener("focusin",e)};function e(e){const t=(0,i.EW)(e),n=Z().indexOf(t);-1!==n&&(z.current=n)}},[r,C,Z]),o.useEffect(()=>{if(!r&&h)return C&&(0,l.sb)(k)?(k.addEventListener("focusout",t),k.addEventListener("pointerdown",e),C.addEventListener("focusout",t),()=>{k.removeEventListener("focusout",t),k.removeEventListener("pointerdown",e),C.removeEventListener("focusout",t)}):void 0;function e(){V.current=!0,setTimeout(()=>{V.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!((0,i.gR)(k,t)||(0,i.gR)(C,t)||(0,i.gR)(t,C)||(0,i.gR)(null==F?void 0:F.portalNode,t)||null!=t&&t.hasAttribute(L("focus-guard"))||q&&(W(q.nodesRef.current,w).find(e=>{var n,r;return(0,i.gR)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,i.gR)(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(q.nodesRef.current,w).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(d&&n&&(0,i.RS)((0,i.YE)(X))===(0,i.YE)(X).body){(0,l.sb)(X)&&X.focus();const e=z.current,t=Z(),n=t[e]||t[t.length-1]||X;(0,l.sb)(n)&&n.focus()}!P&&v||!t||!n||V.current||t===se()||(Y.current=!0,E(!1,e,"focus-out"))})}},[r,k,C,X,v,w,q,F,E,h,d,Z,P]),o.useEffect(()=>{var e;if(r)return;const t=Array.from((null==F||null==(e=F.portalNode)?void 0:e.querySelectorAll("["+L("portal")+"]"))||[]);
2if(C){const e=[C,...t,j.current,B.current,D.current.includes("reference")||P?k:null].filter(e=>null!=e),n=v||P?U(e,M,!M):U(e);return()=>{n()}}},[r,k,C,v,D,F,P,M]),p(()=>{if(r||!(0,l.sb)(X))return;const e=(0,i.YE)(X),t=(0,i.RS)(e);queueMicrotask(()=>{const e=ee(X),n=I.current,r=("number"==typeof n?e[n]:n.current)||X,o=(0,i.gR)(X,t);O||o||!y||_(r,{preventScroll:r===X})})},[r,y,X,O,ee,I]),p(()=>{if(r||!X)return;let e=!1;const t=(0,i.YE)(X),n=(0,i.RS)(t);let o=R.current.openEvent;function c(t){let{open:n,reason:r,event:l,nested:c}=t;n&&(o=l),"escape-key"===r&&b.domReference.current&&ue(b.domReference.current),"hover"===r&&"mouseleave"===l.type&&(Y.current=!0),"outside-press"===r&&(c?(Y.current=!1,e=!0):Y.current=!((0,i.YF)(l)||(0,i.Pg)(l)))}ue(n),x.on("openchange",c);const u=t.createElement("span");return u.setAttribute("tabindex","-1"),u.setAttribute("aria-hidden","true"),Object.assign(u.style,Q),K&&k&&k.insertAdjacentElement("afterend",u),()=>{x.off("openchange",c);const n=(0,i.RS)(t),r=(0,i.gR)(C,n)||q&&W(q.nodesRef.current,w).some(e=>{var t;return(0,i.gR)(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o&&["click","mousedown"].includes(o.type))&&b.domReference.current&&ue(b.domReference.current);const s="boolean"==typeof N.current?se()||u:N.current.current||u;queueMicrotask(()=>{N.current&&!Y.current&&(0,l.sb)(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),u.remove()})}},[r,C,X,N,R,b,x,q,w,K,k]),o.useEffect(()=>{queueMicrotask(()=>{Y.current=!1})},[r]),p(()=>
2{if(!r&&F)return F.setFocusManagerState({modal:v,closeOnFocusOut:h,open:y,onOpenChange:E,refs:b}),()=>{F.setFocusManagerState(null)}},[r,F,v,y,E,b,h]),p(()=>{if(r)return;if(!X)return;if("function"!=typeof MutationObserver)return;if(O)return;const e=()=>{const e=X.getAttribute("tabindex"),t=Z(),n=(0,i.RS)((0,i.YE)(C)),r=t.indexOf(n);-1!==r&&(z.current=r),D.current.includes("floating")||n!==b.domReference.current&&0===t.length?"0"!==e&&X.setAttribute("tabindex","0"):"-1"!==e&&X.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(X,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,C,X,b,D,Z,O]);const oe=!r&&M&&(!v||!P)&&(K||v);return o.createElement(o.Fragment,null,oe&&o.createElement(te,{"data-type":"inside",ref:null==F?void 0:F.beforeInsideRef,onFocus:e=>{if(v){const e=ee();_("reference"===u[0]?e[0]:e[e.length-1])}else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(Y.current=!1,J(e,F.portalNode)){const e=$()||k;null==e||e.focus()}else{var t;null==(t=F.beforeOutsideRef.current)||t.focus()}}}),!P&&re("start"),n,re("end"),oe&&o.createElement(te,{"data-type":"inside",ref:null==F?void 0:F.afterInsideRef,onFocus:e=>{if(v)_(ee()[0]);else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(h&&(Y.current=!0),J(e,F.portalNode)){const e=G()||k;null==e||e.focus()}else{var t;null==(t=F.afterOutsideRef.current)||t.focus()}}}))}function de(e){return(0,l.sb)(e.target)&&"BUTTON"===e.target.tagName}function me(e){return(0,i.$u)(e)}function pe(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:l,elements:{domReference:c}}=e,{enabled:u=!0,event:s="click",toggle:a=!0,ignoreMouse:f=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=t,p=o.useRef(),v=o.useRef(!1),g=o.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&((0,i.Go)(t,!0)&&f||(!n||!a||l.current.openEvent&&m&&"mousedown"!==l.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===s&&p.current?p.current=void 0:(0,i.Go)(t,!0)&&f||(!n||!a||l.current.openEvent&&m&&"click"!==l.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||de(e)||(" "!==e.key||me(c)||(e.preventDefault(),v.current=!0),"Enter"===e.key&&r(!n||!a,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||de(e)||me(c)||" "===e.key&&v.current&&(v.current=!1,r(!n||!a,e.nativeEvent,"click"))}}),[l,c,s,f,d,r,n,m,a]);return o.useMemo(()=>u?{reference:g}:{},[u,g])}const ve={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ge={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},he=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ye(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:c,dataRef:u}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:p=!1,referencePressEvent:v="pointerdown",ancestorScroll:g=!1,bubbles:h,capture:y}=t,b=S(),w=m("function"==typeof f?f:()=>!1),E="function"==typeof f?w:f,x=o.useRef(!1),R=o.useRef(!1),{escapeKey:T,outsidePress:k}=he(h),{escapeKey:C,outsidePress:A}=he(y),O=o.useRef(!1),P=m(e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(O.current)return;const o=null==(t=u.current.floatingContext)?void 0:t.nodeId,l=b?W(b.nodesRef.current,o):[];if(!T&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,(0,i.O_)(e)?e.nativeEvent:e,"escape-key")}),M=m(e=>{var t;const n=()=>{var t;P(e),null==(t=(0,i.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,i.EW)(e))||t.addEventListener("keydown",n)}),D=m(e=>{var t;const n=x.current;x.current=!1;const o=R.current;if(R.current=!1,"click"===d&&o)return;if(n)return;if("function"==typeof E&&!E(e))return;const s=(0,i.EW)(e),a="["+L("inert")+"]",f=(0,i.YE)(c.floating).querySelectorAll(a);let m=(0,l.vq)(s)?s:null;for(;m&&!(0,l.eu)(m);){const e=(0,l.$4)(m);if((0,l.eu)(e)||!(0,l.vq)(e))break;m=e}if(f.length&&(0,l.vq)(s)&&!(0,i.tZ)(s)&&!(0,i.gR)(s,c.floating)&&Array.from(f).every(e=>!(0,i.gR)(m,e)))return;if((0,l.sb)(s)&&q){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===(0,l.L9)(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=u.current.floatingContext)?void 0:t.nodeId,v=b&&W(b.no
2desRef.current,p).some(t=>{var n;return(0,i.F2)(e,null==(n=t.context)?void 0:n.elements.floating)});if((0,i.F2)(e,c.floating)||(0,i.F2)(e,c.domReference)||v)return;const g=b?W(b.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),I=m(e=>{var t;const n=()=>{var t;D(e),null==(t=(0,i.EW)(e))||t.removeEventListener(d,n)};null==(t=(0,i.EW)(e))||t.addEventListener(d,n)});o.useEffect(()=>{if(!n||!s)return;u.current.__escapeKeyBubbles=T,u.current.__outsidePressBubbles=k;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),O.current=!0}function f(){e=window.setTimeout(()=>{O.current=!1},(0,l.Tc)()?5:0)}const m=(0,i.YE)(c.floating);a&&(m.addEventListener("keydown",C?M:P,C),m.addEventListener("compositionstart",o),m.addEventListener("compositionend",f)),E&&m.addEventListener(d,A?I:D,A);let p=[];return g&&((0,l.vq)(c.domReference)&&(p=(0,l.v9)(c.domReference)),(0,l.vq)(c.floating)&&(p=p.concat((0,l.v9)(c.floating))),!(0,l.vq)(c.reference)&&c.reference&&c.reference.contextElement&&(p=p.concat((0,l.v9)(c.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(m.removeEventListener("keydown",C?M:P,C),m.removeEventListener("compositionstart",o),m.removeEventListener("compositionend",f)),E&&m.removeEventListener(d,A?I:D,A),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[u,c,a,E,d,n,r,g,s,T,k,P,C,M,D,A,I]),o.useEffect(()=>{x.current=!1},[E,d]);const N=o.useMemo(()=>({onKeyDown:P,[ve[v]]:e=>{p&&r(!1,e.nativeEvent,"reference-press")}}),[P,r,p,v]),q=o.useMemo(()=>({onKeyDown:P,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[ge[d]]:()=>{x.current=!0}}),[P,d]);return o.useMemo(()=>s?{reference:N,floating:q}:{},[s,N,q])}function be(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=x(),l=o.useRef({}),[c]=o.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),u=null!=C(),[s,a]=o.useState(r.reference),f=m((e,t,r)=>{l.current.openEvent=e?t:void 0,c.emit("openchange",{open:e,event:t,reason:r,nested:u}),null==n||n(e,t,r)}),d=o.useMemo(()=>({setPositionReference:a}),[]),p=o.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return o.useMemo(()=>({dataRef:l,open:t,onOpenChange:f,elements:p,events:c,floatingId:i,refs:d}),[t,f,p,c,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[c,u]=o.useState(null),[a,f]=o.useState(null),d=(null==i?void 0:i.domReference)||c,v=o.useRef(null),g=S();p(()=>{d&&(v.current=d)},[d]);const h=(0,s.we)({...e,elements:{...i,...a&&{reference:a}}}),y=o.useCallback(e=>{const t=(0,l.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f(t),h.refs.setReference(t)},[h.refs]),b=o.useCallback(e=>{((0,l.vq)(e)||null===e)&&(v.current=e,u(e)),((0,l.vq)(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!(0,l.vq)(e))&&h.refs.setReference(e)},[h.refs]),w=o.useMemo(()=>({...h.refs,setReference:b,setPositionReference:y,domReference:v}),[h.refs,b,y]),E=o.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),R=o.useMemo(()=>({...h,...r,refs:w,elements:E,nodeId:t}),[h,w,E,t,r]);return p(()=>{r.dataRef.current.floatingContext=R;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===t);e&&(e.context=R)}),o.useMemo(()=>({...h,context:R,refs:w,elements:E}),[h,w,E,R])}function we(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:c,dataRef:u,elements:s}=e,{enabled:a=!0,visibleOnly:f=!0}=t,d=o.useRef(!1),m=o.useRef(),p=o.useRef(!0);o.useEffect(()=>{if(!a)return;const e=(0,l.zk)(s.domReference);function t(){!n&&(0,l.sb)(s.domReference)&&s.domReference===(0,i.RS)((0,i.YE)(s.domReference))&&(d.current=!0)}function r(){p.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[s.domReference,n,a]),o.useEffect(()=>{if(a)return c.on("openchange",e),()=>{c.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(d.current=!0)}},[c,a]),o.useEffect(()=>()=>{clearTimeout(m.current)},[]);const v=o.useMemo(()=>({onPointerDown(e){(0,i.Pg)(e.nativeEvent)||(p.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;const t=(0,i.EW)(e.nativeEvent);if(f&&(0,l.vq)(t))try{if((0,i.nr)()&&(0,i.cX)())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!p.current&&!(0,i.$u)(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=(0,l.vq)(t)&&t.hasAttribute(L("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;const l=(0,i.RS)(s.domReference?s.domReference.ownerDocument:document);(t||l!==s.domReference)&&((0,i.gR)(null==(e=u.current.floatingContext)?void 0:e.refs.floating.current,l)||(0,i.gR)(s.domReference,l)||o||r(!1,n,"focus"))})}}),[u,s.domReference,r,f]);return o.useMemo(()=>a?{reference:v}:{},[a,v])}const Ee="active",xe="selected";function Re(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Ee]:t,[xe]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[le]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
vendor: 4,269 bytes, line 2
2t?(Object.entries(t).forEach(t=>{let[n,i]=t;var l;o&&[Ee,xe].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function Te(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=o.useCallback(t=>Re(t,e,"reference"),t),l=o.useCallback(t=>Re(t,e,"floating"),n),c=o.useCallback(t=>Re(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:c}),[i,l,c])}const ke=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ce(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:i}=e,{enabled:l=!0,role:c="dialog"}=t,u=null!=(n=ke.get(c))?n:c,s=x(),a=null!=C(),f=o.useMemo(()=>"tooltip"===u||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":r?i:void 0,..."listbox"===u&&{role:"combobox"},..."menu"===u&&{id:s},..."menu"===u&&a&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},[u,i,a,r,s,c]),d=o.useMemo(()=>{const e={id:i,...u&&{role:u}};return"tooltip"===u||"label"===c?e:{...e,..."menu"===u&&{"aria-labelledby":s}}},[u,i,s,c]),m=o.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(c){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[i,c]);return o.useMemo(()=>l?{reference:f,floating:d,item:m}:{},[l,f,d,m])}const Se=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Le(e,t){return"function"==typeof e?e(t):e}function Ae(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:l,duration:c=250}=t,u=e.placement,s=u.split("-")[0],a=o.useMemo(()=>({side:s,placement:u}),[s,u]),f="number"==typeof c,d=(f?c:c.open)||0,m=(f?c:c.close)||0,[v,g]=o.useState(()=>({...Le(l,a),...Le(n,a)})),{isMounted:h,status:y}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,l=("number"==typeof i?i:i.close)||0,[c,u]=o.useState("unmounted"),s=function(e,t){const[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,l);return s||"close"!==c||u("unmounted"),p(()=>{if(r){if(n){u("initial");const e=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(e)}}u("close")}},[n,r]),{isMounted:s,status:c}}(e,{duration:c}),b=A(n),w=A(r),E=A(i),x=A(l);return p(()=>{const e=Le(b.current,a),t=Le(E.current,a),n=Le(x.current,a),r=Le(w.current,a)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===y&&g(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===y&&g({transitionProperty:Object.keys(r).map(Se).join(","),transitionDuration:d+"ms",...n,...r}),"close"===y){const r=t||e;g({transitionProperty:Object.keys(r).map(Se).join(","),transitionDuration:m+"ms",...n,...r})}},[m,E,b,w,x,d,y,a]),{isMounted:h,styles:v}}function Oe(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,l=i-1;e<i;l=e++){const[i,c]=t[e]||[0,0],[u,s]=t[l]||[0,0];c>=r!=s>=r&&n<=(u-i)*(r-c)/(s-c)+i&&(o=!o)}return o}function Pe(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,c=!1,u=null,s=null,a=performance.now();const f=e=>{let{x:n,y:f,placement:d,elements:m,onClose:p,nodeId:v,tree:g}=e;return function(e){function h(){clearTimeout(o),p()}if(clearTimeout(o),!m.domReference||!m.floating||null==d||null==n||null==f)return;const{clientX:y,clientY:b}=e,w=[y,b],E=(0,i.EW)(e),x="mouseleave"===e.type,R=(0,i.gR)(m.floating,E),T=(0,i.gR)(m.domReference,E),k=m.domReference.getBoundingClientRect(),C=m.floating.getBoundingClientRect(),S=d.split("-")[0],L=n>C.right-C.width/2,A=f>C.bottom-C.height/2,O=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(w,k),P=C.width>k.width,M=C.height>k.height,D=(P?k:C).left,I=(P?k:C).right,N=(M?k:C).top,q=(M?k:C).bottom;
2if(R&&(c=!0,!x))return;if(T&&(c=!1),T&&!x)return void(c=!0);if(x&&(0,l.vq)(e.relatedTarget)&&(0,i.gR)(m.floating,e.relatedTarget))return;if(g&&W(g.nodesRef.current,v).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===S&&f>=k.bottom-1||"bottom"===S&&f<=k.top+1||"left"===S&&n>=k.right-1||"right"===S&&n<=k.left+1)return h();let F=[];switch(S){case"top":F=[[D,k.top+1],[D,C.bottom-1],[I,C.bottom-1],[I,k.top+1]];break;case"bottom":F=[[D,C.top+1],[D,k.bottom-1],[I,k.bottom-1],[I,C.top+1]];break;case"left":F=[[C.right-1,q],[C.right-1,N],[k.left+1,N],[k.left+1,q]];break;case"right":F=[[k.right-1,q],[k.right-1,N],[C.left+1,N],[C.left+1,q]]}if(!Oe([y,b],F)){if(c&&!O)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-a;if(null===u||null===s||0===r)return u=e,s=t,a=n,null;const o=e-u,i=t-s,l=Math.sqrt(o*o+i*i);return u=e,s=t,a=n,l/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Oe([y,b],function(e){let[n,r]=e;switch(S){case"top":return[[P?n+t/2:L?n+4*t:n-4*t,r+t+1],[P?n-t/2:L?n+4*t:n-4*t,r+t+1],[C.left,L||P?C.bottom-t:C.top],[C.right,L?P?C.bottom-t:C.top:C.bottom-t]];case"bottom":return[[P?n+t/2:L?n+4*t:n-4*t,r-t],[P?n-t/2:L?n+4*t:n-4*t,r-t],[C.left,L||P?C.top+t:C.bottom],[C.right,L?P?C.top+t:C.bottom:C.top+t]];case"left":{const e=[n+t+1,M?r+t/2:A?r+4*t:r-4*t],o=[n+t+1,M?r-t/2:A?r+4*t:r-4*t];return[[A||M?C.right-t:C.left,C.top],[A?M?C.right-t:C.left:C.right-t,C.bottom],e,o]}case"right":return[[n-t,M?r+t/2:A?r+4*t:r-4*t],[n-t,M?r-t/2:A?r+4*t:r-4*t],[A||M?C.left+t:C.right,C.top],[A?M?C.left+t:C.right:C.left+t,C.bottom]]}}([n,f]))?!c&&r&&(o=window.setTimeout(h,40)):h()}}};return f.__options={blockPointerEvents:n},f}n.d(t,["$x",0,N,"Bi",0,x,"ie",0,R])},66984(e,t,n){n.d(t,{$t:()=>c,$u:()=>b,EW:()=>y,F2:()=>h,Go:()=>m,O_:()=>p,Pg:()=>s,RS:()=>o,WZ:()=>E,YE:()=>g,YF:()=>u,cX:()=>d,gR:()=>i,jo:()=>w,nr:()=>a,tZ:()=>v,uo:()=>l});var r=n(86635);function o(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function i(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function l(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function u(e){return!(0!==e.mozInputSource||!e.isTrusted)||(f()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!c().includes("jsdom/")&&(!f()&&0===e.width&&0===e.height||f()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function a(){return/apple/i.test(navigator.vendor)}function f(){const e=/android/i;return e.test(l())||e.test(c())}function d(){return l().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function m(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function p(e){return"nativeEvent"in e}function v(e){return e.matches("html,body")}function g(e){return(null==e?void 0:e.ownerDocument)||document}function h(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}function b(e){return(0,r.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function w(e){e.preventDefault(),e.stopPropagation()}function E(e){return!!e&&"combobox"===e.getAttribute("role")&&b(e)}},86635(e,t,n){function r(){return"undefined"!=typeof window}function o(e){return c(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(c(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function c(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function u(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function a(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{$4:()=>S,CP:()=>C,L9:()=>k,Lv:()=>p,Ng:()=>a,Tc:()=>x,Tf:()=>g,ZU:()=>d,_m:()=>O,ep:()=>l,eu:()=>T,gJ:()=>E,mq:()=>o,sQ:()=>w,sb:()=>s,v9:()=>A,vq:()=>u,zk:()=>i});const f=new Set(["inline","contents"]);function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=k(e);
2return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!f.has(o)}const m=new Set(["table","td","th"]);function p(e){return m.has(o(e))}const v=[":popover-open",":modal"];function g(e){return v.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const h=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function w(e){const t=x(),n=u(e)?k(e):e;return h.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function E(e){let t=S(e);for(;s(t)&&!T(t);){if(w(t))return t;if(g(t))return null;t=S(t)}return null}function x(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const R=new Set(["html","body","#document"]);function T(e){return R.has(o(e))}function k(e){return i(e).getComputedStyle(e)}function C(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function S(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||a(e)&&e.host||l(e);return a(t)?t.host:t}function L(e){const t=S(e);return T(t)?e.ownerDocument?e.ownerDocument.body:e.body:s(t)&&d(t)?t:L(t)}function A(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=L(e),l=o===(null==(r=e.ownerDocument)?void 0:r.body),c=i(o);if(l){const e=O(c);return t.concat(c,c.visualViewport||[],d(o)?o:[],e&&n?A(e):[])}return t.concat(o,A(o,[],n))}function O(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},97193(e,t,n){n.d(t,{B1:()=>P,C0:()=>p,Dz:()=>w,PG:()=>g,Sg:()=>v,TV:()=>b,WJ:()=>x,_3:()=>m,aD:()=>R,bV:()=>A,lP:()=>L,nI:()=>O,qE:()=>d,sq:()=>h,w7:()=>E});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1]),[]),l=Math.min,c=Math.max,u=Math.round,s=Math.floor,a={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t,n){return c(e,l(t,n))}function m(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}const y=new Set(["top","bottom"]);function b(e){return y.has(p(e))?"y":"x"}function w(e){return g(b(e))}function E(e,t,n){void 0===n&&(n=!1);const r=v(e),o=w(e),i=h(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=A(l)),[l,A(l)]}function x(e){const t=A(e);return[R(e),t,R(t)]}function R(e){return e.replace(/start|end/g,e=>f[e])}const T=["left","right"],k=["right","left"],C=["top","bottom"],S=["bottom","top"];function L(e,t,n,r){const o=v(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?k:T:t?T:k;case"left":case"right":return t?C:S;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(R)))),i}function A(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}n.d(t,["DD",0,i,"Jx",0,e=>({x:e,y:e}),"LI",0,u,"RI",0,s,"T9",0,c,"jk",0,l,"r_",0,r])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.