1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,578565,e=>{"use strict";var t=e.i(257942),r=e.i(22084),n=e.i(789549),l=e.i(919254),a=e.i(843476);let o={__staticSelector:"InputBase",withAria:!0,size:"sm"},i=(0,t.polymorphicFactory)(e=>{let{inputProps:t,wrapperProps:i,...s}=function(e,t,r){let a=(0,n.useProps)(["Input","InputWrapper",e],t,r),{label:o,description:i,error:s,success:u,required:c,classNames:d,styles:f,className:p,unstyled:h,__staticSelector:b,__stylesApiProps:m,errorProps:g,successProps:y,labelProps:v,descriptionProps:S,wrapperProps:x,id:C,size:E,style:w,inputContainer:j,inputWrapperOrder:k,withAsterisk:V,variant:$,vars:T,mod:O,attributes:F,...I}=a,{styleProps:A,rest:D}=(0,l.extractStyleProps)(I),_={label:o,description:i,error:s,success:u,required:c,classNames:d,className:p,__staticSelector:b,__stylesApiProps:m||a,errorProps:g,successProps:y,labelProps:v,descriptionProps:S,unstyled:h,styles:f,size:E,style:w,inputContainer:j,inputWrapperOrder:k,withAsterisk:V,variant:$,id:C,mod:O,attributes:F,...x};return{...D,classNames:d,styles:f,unstyled:h,wrapperProps:{..._,...A},inputProps:{required:c,classNames:d,styles:f,unstyled:h,size:E,__staticSelector:b,__stylesApiProps:m||a,error:s,success:u,variant:$,id:C,attributes:F}}}("InputBase",o,e);return(0,a.jsx)(r.Input.Wrapper,{...i,children:(0,a.jsx)(r.Input,{...t,...s})})});i.classes={...r.Input.classes,...r.Input.Wrapper.classes},i.displayName="@mantine/core/InputBase",e.s(["InputBase",0,i],578565)},453165,e=>{"use strict";var t=e.i(789549),r=e.i(908954),n=e.i(321879),l=e.i(578565),a=e.i(211048),o=e.i(19824),i=e.i(747596),s=e.i(854511),u=e.i(735986),c=e.i(94681);function d(e){return"group"in e}var f=e.i(207670),p=e.i(843476);function h({data:e,withCheckIcon:t,withAlignedLabels:r,value:n,checkIconPosition:l,unstyled:a,renderOption:i}){if(!d(e)){var u;let d=(u=e.value,Array.isArray(n)?n.includes(u):n===u),h=t&&(d?(0,p.jsx)(c.CheckIcon,{className:s.default.optionsDropdownCheckIcon}):r?(0,p.jsx)("div",{className:s.default.optionsDropdownCheckPlaceholder}):null),b=(0,p.jsxs)(p.Fragment,{children:["left"===l&&h,(0,p.jsx)("span",{children:e.label}),"right"===l&&h]});return(0,p.jsx)(o.Combobox.Option,{value:e.value,disabled:e.disabled,className:(0,f.default)({[s.default.optionsDropdownOption]:!a}),"data-reverse":"right"===l||void 0,"data-checked":d||void 0,"aria-selected":d,active:d,children:"function"==typeof i?i({option:e,checked:d}):b})}let b=e.items.map(e=>(0,p.jsx)(h,{data:e,value:n,unstyled:a,withCheckIcon:t,withAlignedLabels:r,checkIconPosition:l,renderOption:i},`${e.value}`));return(0,p.jsx)(o.Combobox.Group,{label:e.group,children:b})}function b({data:e,hidden:t,hiddenWhenEmpty:r,filter:n,search:l,limit:a,maxDropdownHeight:s,floatingHeight:c,withScrollArea:f=!0,filterOptions:m=!0,withCheckIcon:g=!1,withAlignedLabels:y=!1,value:v,checkIconPosition:S,nothingFoundMessage:x,unstyled:C,labelId:E,renderOption:w,scrollAreaProps:j,"aria-label":k}){let V=(0,u.useComboboxContext)();!function e(t,r=new Set){if(Array.isArray(t))for(let n of t)if(d(n))e(n.items,r);else{if(void 0===n.value)throw Error("[@mantine/core] Each option must have value property");if(r.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);r.add(n.value)}}(e);let $="string"==typeof l?(n||function e({options:t,search:r,limit:n}){let l=r.trim().toLowerCase(),a=[];for(let o=0;o<t.length;o+=1){let i=t[o];if(a.length===n)break;d(i)&&a.push({group:i.group,items:e({options:i.items,search:r,limit:n-a.length})}),!d(i)&&i.label.toLowerCase().includes(l)&&a.push(i)}return a})({options:e,search:m?l:"",limit:a??1/0}):e,T=function(e){if(0===e.length)return!0;for(let t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}($),O=$.map((e,t)=>(0,p.jsx)(h,{data:e,withCheckIcon:g,withAlignedLabels:y,value:v,checkIconPosition:S,unstyled:C,renderOption:w},d(e)?`group-${"string"==typeof e.group?e.group:t}`:`${e.value}`));return(0,p.jsx)(o.Combobox.Dropdown,{hidden:t||r&&T,"data-composed":!0,children:(0,p.jsxs)(o.Combobox.Options,{labelledBy:E,"aria-label":k,children:[f?(0,p.jsx)(i.ScrollArea.Autosize,{mah:(c??V.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...j,children:O}):O,T&&x&&(0,p.jsx)(o.Combobox.Empty,{children:x})]})})}var m=e.i(411327),g=e.i(271645),y=e.i(751937),v=e.i(446614);let S={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},x=(0,n.genericFactory)(e=>
1{let n,i=(0,t.useProps)(["Input","InputWrapper","Select"],S,e),{classNames:s,styles:u,unstyled:c,vars:d,dropdownOpened:f,defaultDropdownOpened:h,onDropdownClose:x,onDropdownOpen:C,onFocus:E,onBlur:w,onClick:j,onChange:k,data:V,value:$,defaultValue:T,selectFirstOptionOnChange:O,selectFirstOptionOnDropdownOpen:F,onOptionSubmit:I,comboboxProps:A,readOnly:D,disabled:_,filter:P,limit:R,withScrollArea:W,maxDropdownHeight:L,floatingHeight:B,size:z,searchable:N,rightSection:q,checkIconPosition:M,withCheckIcon:H,withAlignedLabels:U,nothingFoundMessage:K,name:G,form:Q,searchValue:X,defaultSearchValue:Z,onSearchChange:J,allowDeselect:Y,error:ee,rightSectionPointerEvents:et,id:er,clearable:en,clearSectionMode:el,clearButtonProps:ea,hiddenInputProps:eo,renderOption:ei,onClear:es,autoComplete:eu,scrollAreaProps:ec,__defaultRightSection:ed,__clearSection:ef,__clearable:ep,chevronColor:eh,autoSelectOnBlur:eb,openOnFocus:em,attributes:eg,...ey}=i,ev=(0,g.useMemo)(()=>V?V.map(e=>(function e(t){return"string"==typeof t?{value:t,label:t}:"object"==typeof t&&"value"in t&&!("label"in t)?{value:t.value,label:`${t.value}`,disabled:t.disabled}:"object"==typeof t&&"group"in t?{group:t.group,items:t.items.map(t=>e(t))}:"number"==typeof t||"bigint"==typeof t||"boolean"==typeof t?{value:t,label:`${t}`}:t})(e)):[],[V]),eS=(0,g.useRef)({}),ex=(0,g.useMemo)(()=>(function e(t){return t.reduce((t,r)=>"group"in r?{...t,...e(r.items)}:(t[`${r.value}`]=r,t),{})})(ev),[ev]),eC=(0,y.useId)(er),[eE,ew,ej]=(0,v.useUncontrolled)({value:$,defaultValue:T,finalValue:null,onChange:k}),ek=null!=eE?`${eE}`in ex?ex[`${eE}`]:eS.current[`${eE}`]:void 0,eV=(n=(0,g.useRef)(void 0),(0,g.useEffect)(()=>{n.current=ek},[ek]),n.current),[e$,eT,eO]=(0,v.useUncontrolled)({value:X,defaultValue:Z,finalValue:ek?ek.label:"",onChange:J}),eF=(0,a.useCombobox)({opened:f,defaultOpened:h,onDropdownOpen:()=>{C?.(),F?eF.selectFirstOption():eF.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{x?.(),setTimeout(eF.resetSelectedOption,0)}}),eI=e=>{eT(e),eF.resetSelectedOption()},{resolvedClassNames:eA,resolvedStyles:eD}=(0,r.useResolvedStylesApi)({props:i,styles:u,classNames:s});(0,g.useEffect)(()=>{O&&eF.selectFirstOption()},[O,e$]),(0,g.useEffect)(()=>{null===$&&eI(""),null!=$&&ek&&(eV?.value!==ek.value||eV?.label!==ek.label)&&eI(ek.label)},[$,ek]),(0,g.useEffect)(()=>{ej||eO||eI(null!=eE?`${eE}`in ex?ex[`${eE}`]?.label:eS.current[`${eE}`]?.label||"":"")},[ex,eE]),(0,g.useEffect)(()=>{eE&&`${eE}`in ex&&(eS.current[`${eE}`]=ex[`${eE}`])},[ex,eE]);let e_=(0,p.jsx)(o.Combobox.ClearButton,{...ea,onClear:()=>{ew(null,null),eI(""),es?.()}}),eP=en&&null!=eE&&!_&&!D;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Combobox,{store:eF,__staticSelector:"Select",classNames:eA,styles:eD,unstyled:c,readOnly:D,size:z,attributes:eg,floatingHeight:B,keepMounted:eb,onOptionSubmit:e=>{I?.(e);let t=Y&&`${ex[e].value}`==`${eE}`?null:ex[e],r=t?t.value:null;r!==eE&&ew(r,t),ej||eI(null!=r&&t?.label||""),eF.closeDropdown()},...A,children:[(0,p.jsx)(o.Combobox.Target,{targetType:N?"input":"button",autoComplete:eu,withExpandedAttribute:!0,children:(0,p.jsx)(l.InputBase,{id:eC,__defaultRightSection:(0,p.jsx)(o.Combobox.Chevron,{size:z,error:ee,unstyled:c,color:eh}),__clearSection:e_,__clearable:eP,__clearSectionMode:el,rightSection:q,rightSectionPointerEvents:et||"none",...ey,size:z,__staticSelector:"Select",disabled:_,readOnly:D||!N,value:e$,onChange:e=>{let t;if(t=e.currentTarget,(0,m.getRootElement)(t).activeElement!==t){if(!D){let t=function(e,t){let r=t.trim().toLowerCase();if(""===r)return;let n=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===r);return 1===n.length?n[0]:void 0}(ex,e.currentTarget.value);t&&`${t.value}`!=`${eE}`&&(ew(t.value,t),ej||eI(t.label))}return}eI(e.currentTarget.value),eF.openDropdown(),O&&eF.selectFirstOption()},onFocus:e=>{em&&N&&eF.openDropdown(),E?.(e)},onBlur:e=>{eb&&eF.clickSelectedOption(),N&&eF.closeDropdown();let t=null!=eE&&(`${eE}`in ex?ex[`${eE}`]:eS.current[`${eE}`]);eI(t&&t.label||""),w?.(e)},onClick:e=>{N?eF.openDropdown():eF.toggleDropdown(),j?.(e)},classNames:eA,styles:eD,unstyled:c,pointer:!N,error:ee,attributes:eg})}),(0,p.jsx)(b,{data:ev,hidden:D||_,filter:P,search:e$,limit:R,hiddenWhenEmpty:!K,withScrollArea:W,maxDropdownHeight:L,filterOptions:!!N&&ek?.label!==e$,value:eE,checkIconPosition:M,withCheckIcon:H,withAlignedLabels:U,nothingFoundMessage:K,unstyled:c,labelId:ey.label?`${eC}-label`:void 0,"aria-label":ey.label?void 0:ey["aria-label"],renderOption:ei,scrollAreaProps:ec})]}),(0,p.jsx)(o.Combobox.HiddenInput,{value:eE,name:G,form:Q,disabled:_,...eo})]})});x.classes={...l.InputBase.classes,...o.Combobox.classes},x.displayName="@mantine/core/Select",e.s(["Select",0,x],453165)},25293,e=>{"use strict";var t=e.i(789549),r=e.i(321879),n=e.i(578565),l=e.i(843476);let a=(0,r.factory)(e=>
1{let r=(0,t.useProps)(["Input","InputWrapper","TextInput"],null,e);return(0,l.jsx)(n.InputBase,{component:"input",...r,__staticSelector:"TextInput"})});a.classes=n.InputBase.classes,a.displayName="@mantine/core/TextInput",e.s(["TextInput",0,a])},133824,e=>{"use strict";var t=e.i(271645);e.s(["useDebouncedValue",0,function(e,r,n={leading:!1}){let[l,a]=(0,t.useState)(e),o=(0,t.useRef)(!1),i=(0,t.useRef)(null),s=(0,t.useRef)(!1),u=(0,t.useRef)(e);u.current=e;let c=(0,t.useCallback)(()=>{window.clearTimeout(i.current),i.current=null},[]),d=(0,t.useCallback)(()=>{c(),s.current=!1},[]),f=(0,t.useCallback)(()=>{i.current&&(d(),s.current=!1,a(u.current))},[]);return(0,t.useEffect)(()=>{o.current&&(c(),!s.current&&n.leading?(s.current=!0,a(e),i.current=window.setTimeout(()=>{s.current=!1},r)):i.current=window.setTimeout(()=>{s.current=!1,a(e)},r))},[e,n.leading,r]),(0,t.useEffect)(()=>(o.current=!0,d),[]),[l,d,{cancel:d,flush:f}]}])},629801,(e,t,r)=>{"use strict";t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(l=n;0!=l--;)if(!e(t[l],r[l]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(l=n;0!=l--;)if(!Object.prototype.hasOwnProperty.call(r,a[l]))return!1;for(l=n;0!=l--;){var n,l,a,o=a[l];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},341638,e=>{"use strict";var t=e.i(271645);let r="u">typeof window?t.useLayoutEffect:t.useEffect;function n(e,t){r(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function l(e){return null===e||"object"!=typeof e?{}:Object.keys(e).reduce((t,r)=>{let n=e[r];return null!=n&&!1!==n&&(t[r]=n),t},{})}function a(e){return"string"!=typeof e?[]:e.split(".")}function o(e,t){let r=a(e);if(0===r.length||"object"!=typeof t||null===t)return;let n=t[r[0]];for(let e=1;e<r.length&&null!=n;e+=1)n=n[r[e]];return n}function i(e,t){return e?`${e}-${t.toString()}`:t.toString()}function s(e,t){if(null===t||"object"!=typeof t)return{};let r={...t};return Object.keys(t).forEach(t=>{t.includes(`${String(e)}.`)&&delete r[t]}),r}function u(e,t){return parseInt(e.substring(t.length+1).split(".")[0],10)}function c(e,t,r,n){if(void 0===t)return r;let l=`${String(e)}`,a=r;-1===n&&(a=s(`${l}.${t}`,a));let o={...a},i=new Set;return Object.entries(a).filter(([e])=>{if(!e.startsWith(`${l}.`))return!1;let r=u(e,l);return!Number.isNaN(r)&&r>=t}).forEach(([e,t])=>{let r=u(e,l),a=e.replace(`${l}.${r}`,`${l}.${r+n}`);o[a]=t,i.add(a),i.has(e)||delete o[e]}),o}function d(e,t,r){"object"==typeof r.value&&(r.value=f(r.value)),r.enumerable&&!r.get&&!r.set&&r.configurable&&r.writable&&"__proto__"!==t?e[t]=r.value:Object.defineProperty(e,t,r)}function f(e){if("object"!=typeof e)return e;var t,r,n,l=0,a=Object.prototype.toString.call(e);if("[object Object]"===a?n=Object.create(e.__proto__||null):"[object Array]"===a?n=Array(e.length):"[object Set]"===a?(n=new Set,e.forEach(function(e){n.add(f(e))})):"[object Map]"===a?(n=new Map,e.forEach(function(e,t){n.set(f(t),f(e))})):"[object Date]"===a?n=new Date(+e):"[object RegExp]"===a?n=new RegExp(e.source,e.flags):"[object DataView]"===a?n=new e.constructor(f(e.buffer)):"[object ArrayBuffer]"===a?n=e.slice(0):"Array]"===a.slice(-6)&&(n=new e.constructor(e)),n){for(r=Object.getOwnPropertySymbols(e);l<r.length;l++)d(n,r[l],Object.getOwnPropertyDescriptor(e,r[l]));for(l=0,r=Object.getOwnPropertyNames(e);l<r.length;l++)Object.hasOwnProperty.call(n,t=r[l])&&n[t]===e[t]||d(n,t,Object.getOwnPropertyDescriptor(e,t))}return n||e}function p(e,t,r){let n=a(e);if(0===n.length)return r;let l=f(r);if(1===n.length)return l[n[0]]=t,l;let o=l[n[0]];for(let e=1;e<n.length-1;e+=1){if(void 0===o)return l;o=o[n[e]]}return o[n[n.length-1]]=t,l}function h(e,t){let r=Object.keys(e);if("string"==typeof t){let n=r.filter(e=>e.startsWith(`${t}.`));return e[t]||n.some(t=>e[t])||!1}return r.some(t=>e[t])}var b=e.i(629801);let m=Symbol("root-rule");function g(e){let t=l(e);return{hasErrors:Object.keys(t).length>0,errors:t}}let y=e=>e instanceof Error?e.message:String(e);function v(e,t,r=y,n=new AbortController().signal){if("function"==typeof e){let r=e(t);return r instanceof Promise?r.then(g):g(r)}let l=function e(t,r,n,l,a="",i={}){if("object"!=typeof t||null===t)return i;let s=[],u=[];for(let c of Object.keys(t)){let d=t[c],f=`${""===a?"":`${a}.`}${c}`,p=o(f,r),h=!1;if("function"==typeof d){let e=d(p,r,f,l);e instanceof Promise?s.push({rulePath:f,promise:e}):i[f]=e}if("object"==typeof d&&Array.isArray(p)){h=!0;for(let t=0;t<p.length;t++){let a=e(d,r,n,l,`${f}.${t}`,i);a instanceof Promise&&u.push(a)}if(m in d){let e=d[m](p,r,f,l);e instanceof Promise?s.push({rulePath:f,promise:e}):i[f]=e}}if("object"==typeof d&&"object"==typeof p&&null!==p){if(!h){let t=e(d,r,n,l,f,i);t instanceof Promise&&u.push(t)}if(m in d){let e=d[m](p,r,f,l);e instanceof Promise?s.push({rulePath:f,promise:e}):i[f]=e}}}
1return 0===s.length&&0===u.length?i:(async()=>(await Promise.all(u),s.length>0&&(await Promise.allSettled(s.map(e=>e.promise))).forEach((e,t)=>{let{rulePath:r}=s[t];"fulfilled"===e.status?i[r]=e.value:i[r]=n(e.reason)}),i))()}(e,t,r,n);return l instanceof Promise?l.then(g):g(l)}let S=e=>e instanceof Error?e.message:String(e);function x(e,t){let r=Object.keys(t).find(t=>e.split(".").every((e,r)=>e===t.split(".")[r]));return{hasError:!!r,error:r?t[r]:null}}function C(e,t,r,n=S,l=new AbortController().signal){if("string"!=typeof e)return{hasError:!1,error:null};if("function"==typeof t){let a=v(t,r,n,l);return a instanceof Promise?a.then(t=>x(e,t.errors)):x(e,a.errors)}let a=function(e,t){if(!t)return null;let r=e.split("."),n=t;for(let e=0;e<r.length;e++){let t=r[e];if(!/^\d+$/.test(t)){if(null==n||"object"!=typeof n)return null;n=n[t]}}return"function"==typeof n?n:null}(e,t);if(a){let t=o(e,r);try{let o=a(t,r,e,l);if(o instanceof Promise)return o.then(e=>e?{hasError:!0,error:e}:{hasError:!1,error:null},e=>({hasError:!0,error:n(e)}));if(o)return{hasError:!0,error:o};return{hasError:!1,error:null}}catch(e){return{hasError:!0,error:n(e)}}}let i=v(t,r,n,l);return i instanceof Promise?i.then(t=>x(e,t.errors)):x(e,i.errors)}function E(e,t){return!!t&&("boolean"==typeof t?t:!!Array.isArray(t)&&t.includes(e.replace(/[.][0-9]+/g,".__MANTINE_FORM_INDEX__")))}let w=e=>e instanceof Error?e.message:String(e);e.s(["useForm",0,function({name:e,mode:r="controlled",initialValues:a,initialErrors:u={},initialDirty:d={},initialTouched:f={},clearInputErrorOnChange:m=!0,validateInputOnChange:g=!1,validateInputOnBlur:y=!1,onValuesChange:S,transformValues:x=e=>e,enhanceGetInputProps:j,validate:k,onSubmitPreventDefault:V="always",touchTrigger:$="change",cascadeUpdates:T=!1,validateDebounce:O=0,resolveValidationError:F=w}={}){let I=function(e){let[r,n]=(0,t.useState)(l(e)),a=(0,t.useRef)(r),o=(0,t.useCallback)(e=>{n(t=>{let r=l("function"==typeof e?e(t):e);return a.current=r,r})},[]),i=(0,t.useCallback)(()=>o({}),[]),s=(0,t.useCallback)(e=>{void 0!==a.current[e]&&o(t=>{let r={...t};return delete r[e],r})},[r]);return{errorsState:r,setErrors:o,clearErrors:i,setFieldError:(0,t.useCallback)((e,t)=>{null==t||!1===t?s(e):a.current[e]!==t&&o(r=>({...r,[e]:t}))},[r]),clearFieldError:s}}(u),A=function({initialValues:e,onValuesChange:r,mode:n}){let l=(0,t.useRef)(!1),[a,i]=(0,t.useState)(e||{}),s=(0,t.useRef)(a),u=(0,t.useRef)(a),c=(0,t.useCallback)(({values:e,subscribers:t,updateState:l=!0,mergeWithPreviousValues:a=!0})=>{let o=s.current,u=e instanceof Function?e(s.current):e,c=a?{...o,...u}:u;s.current=c,l&&(i(c),"uncontrolled"===n&&(s.current=c)),r?.(c,o),t?.filter(Boolean).forEach(e=>e({updatedValues:c,previousValues:o}))},[r]),d=(0,t.useCallback)(e=>{let t=o(e.path,s.current),r=e.value instanceof Function?e.value(t):e.value;if(t!==r){let t=s.current,n=p(e.path,r,s.current);c({values:n,updateState:e.updateState}),e.subscribers?.filter(Boolean).forEach(r=>r({path:e.path,updatedValues:n,previousValues:t}))}},[c]),f=(0,t.useCallback)(e=>{u.current=e},[]),h=(0,t.useCallback)((e,t)=>{l.current||(l.current=!0,c({values:e,updateState:"controlled"===n}),f(e),t())},[c]);return{initialized:l,stateValues:a,refValues:s,valuesSnapshot:u,setValues:c,setFieldValue:d,resetValues:(0,t.useCallback)(()=>{c({values:u.current,updateState:!0,mergeWithPreviousValues:!1})},[c]),setValuesSnapshot:f,initialize:h,getValues:(0,t.useCallback)(()=>s.current,[s.current]),getValuesSnapshot:(0,t.useCallback)(()=>u.current,[u.current]),resetField:(0,t.useCallback)((e,t)=>{let r=o(e,u.current);void 0!==r&&d({path:e,value:r,updateState:"controlled"===n,subscribers:t})},[d,n])}}({initialValues:a,onValuesChange:S,mode:r}),D=function({initialDirty:e,initialTouched:r,mode:n,$values:l}){let[a,i]=(0,t.useState)(r),[u,c]=(0,t.useState)(e),d=(0,t.useRef)(r),f=(0,t.useRef)(e),p=(0,t.useCallback)(e=>{let t="function"==typeof e?e(d.current):e;d.current=t,"controlled"===n&&i(t)},[]),m=(0,t.useCallback)((e,t=!1)=>{let r="function"==typeof e?e(f.current):e;f.current=r,("controlled"===n||t)&&c(r)},[]),g=(0,t.useCallback)(()=>p({}),[]),y=(0,t.useCallback)(e=>{let t=e?{...l.refValues.current,...e}:l.refValues.current;l.setValuesSnapshot(t),m({})},[]),v=(0,t.useCallback)((e,t)=>{p(r=>h(r,e)===t?r:{...r,[e]:t})},[]),S=(0,t.useCallback)((e,t,r)=>{m(r=>h(r,e)===t?r:{...r,[e]:t},r)},[]),x=(0,t.useCallback)((e,t)=>{let r=h(f.current,e),n=!(0,b.default)(o(e,l.getValuesSnapshot()),t),a=s(e,f.current);a[e]=n,m(a,r!==n)},[]);return{touchedState:a,dirtyState:u,touchedRef:d,dirtyRef:f,setTouched:p,setDirty:m,resetDirty:y,resetTouched:g,isTouched:(0,t.useCallback)(e=>h(d.current,e),[d.current]),setFieldTouched:v,setFieldDirty:S,setTouchedState:i,setDirtyState:c,clearFieldDirty:(0,t.useCallback)(e=>m(t=>{if("string"!=typeof e)return t;let r=s(e,t);
1return(delete r[e],(0,b.default)(r,t))?t:r}),[]),isDirty:(0,t.useCallback)(e=>{if(e){let t=o(e,f.current);if("boolean"==typeof t)return t;let r=o(e,l.refValues.current),n=o(e,l.valuesSnapshot.current);return!(0,b.default)(r,n)}return Object.keys(f.current).length>0?h(f.current):!(0,b.default)(l.refValues.current,l.valuesSnapshot.current)},[f.current,l.refValues.current,l.valuesSnapshot.current]),getDirty:(0,t.useCallback)(()=>f.current,[f.current]),getTouched:(0,t.useCallback)(()=>d.current,[d.current]),setCalculatedFieldDirty:x}}({initialDirty:d,initialTouched:f,$values:A,mode:r}),_=function({$values:e,$status:r,cascadeUpdates:n}){let l=(0,t.useRef)({});return{subscribers:l,watch:(0,t.useCallback)((e,r)=>{(0,t.useEffect)(()=>(l.current[e]=l.current[e]||[],l.current[e].push(r),()=>{l.current[e]=l.current[e].filter(e=>e!==r)}),[r])},[]),useWatchValue:(0,t.useCallback)(r=>{let n=(0,t.useCallback)(e=>{let t=l.current,n=String(r),a=()=>e();return t[n]=t[n]||[],t[n].push(a),()=>{t[n]=t[n].filter(e=>e!==a)}},[r]),a=(0,t.useCallback)(()=>o(r,e.refValues.current),[r]);return(0,t.useSyncExternalStore)(n,a,a)},[]),getFieldSubscribers:(0,t.useCallback)(e=>{let t=l.current[e]?.map(t=>n=>t({previousValue:o(e,n.previousValues),value:o(e,n.updatedValues),touched:r.isTouched(e),dirty:r.isDirty(e)}))??[];for(let a in l.current){let i=String(e).startsWith(`${a}.`),s=String(a).startsWith(`${e}.`);(i||n&&s)&&t.push(...l.current[a].map(e=>t=>e({previousValue:o(a,t.previousValues),value:o(a,t.updatedValues),touched:r.isTouched(a),dirty:r.isDirty(a)})))}return t},[]),notifyWatchSubscribers:(0,t.useCallback)(t=>{Object.keys(l.current).forEach(n=>{o(n,e.refValues.current)!==o(n,t)&&l.current[n]?.forEach(l=>l({previousValue:o(n,t),value:o(n,e.refValues.current),touched:r.isTouched(n),dirty:r.isDirty(n)}))})},[])}}({$values:A,$status:D,cascadeUpdates:T}),P=function({$values:e,$errors:r,$status:n,$watch:l}){return{reorderListItem:(0,t.useCallback)((t,a)=>{let i=e.refValues.current;n.clearFieldDirty(t),r.setErrors(e=>(function(e,{from:t,to:r},n){let l=`${e}.${t}`,a=`${e}.${r}`,o={...n},i=new Set;return Object.keys(n).forEach(e=>{let t,r;if(!i.has(e)&&(e.startsWith(l)?(t=e,r=e.replace(l,a)):e.startsWith(a)&&(t=e.replace(a,l),r=e),t&&r)){let e=o[t],n=o[r];void 0===n?delete o[t]:o[t]=n,void 0===e?delete o[r]:o[r]=e,i.add(t),i.add(r)}}),o})(t,a,e)),e.setValues({values:function(e,{from:t,to:r},n){let l=o(e,n);if(!Array.isArray(l))return n;let a=[...l],i=l[t];return a.splice(t,1),a.splice(r,0,i),p(e,a,n)}(t,a,e.refValues.current),updateState:!0}),l.notifyWatchSubscribers(i)},[]),removeListItem:(0,t.useCallback)((t,a)=>{var i;let s,u=e.refValues.current;n.clearFieldDirty(t),r.setErrors(e=>c(t,a,e,-1)),e.setValues({values:Array.isArray(s=o(t,i=e.refValues.current))?p(t,s.filter((e,t)=>t!==a),i):i,updateState:!0}),l.notifyWatchSubscribers(u)},[]),insertListItem:(0,t.useCallback)((t,a,i)=>{let s=e.refValues.current;n.clearFieldDirty(t),r.setErrors(e=>c(t,i,e,1)),e.setValues({values:function(e,t,r,n){let l=o(e,n);if(!Array.isArray(l))return n;let a=[...l];return a.splice("number"==typeof r?r:a.length,0,t),p(e,a,n)}(t,a,i,e.refValues.current),updateState:!0}),l.notifyWatchSubscribers(s)},[]),replaceListItem:(0,t.useCallback)((t,r,a)=>{let i=e.refValues.current;n.clearFieldDirty(t),e.setValues({values:function(e,t,r,n){let l=o(e,n);if(!Array.isArray(l)||l.length<=r)return n;let a=[...l];return a[r]=t,p(e,a,n)}(t,a,r,e.refValues.current),updateState:!0}),l.notifyWatchSubscribers(i)},[])}}({$values:A,$errors:I,$status:D,$watch:_}),R=function(){let[e,r]=(0,t.useState)({}),[n,l]=(0,t.useState)(!1),a=(0,t.useRef)({}),o=(0,t.useRef)(!1),i=(0,t.useRef)({}),s=(0,t.useCallback)((e,t)=>{a.current={...a.current,[e]:t},r({...a.current})},[]),u=(0,t.useCallback)(e=>{o.current=e,l(e)},[]),c=(0,t.useCallback)(e=>e?!!a.current[e]:!!o.current||Object.values(a.current).some(Boolean),[a.current,o.current]),d=(0,t.useCallback)(e=>(i.current[e]?.abort(),i.current[e]=new AbortController,i.current[e].signal),[]),f=(0,t.useCallback)(()=>{a.current={},r({}
1),o.current=!1,l(!1),Object.values(i.current).forEach(e=>e.abort()),i.current={}},[]);return{validating:n||Object.values(e).some(Boolean),isValidating:c,setFieldValidating:s,setFormValidating:u,getAbortSignal:d,clearValidating:f}}(),[W,L]=(0,t.useState)(0),[B,z]=(0,t.useState)({}),[N,q]=(0,t.useState)(!1),M=(0,t.useRef)(0),H=(0,t.useRef)({});(0,t.useEffect)(()=>()=>{Object.values(H.current).forEach(clearTimeout)},[]);let U=(0,t.useCallback)(()=>{let e=A.refValues.current;A.resetValues(),I.clearErrors(),D.resetDirty(),D.resetTouched(),R.clearValidating(),"uncontrolled"===r&&L(e=>e+1),_.notifyWatchSubscribers(e)},[]),K=(0,t.useCallback)(e=>{m&&I.clearErrors(),"uncontrolled"===r&&L(e=>e+1),_.notifyWatchSubscribers(e)},[m]),G=(0,t.useCallback)(e=>{let t=A.refValues.current;A.initialize(e,()=>"uncontrolled"===r&&L(e=>e+1)),K(t)},[K]),Q=(0,t.useMemo)(()=>{let e=e=>{let t=R.getAbortSignal(e),r=C(e,k,A.refValues.current,F,t),n=r=>{t.aborted||(r.hasError?I.setFieldError(e,r.error):I.clearFieldError(e))};r instanceof Promise?(R.setFieldValidating(e,!0),r.then(n).finally(()=>{t.aborted||R.setFieldValidating(e,!1)})):n(r)};return t=>{clearTimeout(H.current[t]),O>0?H.current[t]=setTimeout(()=>e(t),O):e(t)}},[O,k,F]),X=(0,t.useCallback)((e,t,n)=>{let l=E(e,g),a=t instanceof Function?t(o(e,A.refValues.current)):t;D.setCalculatedFieldDirty(e,a),"change"===$&&D.setFieldTouched(e,!0),!l&&m&&I.clearFieldError(e),A.setFieldValue({path:e,value:t,updateState:"controlled"===r,subscribers:[..._.getFieldSubscribers(e),l?()=>Q(String(e)):null,n?.forceUpdate!==!1&&"controlled"!==r?()=>z(t=>({...t,[e]:(t[e]||0)+1})):null]})},[S,k,Q]),Z=(0,t.useCallback)(e=>{let t=A.refValues.current;A.setValues({values:e,updateState:"controlled"===r}),K(t)},[S,K]),J=(0,t.useCallback)(()=>{let e=++M.current,t=R.getAbortSignal("__form__"),r=t=>e!==M.current?{hasErrors:!1,errors:{}}:(I.setErrors(t.errors),t),n=v(k,A.refValues.current,F,t);return n instanceof Promise?(R.setFormValidating(!0),n.then(r).finally(()=>{e===M.current&&R.setFormValidating(!1)})):r(n)},[k,F]),Y=(0,t.useCallback)(e=>{let t=R.getAbortSignal(String(e)),r=r=>t.aborted?{hasError:!1,error:null}:(r.hasError?I.setFieldError(e,r.error):I.clearFieldError(e),r),n=C(e,k,A.refValues.current,F,t);return n instanceof Promise?(R.setFieldValidating(String(e),!0),n.then(r).finally(()=>{t.aborted||R.setFieldValidating(String(e),!1)})):r(n)},[k,F]),ee=(0,t.useCallback)(e=>{e.preventDefault(),U()},[]),et=(0,t.useCallback)(e=>{let t=new AbortController().signal;if(e){let r=C(e,k,A.refValues.current,F,t);return r instanceof Promise?r.then(e=>!e.hasError):!r.hasError}let r=v(k,A.refValues.current,F,t);return r instanceof Promise?r.then(e=>!e.hasErrors):!r.hasErrors},[k,F,A.refValues.current]),er=(0,t.useCallback)(e=>{A.resetField(e,[..._.getFieldSubscribers(e),"controlled"!==r?()=>z(t=>({...t,[e]:(t[e]||0)+1})):null])},[A.resetField,r,z]),en={watch:_.watch,useWatchValue:_.useWatchValue,initialized:A.initialized.current,values:"uncontrolled"===r?A.refValues.current:A.stateValues,getValues:A.getValues,getInitialValues:A.getValuesSnapshot,setInitialValues:A.setValuesSnapshot,resetField:er,initialize:G,setValues:Z,setFieldValue:X,submitting:N,setSubmitting:q,validating:R.validating,isValidating:R.isValidating,errors:I.errorsState,setErrors:I.setErrors,setFieldError:I.setFieldError,clearFieldError:I.clearFieldError,clearErrors:I.clearErrors,resetDirty:D.resetDirty,setTouched:D.setTouched,setDirty:D.setDirty,isTouched:D.isTouched,resetTouched:D.resetTouched,isDirty:D.isDirty,getTouched:D.getTouched,getDirty:D.getDirty,reorderListItem:P.reorderListItem,insertListItem:P.insertListItem,removeListItem:P.removeListItem,replaceListItem:P.replaceListItem,reset:U,validate:J,validateField:Y,getInputProps:(t,{type:n="input",withError:l=!0,withFocus:a,...s}={})=>{var u;let c=a??"radio"!==n,d={onChange:(u=e=>X(t,e,{forceUpdate:!1}),e=>{if(e)if("function"==typeof e)u(e);else if("object"==typeof e&&"nativeEvent"in e){let{currentTarget:t}=e;t instanceof HTMLInputElement?"checkbox"===t.type?u(t.checked):u(t.value):(t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&u(t.value)}else u(e);else u(e)}),"data-path":i(e,t)};return l&&(d.error=I.errorsState[t]),"checkbox"===n?d["controlled"===r?"checked":"defaultChecked"]=o(t,A.refValues.current):"radio"===n?(d["controlled"===r?"checked":"defaultChecked"]=o(t,A.refValues.current)===s.value,d.value=s.value):d["controlled"===r?"value":"defaultValue"]=o(t,A.refValues.current),c&&(d.onFocus=()=>D.setFieldTouched(t,!0),d.onBlur=()=>{E(t,y)&&Q(String(t))}),Object.assign(d,j?.({inputProps:d,field:t,options:{type:n,withError:l,withFocus:c,...s},form:en}))},onSubmit:(e,t)=>
1r=>{"always"===V&&r?.preventDefault(),q(!0);let n=n=>{if(n.hasErrors)"validation-failed"===V&&r?.preventDefault(),t?.(n.errors,A.refValues.current,r),q(!1);else{let t=e?.(x(A.refValues.current),r);t instanceof Promise?t.finally(()=>q(!1)):q(!1)}},l=J();l instanceof Promise?l.then(n).catch(()=>{q(!1)}):n(l)},onReset:ee,isValid:et,getTransformedValues:e=>x(e||A.refValues.current),key:e=>`${W}-${String(e)}-${B[String(e)]||0}`,getInputNode:t=>document.querySelector(`[data-path="${i(e,t)}"]`)};return e&&function(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}(e),n(`mantine-form:${e}:set-field-value`,e=>en.setFieldValue(e.detail.path,e.detail.value)),n(`mantine-form:${e}:set-values`,e=>en.setValues(e.detail)),n(`mantine-form:${e}:set-initial-values`,e=>en.setInitialValues(e.detail)),n(`mantine-form:${e}:set-errors`,e=>en.setErrors(e.detail)),n(`mantine-form:${e}:set-field-error`,e=>en.setFieldError(e.detail.path,e.detail.error)),n(`mantine-form:${e}:clear-field-error`,e=>en.clearFieldError(e.detail)),n(`mantine-form:${e}:clear-errors`,en.clearErrors),n(`mantine-form:${e}:reset`,en.reset),n(`mantine-form:${e}:validate`,en.validate),n(`mantine-form:${e}:validate-field`,e=>en.validateField(e.detail)),n(`mantine-form:${e}:reorder-list-item`,e=>en.reorderListItem(e.detail.path,e.detail.payload)),n(`mantine-form:${e}:remove-list-item`,e=>en.removeListItem(e.detail.path,e.detail.index)),n(`mantine-form:${e}:insert-list-item`,e=>en.insertListItem(e.detail.path,e.detail.item,e.detail.index)),n(`mantine-form:${e}:set-dirty`,e=>en.setDirty(e.detail)),n(`mantine-form:${e}:set-touched`,e=>en.setTouched(e.detail)),n(`mantine-form:${e}:reset-dirty`,e=>en.resetDirty(e.detail)),n(`mantine-form:${e}:reset-touched`,en.resetTouched),en}],341638)},571487,e=>{"use strict";var t=e.i(502836),r=e.i(271645);let n=(0,r.cache)(async(e,r)=>{let n=(0,t.createSembleClient)();return await n.semanticSearchUrls({query:e,page:r?.page,limit:r?.limit,threshold:r?.threshold,urlType:r?.urlType,identifier:r?.userId})}),l=(0,r.cache)(async(e,r)=>{let n=(0,t.createSembleClient)();return await n.searchAtProtoAccounts({q:e,limit:r?.limit,cursor:r?.cursor})});e.s(["searchAtProtoAccounts",0,l,"semanticSearchUrls",0,n])},152771,729895,323265,896936,e=>{"use strict";let t={all:()=>["tags"],list:(e,r)=>[...t.all(),"list",e??"",r],items:e=>[...t.all(),"items",e],itemsInfinite:(e,r,n,l)=>[...t.items(e),"infinite",r,n??"",l]};e.s(["tagKeys",0,t],152771);var r=e.i(843476),n=e.i(500932),l=e.i(19824),a=e.i(689736),o=e.i(789549),i=e.i(321879),s=e.i(578565),u=e.i(271645),c=e.i(931316);let d=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],f={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"};function p(e){Object.keys(f).forEach(t=>{e.style.setProperty(t,f[t],"important")})}let h=null;function b({maxRows:e,minRows:t,onChange:n,ref:l,...a}){let o=void 0!==a.value,i=(0,u.useRef)(null),s=(0,c.useMergedRef)(i,l),f=(0,u.useRef)(0),m=(0,u.useRef)(0),g=()=>{let r=i.current;if(!r)return;let n=function(e){let t=window.getComputedStyle(e);if(null===t)return null;let r={};for(let e of d)r[e]=t[e];return""===r.boxSizing?null:{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)}}(r);if(!n)return;let[l]=function(e,t,r=1,n=1/0){h||((h=document.createElement("textarea")).setAttribute("tabindex","-1"),h.setAttribute("aria-hidden","true"),h.setAttribute("aria-label","autosize measurement"),p(h)),null===h.parentNode&&document.body.appendChild(h);let{paddingSize:l,borderSize:a,sizingStyle:o}=e,{boxSizing:i}=o;
1Object.keys(o).forEach(e=>{h.style[e]=o[e]}),p(h),h.value=t;let s="border-box"===i?h.scrollHeight+a:h.scrollHeight-l;h.value=t,s="border-box"===i?h.scrollHeight+a:h.scrollHeight-l,h.value="x";let u=h.scrollHeight-l,c=u*r;"border-box"===i&&(c=c+l+a),s=Math.max(c,s);let d=u*n;return"border-box"===i&&(d=d+l+a),[s=Math.min(d,s),u]}(n,r.value||r.placeholder||"x",t,e);f.current!==l&&(f.current=l,r.style.setProperty("height",`${l}px`,"important"))};return(0,u.useLayoutEffect)(g),(0,u.useEffect)(()=>{let e=()=>g();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,u.useEffect)(()=>{let e=i.current;if(!e||"u"<typeof ResizeObserver)return;m.current=e.offsetWidth;let t=new ResizeObserver(()=>{i.current&&i.current.offsetWidth!==m.current&&(m.current=i.current.offsetWidth,g())});return t.observe(e),()=>t.disconnect()},[]),(0,u.useEffect)(()=>{let e=()=>g();return document.fonts.addEventListener("loadingdone",e),()=>document.fonts.removeEventListener("loadingdone",e)},[]),(0,u.useEffect)(()=>{let e=e=>{if(i.current?.form===e.target&&!o){let e=i.current.value;requestAnimationFrame(()=>{i.current&&e!==i.current.value&&g()})}};return document.body.addEventListener("reset",e),()=>document.body.removeEventListener("reset",e)},[o]),(0,r.jsx)("textarea",{rows:t,...a,onChange:e=>{o||g(),n?.(e)},ref:s})}let m=(0,i.factory)(e=>{let{autosize:t,maxRows:n,minRows:l,__staticSelector:i,resize:u,bottomSection:c,bottomSectionProps:d,...f}=(0,o.useProps)(["Input","InputWrapper","Textarea"],null,e),p=t&&"test"!==(0,a.getEnv)();return(0,r.jsx)(s.InputBase,{component:p?b:"textarea",...f,__staticSelector:i||"Textarea",__bottomSection:c,__bottomSectionProps:d,multiline:!0,"data-no-overflow":t&&void 0===n||void 0,__vars:{"--input-resize":u},...p?{maxRows:n,minRows:l}:{}})});m.classes=s.InputBase.classes,m.displayName="@mantine/core/Textarea",e.s(["Textarea",0,m],729895);var g=e.i(211048),y=e.i(154197);let v=["boxSizing","width","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","fontFamily","fontSize","fontStyle","fontWeight","fontStretch","fontVariant","letterSpacing","wordSpacing","textIndent","textTransform","lineHeight","tabSize","textAlign"],S=null;var x=e.i(133824),C=e.i(266027),E=e.i(502836);let w=(0,u.cache)(async e=>(0,E.createSembleClient)().getTags(e)),j=(0,u.cache)(async e=>(0,E.createSembleClient)().getTaggedItems(e));e.s(["getTaggedItems",0,j,"getTags",0,w],323265);var k=e.i(571487);let V=[],$=[];var T=e.i(734616),O=e.i(226200),F=e.i(442948),I=e.i(747596),A=e.i(277936),D=e.i(294229);function _(e){let t,a,o,i,s,u=(0,n.c)(16);u[0]!==e.token?(t=e.token?.type==="mention"&&0===e.token.query.trim().length,u[0]=e.token,u[1]=t):t=u[1];let c=t;u[2]!==e.actors||u[3]!==e.tags||u[4]!==e.token?.type?(a=e.token?.type==="tag"?e.tags.map(R):e.actors.map(P),u[2]=e.actors,u[3]=e.tags,u[4]=e.token?.type,u[5]=a):a=u[5];let d=a,f=!e.token;return u[6]!==d||u[7]!==e.isSearching||u[8]!==e.token||u[9]!==c?(o=c?(0,r.jsx)(D.Text,{size:"sm",c:"dimmed",py:"xs",px:5,children:"Keep typing to search for people"}):e.isSearching?(0,r.jsx)(O.Group,{justify:"center",p:"xs",children:(0,r.jsx)(F.Loader,{size:"xs"})}):d.length>0?d:(0,r.jsx)(l.Combobox.Empty,{children:e.token?.type!=="tag"?"No matching accounts":e.token.query?"No matching tags":"No tags yet"}),u[6]=d,u[7]=e.isSearching,u[8]=e.token,u[9]=c,u[10]=o):o=u[10],u[11]!==o?(i=(0,r.jsx)(l.Combobox.Options,{children:(0,r.jsx)(I.ScrollArea.Autosize,{type:"scroll",mah:200,children:o})}),u[11]=o,u[12]=i):i=u[12],u[13]!==f||u[14]!==i?(s=(0,r.jsx)(l.Combobox.Dropdown,{hidden:f,children:i}),u[13]=f,u[14]=i,u[15]=s):s=u[15],s}function P(e){return(0,r.jsx)(l.Combobox.Option,{value:`@${e.handle}`,p:5,children:(0,r.jsxs)(O.Group,{gap:"xs",align:"center",wrap:"nowrap",children:[(0,r.jsx)(T.Avatar,{src:e.avatar?.replace("avatar","avatar_thumbnail"),alt:`${e.handle}'s avatar`}),(0,r.jsxs)(A.Stack,{gap:0,children:[(0,r.jsx)(D.Text,{fw:500,c:"bright",lineClamp:1,children:e.displayName||e.handle}),(0,r.jsxs)(D.Text,{fw:500,c:"gray",lineClamp:1,children:["@",e.handle]})]})]})},e.did)}function R(e){return(0,r.jsx)(l.Combobox.Option,{value:`#${e.tag}`,p:5,children:(0,r.jsxs)(D.Text,{fw:500,c:"blue",children:["#",e.tag]})},e.tag)}e.s(["default",0,function(e){let a,o,i,s,c,d,f,p,h,b,E,j,T,O,F,I,A,D,P,R,W=(0,n.c)(55);W[0]!==e?({value:i,onValueChange:a,...o}=e,W[0]=e,W[1]=a,W[2]=o,W[3]=i):(a=W[1],o=W[2],i=W[3]);let L=(0,g.useCombobox)({onDropdownClose:()=>L.resetSelectedOption()}),B=(0,u.useRef)(null),z=(0,u.useRef)(null),N=(0,u.useRef)(null),[q,M]=(0,u.useState)(0);W[4]!==q||W[5]!==i?(s=(0,y.findActiveToken)(i,q),W[4]=q,W[5]=i,W[6]=s):s=W[6];let H=s,U=function(e){var r;let l,a,o,i,s,u,c,d,f,p,h,b=(0,n.c)(17),[m]=(0,x.useDebouncedValue)(e?.query??"",200),g=e?.type==="tag"?m:void 0,y=e?.type==="tag";b[0]!==g||b[1]!==y?(l={q:g,limit:8,enabled:y},b[0]=g,b[1]=y,b[2]=l):l=b[2];let v=(r=l,(p=(0,n.c)(10))[0]!==r?.limit||p[1]!==r?.q?(c=t.list(r?.q,r?.limit),p[0]=r?.limit,p[1]=r?.q,p[2]=c):c=p[2],p[3]!==r?.limit||p[4]!==r?.q?(d=()=>w({q:r?.q,limit:r?.limit}),p[3]=r?.limit,p[4]=r?.q,p[5]=d):d=p[5],h=r?.enabled??!0,p[6]!==c||p[7]!==d||p[8]!==h?(f={queryKey:c,queryFn:d,enabled:h,staleTime:3e4}
1,p[6]=c,p[7]=d,p[8]=h,p[9]=f):f=p[9],(0,C.useQuery)(f));b[3]!==m?(a=["mention-autocomplete",m],o=()=>(0,k.searchAtProtoAccounts)(m,{limit:8}),b[3]=m,b[4]=a,b[5]=o):(a=b[4],o=b[5]),b[6]!==m||b[7]!==e?.type?(i=e?.type==="mention"&&m.trim().length>0,b[6]=m,b[7]=e?.type,b[8]=i):i=b[8],b[9]!==a||b[10]!==o||b[11]!==i?(s={queryKey:a,queryFn:o,enabled:i,staleTime:3e4},b[9]=a,b[10]=o,b[11]=i,b[12]=s):s=b[12];let S=(0,C.useQuery)(s),E=null!=e&&(e.query!==m||("tag"===e.type?v.isFetching:S.isFetching)),j=v.data?.tags??V,T=S.data?.actors??$;return b[13]!==E||b[14]!==j||b[15]!==T?(u={tags:j,actors:T,isSearching:E},b[13]=E,b[14]=j,b[15]=T,b[16]=u):u=b[16],u}(H);W[7]!==H?(c=()=>{let e=B.current,t=z.current,r=N.current;if(!H||!e||!t||!r)return;let n=function(e,t){S||((S=document.createElement("div")).setAttribute("aria-hidden","true"),document.body.appendChild(S));let r=window.getComputedStyle(e),n=S.style;for(let e of(n.position="absolute",n.visibility="hidden",n.whiteSpace="pre-wrap",n.wordWrap="break-word",n.overflow="hidden",v))n[e]=r[e];S.textContent=e.value.slice(0,t);let l=document.createElement("span");l.textContent=e.value.charAt(t)||".",S.appendChild(l);let a=parseFloat(r.lineHeight),o=Number.isNaN(a)?1.2*parseFloat(r.fontSize):a;return{top:l.offsetTop+parseFloat(r.borderTopWidth),left:l.offsetLeft+parseFloat(r.borderLeftWidth),height:o}}(e,H.start),l=e.getBoundingClientRect(),a=t.getBoundingClientRect();r.style.top=`${l.top-a.top+n.top-e.scrollTop}px`,r.style.left=`${l.left-a.left+n.left-e.scrollLeft}px`,r.style.height=`${n.height}px`},W[7]=H,W[8]=c):c=W[8];let K=c;W[9]!==L||W[10]!==K?(d=e=>{e?(K(),L.openDropdown()):L.closeDropdown()},W[9]=L,W[10]=K,W[11]=d):d=W[11];let G=(0,u.useEffectEvent)(d);W[12]!==G||W[13]!==H?(f=()=>{G(H)},W[12]=G,W[13]=H,W[14]=f):f=W[14],W[15]!==H?(p=[H],W[15]=H,W[16]=p):p=W[16],(0,u.useLayoutEffect)(f,p);let{selectFirstOption:Q}=L;W[17]!==Q||W[18]!==U.actors||W[19]!==U.tags.length?(h=()=>{(U.tags.length>0||U.actors.length>0)&&Q()},W[17]=Q,W[18]=U.actors,W[19]=U.tags.length,W[20]=h):h=W[20],W[21]!==Q||W[22]!==U.actors||W[23]!==U.tags?(b=[U.tags,U.actors,Q],W[21]=Q,W[22]=U.actors,W[23]=U.tags,W[24]=b):b=W[24],(0,u.useEffect)(h,b),W[25]!==q||W[26]!==a||W[27]!==H||W[28]!==i?(E=e=>{if(!H)return;let t=`${e} `;a(i.slice(0,H.start)+t+i.slice(q));let r=H.start+t.length;M(r),requestAnimationFrame(()=>{B.current?.setSelectionRange(r,r)})},W[25]=q,W[26]=a,W[27]=H,W[28]=i,W[29]=E):E=W[29];let X=E;return W[30]===Symbol.for("react.memo_cache_sentinel")?(j={position:"relative"},W[30]=j):j=W[30],W[31]!==a?(T=e=>a(e.currentTarget.value),W[31]=a,W[32]=T):T=W[32],W[33]===Symbol.for("react.memo_cache_sentinel")?(O=e=>M(e.currentTarget.selectionStart??0),W[33]=O):O=W[33],W[34]!==L?(F=()=>L.closeDropdown(),W[34]=L,W[35]=F):F=W[35],W[36]!==K||W[37]!==o||W[38]!==T||W[39]!==F||W[40]!==i?(I=(0,r.jsx)(l.Combobox.EventsTarget,{children:(0,r.jsx)(m,{...o,ref:B,value:i,onChange:T,onSelect:O,onScroll:K,onBlur:F})}),W[36]=K,W[37]=o,W[38]=T,W[39]=F,W[40]=i,W[41]=I):I=W[41],W[42]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)(l.Combobox.DropdownTarget,{children:(0,r.jsx)("div",{ref:N,style:{position:"absolute",width:0,pointerEvents:"none"}})}),W[42]=A):A=W[42],W[43]!==I?(D=(0,r.jsxs)("div",{ref:z,style:j,children:[I,A]}),W[43]=I,W[44]=D):D=W[44],W[45]!==U.actors||W[46]!==U.isSearching||W[47]!==U.tags||W[48]!==H?(P=(0,r.jsx)(_,{token:H,tags:U.tags,actors:U.actors,isSearching:U.isSearching}),W[45]=U.actors,W[46]=U.isSearching,W[47]=U.tags,W[48]=H,W[49]=P):P=W[49],W[50]!==L||W[51]!==X||W[52]!==D||W[53]!==P?(R=(0,r.jsxs)(l.Combobox,{shadow:"sm",radiu
1s:"md",store:L,width:280,position:"bottom-start",offset:4,onOptionSubmit:X,children:[D,P]}),W[50]=L,W[51]=X,W[52]=D,W[53]=P,W[54]=R):R=W[54],R}],896936)}]);
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.