1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1181],{17378:(e,t,r)=>{r.d(t,{uB:()=>V,xL:()=>L,G7:()=>M,h_:()=>_,oI:()=>K});var n=/[\\\/_+.#"@\[\(\{&]/,l=/[\\\/_+.#"@\[\(\{&]/g,o=/[\s-]/,a=/[\s-]/g;function i(e){return e.toLowerCase().replace(a," ")}var u=r(43834),c=r(33552),s=r.t(c,2);r(6177);var d=r(1415),f=r(6940),p=Symbol.for("react.lazy"),v=s[" use ".trim().toString()];function m(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===p&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var h=Symbol("radix.slottable");function g(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=c.forwardRef((e,t)=>{let{children:r,...n}=e;if(m(r)&&"function"==typeof v&&(r=v(r._payload)),c.isValidElement(r)){var l;let e,o,a=(l=r,(o=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(o=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),i=function(e,t){let r={...t};for(let n in t){let l=e[n],o=t[n];/^on[A-Z]/.test(n)?l&&o?r[n]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...o}:"className"===n&&(r[n]=[l,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==c.Fragment&&(i.ref=t?(0,d.t)(t,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=c.forwardRef((e,r)=>{let{children:n,...l}=e;m(n)&&"function"==typeof v&&(n=v(n._payload));let o=c.Children.toArray(n),a=o.find(g);
1if(a){let e=a.props.children,n=o.map(t=>t!==a?t:c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...l,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,n):null})}return(0,f.jsx)(t,{...l,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),n=c.forwardRef((e,n)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(l?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),y=r(51754),w='[cmdk-group=""]',x='[cmdk-group-items=""]',C='[cmdk-item=""]',E="".concat(C,':not([aria-disabled="true"])'),R="cmdk-item-select",k="data-value",A=(e,t,r)=>(function(e,t,r){return function e(t,r,i,u,c,s,d){if(s===r.length)return c===t.length?1:.99;var f=`${c},${s}`;if(void 0!==d[f])return d[f];for(var p,v,m,h,g=u.charAt(s),b=i.indexOf(g,c),y=0;b>=0;)(p=e(t,r,i,u,b+1,s+1,d))>y&&(b===c?p*=1:n.test(t.charAt(b-1))?(p*=.8,(m=t.slice(c,b-1).match(l))&&c>0&&(p*=Math.pow(.999,m.length))):o.test(t.charAt(b-1))?(p*=.9,(h=t.slice(c,b-1).match(a))&&c>0&&(p*=Math.pow(.999,h.length))):(p*=.17,c>0&&(p*=Math.pow(.999,b-c))),t.charAt(b)!==r.charAt(s)&&(p*=.9999)),(p<.1&&i.charAt(b-1)===u.charAt(s+1)||u.charAt(s+1)===u.charAt(s)&&i.charAt(b-1)!==u.charAt(s))&&.1*(v=e(t,r,i,u,b+1,s+2,d))>p&&(p=.1*v),p>y&&(y=p),b=i.indexOf(g,b+1);return d[f]=y,y}(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,i(e),i(t),0,0,{})})(e,t,r),j=c.createContext(void 0),I=()=>c.useContext(j),D=c.createContext(void 0),S=()=>c.useContext(D),P=c.createContext(void 0),O=c.forwardRef((e,t)=>{let r=T(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=T(()=>new Set),l=T(()=>new Map),o=T(()=>new Map),a=T(()=>new Set),i=q(e),{label:u,children:s,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:m,disablePointerSelection:h=!1,vimBindings:g=!0,...I}=e,S=(0,y.B)(),P=(0,y.B)(),O=(0,y.B)(),_=c.useRef(null),F=U();$(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,N.emit()}},[d]),$(()=>{F(6,W)},[]);let N=c.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var l,o,a,u;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)V(),B(),F(1,L);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(O);e?e.focus():null==(l=document.getElementById(S))||l.focus()}if(F(7,()=>{var e;r.current.selectedItemId=null==(e=G())?void 0:e.id,N.emit()}),n||F(5,W),(null==(o=i.current)?void 0:o.value)!==void 0){null==(u=(a=i.current).onValueChange)||u.call(a,null!=t?t:"");return}}N.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),M=c.useMemo(()=>({value:(e,t,n)=>{var l;t!==(null==(l=o.current.get(e))?void 0:l.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,K(t,n)),F(2,()=>{B(),N.emit()}))},item:(e,t)=>(n.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),F(3,()=>{V(),B(),r.current.value||L(),N.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=G();F(4,()=>{V(),(null==t?void 0:t.getAttribute("id"))===e&&L(),N.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{o.current.delete(e),l.current.delete(e)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:S,inputId:O,labelId:P,listInnerRef:_}),[]);function K(e,t){var n,l;let o=null!=(l=null==(n=i.current)?void 0:n.filter)?l:A;return e?o(e,r.current.search,t):0}function B(){if(!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=l.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=_.current;H().sort((t,r)=>{var n,l;let o=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(l=e.get(o))?l:0)}).forEach(e=>{let t=e.closest(x);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(x," > *"))):n.appendChild(e.parentElement===n?e:e.closest("".concat(x," > *")))}),t.sort((e,t)=>
1t[1]-e[1]).forEach(e=>{var t;let r=null==(t=_.current)?void 0:t.querySelector("".concat(w,"[").concat(k,'="').concat(encodeURIComponent(e[0]),'"]'));null==r||r.parentElement.appendChild(r)})}function L(){let e=H().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(k);N.setState("value",t||void 0)}function V(){var e,t,a,u;if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let l of n.current){let n=K(null!=(t=null==(e=o.current.get(l))?void 0:e.value)?t:"",null!=(u=null==(a=o.current.get(l))?void 0:a.keywords)?u:[]);r.current.filtered.items.set(l,n),n>0&&c++}for(let[e,t]of l.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function W(){var e,t,r;let n=G();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(w))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function G(){var e;return null==(e=_.current)?void 0:e.querySelector("".concat(C,'[aria-selected="true"]'))}function H(){var e;return Array.from((null==(e=_.current)?void 0:e.querySelectorAll(E))||[])}function J(e){let t=H()[e];t&&N.setState("value",t.getAttribute(k))}function Y(e){var t;let r=G(),n=H(),l=n.findIndex(e=>e===r),o=n[l+e];null!=(t=i.current)&&t.loop&&(o=l+e<0?n[n.length-1]:l+e===n.length?n[0]:n[l+e]),o&&N.setState("value",o.getAttribute(k))}function Q(e){let t=G(),r=null==t?void 0:t.closest(w),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,w):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,w))?void 0:r.querySelector(E);n?N.setState("value",n.getAttribute(k)):Y(e)}let X=()=>J(H().length-1),ee=e=>{e.preventDefault(),e.metaKey?X():e.altKey?Q(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?Q(-1):Y(-1)};return c.createElement(b.div,{ref:t,tabIndex:-1,...I,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=I.onKeyDown)||t.call(I,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":g&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":g&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),X();break;case"Enter":{e.preventDefault();let t=G();if(t){let e=new Event(R);t.dispatchEvent(e)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:M.inputId,id:M.labelId,style:z},u),Z(e,e=>c.createElement(D.Provider,{value:N},c.createElement(j.Provider,{value:M},e))))}),_=c.forwardRef((e,t)=>{var r,n;let l=(0,y.B)(),o=c.useRef(null),a=c.useContext(P),i=I(),u=q(e),s=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==a?void 0:a.forceMount;$(()=>{if(!s)return i.item(l,null==a?void 0:a.id)},[s]);let f=G(l,o,[e.value,e.children,o],e.keywords),p=S(),v=W(e=>e.value&&e.value===f.current),m=W(e=>!!s||!1===i.filter()||!e.search||e.filtered.items.get(l)>0);function h(){var e,t;g(),null==(t=(e=u.current).onSelect)||t.call(e,f.current)}function g(){p.setState("value",f.current,!0)}if(c.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(R,h),()=>t.removeEventListener(R,h)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:w,value:x,onSelect:C,forceMount:E,keywords:k,...A}=e;return c.createElement(b.div,{ref:(0,d.t)(o,t),...A,id:l,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!v,"data-disabled":!!w,"data-selected":!!v,onPointerMove:w||i.getDisablePointerSelection()?void 0:g,onClick:w?void 0:h},e.children)}),F=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:l,...o}=e,a=(0,y.B)(),i=c.useRef(null),u=c.useRef(null),s=(0,y.B)(),f=I(),p=W(e=>!!l||!1===f.filter()||!e.search||e.filtered.groups.has(a));$(()=>f.group(a),[]),G(a,i,[e.value,e.heading,u]);let v=c.useMemo(()=>({id:a,forceMount:l}),[l]);return c.createElement(b.div,{ref:(0,d.t)(i,t),...o,"cmdk-group":"",role:"presentation",hidden:!p||void 0},r&&c.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},r),Z(e,e=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?s:void 0},c.createElement(P.Provider,{value:v},e))))}),N=c.forwardRef((e,t)=>
1{let{alwaysRender:r,...n}=e,l=c.useRef(null),o=W(e=>!e.search);return r||o?c.createElement(b.div,{ref:(0,d.t)(l,t),...n,"cmdk-separator":"",role:"separator"}):null}),M=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,l=null!=e.value,o=S(),a=W(e=>e.search),i=W(e=>e.selectedItemId),u=I();return c.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),c.createElement(b.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":i,id:u.inputId,type:"text",value:l?e.value:a,onChange:e=>{l||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),K=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...l}=e,o=c.useRef(null),a=c.useRef(null),i=W(e=>e.selectedItemId),u=I();return c.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),c.createElement(b.div,{ref:(0,d.t)(o,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:u.listId},Z(e,e=>c.createElement("div",{ref:(0,d.t)(a,u.listInnerRef),"cmdk-list-sizer":""},e)))}),B=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:l,contentClassName:o,container:a,...i}=e;return c.createElement(u.bL,{open:r,onOpenChange:n},c.createElement(u.ZL,{container:a},c.createElement(u.hJ,{"cmdk-overlay":"",className:l}),c.createElement(u.UC,{"aria-label":e.label,"cmdk-dialog":"",className:o},c.createElement(O,{ref:t,...i}))))}),L=c.forwardRef((e,t)=>W(e=>0===e.filtered.count)?c.createElement(b.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),V=Object.assign(O,{List:K,Item:_,Input:M,Group:F,Separator:N,Dialog:B,Empty:L,Loading:c.forwardRef((e,t)=>{let{progress:r,children:n,label:l="Loading...",...o}=e;return c.createElement(b.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},Z(e,e=>c.createElement("div",{"aria-hidden":!0},e)))})});function q(e){let t=c.useRef(e);return $(()=>{t.current=e}),t}var $="undefined"==typeof window?c.useEffect:c.useLayoutEffect;function T(e){let t=c.useRef();return void 0===t.current&&(t.current=e()),t}function W(e){let t=S(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function G(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=c.useRef(),o=I();return $(()=>{var a;let i=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),u=n.map(e=>e.trim());o.value(e,i,u),null==(a=t.current)||a.setAttribute(k,i),l.current=i}),l}var U=()=>{let[e,t]=c.useState(),r=T(()=>new Map);return $(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function Z(e,t){let r,{asChild:n,children:l}=e;return n&&c.isValidElement(l)?c.cloneElement("function"==typeof(r=l.type)?r(l.props):"render"in r?r.render(l.props):l,{ref:l.ref},t(l.props.children)):t(l)}var z={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},38122:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(87112).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},43834:(e,t,r)=>{r.d(t,{UC:()=>er,VY:()=>el,ZL:()=>ee,bL:()=>Q,bm:()=>eo,hE:()=>en,hJ:()=>et,l9:()=>X});var n=r(33552),l=r(91880),o=r(1415),a=r(25865),i=r(51754),u=r(77222),c=r(11087),s=r(61377),d=r(3880),f=r(95597),p=r(87313),v=r(64360),m=r(17611),h=r(57052),g=r(41965),b=r(6940),y="Dialog",[w,x]=(0,a.A)(y),[C,E]=w(y),R=e=>{let{__scopeDialog:t,children:r,open:l,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,s=n.useRef(null),d=n.useRef(null),[f,p]=(0,u.i)({prop:l,defaultProp:null!=o&&o,onChange:a,caller:y});return(0,b.jsx)(C,{scope:t,triggerRef:s,contentRef:d,contentId:(0,i.B)(),titleId:(0,i.B)(),descriptionId:(0,i.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:c,children:r})};R.displayName=y;var k="DialogTrigger",A=n.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,a=E(k,r),i=(0,o.s)(t,a.triggerRef);return(0,b.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":U(a.open),...n,ref:i,onClick:(0,l.mK)(e.onClick,a.onOpenToggle)})});A.displayName=k;var j="DialogPortal",[I,D]=w(j,{forceMount:void 0}),S=e=>{let{__scopeDialog:t,forceMount:r,children:l,container:o}=e,a=E(j,t);return(0,b.jsx)(I,{scope:t,forceMount:r,children:n.Children.map(l,e=>(0,b.jsx)(f.C,{present:r||a.open,children:(0,b.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};S.displayName=j;var P="DialogOverlay",O=n.forwardRef((e,t)=>{let r=D(P,e.__scopeDialog),{forceMount:n=r.forceMount,...l}=e,o=E(P,e.__scopeDialog);return o.modal?(0,b.jsx)(f.C,{present:n||o.open,children:(0,b.jsx)(F,{...l,ref:t})}):null});O.displayName=P;var _=(0,g.TL)("DialogOverlay.RemoveScroll"),F=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=E(P,r);return(0,b.jsx)(m.A,{as:_,allowPinchZoom:!0,shards:[l.contentRef],children:(0,b.jsx)(p.sG.div,{"data-state":U(l.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),N="DialogContent",M=n.forwardRef((e,t)=>{let r=D(N,e.__scopeDialog),{forceMount:n=r.forceMount,...l}=e,o=E(N,e.__scopeDialog);return(0,b.jsx)(f.C,{present:n||o.open,children:o.modal?(0,b.jsx)(K,{...l,ref:t}):(0,b.jsx)(B,{...l,ref:t})})});M.displayName=N;var K=n.forwardRef((e,t)=>{let r=E(N,e.__scopeDialog),a=n.useRef(null),i=(0,o.s)(t,r.contentRef,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,h.Eq)(e)},[]),(0,b.jsx)(L,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,l.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>e.preventDefault())})}),B=n.forwardRef((e,t)=>{let r=E(N,e.__scopeDialog),l=n.useRef(!1),o=n.useRef(!1);return(0,b.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(l.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(l.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),L=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:l,onOpenAutoFocus:a,onCloseAutoFocus:i,...u}=e,d=E(N,r),f=n.useRef(null),p=(0,o.s)(t,f);return(0,v.Oh)(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s.n,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,b.jsx)(c.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":U(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(J,{titleId:d.titleId}),(0,b.jsx)(Y,{contentRef:f,descriptionId:d.descriptionId})]})]})}),V="DialogTitle",q=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=E(V,r);return(0,b.jsx)(p.sG.h2,{id:l.titleId,...n,ref:t})});q.displayName=V;var $="DialogDescription",T=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=E($,r);return(0,b.jsx)(p.sG.p,{id:l.descriptionId,...n,ref:t})});T.displayName=$;var W="DialogClose",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(W,r);return(0,b.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,l.mK)(e.onClick,()=>o.onOpenChange(!1))})});function U(e){return e?"open":"closed"}G.displayName=W;var Z="DialogTitleWarning",[z,H]=(0,a.q)(Z,{contentName:N,titleName:V,docsSlug:"dialog"}),J=e=>{let{titleId:t}=e,r=H(Z),l="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&(document.getElementById(t)||console.error(l))},[l,t]),null},Y=e=>{let{contentRef:t,descriptionId:r}=e,l=H("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(l.contentName,"}.");return n.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(o))},[o,t,r]),null},Q=R,X=A,ee=S,et=O,er=M,en=q,el=T,eo=G},71287:(e,t,r)=>{r.d(t,{UC:()=>G,ZL:()=>W,bL:()=>$,l9:()=>T});
1var n=r(33552),l=r(91880),o=r(1415),a=r(25865),i=r(11087),u=r(64360),c=r(61377),s=r(51754),d=r(38949),f=r(3880),p=r(95597),v=r(87313),m=r(41965),h=r(77222),g=r(57052),b=r(17611),y=r(6940),w="Popover",[x,C]=(0,a.A)(w,[d.Bk]),E=(0,d.Bk)(),[R,k]=x(w),A=e=>{let{__scopePopover:t,children:r,open:l,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,u=E(t),c=n.useRef(null),[f,p]=n.useState(!1),[v,m]=(0,h.i)({prop:l,defaultProp:null!=o&&o,onChange:a,caller:w});return(0,y.jsx)(d.bL,{...u,children:(0,y.jsx)(R,{scope:t,contentId:(0,s.B)(),triggerRef:c,open:v,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:i,children:r})})};A.displayName=w;var j="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...l}=e,o=k(j,r),a=E(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:u}=o;return n.useEffect(()=>(i(),()=>u()),[i,u]),(0,y.jsx)(d.Mz,{...a,...l,ref:t})}).displayName=j;var I="PopoverTrigger",D=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=k(I,r),i=E(r),u=(0,o.s)(t,a.triggerRef),c=(0,y.jsx)(v.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":q(a.open),...n,ref:u,onClick:(0,l.mK)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:(0,y.jsx)(d.Mz,{asChild:!0,...i,children:c})});D.displayName=I;var S="PopoverPortal",[P,O]=x(S,{forceMount:void 0}),_=e=>{let{__scopePopover:t,forceMount:r,children:n,container:l}=e,o=k(S,t);return(0,y.jsx)(P,{scope:t,forceMount:r,children:(0,y.jsx)(p.C,{present:r||o.open,children:(0,y.jsx)(f.Z,{asChild:!0,container:l,children:n})})})};_.displayName=S;var F="PopoverContent",N=n.forwardRef((e,t)=>{let r=O(F,e.__scopePopover),{forceMount:n=r.forceMount,...l}=e,o=k(F,e.__scopePopover);return(0,y.jsx)(p.C,{present:n||o.open,children:o.modal?(0,y.jsx)(K,{...l,ref:t}):(0,y.jsx)(B,{...l,ref:t})})});N.displayName=F;var M=(0,m.TL)("PopoverContent.RemoveScroll"),K=n.forwardRef((e,t)=>{let r=k(F,e.__scopePopover),a=n.useRef(null),i=(0,o.s)(t,a),u=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(b.A,{as:M,allowPinchZoom:!0,children:(0,y.jsx)(L,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,l.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),B=n.forwardRef((e,t)=>{let r=k(F,e.__scopePopover),l=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(l.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(l.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),L=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:l,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:v,...m}=e,h=k(F,r),g=E(r);return(0,u.Oh)(),(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:l,onUnmountAutoFocus:o,children:(0,y.jsx)(i.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>h.onOpenChange(!1),children:(0,y.jsx)(d.UC,{"data-state":q(h.open),role:"dialog",id:h.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose";function q(e){return e?"open":"closed"}n.forwardRef((e,t)=>
1{let{__scopePopover:r,...n}=e,o=k(V,r);return(0,y.jsx)(v.sG.button,{type:"button",...n,ref:t,onClick:(0,l.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=V,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=E(r);return(0,y.jsx)(d.i3,{...l,...n,ref:t})}).displayName="PopoverArrow";var $=A,T=D,W=_,G=N},77989:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(85499),l=r(46463);function o(){return(0,n.A)(l.Ko,arguments)}}}]);
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.