1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,824627,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function n(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}function i(e){return this instanceof i?(this.v=e,this):new i(e)}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>r,"__asyncGenerator",0,function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),l=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){l.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(u,c):d(l[0][2],r)}catch(e){d(l[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),l.shift(),l.length&&s(l[0][0],l[0][1])}},"__asyncValues",0,function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=n(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){var i,l,a;i=n,l=o,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:a})},l)})}}},"__await",0,i,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function l(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(l,a)}s((n=n.apply(e,t||[])).next())})},"__extends",0,function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},"__generator",0,function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){var u=[a,s];if(r)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},"__read",0,o,"__rest",0,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},"__spread",0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},"__spreadArray",0,function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;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))},"__values",0,n])},7284,e=>{"use strict";function t(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",0,t,"default",0,t])},828168,e=>{"use strict";function t(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function r(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>
1"object"==typeof e&&"_type"in e)}function n(e){return r(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function o(e){return"@list"===e._type}function i(e){return"@span"===e._type}function l(e){return"@text"===e._type}let a=["strong","em","code","underline","strike-through"];function s(e,r,n){if(!t(e)||!e.marks||!e.marks.length)return[];let o=e.marks.slice(),i={};return o.forEach(e=>{i[e]=1;for(let o=r+1;o<n.length;o++){let r=n[o];if(r&&t(r)&&Array.isArray(r.marks)&&-1!==r.marks.indexOf(e))i[e]++;else break}}),o.sort((e,t)=>(function(e,t,r){let n=e[t],o=e[r];if(n!==o)return o-n;let i=a.indexOf(t),l=a.indexOf(r);return i===l?t.localeCompare(r):i-l})(i,e,t))}function u(e,t,r){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:r,level:e.level||1,listItem:e.listItem,children:[e]}}function c(e,r){let n=r.level||1,i=r.listItem||"normal",l="string"==typeof r.listItem;if(o(e)&&(e.level||1)===n&&l&&(e.listItem||"normal")===i)return e;if(!("children"in e))return;let a=e.children[e.children.length-1];return a&&!t(a)?c(a,r):void 0}let d=/^\s/,f=/\s$/;e.s(["LIST_NEST_MODE_HTML",0,"html","buildMarksTree",0,function(e){let{children:r}=e,n=e.markDefs??[];if(!r||!r.length)return[];let o=r.map(s),i={_type:"@span",children:[],markType:"<unknown>"},l=[i];for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=o[e]||[],s=1;if(l.length>1)for(;s<l.length;s++){let e=l[s]?.markKey||"",t=a.indexOf(e);if(-1===t)break;a.splice(t,1)}let u=(l=l.slice(0,s))[l.length-1];if(u){for(let e of a){let t=n?.find(t=>t._key===e),r={_type:"@span",_key:i._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};u.children.push(r),l.push(r),u=r}if(t(i)){let e=i.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");u.children=u.children.concat(e.map(e=>({_type:"@text",text:e})))}else u.children=u.children.concat(i)}}return i.children},"isPortableTextBlock",0,r,"isPortableTextListItemBlock",0,n,"isPortableTextToolkitList",0,o,"isPortableTextToolkitSpan",0,i,"isPortableTextToolkitTextNode",0,l,"nestLists",0,function(e,t){let r=[],o;for(let a=0;a<e.length;a++){let s=e[a];if(s){var i,l;if(!n(s)){r.push(s),o=void 0;continue}if(!o){o=u(s,a,t),r.push(o);continue}if(i=s,l=o,(i.level||1)===l.level&&i.listItem===l.listItem){o.children.push(s);continue}if((s.level||1)>o.level){let e=u(s,a,t);if("html"===t){let t=o.children[o.children.length-1],r={...t,children:[...t.children,e]};o.children[o.children.length-1]=r}else o.children.push(e);o=e;continue}if((s.level||1)<o.level){let e=r[r.length-1],n=e&&c(e,s);if(n){(o=n).children.push(s);continue}o=u(s,a,t),r.push(o);continue}if(s.listItem!==o.listItem){let e=r[r.length-1],n=e&&c(e,{level:s.level||1});if(n&&n.listItem===s.listItem){(o=n).children.push(s);continue}o=u(s,a,t),r.push(o);continue}console.warn("Unknown state encountered for block",s),r.push(s)}}return r},"spanToPlainText",0,function e(t){let r="";return t.children.forEach(t=>{l(t)?r+=t.text:i(t)&&(r+=e(t))}),r},"toPlainText",0,function(e){let n=Array.isArray(e)?e:[e],o="";return n.forEach((e,i)=>{if(!r(e))return;let l=!1;e.children.forEach(e=>{t(e)?(o+=l&&o&&!f.test(o)&&!d.test(e.text)?" ":"",o+=e.text,l=!1):l=!0}),i!==n.length-1&&(o+="\n\n")}),o}])},791136,e=>{"use strict";var t=e.i(168160),r=e.i(828168),n=e.i(415700);let o={textDecoration:"underline"},i=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,l=e=>i(`block type "${e}"`,"types");function a(e){console.warn(e)}let s={display:"none"},u={types:{},block:{normal:({children:e})=>(0,t.jsx)("p",{children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,t.jsx)("h1",{children:e}),h2:({children:e})=>(0,t.jsx)("h2",{children:e}),h3:({children:e})=>(0,t.jsx)("h3",{children:e}),h4:({children:e})=>(0,t.jsx)("h4",{children:e}),h5:({children:e})=>(0,t.jsx)("h5",{children:e}),h6:({children:e})=>(0,t.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,t.jsx)("em",{children:e}),strong:({children:e})=>(0,t.jsx)("strong",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),underline:({children:e})=>(0,t.jsx)("span",{style:o,children:e}),"strike-through":({children:e})=>(0,t.jsx)("del",{children:e}),link:({children:e,value:r})=>(0,t.jsx)("a",{href:r?.href,children:e})},list:{number:({children:e})=>(0,t.jsx)("ol",{children:e}),bullet:({children:e})=>(0,t.jsx)("ul",{children:e})},listItem:({children:e})=>(0,t.jsx)("li",{children:e}),hardBreak:()=>(0,t.jsx)("br",{}),unknownType:({value:e,isInline:r})=>{let n=l(e._type);return(0,t.jsx)(r?"span":"div",{style:s,children:n})},unknownMark:({markType:e,children:r})=>(0,t.jsx)("span",{className:`unknown__pt__mark__${e}`,children:r}),unknownList:({children:e})=>(0,t.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,t.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,t.jsx)("p",{children:e})};function c(e,t,r){let n=t[r],o=e[r];return"function"==typeof n||n&&"function"==typeof o?n:n?{...o,...n}:o}function d(e){let{node:t,index:n,isInline:o,renderNode:i}=e,l=(0,r.buildMarksTree)(t).map((e,t)=>i({node:e,isInline:!0,index:t,renderNode:i}));return{_key:t._key||`block-${n}`,children:l,index:n,isInline:o,node:t}}function f(){}e.s(["PortableText",0,function({value:e,components:o,listNestingMode:s,onMissingComponent:p=a}){let m=p||f,h;h=Array.isArray(e)?e:null==e?[]:[e];let v=(0,r.nestLists)(h,s||r.LIST_NEST_MODE_HTML),y=(0,n.useMemo)(()=>o?function(e,t){let{block:r,list:n,listItem:o,marks:i,types:l,...a}=t;return{...e,block:c(e,t,"block"),list:c(e,t,"list"),listItem:c(e,t,"listItem"),marks:c(e,t,"marks"),types:c(e,t,"types"),...a}}(u,o):u,[o]),g=(0,n.useMemo)(()=>{var e,n;return e=y,n=m,function o(a){var s,u,c,f,p,m,h,v;let y,g,{node:x,index:b,isInline:w}=a,k=x._key||`node-${b}`;return(0,r.isPortableTextToolkitList)(x)?function(r,l,a){let s=r.children.map((e,t)=>o({node:e._key?e:{...e,_key:`li-${l}-${t}`},index:t,isInline:!1,renderNode:o})),u=e.list,c=("function"==typeof u?u:u[r.listItem])||e.unknownList;if(c===e.unknownList){let e=r.listItem||"bullet";n(i(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,t.jsx)(c,{value:r,index:l,isInline:!1,renderNode:o,children:s},a)}(x,b,k):(0,r.isPortableTextListItemBlock)(x)?function(r,l,a){let s=d({node:r,index:l,isInline:!1,renderNode:o}),u=e.listItem,c=("function"==typeof u?u:u[r.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=r.listItem||"bullet";n(i(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let f=s.children;if(r.style&&"normal"!==r.style){let{listItem:e,...t}=r;f=o({node:t,index:l,isInline:!1,renderNode:o})}return(0,t.jsx)(c,{value:r,index:l,isInline:!1,renderNode:o,children:f},a)}(x,b,k):(0,r.isPortableTextToolkitSpan)(x)?function(l,a){let{markDef:s,markType:u,markKey:c}=l,d=e.marks[u]||e.unknownMark,f=l.children.map((e,t)=>o({node:e,index:t,isInline:!0,renderNode:o}));return d===e.unknownMark&&n(i(`mark type "${u}"`,"marks"),{nodeType:"mark",type:u}),(0,t.jsx)(d,{text:(0,r.spanToPlainText)(l),value:s,markType:u,markKey:c,renderNode:o,children:f},a)}(x,k):x._type in e.types?(s=x,u=b,c=k,f=w,(y=e.types[s._type])?(0,t.jsx)(y,{value:s,isInline:f,index:u,renderNode:o},c):null):(0,r.isPortableTextBlock)(x)?function(r,l,a,s){let{_key:u,...c}=d({node:r,index:l,isInline:s,renderNode:o}),f=c.node.style||"normal",p=("function"==typeof e.block?e.block:e.block[f])||e.unknownBlockStyle;return p===e.unknownBlockStyle&&n(i(`block style "${f}"`,"block"),{nodeType:"blockStyle",type:f}),(0,t.jsx)(p,{...c,value:c.node,renderNode:o},a)}(x,b,k,w):(0,r.isPortableTextToolkitTextNode)(x)?function(r,n){if("\n"===r.text){let r=e.hardBreak;return r?(0,t.jsx)(r,{},n):"\n"}return r.text}(x,k):(p=x,m=b,h=k,v=w,n(l(p._type),{nodeType:"block",type:p._type}),g=e.unknownType,(0,t.jsx)(g,{value:p,isInline:v,index:m,renderNode:o},h))}},[y,m]);return(0,t.jsx)(t.Fragment,{children:v.map((e,t)=>g({node:e,index:t,isInline:!1,renderNode:g}))})}])},814717,170362,e=>{"use strict";var t=e.i(415700);function r(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var n="u">typeof window?t.useLayoutEffect:t.useEffect,o=new WeakMap;e.s(["useMergeRefs",0,function(e,i){var l,a,s,u=(l=i||null,a=function(t){return e.forEach(function(e){return r(e,t)})},(s=(0,t.useState)(function(){return{value:l,callback:a,facade:{get current(){return s.value},set current(value){var e=s.value;e!==value&&(s.value=value,s.callback(value,e))}}}})[0]).callback=a,s.facade);return n(function(){var t=o.get(u);if(t){var n=new Set(t),i=new Set(e),l=u.current;
1n.forEach(function(e){i.has(e)||r(e,null)}),i.forEach(function(e){n.has(e)||r(e,l)})}o.set(u,e)},[e]),u}],814717);var i=e.i(824627);function l(e){return e}function a(e,t){void 0===t&&(t=l);var r=[],n=!1;return{read:function(){if(n)throw 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(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}}}e.s(["createMedium",0,function(e,t){return void 0===t&&(t=l),a(e,t)},"createSidecarMedium",0,function(e){void 0===e&&(e={});var t=a(null);return t.options=(0,i.__assign)({async:!0,ssr:!1},e),t}],170362)},561011,(e,t,r)=>{"use strict";var n=e.r(415700),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,l=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return a(function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})},[e,r,t]),l(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},900127,(e,t,r)=>{"use strict";t.exports=e.r(561011)},574159,462498,e=>{"use strict";let t=(0,e.i(443918).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t],462498),e.s(["Check",0,t],574159)},695090,753751,e=>{"use strict";var t=e.i(443918);let r=(0,t.default)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,r],695090);var n=e.i(168160),o=e.i(415700),i=/[\\\/_+.#"@\[\(\{&]/,l=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,s=/[\s-]/g;function u(e){return e.toLowerCase().replace(s," ")}var c=e.i(573129),d=e.i(531148),f=e.i(282734),p=e.i(900127),m='[cmdk-group=""]',h='[cmdk-group-items=""]',v='[cmdk-item=""]',y=`${v}:not([aria-disabled="true"])`,g="cmdk-item-select",x="data-value",b=(e,t,r)=>{var n;return n=e,function e(t,r,n,o,u,c,d){if(c===r.length)return u===t.length?1:.99;var f=`${u},${c}`;if(void 0!==d[f])return d[f];for(var p,m,h,v,y=o.charAt(c),g=n.indexOf(y,u),x=0;g>=0;)(p=e(t,r,n,o,g+1,c+1,d))>x&&(g===u?p*=1:i.test(t.charAt(g-1))?(p*=.8,(h=t.slice(u,g-1).match(l))&&u>0&&(p*=Math.pow(.999,h.length))):a.test(t.charAt(g-1))?(p*=.9,(v=t.slice(u,g-1).match(s))&&u>0&&(p*=Math.pow(.999,v.length))):(p*=.17,u>0&&(p*=Math.pow(.999,g-u))),t.charAt(g)!==r.charAt(c)&&(p*=.9999)),(p<.1&&n.charAt(g-1)===o.charAt(c+1)||o.charAt(c+1)===o.charAt(c)&&n.charAt(g-1)!==o.charAt(c))&&.1*(m=e(t,r,n,o,g+1,c+2,d))>p&&(p=.1*m),p>x&&(x=p),g=n.indexOf(y,g+1);return d[f]=x,x}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,u(n),u(t),0,0,{})},w=o.createContext(void 0),k=o.createContext(void 0),S=o.createContext(void 0),j=o.forwardRef((e,t)=>{let r=N(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",filtered:{count:0,items:new Map,groups:new Set}}}),n=N(()=>new Set),i=N(()=>new Map),l=N(()=>new Map),a=N(()=>new Set),s=O(e),{label:u,children:c,value:p,onValueChange:S,filter:j,shouldFilter:C,loop:E,disablePointerSelection:P=!1,vimBindings:I=!0,..._}=e,A=(0,f.useId)(),R=(0,f.useId)(),M=(0,f.useId)(),$=o.useRef(null),D=L();T(()=>{if(void 0!==p){let e=p.trim();r.current.value=e,B.emit()}},[p]),T(()=>{D(6,G)},[]);let B=o.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,i,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)V(),U(),D(1,q);else if("value"===e&&(n||D(5,G),(null==(o=s.current)?void 0:o.value)!==void 0)){null==(l=(i=s.current).onValueChange)||l.call(i,null!=t?t:"");return}B.emit()}},emit:()=>
1{a.current.forEach(e=>e())}}),[]),H=o.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=l.current.get(e))?void 0:o.value)&&(l.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,K(t,n)),D(2,()=>{U(),B.emit()}))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),D(3,()=>{V(),U(),r.current.value||q(),B.emit()}),()=>{l.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=W();D(4,()=>{V(),(null==t?void 0:t.getAttribute("id"))===e&&q(),B.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{l.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:A,inputId:M,labelId:R,listInnerRef:$}),[]);function K(e,t){var n,o;let i=null!=(o=null==(n=s.current)?void 0:n.filter)?o:b;return e?i(e,r.current.search,t):0}function U(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=i.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=$.current;Y().sort((t,r)=>{var n,o;let i=t.getAttribute("id"),l=r.getAttribute("id");return(null!=(n=e.get(l))?n:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(h);t?t.appendChild(e.parentElement===t?e:e.closest(`${h} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${h} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=$.current)?void 0:t.querySelector(`${m}[${x}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function q(){let e=Y().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(x);B.setState("value",t||void 0)}function V(){var e,t,o,a;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let i of n.current){let n=K(null!=(t=null==(e=l.current.get(i))?void 0:e.value)?t:"",null!=(a=null==(o=l.current.get(i))?void 0:o.keywords)?a:[]);r.current.filtered.items.set(i,n),n>0&&u++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function G(){var e,t,r;let n=W();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(m))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=$.current)?void 0:e.querySelector(`${v}[aria-selected="true"]`)}function Y(){var e;return Array.from((null==(e=$.current)?void 0:e.querySelectorAll(y))||[])}function X(e){let t=Y()[e];t&&B.setState("value",t.getAttribute(x))}function Z(e){var t;let r=W(),n=Y(),o=n.findIndex(e=>e===r),i=n[o+e];null!=(t=s.current)&&t.loop&&(i=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),i&&B.setState("value",i.getAttribute(x))}function J(e){let t=W(),r=null==t?void 0:t.closest(m),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,m):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,m))?void 0:r.querySelector(y);n?B.setState("value",n.getAttribute(x)):Z(e)}let Q=()=>X(Y().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):Z(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?J(-1):Z(-1)};return o.createElement(d.Primitive.div,{ref:t,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=_.onKeyDown)||t.call(_,e),!e.defaultPrevented)switch(e.key){case"n":case"j":I&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":I&&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":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=W();if(t){let e=new Event(g);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:z},u),F(e,e=>o.createElement(k.Provider,{value:B},o.createElement(w.Provider,{value:H},e))))}),C=o.forwardRef((e,t)=>
1{var r,n;let i=(0,f.useId)(),l=o.useRef(null),a=o.useContext(S),s=o.useContext(w),u=O(e),c=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==a?void 0:a.forceMount;T(()=>{if(!c)return s.item(i,null==a?void 0:a.id)},[c]);let p=D(i,l,[e.value,e.children,l],e.keywords),m=o.useContext(k),h=$(e=>e.value&&e.value===p.current),v=$(e=>!!c||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function y(){var e,t;x(),null==(t=(e=u.current).onSelect)||t.call(e,p.current)}function x(){m.setState("value",p.current,!0)}if(o.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(g,y),()=>t.removeEventListener(g,y)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:b,value:j,onSelect:C,forceMount:E,keywords:P,...I}=e;return o.createElement(d.Primitive.div,{ref:M([l,t]),...I,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||s.getDisablePointerSelection()?void 0:x,onClick:b?void 0:y},e.children)}),E=o.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:i,...l}=e,a=(0,f.useId)(),s=o.useRef(null),u=o.useRef(null),c=(0,f.useId)(),p=o.useContext(w),m=$(e=>!!i||!1===p.filter()||!e.search||e.filtered.groups.has(a));T(()=>p.group(a),[]),D(a,s,[e.value,e.heading,u]);let h=o.useMemo(()=>({id:a,forceMount:i}),[i]);return o.createElement(d.Primitive.div,{ref:M([s,t]),...l,"cmdk-group":"",role:"presentation",hidden:!m||void 0},r&&o.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),F(e,e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},o.createElement(S.Provider,{value:h},e))))}),P=o.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=o.useRef(null),l=$(e=>!e.search);return r||l?o.createElement(d.Primitive.div,{ref:M([i,t]),...n,"cmdk-separator":"",role:"separator"}):null}),I=o.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,l=o.useContext(k),a=$(e=>e.search),s=$(e=>e.value),u=o.useContext(w),c=o.useMemo(()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${v}[${x}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")},[]);return o.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),o.createElement(d.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":c,id:u.inputId,type:"text",value:i?e.value:a,onChange:e=>{i||l.setState("search",e.target.value),null==r||r(e.target.value)}})}),_=o.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,l=o.useRef(null),a=o.useRef(null),s=o.useContext(w);return o.useEffect(()=>{if(a.current&&l.current){let e=a.current,t=l.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)}}},[]),o.createElement(d.Primitive.div,{ref:M([l,t]),...i,"cmdk-list":"",role:"listbox","aria-label":n,id:s.listId},F(e,e=>o.createElement("div",{ref:M([a,s.listInnerRef]),"cmdk-list-sizer":""},e)))}),A=o.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:l,container:a,...s}=e;return o.createElement(c.Root,{open:r,onOpenChange:n},o.createElement(c.Portal,{container:a},o.createElement(c.Overlay,{"cmdk-overlay":"",className:i}),o.createElement(c.Content,{"aria-label":e.label,"cmdk-dialog":"",className:l},o.createElement(j,{ref:t,...s}))))}),R=Object.assign(j,{List:_,Item:C,Input:I,Group:E,Separator:P,Dialog:A,Empty:o.forwardRef((e,t)=>$(e=>0===e.filtered.count)?o.createElement(d.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:o.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...l}=e;return o.createElement(d.Primitive.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},F(e,e=>o.createElement("div",{"aria-hidden":!0},e)))})});function O(e){let t=o.useRef(e);return T(()=>{t.current=e}),t}var T="u"<typeof window?o.useEffect:o.useLayoutEffect;function N(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>
1{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function $(e){let t=o.useContext(k),r=()=>e(t.snapshot());return(0,p.useSyncExternalStore)(t.subscribe,r,r)}function D(e,t,r,n=[]){let i=o.useRef(),l=o.useContext(w);return T(()=>{var o;let a=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),s=n.map(e=>e.trim());l.value(e,a,s),null==(o=t.current)||o.setAttribute(x,a),i.current=a}),i}var L=()=>{let[e,t]=o.useState(),r=N(()=>new Map);return T(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function F({asChild:e,children:t},r){let n;return e&&o.isValidElement(t)?o.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var z={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let B=(0,t.default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var H=e.i(647163);e.i(630374);let K=o.forwardRef(({className:e,...t},r)=>(0,n.jsx)(R,{ref:r,className:(0,H.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));K.displayName=R.displayName;let U=o.forwardRef(({className:e,...t},r)=>(0,n.jsxs)("div",{className:"flex items-center border-b px-3","data-cmdk-input-wrapper":"",children:[(0,n.jsx)(B,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,n.jsx)(R.Input,{ref:r,className:(0,H.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));U.displayName=R.Input.displayName;let q=o.forwardRef(({className:e,...t},r)=>(0,n.jsx)(R.List,{ref:r,className:(0,H.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));q.displayName=R.List.displayName;let V=o.forwardRef((e,t)=>(0,n.jsx)(R.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));V.displayName=R.Empty.displayName;let G=o.forwardRef(({className:e,...t},r)=>(0,n.jsx)(R.Group,{ref:r,className:(0,H.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-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));G.displayName=R.Group.displayName,o.forwardRef(({className:e,...t},r)=>(0,n.jsx)(R.Separator,{ref:r,className:(0,H.cn)("-mx-1 h-px bg-border",e),...t})).displayName=R.Separator.displayName;let W=o.forwardRef(({className:e,...t},r)=>(0,n.jsx)(R.Item,{ref:r,className:(0,H.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));W.displayName=R.Item.displayName,e.s(["Command",0,K,"CommandEmpty",0,V,"CommandGroup",0,G,"CommandInput",0,U,"CommandItem",0,W,"CommandList",0,q],753751)},81609,e=>{"use strict";var t=e.i(415700),r=e.i(531148),n=e.i(168160),o=t.forwardRef((e,t)=>{let{children:o,width:i=10,height:l=5,...a}=e;return(0,n.jsx)(r.Primitive.svg,{...a,ref:t,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:(0,n.jsx)("polygon",{points:"0,0 30,0 15,10"})})});o.displayName="Arrow",e.s(["Root",0,o])},670604,e=>{"use strict";var t=e.i(415700),r=e.i(526191);e.s(["useSize",0,function(e){let[n,o]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;o({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)},[e]),n}])},229930,e=>{"use strict";var t=e.i(415700),r=e.i(475932),n=e.i(111418),o=e.i(81609),i=e.i(119447),l=e.i(865439),a=e.i(531148),s=e.i(6656
177),u=e.i(526191),c=e.i(670604),d=e.i(168160),f="Popper",[p,m]=(0,l.createContextScope)(f),[h,v]=p(f),y=e=>{let{__scopePopper:r,children:n}=e,[o,i]=t.useState(null);return(0,d.jsx)(h,{scope:r,anchor:o,onAnchorChange:i,children:n})};y.displayName=f;var g="PopperAnchor",x=t.forwardRef((e,r)=>{let{__scopePopper:n,virtualRef:o,...l}=e,s=v(g,n),u=t.useRef(null),c=(0,i.useComposedRefs)(r,u);return t.useEffect(()=>{s.onAnchorChange(o?.current||u.current)}),o?null:(0,d.jsx)(a.Primitive.div,{...l,ref:c})});x.displayName=g;var b="PopperContent",[w,k]=p(b),S=t.forwardRef((e,o)=>{let{__scopePopper:l,side:f="bottom",sideOffset:p=0,align:m="center",alignOffset:h=0,arrowPadding:y=0,avoidCollisions:g=!0,collisionBoundary:x=[],collisionPadding:k=0,sticky:S="partial",hideWhenDetached:j=!1,updatePositionStrategy:C="optimized",onPlaced:E,...A}=e,R=v(b,l),[O,T]=t.useState(null),N=(0,i.useComposedRefs)(o,e=>T(e)),[M,$]=t.useState(null),D=(0,c.useSize)(M),L=D?.width??0,F=D?.height??0,z="number"==typeof k?k:{top:0,right:0,bottom:0,left:0,...k},B=Array.isArray(x)?x:[x],H=B.length>0,K={padding:z,boundary:B.filter(P),altBoundary:H},{refs:U,floatingStyles:q,placement:V,isPositioned:G,middlewareData:W}=(0,r.useFloating)({strategy:"fixed",placement:f+("center"!==m?"-"+m:""),whileElementsMounted:(...e)=>(0,n.autoUpdate)(...e,{animationFrame:"always"===C}),elements:{reference:R.anchor},middleware:[(0,r.offset)({mainAxis:p+F,alignmentAxis:h}),g&&(0,r.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?(0,r.limitShift)():void 0,...K}),g&&(0,r.flip)({...K}),(0,r.size)({...K,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),M&&(0,r.arrow)({element:M,padding:y}),I({arrowWidth:L,arrowHeight:F}),j&&(0,r.hide)({strategy:"referenceHidden",...K})]}),[Y,X]=_(V),Z=(0,s.useCallbackRef)(E);(0,u.useLayoutEffect)(()=>{G&&Z?.()},[G,Z]);let J=W.arrow?.x,Q=W.arrow?.y,ee=W.arrow?.centerOffset!==0,[et,er]=t.useState();return(0,u.useLayoutEffect)(()=>{O&&er(window.getComputedStyle(O).zIndex)},[O]),(0,d.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(w,{scope:l,placedSide:Y,onArrowChange:$,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,d.jsx)(a.Primitive.div,{"data-side":Y,"data-align":X,...A,ref:N,style:{...A.style,animation:G?void 0:"none"}})})})});S.displayName=b;var j="PopperArrow",C={top:"bottom",right:"left",bottom:"top",left:"right"},E=t.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=k(j,r),l=C[i.placedSide];return(0,d.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(o.Root,{...n,ref:t,style:{...n.style,display:"block"}})})});function P(e){return null!==e}E.displayName=j;var I=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,u]=_(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===s?(p=i?c:`${d}px`,m=`${-a}px`):"top"===s?(p=i?c:`${d}px`,m=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,m=i?c:`${f}px`):"left"===s&&(p=`${n.floating.width+a}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}});function _(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",0,x,"Arrow",0,E,"Content",0,S,"Root",0,y,"createPopperScope",0,m])},59377,e=>{"use strict";var t=e.i(168160),r=e.i(415700),n=e.i(178896),o=e.i(119447),i=e.i(865439),l=e.i(529247),a=e.i(424107),s=e.i(127246),u=e.i(282734),c=e.i(229930),d=e.i(4542),f=e.i(182615),p=e.i(531148),m=e.i(225374),h=e.i(150061),v=e.i(645751),y=e.i(30871),g="Popover",[x,b]=(0,i.createContextScope)(g,[c.createPopperScope]),w=(0,c.createPopperScope)(),[k,S]=x(g),j=e=>{let{__scopePopover:n,children:o,open:i,defaultOpen:l,onOpenChange:a,modal:s=!1}=e,d=w(n),f=r.useRef(null),[p,m]=r.useState(!1),[v=!1,y]=(0,h.useControllableState)({prop:i,defaultProp:l,onChange:a});return(0,t.jsx)(c.Root,{...d,children:(0,t.jsx)(k,{scope:n,contentId:(0,u.useId)(),triggerRef:f,open:v,onOpenChange:y,onOpenToggle:r.useCallback(()=>y(e=>!e),[y]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>m(!0),[]),onCustomAnchorRemove:r.useCallback(()=>m(!1),[]),modal:s,children:o})})};j.displayName=g;var C="PopoverAnchor";
1r.forwardRef((e,n)=>{let{__scopePopover:o,...i}=e,l=S(C,o),a=w(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:u}=l;return r.useEffect(()=>(s(),()=>u()),[s,u]),(0,t.jsx)(c.Anchor,{...a,...i,ref:n})}).displayName=C;var E="PopoverTrigger",P=r.forwardRef((e,r)=>{let{__scopePopover:i,...l}=e,a=S(E,i),s=w(i),u=(0,o.useComposedRefs)(r,a.triggerRef),d=(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":L(a.open),...l,ref:u,onClick:(0,n.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?d:(0,t.jsx)(c.Anchor,{asChild:!0,...s,children:d})});P.displayName=E;var I="PopoverPortal",[_,A]=x(I,{forceMount:void 0}),R=e=>{let{__scopePopover:r,forceMount:n,children:o,container:i}=e,l=S(I,r);return(0,t.jsx)(_,{scope:r,forceMount:n,children:(0,t.jsx)(f.Presence,{present:n||l.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:i,children:o})})})};R.displayName=I;var O="PopoverContent",T=r.forwardRef((e,r)=>{let n=A(O,e.__scopePopover),{forceMount:o=n.forceMount,...i}=e,l=S(O,e.__scopePopover);return(0,t.jsx)(f.Presence,{present:o||l.open,children:l.modal?(0,t.jsx)(N,{...i,ref:r}):(0,t.jsx)(M,{...i,ref:r})})});T.displayName=O;var N=r.forwardRef((e,i)=>{let l=S(O,e.__scopePopover),a=r.useRef(null),s=(0,o.useComposedRefs)(i,a),u=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(y.RemoveScroll,{as:m.Slot,allowPinchZoom:!0,children:(0,t.jsx)($,{...e,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||l.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),M=r.forwardRef((e,n)=>{let o=S(O,e.__scopePopover),i=r.useRef(!1),l=r.useRef(!1);return(0,t.jsx)($,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),$=r.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,...v}=e,y=S(O,n),g=w(n);return(0,a.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:u,children:(0,t.jsx)(l.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>y.onOpenChange(!1),children:(0,t.jsx)(c.Content,{"data-state":L(y.open),role:"dialog",id:y.contentId,...g,...v,ref:r,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),D="PopoverClose";function L(e){return e?"open":"closed"}r.forwardRef((e,r)=>{let{__scopePopover:o,...i}=e,l=S(D,o);return(0,t.jsx)(p.Primitive.button,{type:"button",...i,ref:r,onClick:(0,n.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=D,r.forwardRef((e,r)=>{let{__scopePopover:n,...o}=e,i=w(n);return(0,t.jsx)(c.Arrow,{...i,...o,ref:r})}).displayName="PopoverArrow";var F=e.i(647163);let z=r.forwardRef(({className:e,align:r="center",sideOffset:n=4,...o},i)=>(0,t.jsx)(R,{children:(0,t.jsx)(T,{ref:i,align:r,sideOffset:n,className:(0,F.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));z.displayName=T.displayName,e.s(["Popover",0,j,"PopoverContent",0,z,"PopoverTrigger",0,P],59377)},447170,e=>{"use strict";var t=e.i(168160),r=e.i(415700),n=e.i(574159),o=e.i(695090),i=e.i(647163),l=e.i(167881),a=e.i(753751),s=e.i(59377);e.s(["SearchableSelect",0,function({value:e,onValueChange:u,placeholder:c="Select option...",options:d,className:f,popoverClassName:p}){let[m,h]=r.useState(!1),v=d.find(t=>t.value===e);return(0,t.jsxs)(s.Popover,{open:m,onOpenChange:h,children:[(0,t.jsx)(s.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(l.Button,{variant:"transparent",role:"combobox","aria-expanded":m,className:(0,i.cn)("w-full justify-between",f),children:[v?v.label:c,(0,t.jsx)(o.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),(0,t.jsx)(s.PopoverContent,{className:"w-full p-0",align:"start",side:"bottom",sideOffset:4,children:(0,t.jsxs)(a.Command,{className:p,children:[(0,t.jsx)(a.CommandInput,{placeholder:`Search ${c.toLowerCase()}...`}),(0,t.jsxs)(a.CommandList,{children:[(0,t.jsx)(a.CommandEmpty,{children:"No option found."}),(0,t.jsx)(a.CommandGroup,{children:d.map(r=>(0,t.jsxs)(a.CommandItem,{value:r.label,onSelect:()=>{u(r.value),h(!1)},onClick:e=>e.stopPropagation(),children:[(0,t.jsx)(n.Check,{className:(0,i.cn)("mr-2 h-4 w-4",e===r.value?"opacity-100":"opacity-0")}),r.label]},r.value))})]})]})})]})}])}]);
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.