__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.189: ~ $
var wp;(wp||={}).commands=(()=>{var pn=Object.create;var ze=Object.defineProperty;var vn=Object.getOwnPropertyDescriptor;var hn=Object.getOwnPropertyNames;var gn=Object.getPrototypeOf,yn=Object.prototype.hasOwnProperty;var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qe=(e,t)=>{for(var r in t)ze(e,r,{get:t[r],enumerable:!0})},Mr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hn(t))!yn.call(e,a)&&a!==r&&ze(e,a,{get:()=>t[a],enumerable:!(o=vn(t,a))||o.enumerable});return e};var m=(e,t,r)=>(r=e!=null?pn(gn(e)):{},Mr(t||!e||!e.__esModule?ze(r,"default",{value:e,enumerable:!0}):r,e)),Rn=e=>Mr(ze({},"__esModule",{value:!0}),e);var w=oe((fl,Vr)=>{Vr.exports=window.React});var B=oe((pl,Hr)=>{Hr.exports=window.ReactJSXRuntime});var pe=oe((Cl,Yr)=>{Yr.exports=window.ReactDOM});var ce=oe((Qf,$a)=>{$a.exports=window.wp.data});var Te=oe((ec,Ua)=>{Ua.exports=window.wp.element});var Ga=oe((tc,Ha)=>{Ha.exports=window.wp.i18n});var za=oe((rc,Ka)=>{Ka.exports=window.wp.components});var Ya=oe((oc,qa)=>{qa.exports=window.wp.keyboardShortcuts});var br=oe((nc,Xa)=>{Xa.exports=window.wp.primitives});var tn=oe((vc,en)=>{en.exports=window.wp.privateApis});var sl={};qe(sl,{CommandMenu:()=>sn,privateApis:()=>Dr,store:()=>K,useCommand:()=>un,useCommandLoader:()=>mn,useCommands:()=>fn});var Fr=1,bn=.9,wn=.8,En=.17,At=.1,It=.999,Cn=.9999,Sn=.99,xn=/[\\\/_+.#"@\[\(\{&]/,On=/[\\\/_+.#"@\[\(\{&]/g,_n=/[\s-]/,Wr=/[\s-]/g;function Lt(e,t,r,o,a,n,s){if(n===t.length)return a===e.length?Fr:Sn;var i=`${a},${n}`;if(s[i]!==void 0)return s[i];for(var u=o.charAt(n),l=r.indexOf(u,a),c=0,f,h,g,_;l>=0;)f=Lt(e,t,r,o,l+1,n+1,s),f>c&&(l===a?f*=Fr:xn.test(e.charAt(l-1))?(f*=wn,g=e.slice(a,l-1).match(On),g&&a>0&&(f*=Math.pow(It,g.length))):_n.test(e.charAt(l-1))?(f*=bn,_=e.slice(a,l-1).match(Wr),_&&a>0&&(f*=Math.pow(It,_.length))):(f*=En,a>0&&(f*=Math.pow(It,l-a))),e.charAt(l)!==t.charAt(n)&&(f*=Cn)),(f<At&&r.charAt(l-1)===o.charAt(n+1)||o.charAt(n+1)===o.charAt(n)&&r.charAt(l-1)!==o.charAt(n))&&(h=Lt(e,t,r,o,l+1,n+2,s),h*At>f&&(f=h*At)),f>c&&(c=f),l=r.indexOf(u,l+1);return s[i]=c,c}function jr(e){return e.toLowerCase().replace(Wr," ")}function Br(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Lt(e,t,jr(e),jr(t),0,0,{})}var I=m(w(),1);var cl=!!(typeof window<"u"&&window.document&&window.document.createElement);function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}var Ur=m(w(),1);function $r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Tt(...e){return t=>{let r=!1,o=e.map(a=>{let n=$r(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():$r(e[a],null)}}}}function Ye(...e){return Ur.useCallback(Tt(...e),e)}var J=m(w(),1),kt=m(B(),1);function Gr(e,t){let r=J.createContext(t),o=n=>{let{children:s,...i}=n,u=J.useMemo(()=>i,Object.values(i));return(0,kt.jsx)(r.Provider,{value:u,children:s})};o.displayName=e+"Provider";function a(n){let s=J.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[o,a]}function Kr(e,t=[]){let r=[];function o(n,s){let i=J.createContext(s),u=r.length;r=[...r,s];let l=f=>{let{scope:h,children:g,..._}=f,p=h?.[e]?.[u]||i,b=J.useMemo(()=>_,Object.values(_));return(0,kt.jsx)(p.Provider,{value:b,children:g})};l.displayName=n+"Provider";function c(f,h){let g=h?.[e]?.[u]||i,_=J.useContext(g);if(_)return _;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[l,c]}let a=()=>{let n=r.map(s=>J.createContext(s));return function(i){let u=i?.[e]||n;return J.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return a.scopeName=e,[o,Pn(a,...t)]}function Pn(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let s=o.reduce((i,{useScope:u,scopeName:l})=>{let f=u(n)[`__scope${l}`];return{...i,...f}},{});return J.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Mt=m(w(),1);var zr=m(w(),1),Xe=globalThis?.document?zr.useLayoutEffect:()=>{};var Dn=Mt[" useId ".trim().toString()]||(()=>{}),Nn=0;function Ze(e){let[t,r]=Mt.useState(Dn());return Xe(()=>{e||r(o=>o??String(Nn++))},[e]),e||(t?`radix-${t}`:"")}var Q=m(w(),1);var Je=m(w(),1);var An=Q[" useInsertionEffect ".trim().toString()]||Xe;function qr({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[a,n,s]=In({defaultProp:t,onChange:r}),i=e!==void 0,u=i?e:a;{let c=Q.useRef(e!==void 0);Q.useEffect(()=>{let f=c.current;f!==i&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=i},[i,o])}let l=Q.useCallback(c=>{if(i){let f=Ln(c)?c(e):c;f!==e&&s.current?.(f)}else n(c)},[i,e,n,s]);return[u,l]}function In({defaultProp:e,onChange:t}){let[r,o]=Q.useState(e),a=Q.useRef(r),n=Q.useRef(t);return An(()=>{n.current=t},[t]),Q.useEffect(()=>{a.current!==r&&(n.current?.(r),a.current=r)},[r,a]),[r,o,n]}function Ln(e){return typeof e=="function"}var F=m(w(),1);var wl=!!(typeof window<"u"&&window.document&&window.document.createElement);function Qe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}var Qr=m(w(),1),eo=m(pe(),1);var V=m(w(),1);var Zr=m(w(),1);function Xr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ft(...e){return t=>{let r=!1,o=e.map(a=>{let n=Xr(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Xr(e[a],null)}}}}function jt(...e){return Zr.useCallback(Ft(...e),e)}var et=m(B(),1);function Jr(e){let t=Tn(e),r=V.forwardRef((o,a)=>{let{children:n,...s}=o,i=V.Children.toArray(n),u=i.find(Mn);if(u){let l=u.props.children,c=i.map(f=>f===u?V.Children.count(l)>1?V.Children.only(null):V.isValidElement(l)?l.props.children:null:f);return(0,et.jsx)(t,{...s,ref:a,children:V.isValidElement(l)?V.cloneElement(l,void 0,c):null})}return(0,et.jsx)(t,{...s,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function Tn(e){let t=V.forwardRef((r,o)=>{let{children:a,...n}=r;if(V.isValidElement(a)){let s=jn(a),i=Fn(n,a.props);return a.type!==V.Fragment&&(i.ref=o?Ft(o,s):s),V.cloneElement(a,i)}return V.Children.count(a)>1?V.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kn=Symbol("radix.slottable");function Mn(e){return V.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kn}function Fn(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function jn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var to=m(B(),1),Wn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wt=Wn.reduce((e,t)=>{let r=Jr(`Primitive.${t}`),o=Qr.forwardRef((a,n)=>{let{asChild:s,...i}=a,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,to.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ro(e,t){e&&eo.flushSync(()=>e.dispatchEvent(t))}var xe=m(w(),1);function je(e){let t=xe.useRef(e);return xe.useEffect(()=>{t.current=e}),xe.useMemo(()=>(...r)=>t.current?.(...r),[])}var oo=m(w(),1);function ao(e,t=globalThis?.document){let r=je(e);oo.useEffect(()=>{let o=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var Vt=m(B(),1),Bn="DismissableLayer",Bt="dismissableLayer.update",Vn="dismissableLayer.pointerDownOutside",$n="dismissableLayer.focusOutside",no,so=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=F.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:n,onInteractOutside:s,onDismiss:i,...u}=e,l=F.useContext(so),[c,f]=F.useState(null),h=c?.ownerDocument??globalThis?.document,[,g]=F.useState({}),_=jt(t,R=>f(R)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),S=p.indexOf(b),P=c?p.indexOf(c):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,k=P>=S,D=Gn(R=>{let z=R.target,se=[...l.branches].some(me=>me.contains(z));!k||se||(a?.(R),s?.(R),R.defaultPrevented||i?.())},h),C=Kn(R=>{let z=R.target;[...l.branches].some(me=>me.contains(z))||(n?.(R),s?.(R),R.defaultPrevented||i?.())},h);return ao(R=>{P===l.layers.size-1&&(o?.(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},h),F.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(no=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),io(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=no)}},[c,h,r,l]),F.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),io())},[c,l]),F.useEffect(()=>{let R=()=>g({});return document.addEventListener(Bt,R),()=>document.removeEventListener(Bt,R)},[]),(0,Vt.jsx)(Wt.div,{...u,ref:_,style:{pointerEvents:T?k?"auto":"none":void 0,...e.style},onFocusCapture:Qe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Qe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Qe(e.onPointerDownCapture,D.onPointerDownCapture)})});$t.displayName=Bn;var Un="DismissableLayerBranch",Hn=F.forwardRef((e,t)=>{let r=F.useContext(so),o=F.useRef(null),a=jt(t,o);return F.useEffect(()=>{let n=o.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,Vt.jsx)(Wt.div,{...e,ref:a})});Hn.displayName=Un;function Gn(e,t=globalThis?.document){let r=je(e),o=F.useRef(!1),a=F.useRef(()=>{});return F.useEffect(()=>{let n=i=>{if(i.target&&!o.current){let l=function(){lo(Vn,r,c,{discrete:!0})};var u=l;let c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",n),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function Kn(e,t=globalThis?.document){let r=je(e),o=F.useRef(!1);return F.useEffect(()=>{let a=n=>{n.target&&!o.current&&lo($n,r,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function io(){let e=new CustomEvent(Bt);document.dispatchEvent(e)}function lo(e,t,r,{discrete:o}){let a=r.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?ro(a,n):a.dispatchEvent(n)}var ee=m(w(),1);var fo=m(w(),1);function uo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ut(...e){return t=>{let r=!1,o=e.map(a=>{let n=uo(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():uo(e[a],null)}}}}function co(...e){return fo.useCallback(Ut(...e),e)}var po=m(w(),1),Jn=m(pe(),1);var $=m(w(),1);var tt=m(B(),1);function mo(e){let t=zn(e),r=$.forwardRef((o,a)=>{let{children:n,...s}=o,i=$.Children.toArray(n),u=i.find(Yn);if(u){let l=u.props.children,c=i.map(f=>f===u?$.Children.count(l)>1?$.Children.only(null):$.isValidElement(l)?l.props.children:null:f);return(0,tt.jsx)(t,{...s,ref:a,children:$.isValidElement(l)?$.cloneElement(l,void 0,c):null})}return(0,tt.jsx)(t,{...s,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function zn(e){let t=$.forwardRef((r,o)=>{let{children:a,...n}=r;if($.isValidElement(a)){let s=Zn(a),i=Xn(n,a.props);return a.type!==$.Fragment&&(i.ref=o?Ut(o,s):s),$.cloneElement(a,i)}return $.Children.count(a)>1?$.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qn=Symbol("radix.slottable");function Yn(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qn}function Xn(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function Zn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vo=m(B(),1),Qn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ho=Qn.reduce((e,t)=>{let r=mo(`Primitive.${t}`),o=po.forwardRef((a,n)=>{let{asChild:s,...i}=a,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,vo.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var Oe=m(w(),1);function Ht(e){let t=Oe.useRef(e);return Oe.useEffect(()=>{t.current=e}),Oe.useMemo(()=>(...r)=>t.current?.(...r),[])}var wo=m(B(),1),Gt="focusScope.autoFocusOnMount",Kt="focusScope.autoFocusOnUnmount",go={bubbles:!1,cancelable:!0},ei="FocusScope",zt=ee.forwardRef((e,t)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:n,...s}=e,[i,u]=ee.useState(null),l=Ht(a),c=Ht(n),f=ee.useRef(null),h=co(t,p=>u(p)),g=ee.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ee.useEffect(()=>{if(o){let P=function(C){if(g.paused||!i)return;let R=C.target;i.contains(R)?f.current=R:le(f.current,{select:!0})},T=function(C){if(g.paused||!i)return;let R=C.relatedTarget;R!==null&&(i.contains(R)||le(f.current,{select:!0}))},k=function(C){if(document.activeElement===document.body)for(let z of C)z.removedNodes.length>0&&le(i)};var p=P,b=T,S=k;document.addEventListener("focusin",P),document.addEventListener("focusout",T);let D=new MutationObserver(k);return i&&D.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",P),document.removeEventListener("focusout",T),D.disconnect()}}},[o,i,g.paused]),ee.useEffect(()=>{if(i){Ro.add(g);let p=document.activeElement;if(!i.contains(p)){let S=new CustomEvent(Gt,go);i.addEventListener(Gt,l),i.dispatchEvent(S),S.defaultPrevented||(ti(ii(Eo(i)),{select:!0}),document.activeElement===p&&le(i))}return()=>{i.removeEventListener(Gt,l),setTimeout(()=>{let S=new CustomEvent(Kt,go);i.addEventListener(Kt,c),i.dispatchEvent(S),S.defaultPrevented||le(p??document.body,{select:!0}),i.removeEventListener(Kt,c),Ro.remove(g)},0)}}},[i,l,c,g]);let _=ee.useCallback(p=>{if(!r&&!o||g.paused)return;let b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,S=document.activeElement;if(b&&S){let P=p.currentTarget,[T,k]=ri(P);T&&k?!p.shiftKey&&S===k?(p.preventDefault(),r&&le(T,{select:!0})):p.shiftKey&&S===T&&(p.preventDefault(),r&&le(k,{select:!0})):S===P&&p.preventDefault()}},[r,o,g.paused]);return(0,wo.jsx)(ho.div,{tabIndex:-1,...s,ref:h,onKeyDown:_})});zt.displayName=ei;function ti(e,{select:t=!1}={}){let r=document.activeElement;for(let o of e)if(le(o,{select:t}),document.activeElement!==r)return}function ri(e){let t=Eo(e),r=yo(t,e),o=yo(t.reverse(),e);return[r,o]}function Eo(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function yo(e,t){for(let r of e)if(!oi(r,{upTo:t}))return r}function oi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ai(e){return e instanceof HTMLInputElement&&"select"in e}function le(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ai(e)&&t&&e.select()}}var Ro=ni();function ni(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=bo(e,t),e.unshift(t)},remove(t){e=bo(e,t),e[0]?.resume()}}}function bo(e,t){let r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function ii(e){return e.filter(t=>t.tagName!=="A")}var ot=m(w(),1),Ao=m(pe(),1);var Oo=m(w(),1),mi=m(pe(),1);var U=m(w(),1);var si=m(w(),1);function Co(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function So(...e){return t=>{let r=!1,o=e.map(a=>{let n=Co(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Co(e[a],null)}}}}var rt=m(B(),1);function xo(e){let t=li(e),r=U.forwardRef((o,a)=>{let{children:n,...s}=o,i=U.Children.toArray(n),u=i.find(fi);if(u){let l=u.props.children,c=i.map(f=>f===u?U.Children.count(l)>1?U.Children.only(null):U.isValidElement(l)?l.props.children:null:f);return(0,rt.jsx)(t,{...s,ref:a,children:U.isValidElement(l)?U.cloneElement(l,void 0,c):null})}return(0,rt.jsx)(t,{...s,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function li(e){let t=U.forwardRef((r,o)=>{let{children:a,...n}=r;if(U.isValidElement(a)){let s=di(a),i=ci(n,a.props);return a.type!==U.Fragment&&(i.ref=o?So(o,s):s),U.cloneElement(a,i)}return U.Children.count(a)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ui=Symbol("radix.slottable");function fi(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ui}function ci(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function di(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _o=m(B(),1),pi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Po=pi.reduce((e,t)=>{let r=xo(`Primitive.${t}`),o=Oo.forwardRef((a,n)=>{let{asChild:s,...i}=a,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,_o.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var Do=m(w(),1),No=globalThis?.document?Do.useLayoutEffect:()=>{};var Io=m(B(),1),vi="Portal",qt=ot.forwardRef((e,t)=>{let{container:r,...o}=e,[a,n]=ot.useState(!1);No(()=>n(!0),[]);let s=r||a&&globalThis?.document?.body;return s?Ao.default.createPortal((0,Io.jsx)(Po.div,{...o,ref:t}),s):null});qt.displayName=vi;var Y=m(w(),1);var To=m(w(),1);function Lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hi(...e){return t=>{let r=!1,o=e.map(a=>{let n=Lo(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Lo(e[a],null)}}}}function ko(...e){return To.useCallback(hi(...e),e)}var Mo=m(w(),1),Yt=globalThis?.document?Mo.useLayoutEffect:()=>{};var Fo=m(w(),1);function gi(e,t){return Fo.useReducer((r,o)=>t[r][o]??r,e)}var We=e=>{let{present:t,children:r}=e,o=yi(t),a=typeof r=="function"?r({present:o.isPresent}):Y.Children.only(r),n=ko(o.ref,Ri(a));return typeof r=="function"||o.isPresent?Y.cloneElement(a,{ref:n}):null};We.displayName="Presence";function yi(e){let[t,r]=Y.useState(),o=Y.useRef(null),a=Y.useRef(e),n=Y.useRef("none"),s=e?"mounted":"unmounted",[i,u]=gi(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Y.useEffect(()=>{let l=at(o.current);n.current=i==="mounted"?l:"none"},[i]),Yt(()=>{let l=o.current,c=a.current;if(c!==e){let h=n.current,g=at(l);e?u("MOUNT"):g==="none"||l?.display==="none"?u("UNMOUNT"):u(c&&h!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),Yt(()=>{if(t){let l,c=t.ownerDocument.defaultView??window,f=g=>{let p=at(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(u("ANIMATION_END"),!a.current)){let b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=g=>{g.target===t&&(n.current=at(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Y.useCallback(l=>{o.current=l?getComputedStyle(l):null,r(l)},[])}}function at(e){return e?.animationName||"none"}function Ri(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var jo=m(w(),1),xi=m(pe(),1);var H=m(w(),1);var nt=m(B(),1);function it(e){let t=bi(e),r=H.forwardRef((o,a)=>{let{children:n,...s}=o,i=H.Children.toArray(n),u=i.find(Ei);if(u){let l=u.props.children,c=i.map(f=>f===u?H.Children.count(l)>1?H.Children.only(null):H.isValidElement(l)?l.props.children:null:f);return(0,nt.jsx)(t,{...s,ref:a,children:H.isValidElement(l)?H.cloneElement(l,void 0,c):null})}return(0,nt.jsx)(t,{...s,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function bi(e){let t=H.forwardRef((r,o)=>{let{children:a,...n}=r;if(H.isValidElement(a)){let s=Si(a),i=Ci(n,a.props);return a.type!==H.Fragment&&(i.ref=o?Tt(o,s):s),H.cloneElement(a,i)}return H.Children.count(a)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wi=Symbol("radix.slottable");function Ei(e){return H.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wi}function Ci(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function Si(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Wo=m(B(),1),Oi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_e=Oi.reduce((e,t)=>{let r=it(`Primitive.${t}`),o=jo.forwardRef((a,n)=>{let{asChild:s,...i}=a,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Wo.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var Vo=m(w(),1),Xt=0;function $o(){Vo.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bo()),document.body.insertAdjacentElement("beforeend",e[1]??Bo()),Xt++,()=>{Xt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xt--}},[])}function Bo(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var X=function(){return X=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},X.apply(this,arguments)};function st(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(r[o[a]]=e[o[a]]);return r}function Uo(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,n;o<a;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var dt=m(w());var G=m(w());var ve="right-scroll-bar-position",he="width-before-scroll-bar",Zt="with-scroll-bars-hidden",Jt="--removed-body-scroll-bar-size";function lt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Ho=m(w());function Go(e,t){var r=(0,Ho.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var a=r.value;a!==o&&(r.value=o,r.callback(o,a))}}}})[0];return r.callback=t,r.facade}var ut=m(w());var _i=typeof window<"u"?ut.useLayoutEffect:ut.useEffect,Ko=new WeakMap;function Qt(e,t){var r=Go(t||null,function(o){return e.forEach(function(a){return lt(a,o)})});return _i(function(){var o=Ko.get(r);if(o){var a=new Set(o),n=new Set(e),s=r.current;a.forEach(function(i){n.has(i)||lt(i,null)}),n.forEach(function(i){a.has(i)||lt(i,s)})}Ko.set(r,e)},[e]),r}function Pi(e){return e}function Di(e,t){t===void 0&&(t=Pi);var r=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(n){var s=t(n,o);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(n){for(o=!0;r.length;){var s=r;r=[],s.forEach(n)}r={push:function(i){return n(i)},filter:function(){return r}}},assignMedium:function(n){o=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(n),s=r}var u=function(){var c=s;s=[],c.forEach(n)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(c){s.push(c),l()},filter:function(c){return s=s.filter(c),r}}}};return a}function er(e){e===void 0&&(e={});var t=Di(null);return t.options=X({async:!0,ssr:!1},e),t}var zo=m(w()),qo=function(e){var t=e.sideCar,r=st(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return zo.createElement(o,X({},r))};qo.isSideCarExport=!0;function tr(e,t){return e.useMedium(t),qo}var ft=er();var rr=function(){},Be=G.forwardRef(function(e,t){var r=G.useRef(null),o=G.useState({onScrollCapture:rr,onWheelCapture:rr,onTouchMoveCapture:rr}),a=o[0],n=o[1],s=e.forwardProps,i=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,p=e.inert,b=e.allowPinchZoom,S=e.as,P=S===void 0?"div":S,T=e.gapMode,k=st(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=h,C=Qt([r,t]),R=X(X({},k),a);return G.createElement(G.Fragment,null,c&&G.createElement(D,{sideCar:ft,removeScrollBar:l,shards:f,noRelative:g,noIsolation:_,inert:p,setCallbacks:n,allowPinchZoom:!!b,lockRef:r,gapMode:T}),s?G.cloneElement(G.Children.only(i),X(X({},R),{ref:C})):G.createElement(P,X({},R,{className:u,ref:C}),i))});Be.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Be.classNames={fullWidth:he,zeroRight:ve};var L=m(w());var De=m(w());var Zo=m(w());var Yo;var Xo=function(){if(Yo)return Yo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ni(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xo();return t&&e.setAttribute("nonce",t),e}function Ai(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ii(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var or=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ni())&&(Ai(t,r),Ii(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var ar=function(){var e=or();return function(t,r){Zo.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Ve=function(){var e=ar(),t=function(r){var o=r.styles,a=r.dynamic;return e(o,a),null};return t};var Li={left:0,top:0,right:0,gap:0},nr=function(e){return parseInt(e||"",10)||0},Ti=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[nr(r),nr(o),nr(a)]},ir=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Li;var t=Ti(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}};var ki=Ve(),Pe="data-scroll-locked",Mi=function(e,t,r,o){var a=e.left,n=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(Zt,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(i,"px ").concat(o,`;
  }
  body[`).concat(Pe,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(n,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(i,"px ").concat(o,`;
    `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ve,` {
    right: `).concat(i,"px ").concat(o,`;
  }
  
  .`).concat(he,` {
    margin-right: `).concat(i,"px ").concat(o,`;
  }
  
  .`).concat(ve," .").concat(ve,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(he," .").concat(he,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(Pe,`] {
    `).concat(Jt,": ").concat(i,`px;
  }
