1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b2ab275c-9581-072d-017f-c70ad1e15c17")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,503943,e=>{"use strict";var t=e.i(797833);let r=(0,t.createServerReference)("701c685e95ffcfee8d9816e4d68d66a6de881bc059",t.callServer,void 0,t.findSourceMapURL,"fetchMoreArticles");e.s(["fetchMoreArticles",0,r])},675982,e=>{"use strict";var t=e.i(728115),r=e.i(703152),n=e.i(86657),a=e.i(803491),l=e.i(325270),i=e.i(944176),s=e.i(465736);let o=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))});var c=e.i(362207),u=e.i(740812),d=e.i(503943);e.s(["default",0,function({variant:e="default"}){let[f,m]=(0,r.useState)(!1),[p,h]=(0,r.useState)(""),[v,g]=(0,r.useState)([]),[x,b]=(0,r.useState)(!1),[y]=(0,s.useDebounce)(p,300),w=(0,n.useRouter)();(0,r.useEffect)(()=>{y.trim()?(b(!0),(0,d.fetchMoreArticles)(0,y,void 0).then(e=>{g(e?.allArticles??[])}).finally(()=>b(!1))):g([])},[y]);let N=p.trim()&&!x&&0===v.length,C=!p.trim()&&!x&&0===v.length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>m(!0),className:"minimal"===e?"hidden items-center gap-2 font-medium text-gray-400 transition-colors hover:text-white sm:flex":"flex h-9 w-48 items-center gap-2 rounded-lg border border-white/20 bg-black/20 px-3 text-sm text-slate-400 backdrop-blur backdrop-filter transition-colors hover:border-white/40 hover:text-white","aria-label":"Search articles",children:[(0,t.jsx)(c.MagnifyingGlassIcon,{className:"size-4 shrink-0","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Search"})]}),(0,t.jsx)(i.Dialog,{open:f,onOpenChange:function(e){m(e),e||(h(""),g([]))},children:(0,t.jsxs)(i.DialogContent,{className:"max-w-xl divide-y divide-white/10 overflow-hidden border border-white/10 bg-black p-0 shadow-2xl outline-1 -outline-offset-1 outline-white/10",overlayClassName:"bg-black/60! backdrop-blur-sm",showClose:!1,children:[(0,t.jsx)(a.VisuallyHidden,{children:(0,t.jsx)(i.DialogTitle,{})}),(0,t.jsxs)(l.Command,{shouldFilter:!1,className:"bg-transparent text-white",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 border-b border-white/10",children:[(0,t.jsx)("input",{autoFocus:!0,className:"col-start-1 row-start-1 h-12 w-full bg-transparent pr-4 pl-11 text-base text-white outline-hidden placeholder:text-gray-500 sm:text-sm",placeholder:"Search articles...",value:p,onChange:e=>h(e.target.value),autoComplete:"off",spellCheck:!1}),(0,t.jsx)(c.MagnifyingGlassIcon,{className:"pointer-events-none col-start-1 row-start-1 ml-4 size-5 self-center text-gray-500","aria-hidden":"true"})]}),(0,t.jsxs)("div",{className:"h-72 bg-black",children:[v.length>0&&(0,t.jsx)(l.CommandList,{style:{background:"linear-gradient(180deg, #050511 0%, #0A081D 19.36%, #1C1944 39.5%, #3A377C 59%, #7974CF 78%, #D5D1FE 100%)"},className:"h-full transform-gpu scroll-py-3 overflow-y-auto bg-black p-3 ring-transparent",children:v.map(e=>(0,t.jsxs)(l.CommandItem,{value:e.id,onSelect:()=>{let t,r;return t=(0,u.slugify)(e.category?.name||""),r=e.slug||"",void(m(!1),w.push(`/blog/${t}/${r}`))},className:"group mt-1 flex cursor-default rounded-xl px-3 select-none hover:bg-gray-500/10 aria-selected:bg-gray-500/20 aria-selected:outline-hidden",children:[(0,t.jsx)("div",{className:"relative aspect-video w-16 shrink-0 overflow-hidden rounded-lg",children:e.thumbnail?.responsiveImage?.src&&(0,t.jsx)("img",{src:e.thumbnail.responsiveImage.src,alt:e.thumbnail.responsiveImage.alt??"",className:"h-full w-full object-cover"})}),(0,t.jsxs)("div",{className:"ml-4 min-w-0 flex-auto",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-white drop-shadow-lg",children:e.title}),e.category?.name&&(0,t.jsx)("p",{className:"text-sm text-white drop-shadow-lg",children:e.category.name})]})]},e.id))}),(x||N||C)&&(0,t.jsx)("div",{style:{background:"linear-gradient(180deg, #050511 0%, #0A081D 19.36%, #1C1944 39.5%, #3A377C 59%, #7974CF 78%, #D5D1FE 100%)"},className:"flex h-full flex-col items-center justify-center bg-black px-6 text-center text-sm sm:px-14",children:x?(0,t.jsx)("p",{className:"font-medium text-white",children:"Searchingâ¦"}):N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{className:"mx-auto
2size-6 text-white"}),(0,t.jsx)("p",{className:"mt-4 font-medium text-white",children:"No results found"}),(0,t.jsx)("p",{className:"mt-2 text-white",children:"No articles found for this search term. Please try again."})]}):(0,t.jsx)("p",{className:"font-medium text-white",children:"Start typing to search articlesâ¦"})})]})]})]})})]})}],675982)},402864,e=>{"use strict";var t=e.i(703152);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z",clipRule:"evenodd"}))});e.s(["MagnifyingGlassIcon",0,r],402864)},362207,e=>{"use strict";var t=e.i(703152);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["MagnifyingGlassIcon",0,r],362207)},465736,e=>{"use strict";var t=e.i(703152);function r(e,r,n,a){var l=this,i=(0,t.useRef)(null),s=(0,t.useRef)(0),o=(0,t.useRef)(0),c=(0,t.useRef)(null),u=(0,t.useRef)([]),d=(0,t.useRef)(),f=(0,t.useRef)(),m=(0,t.useRef)(e),p=(0,t.useRef)(!0),h=(0,t.useRef)(),v=(0,t.useRef)();m.current=e;var g="u">typeof window,x=!r&&0!==r&&g;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var b=!!(n=n||{}).leading,y=!("trailing"in n)||!!n.trailing,w=!!n.flushOnExit&&y,N="maxWait"in n,C="debounceOnServer"in n&&!!n.debounceOnServer,j=N?Math.max(+n.maxWait||0,r):null,k=(0,t.useMemo)(function(){var e=function(e){var t=u.current,r=d.current;return u.current=d.current=null,s.current=e,o.current=o.current||e,f.current=m.current.apply(r,t)},t=function(e,t){x&&cancelAnimationFrame(c.current),c.current=x?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var t=e-i.current;return!i.current||t>=r||t<0||N&&e-s.current>=j},k=function(t){return c.current=null,y&&u.current?e(t):(u.current=d.current=null,f.current)},E=function e(){var a=Date.now();if(b&&o.current===s.current&&S(),n(a))return k(a);if(p.current){var l=r-(a-i.current);t(e,N?Math.min(l,j-(a-s.current)):l)}},S=function(){a&&a({})},R=function(){if(g||C){var a,o=Date.now(),m=n(o);if(u.current=[].slice.call(arguments),d.current=l,i.current=o,w&&!h.current&&(h.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&v.current.flush()},null==(a=globalThis.document)||null==a.addEventListener||a.addEventListener("visibilitychange",h.current)),m){if(!c.current&&p.current)return s.current=i.current,t(E,r),b?e(i.current):f.current;if(N)return t(E,r),e(i.current)}return c.current||t(E,r),f.current}};return R.cancel=function(){var e=c.current;e&&(x?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=i.current=d.current=c.current=null,e&&a&&a({})},R.isPending=function(){return!!c.current},R.flush=function(){return c.current?k(Date.now()):f.current},R},[b,N,r,j,y,w,x,g,C,a]);return v.current=k,(0,t.useEffect)(function(){return p.current=!0,function(){var e;w&&v.current.flush(),h.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",h.current),h.current=null),p.current=!1}},[w]),k}function n(e,t){return e===t}e.s(["useDebounce",0,function(e,a,l){var i=l&&l.equalityFn||n,s=(0,t.useRef)(e),o=(0,t.useState)({})[1],c=r((0,t.useCallback)(function(e){s.current=e,o({})},[o]),a,l,o),u=(0,t.useRef)(e);return i(u.current,e)||(c(e),u.current=e),[s.current,c]},"useDebouncedCallback",0,r])},41027,e=>{"use strict";var t=e.i(728115),r=e.i(703152),n=e.i(295336),a=e.i(790750),l=e.i(175795),i=e.i(116233);let s=(0,i.cn)(["peer flex h-12 w-full rounded-md border-0 bg-transparent px-3 py-2 text-slate-900 ring ring-inset ring-slate-300 sm:h-9 sm:text-sm sm:leading-5","placeholder:text-slate-400","focus-visible:outline-hidden aria-invalid:focus:ring-red-600 focus:ring-2 focus:ring-inset focus:ring-primary","disabled:cursor-not-allowed disabled:bg-slate-100 disabled:text-slate-400","aria-invalid:grouped-[border-destructive,ring-red-300,text-red-900,pr-10]","dark:aria-invalid:focus:ring-red-600 dark:bg-white/5 dark:text-white dark:ring-white/10 dark:focus:ring-primary","items-center"]),o=(0,r.forwardRef)(({className:e,inputClassName:r,onClear:n,iconLeft:o,...c},u)=>(0,t.jsxs)("div",{className:(0,i.cn)("relative flex w-full items-center",e),children:[o&&(0,t.jsx)("div",{className:"pointer-events-none absolute left-3 content-center","aria-hidden":"true",children:o}),(0,t.jsx)("input",{ref:u,className:(0,i.cn)(s,r,o&&"pl-10"),...c}),(0,t.jsx)("div",{className:"peer-aria-invalid:flex pointer-events-none absolute inset-y-0 right-0 hidden items-center pr-3",children:(0,t.jsx)(a.ExclamationCircleIcon,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})}),n&&c.value&&(0,t.jsx)("div",{className:"z-51 absolute inset-y-0 right-0 flex size-9 shrink-0 items-center justify-center pr-3 hover:cursor-pointer peer-disabled:hidden",onClick:n,children:(0,t.jsx)(l.XCircleIcon,{className:"size-5 text-muted-foreground hover:text-slate-400","aria-hidden":"true"})})]}));o.displayName="Input";let c=(0,r.forwardRef)(({className:e,inputClassName:l,onValueChange:o,onFocus:c,onBlur:u,focusedProps:d,unfocusedProps:f,testComponent:m,...p},h)=>{let[v,g]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:(0,i.cn)('relative flex w-full text-slate-500 [&:has([aria-invalid="true"])]:text-red-900',e),children:[(0,t.jsx)(n.NumericFormat,{className:(0,i.cn)("text-accent-foreground",s,l),getInputRef:h,...p,...v?d:f,value:p.value??"",onValueChange:({floatValue:e})=>o?.(e??null),onChange:void 0,onFocus:e=>{g(!0),c?.(e)},onBlur:e=>{g(!1),u?.(e)}}),(0,t.jsx)("div",{className:"peer-aria-invalid:flex pointer-events-none absolute inset-y-0 right-0 hidden items-center pr-3",children:(0,t.jsx)(a.ExclamationCircleIcon,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]})});c.displayName="FormattedNumberInput";let u=(0,r.forwardRef)(({className:e,inputClassName:r,...n},a)=>(0,t.jsx)(c,{ref:a,className:e,inputClassName:r,allowNegative:!1,decimalScale:0,placeholder:"0",testComponent:"NumberInput",...n}));u.displayName="NumberInput";let d=(0,r.forwardRef)(({className:e,inputClassName:r,...n},a)=>(0,t.jsx)(c,{ref:a,className:e,inputClassName:r,allowNegative:!1,decimalScale:0,focusedProps:{prefix:"",placeholder:"0",thous
2andSeparator:!1},unfocusedProps:{prefix:"$",placeholder:"$0",thousandSeparator:!0},testComponent:"CurrencyInput",...n}));d.displayName="CurrencyInput";let f=(0,r.forwardRef)(({className:e,inputClassName:r,...n},a)=>(0,t.jsx)(c,{ref:a,className:e,inputClassName:r,allowNegative:!1,decimalScale:0,focusedProps:{suffix:"",placeholder:"0",thousandSeparator:!1},unfocusedProps:{suffix:"%",placeholder:"0%",thousandSeparator:!0},testComponent:"PercentageInput",...n}));f.displayName="PercentageInput";let m=(0,r.forwardRef)(({className:e,inputClassName:r,...n},a)=>(0,t.jsx)(c,{ref:a,className:e,inputClassName:r,allowNegative:!1,decimalScale:1,focusedProps:{suffix:"",placeholder:"0",thousandSeparator:!1},unfocusedProps:{suffix:"x",placeholder:"0x",thousandSeparator:!1},testComponent:"MultiplierInput",...n}));m.displayName="MultiplierInput",e.s(["CurrencyInput",0,d,"INPUT_CLASSNAME",0,s,"Input",0,o,"MultiplierInput",0,m,"NumberInput",0,u,"PercentageInput",0,f])},325270,e=>{"use strict";var t=e.i(728115),r=e.i(703152),n=e.i(803491),a=e.i(663662),l=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,s=/[\s-]/,o=/[\s-]/g;function c(e){return e.toLowerCase().replace(o," ")}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}e.i(415530);var f=Symbol.for("react.lazy"),m=r[" use ".trim().toString()];function p(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var h=Symbol("radix.slottable");function v(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var a,l;let i,s,o,c=(l=a=`Primitive.${n}`,(i=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(p(n)&&"function"==typeof m&&(n=m(n._payload)),r.isValidElement(n)){var l;let e,i,s=(l=n,(i=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(i=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),o=function(e,t){let r={...t};for(let n in t){let a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...e)=>{let t=l(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...l}:"className"===n&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}(a,n.props);return n.type!==r.Fragment&&(o.ref=t?d(t,s):s),r.cloneElement(n,o)}return r.Children.count(n)>1?r.Children.only(null):null})).displayName=`${l}.SlotClone`,s=i,(o=r.forwardRef((e,n)=>{let{children:a,...l}=e;p(a)&&"function"==typeof m&&(a=m(a._payload));let i=r.Children.toArray(a),o=i.find(v);if(o){let e=o.props.children,a=i.map(t=>t!==o?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,t.jsx)(s,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,a):null})}return(0,t.jsx)(s,{...l,ref:n,children:a})})).displayName=`${a}.Slot`,o),u=r.forwardRef((e,r)=>{let{asChild:a,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?c:n,{...l,ref:r})});return u.displayName=`Primitive.${n}`,{...e,[n]:u}},{}),x=globalThis?.document?r.useLayoutEffect:()=>{},b=r[" useId ".trim().toString()]||(()=>void 0),y=0;function w(e){let[t,n]=r.useState(b());return x(()=>{e||n(e=>e??String(y++))},[e]),e||(t?`radix-${t}`:"")}var N='[cmdk-group=""]',C='[cmdk-group-items=""]',j='[cmdk-item=""]',k=`${j}:not([aria-disabled="true"])`,E="cmdk-item-select",S="data-value",R=(e,t,r)=>{var n;return n=e,function e(t,r,n,a,c,u,d){if(u===r.length)return c===t.length?1:.99;var f=`${c},${u}`;if(void 0!==d[f])return d[f];for(var m,p,h,v,g=a.charAt(u),x=n.indexOf(g,c),b=0;x>=0;)(m=e(t,r,n,a,x+1,u+1,d))>b&&(x===c?m*=1:l.test(t.charAt(x-1))?(m*=.8,(h=t.slice(c,x-1).match(i))&&c>0&&(m*=Math.pow(.999,h.length))):s.test(t.charAt(x-1))?(m*=.9,(v=t.slice(c,x-1).match(o)
2)&&c>0&&(m*=Math.pow(.999,v.length))):(m*=.17,c>0&&(m*=Math.pow(.999,x-c))),t.charAt(x)!==r.charAt(u)&&(m*=.9999)),(m<.1&&n.charAt(x-1)===a.charAt(u+1)||a.charAt(u+1)===a.charAt(u)&&n.charAt(x-1)!==a.charAt(u))&&.1*(p=e(t,r,n,a,x+1,u+2,d))>m&&(m=.1*p),m>b&&(b=m),x=n.indexOf(g,x+1);return d[f]=b,b}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,c(n),c(t),0,0,{})},I=r.createContext(void 0),A=r.createContext(void 0),D=r.createContext(void 0),_=r.forwardRef((e,t)=>{let n=B(()=>{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}}}),a=B(()=>new Set),l=B(()=>new Map),i=B(()=>new Map),s=B(()=>new Set),o=T(e),{label:c,children:u,value:d,onValueChange:f,filter:m,shouldFilter:p,loop:h,disablePointerSelection:v=!1,vimBindings:x=!0,...b}=e,y=w(),D=w(),_=w(),M=r.useRef(null),P=W();V(()=>{if(void 0!==d){let e=d.trim();n.current.value=e,O.emit()}},[d]),V(()=>{P(6,K)},[]);let O=r.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,l,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)G(),$(),P(1,z);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(_);e?e.focus():null==(a=document.getElementById(y))||a.focus()}if(P(7,()=>{var e;n.current.selectedItemId=null==(e=U())?void 0:e.id,O.emit()}),r||P(5,K),(null==(l=o.current)?void 0:l.value)!==void 0){null==(s=(i=o.current).onValueChange)||s.call(i,null!=t?t:"");return}}O.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),L=r.useMemo(()=>({value:(e,t,r)=>{var a;t!==(null==(a=i.current.get(e))?void 0:a.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,F(t,r)),P(2,()=>{$(),O.emit()}))},item:(e,t)=>(a.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),P(3,()=>{G(),$(),n.current.value||z(),O.emit()}),()=>{i.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let t=U();P(4,()=>{G(),(null==t?void 0:t.getAttribute("id"))===e&&z(),O.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{i.current.delete(e),l.current.delete(e)}),filter:()=>o.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:y,inputId:_,labelId:D,listInnerRef:M}),[]);function F(e,t){var r,a;let l=null!=(a=null==(r=o.current)?void 0:r.filter)?a:R;return e?l(e,n.current.search,t):0}function $(){if(!n.current.search||!1===o.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(r=>{let n=l.current.get(r),a=0;n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let r=M.current;Z().sort((t,r)=>{var n,a;let l=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(a=e.get(l))?a:0)}).forEach(e=>{let t=e.closest(C);t?t.appendChild(e.parentElement===t?e:e.closest(`${C} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${C} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=M.current)?void 0:t.querySelector(`${N}[${S}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function z(){let e=Z().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(S);O.setState("value",t||void 0)}function G(){var e,t,r,s;if(!n.current.search||!1===o.current.shouldFilter){n.current.filtered.count=a.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let l of a.current){let a=F(null!=(t=null==(e=i.current.get(l))?void 0:e.value)?t:"",null!=(s=null==(r=i.current.get(l))?void 0:r.keywords)?s:[]);n.current.filtered.items.set(l,a),a>0&&c++}for(let[e,t]of l.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function K(){var e,t,r;let n=U();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(N))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function U(){var e;return null==(e=M.current)?void 0:e.querySelector(`${j}[aria-selected="true"]`)}function Z(){var e;return Array.from((null==(e=M.current)?void 0:e.querySelectorAll(k))||[])}function X(e){let t=Z()[e];t&&O.setState("value",t.getAttribute(S))}function Y(e){var t;let r=U(),n=Z(),a=n.findIndex(e=>e===r),l=n[a+e];null!=(t=o.current)&&t.loop&&(l=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),l&&O.setState("value",l.getAttribute(S))}function J(e){let t=U(),r=null==t?void 0:t.closest(N),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,N):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,N))?void 0:r.querySelector(k);n?O.setState("value",n.getAttribute(S)):Y(e)}let Q=()=>X(Z().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?J(-1):Y(-1)};return r.createElement(g.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":x&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":x&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=U();if(t){let e=new Event(E);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:H},c),q(e,e=>r.createElement(A.Provider,{value:O},r.createElement(I.Provider,{value:L},e))))}),M=r.forwardRef((e,t)=>
2{var n,a;let l=w(),i=r.useRef(null),s=r.useContext(D),o=r.useContext(I),c=T(e),u=null!=(a=null==(n=c.current)?void 0:n.forceMount)?a:null==s?void 0:s.forceMount;V(()=>{if(!u)return o.item(l,null==s?void 0:s.id)},[u]);let f=K(l,i,[e.value,e.children,i],e.keywords),m=r.useContext(A),p=G(e=>e.value&&e.value===f.current),h=G(e=>!!u||!1===o.filter()||!e.search||e.filtered.items.get(l)>0);function v(){var e,t;x(),null==(t=(e=c.current).onSelect)||t.call(e,f.current)}function x(){m.setState("value",f.current,!0)}if(r.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(E,v),()=>t.removeEventListener(E,v)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:b,value:y,onSelect:N,forceMount:C,keywords:j,...k}=e;return r.createElement(g.div,{ref:d(i,t),...k,id:l,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||o.getDisablePointerSelection()?void 0:x,onClick:b?void 0:v},e.children)}),P=r.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:l,...i}=e,s=w(),o=r.useRef(null),c=r.useRef(null),u=w(),f=r.useContext(I),m=G(e=>!!l||!1===f.filter()||!e.search||e.filtered.groups.has(s));V(()=>f.group(s),[]),K(s,o,[e.value,e.heading,c]);let p=r.useMemo(()=>({id:s,forceMount:l}),[l]);return r.createElement(g.div,{ref:d(o,t),...i,"cmdk-group":"",role:"presentation",hidden:!m||void 0},n&&r.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),q(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},r.createElement(D.Provider,{value:p},e))))}),O=r.forwardRef((e,t)=>{let{alwaysRender:n,...a}=e,l=r.useRef(null),i=G(e=>!e.search);return n||i?r.createElement(g.div,{ref:d(l,t),...a,"cmdk-separator":"",role:"separator"}):null}),L=r.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,l=null!=e.value,i=r.useContext(A),s=G(e=>e.search),o=G(e=>e.selectedItemId),c=r.useContext(I);return r.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),r.createElement(g.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":o,id:c.inputId,type:"text",value:l?e.value:s,onChange:e=>{l||i.setState("search",e.target.value),null==n||n(e.target.value)}})}),F=r.forwardRef((e,t)=>{let{children:n,label:a="Suggestions",...l}=e,i=r.useRef(null),s=r.useRef(null),o=G(e=>e.selectedItemId),c=r.useContext(I);return r.useEffect(()=>{if(s.current&&i.current){let e=s.current,t=i.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)}}},[]),r.createElement(g.div,{ref:d(i,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":a,id:c.listId},q(e,e=>r.createElement("div",{ref:d(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),$=r.forwardRef((e,t)=>{let{open:n,onOpenChange:l,overlayClassName:i,contentClassName:s,container:o,...c}=e;return r.createElement(a.Root,{open:n,onOpenChange:l},r.createElement(a.Portal,{container:o},r.createElement(a.Overlay,{"cmdk-overlay":"",className:i}),r.createElement(a.Content,{"aria-label":e.label,"cmdk-dialog":"",className:s},r.createElement(_,{ref:t,...c}))))}),z=Object.assign(_,{List:F,Item:M,Input:L,Group:P,Separator:O,Dialog:$,Empty:r.forwardRef((e,t)=>G(e=>0===e.filtered.count)?r.createElement(g.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:n,children:a,label:l="Loading...",...i}=e;return r.createElement(g.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},q(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function T(e){let t=r.useRef(e);return V(()=>{t.current=e}),t}var V="u"<typeof window?r.useEffect:r.useLayoutEffect;function B(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function G(e){let t=r.useContext(A),n=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function K(e,t,n,a=[]){let l=r.useRef(),i=r.useContext(I);return V(()=>{var r;let s=(()=>{var e;
2for(let t of n){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}})(),o=a.map(e=>e.trim());i.value(e,s,o),null==(r=t.current)||r.setAttribute(S,s),l.current=s}),l}var W=()=>{let[e,t]=r.useState(),n=B(()=>new Map);return V(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function q({asChild:e,children:t},n){let a;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var H={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},U=e.i(402864),Z=e.i(175795),X=e.i(116233),Y=e.i(41027),J=e.i(944176);let Q=(0,r.forwardRef)(({className:e,...r},n)=>(0,t.jsx)(z,{ref:n,className:(0,X.cn)("flex h-full w-full flex-col overflow-hidden bg-popover text-popover-foreground",e),...r}));Q.displayName=z.displayName;let ee=(0,r.forwardRef)(({className:e,wrapperClassName:r,onClear:n,showIcon:a=!0,...l},i)=>(0,t.jsxs)("div",{className:(0,X.cn)("group relative w-full",r),"cmdk-input-wrapper":"",children:[a&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-20 flex items-center pl-3",children:(0,t.jsx)(U.MagnifyingGlassIcon,{className:"h-5 w-5 text-slate-400","aria-hidden":"true"})}),(0,t.jsx)(z.Input,{ref:i,className:(0,X.cn)(Y.INPUT_CLASSNAME,"relative z-10",a&&"pl-10",n&&"pr-10",e),...l}),n&&l.value&&(0,t.jsx)("div",{className:"z-51 absolute inset-y-0 right-0 flex size-9 shrink-0 items-center justify-center pr-3 hover:cursor-pointer peer-disabled:hidden",onClick:n,children:(0,t.jsx)(Z.XCircleIcon,{className:"size-5 text-muted-foreground","aria-hidden":"true"})})]}));ee.displayName=z.Input.displayName;let et=(0,r.forwardRef)(({className:e,...r},n)=>(0,t.jsx)(z.List,{ref:n,className:(0,X.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...r}));et.displayName=z.List.displayName;let er=(0,r.forwardRef)((e,r)=>(0,t.jsx)(z.Empty,{ref:r,className:"py-6 text-center text-sm",...e}));er.displayName=z.Empty.displayName;let en=(0,r.forwardRef)(({className:e,...r},n)=>(0,t.jsx)(z.Group,{ref:n,className:(0,X.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:text-muted-foreground",e),...r}));en.displayName=z.Group.displayName;let ea=(0,r.forwardRef)(({className:e,...r},n)=>(0,t.jsx)(z.Separator,{ref:n,className:(0,X.cn)("-mx-1 h-px bg-border",e),...r}));ea.displayName=z.Separator.displayName;let el=(0,r.forwardRef)(({className:e,...r},n)=>(0,t.jsx)(z.Item,{ref:n,className:(0,X.cn)("outline-hidden relative flex cursor-pointer select-none items-center px-4 py-2 text-sm hover:bg-accent hover:text-accent-foreground aria-disabled:pointer-events-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...r}));el.displayName=z.Item.displayName,e.s(["Command",0,Q,"CommandDialog",0,({children:e,commandProps:r,showClose:l,...i})=>(0,t.jsx)(J.Dialog,{...i,children:(0,t.jsxs)(J.DialogContent,{className:"overflow-hidden p-0 shadow-lg",showClose:l,children:[(0,t.jsx)(n.VisuallyHidden,{children:(0,t.jsx)(a.DialogTitle,{})}),(0,t.jsx)(Q,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",...r,children:e})]})}),"CommandEmpty",0,er,"CommandGroup",0,en,"CommandInput",0,ee,"CommandItem",0,el,"CommandList",0,et,"CommandSeparator",0,ea],325270)},944176,e=>{"use strict";var t=e.i(728115),r=e.i(703152),n=e.i(116233),a=e.i(321098),l=e.i(663662),i=e.i(875688);let s="fixed inset-0 z-50 bg-secondary/75 backdrop-blur-xs data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",o="relative m-auto w-full max-w-lg gap-5 self-center border bg-background p-8 align-middle shadow-lg duration-200 focus-visible:outline-hidden focu
2s-visible:ring-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg md:w-full flex flex-col",c=l.Root,u=l.Trigger,d=e=>(0,t.jsx)(l.Portal,{...e});d.displayName=l.Portal.displayName;let f=(0,r.forwardRef)(({className:e,children:r,...a},i)=>(0,t.jsx)(l.Overlay,{className:(0,n.cn)(s,e),...a,ref:i}));f.displayName=l.Overlay.displayName;let m=(0,r.forwardRef)(({className:e,onClose:r,showClose:a=!0,preventCloseOutside:i=!1,animateIn:s=!0,overlayClassName:c,overlayStyle:u,...m},p)=>(0,t.jsxs)(d,{children:[(0,t.jsx)(f,{className:c,style:u}),(0,t.jsx)("div",{className:"align-center fixed inset-0 z-50 flex justify-center",children:(0,t.jsxs)(l.Content,{ref:p,className:(0,n.cn)(o,"gap-4 overflow-hidden p-6 pb-0",s&&"data-[state=open]:animate-in",e),onOpenAutoFocus:e=>e.preventDefault(),"aria-describedby":void 0,...i&&{onInteractOutside:e=>e.preventDefault()},...m,children:[m.children,a&&(0,t.jsx)(v,{onClose:r})]})})]}));m.displayName=l.Content.displayName;let p=({className:e,...r})=>(0,t.jsx)("div",{className:(0,n.cn)("relative flex items-start justify-between p-0 text-left",e),children:(0,t.jsx)("div",{className:"flex flex-col gap-2",...r})});p.displayName="DialogHeader";let h=({className:e,...r})=>(0,t.jsx)("div",{className:(0,n.cn)("transform-[translateX(-24px)] mt-2 flex w-[calc(100%_+_2_*_24px)] justify-end gap-3 bg-slate-50 px-6 py-3",e),...r});h.displayName="DialogFooter";let v=(0,r.forwardRef)(({className:e,onClose:r,...a},s)=>(0,t.jsxs)(l.Close,{ref:s,onClick:()=>{r?.()},className:(0,n.cn)("absolute right-2 top-2 inline-flex size-9 cursor-pointer items-center justify-center whitespace-nowrap rounded-md text-slate-400 transition-colors hover:text-slate-700 hover:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 disabled:pointer-events-none disabled:cursor-not-allowed",e),...a,children:[(0,t.jsx)(i.XMarkIcon,{className:"h-6 w-6"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}));v.displayName=l.Close.displayName;let g=(0,r.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(l.Title,{ref:a,className:(0,n.cn)("pr-9 text-base font-semibold text-slate-900",e),...r}));g.displayName=l.Title.displayName;let x=(0,r.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(l.Description,{ref:a,className:(0,n.cn)("text-sm text-muted-foreground",e),...r}));x.displayName=l.Description.displayName;let b=(0,r.forwardRef)(({className:e,variant:r,children:n,leadingIcon:i,trailingIcon:s,...o},c)=>(0,t.jsx)(l.Close,{asChild:!0,children:(0,t.jsx)(a.Button,{ref:c,variant:r,className:e,size:"md",leadingIcon:i,trailingIcon:s,disabled:o.disabled,...o,children:n})}));b.displayName="DialogAction";let y=(0,r.forwardRef)(({className:e,children:r,...i},s)=>(0,t.jsx)(l.Close,{asChild:!0,children:(0,t.jsx)(a.Button,{ref:s,variant:"neutralPrimary",className:(0,n.cn)("mt-2 sm:mt-0",e),size:"md",...i,children:r})}));y.displayName="DialogCancel",e.s(["DIALOG_CONTENT_CLASSES",0,o,"DIALOG_OVERLAY_CLASSES",0,s,"Dialog",0,c,"DialogAction",0,b,"DialogCancel",0,y,"DialogClose",0,v,"DialogContent",0,m,"DialogDescription",0,x,"DialogFooter",0,h,"DialogHeader",0,p,"DialogTitle",0,g,"DialogTrigger",0,u])}]); 3 4//# debugId=b2ab275c-9581-072d-017f-c70ad1e15c17
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.