1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75830,e=>{"use strict";var t=e.i(271645),n=e.i(30030),r=e.i(820783),i=e.i(991918),o=e.i(843476),l=Object.defineProperty,s=(e,t)=>l(e,"name",{value:t,configurable:!0});function f(e){let l=e+"CollectionProvider",[f,a]=(0,n.createContextScope)(l),[u,c]=f(l,{collectionRef:{current:null},itemMap:new Map}),d=s(e=>{let{scope:n,children:r}=e,i=t.useRef(null),l=t.useRef(new Map).current;return(0,o.jsx)(u,{scope:n,itemMap:l,collectionRef:i,children:r})},"CollectionProvider");d.displayName=l;let h=e+"CollectionSlot",p=(0,i.createSlot)(h),m=t.forwardRef((e,t)=>{let{scope:n,children:i}=e,l=c(h,n),s=(0,r.useComposedRefs)(t,l.collectionRef);return(0,o.jsx)(p,{ref:s,children:i})});m.displayName=h;let g=e+"CollectionItemSlot",y="data-radix-collection-item",w=(0,i.createSlot)(g),x=t.forwardRef((e,n)=>{let{scope:i,children:l,...s}=e,f=t.useRef(null),a=(0,r.useComposedRefs)(n,f),u=c(g,i);return t.useEffect(()=>(u.itemMap.set(f,{ref:f,...s}),()=>void u.itemMap.delete(f))),(0,o.jsx)(w,{...{[y]:""},ref:a,children:l})});function v(n){let r=c(e+"CollectionConsumer",n);return t.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])}return x.displayName=g,s(v,"useCollection"),[{Provider:d,Slot:m,ItemSlot:x},v,a]}s(f,"createCollection");var a=new WeakMap,u=class e extends Map{static{s(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,l=h(e),s=l>=0?l:o+l,f=s<0||s>=o?-1:s;if(f===this.size||i&&f===this.size-1||-1===f)return this.set(t,n),this;let a=this.size+ +!i;l<0&&s++;let u=[...this.#e],c=!1;for(let e=s;e<a;e++)if(s===e){let o=u[e];u[e]===t&&(o=u[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{c||u[e-1]!==t||(c=!0);let n=u[c?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=c(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=c(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return c(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function c(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=d(e,t);return -1===n?void 0:e[n]}function d(e,t){let n=e.length,r=h(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function h(e){return e!=e||0===e?0:Math.trunc(e)}function p(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function m(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function g(e,t){return e[1].element&&t[1].element?m(e[1].element,t[1].element)?-1:1:0}function y(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}s(c,"at"),s(d,"toSafeIndex"),s(h,"toSafeInteger"),s(function(e){let l=e+"CollectionProvider",[f,a]=(0,n.createContextScope)(l),[c,d]=f(l,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new u,setItemMap:s(()=>void 0,"setItemMap")}),h=s(({state:e,...t})=>e?(0,o.jsx)(w,{...t,state:e}):(0,o.jsx)(m,{...t}),"CollectionProvider");h.displayName=l;let m=s(e=>{let t=S();return(0,o.jsx)(w,{...e,state:t})},"CollectionInit");m.displayName=l+"Init";let w=s(e=>{let{scope:n,children:i,state:l}=e,s=t.useRef(null),[f,a]=t.useState(null),u=(0,r.useComposedRefs)(s,a),[d,h]=l;return t.useEffect(()=>{if(!f)return;let e=y(()=>{});return e.observe(f,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[f]),(0,o.jsx)(c,{scope:n,itemMap:d,setItemMap:h,collectionRef:u,collectionRefObject:s,collectionElement:f,children:i})},"CollectionProviderImpl");w.displayName=l+"Impl";let x=e+"CollectionSlot",v=(0,i.createSlot)(x),b=t.forwardRef((e,t)=>{let{scope:n,children:i}=e,l=d(x,n),s=(0,r.useComposedRefs)(t,l.collectionRef);return(0,o.jsx)(v,{ref:s,children:i})});b.displayName=x;let R=e+"CollectionItemSlot",A=(0,i.createSlot)(R),C=t.forwardRef((e,n)=>{let{scope:i,children:l,...s}=e,f=t.useRef(null),[a,c]=t.useState(null),h=(0,r.useComposedRefs)(n,f,c),{setItemMap:m}=d(R,i),y=t.useRef(s);p(y.current,s)||(y.current=s);let w=y.current;return t.useEffect(()=>(m(e=>a?e.has(a)?e.set(a,{...w,element:a}).toSorted(g):(e.set(a,{...w,element:a}),e.toSorted(g)):e),()=>{m(e=>a&&e.has(a)?(e.delete(a),new u(e)):e)}),[a,w,m]),(0,o.jsx)(A,{"data-radix-collection-item":"",ref:h,children:l})});function S(){return t.useState(new u)}function O(t){let{itemMap:n}=d(e+"CollectionConsumer",t);return n}return C.displayName=R,s(S,"useInitCollection"),s(O,"useCollection"),[{Provider:h,Slot:b,ItemSlot:C},{createCollectionScope:a,useCollection:O,useInitCollection:S}]},"createCollection"),s(p,"shallowEqual"),s(m,"isElementPreceding"),s(g,"sortByDocumentPosition"),s(y,"getChildListObserver"),e.s(["createCollection",0,f])},586318,e=>{"use strict";var t=e.i(271645),n=(e.i(843476),Object.defineProperty),r=t.createContext(void 0);function i(e){let n=t.useContext(r);return e||n||"ltr"}n(i,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,i])},258950,953760,553289,e=>{"use strict";let t,n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,l=Math.round,s=Math.floor,f=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,n){void 0===n&&(n=!1);let r=d(e),i=h(m(e)),o=p(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=R(l)),[l,R(l)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],x=["right","left"],v=["top","bottom"],b=["bottom","top"];function R(e){let t=c(e);return a[t]+e.slice(t.length)}function A(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function S(e,t,n){let r,{reference:i,floating:o}=e,l=m(t),s=h(m(t)),f=p(s),a=c(t),u=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,y=i[f]/2-o[f]/2;switch(a){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:g};break;case"left":r={x:i.x-o.width,y:g};break;default:r={x:i.x,y:i.y}}let w=d(t);return w&&(r[s]+=y*("end"===w?1:-1)*(n&&"y"===l?-1:1)),r}async function O(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:f}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=u(t,e),m=A(p),g=s[h?"floating"===d?"reference":"floating":d],y=C(await o.getClippingRect
1({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:a,rootBoundary:c,strategy:f})),w="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:f}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:O},f=await (null==l.isRTL?void 0:l.isRTL(t)),a=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=S(a,r,f),d=r,h=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:y}=m,{x:w,y:x,data:v,reset:b}=await y({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:a,platform:s,elements:{reference:e,floating:t}});u=null!=w?w:u,c=null!=x?x:c,p[g]={...p[g],...v},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(a=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:u,y:c}=S(a,d,f)),n=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:p}};function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function E(e){return n.some(t=>e[t]>=0)}function L(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-n}}let T=new Set(["left","top"]);async function j(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=c(n),s=d(n),f="y"===m(n),a=T.has(l)?-1:1,h=o&&f?-1:1,p=u(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof w&&(y="end"===s?-1*w:w),f?{x:y*h,y:g*a}:{x:g*a,y:y*h}}function z(){return"u">typeof window}function M(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!z()&&(e instanceof Node||e instanceof D(e).Node)}function F(e){return!!z()&&(e instanceof Element||e instanceof D(e).Element)}function N(e){return!!z()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function W(e){return!(!z()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function $(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function B(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let V=/transform|translate|scale|rotate|perspective|filter/,_=/paint|layout|strict|content/,U=e=>!!e&&"none"!==e;function Y(e){let t=F(e)?G(e):e;return U(t.transform)||U(t.translate)||U(t.scale)||U(t.rotate)||U(t.perspective)||!q()&&(U(t.backdropFilter)||U(t.filter))||V.test(t.willChange||"")||_.test(t.contain||"")}function q(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function X(e){return/^(html|body|#document)$/.test(M(e))}function G(e){return D(e).getComputedStyle(e)}function K(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||H(e);return W(t)?t.host:t}function Q(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=J(t);return X(n)?(t.ownerDocument||t).body:N(n)&&$(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=D(i);if(!o)return t.concat(i,Q(i,[],n));{let e=Z(l);
1return t.concat(l,l.visualViewport||[],$(i)?i:[],e&&n?Q(e):[])}}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=G(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=N(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,f=l(n)!==o||l(r)!==s;return f&&(n=o,r=s),{width:n,height:r,$:f}}function et(e){return F(e)?e:e.contextElement}function en(e){let t=et(e);if(!N(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ee(t),s=(o?l(n.width):n.width)/r,a=(o?l(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let er=f(0);function ei(e){let t=D(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=et(e),s=f(1);t&&(r?F(r)&&(s=en(r)):s=en(e));let a=(void 0===(i=n)&&(i=!1),r&&i&&r===D(l))?ei(l):f(0),u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(l&&r){let e=D(l),t=F(r)?D(r):r,n=e,i=Z(n);for(;i&&t!==n;){let e=en(i),t=i.getBoundingClientRect(),r=G(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=o,c+=l,i=Z(n=D(i))}}return C({width:d,height:h,x:u,y:c})}function el(e,t){let n=K(e).scrollLeft;return t?t.left+n:eo(H(e)).left+n}function es(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function ef(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=D(e),o=H(e),l=i.visualViewport,s=o.clientWidth,f=o.clientHeight,a=0,u=0;if(l){let e=!q()||"fixed"===t;r?e||(a=-l.offsetLeft,u=-l.offsetTop):(s=l.width,f=l.height,e&&(a=l.offsetLeft,u=l.offsetTop))}if(0>=el(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(s-=l)}return{width:s,height:f,x:a,y:u}}(e,n,t);else if("document"===t){let t,n,l,s,f,a;t=K(r=H(e)),n=r.ownerDocument.body,l=o(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),s=o(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),f=-t.scrollLeft+el(r),a=-t.scrollTop,"rtl"===G(n).direction&&(f+=o(r.clientWidth,n.clientWidth)-l),i={width:l,height:s,x:f,y:a}}else if(F(t)){let e,r,o,l,s,f;r=(e=eo(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=en(t),s=t.clientWidth*l.x,f=t.clientHeight*l.y,i={width:s,height:f,x:o*l.x,y:r*l.y}}else{let n=ei(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(i)}function ea(e){return"static"===G(e).position}function eu(e,t){if(!N(e)||"fixed"===G(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function ec(e,t){var n;let r=D(e);if(B(e))return r;if(!N(e)){let t=J(e);for(;t&&!X(t);){if(F(t)&&!ea(t))return t;t=J(t)}return r}let i=eu(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(M(n)))&&ea(i);)i=eu(i,t);return i&&X(i)&&ea(i)&&!Y(i)?r:i||function(e){let t=J(e);for(;N(t)&&!X(t);){if(Y(t))return t;if(B(t))break;t=J(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ec,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=N(t),i=H(t),o="fixed"===n,l=eo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=f(0);if((r||!o)&&(("body"!==M(t)||$(i))&&(s=K(t)),r)){let e=eo(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&i&&(a.x=el(i));let u=!i||r||o?f(0):es(i,s);return{x:l.left+s.scrollLeft-a.x-u.x,y:l.top+s.scrollTop-a.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=H(r),s=!!t&&B(t.floating);if(r===l||s&&o)return n;let a={scrollLeft:0,scrollTop:0},u=f(1),c=f(0),d=N(r);if((d||!o)&&(("body"!==M(r)||$(l))&&(a=K(r)),d)){let e=eo(r);u=en(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let h=!l||d||o?f(0):es(l,a);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,s=[..."clippingAncestors"===n?B(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Q(e,[],!1).filter(e=>F(e)&&"body"!==M(e)),i=null,o="fixed"===G(e).position,l=o?J(e):e;for(;F(l)&&!X(l);){let e=G(l),t=Y(l),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=J(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=ef(t,s[0],l),a=f.top,u=f.right,c=f.bottom,d=f.left;for(let e=1;e<s.length;e++){let n=ef(t,s[e],l);a=o(n.top,a),u=i(n.right,u),c=i(n.bottom,c),d=o(n.left,d)}return{width:u-d,height:c-a,x:d,y:a}},getOffsetParent:ec,getElementRects:ed,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:F,isRTL:function(e){return"rtl"===G(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:s}=t,f=await j(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}},eg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l,platform:s}=t,{mainAxis:f=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=u(e,t),p={x:n,y:r},g=await s.detectOverflow(t,d),y=m(l),w=h(y),x=p[w],v=p[y],b=(e,t)=>o(t+g["y"===e?"top":"left"],i(t,t-g["y"===e?"bottom":"right"]));f&&(x=b(w,x)),a&&(v=b(y,v));let R=c.fn({...t,[w]:x,[y]:v});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[w]:f,[y]:a}}}}}},ey=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let s,f,a,{placement:h,middlewareData:p,rects:A,initialPlacement:C,platform:S,elements:O}=t,{mainAxis:P=!0,crossAxis:k=!0,fallbackPlacements:E,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:j=!0,...z}=u(e,t);if(null!=(n=p.arrow)&&n.alignmentOffset)return{};let M=c(h),D=m(C),H=c(C)===C,I=await (null==S.isRTL?void 0:S.isRTL(O.floating)),F=E||(H||!j?[R(C)]:(s=R(C),[y(C),s,y(s)])),N="none"!==T;!E&&N&&F.push(...(f=d(C),a=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:w;return t?w:x;case"left":case"right":return t?v:b;default:return[]}}(c(C),"start"===T,I),f&&(a=a.map(e=>e+"-"+f),j&&(a=a.concat(a.map(y)))),a));let W=[C,...F],$=await S.detectOverflow(t,z),B=[],V=(null==(r=p.flip)?void 0:r.overflows)||[];if(P&&B.push($[M]),k){let e=g(h,A,I);B.push($[e[0]],$[e[1]])}if(V=[...V,{placement:h,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=p.flip)?void 0:i.index)||0)+1,t=W[e];if(t&&("alignment"!==k||D===m(t)||V.every(e=>m(e.placement)!==D||e.overflows[0]>0)))return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(o=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let e=null==(l=V.filter(e=>{if(N){let t=m(e.placement);return t===D||"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:l[0];e&&(n=e);break}case"initialPlacement":n=C}if(h!==n)return{reset:{placement:n}}}return{}}}},ew=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:l,rects:s,platform:f,elements:a}=t,{apply:h=()=>{},...p}=u(e,t),g=await f.detectOverflow(t,p),y=c(l),w=d(l),x="y"===m(l),{width:v,height:b}=s.floating;"top"===y||"bottom"===y?(n=y,r=w===(await (null==f.isRTL?void 0:f.isRTL(a.floating))?"start":"end")?"left":"right"):(r=y,n="end"===w?"top":"bottom");let R=b-g.top-g.bottom,A=v-g.left-g.right,C=i(b-g[n],R),S=i(v-g[r],A),O=t.middlewareData.shift,P=!O,k=C,E=S;null!=O&&O.enabled.x&&(E=A),null!=O&&O.enabled.y&&(k=R),P&&!w&&(x?E=v-2*o(g.left,g.right):k=b-2*o(g.top,g.bottom)),await h({...t,availableWidth:E,availableHeight:k});let L=await f.getDimensions(a.floating);return v!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}},ex=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=u(e,t);switch(i){case"referenceHidden":{let e=k(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:E(e)}}}case"escaped":{let e=k(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:E(e)}}}default:return{}}}}},ev=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:s,platform:f,elements:a,middlewareData:c}=t,{element:g,padding:y=0}=u(e,t)||{};if(null==g)return{};let w=A(y),x={x:n,y:r},v=h(m(l)),b=p(v),R=await f.getDimensions(g),C="y"===v,S=C?"clientHeight":"clientWidth",O=s.reference[b]+s.reference[v]-x[v]-s.floating[b],P=x[v]-s.reference[v],k=await (null==f.getOffsetParent?void 0:f.getOffsetParent(g)),E=k?k[S]:0;E&&await (null==f.isElement?void 0:f.isElement(k))||(E=a.floating[S]||s.floating[b]);let L=E/2-R[b]/2-1,T=i(w[C?"top":"left"],L),j=i(w[C?"bottom":"right"],L),z=E-R[b]-j,M=E/2-R[b]/2+(O/2-P/2),D=o(T,i(M,z)),H=!c.arrow&&null!=d(l)&&M!==D&&s.reference[b]/2-(M<T?T:j)-R[b]/2<0,I=H?M<T?M-T:M-z:0;return{[v]:x[v]+I,data:{[v]:D,centerOffset:M-D-I,...H&&{alignmentOffset:I}},reset:H}}}),eb=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,i,o;let{x:l,y:s,placement:f,rects:a,middlewareData:d}=t,{offset:p=0,mainAxis:g=!0,crossAxis:y=!0}=u(e,t),w={x:l,y:s},x=m(f),v=h(x),b=w[v],R=w[x],A=u(p,t),C="number"==typeof A?{mainAxis:A,crossAxis:0}:{mainAxis:null!=(n=A.mainAxis)?n:0,crossAxis:null!=(r=A.crossAxis)?r:0};if(g){let e="y"===v?"height":"width",t=a.reference[v]-a.floating[e]+C.mainAxis,n=a.reference[v]+a.reference[e]-C.mainAxis;b<t?b=t:b>n&&(b=n)}if(y){let e="y"===v?"width":"height",t=T.has(c(f)),n=a.reference[x]-a.floating[e]+(t&&(null==(i=d.offset)?void 0:i[x])||0)+(t?0:C.crossAxis),r=a.reference[x]+a.reference[e]+(t?0:(null==(o=d.offset)?void 0:o[x])||0)-(t?C.crossAxis:0);R<n?R=n:R>r&&(R=r)}return{[v]:b,[x]:R}}}},eR=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...eh,...i.platform,_c:r};return P(e,t,{...i,platform:o})};e.s(["arrow",0,ev,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o,l;let{rects:s,middlewareData:f,placement:a,platform:h,elements:p}=t,{crossAxis:m=!1,alignment:w,allowedPlacements:x=r,autoAlignment:v=!0,...b}=u(e,t),R=void 0!==w||x===r?((l=w||null)?[...x.filter(e=>d(e)===l),...x.filter(e=>d(e)!==l)]:x.filter(e=>c(e)===e)).filter(e=>!l||d(e)===l||!!v&&y(e)!==e):x,A=(null==(n=f.autoPlacement)?void 0:n.index)||0,C=R[A];if(null==C)return{};if(a!==C)return{reset:{placement:R[0]}};let S=await h.detectOverflow(t,b),O=g(C,s,await (null==h.isRTL?void 0:h.isRTL(p.floating))),P=[S[c(C)],S[O[0]],S[O[1]]],k=[...(null==(i=f.autoPlacement)?void 0:i.overflows)||[],{placement:C,overflows:P}],E=R[A+1];if(E)return{data:{index:A+1,overflows:k},reset:{placement:E}};let L=k.map(e=>{let t=d(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),T=(null==(o=L.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||L[0][0];return T!==a?{data:{index:A+1,overflows:k},reset:{placement:T}}:{}}}},"autoUpdate",0,function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:f=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,h=et(e),p=f||a?[...h?Q(h):[],...t?Q(t):[]]:[];p.forEach(e=>{f&&e.addEventListener("scroll",n),a&&e.addEventListener("resize",n)});let m=h&&c?function(e,t,n){let r,l=null,f=H(e);function a(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}function u(n,c){void 0===n&&(n=!1),void 0===c&&(c=1),a();let d=e.getBoundingClientRect(),{left:h,top:p,width:m,height:g}=d;if(n||t(),!m||!g)return;let y={rootMargin:-s(p)+"px "+-s(f.clientWidth-(h+m))+"px "+-s(f.clientHeight-(p+g))+"px "+-s(h)+"px",threshold:o(0,i(1,c))||1},w=!0;function x(t){let n=t[0].intersectionRatio;if(!ep(d,e.getBoundingClientRect()))return u();if(n!==c){if(!w)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}w=!1}try{l=new IntersectionObserver(x,{...y,root:f.ownerDocument})}catch(e){l=new IntersectionObserver(x,y)}l.observe(e)}let c=D(e),d=()=>u(n);return c.addEventListener("resize",d),u(!0),()=>{c.removeEventListener("resize",d),a()}}(h,n,a):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),h&&!d&&y.observe(h),t&&y.observe(t));let w=d?eo(e):null;return d&&function t(){let r=eo(e);w&&!ep(w,r)&&n(),w=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{f&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(l)}},"computePosition",0,eR,"flip",0,ey,"hide",0,ex,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:s,strategy:f}=t,{padding:a=2,x:d,y:h}=u(e,t),p=Array.from(await (null==s.getClientRects?void 0:s.getClientRects(r.reference))||[]);if(!p.length)return{};let g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>C(L(e)))}(p),y=C(L(p)),w=A(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&(g[0].left>g[1].right||g[1].left>g[0].right)&&null!=d&&null!=h)return g.find(e=>d>e.left-w.left&&d<e.right+w.right&&h>e.top-w.top&&h<e.bottom+w.bottom)||y;if(g.length>=2){if("y"===m(n)){let e=g[0],t=g[g.length-1],r="top"===c(n),i=e.top,o=t.bottom,l=r?e.left:t.left;return C({x:l,y:i,width:(r?e.right:t.right)-l,height:o-i})}let e="left"===c(n),t=o(...g.map(e=>e.right)),r=i(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===r:n.right===t),s=l[0].top;return C({x:r,y:s,width:t-r,height:l[l.length-1].bottom-s})}return y}},floating:r.floating,strategy:f});return l.reference.x!==x.reference.x||l.reference.y!==x.reference.y||l.reference.width!==x.reference.width||l.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},"limitShift",0,eb,"offset",0,em,"shift",0,eg,"size",0,ew],953760);var eA=e.i(271645),eC=e.i(174080),eS="u">typeof document?eA.useLayoutEffect:function(){};function eO(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eO(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eO(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eP(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=eP(e);return Math.round(t*n)/n}function eE(e){let t=eA.useRef(e);return eS(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ev({element:n.current,padding:r}).fn(t):{}:n?ev({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=ey(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=ex(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eb(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=em(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=eg(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=ew(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:s=!0,whileElementsMounted:f,open:a}=e,[u,c]=eA.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=eA.useState(r);eO(d,r)||h(r);let[p,m]=eA.useState(null),[g,y]=eA.useState(null),w=eA.useCallback(e=>
1{e!==R.current&&(R.current=e,m(e))},[]),x=eA.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),v=o||p,b=l||g,R=eA.useRef(null),A=eA.useRef(null),C=eA.useRef(u),S=null!=f,O=eE(f),P=eE(i),k=eE(a),E=eA.useCallback(()=>{if(!R.current||!A.current)return;let e={placement:t,strategy:n,middleware:d};P.current&&(e.platform=P.current),eR(R.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};L.current&&!eO(C.current,t)&&(C.current=t,eC.flushSync(()=>{c(t)}))})},[d,t,n,P,k]);eS(()=>{!1===a&&C.current.isPositioned&&(C.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[a]);let L=eA.useRef(!1);eS(()=>(L.current=!0,()=>{L.current=!1}),[]),eS(()=>{if(v&&(R.current=v),b&&(A.current=b),v&&b){if(O.current)return O.current(v,b,E);E()}},[v,b,E,O,S]);let T=eA.useMemo(()=>({reference:R,floating:A,setReference:w,setFloating:x}),[w,x]),j=eA.useMemo(()=>({reference:v,floating:b}),[v,b]),z=eA.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=ek(j.floating,u.x),r=ek(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eP(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return eA.useMemo(()=>({...u,update:E,refs:T,elements:j,floatingStyles:z}),[u,E,T,j,z])}],258950);var eL=e.i(248425),eT=e.i(843476),ej=Object.defineProperty,ez=eA.forwardRef(ej(function(e,t){let{children:n,width:r=10,height:i=5,...o}=e;return(0,eT.jsx)(eL.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eT.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0}));e.s(["Root",0,ez],553289)},635804,e=>{"use strict";var t=e.i(271645),n=e.i(934620);function r(e){let[r,i]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;i({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r}(0,Object.defineProperty)(r,"name",{value:"useSize",configurable:!0}),e.s(["useSize",0,r])},853660,e=>{"use strict";var t=e.i(271645),n=e.i(258950),r=e.i(953760),i=e.i(553289),o=e.i(820783),l=e.i(30030),s=e.i(248425),f=e.i(30207),a=e.i(934620),u=e.i(635804),c=e.i(843476),d=Object.defineProperty,h=(e,t)=>d(e,"name",{value:t,configurable:!0}),p="Popper",[m,g]=(0,l.createContextScope)(p),[y,w]=m(p),x=h(e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null),[l,s]=t.useState(void 0);return(0,c.jsx)(y,{scope:n,anchor:i,onAnchorChange:o,placementState:l,setPlacementState:s,children:r})},"Popper"),v=t.forwardRef(h(function(e,n){let{__scopePopper:r,virtualRef:i,...l}=e,f=w("PopperAnchor",r),a=t.useRef(null),u=f.onAnchorChange,d=t.useCallback(e=>{a.current=e,e&&u(e)},[u]),h=(0,o.useComposedRefs)(n,d),p=t.useRef(null);t.useEffect(()=>{if(!i)return;let e=p.current;p.current=i.current,e!==p.current&&u(p.current)});let m=f.placementState&&E(f.placementState),g=m?.[0],y=m?.[1];return i?null:(0,c.jsx)(s.Primitive.div,{"data-radix-popper-side":g,"data-radix-popper-align":y,...l,ref:h})},"PopperAnchor")),b="PopperContent",[R,A]=m(b),C=t.forwardRef(h(function(e,i){let{__scopePopper:l,side:d="bottom",sideOffset:p=0,align:m="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:x=!0,collisionBoundary:v=[],collisionPadding:A=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:O="optimized",onPlaced:L,...T}=e,j=w(b,l),[z,M]=t.useState(null),D=(0,o.useComposedRefs)(i,M),[H,I]=t.useState(null),F=(0,u.useSize)(H),N=F?.width??0,W=F?.height??0,$="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},B=Array.isArray(v)?v:[v],V=B.length>0,_={padding:$,boundary:B.filter(P),altBoundary:V},{refs:U,floatingStyles:Y,placement:q,isPositioned:X,middlewareData:G}=(0,n.useFloating)({strategy:"fixed",placement:d+("center"!==m?"-"+m:""),whileElementsMounted:h((...e)=>(0,r.autoUpdate)(...e,{animationFrame:"always"===O}),"whileElementsMounted"),elements:{reference:j.anchor},middleware:[(0,n.offset)({mainAxis:p+W,alignmentAxis:g}),x&&(0,n.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,n.limitShift)():void 0,..._}),x&&(0,n.flip)({..._}
1),(0,n.size)({..._,apply:h(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)},"apply")}),H&&(0,n.arrow)({element:H,padding:y}),k({arrowWidth:N,arrowHeight:W}),S&&(0,n.hide)({strategy:"referenceHidden",..._,boundary:V?_.boundary:void 0})]}),K=j.setPlacementState;(0,a.useLayoutEffect)(()=>(K(q),()=>{K(void 0)}),[q,K]);let[J,Q]=E(q),Z=(0,f.useCallbackRef)(L);(0,a.useLayoutEffect)(()=>{X&&Z?.()},[X,Z]);let ee=G.arrow?.x,et=G.arrow?.y,en=G.arrow?.centerOffset!==0,[er,ei]=t.useState();return(0,a.useLayoutEffect)(()=>{z&&ei(window.getComputedStyle(z).zIndex)},[z]),(0,c.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:X?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(R,{scope:l,placedSide:J,placedAlign:Q,onArrowChange:I,arrowX:ee,arrowY:et,shouldHideArrow:en,children:(0,c.jsx)(s.Primitive.div,{"data-side":J,"data-align":Q,...T,ref:D,style:{...T.style,animation:X?T.style?.animation:"none"}})})})},"PopperContent")),S={top:"bottom",right:"left",bottom:"top",left:"right"},O=t.forwardRef(h(function(e,t){let{__scopePopper:n,...r}=e,o=A("PopperArrow",n),l=S[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(i.Root,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function P(e){return null!==e}h(P,"isNotNull");var k=h(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[f,a]=E(n),u={start:"0%",center:"50%",end:"100%"}[a],c=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+s/2,h="",p="";return"bottom"===f?(h=o?u:`${c}px`,p=`${-s}px`):"top"===f?(h=o?u:`${c}px`,p=`${r.floating.height+s}px`):"right"===f?(h=`${-s}px`,p=o?u:`${d}px`):"left"===f&&(h=`${r.floating.width+s}px`,p=o?u:`${d}px`),{data:{x:h,y:p}}}}),"transformOrigin");function E(e){let[t,n="center"]=e.split("-");return[t,n]}h(E,"getSideAndAlignFromPlacement"),e.s(["Anchor",0,v,"Arrow",0,O,"Content",0,C,"Root",0,x,"createPopperScope",0,g])}]);
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.