`)},Jo=function(){var e=parseInt(document.body.getAttribute(Pe)||"0",10);return isFinite(e)?e:0},Fi=function(){De.useEffect(function(){return document.body.setAttribute(Pe,(Jo()+1).toString()),function(){var e=Jo()-1;e<=0?document.body.removeAttribute(Pe):document.body.setAttribute(Pe,e.toString())}},[])},sr=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;Fi();var n=De.useMemo(function(){return ir(a)},[a]);return De.createElement(ki,{styles:Mi(n,!t,a,r?"":"!important")})};var lr=!1;if(typeof window<"u")try{$e=Object.defineProperty({},"passive",{get:function(){return lr=!0,!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch{lr=!1}var $e,ge=lr?{passive:!1}:!1;var ji=function(e){return e.tagName==="TEXTAREA"},Qo=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ji(e)&&r[t]==="visible")},Wi=function(e){return Qo(e,"overflowY")},Bi=function(e){return Qo(e,"overflowX")},ur=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=ea(e,o);if(a){var n=ta(e,o),s=n[1],i=n[2];if(s>i)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},Vi=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},$i=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},ea=function(e,t){return e==="v"?Wi(t):Bi(t)},ta=function(e,t){return e==="v"?Vi(t):$i(t)},Ui=function(e,t){return e==="h"&&t==="rtl"?-1:1},ra=function(e,t,r,o,a){var n=Ui(e,window.getComputedStyle(t).direction),s=n*o,i=r.target,u=t.contains(i),l=!1,c=s>0,f=0,h=0;do{if(!i)break;var g=ta(e,i),_=g[0],p=g[1],b=g[2],S=p-b-n*_;(_||S)&&ea(e,i)&&(f+=S,h+=_);var P=i.parentNode;i=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(c&&(a&&Math.abs(f)<1||!a&&s>f)||!c&&(a&&Math.abs(h)<1||!a&&-s>h))&&(l=!0),l};var ct=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oa=function(e){return[e.deltaX,e.deltaY]},aa=function(e){return e&&"current"in e?e.current:e},Hi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gi=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Ki=0,Ne=[];function na(e){var t=L.useRef([]),r=L.useRef([0,0]),o=L.useRef(),a=L.useState(Ki++)[0],n=L.useState(Ve)[0],s=L.useRef(e);L.useEffect(function(){s.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=Uo([e.lockRef.current],(e.shards||[]).map(aa),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var i=L.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var S=ct(p),P=r.current,T="deltaX"in p?p.deltaX:P[0]-S[0],k="deltaY"in p?p.deltaY:P[1]-S[1],D,C=p.target,R=Math.abs(T)>Math.abs(k)?"h":"v";if("touches"in p&&R==="h"&&C.type==="range")return!1;var z=ur(R,C);if(!z)return!0;if(z?D=R:(D=R==="v"?"h":"v",z=ur(R,C)),!z)return!1;if(!o.current&&"changedTouches"in p&&(T||k)&&(o.current=D),!D)return!0;var se=o.current||D;return ra(se,b,p,se==="h"?T:k,!0)},[]),u=L.useCallback(function(p){var b=p;if(!(!Ne.length||Ne[Ne.length-1]!==n)){var S="deltaY"in b?oa(b):ct(b),P=t.current.filter(function(D){return D.name===b.type&&(D.target===b.target||b.target===D.shadowParent)&&Hi(D.delta,S)})[0];if(P&&P.should){b.cancelable&&b.preventDefault();return}if(!P){var T=(s.current.shards||[]).map(aa).filter(Boolean).filter(function(D){return D.contains(b.target)}),k=T.length>0?i(b,T[0]):!s.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),l=L.useCallback(function(p,b,S,P){var T={name:p,delta:b,target:S,should:P,shadowParent:zi(S)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(k){return k!==T})},1)},[]),c=L.useCallback(function(p){r.current=ct(p),o.current=void 0},[]),f=L.useCallback(function(p){l(p.type,oa(p),p.target,i(p,e.lockRef.current))},[]),h=L.useCallback(function(p){l(p.type,ct(p),p.target,i(p,e.lockRef.current))},[]);L.useEffect(function(){return Ne.push(n),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ge),document.addEventListener("touchmove",u,ge),document.addEventListener("touchstart",c,ge),function(){Ne=Ne.filter(function(p){return p!==n}),document.removeEventListener("wheel",u,ge),document.removeEventListener("touchmove",u,ge),document.removeEventListener("touchstart",c,ge)}},[]);var g=e.removeScrollBar,_=e.inert;return L.createElement(L.Fragment,null,_?L.createElement(n,{styles:Gi(a)}):null,g?L.createElement(sr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ia=tr(ft,na);var sa=dt.forwardRef(function(e,t){return dt.createElement(Be,X({},e,{ref:t,sideCar:ia}))});sa.classNames=Be.classNames;var fr=sa;var qi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ae=new WeakMap,mt=new WeakMap,pt={},cr=0,la=function(e){return e&&(e.host||la(e.parentNode))},Yi=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=la(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Xi=function(e,t,r,o){var a=Yi(t,Array.isArray(e)?e:[e]);pt[r]||(pt[r]=new WeakMap);var n=pt[r],s=[],i=new Set,u=new Set(a),l=function(f){!f||i.has(f)||(i.add(f),l(f.parentNode))};a.forEach(l);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(h){if(i.has(h))c(h);else try{var g=h.getAttribute(o),_=g!==null&&g!=="false",p=(Ae.get(h)||0)+1,b=(n.get(h)||0)+1;Ae.set(h,p),n.set(h,b),s.push(h),p===1&&_&&mt.set(h,!0),b===1&&h.setAttribute(r,"true"),_||h.setAttribute(o,"true")}catch(S){console.error("aria-hidden: cannot operate on ",h,S)}})};return c(t),i.clear(),cr++,function(){s.forEach(function(f){var h=Ae.get(f)-1,g=n.get(f)-1;Ae.set(f,h),n.set(f,g),h||(mt.has(f)||f.removeAttribute(o),mt.delete(f)),g||f.removeAttribute(r)}),cr--,cr||(Ae=new WeakMap,Ae=new WeakMap,mt=new WeakMap,pt={})}},ua=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||qi(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),Xi(o,a,r,"aria-hidden")):function(){return null}};var N=m(B(),1),ht="Dialog",[fa,Ff]=Kr(ht),[Zi,te]=fa(ht),ca=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:n,modal:s=!0}=e,i=I.useRef(null),u=I.useRef(null),[l,c]=qr({prop:o,defaultProp:a??!1,onChange:n,caller:ht});return(0,N.jsx)(Zi,{scope:t,triggerRef:i,contentRef:u,contentId:Ze(),titleId:Ze(),descriptionId:Ze(),open:l,onOpenChange:c,onOpenToggle:I.useCallback(()=>c(f=>!f),[c]),modal:s,children:r})};ca.displayName=ht;var da="DialogTrigger",Ji=I.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=te(da,r),n=Ye(t,a.triggerRef);return(0,N.jsx)(_e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":pr(a.open),...o,ref:n,onClick:Se(e.onClick,a.onOpenToggle)})});Ji.displayName=da;var dr="DialogPortal",[Qi,ma]=fa(dr,{forceMount:void 0}),pa=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:a}=e,n=te(dr,t);return(0,N.jsx)(Qi,{scope:t,forceMount:r,children:I.Children.map(o,s=>(0,N.jsx)(We,{present:r||n.open,children:(0,N.jsx)(qt,{asChild:!0,container:a,children:s})}))})};pa.displayName=dr;var vt="DialogOverlay",va=I.forwardRef((e,t)=>{let r=ma(vt,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,n=te(vt,e.__scopeDialog);return n.modal?(0,N.jsx)(We,{present:o||n.open,children:(0,N.jsx)(ts,{...a,ref:t})}):null});va.displayName=vt;var es=it("DialogOverlay.RemoveScroll"),ts=I.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=te(vt,r);return(0,N.jsx)(fr,{as:es,allowPinchZoom:!0,shards:[a.contentRef],children:(0,N.jsx)(_e.div,{"data-state":pr(a.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ye="DialogContent",ha=I.forwardRef((e,t)=>{let r=ma(ye,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,n=te(ye,e.__scopeDialog);return(0,N.jsx)(We,{present:o||n.open,children:n.modal?(0,N.jsx)(rs,{...a,ref:t}):(0,N.jsx)(os,{...a,ref:t})})});ha.displayName=ye;var rs=I.forwardRef((e,t)=>{let r=te(ye,e.__scopeDialog),o=I.useRef(null),a=Ye(t,r.contentRef,o);return I.useEffect(()=>{let n=o.current;if(n)return ua(n)},[]),(0,N.jsx)(ga,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,n=>{n.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,n=>{let s=n.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&n.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,n=>n.preventDefault())})}),os=I.forwardRef((e,t)=>{let r=te(ye,e.__scopeDialog),o=I.useRef(!1),a=I.useRef(!1);return(0,N.jsx)(ga,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||r.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(a.current=!0));let s=n.target;r.triggerRef.current?.contains(s)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&a.current&&n.preventDefault()}})}),ga=I.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:n,...s}=e,i=te(ye,r),u=I.useRef(null),l=Ye(t,u);return $o(),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(zt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:n,children:(0,N.jsx)($t,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":pr(i.open),...s,ref:l,onDismiss:()=>i.onOpenChange(!1)})}),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ss,{titleId:i.titleId}),(0,N.jsx)(us,{contentRef:u,descriptionId:i.descriptionId})]})]})}),mr="DialogTitle",as=I.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=te(mr,r);return(0,N.jsx)(_e.h2,{id:a.titleId,...o,ref:t})});as.displayName=mr;var ya="DialogDescription",ns=I.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=te(ya,r);return(0,N.jsx)(_e.p,{id:a.descriptionId,...o,ref:t})});ns.displayName=ya;var Ra="DialogClose",is=I.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=te(Ra,r);return(0,N.jsx)(_e.button,{type:"button",...o,ref:t,onClick:Se(e.onClick,()=>a.onOpenChange(!1))})});is.displayName=Ra;function pr(e){return e?"open":"closed"}var ba="DialogTitleWarning",[jf,wa]=Gr(ba,{contentName:ye,titleName:mr,docsSlug:"dialog"}),ss=({titleId:e})=>{let t=wa(ba),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return I.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},ls="DialogDescriptionWarning",us=({contentRef:e,descriptionId:t})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wa(ls).contentName}}.`;return I.useEffect(()=>{let a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Ea=ca;var Ca=pa,Sa=va,xa=ha;var v=m(w(),1);var Da=m(w(),1),Rs=m(pe(),1);var j=m(w(),1);var cs=m(w(),1);function Oa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ue(...e){return t=>{let r=!1,o=e.map(a=>{let n=Oa(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Oa(e[a],null)}}}}var gt=m(B(),1),ds=Symbol.for("react.lazy"),yt=j[" use ".trim().toString()];function ms(e){return typeof e=="object"&&e!==null&&"then"in e}function _a(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ds&&"_payload"in e&&ms(e._payload)}function Pa(e){let t=ps(e),r=j.forwardRef((o,a)=>{let{children:n,...s}=o;_a(n)&&typeof yt=="function"&&(n=yt(n._payload));let i=j.Children.toArray(n),u=i.find(hs);if(u){let l=u.props.children,c=i.map(f=>f===u?j.Children.count(l)>1?j.Children.only(null):j.isValidElement(l)?l.props.children:null:f);return(0,gt.jsx)(t,{...s,ref:a,children:j.isValidElement(l)?j.cloneElement(l,void 0,c):null})}return(0,gt.jsx)(t,{...s,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function ps(e){let t=j.forwardRef((r,o)=>{let{children:a,...n}=r;if(_a(a)&&typeof yt=="function"&&(a=yt(a._payload)),j.isValidElement(a)){let s=ys(a),i=gs(n,a.props);return a.type!==j.Fragment&&(i.ref=o?ue(o,s):s),j.cloneElement(a,i)}return j.Children.count(a)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vs=Symbol("radix.slottable");function hs(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vs}function gs(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function ys(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Na=m(B(),1),bs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=bs.reduce((e,t)=>{let r=Pa(`Primitive.${t}`),o=Da.forwardRef((a,n)=>{let{asChild:s,...i}=a,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Na.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var vr=m(w(),1);var Aa=m(w(),1),Ia=globalThis?.document?Aa.useLayoutEffect:()=>{};var ws=vr[" useId ".trim().toString()]||(()=>{}),Es=0;function Re(e){let[t,r]=vr.useState(ws());return Ia(()=>{e||r(o=>o??String(Es++))},[e]),e||(t?`radix-${t}`:"")}var Ue='[cmdk-group=""]',hr='[cmdk-group-items=""]',Cs='[cmdk-group-heading=""]',Ta='[cmdk-item=""]',La=`${Ta}:not([aria-disabled="true"])`,gr="cmdk-item-select",Ie="data-value",Ss=(e,t,r)=>Br(e,t,r),ka=v.createContext(void 0),He=()=>v.useContext(ka),Ma=v.createContext(void 0),yr=()=>v.useContext(Ma),Fa=v.createContext(void 0),ja=v.forwardRef((e,t)=>{let r=Le(()=>{var d,E;return{search:"",value:(E=(d=e.value)!=null?d:e.defaultValue)!=null?E:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=Le(()=>new Set),a=Le(()=>new Map),n=Le(()=>new Map),s=Le(()=>new Set),i=Wa(e),{label:u,children:l,value:c,onValueChange:f,filter:h,shouldFilter:g,loop:_,disablePointerSelection:p=!1,vimBindings:b=!0,...S}=e,P=Re(),T=Re(),k=Re(),D=v.useRef(null),C=ks();be(()=>{if(c!==void 0){let d=c.trim();r.current.value=d,R.emit()}},[c]),be(()=>{C(6,Ar)},[]);let R=v.useMemo(()=>({subscribe:d=>(s.current.add(d),()=>s.current.delete(d)),snapshot:()=>r.current,setState:(d,E,O)=>{var y,A,M,Z;if(!Object.is(r.current[d],E)){if(r.current[d]=E,d==="search")Pt(),me(),C(1,_t);else if(d==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let q=document.getElementById(k);q?q.focus():(y=document.getElementById(P))==null||y.focus()}if(C(7,()=>{var q;r.current.selectedItemId=(q=Ce())==null?void 0:q.id,R.emit()}),O||C(5,Ar),((A=i.current)==null?void 0:A.value)!==void 0){let q=E??"";(Z=(M=i.current).onValueChange)==null||Z.call(M,q);return}}R.emit()}},emit:()=>{s.current.forEach(d=>d())}}),[]),z=v.useMemo(()=>({value:(d,E,O)=>{var y;E!==((y=n.current.get(d))==null?void 0:y.value)&&(n.current.set(d,{value:E,keywords:O}),r.current.filtered.items.set(d,se(E,O)),C(2,()=>{me(),R.emit()}))},item:(d,E)=>(o.current.add(d),E&&(a.current.has(E)?a.current.get(E).add(d):a.current.set(E,new Set([d]))),C(3,()=>{Pt(),me(),r.current.value||_t(),R.emit()}),()=>{n.current.delete(d),o.current.delete(d),r.current.filtered.items.delete(d);let O=Ce();C(4,()=>{Pt(),O?.getAttribute("id")===d&&_t(),R.emit()})}),group:d=>(a.current.has(d)||a.current.set(d,new Set),()=>{n.current.delete(d),a.current.delete(d)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:P,inputId:k,labelId:T,listInnerRef:D}),[]);function se(d,E){var O,y;let A=(y=(O=i.current)==null?void 0:O.filter)!=null?y:Ss;return d?A(d,r.current.search,E):0}function me(){if(!r.current.search||i.current.shouldFilter===!1)return;let d=r.current.filtered.items,E=[];r.current.filtered.groups.forEach(y=>{let A=a.current.get(y),M=0;A.forEach(Z=>{let q=d.get(Z);M=Math.max(q,M)}),E.push([y,M])});let O=D.current;Fe().sort((y,A)=>{var M,Z;let q=y.getAttribute("id"),Ke=A.getAttribute("id");return((M=d.get(Ke))!=null?M:0)-((Z=d.get(q))!=null?Z:0)}).forEach(y=>{let A=y.closest(hr);A?A.appendChild(y.parentElement===A?y:y.closest(`${hr} > *`)):O.appendChild(y.parentElement===O?y:y.closest(`${hr} > *`))}),E.sort((y,A)=>A[1]-y[1]).forEach(y=>{var A;let M=(A=D.current)==null?void 0:A.querySelector(`${Ue}[${Ie}="${encodeURIComponent(y[0])}"]`);M?.parentElement.appendChild(M)})}function _t(){let d=Fe().find(O=>O.getAttribute("aria-disabled")!=="true"),E=d?.getAttribute(Ie);R.setState("value",E||void 0)}function Pt(){var d,E,O,y;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let A=0;for(let M of o.current){let Z=(E=(d=n.current.get(M))==null?void 0:d.value)!=null?E:"",q=(y=(O=n.current.get(M))==null?void 0:O.keywords)!=null?y:[],Ke=se(Z,q);r.current.filtered.items.set(M,Ke),Ke>0&&A++}for(let[M,Z]of a.current)for(let q of Z)if(r.current.filtered.items.get(q)>0){r.current.filtered.groups.add(M);break}r.current.filtered.count=A}function Ar(){var d,E,O;let y=Ce();y&&(((d=y.parentElement)==null?void 0:d.firstChild)===y&&((O=(E=y.closest(Ue))==null?void 0:E.querySelector(Cs))==null||O.scrollIntoView({block:"nearest"})),y.scrollIntoView({block:"nearest"}))}function Ce(){var d;return(d=D.current)==null?void 0:d.querySelector(`${Ta}[aria-selected="true"]`)}function Fe(){var d;return Array.from(((d=D.current)==null?void 0:d.querySelectorAll(La))||[])}function Dt(d){let E=Fe()[d];E&&R.setState("value",E.getAttribute(Ie))}function Nt(d){var E;let O=Ce(),y=Fe(),A=y.findIndex(Z=>Z===O),M=y[A+d];(E=i.current)!=null&&E.loop&&(M=A+d<0?y[y.length-1]:A+d===y.length?y[0]:y[A+d]),M&&R.setState("value",M.getAttribute(Ie))}function Ir(d){let E=Ce(),O=E?.closest(Ue),y;for(;O&&!y;)O=d>0?Ls(O,Ue):Ts(O,Ue),y=O?.querySelector(La);y?R.setState("value",y.getAttribute(Ie)):Nt(d)}let Lr=()=>Dt(Fe().length-1),Tr=d=>{d.preventDefault(),d.metaKey?Lr():d.altKey?Ir(1):Nt(1)},kr=d=>{d.preventDefault(),d.metaKey?Dt(0):d.altKey?Ir(-1):Nt(-1)};return v.createElement(ie.div,{ref:t,tabIndex:-1,...S,"cmdk-root":"",onKeyDown:d=>{var E;(E=S.onKeyDown)==null||E.call(S,d);let O=d.nativeEvent.isComposing||d.keyCode===229;if(!(d.defaultPrevented||O))switch(d.key){case"n":case"j":{b&&d.ctrlKey&&Tr(d);break}case"ArrowDown":{Tr(d);break}case"p":case"k":{b&&d.ctrlKey&&kr(d);break}case"ArrowUp":{kr(d);break}case"Home":{d.preventDefault(),Dt(0);break}case"End":{d.preventDefault(),Lr();break}case"Enter":{d.preventDefault();let y=Ce();if(y){let A=new Event(gr);y.dispatchEvent(A)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:Fs},u),Rt(e,d=>v.createElement(Ma.Provider,{value:R},v.createElement(ka.Provider,{value:z},d))))}),xs=v.forwardRef((e,t)=>{var r,o;let a=Re(),n=v.useRef(null),s=v.useContext(Fa),i=He(),u=Wa(e),l=(o=(r=u.current)==null?void 0:r.forceMount)!=null?o:s?.forceMount;be(()=>{if(!l)return i.item(a,s?.id)},[l]);let c=Ba(a,n,[e.value,e.children,n],e.keywords),f=yr(),h=ae(C=>C.value&&C.value===c.current),g=ae(C=>l||i.filter()===!1?!0:C.search?C.filtered.items.get(a)>0:!0);v.useEffect(()=>{let C=n.current;if(!(!C||e.disabled))return C.addEventListener(gr,_),()=>C.removeEventListener(gr,_)},[g,e.onSelect,e.disabled]);function _(){var C,R;p(),(R=(C=u.current).onSelect)==null||R.call(C,c.current)}function p(){f.setState("value",c.current,!0)}if(!g)return null;let{disabled:b,value:S,onSelect:P,forceMount:T,keywords:k,...D}=e;return v.createElement(ie.div,{ref:ue(n,t),...D,id:a,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||i.getDisablePointerSelection()?void 0:p,onClick:b?void 0:_},e.children)}),Os=v.forwardRef((e,t)=>{let{heading:r,children:o,forceMount:a,...n}=e,s=Re(),i=v.useRef(null),u=v.useRef(null),l=Re(),c=He(),f=ae(g=>a||c.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);be(()=>c.group(s),[]),Ba(s,i,[e.value,e.heading,u]);let h=v.useMemo(()=>({id:s,forceMount:a}),[a]);return v.createElement(ie.div,{ref:ue(i,t),...n,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&v.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:l},r),Rt(e,g=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?l:void 0},v.createElement(Fa.Provider,{value:h},g))))}),_s=v.forwardRef((e,t)=>{let{alwaysRender:r,...o}=e,a=v.useRef(null),n=ae(s=>!s.search);return!r&&!n?null:v.createElement(ie.div,{ref:ue(a,t),...o,"cmdk-separator":"",role:"separator"})}),Ps=v.forwardRef((e,t)=>{let{onValueChange:r,...o}=e,a=e.value!=null,n=yr(),s=ae(l=>l.search),i=ae(l=>l.selectedItemId),u=He();return v.useEffect(()=>{e.value!=null&&n.setState("search",e.value)},[e.value]),v.createElement(ie.input,{ref:t,...o,"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:a?e.value:s,onChange:l=>{a||n.setState("search",l.target.value),r?.(l.target.value)}})}),Ds=v.forwardRef((e,t)=>{let{children:r,label:o="Suggestions",...a}=e,n=v.useRef(null),s=v.useRef(null),i=ae(l=>l.selectedItemId),u=He();return v.useEffect(()=>{if(s.current&&n.current){let l=s.current,c=n.current,f,h=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let g=l.offsetHeight;c.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return h.observe(l),()=>{cancelAnimationFrame(f),h.unobserve(l)}}},[]),v.createElement(ie.div,{ref:ue(n,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":o,id:u.listId},Rt(e,l=>v.createElement("div",{ref:ue(s,u.listInnerRef),"cmdk-list-sizer":""},l)))}),Ns=v.forwardRef((e,t)=>{let{open:r,onOpenChange:o,overlayClassName:a,contentClassName:n,container:s,...i}=e;return v.createElement(Ea,{open:r,onOpenChange:o},v.createElement(Ca,{container:s},v.createElement(Sa,{"cmdk-overlay":"",className:a}),v.createElement(xa,{"aria-label":e.label,"cmdk-dialog":"",className:n},v.createElement(ja,{ref:t,...i}))))}),As=v.forwardRef((e,t)=>ae(r=>r.filtered.count===0)?v.createElement(ie.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Is=v.forwardRef((e,t)=>{let{progress:r,children:o,label:a="Loading...",...n}=e;return v.createElement(ie.div,{ref:t,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Rt(e,s=>v.createElement("div",{"aria-hidden":!0},s)))}),fe=Object.assign(ja,{List:Ds,Item:xs,Input:Ps,Group:Os,Separator:_s,Dialog:Ns,Empty:As,Loading:Is});function Ls(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Ts(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Wa(e){let t=v.useRef(e);return be(()=>{t.current=e}),t}var be=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Le(e){let t=v.useRef();return t.current===void 0&&(t.current=e()),t}function ae(e){let t=yr(),r=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,r,r)}function Ba(e,t,r,o=[]){let a=v.useRef(),n=He();return be(()=>{var s;let i=(()=>{var l;for(let c of r){if(typeof c=="string")return c.trim();if(typeof c=="object"&&"current"in c)return c.current?(l=c.current.textContent)==null?void 0:l.trim():a.current}})(),u=o.map(l=>l.trim());n.value(e,i,u),(s=t.current)==null||s.setAttribute(Ie,i),a.current=i}),a}var ks=()=>{let[e,t]=v.useState(),r=Le(()=>new Map);return be(()=>{r.current.forEach(o=>o()),r.current=new Map},[e]),(o,a)=>{r.current.set(o,a),t({})}};function Ms(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Rt({asChild:e,children:t},r){return e&&v.isValidElement(t)?v.cloneElement(Ms(t),{ref:t.ref},r(t.props.children)):r(t)}var Fs={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Va(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Va(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function js(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Va(e))&&(o&&(o+=" "),o+=t);return o}var Rr=js;var Me=m(ce(),1),W=m(Te(),1),re=m(Ga(),1),ne=m(za(),1),xt=m(Ya(),1);var bt=m(Te(),1),we=(0,bt.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,bt.cloneElement)(e,{width:t,height:t,...r,ref:o}));var wt=m(br(),1),wr=m(B(),1),Er=(0,wr.jsx)(wt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wr.jsx)(wt.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})});var Et=m(br(),1),Cr=m(B(),1),Sr=(0,Cr.jsx)(Et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Cr.jsx)(Et.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var Ct=m(ce(),1);var Za=m(ce(),1);function Ws(e={},t){switch(t.type){case"REGISTER_COMMAND":return{...e,[t.name]:{name:t.name,label:t.label,searchLabel:t.searchLabel,context:t.context,category:t.category,callback:t.callback,icon:t.icon,keywords:t.keywords}};case"UNREGISTER_COMMAND":{let{[t.name]:r,...o}=e;return o}}return e}function Bs(e={},t){switch(t.type){case"REGISTER_COMMAND_LOADER":return{...e,[t.name]:{name:t.name,context:t.context,category:t.category,hook:t.hook}};case"UNREGISTER_COMMAND_LOADER":{let{[t.name]:r,...o}=e;return o}}return e}function Vs(e=!1,t){switch(t.type){case"OPEN":return!0;case"CLOSE":return!1}return e}function $s(e="root",t){return t.type==="SET_CONTEXT"?t.context:e}var Us=(0,Za.combineReducers)({commands:Ws,commandLoaders:Bs,isOpen:Vs,context:$s}),Ja=Us;var xr={};qe(xr,{close:()=>Ys,open:()=>qs,registerCommand:()=>Hs,registerCommandLoader:()=>Ks,unregisterCommand:()=>Gs,unregisterCommandLoader:()=>zs});var Qa=new Set(["command","view","edit","action"]);function Hs(e){let{category:t}=e;return(!t||!Qa.has(t))&&(t="action"),{type:"REGISTER_COMMAND",...e,category:t}}function Gs(e){return{type:"UNREGISTER_COMMAND",name:e}}function Ks(e){let{category:t}=e;return(!t||!Qa.has(t))&&(t="action"),{type:"REGISTER_COMMAND_LOADER",...e,category:t}}function zs(e){return{type:"UNREGISTER_COMMAND_LOADER",name:e}}function qs(){return{type:"OPEN"}}function Ys(){return{type:"CLOSE"}}var _r={};qe(_r,{getCommandLoaders:()=>Zs,getCommands:()=>Xs,getContext:()=>Qs,isOpen:()=>Js});var Or=m(ce(),1),Xs=(0,Or.createSelector)((e,t=!1)=>Object.values(e.commands).filter(r=>{let o=r.context&&r.context===e.context;return t?o:!o}),e=>[e.commands,e.context]),Zs=(0,Or.createSelector)((e,t=!1)=>Object.values(e.commandLoaders).filter(r=>{let o=r.context&&r.context===e.context;return t?o:!o}),e=>[e.commandLoaders,e.context]);function Js(e){return e.isOpen}function Qs(e){return e.context}var Pr={};qe(Pr,{setContext:()=>el});function el(e){return{type:"SET_CONTEXT",context:e}}var rn=m(tn(),1),{lock:on,unlock:ke}=(0,rn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/commands");var tl="core/commands",K=(0,Ct.createReduxStore)(tl,{reducer:Ja,actions:xr,selectors:_r});(0,Ct.register)(K);ke(K).registerPrivateActions(Pr);var x=m(B(),1),{withIgnoreIMEEvents:rl}=ke(ne.privateApis),nn=(0,re.__)("Search commands and settings"),Ee={view:Er},St={command:(0,re.__)("Command"),view:(0,re.__)("View"),edit:(0,re.__)("Edit"),action:(0,re.__)("Action"),workflow:(0,re.__)("Workflow")};function ol(e){return!!e&&(typeof e=="string"||(0,W.isValidElement)(e)||typeof e=="function"||e instanceof W.Component)}function al({name:e,search:t,hook:r,setLoader:o,close:a,category:n}){let{isLoading:s,commands:i=[]}=r({search:t})??{};return(0,W.useEffect)(()=>{o(e,s)},[o,e,s]),i.length?(0,x.jsx)(x.Fragment,{children:i.map(u=>{let l=u.category??n;return(0,x.jsx)(fe.Item,{value:u.searchLabel??u.label,keywords:u.keywords,onSelect:()=>u.callback({close:a}),id:u.name,children:(0,x.jsxs)(ne.__experimentalHStack,{alignment:"left",className:Rr("commands-command-menu__item",{"has-icon":Ee[l]||u.icon}),children:[Ee[l]&&(0,x.jsx)(we,{icon:Ee[l]}),!Ee[l]&&ol(u.icon)&&(0,x.jsx)(we,{icon:u.icon}),(0,x.jsx)("span",{className:"commands-command-menu__item-label",children:(0,x.jsx)(ne.TextHighlight,{text:u.label,highlight:t})}),St[l]&&(0,x.jsx)("span",{className:"commands-command-menu__item-category",children:St[l]})]})},u.name)})}):null}function nl({hook:e,search:t,setLoader:r,close:o,category:a}){let n=(0,W.useRef)(e),[s,i]=(0,W.useState)(0);return(0,W.useEffect)(()=>{n.current!==e&&(n.current=e,i(u=>u+1))},[e]),(0,x.jsx)(al,{hook:n.current,search:t,setLoader:r,close:o,category:a},s)}function an({isContextual:e,search:t,setLoader:r,close:o}){let{commands:a,loaders:n}=(0,Me.useSelect)(s=>{let{getCommands:i,getCommandLoaders:u}=s(K);return{commands:i(e),loaders:u(e)}},[e]);return!a.length&&!n.length?null:(0,x.jsxs)(fe.Group,{children:[a.map(s=>(0,x.jsx)(fe.Item,{value:s.searchLabel??s.label,keywords:s.keywords,onSelect:()=>s.callback({close:o}),id:s.name,children:(0,x.jsxs)(ne.__experimentalHStack,{alignment:"left",className:Rr("commands-command-menu__item",{"has-icon":Ee[s.category]||s.icon}),children:[Ee[s.category]?(0,x.jsx)(we,{icon:Ee[s.category]}):s.icon&&(0,x.jsx)(we,{icon:s.icon}),(0,x.jsx)("span",{children:(0,x.jsx)(ne.TextHighlight,{text:s.label,highlight:t})}),St[s.category]&&(0,x.jsx)("span",{className:"commands-command-menu__item-category",children:St[s.category]})]})},s.name)),n.map(s=>(0,x.jsx)(nl,{hook:s.hook,search:t,setLoader:r,close:o,category:s.category},s.name))]})}function il({isOpen:e,search:t,setSearch:r}){let o=(0,W.useRef)(),a=ae(s=>s.value),n=(0,W.useMemo)(()=>document.querySelector(`[cmdk-item=""][data-value="${a}"]`)?.getAttribute("id"),[a]);return(0,W.useEffect)(()=>{e&&o.current.focus()},[e]),(0,x.jsx)(fe.Input,{ref:o,value:t,onValueChange:r,placeholder:nn,"aria-activedescendant":n})}function sn(){let{registerShortcut:e}=(0,Me.useDispatch)(xt.store),[t,r]=(0,W.useState)(""),o=(0,Me.useSelect)(f=>f(K).isOpen(),[]),{open:a,close:n}=(0,Me.useDispatch)(K),[s,i]=(0,W.useState)({});(0,W.useEffect)(()=>{e({name:"core/commands",category:"global",description:(0,re.__)("Open the command palette."),keyCombination:{modifier:"primary",character:"k"}})},[e]),(0,xt.useShortcut)("core/commands",rl(f=>{f.defaultPrevented||(f.preventDefault(),o?n():a())}),{bindGlobal:!0});let u=(0,W.useCallback)((f,h)=>i(g=>({...g,[f]:h})),[]),l=()=>{r(""),n()};if(!o)return!1;let c=Object.values(s).some(Boolean);return(0,x.jsx)(ne.Modal,{className:"commands-command-menu",overlayClassName:"commands-command-menu__overlay",onRequestClose:l,__experimentalHideHeader:!0,contentLabel:(0,re.__)("Command palette"),children:(0,x.jsx)("div",{className:"commands-command-menu__container",children:(0,x.jsxs)(fe,{label:nn,children:[(0,x.jsxs)("div",{className:"commands-command-menu__header",children:[(0,x.jsx)(we,{className:"commands-command-menu__header-search-icon",icon:Sr}),(0,x.jsx)(il,{search:t,setSearch:r,isOpen:o})]}),(0,x.jsxs)(fe.List,{label:(0,re.__)("Command suggestions"),children:[t&&!c&&(0,x.jsx)(fe.Empty,{children:(0,re.__)("No results found.")}),(0,x.jsx)(an,{search:t,setLoader:u,close:l,isContextual:!0}),t&&(0,x.jsx)(an,{search:t,setLoader:u,close:l})]})]})})})}var Ge=m(Te(),1),Ot=m(ce(),1);function ln(e){let{getContext:t}=(0,Ot.useSelect)(K),r=(0,Ge.useRef)(t()),{setContext:o}=ke((0,Ot.useDispatch)(K));(0,Ge.useEffect)(()=>{o(e)},[e,o]),(0,Ge.useEffect)(()=>{let a=r.current;return()=>o(a)},[o])}var Dr={};on(Dr,{useCommandContext:ln});var de=m(Te(),1),Nr=m(ce(),1);function un(e){let{registerCommand:t,unregisterCommand:r}=(0,Nr.useDispatch)(K),o=(0,de.useRef)(e.callback);(0,de.useEffect)(()=>{o.current=e.callback},[e.callback]),(0,de.useEffect)(()=>{if(!e.disabled)return t({name:e.name,context:e.context,category:e.category,label:e.label,searchLabel:e.searchLabel,icon:e.icon,keywords:e.keywords,callback:(...a)=>o.current(...a)}),()=>{r(e.name)}},[e.name,e.label,e.searchLabel,e.icon,e.context,e.category,e.keywords,e.disabled,t,r])}function fn(e){let{registerCommand:t,unregisterCommand:r}=(0,Nr.useDispatch)(K),o=(0,de.useRef)({});(0,de.useEffect)(()=>{e&&e.forEach(a=>{a.callback&&(o.current[a.name]=a.callback)})},[e]),(0,de.useEffect)(()=>{if(e)return e.forEach(a=>{a.disabled||t({name:a.name,context:a.context,category:a.category,label:a.label,searchLabel:a.searchLabel,icon:a.icon,keywords:a.keywords,callback:(...n)=>{let s=o.current[a.name];s&&s(...n)}})}),()=>{e.forEach(a=>{r(a.name)})}},[e,t,r])}var cn=m(Te(),1),dn=m(ce(),1);function mn(e){let{registerCommandLoader:t,unregisterCommandLoader:r}=(0,dn.useDispatch)(K);(0,cn.useEffect)(()=>{if(!e.disabled)return t({name:e.name,hook:e.hook,context:e.context,category:e.category}),()=>{r(e.name)}},[e.name,e.hook,e.context,e.category,e.disabled,t,r])}return Rn(sl);})();

Filemanager

Name Type Size Permission Actions
development Folder 0755
script-modules Folder 0755
vendor Folder 0755
a11y.js File 5.45 KB 0644
a11y.min.js File 2.41 KB 0644
annotations.js File 15.13 KB 0644
annotations.min.js File 5.58 KB 0644
api-fetch.js File 17.46 KB 0644
api-fetch.min.js File 6.29 KB 0644
autop.js File 9.73 KB 0644
autop.min.js File 5.47 KB 0644
base-styles.js File 48 B 0644
base-styles.min.js File 40 B 0644
blob.js File 2.3 KB 0644
blob.min.js File 1.13 KB 0644
block-directory.js File 55.67 KB 0644
block-directory.min.js File 21.92 KB 0644
block-editor.js File 2.7 MB 0644
block-editor.min.js File 1.01 MB 0644
block-library.js File 2.57 MB 0644
block-library.min.js File 1.09 MB 0644
block-serialization-default-parser.js File 6.54 KB 0644
block-serialization-default-parser.min.js File 2.36 KB 0644
block-serialization-spec-parser.js File 50.48 KB 0644
block-serialization-spec-parser.min.js File 10.34 KB 0644
blocks.js File 381.06 KB 0644
blocks.min.js File 180.58 KB 0644
commands.js File 151.71 KB 0644
commands.min.js File 63.1 KB 0644
components.js File 3.83 MB 0644
components.min.js File 786.24 KB 0644
compose.js File 80.84 KB 0644
compose.min.js File 28.21 KB 0644
core-commands.js File 28.68 KB 0644
core-commands.min.js File 11.83 KB 0644
core-data.js File 612.03 KB 0644
core-data.min.js File 210.43 KB 0644
customize-widgets.js File 91.57 KB 0644
customize-widgets.min.js File 36.58 KB 0644
data-controls.js File 4.13 KB 0644
data-controls.min.js File 1.74 KB 0644
data.js File 82.78 KB 0644
data.min.js File 25.88 KB 0644
date.js File 176.34 KB 0644
date.min.js File 141.18 KB 0644
deprecated.js File 3.04 KB 0644
deprecated.min.js File 1.25 KB 0644
dom-ready.js File 1.47 KB 0644
dom-ready.min.js File 783 B 0644
dom.js File 34.61 KB 0644
dom.min.js File 12.62 KB 0644
edit-post.js File 117.4 KB 0644
edit-post.min.js File 49.07 KB 0644
edit-site.js File 1.69 MB 0644
edit-site.min.js File 684.42 KB 0644
edit-widgets.js File 160.25 KB 0644
edit-widgets.min.js File 61.83 KB 0644
editor.js File 2.5 MB 0644
editor.min.js File 1021.22 KB 0644
element.js File 27.93 KB 0644
element.min.js File 12.13 KB 0644
escape-html.js File 2.29 KB 0644
escape-html.min.js File 1.03 KB 0644
format-library.js File 73.34 KB 0644
format-library.min.js File 28.85 KB 0644
hooks.js File 11.96 KB 0644
hooks.min.js File 4.9 KB 0644
html-entities.js File 1.65 KB 0644
html-entities.min.js File 844 B 0644
i18n.js File 15.3 KB 0644
i18n.min.js File 5.56 KB 0644
is-shallow-equal.js File 2.69 KB 0644
is-shallow-equal.min.js File 1.06 KB 0644
keyboard-shortcuts.js File 9.68 KB 0644
keyboard-shortcuts.min.js File 3.41 KB 0644
keycodes.js File 8.3 KB 0644
keycodes.min.js File 2.87 KB 0644
list-reusable-blocks.js File 13.06 KB 0644
list-reusable-blocks.min.js File 5.21 KB 0644
media-utils.js File 637.15 KB 0644
media-utils.min.js File 237.61 KB 0644
notices.js File 10.11 KB 0644
notices.min.js File 4.35 KB 0644
nux.js File 10.32 KB 0644
nux.min.js File 3.92 KB 0644
patterns.js File 58.25 KB 0644
patterns.min.js File 21.6 KB 0644
plugins.js File 11.67 KB 0644
plugins.min.js File 4.72 KB 0644
preferences-persistence.js File 17.22 KB 0644
preferences-persistence.min.js File 5.46 KB 0644
preferences.js File 21.07 KB 0644
preferences.min.js File 7.68 KB 0644
primitives.js File 5.08 KB 0644
primitives.min.js File 1.94 KB 0644
priority-queue.js File 10.02 KB 0644
priority-queue.min.js File 3.32 KB 0644
private-apis.js File 4.09 KB 0644
private-apis.min.js File 2.63 KB 0644
react-i18n.js File 3.91 KB 0644
react-i18n.min.js File 1.49 KB 0644
redux-routine.js File 24.68 KB 0644
redux-routine.min.js File 9.62 KB 0644
reusable-blocks.js File 20.51 KB 0644
reusable-blocks.min.js File 7.19 KB 0644
rich-text.js File 97.04 KB 0644
rich-text.min.js File 39.86 KB 0644
router.js File 36.12 KB 0644
router.min.js File 14.1 KB 0644
server-side-render.js File 10.97 KB 0644
server-side-render.min.js File 3.91 KB 0644
shortcode.js File 7.96 KB 0644
shortcode.min.js File 3.25 KB 0644
style-engine.js File 17.62 KB 0644
style-engine.min.js File 6.38 KB 0644
sync.js File 359.4 KB 0644
sync.min.js File 118.11 KB 0644
theme.js File 127.65 KB 0644
theme.min.js File 56.08 KB 0644
token-list.js File 6.12 KB 0644
token-list.min.js File 1.58 KB 0644
undo-manager.js File 5.29 KB 0644
undo-manager.min.js File 1.66 KB 0644
upload-media.js File 55.67 KB 0644
upload-media.min.js File 23.02 KB 0644
url.js File 23.39 KB 0644
url.min.js File 10.09 KB 0644
viewport.js File 6.61 KB 0644
viewport.min.js File 2.21 KB 0644
warning.js File 1.52 KB 0644
warning.min.js File 720 B 0644
widgets.js File 50.08 KB 0644
widgets.min.js File 20.79 KB 0644
wordcount.js File 6.93 KB 0644
wordcount.min.js File 2.41 KB 0644