PageSourceSearch

https://targetbot-io.lovable.app/assets/ui-DBm9Cw4A.js

js targetbot-io.lovable.app collected 2026-10-03 03:40:22 UTC 107,925 bytes, 1 lines download raw bytes

1import{r as e,a as t,R as n,b as r,c as o}from"./vendor-CYL9t1hw.js";var i={exports:{}},a={},c=e,s=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)l.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:s,type:e,key:i,ref:a,props:o,_owner:d.current}}a.Fragment=u,a.jsx=p,a.jsxs=p,i.exports=a;var m=i.exports;function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function v(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function g(...t){return e.useCallback(v(...t),t)}var y=e.forwardRef((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),a=i.find(x);if(a){const t=a.props.children,r=i.map(n=>n===a?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return m.jsx(w,{...o,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return m.jsx(w,{...o,ref:n,children:r})});y.displayName="Slot";var w=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r);return e.cloneElement(r,{...E(o,r.props),ref:n?v(n,t):t})}return e.Children.count(r)>1?e.Children.only(null):null});w.displayName="SlotClone";var b=({children:e})=>m.jsx(m.Fragment,{children:e});function x(t){return e.isValidElement(t)&&t.type===b}function E(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var R=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,n)=>{const r=e.forwardRef((e,t)=>{const{asChild:r,...o}=e,i=r?y:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...o,ref:t})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{});function C(e,n){e&&t.flushSync(()=>e.dispatchEvent(n))}function S(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}function O(t,n=globalThis?.document){const r=S(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}var D,M="dismissableLayer.update",_="dismissableLayer.pointerDownOutside",P="dismissableLayer.focusOutside",N=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...u}=t,l=e.useContext(N),[d,f]=e.useState(null),p=d?.ownerDocument??globalThis?.document,[,v]=e.useState({}),y=g(n,e=>f(e)),w=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(b),E=d?w.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,T=E>=x,I=function(t,n=globalThis?.document){const r=S(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){j(_,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...l.branches].some(e=>e.contains(t));T&&!n&&(i?.(e),c?.(e),e.defaultPrevented||s?.())},p),L=function(t,n=globalThis?.document){const r=S(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>
vendor: 8,366 bytes, line 1
1{if(e.target&&!o.current){j(P,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),c?.(e),e.defaultPrevented||s?.())},p);return O(e=>{E===l.layers.size-1&&(o?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},p),e.useEffect(()=>{if(d)return r&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(D=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),A(),()=>{r&&1===l.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=D)}},[d,p,r,l]),e.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),A())},[d,l]),e.useEffect(()=>{const e=()=>v({});return document.addEventListener(M,e),()=>document.removeEventListener(M,e)},[]),m.jsx(R.div,{...u,ref:y,style:{pointerEvents:C?T?"auto":"none":void 0,...t.style},onFocusCapture:h(t.onFocusCapture,L.onFocusCapture),onBlurCapture:h(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:h(t.onPointerDownCapture,I.onPointerDownCapture)})});T.displayName="DismissableLayer";function A(){const e=new CustomEvent(M);document.dispatchEvent(e)}function j(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?C(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(N),o=e.useRef(null),i=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),m.jsx(R.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var I=Boolean(globalThis?.document)?e.useLayoutEffect:()=>{},L=n["useId".toString()]||(()=>{}),k=0;function F(t){const[n,r]=e.useState(L());return I(()=>{r(e=>e??String(k++))},[t]),n?`radix-${n}`:""}const W=["top","right","bottom","left"],$=Math.min,B=Math.max,U=Math.round,K=Math.floor,V=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},z={start:"end",end:"start"};function G(e,t,n){return B(e,$(t,n))}function X(e,t){return"function"==typeof e?e(t):e}function Y(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function q(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function Q(e){return["top","bottom"].includes(Y(e))?"y":"x"}function ee(e){return q(Q(e))}function te(e){return e.replace(/start|end/g,e=>z[e])}function ne(e){return e.replace(/left|right|bottom|top/g,e=>H[e])}function re(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 oe(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}}function ie(e,t,n){let{reference:r,floating:o}=e;const i=Q(t),a=ee(t),c=J(a),s=Y(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[c]/2-o[c]/2;let p;switch(s){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Z(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function ae(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=X(t,e),m=re(p),h=c[f?"floating"===d?"reference":"floating":d],v=oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:l,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}function ce(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function se(e){return W.some(t=>e[t]>=0)}function ue(){return"undefined"!=typeof window}function le(e){return pe(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fe(e){var t;return null==(t=(pe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function pe(e){return!!ue()&&(e instanceof Node||e instanceof de(e).Node)}function me(e){return!!ue()&&(e instanceof Element||e instanceof de(e).Element)}function he(e){return!!ue()&&(e instanceof HTMLElement||e instanceof de(e).HTMLElement)}function ve(e){return!(!ue()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof de(e).ShadowRoot)}function ge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ye(e){return["table","td","th"].includes(le(e))}function we(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(n){return!1}})}function be(e){const t=xe(),n=me(e)?Re(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function xe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ee(e){return["html","body","#document"].includes(le(e))}function Re(e){return de(e).getComputedStyle(e)}function Ce(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Se(e){if("html"===le(e))return e;const t=e.assignedSlot||e.parentNode||ve(e)&&e.host||fe(e);return ve(t)?t.host:t}function Oe(e){const t=Se(e);return Ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&ge(t)?t:Oe(t)}function De(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Oe(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=de(o);if(i){const e=Me(a);return t.concat(a,a.visualViewport||[],ge(o)?o:[],e&&n?De(e):[])}return t.concat(o,De(o,[],n))}function Me(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _e(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=he(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=U(n)!==i||U(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function Pe(e){return me(e)?e:e.contextElement}function Ne(e){const t=Pe(e);if(!he(t))return V(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=_e(t);let a=(i?U(n.width):n.width)/r,c=(i?U(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const Te=V(0);function Ae(e){const t=de(e);return xe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Te}function je(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Pe(e);let a=V(1);t&&(r?me(r)&&(a=Ne(r)):a=Ne(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==de(e))&&t}(i,n,r)?Ae(i):V(0);let s=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=de(i),t=r&&me(r)?de(r):r;let n=e,o=Me(n);for(;o&&r&&t!==n;){const e=Ne(o),t=o.getBoundingClientRect(),r=Re(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,l*=e.x,d*=e.y,s+=i,u+=a,n=de(o),o=Me(n)}}return oe({width:l,height:d,x:s,y:u})}function Ie(e,t){const n=Ce(e).scrollLeft;return t?t.left+n:je(fe(e)).left+n}function Le(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=de(e),r=fe(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const e=xe();
vendor: 4,170 bytes, line 1
1(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(e,n);else if("document"===t)r=function(e){const t=fe(e),n=Ce(e),r=e.ownerDocument.body,o=B(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=B(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ie(e);const c=-n.scrollTop;return"rtl"===Re(r).direction&&(a+=B(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(fe(e));else if(me(t))r=function(e,t){const n=je(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=he(e)?Ne(e):V(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ae(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return oe(r)}function ke(e,t){const n=Se(e);return!(n===t||!me(n)||Ee(n))&&("fixed"===Re(n).position||ke(n,t))}function Fe(e,t,n){const r=he(t),o=fe(t),i="fixed"===n,a=je(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const s=V(0);if(r||!r&&!i)if(("body"!==le(t)||ge(o))&&(c=Ce(t)),r){const e=je(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Ie(o));let u=0,l=0;if(o&&!r&&!i){const e=o.getBoundingClientRect();l=e.top+c.scrollTop,u=e.left+c.scrollLeft-Ie(o,e)}return{x:a.left+c.scrollLeft-s.x-u,y:a.top+c.scrollTop-s.y-l,width:a.width,height:a.height}}function We(e){return"static"===Re(e).position}function $e(e,t){if(!he(e)||"fixed"===Re(e).position)return null;if(t)return t(e);let n=e.offsetParent;return fe(e)===n&&(n=n.ownerDocument.body),n}function Be(e,t){const n=de(e);if(we(e))return n;if(!he(e)){let t=Se(e);for(;t&&!Ee(t);){if(me(t)&&!We(t))return t;t=Se(t)}return n}let r=$e(e,t);for(;r&&ye(r)&&We(r);)r=$e(r,t);return r&&Ee(r)&&We(r)&&!be(r)?n:r||function(e){let t=Se(e);for(;he(t)&&!Ee(t);){if(be(t))return t;if(we(t))return null;t=Se(t)}return null}(e)||n}const Ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=fe(r),c=!!t&&we(t.floating);if(r===a||c&&i)return n;let s={scrollLeft:0,scrollTop:0},u=V(1);const l=V(0),d=he(r);if((d||!d&&!i)&&(("body"!==le(r)||ge(a))&&(s=Ce(r)),he(r))){const e=je(r);u=Ne(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+l.x,y:n.y*u.y-s.scrollTop*u.y+l.y}},getDocumentElement:fe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?we(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=De(e,[],!1).filter(e=>me(e)&&"body"!==le(e)),o=null;const i="fixed"===Re(e).position;let a=i?Se(e):e;for(;me(a)&&!Ee(a);){const t=Re(a),n=be(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ge(a)&&!n&&ke(e,a))?r=r.filter(e=>e!==a):o=t,a=Se(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((e,n)=>{const r=Le(t,n,o);return e.top=B(r.top,e.top),e.right=$(r.right,e.right),e.bottom=$(r.bottom,e.bottom),e.left=B(r.left,e.left),e},Le(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Be,getElementRects:async function(e){const t=this.getOffsetParent||Be,n=this.getDimensions,r=await n(e.floating);return{reference:Fe(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}=_e(e);return{width:t,height:n}},getScale:Ne,isElement:me,isRTL:function(e){return"rtl"===Re(e).direction}};function Ke(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Pe(e),l=o||i?[...u?De(u):[],...De(t)]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&c?function(e,t){let n,r=null;const o=fe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),i();const{left:u,top:l,width:d,height:f}=e.getBoundingClientRect();if(c||t(),!d||!f)return;
vendor: 5,638 bytes, line 1
1const p={rootMargin:-K(l)+"px "+-K(o.clientWidth-(u+d))+"px "+-K(o.clientHeight-(l+f))+"px "+-K(u)+"px",threshold:B(0,$(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(v){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),u&&!s&&m.observe(u),m.observe(t));let h=s?je(e):null;return s&&function t(){const r=je(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const Ve=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Y(n),c=Z(n),s="y"===Q(n),u=["left","top"].includes(a)?-1:1,l=i&&s?-1:1,d=X(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&"number"==typeof m&&(p="end"===c?-1*m:m),s?{x:p*l,y:f*u}:{x:f*u,y:p*l}}(t,e);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},He=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=X(e,t),u={x:n,y:r},l=await ae(t,s),d=Q(Y(o)),f=q(d);let p=u[f],m=u[d];if(i){const e="y"===f?"bottom":"right";p=G(p+l["y"===f?"top":"left"],p,p-l[e])}if(a){const e="y"===d?"bottom":"right";m=G(m+l["y"===d?"top":"left"],m,m-l[e])}const h=c.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},ze=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:s,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=X(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Y(o),y=Q(c),w=Y(c)===c,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),x=f||(w||!h?[ne(c)]:function(e){const t=ne(e);return[te(e),t,te(t)]}(c)),E="none"!==m;!f&&E&&x.push(...function(e,t,n,r){const o=Z(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Y(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(te)))),i}(c,h,m,b));const R=[c,...x],C=await ae(t,v),S=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&S.push(C[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Z(e),o=ee(e),i=J(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ne(a)),[a,ne(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every(e=>e<=0)){var D,M;const e=((null==(D=i.flip)?void 0:D.index)||0)+1,t=R[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(M=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:M.placement;if(!n)switch(p){case"bestFit":{var _;const e=null==(_=O.filter(e=>{if(E){const t=Q(e.placement);return t===y||"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:_[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Ge=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:c}=t,{apply:s=()=>{},...u}=X(e,t),l=await ae(t,u),d=Y(o),f=Z(o),p="y"===Q(o),{width:m,height:h}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-l.top-l.bottom,w=m-l.left-l.right,b=$(h-l[v],y),x=$(m-l[g],w),E=!t.middlewareData.shift;let R=b,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=y),E&&!f){const e=B(l.left,0),t=B(l.right,0),n=B(l.top,0),r=B(l.bottom,0);p?C=m-2*(0!==e||0!==t?e+t:B(l.left,l.right)):R=h-2*(0!==n||0!==r?n+r:B(l.top,l.bottom))}await s({...t,availableWidth:C,availableHeight:R});const S=await a.getDimensions(c.floating);return m!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},Xe=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=X(e,t);switch(r){case"referenceHidden":{const e=ce(await ae(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:se(e)}}}case"escaped":{const e=ce(await ae(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:se(e)}}}default:return{}}}}},Ye=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:s}=t,{element:u,padding:l=0}=X(e,t)||{};if(null==u)return{};const d=re(l),f={x:n,y:r}
vendor: 1,539 bytes, line 1
1,p=ee(o),m=J(p),h=await a.getDimensions(u),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let R=E?E[w]:0;R&&await(null==a.isElement?void 0:a.isElement(E))||(R=c.floating[w]||i.floating[m]);const C=b/2-x/2,S=R/2-h[m]/2-1,O=$(d[g],S),D=$(d[y],S),M=O,_=R-h[m]-D,P=R/2-h[m]/2+C,N=G(M,P,_),T=!s.arrow&&null!=Z(o)&&P!==N&&i.reference[m]/2-(P<M?O:D)-h[m]/2<0,A=T?P<M?P-M:P-_:0;return{[p]:f[p]+A,data:{[p]:N,centerOffset:P-N-A,...T&&{alignmentOffset:A}},reset:T}}}),Ze=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:s=!0,crossAxis:u=!0}=X(e,t),l={x:n,y:r},d=Q(o),f=q(d);let p=l[f],m=l[d];const h=X(c,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(Y(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},qe=(e,t,n)=>{const r=new Map,o={platform:Ue,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}
vendor: 13,489 bytes, line 1
1=n,c=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=ie(u,r,s),f=r,p={},m=0;for(let h=0;h<c.length;h++){const{name:n,fn:i}=c[h],{x:v,y:g,data:y,reset:w}=await i({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});l=null!=v?v:l,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:l,y:d}=ie(u,f,s))),h=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Je="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Qe(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(!Qe(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)&&!Qe(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function et(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tt(e,t){const n=et(e);return Math.round(t*n)/n}function nt(t){const n=e.useRef(t);return Je(()=>{n.current=t}),n}const rt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ye({element:n.current,padding:r}).fn(t):{}:n?Ye({element:n,padding:r}).fn(t):{};var o}}),ot=(e,t)=>({...Ve(e),options:[e,t]}),it=(e,t)=>({...He(e),options:[e,t]}),at=(e,t)=>({...Ze(e),options:[e,t]}),ct=(e,t)=>({...ze(e),options:[e,t]}),st=(e,t)=>({...Ge(e),options:[e,t]}),ut=(e,t)=>({...Xe(e),options:[e,t]}),lt=(e,t)=>({...rt(e),options:[e,t]});var dt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return m.jsx(R.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});dt.displayName="Arrow";var ft=dt;function pt(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function c(n){const{scope:r,children:o,...c}=n,s=r?.[t][a]||i,u=e.useMemo(()=>c,Object.values(c));return m.jsx(s.Provider,{value:u,children:o})}return r=[...r,o],c.displayName=n+"Provider",[c,function(r,c){const s=c?.[t][a]||i,u=e.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},mt(o,...n)]}function mt(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function ht(t){const[n,r]=e.useState(void 0);return I(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}var vt="Popper",[gt,yt]=pt(vt),[wt,bt]=gt(vt),xt=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return m.jsx(wt,{scope:n,anchor:o,onAnchorChange:i,children:r})};xt.displayName=vt;var Et="PopperAnchor",Rt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=bt(Et,r),c=e.useRef(null),s=g(n,c);return e.useEffect(()=>{a.onAnchorChange(o?.current||c.current)}),o?null:m.jsx(R.div,{...i,ref:s})});Rt.displayName=Et;var Ct="PopperContent",[St,Ot]=gt(Ct),Dt=e.forwardRef((n,r)=>{const{__scopePopper:o,side:i="bottom",sideOffset:a=0,align:c="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...w}=n,b=bt(Ct,o),[x,E]=e.useState(null),C=g(r,e=>E(e)),[O,D]=e.useState(null),M=ht(O),_=M?.width??0,P=M?.height??0,N=i+("center"!==c?"-"+c:""),T="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(d)?d:[d],j=A.length>0,L={padding:T,boundary:A.filter(Nt),altBoundary:j},{refs:k,floatingStyles:F,placement:W,isPositioned:$,middlewareData:B}=function(n){void 0===n&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:c,floating:s}={},transform:u=!0,whileElementsMounted:l,open:d}=n,[f,p]=e.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(i);Qe(m,i)||h(i);const[v,g]=e.useState(null),[y,w]=e.useState(null),b=e.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=e.useCallback(e=>{e!==S.current&&(S.current=e,w(e))},[]),E=c||v,R=s||y,C=e.useRef(null),S=e.useRef(null),O=e.useRef(f),D=null!=l,M=nt(l),_=nt(a),P=nt(d),N=e.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:r,strategy:o,middleware:m};_.current&&(e.platform=_.current),qe(C.current,S.current,e).then(e=>{const n={...e,isPositioned:!1!==P.current};T.current&&!Qe(O.current,n)&&(O.current=n,t.flushSync(()=>{p(n)}))})},[m,r,o,_,P]);Je(()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const T=e.useRef(!1);Je(()=>(T.current=!0,()=>{T.current=!1}),[]),Je(()=>{if(E&&(C.current=E),R&&(S.current=R),E&&R){if(M.current)return M.current(E,R,N);N()}},[E,R,N,M,D]);const A=e.useMemo(()=>({reference:C,floating:S,setReference:b,setFloating:x}),[b,x]),j=e.useMemo(()=>({reference:E,floating:R}),[E,R]),I=e.useMemo(()=>{const e={position:o,left:0,top:0};if(!j.floating)return e;const t=tt(j.floating,f.x),n=tt(j.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...et(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}},[o,u,j.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:N,refs:A,elements:j,floatingStyles:I}),[f,N,A,j,I])}({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>Ke(...e,{animationFrame:"always"===v}),elements:{reference:b.anchor},middleware:[ot({mainAxis:a+P,alignmentAxis:s}),l&&it({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?at():void 0,...L}),l&&ct({...L}),st({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&lt({element:O,padding:u}),Tt({arrowWidth:_,arrowHeight:P}),h&&ut({strategy:"referenceHidden",...L})]}),[U,K]=At(W),V=S(y);I(()=>{$&&V?.()},[$,V]);const H=B.arrow?.x,z=B.arrow?.y,G=0!==B.arrow?.centerOffset,[X,Y]=e.useState();return I(()=>{x&&Y(window.getComputedStyle(x).zIndex)},[x]),m.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:$?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(St,{scope:o,placedSide:U,onArrowChange:D,arrowX:H,arrowY:z,shouldHideArrow:G,children:m.jsx(R.div,{"data-side":U,"data-align":K,...w,ref:C,style:{...w.style,animation:$?void 0:"none"}})})})});Dt.displayName=Ct;var Mt="PopperArrow",_t={top:"bottom",right:"left",bottom:"top",left:"right"},Pt=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Ot(Mt,n),i=_t[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]: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:m.jsx(ft,{...r,ref:t,style:{...r.style,display:"block"}})})});function Nt(e){return null!==e}Pt.displayName=Mt;var Tt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[s,u]=At(n),l={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let p="",m="";return"bottom"===s?(p=i?l:`${d}px`,m=-c+"px"):"top"===s?(p=i?l:`${d}px`,m=`${r.floating.height+c}px`):"right"===s?(p=-c+"px",m=i?l:`${f}px`):"left"===s&&(p=`${r.floating.width+c}px`,m=i?l:`${f}px`),{data:{x:p,y:m}}}});function At(e){const[t,n="center"]=e.split("-");return[t,n]}var jt=xt,It=Rt,Lt=Dt,kt=Pt,Ft=e.forwardRef((t,n)=>{const{container:o,...i}=t,[a,c]=e.useState(!1);I(()=>c(!0),[]);const s=o||a&&globalThis?.document?.body;return s?r.createPortal(m.jsx(R.div,{...i,ref:n}),s):null});function Wt({prop:t,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),a=S(n);return e.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==t,c=a?t:o,s=S(r);return[c,e.useCallback(e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&s(n)}else i(e)},[a,t,i,s])]}function $t(e){const t=e+"CollectionProvider",[n,r]=pt(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return m.jsx(i,{scope:t,itemMap:a,collectionRef:r,children:n})};c.displayName=t;const s=e+"CollectionSlot",u=o.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=g(t,a(s,n).collectionRef);return m.jsx(y,{ref:o,children:r})});u.displayName=s;const l=e+"CollectionItemSlot",d="data-radix-collection-item",f=o.forwardRef((e,t)=>{const{scope:n,children:r,...i}=e,c=o.useRef(null),s=g(t,c),u=a(l,n);return o.useEffect(()=>(u.itemMap.set(c,{ref:c,...i}),()=>{u.itemMap.delete(c)})),m.jsx(y,{[d]:"",ref:s,children:r})});return f.displayName=l,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=a(e+"CollectionConsumer",t);return o.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}Ft.displayName="Portal";var Bt=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),a=e.useRef(n),c=e.useRef("none"),s=n?"mounted":"unmounted",[u,l]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Ut(i.current);c.current="mounted"===u?e:"none"},[u]),I(()=>{const e=i.current,t=a.current;if(t!==n){const r=c.current,o=Ut(e);if(n)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=n}},[n,l]),I(()=>{if(r){const e=e=>{const n=Ut(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync(()=>l("ANIMATION_END"))},n=e=>{e.target===r&&(c.current=Ut(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}l("ANIMATION_END")},[r,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:e.useCallback(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(r),a="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),c=g(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof o||i.isPresent?e.cloneElement(a,{ref:c}):null};function Ut(e){return e?.animationName||"none"}Bt.displayName="Presence";var Kt=e.createContext(void 0);function Vt(t){const n=e.useContext(Kt);return t||n||"ltr"}var Ht,zt="dismissableLayer.update",Gt="dismissableLayer.pointerDownOutside",Xt="dismissableLayer.focusOutside",Yt=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zt=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...u}=t,l=e.useContext(Yt),[d,f]=e.useState(null),p=d?.ownerDocument??globalThis?.document,[,v]=e.useState({}),y=g(n,e=>f(e)),w=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(b),E=d?w.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,D=E>=x,M=function(t,n=globalThis?.document){const r=S(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>
vendor: 4,325 bytes, line 1
1{if(e.target&&!o.current){let t=function(){Jt(Gt,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...l.branches].some(e=>e.contains(t));D&&!n&&(i?.(e),c?.(e),e.defaultPrevented||s?.())},p),_=function(t,n=globalThis?.document){const r=S(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){Jt(Xt,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),c?.(e),e.defaultPrevented||s?.())},p);return O(e=>{E===l.layers.size-1&&(o?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},p),e.useEffect(()=>{if(d)return r&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(Ht=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),qt(),()=>{r&&1===l.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Ht)}},[d,p,r,l]),e.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),qt())},[d,l]),e.useEffect(()=>{const e=()=>v({});return document.addEventListener(zt,e),()=>document.removeEventListener(zt,e)},[]),m.jsx(R.div,{...u,ref:y,style:{pointerEvents:C?D?"auto":"none":void 0,...t.style},onFocusCapture:h(t.onFocusCapture,_.onFocusCapture),onBlurCapture:h(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:h(t.onPointerDownCapture,M.onPointerDownCapture)})});Zt.displayName="DismissableLayer";function qt(){const e=new CustomEvent(zt);document.dispatchEvent(e)}function Jt(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?C(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(Yt),o=e.useRef(null),i=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),m.jsx(R.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var Qt=0;function en(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var tn="focusScope.autoFocusOnMount",nn="focusScope.autoFocusOnUnmount",rn={bubbles:!1,cancelable:!0},on=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...c}=t,[s,u]=e.useState(null),l=S(i),d=S(a),f=e.useRef(null),p=g(n,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:un(f.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||un(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&un(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,s,h.paused]),e.useEffect(()=>{if(s){ln.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(tn,rn);s.addEventListener(tn,l),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(un(r,{select:t}),document.activeElement!==n)return}((e=an(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&un(s))}return()=>{s.removeEventListener(tn,l),setTimeout(()=>{const e=new CustomEvent(nn,rn);s.addEventListener(nn,d),s.dispatchEvent(e),e.defaultPrevented||un(t??document.body,{select:!0}),s.removeEventListener(nn,d),ln.remove(h)}
vendor: 4,361 bytes, line 1
1,0)}}var e},[s,l,d,h]);const v=e.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=an(e),n=cn(t,e),r=cn(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&un(i,{select:!0})):(e.preventDefault(),r&&un(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return m.jsx(R.div,{tabIndex:-1,...c,ref:p,onKeyDown:v})});function an(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cn(e,t){for(const n of e)if(!sn(n,{upTo:t}))return n}function sn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}on.displayName="FocusScope";var ln=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dn(e,t),e.unshift(t)},remove(t){e=dn(e,t),e[0]?.resume()}}}();function dn(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var fn=e.forwardRef((t,n)=>{const{container:o,...i}=t,[a,c]=e.useState(!1);I(()=>c(!0),[]);const s=o||a&&globalThis?.document?.body;return s?r.createPortal(m.jsx(R.div,{...i,ref:n}),s):null});fn.displayName="Portal";var pn="rovingFocusGroup.onEntryFocus",mn={bubbles:!1,cancelable:!0},hn="RovingFocusGroup",[vn,gn,yn]=$t(hn),[wn,bn]=pt(hn,[yn]),[xn,En]=wn(hn),Rn=e.forwardRef((e,t)=>m.jsx(vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Cn,{...e,ref:t})})}));Rn.displayName=hn;var Cn=e.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),v=g(n,p),y=Vt(a),[w=null,b]=Wt({prop:c,defaultProp:s,onChange:u}),[x,E]=e.useState(!1),C=S(l),O=gn(r),D=e.useRef(!1),[M,_]=e.useState(0);return e.useEffect(()=>{const e=p.current;if(e)return e.addEventListener(pn,C),()=>e.removeEventListener(pn,C)},[C]),m.jsx(xn,{scope:r,orientation:o,dir:y,loop:i,currentTabStopId:w,onItemFocus:e.useCallback(e=>b(e),[b]),onItemShiftTab:e.useCallback(()=>E(!0),[]),onFocusableItemAdd:e.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>_(e=>e-1),[]),children:m.jsx(R.div,{tabIndex:x||0===M?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:h(t.onMouseDown,()=>{D.current=!0}),onFocus:h(t.onFocus,e=>{const t=!D.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(pn,mn);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=O().filter(e=>e.focusable);Mn([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),d)}}D.current=!1}),onBlur:h(t.onBlur,()=>E(!1))})})}),Sn="RovingFocusGroupItem",On=e.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...c}=t,s=F(),u=a||s,l=En(Sn,r),d=l.currentTabStopId===u,f=gn(r),{onFocusableItemAdd:p,onFocusableItemRemove:v}=l;return e.useEffect(()=>{if(o)return p(),()=>v()},[o,p,v]),m.jsx(vn.ItemSlot,{scope:r,id:u,focusable:o,active:i,children:m.jsx(R.span,{tabIndex:d?0:-1,"data-orientation":l.orientation,...c,ref:n,onMouseDown:h(t.onMouseDown,e=>{o?l.onItemFocus(u):e.preventDefault()}),onFocus:h(t.onFocus,()=>l.onItemFocus(u)),onKeyDown:h(t.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Dn[r]}(e,l.orientation,l.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>
vendor: 15,038 bytes, line 1
1e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=l.loop?(r=i+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>Mn(o))}var n,r})})})});On.displayName=Sn;var Dn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mn(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var _n=Rn,Pn=On,Nn=new WeakMap,Tn=new WeakMap,An={},jn=0,In=function(e){return e&&(e.host||In(e.parentNode))},Ln=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=In(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);An[n]||(An[n]=new WeakMap);var i=An[n],a=[],c=new Set,s=new Set(o),u=function(e){e&&!c.has(e)&&(c.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(c.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(Nn.get(e)||0)+1,u=(i.get(e)||0)+1;Nn.set(e,s),i.set(e,u),a.push(e),1===s&&o&&Tn.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(d){}})};return l(t),c.clear(),jn++,function(){a.forEach(function(e){var t=Nn.get(e)-1,o=i.get(e)-1;Nn.set(e,t),i.set(e,o),t||(Tn.has(e)||e.removeAttribute(r),Tn.delete(e)),o||e.removeAttribute(n)}),--jn||(Nn=new WeakMap,Nn=new WeakMap,Tn=new WeakMap,An={})}},kn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ln(r,o,n,"aria-hidden")):function(){return null}},Fn=function(){return Fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fn.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Wn="right-scroll-bar-position",$n="width-before-scroll-bar";function Bn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Un="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Kn=new WeakMap;function Vn(t,n){var r,o,i,a=(r=null,o=function(e){return t.forEach(function(t){return Bn(t,e)})},(i=e.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Un(function(){var e=Kn.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach(function(e){r.has(e)||Bn(e,null)}),r.forEach(function(e){n.has(e)||Bn(e,o)})}Kn.set(a,t)},[t]),a}var Hn=function(){return Hn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hn.apply(this,arguments)};function zn(e){return e}function Gn(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=zn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Hn({async:!0,ssr:!1},e),t}"function"==typeof SuppressedError&&SuppressedError;var Xn=function(t){var n=t.sideCar,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Hn({},r))};function Yn(e,t){return e.useMedium(t),Xn}Xn.isSideCarExport=!0;var Zn=Gn(),qn=function(){},Jn=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:qn,onWheelCapture:qn,onTouchMoveCapture:qn}),i=o[0],a=o[1],c=t.forwardProps,s=t.children,u=t.className,l=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noIsolation,h=t.inert,v=t.allowPinchZoom,g=t.as,y=void 0===g?"div":g,w=t.gapMode,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,E=Vn([r,n]),R=Fn(Fn({},b),i);return e.createElement(e.Fragment,null,d&&e.createElement(x,{sideCar:Zn,removeScrollBar:l,shards:f,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:w}),c?e.cloneElement(e.Children.only(s),Fn(Fn({},R),{ref:E})):e.createElement(y,Fn({},R,{className:u,ref:E}),s))});Jn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Jn.classNames={fullWidth:$n,zeroRight:Wn};function Qn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var er=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Qn())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tr=function(){var t,n=(t=er(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},nr={left:0,top:0,right:0,gap:0},rr=function(e){return parseInt(e||"",10)||0},or=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return nr;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[rr(n),rr(r),rr(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ir=tr(),ar="data-scroll-locked",cr=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body[").concat(ar,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Wn," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat($n," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(Wn," .").concat(Wn," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat($n," .").concat($n," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ar,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},sr=function(){var e=parseInt(document.body.getAttribute(ar)||"0",10);return isFinite(e)?e:0},ur=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(ar,(sr()+1).toString()),function(){var e=sr()-1;e<=0?document.body.removeAttribute(ar):document.body.setAttribute(ar,e.toString())}},[]);var a=e.useMemo(function(){return or(i)},[i]);return e.createElement(ir,{styles:cr(a,!n,i,r?"":"!important")})},lr=!1;if("undefined"!=typeof window)try{var dr=Object.defineProperty({},"passive",{get:function(){return lr=!0,!0}});window.addEventListener("test",dr,dr),window.removeEventListener("test",dr,dr)}catch(es){lr=!1}var fr=!!lr&&{passive:!1},pr=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},mr=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),hr(e,r)){var o=vr(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hr=function(e,t){return"v"===e?function(e){return pr(e,"overflowY")}(t):function(e){return pr(e,"overflowX")}(t)},vr=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},gr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yr=function(e){return[e.deltaX,e.deltaY]},wr=function(e){return e&&"current"in e?e.current:e},br=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},xr=0,Er=[];function Rr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Cr=Yn(Zn,function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(xr++)[0],a=e.useState(tr)[0],c=e.useRef(t);e.useEffect(function(){c.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(wr),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var s=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!c.current.allowPinchZoom;var n,i=gr(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=mr(d,l);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=mr(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,c=n.target,s=t.contains(c),u=!1,l=a>0,d=0,f=0;do{var p=vr(e,c),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&hr(e,c)&&(d+=h,f+=m),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return l&&(Math.abs(d)<1||!o)?u=!0:l||!(Math.abs(f)<1)&&o||(u=!0),u}(p,t,e,"h"===p?s:u,!0)},[]),u=e.useCallback(function(e){var t=e;if(Er.length&&Er[Er.length-1]===a){var r="deltaY"in t?yr(t):gr(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(c.current.shards||[]).map(wr).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?s(t,i[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),l=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Rr(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=gr(e),o.current=void 0},[]),f=e.useCallback(function(e){l(e.type,yr(e),e.target,s(e,t.lockRef.current))},[]),p=e.useCallback(function(e){l(e.type,gr(e),e.target,s(e,t.lockRef.current))},[]);e.useEffect(function(){return Er.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,fr),document.addEventListener("touchmove",u,fr),document.addEventListener("touchstart",d,fr),function(){Er=Er.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,fr),document.removeEventListener("touchmove",u,fr),document.removeEventListener("touchstart",d,fr)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:br(i)}):null,m?e.createElement(ur,{gapMode:t.gapMode}):null)});var Sr=e.forwardRef(function(t,n){return e.createElement(Jn,Fn({},t,{ref:n,sideCar:Cr}))});Sr.classNames=Jn.classNames;var Or=["Enter"," "],Dr=["ArrowUp","PageDown","End"],Mr=["ArrowDown","PageUp","Home",...Dr],_r={ltr:[...Or,"ArrowRight"],rtl:[...Or,"ArrowLeft"]},Pr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nr="Menu",[Tr,Ar,jr]=$t(Nr),[Ir,Lr]=pt(Nr,[jr,yt,bn]),kr=yt(),Fr=bn(),[Wr,$r]=Ir(Nr),[Br,Ur]=Ir(Nr),Kr=t=>{const{__scopeMenu:n,open:r=!1,children:o,dir:i,onOpenChange:a,modal:c=!0}=t,s=kr(n),[u,l]=e.useState(null),d=e.useRef(!1),f=S(a),p=Vt(i);return e.useEffect(()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(jt,{...s,children:m.jsx(Wr,{scope:n,open:r,onOpenChange:f,content:u,onContentChange:l,children:m.jsx(Br,{scope:n,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:c,children:o})})})};Kr.displayName=Nr;var Vr=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kr(n);return m.jsx(It,{...o,...r,ref:t})});Vr.displayName="MenuAnchor";var Hr="MenuPortal",[zr,Gr]=Ir(Hr,{forceMount:void 0}),Xr=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=$r(Hr,t);return m.jsx(zr,{scope:t,forceMount:n,children:m.jsx(Bt,{present:n||i.open,children:m.jsx(fn,{asChild:!0,container:o,children:r})})})};Xr.displayName=Hr;var Yr="MenuContent",[Zr,qr]=Ir(Yr),Jr=e.forwardRef((e,t)=>
vendor: 17,661 bytes, line 1
1{const n=Gr(Yr,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=$r(Yr,e.__scopeMenu),a=Ur(Yr,e.__scopeMenu);return m.jsx(Tr.Provider,{scope:e.__scopeMenu,children:m.jsx(Bt,{present:r||i.open,children:m.jsx(Tr.Slot,{scope:e.__scopeMenu,children:a.modal?m.jsx(Qr,{...o,ref:t}):m.jsx(eo,{...o,ref:t})})})})}),Qr=e.forwardRef((t,n)=>{const r=$r(Yr,t.__scopeMenu),o=e.useRef(null),i=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return kn(e)},[]),m.jsx(to,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:h(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),eo=e.forwardRef((e,t)=>{const n=$r(Yr,e.__scopeMenu);return m.jsx(to,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),to=e.forwardRef((t,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,disableOutsideScroll:w,...b}=t,x=$r(Yr,r),E=Ur(Yr,r),R=kr(r),C=Fr(r),S=Ar(r),[O,D]=e.useState(null),M=e.useRef(null),_=g(n,M,x.onContentChange),P=e.useRef(0),N=e.useRef(""),T=e.useRef(0),A=e.useRef(null),j=e.useRef("right"),I=e.useRef(0),L=w?Sr:e.Fragment,k=w?{as:y,allowPinchZoom:!0}:void 0,F=e=>{const t=N.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(c=e,s=Math.max(i,0),c.map((e,t)=>c[(s+t)%c.length]));var c,s;1===o.length&&(a=a.filter(e=>e!==n));const u=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),a=n.find(e=>e.textValue===i)?.ref.current;!function e(t){N.current=t,window.clearTimeout(P.current),""!==t&&(P.current=window.setTimeout(()=>e(""),1e3))}(t),a&&setTimeout(()=>a.focus())};e.useEffect(()=>()=>window.clearTimeout(P.current),[]),e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??en()),document.body.insertAdjacentElement("beforeend",e[1]??en()),Qt++,()=>{1===Qt&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Qt--}},[]);const W=e.useCallback(e=>j.current===A.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i].x,c=t[i].y,s=t[a].x,u=t[a].y;c>r!=u>r&&n<(s-e)*(r-c)/(u-c)+e&&(o=!o)}return o}(n,t)}(e,A.current?.area),[]);return m.jsx(Zr,{scope:r,searchRef:N,onItemEnter:e.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:e.useCallback(e=>{W(e)||(M.current?.focus(),D(null))},[W]),onTriggerLeave:e.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:T,onPointerGraceIntentChange:e.useCallback(e=>{A.current=e},[]),children:m.jsx(L,{...k,children:m.jsx(on,{asChild:!0,trapped:i,onMountAutoFocus:h(a,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:m.jsx(Zt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,children:m.jsx(_n,{asChild:!0,...C,dir:E.dir,orientation:"vertical",loop:o,currentTabStopId:O,onCurrentTabStopIdChange:D,onEntryFocus:h(u,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Lt,{role:"menu","aria-orientation":"vertical","data-state":Mo(x.open),"data-radix-menu-content":"",dir:E.dir,...R,...b,ref:_,style:{outline:"none",...b.style},onKeyDown:h(b.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&F(e.key));const o=M.current;if(e.target!==o)return;if(!Mr.includes(e.key))return;e.preventDefault();const i=S().filter(e=>!e.disabled).map(e=>e.ref.current);Dr.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)}),onBlur:h(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),N.current="")}),onPointerMove:h(t.onPointerMove,No(e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";j.current=t,I.current=e.clientX}}))})})})})})})});Jr.displayName=Yr;var no=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(R.div,{role:"group",...r,ref:t})});no.displayName="MenuGroup";var ro=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(R.div,{...r,ref:t})});ro.displayName="MenuLabel";var oo="MenuItem",io="menu.itemSelect",ao=e.forwardRef((t,n)=>{const{disabled:r=!1,onSelect:o,...i}=t,a=e.useRef(null),c=Ur(oo,t.__scopeMenu),s=qr(oo,t.__scopeMenu),u=g(n,a),l=e.useRef(!1);return m.jsx(co,{...i,ref:u,disabled:r,onClick:h(t.onClick,()=>{const e=a.current;if(!r&&e){const t=new CustomEvent(io,{bubbles:!0,cancelable:!0});e.addEventListener(io,e=>o?.(e),{once:!0}),C(e,t),t.defaultPrevented?l.current=!1:c.onClose()}}),onPointerDown:e=>{t.onPointerDown?.(e),l.current=!0},onPointerUp:h(t.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:h(t.onKeyDown,e=>{const t=""!==s.searchRef.current;r||t&&" "===e.key||Or.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ao.displayName=oo;var co=e.forwardRef((t,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:i,...a}=t,c=qr(oo,r),s=Fr(r),u=e.useRef(null),l=g(n,u),[d,f]=e.useState(!1),[p,v]=e.useState("");return e.useEffect(()=>{const e=u.current;e&&v((e.textContent??"").trim())},[a.children]),m.jsx(Tr.ItemSlot,{scope:r,disabled:o,textValue:i??p,children:m.jsx(Pn,{asChild:!0,...s,focusable:!o,children:m.jsx(R.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...a,ref:l,onPointerMove:h(t.onPointerMove,No(e=>{if(o)c.onItemLeave(e);else if(c.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:h(t.onPointerLeave,No(e=>c.onItemLeave(e))),onFocus:h(t.onFocus,()=>f(!0)),onBlur:h(t.onBlur,()=>f(!1))})})})}),so=e.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(go,{scope:e.__scopeMenu,checked:n,children:m.jsx(ao,{role:"menuitemcheckbox","aria-checked":_o(n)?"mixed":n,...o,ref:t,"data-state":Po(n),onSelect:h(o.onSelect,()=>r?.(!!_o(n)||!n),{checkForDefaultPrevented:!1})})})});so.displayName="MenuCheckboxItem";var uo="MenuRadioGroup",[lo,fo]=Ir(uo,{value:void 0,onValueChange:()=>{}}),po=e.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=S(r);return m.jsx(lo,{scope:e.__scopeMenu,value:n,onValueChange:i,children:m.jsx(no,{...o,ref:t})})});po.displayName=uo;var mo="MenuRadioItem",ho=e.forwardRef((e,t)=>{const{value:n,...r}=e,o=fo(mo,e.__scopeMenu),i=n===o.value;return m.jsx(go,{scope:e.__scopeMenu,checked:i,children:m.jsx(ao,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Po(i),onSelect:h(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ho.displayName=mo;var vo="MenuItemIndicator",[go,yo]=Ir(vo,{checked:!1}),wo=e.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=yo(vo,n);return m.jsx(Bt,{present:r||_o(i.checked)||!0===i.checked,children:m.jsx(R.span,{...o,ref:t,"data-state":Po(i.checked)})})});wo.displayName=vo;var bo=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(R.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});bo.displayName="MenuSeparator";var xo=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kr(n);return m.jsx(kt,{...o,...r,ref:t})});xo.displayName="MenuArrow";var[Eo,Ro]=Ir("MenuSub"),Co="MenuSubTrigger",So=e.forwardRef((t,n)=>{const r=$r(Co,t.__scopeMenu),o=Ur(Co,t.__scopeMenu),i=Ro(Co,t.__scopeMenu),a=qr(Co,t.__scopeMenu),c=e.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:t.__scopeMenu},d=e.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return e.useEffect(()=>d,[d]),e.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),u(null)}},[s,u]),m.jsx(Vr,{asChild:!0,...l,children:m.jsx(co,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":Mo(r.open),...t,ref:v(n,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:h(t.onPointerMove,No(e=>{a.onItemEnter(e),e.defaultPrevented||t.disabled||r.open||c.current||(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:h(t.onPointerLeave,No(e=>{d();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,o="right"===n,i=o?-5:5,c=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:c,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:c,y:t.bottom}],side:n}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:h(t.onKeyDown,e=>{const n=""!==a.searchRef.current;t.disabled||n&&" "===e.key||_r[o.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())})})})});So.displayName=Co;var Oo="MenuSubContent",Do=e.forwardRef((t,n)=>{const r=Gr(Yr,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=$r(Yr,t.__scopeMenu),c=Ur(Yr,t.__scopeMenu),s=Ro(Oo,t.__scopeMenu),u=e.useRef(null),l=g(n,u);return m.jsx(Tr.Provider,{scope:t.__scopeMenu,children:m.jsx(Bt,{present:o||a.open,children:m.jsx(Tr.Slot,{scope:t.__scopeMenu,children:m.jsx(to,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:h(t.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:h(t.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:h(t.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Pr[c.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function Mo(e){return e?"open":"closed"}function _o(e){return"indeterminate"===e}function Po(e){return _o(e)?"indeterminate":e?"checked":"unchecked"}function No(e){return t=>"mouse"===t.pointerType?e(t):void 0}Do.displayName=Oo;var To=Kr,Ao=Vr,jo=Xr,Io=Jr,Lo=no,ko=ro,Fo=ao,Wo=so,$o=po,Bo=ho,Uo=wo,Ko=bo,Vo=xo,Ho=So,zo=Do,Go="DropdownMenu",[Xo,Yo]=pt(Go,[Lr]),Zo=Lr(),[qo,Jo]=Xo(Go),Qo=t=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:i,defaultOpen:a,onOpenChange:c,modal:s=!0}=t,u=Zo(n),l=e.useRef(null),[d=!1,f]=Wt({prop:i,defaultProp:a,onChange:c});return m.jsx(qo,{scope:n,triggerId:F(),triggerRef:l,contentId:F(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:s,children:m.jsx(To,{...u,open:d,onOpenChange:f,dir:o,modal:s,children:r})})};Qo.displayName=Go;var ei="DropdownMenuTrigger",ti=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Jo(ei,n),a=Zo(n);return m.jsx(Ao,{asChild:!0,...a,children:m.jsx(R.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:v(t,i.triggerRef),onPointerDown:h(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:h(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ti.displayName=ei;var ni=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Zo(t);return m.jsx(jo,{...r,...n})};ni.displayName="DropdownMenuPortal";var ri="DropdownMenuContent",oi=e.forwardRef((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Jo(ri,r),a=Zo(r),c=e.useRef(!1);return m.jsx(Io,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...o,ref:n,onCloseAutoFocus:h(t.onCloseAutoFocus,e=>{c.current||i.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:h(t.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(c.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oi.displayName=ri;e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Lo,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var ii=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(ko,{...o,...r,ref:t})});ii.displayName="DropdownMenuLabel";var ai=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Fo,{...o,...r,ref:t})});ai.displayName="DropdownMenuItem";var ci=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Wo,{...o,...r,ref:t})});ci.displayName="DropdownMenuCheckboxItem";e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx($o,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var si=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Bo,{...o,...r,ref:t})});si.displayName="DropdownMenuRadioItem";var ui=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Uo,{...o,...r,ref:t})});ui.displayName="DropdownMenuItemIndicator";var li=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Ko,{...o,...r,ref:t})});li.displayName="DropdownMenuSeparator";e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Vo,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var di=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(Ho,{...o,...r,ref:t})});di.displayName="DropdownMenuSubTrigger";var fi=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zo(n);return m.jsx(zo,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fi.displayName="DropdownMenuSubContent";var pi=Qo,mi=ti,hi=ni,vi=oi,gi=ii,yi=ai,wi=ci,bi=si,xi=ui,Ei=li,Ri=di,Ci=fi;function Si(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}var Oi=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef({}),i=e.useRef(t),a=e.useRef("none"),c=t?"mounted":"unmounted",[s,u]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Di(o.current);a.current="mounted"===s?e:"none"},[s]),I(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=Di(e);if(t)u("MOUNT");else if("none"===o||"none"===e?.display)u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,u]),I(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=Di(o.current).includes(r.animationName);if(r.target===n&&a&&(u("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},c=e=>{e.target===n&&(a.current=Di(o.current))};return n.addEventListener("animationstart",c),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",c),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=g(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function Di(e){return e?.animationName||"none"}Oi.displayName="Presence";var Mi=0;function _i(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,135 bytes, line 1
1style.position="fixed",e.style.pointerEvents="none",e}var Pi=function(){return Pi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pi.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Ni=Gn(),Ti=function(){},Ai=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Ti,onWheelCapture:Ti,onTouchMoveCapture:Ti}),i=o[0],a=o[1],c=t.forwardProps,s=t.children,u=t.className,l=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noIsolation,h=t.inert,v=t.allowPinchZoom,g=t.as,y=void 0===g?"div":g,w=t.gapMode,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,E=Vn([r,n]),R=Pi(Pi({},b),i);return e.createElement(e.Fragment,null,d&&e.createElement(x,{sideCar:Ni,removeScrollBar:l,shards:f,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:w}),c?e.cloneElement(e.Children.only(s),Pi(Pi({},R),{ref:E})):e.createElement(y,Pi({},R,{className:u,ref:E}),s))});Ai.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ai.classNames={fullWidth:$n,zeroRight:Wn};var ji=!1;if("undefined"!=typeof window)try{var Ii=Object.defineProperty({},"passive",{get:function(){return ji=!0,!0}});window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch(es){ji=!1}var Li=!!ji&&{passive:!1},ki=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Fi=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Wi(e,r)){var o=$i(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Wi=function(e,t){return"v"===e?function(e){return ki(e,"overflowY")}(t):function(e){return ki(e,"overflowX")}(t)},$i=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Bi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ui=function(e){return[e.deltaX,e.deltaY]},Ki=function(e){return e&&"current"in e?e.current:e},Vi=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Hi=0,zi=[];function Gi(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xi=Yn(Ni,function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Hi++)[0],a=e.useState(tr)[0],c=e.useRef(t);e.useEffect(function(){c.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Ki),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var s=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var n,i=Bi(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=Fi(d,l);if(!f)return!0;
1if(f?n=d:(n="v"===d?"h":"v",f=Fi(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,c=n.target,s=t.contains(c),u=!1,l=a>0,d=0,f=0;do{var p=$i(e,c),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Wi(e,c)&&(d+=h,f+=m),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return l&&(Math.abs(d)<1||!o)?u=!0:l||!(Math.abs(f)<1)&&o||(u=!0),u}(p,t,e,"h"===p?s:u,!0)},[]),u=e.useCallback(function(e){var t=e;if(zi.length&&zi[zi.length-1]===a){var r="deltaY"in t?Ui(t):Bi(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(c.current.shards||[]).map(Ki).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?s(t,i[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),l=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Gi(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=Bi(e),o.current=void 0},[]),f=e.useCallback(function(e){l(e.type,Ui(e),e.target,s(e,t.lockRef.current))},[]),p=e.useCallback(function(e){l(e.type,Bi(e),e.target,s(e,t.lockRef.current))},[]);e.useEffect(function(){return zi.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Li),document.addEventListener("touchmove",u,Li),document.addEventListener("touchstart",d,Li),function(){zi=zi.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Li),document.removeEventListener("touchmove",u,Li),document.removeEventListener("touchstart",d,Li)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Vi(i)}):null,m?e.createElement(ur,{gapMode:t.gapMode}):null)});var Yi=e.forwardRef(function(t,n){return e.createElement(Ai,Pi({},t,{ref:n,sideCar:Xi}))});Yi.classNames=Ai.classNames;var Zi="Dialog",[qi,Ji]=function(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const c=n=>{const{scope:r,children:o,...c}=n,s=r?.[t]?.[a]||i,u=e.useMemo(()=>c,Object.values(c));return m.jsx(s.Provider,{value:u,children:o})};return c.displayName=n+"Provider",[c,function(r,c){const s=c?.[t]?.[a]||i,u=e.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Si(o,...n)]}(Zi),[Qi,ea]=qi(Zi),ta=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:c=!0}=t,s=e.useRef(null),u=e.useRef(null),[l=!1,d]=Wt({prop:o,defaultProp:i,onChange:a});return m.jsx(Qi,{scope:n,triggerRef:s,contentRef:u,contentId:F(),titleId:F(),descriptionId:F(),open:l,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:c,children:r})};ta.displayName=Zi;var na="DialogTrigger";e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ea(na,n),i=g(t,o.triggerRef);return m.jsx(R.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xa(o.open),...r,ref:i,onClick:h(e.onClick,o.onOpenToggle)})}).displayName=na;var ra="DialogPortal",[oa,ia]=qi(ra,{forceMount:void 0}),aa=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,a=ea(ra,n);return m.jsx(oa,{scope:n,forceMount:r,children:e.Children.map(o,e=>m.jsx(Oi,{present:r||a.open,children:m.jsx(Ft,{asChild:!0,container:i,children:e})}))})};aa.displayName=ra;var ca="DialogOverlay",sa=e.forwardRef((e,t)=>{const n=ia(ca,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ea(ca,e.__scopeDialog);return i.modal?m.jsx(Oi,{present:r||i.open,children:m.jsx(ua,{...o,ref:t})}):null});sa.displayName=ca;var ua=e.forwardRef((e,t)=>
vendor: 5,080 bytes, line 1
1{const{__scopeDialog:n,...r}=e,o=ea(ca,n);return m.jsx(Yi,{as:y,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(R.div,{"data-state":xa(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),la="DialogContent",da=e.forwardRef((e,t)=>{const n=ia(la,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ea(la,e.__scopeDialog);return m.jsx(Oi,{present:r||i.open,children:i.modal?m.jsx(fa,{...o,ref:t}):m.jsx(pa,{...o,ref:t})})});da.displayName=la;var fa=e.forwardRef((t,n)=>{const r=ea(la,t.__scopeDialog),o=e.useRef(null),i=g(n,r.contentRef,o);return e.useEffect(()=>{const e=o.current;if(e)return kn(e)},[]),m.jsx(ma,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(t.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:h(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:h(t.onFocusOutside,e=>e.preventDefault())})}),pa=e.forwardRef((t,n)=>{const r=ea(la,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return m.jsx(ma,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),ma=e.forwardRef((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...c}=t,s=ea(la,r),u=e.useRef(null),l=g(n,u);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_i()),document.body.insertAdjacentElement("beforeend",e[1]??_i()),Mi++,()=>{1===Mi&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Mi--}},[]),m.jsxs(m.Fragment,{children:[m.jsx(on,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:m.jsx(T,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":xa(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Sa,{titleId:s.titleId}),m.jsx(Oa,{contentRef:u,descriptionId:s.descriptionId})]})]})}),ha="DialogTitle",va=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ea(ha,n);return m.jsx(R.h2,{id:o.titleId,...r,ref:t})});va.displayName=ha;var ga="DialogDescription",ya=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ea(ga,n);return m.jsx(R.p,{id:o.descriptionId,...r,ref:t})});ya.displayName=ga;var wa="DialogClose",ba=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ea(wa,n);return m.jsx(R.button,{type:"button",...r,ref:t,onClick:h(e.onClick,()=>o.onOpenChange(!1))})});function xa(e){return e?"open":"closed"}ba.displayName=wa;var Ea="DialogTitleWarning",[Ra,Ca]=function(t,n){const r=e.createContext(n),o=t=>{const{children:n,...o}=t,i=e.useMemo(()=>o,Object.values(o));return m.jsx(r.Provider,{value:i,children:n})};return o.displayName=t+"Provider",[o,function(o){const i=e.useContext(r);if(i)return i;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}(Ea,{contentName:la,titleName:ha,docsSlug:"dialog"}),Sa=({titleId:t})=>{const n=Ca(Ea),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)}},[r,t]),null},Oa=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ca("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");if(n&&e){document.getElementById(n)}},[r,t,n]),null},Da=ta,Ma=aa,_a=sa,Pa=da,Na=va,Ta=ya,Aa=ba;function ja(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Ia(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o);i.displayName=n+"Context";const a=r.length;r=[...r,o];const c=n=>{const{scope:r,children:o,...c}=n,s=r?.[t]?.[a]||i,u=e.useMemo(()=>c,Object.values(c));return m.jsx(s.Provider,{value:u,children:o})};return c.displayName=n+"Provider",[c,function(r,c){const s=c?.[t]?.[a]||i,u=e.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},La(o,...n)]}function La(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));
1return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function ka(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Fa(...t){return e.useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=ka(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():ka(e[t],null)}}}}(...t),t)}function Wa(t){const n=e.forwardRef((n,r)=>{let{children:o,...i}=n,a=null,c=!1;const s=[];Ka(o)&&"function"==typeof za&&(o=za(o._payload)),e.Children.forEach(o,t=>{if(n=t,e.isValidElement(n)&&"function"==typeof n.type&&"__radixId"in n.type&&n.type.__radixId===$a){c=!0;const e=t;let n="child"in e.props?e.props.child:e.props.children;Ka(n)&&"function"==typeof za&&(n=za(n._payload)),a=Ba(e,n),s.push(a?.props?.children)}else s.push(t);var n}),a?a=e.cloneElement(a,void 0,s):!c&&1===e.Children.count(o)&&e.isValidElement(o)&&(a=o);const u=a?function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a):void 0,l=Fa(r,u);if(!a){if(o||0===o)throw new Error(c?Ha(t):Va(t));return o}const d=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,a.props??{});return a.type!==e.Fragment&&(d.ref=r?l:u),e.cloneElement(a,d)});return n.displayName=`${t}.Slot`,n}var $a=Symbol.for("radix.slottable"),Ba=(t,n)=>{if("child"in t.props){const n=t.props.child;return e.isValidElement(n)?e.cloneElement(n,void 0,t.props.children(n.props.children)):null}return e.isValidElement(n)?n:null};var Ua=Symbol.for("react.lazy");function Ka(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Ua&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}var Va=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Ha=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,za=n[" use ".trim().toString()];var Ga=globalThis?.document?e.useLayoutEffect:()=>{},Xa=n[" useId ".trim().toString()]||(()=>{}),Ya=0;function Za(t){const[n,r]=e.useState(Xa());return Ga(()=>{t||r(e=>e??String(Ya++))},[t]),t||(n?`radix-${n}`:"")}function qa(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ja(...t){return e.useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=qa(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():qa(e[t],null)}}}}(...t),t)}function Qa(t){const n=e.forwardRef((n,r)=>{let{children:o,...i}=n,a=null,c=!1;const s=[];rc(o)&&"function"==typeof ac&&(o=ac(o._payload)),e.Children.forEach(o,t=>{if(n=t,e.isValidElement(n)&&"function"==typeof n.type&&"__radixId"in n.type&&n.type.__radixId===ec){c=!0;const e=t;let n="child"in e.props?e.props.child:e.props.children;rc(n)&&"function"==typeof ac&&(n=ac(n._payload)),a=tc(e,n),s.push(a?.props?.children)}else s.push(t);var n}),a?a=e.cloneElement(a,void 0,s):!c&&1===e.Children.count(o)&&e.isValidElement(o)&&(a=o);const u=a?function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a):void 0,l=Ja(r,u);if(!a){if(o||0===o)throw new Error(c?ic(t):oc(t));return o}const d=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,a.props??{});return a.type!==e.Fragment&&(d.ref=r?l:u),e.cloneElement(a,d)});return n.displayName=`${t}.Slot`,n}var ec=Symbol.for("radix.slottable"),tc=(t,n)=>{if("child"in t.props){const n=t.props.child;return e.isValidElement(n)?e.cloneElement(n,void 0,t.props.children(n.props.children)):null}return e.isValidElement(n)?n:null};var nc=Symbol.for("react.lazy");function rc(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===nc&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}var oc=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ic=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ac=n[" use ".trim().toString()],cc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=Qa(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});var sc=globalThis?.document?e.useLayoutEffect:()=>{},uc=n[" useInsertionEffect ".trim().toString()]||sc;function lc({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,c]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return uc(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),s=void 0!==t,u=s?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==s){}n.current=s},[s,o])}const l=e.useCallback(e=>{if(s){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&c.current?.(n)}else a(e)},[s,t,a,c]);return[u,l]}var dc=e.createContext(void 0);function fc(t){const n=e.useContext(dc);return t||n||"ltr"}var pc="rovingFocusGroup.onEntryFocus",mc={bubbles:!1,cancelable:!0},hc="RovingFocusGroup",[vc,gc,yc]=function(t){const n=t+"CollectionProvider",[r,o]=Ia(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return m.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};c.displayName=n;const s=t+"CollectionSlot",u=Wa(s),l=e.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=Fa(t,a(s,n).collectionRef);return m.jsx(u,{ref:o,children:r})});l.displayName=s;const d=t+"CollectionItemSlot",f="data-radix-collection-item",p=Wa(d),h=e.forwardRef((t,n)=>{const{scope:r,children:o,...i}=t,c=e.useRef(null),s=Fa(n,c),u=a(d,r);return e.useEffect(()=>(u.itemMap.set(c,{ref:c,...i}),()=>{u.itemMap.delete(c)})),m.jsx(p,{[f]:"",ref:s,children:o})});return h.displayName=d,[{Provider:c,Slot:l,ItemSlot:h},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},o]}(hc),[wc,bc]=Ia(hc,[yc]),[xc,Ec]=wc(hc),Rc=e.forwardRef((e,t)=>m.jsx(vc.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(vc.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Cc,{...e,ref:t})})}));Rc.displayName=hc;var Cc=e.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),h=Fa(n,p),v=fc(a),[g,y]=lc({prop:c,defaultProp:s??null,onChange:u,caller:hc}),[w,b]=e.useState(!1),x=function(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}(l),E=gc(r),R=e.useRef(!1),[C,S]=e.useState(0);return e.useEffect(()=>{const e=p.current;if(e)return e.addEventListener(pc,x),()=>e.removeEventListener(pc,x)},[x]),m.jsx(xc,{scope:r,orientation:o,dir:v,loop:i,currentTabStopId:g,onItemFocus:e.useCallback(e=>y(e),[y]),onItemShiftTab:e.useCallback(()=>b(!0),[]),onFocusableItemAdd:e.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>S(e=>e-1),[]),children:m.jsx(cc.div,{tabIndex:w||0===C?-1:0,"data-orientation":o,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:ja(t.onMouseDown,()=>{R.current=!0}),onFocus:ja(t.onFocus,e=>{const t=!R.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(pc,mc);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter(e=>
vendor: 1,578 bytes, line 1
1e.focusable);Mc([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}R.current=!1}),onBlur:ja(t.onBlur,()=>b(!1))})})}),Sc="RovingFocusGroupItem",Oc=e.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,children:c,...s}=t,u=Za(),l=a||u,d=Ec(Sc,r),f=d.currentTabStopId===l,p=gc(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=d;return e.useEffect(()=>{if(o)return h(),()=>v()},[o,h,v]),m.jsx(vc.ItemSlot,{scope:r,id:l,focusable:o,active:i,children:m.jsx(cc.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:n,onMouseDown:ja(t.onMouseDown,e=>{o?d.onItemFocus(l):e.preventDefault()}),onFocus:ja(t.onFocus,()=>d.onItemFocus(l)),onKeyDown:ja(t.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Dc[r]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>Mc(o))}var n,r}),children:"function"==typeof c?c({isCurrentTabStop:f,hasTabStop:null!=g}):c}
vendor: 5,290 bytes, line 1
1)})});Oc.displayName=Sc;var Dc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mc(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var _c=Rc,Pc=Oc,Nc=globalThis?.document?e.useLayoutEffect:()=>{};var Tc=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),c=t?"mounted":"unmounted",[s,u]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=jc(o.current);a.current="mounted"===s?e:"none"},[s]),Nc(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=jc(e);if(t)u("MOUNT");else if("none"===o||"none"===e?.display)u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,u]),Nc(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=jc(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(u("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},c=e=>{e.target===n&&(a.current=jc(o.current))};return n.addEventListener("animationstart",c),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",c),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=function(...t){const n=e.useRef(t);return n.current=t,e.useCallback(e=>{const t=n.current;let r=!1;const o=t.map(t=>{const n=Ac(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){const n=o[e];"function"==typeof n?n():Ac(t[e],null)}}},[])}(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function Ac(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function jc(e){return e?.animationName||"none"}Tc.displayName="Presence";var Ic="Tabs",[Lc,kc]=Ia(Ic,[bc]),Fc=bc(),[Wc,$c]=Lc(Ic),Bc=e.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:c,activationMode:s="automatic",...u}=e,l=fc(c),[d,f]=lc({prop:r,onChange:o,defaultProp:i??"",caller:Ic});return m.jsx(Wc,{scope:n,baseId:Za(),value:d,onValueChange:f,orientation:a,dir:l,activationMode:s,children:m.jsx(cc.div,{dir:l,"data-orientation":a,...u,ref:t})})});Bc.displayName=Ic;var Uc="TabsList",Kc=e.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=$c(Uc,n),a=Fc(n);return m.jsx(_c,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:m.jsx(cc.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Kc.displayName=Uc;var Vc="TabsTrigger",Hc=e.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=$c(Vc,n),c=Fc(n),s=Xc(a.baseId,r),u=Yc(a.baseId,r),l=r===a.value;return m.jsx(Pc,{asChild:!0,...c,focusable:!o,active:l,children:m.jsx(cc.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...i,ref:t,onMouseDown:ja(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:ja(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:ja(e.onFocus,()=>{const e="manual"!==a.activationMode;l||o||!e||a.onValueChange(r)})})})});Hc.displayName=Vc;var zc="TabsContent",Gc=e.forwardRef((t,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...c}=t,s=$c(zc,r),u=Xc(s.baseId,o),l=Yc(s.baseId,o),d=o===s.value,f=e.useRef(d);return e.useEffect(()=>{const e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),m.jsx(Tc,{present:i||d,children:({present:e})=>m.jsx(cc.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!e,id:l,tabIndex:0,...c,ref:n,style:{...t.style,animationDuration:f.current?"0s":void 0},children:e&&a})})});function Xc(e,t){return`${e}-trigger-${t}`}function Yc(e,t){return`${e}-content-${t}`}Gc.displayName=zc;var Zc=Bc,qc=Kc,Jc=Hc,Qc=Gc;export{pi as $,It as A,ur as B,Lt as C,T as D,Yn as E,kn as F,y as G,on as H,F as I,Vt as J,jt as K,qc as L,Ri as M,Ci as N,_a as O,R as P,hi as Q,Da as R,b as S,Na as T,vi as U,yi as V,wi as W,xi as X,bi as Y,gi as Z,Ei as _,I as a,mi as a0,h as b,yt as c,kt as d,O as e,S as f,C as g,$t as h,pt as i,m as j,Wt as k,Bt as l,Pa as m,Aa as n,Ta as o,Ma as p,ht as q,Jc as r,Qc as s,Zc as t,g as u,Gn as v,Vn as w,$n as x,tr as y,Wn as z};

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.