@gperezmz/bb-plugin-thread-glance 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -1,51 +1,51 @@
1
- var Kk=Object.defineProperty;var L=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var St=(e,t)=>{for(var n in t)Kk(e,n,{get:t[n],enumerable:!0})};var uu,Im=L(()=>{uu=[["path",{d:"M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});function vg(e){if(_m!==e){_m=e;for(let t of Sm)t()}}function lu(){return _m}function wg(e){return Sm.add(e),()=>{Sm.delete(e)}}function Ui(e){return G_.get(e)}function Lm(e){return kg.add(e),()=>{kg.delete(e)}}function Gi(e){return K_.get(e)}function Pm(e){return yg.add(e),()=>{yg.delete(e)}}var bg,_m,Sm,G_,kg,K_,yg,Mm=L(()=>{"use strict";bg=["AiBrain01","AiBrowser","AiContentGenerator01","AlignLeft","AppWindow","ArchiveRestore","ArrowDown","ArrowLeft","ArrowRight","ArrowReloadHorizontal","ArrowUp","ArrowUpDown","ArrowTurnBackward","ArrowTurnForward","ArrowUpRight","Beaker","BellDot","Browser","Brain","Calendar","CalendarCheckOut02","ChartColumn","ChevronUp","ChevronsDown","ChevronsUp","CircleArrowShrink","Clean","Clock","ClockArrowUp","ClockArrowDown","Cloud","CloudOff","Coffee","Columns2","CornerDownLeft","CornerDownRight","Discord","DiscordLogo","DateTime","Github","GithubLogo","DragDropHorizontal","DragDropVertical","EditFile","ElectricPlugs","Eye","EyeOff","Explore","ExternalLink","FileDiff","File","FileAttachment","FileQuestion","FileText","FolderOpen","FolderEdit","FolderMinus","Fork","GitBranch","GitMerge","GitPullRequest","GitPullRequestArrow","GitPullRequestClosed","GitPullRequestDraft","Globe","GridView","Laptop","Layers","Limitation","ListEnd","ListView","Lock","Mail","MailOpen","Maximize2","Mic","Minus","Minimize2","MoveTo","NewTab","News01","PackageReceive","Palette","PanelBottom","PanelRight","Paperclip","Pause","Pin","PinOff","Play","Plug02","Plus","Puzzle","Repeat","RotateCcw","Rows2","SecurityCheck","Sent","SideChat","Smartphone","Sort","SortingAZ02","SortingZA01","SortingOneNine","SortingNineOne","Square","SquareUnlock02","Star","TextWrap","TimeSchedule","UserRound","ZoomIn","ZoomOut"],_m=null,Sm=new Set;G_=new Map,kg=new Set;K_=new Map,yg=new Set});var xg,Ig=L(()=>{xg=[["path",{d:"M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var _g,Sg=L(()=>{_g=[["path",{d:"M18.4737 15.5215C18.4795 15.4928 18.5205 15.4928 18.5263 15.5215C18.8302 17.0081 19.9919 18.1698 21.4785 18.4737C21.5072 18.4795 21.5072 18.5205 21.4785 18.5263C19.9919 18.8302 18.8302 19.9919 18.5263 21.4785C18.5205 21.5072 18.4795 21.5072 18.4737 21.4785C18.1698 19.9919 17.0081 18.8302 15.5215 18.5263C15.4928 18.5205 15.4928 18.4795 15.5215 18.4737C17.0081 18.1698 18.1698 17.0081 18.4737 15.5215Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 7.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 20.5H10.5C6.72876 20.5 4.84315 20.5 3.67157 19.3284C2.5 18.1569 2.5 16.2712 2.5 12.5V10.5C2.5 6.72876 2.5 4.84315 3.67157 3.67157C4.84315 2.5 6.72876 2.5 10.5 2.5H12.5C16.2712 2.5 18.1569 2.5 19.3284 3.67157C20.5 4.84315 20.5 6.72876 20.5 10.5V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Lg,Pg=L(()=>{Lg=[["path",{d:"M11 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H12C15.7712 2 17.6569 2 18.8284 3.17157C20 4.34315 20 6.22876 20 10V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.4069 14.4036C17.6192 13.8655 18.3808 13.8655 18.5931 14.4036L18.6298 14.4969C19.1482 15.8113 20.1887 16.8518 21.5031 17.3702L21.5964 17.4069C22.1345 17.6192 22.1345 18.3808 21.5964 18.5931L21.5031 18.6298C20.1887 19.1482 19.1482 20.1887 18.6298 21.5031L18.5931 21.5964C18.3808 22.1345 17.6192 22.1345 17.4069 21.5964L17.3702 21.5031C16.8518 20.1887 15.8113 19.1482 14.4969 18.6298L14.4036 18.5931C13.8655 18.3808 13.8655 17.6192 14.4036 17.4069L14.4969 17.3702C15.8113 16.8518 16.8518 15.8113 17.3702 14.4969L17.4069 14.4036Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 7H15M7 11.5H15M7 16H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Mg,Rg=L(()=>{Mg=[["path",{d:"M12 18.502V5.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13.002C18 13.002 13.5811 19.0019 12 19.002C10.4188 19.002 6 13.002 6 13.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Tg,$g=L(()=>{Tg=[["path",{d:"M17.9997 12.5C17.9997 12.5 13.5807 18.5 11.9996 18.5C10.4185 18.5 5.99966 12.5 5.99966 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.9997 5.50005C17.9997 5.50005 13.5807 11.5 11.9996 11.5C10.4185 11.5 5.99966 5.5 5.99966 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Ag,Dg=L(()=>{Ag=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Eg,Ng=L(()=>{Eg=[["path",{d:"M20 3V5.07692C20 7.07786 20 8.07833 19.8547 8.91545C19.0547 13.5235 15.0934 17.1376 10.0426 17.8674C9.12509 18 7.19318 18 5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 21C6.39316 20.4102 4 18.8403 4 18C4 17.1597 6.39316 15.5898 7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Og,zg=L(()=>{Og=[["path",{d:"M4 3V5.07692C4 7.07786 4 8.07833 4.14533 8.91545C4.94529 13.5235 8.90656 17.1376 13.9574 17.8674C14.8749 18 16.8068 18 19 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 21C17.6068 20.4102 20 18.8403 20 18C20 17.1597 17.6068 15.5898 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Zg,jg=L(()=>{Zg=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var Wg,Vg=L(()=>{Wg=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Fg,Hg=L(()=>{Fg=[["path",{d:"M11 6H15.5C17.9853 6 20 8.01472 20 10.5C20 12.9853 17.9853 15 15.5 15H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.99998 12C6.99998 12 4.00001 14.2095 4 15C3.99999 15.7906 7 18 7 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Bg,Ug=L(()=>{Bg=[["path",{d:"M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Gg,Kg=L(()=>{Gg=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var qg,Yg=L(()=>{qg=[["path",{d:"M12 5.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11C18 11 13.5811 5.00001 12 5C10.4188 4.99999 6 11 6 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Jg,Xg=L(()=>{Jg=[["path",{d:"M18 11.5C18 11.5 13.5811 5.50001 12 5.5C10.4188 5.49999 6 11.5 6 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18.5C18 18.5 13.5811 12.5 12 12.5C10.4188 12.5 6 18.5 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Qg,e7=L(()=>{Qg=[["path",{d:"M7 4V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19L17 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var t7,n7=L(()=>{t7=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var r7,o7=L(()=>{r7=[["path",{d:"M19.5 12.0001V13.5001C19.5 17.6422 16.1421 21.0001 12 21.0001C7.85786 21.0001 4.5 17.6422 4.5 13.5001V8C4.5 5.23858 6.73858 3 9.5 3C12.2614 3 14.5 5.23858 14.5 8V13.5C14.5 14.8807 13.3807 16 12 16C10.6193 16 9.5 14.8807 9.5 13.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var i7,s7=L(()=>{i7=[["path",{d:"M19 11V12.7558C19 13.5514 19.3161 14.3145 19.8787 14.8771L20.4819 15.4803C20.8136 15.8121 21 16.262 21 16.7311C21 17.708 20.208 18.5 19.2311 18.5H4.76887C3.79195 18.5 3 17.708 3 16.7311C3 16.262 3.18636 15.8121 3.51809 15.4803L4.12132 14.8771C4.68393 14.3145 5 13.5514 5 12.7558V10C5 6.13401 8.13401 3 12 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 18.5C15.5 20.433 13.933 22 12 22C10.067 22 8.5 20.433 8.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 5C21 3.34315 19.6568 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65684 16.3431 8 18 8C19.6568 8 21 6.65684 21 5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var a7,c7=L(()=>{a7=[["path",{d:"M15.5 7H8.5M12.499 11H8.49902",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 22H6C4.89543 22 4 21.1046 4 20M4 20C4 18.8954 4.89543 18 6 18H20V6C20 4.11438 20 3.17157 19.4142 2.58579C18.8284 2 17.8856 2 16 2H10C7.17157 2 5.75736 2 4.87868 2.87868C4 3.75736 4 5.17157 4 8V20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 18C19.5 18 18.5 18.7628 18.5 20C18.5 21.2372 19.5 22 19.5 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var u7,l7=L(()=>{u7=[["path",{d:"M16.998 7.12652C17.3182 7.04393 17.654 7 18 7C20.2091 7 22 8.79086 22 11C22 13.2091 20.2091 15 18 15C17.6451 15 17.3009 14.9538 16.9733 14.867M16.998 7.12652C16.9993 7.08451 17 7.04233 17 7C17 4.79086 15.2091 3 13 3C11.0824 3 9.47994 4.34939 9.09041 6.15043M16.998 7.12652C16.9769 7.80763 16.7854 8.44584 16.4649 9M16.9733 14.867C16.9909 14.7472 17 14.6247 17 14.5C17 13.2905 16.1411 12.2816 15 12.05M16.9733 14.867C16.7957 16.0737 15.756 17 14.5 17H14C11.7909 17 10 18.7909 10 21M9.09041 6.15043C8.74377 6.05243 8.37801 6 8 6C5.79086 6 4 7.79086 4 10C4 10.3886 4.05542 10.7643 4.15878 11.1195M9.09041 6.15043C10.1015 6.43625 10.9498 7.10965 11.4649 8M4.15878 11.1195C2.9114 11.4832 2 12.6352 2 14C2 15.6569 3.34315 17 5 17C6.30622 17 7.41746 16.1652 7.82929 15M4.15878 11.1195C4.24921 11.4303 4.37632 11.7255 4.53513 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.8361 11.7435C11.3257 12.2353 10.453 12.3202 9.70713 11.9008C8.9612 11.4814 8.58031 10.6917 8.73535 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var Rm,d7=L(()=>{Rm=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var p7,f7=L(()=>{p7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.1258 14H12.0008M12.1258 18H12.0008M7.625 14H7.5M7.625 18H7.5M16.625 14H16.5M12.2508 14C12.2508 14.1381 12.1389 14.25 12.0008 14.25C11.8628 14.25 11.7508 14.1381 11.7508 14C11.7508 13.8619 11.8628 13.75 12.0008 13.75C12.1389 13.75 12.2508 13.8619 12.2508 14ZM12.2508 18C12.2508 18.1381 12.1389 18.25 12.0008 18.25C11.8628 18.25 11.7508 18.1381 11.7508 18C11.7508 17.8619 11.8628 17.75 12.0008 17.75C12.1389 17.75 12.2508 17.8619 12.2508 18ZM7.75 14C7.75 14.1381 7.63807 14.25 7.5 14.25C7.36193 14.25 7.25 14.1381 7.25 14C7.25 13.8619 7.36193 13.75 7.5 13.75C7.63807 13.75 7.75 13.8619 7.75 14ZM7.75 18C7.75 18.1381 7.63807 18.25 7.5 18.25C7.36193 18.25 7.25 18.1381 7.25 18C7.25 17.8619 7.36193 17.75 7.5 17.75C7.63807 17.75 7.75 17.8619 7.75 18ZM16.75 14C16.75 14.1381 16.6381 14.25 16.5 14.25C16.3619 14.25 16.25 14.1381 16.25 14C16.25 13.8619 16.3619 13.75 16.5 13.75C16.6381 13.75 16.75 13.8619 16.75 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var m7,h7=L(()=>{m7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.5 18.5C14.0057 18.0085 16 16.7002 16 16C16 15.2998 14.0057 13.9915 13.5 13.5M15.5 16L9 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var g7,C7=L(()=>{g7=[["path",{d:"M8 9V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 13V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var k7,y7=L(()=>{k7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.115 11.1151C11.6324 10.5977 11.5463 8.4 11.5463 8.4M11.115 11.1151C10.5977 11.6324 8.4 11.5462 8.4 11.5462M11.115 11.1151L7.5 7.5M12.8882 12.8882C13.4055 12.3708 15.6032 12.4569 15.6032 12.4569M12.8882 12.8882C12.3709 13.4055 12.457 15.6032 12.457 15.6032M12.8882 12.8882L16.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var b7,v7=L(()=>{b7=[["path",{d:"M21 3L13 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.44573 11.0854C6.96539 12.0368 4.98269 11.8736 3 11.0885C3.50059 17.531 6.50414 20.0089 10.5089 21C10.5089 21 13.5261 18.8664 13.961 13.8074C14.0081 13.2595 14.0317 12.9856 13.9178 12.6769C13.8038 12.3682 13.5802 12.1468 13.1329 11.704C12.3973 10.9757 12.0295 10.6116 11.5929 10.5204C11.1564 10.4293 10.5862 10.648 9.44573 11.0854Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.5 16.4464C4.5 16.4464 7 16.9286 9.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 7.25C8.5 7.94036 7.94036 8.5 7.25 8.5C6.55964 8.5 6 7.94036 6 7.25C6 6.55964 6.55964 6 7.25 6C7.94036 6 8.5 6.55964 8.5 7.25Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.125 4H11M11.25 4C11.25 4.13807 11.1381 4.25 11 4.25C10.8619 4.25 10.75 4.13807 10.75 4C10.75 3.86193 10.8619 3.75 11 3.75C11.1381 3.75 11.25 3.86193 11.25 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var w7,x7=L(()=>{w7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var I7,_7=L(()=>{I7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 19C22 19 19.7905 22 19 22C18.2094 22 16 19 16 19M19 21V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var S7,L7=L(()=>{S7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 18C22 18 19.7905 15 19 15C18.2094 15 16 18 16 18M19 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var P7,M7=L(()=>{P7=[["path",{d:"M17.4776 10.0001C17.485 10 17.4925 10 17.5 10C19.9853 10 22 12.0147 22 14.5C22 16.9853 19.9853 19 17.5 19H7C4.23858 19 2 16.7614 2 14C2 11.4003 3.98398 9.26407 6.52042 9.0227M17.4776 10.0001C17.4924 9.83536 17.5 9.66856 17.5 9.5C17.5 6.46243 15.0376 4 12 4C9.12324 4 6.76233 6.20862 6.52042 9.0227M17.4776 10.0001C17.3753 11.1345 16.9286 12.1696 16.2428 13M6.52042 9.0227C6.67826 9.00768 6.83823 9 7 9C8.12582 9 9.16474 9.37209 10.0005 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var R7,T7=L(()=>{R7=[["path",{d:"M17.4776 10.5001C17.485 10.5 17.4925 10.5 17.5 10.5C19.9853 10.5 22 12.5147 22 15C22 15.8582 21.7597 16.6604 21.3428 17.3428M17.4776 10.5001C17.4924 10.3354 17.5 10.1686 17.5 10C17.5 6.96243 15.0376 4.5 12 4.5C10.9945 4.5 10.052 4.76982 9.24101 5.24101M17.4776 10.5001C17.4039 11.3178 17.1512 12.0839 16.759 12.759M6.52042 9.5227C3.98398 9.76407 2 11.9003 2 14.5C2 17.2614 4.23858 19.5 7 19.5H17.5C18.0928 19.5 18.6588 19.3854 19.1771 19.1771M6.52042 9.5227C6.67826 9.50768 6.83823 9.5 7 9.5C8.12582 9.5 9.16474 9.87209 10.0005 10.5M6.52042 9.5227C6.59145 8.69641 6.84518 7.92232 7.24101 7.24101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var $7,A7=L(()=>{$7=[["path",{d:"M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var D7,E7=L(()=>{D7=[["path",{d:"M13 4L13 7.00002C13 8.88563 13.0001 9.82843 13.5858 10.4142C14.1716 11 15.1144 11 17 11L20 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 20L11 17C11 15.1144 11 14.1715 10.4142 13.5858C9.82843 13 8.88563 13 7.00002 13L4.00006 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var N7,O7=L(()=>{N7=[["path",{d:"M6.3 2.75143C5.26076 2.94471 4.49591 3.28657 3.89124 3.89124C3.28657 4.49591 2.94471 5.26076 2.75143 6.3M17.7 2.75143C18.7392 2.94471 19.5041 3.28657 20.1088 3.89124C20.7134 4.49591 21.0553 5.26076 21.2486 6.3M13.9 2.50495C13.3156 2.5 12.6839 2.5 12 2.5C11.3161 2.5 10.6844 2.5 10.1 2.50495M21.495 10.1C21.5 10.6844 21.5 11.3161 21.5 12C21.5 12.6839 21.5 13.3156 21.495 13.9001M2.50495 10.1C2.5 10.6844 2.5 11.3161 2.5 12C2.5 12.6839 2.5 13.3156 2.50496 13.9001M2.75143 17.7C2.94471 18.7392 3.28657 19.5041 3.89124 20.1088C4.49591 20.7134 5.26076 21.0553 6.3 21.2486M21.2486 17.7C21.0553 18.7392 20.7134 19.5041 20.1088 20.1088C19.5041 20.7134 18.7392 21.0553 17.7 21.2486M13.9 21.495C13.3156 21.5 12.6839 21.5 12 21.5C11.3162 21.5 10.6845 21.5 10.1002 21.495",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var z7,Z7=L(()=>{z7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var j7,W7=L(()=>{j7=[["path",{d:"M15.5 17.5C16.5 19 17.3333 19.6667 18 20C19.3333 19.6667 22 18.2 22 15C22 11.8 20.6667 7.33333 20 5.5C18 4.3 15.8333 4 15 4L14.198 5.60393C13.4135 5.28708 12.4058 5.25438 12 5.27763C11.5942 5.25438 10.5865 5.28708 9.80197 5.60393L9 4C8.16667 4 6 4.3 4 5.5C3.33333 7.33333 2 11.8 2 15C2 18.2 4.66667 19.6667 6 20C6.66667 19.6667 7.5 19 8.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.3652 11.5C17.3652 12.6046 16.5817 13.5 15.6152 13.5C14.6487 13.5 13.8652 12.6046 13.8652 11.5C13.8652 10.3954 14.6487 9.5 15.6152 9.5C16.5817 9.5 17.3652 10.3954 17.3652 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 11.5C10 12.6046 9.2165 13.5 8.25 13.5C7.2835 13.5 6.5 12.6046 6.5 11.5C6.5 10.3954 7.2835 9.5 8.25 9.5C9.2165 9.5 10 10.3954 10 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M17.5 16.5C16.4022 17.3967 14.3502 18 12 18C9.64981 18 7.59785 17.3967 6.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var V7,F7=L(()=>{V7=[["path",{d:"M6 8C6.55228 8 7 8.44772 7 9C7 9.55228 6.55228 10 6 10C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16C5.44772 16 5 15.5523 5 15C5 14.4477 5.44772 14 6 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C18.5523 8 19 8.44772 19 9C19 9.55228 18.5523 10 18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18 14C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16C17.4477 16 17 15.5523 17 15C17 14.4477 17.4477 14 18 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 14C12.5523 14 13 14.4477 13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var H7,B7=L(()=>{H7=[["path",{d:"M16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var U7,G7=L(()=>{U7=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var K7,q7=L(()=>{K7=[["path",{d:"M9 2L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 2L15 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 18L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.6939 8.5L10.6029 10.6749C10.3788 10.9079 10.5394 11.2433 10.9048 11.3053L13.0952 11.6773C13.4848 11.7434 13.6334 12.1147 13.361 12.3413L10.7666 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.3066 5L9.69342 5C7.5551 5 6.48594 5 5.89527 5.69774C5.3046 6.39548 5.46717 7.46639 5.79232 9.60823L6.31604 13.0581C6.83606 16.4836 8.28588 18 12 18C15.7141 18 17.1639 16.4836 17.684 13.0581L18.2077 9.60823C18.5328 7.46639 18.6954 6.39548 18.1047 5.69774C17.5141 5 16.4449 5 14.3066 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var Y7,J7=L(()=>{Y7=[["path",{d:"M19 12L19 8.99996C19 7.11435 18.9999 6.17155 18.4142 5.58577C17.8284 4.99999 16.8856 4.99999 15 5L12 5.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 12L5.00003 15C5.00004 16.8856 5.00005 17.8284 5.58584 18.4142C6.17163 19 7.11443 19 9.00004 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var X7,Q7=L(()=>{X7=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var e3,t3=L(()=>{e3=[["path",{d:"M4 12.0004L4 14.5446C4 17.7896 4 19.4121 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0004 8.21082 22.0004 11.4558 22.0004C12.1614 22.0004 12.5141 22.0004 12.8372 21.8864C12.9044 21.8627 12.9702 21.8354 13.0345 21.8047C13.3436 21.6569 13.593 21.4074 14.0919 20.9085L18.8284 16.172C19.4065 15.5939 19.6955 15.3049 19.8478 14.9374C20 14.5698 20 14.1611 20 13.3436V10.0004C20 6.22919 20 4.34358 18.8284 3.172C17.7693 2.11284 16.1265 2.01122 13.0345 2.00146M13 21.5004V21.0004C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0004 16.1716 15.0004 19 15.0004H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 8.23028V5.46105C4 3.54929 5.567 1.99951 7.5 1.99951C9.433 1.99951 11 3.54929 11 5.46105V9.26874C11 10.2246 10.2165 10.9995 9.25 10.9995C8.2835 10.9995 7.5 10.2246 7.5 9.26874V5.46105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var n3,r3=L(()=>{n3=[["path",{d:"M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var o3,i3=L(()=>{o3=[["path",{d:"M3.5 14.5C3.5 13.1193 4.6193 12 6 12C7.3807 12 8.5 13.1193 8.5 14.5C8.5 15.3569 8.06886 16.1131 7.41166 16.5636C6.72833 17.0319 6 17.6716 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.125 21.75H6M6.25 21.75C6.25 21.8881 6.13807 22 6 22C5.86193 22 5.75 21.8881 5.75 21.75C5.75 21.6119 5.86193 21.5 6 21.5C6.13807 21.5 6.25 21.6119 6.25 21.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.5 2.5V3C13.5 5.82843 13.5 7.24264 14.3787 8.12132C15.2574 9 16.6716 9 19.5 9H20M4.50394 7.98123C4.52397 5.69117 4.64575 4.40752 5.38607 3.48933C5.56507 3.26731 5.76731 3.06508 5.98932 2.88607C7.0883 2 8.71081 2 11.9558 2C12.6614 2 13.0141 2 13.3372 2.11401C13.4044 2.13772 13.4702 2.165 13.5345 2.19575C13.8435 2.34355 14.093 2.593 14.5919 3.09188L19.3284 7.82843C19.9065 8.40649 20.1955 8.69552 20.3478 9.06306C20.5 9.4306 20.5 9.83935 20.5 10.6569V14C20.5 17.7712 20.5 19.6569 19.3284 20.8284C18.1568 22 16.2712 22 12.5 22C11.7645 22 11.1007 22 10.5 21.9913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var s3,a3=L(()=>{s3=[["path",{d:"M8.00164 7.00013H16.754C18.8613 7.00013 19.9149 7.00013 20.6718 7.50574C20.9995 7.72462 21.2808 8.00588 21.4997 8.33346C21.8937 8.92301 21.9808 9.69265 22 11.0003M12.0027 7.00013L11.3691 5.73321C10.8442 4.68363 10.3645 3.62714 9.20122 3.19101C8.69172 3 8.10969 3 6.94562 3C5.12865 3 4.22017 3 3.53848 3.38033C3.05255 3.65144 2.6516 4.0523 2.38042 4.53811C2 5.21963 2 6.1279 2 7.94443V11.0003C2 15.7145 2 18.0716 3.46487 19.5361C4.82227 20.8931 6.94628 20.9927 11.0025 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 19.8268V21H15.1734C15.5827 21 15.7874 21 15.9715 20.9238C16.1555 20.8475 16.3003 20.7028 16.5897 20.4134L21.4133 15.5894C21.6864 15.3164 21.8229 15.1799 21.8959 15.0327C22.0347 14.7525 22.0347 14.4236 21.8959 14.1434C21.8229 13.9961 21.6864 13.8596 21.4133 13.5866C21.1403 13.3136 21.0038 13.1771 20.8565 13.1041C20.5763 12.9653 20.2473 12.9653 19.9671 13.1041C19.8198 13.1771 19.6833 13.3136 19.4103 13.5866L19.4103 13.5866L14.5867 18.4106C14.2972 18.7 14.1525 18.8447 14.0762 19.0287C14 19.2128 14 19.4174 14 19.8268Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var c3,u3=L(()=>{c3=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 15L16 21M22 21L16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var l3,d3=L(()=>{l3=[["path",{d:"M7 19H13C15.8284 19 17.2426 19 18.1213 18.1213C19 17.2426 19 15.8284 19 13V10M19 10C19.7002 10 21.0085 11.9943 21.5 12.5M19 10C18.2998 10 16.9915 11.9943 16.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 7L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"5",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"19",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"5",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var p3,f3=L(()=>{p3=[["path",{d:"M6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20C13.1046 20 14 19.1046 14 18C14 16.8954 13.1046 16 12 16C10.8954 16 10 16.8954 10 18C10 19.1046 10.8954 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.01734 8.74067C6.01734 10.4142 5.77537 12.1995 9.22051 11.9855H12.0053M17.9929 8.57617C18.1259 11.9855 16.9199 11.7648 15.7861 11.9855H12.0053M12.0053 15.7001V11.9855",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var m3,h3=L(()=>{m3=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var du,Tm=L(()=>{du=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var g3,C3=L(()=>{g3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var k3,y3=L(()=>{k3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.125 11H18M18.25 11C18.25 11.1381 18.1381 11.25 18 11.25C17.8619 11.25 17.75 11.1381 17.75 11C17.75 10.8619 17.8619 10.75 18 10.75C18.1381 10.75 18.25 10.8619 18.25 11Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.125 6H18M18.25 6C18.25 6.13807 18.1381 6.25 18 6.25C17.8619 6.25 17.75 6.13807 17.75 6C17.75 5.86193 17.8619 5.75 18 5.75C18.1381 5.75 18.25 5.86193 18.25 6Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]]});var b3,v3=L(()=>{b3=[["path",{d:"M10 20.5675C6.57143 21.7248 3.71429 20.5675 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 22V18.7579C10 18.1596 10.1839 17.6396 10.4804 17.1699C10.6838 16.8476 10.5445 16.3904 10.1771 16.2894C7.13394 15.4528 5 14.1077 5 9.64606C5 8.48611 5.38005 7.39556 6.04811 6.4464C6.21437 6.21018 6.29749 6.09208 6.31748 5.9851C6.33746 5.87813 6.30272 5.73852 6.23322 5.45932C5.95038 4.32292 5.96871 3.11619 6.39322 2.02823C6.39322 2.02823 7.27042 1.74242 9.26698 2.98969C9.72282 3.27447 9.95075 3.41686 10.1515 3.44871C10.3522 3.48056 10.6206 3.41384 11.1573 3.28041C11.8913 3.09795 12.6476 3 13.5 3C14.3524 3 15.1087 3.09795 15.8427 3.28041C16.3794 3.41384 16.6478 3.48056 16.8485 3.44871C17.0493 3.41686 17.2772 3.27447 17.733 2.98969C19.7296 1.74242 20.6068 2.02823 20.6068 2.02823C21.0313 3.11619 21.0496 4.32292 20.7668 5.45932C20.6973 5.73852 20.6625 5.87813 20.6825 5.9851C20.7025 6.09207 20.7856 6.21019 20.9519 6.4464C21.6199 7.39556 22 8.48611 22 9.64606C22 14.1077 19.8661 15.4528 16.8229 16.2894C16.4555 16.3904 16.3162 16.8476 16.5196 17.1699C16.8161 17.6396 17 18.1596 17 18.7579V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var w3,x3=L(()=>{w3=[["path",{d:"M3.88884 9.66294C4.39329 10 5.09552 10 6.49998 10C7.90445 10 8.60668 10 9.11113 9.66294C9.32951 9.51702 9.51701 9.32952 9.66292 9.11114C9.99998 8.60669 9.99998 7.90446 9.99998 6.5C9.99998 5.09554 9.99998 4.39331 9.66292 3.88886C9.51701 3.67048 9.32951 3.48298 9.11113 3.33706C8.60668 3 7.90445 3 6.49998 3C5.09552 3 4.39329 3 3.88884 3.33706C3.67046 3.48298 3.48296 3.67048 3.33705 3.88886C2.99998 4.39331 2.99998 5.09554 2.99998 6.5C2.99998 7.90446 2.99998 8.60669 3.33705 9.11114C3.48296 9.32952 3.67046 9.51702 3.88884 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.8888 9.66294C15.3933 10 16.0955 10 17.5 10C18.9044 10 19.6067 10 20.1111 9.66294C20.3295 9.51702 20.517 9.32952 20.6629 9.11114C21 8.60669 21 7.90446 21 6.5C21 5.09554 21 4.39331 20.6629 3.88886C20.517 3.67048 20.3295 3.48298 20.1111 3.33706C19.6067 3 18.9044 3 17.5 3C16.0955 3 15.3933 3 14.8888 3.33706C14.6705 3.48298 14.483 3.67048 14.337 3.88886C14 4.39331 14 5.09554 14 6.5C14 7.90446 14 8.60669 14.337 9.11114C14.483 9.32952 14.6705 9.51702 14.8888 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.88884 20.6629C4.39329 21 5.09552 21 6.49998 21C7.90445 21 8.60668 21 9.11113 20.6629C9.32951 20.517 9.51701 20.3295 9.66292 20.1111C9.99998 19.6067 9.99998 18.9045 9.99998 17.5C9.99998 16.0955 9.99998 15.3933 9.66292 14.8889C9.51701 14.6705 9.32951 14.483 9.11113 14.3371C8.60668 14 7.90445 14 6.49998 14C5.09552 14 4.39329 14 3.88884 14.3371C3.67046 14.483 3.48296 14.6705 3.33705 14.8889C2.99998 15.3933 2.99998 16.0955 2.99998 17.5C2.99998 18.9045 2.99998 19.6067 3.33705 20.1111C3.48296 20.3295 3.67046 20.517 3.88884 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.8888 20.6629C15.3933 21 16.0955 21 17.5 21C18.9044 21 19.6067 21 20.1111 20.6629C20.3295 20.517 20.517 20.3295 20.6629 20.1111C21 19.6067 21 18.9045 21 17.5C21 16.0955 21 15.3933 20.6629 14.8889C20.517 14.6705 20.3295 14.483 20.1111 14.3371C19.6067 14 18.9044 14 17.5 14C16.0955 14 15.3933 14 14.8888 14.3371C14.6705 14.483 14.483 14.6705 14.337 14.8889C14 15.3933 14 16.0955 14 17.5C14 18.9045 14 19.6067 14.337 20.1111C14.483 20.3295 14.6705 20.517 14.8888 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var I3,_3=L(()=>{I3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["ellipse",{cx:"12",cy:"12",rx:"4",ry:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var S3,L3=L(()=>{S3=[["path",{d:"M20.4999 16.5V8.5C20.4999 6.14298 20.4999 4.96447 19.7676 4.23223C19.0354 3.5 17.8569 3.5 15.4999 3.5H8.49988C6.14286 3.5 4.96434 3.5 4.23211 4.23223C3.49988 4.96447 3.49988 6.14298 3.49988 8.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.9841 20.5H2.01567C1.63273 20.5 1.38367 20.1088 1.55493 19.7764L3.49988 16.5H20.4999L22.4448 19.7764C22.6161 20.1088 22.367 20.5 21.9841 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var P3,M3=L(()=>{P3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var R3,T3=L(()=>{R3=[["path",{d:"M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 2.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var $3,A3=L(()=>{$3=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.5 12L2.50078 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var D3,E3=L(()=>{D3=[["path",{d:"M8 20C7.48595 20.6974 7.2774 20.9401 6.85472 20.9929C6.43205 21.0457 6.13982 20.8037 5.55537 20.3197C3.38109 18.5193 2 15.8253 2 12.8147C2 7.39421 6.47715 3 12 3C17.5228 3 22 7.39421 22 12.8147C22 15.8253 20.6189 18.5193 18.4446 20.3197C17.8602 20.8037 17.568 21.0457 17.1453 20.9929C16.7226 20.9401 16.514 20.6974 16 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 10.5L18 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"12",cy:"12",r:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var N3,O3=L(()=>{N3=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var z3,Z3=L(()=>{z3=[["path",{d:"M2.99609 18H8.99609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 15C15.9961 15 12.9961 17.2095 12.9961 18C12.9961 18.7906 15.9961 21 15.9961 21M13.9961 18L14.9961 18C17.8245 18 19.2387 18 20.1174 17.1213C20.9961 16.2427 20.9961 14.8284 20.9961 12V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.99609 11H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.99609 4H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var j3,W3=L(()=>{j3=[["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H20.6C21.7583 10 22 10.2417 22 11.4V12.6C22 13.7583 21.7583 14 20.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H20.6C21.7583 18 22 18.2417 22 19.4V20.6C22 21.7583 21.7583 22 20.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var V3,F3=L(()=>{V3=[["path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var H3,B3=L(()=>{H3=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var U3,G3=L(()=>{U3=[["path",{d:"M2 19L8.91302 14.2905C11.4387 12.5698 12.5613 12.5698 15.087 14.2905L22 19",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01592 14.551C2.08186 17.5843 2.11484 19.1009 3.24611 20.2241C4.37738 21.3473 5.95183 21.3862 9.10072 21.4641C11.0393 21.512 12.9607 21.512 14.8993 21.4641C18.0482 21.3862 19.6226 21.3473 20.7539 20.2241C21.8852 19.1009 21.9181 17.5843 21.9841 14.551C22.0164 13.0649 21.9995 11.5934 21.9334 10.0921C21.8924 9.15964 21.8719 8.69341 21.6354 8.27984C21.3989 7.86628 20.9913 7.59935 20.176 7.0655L16.4152 4.60286C14.2742 3.20096 13.2038 2.5 12 2.5C10.7962 2.5 9.72577 3.20095 7.58483 4.60286L3.82397 7.0655C3.00869 7.59935 2.60106 7.86628 2.36459 8.27984C2.12812 8.69341 2.1076 9.15965 2.06656 10.0921C2.00049 11.5934 1.98361 13.0649 2.01592 14.551Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 9.5L17.7346 12.6072C16.7004 13.3606 15.8504 14 14.5 14M2 9.5L6.26538 12.6072C7.29955 13.3606 8.14961 14 9.5 14",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var K3,q3=L(()=>{K3=[["path",{d:"M4 5L16 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Y3,J3=L(()=>{Y3=[["path",{d:"M13 3.02144C12.6777 3.00721 12.3445 2.99998 12 2.99998C4.13281 2.99998 2 7.02942 2 12C2 14.0712 2.37034 15.979 3.37161 17.5C4.63281 19.5 3.99253 21.3333 3 22C4.61547 22 5.70211 21.4858 6.39239 20.9766C6.88252 20.615 7.50688 20.4364 8.0984 20.5814C9.20689 20.8533 10.4991 21 12 21C19.1328 21 22 16.9705 22 12C22 11.3126 21.9643 10.6432 21.8812 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1248 12H11.9998M16.125 12H16M8.125 12H8M12.2498 12C12.2498 12.1381 12.1379 12.25 11.9998 12.25C11.8618 12.25 11.7498 12.1381 11.7498 12C11.7498 11.8619 11.8618 11.75 11.9998 11.75C12.1379 11.75 12.2498 11.8619 12.2498 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 4.99998H22M19 1.99998L19 7.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var X3,Q3=L(()=>{X3=[["path",{d:"M12 18V22M12 18H11.5208C8.11765 18 5.28262 15.3914 5 12M12 18H12.4792C15.8824 18 18.7174 15.3914 19 12M12 22H15M12 22H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V11C16 13.2091 14.2091 15 12 15C9.79086 15 8 13.2091 8 11V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var e6,t6=L(()=>{e6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var n6,r6=L(()=>{n6=[["path",{d:"M8 17.625L20 17.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 14.625L20 17.625L17 20.625",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 3.625L20 3.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 10.625L20 10.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 3.625H4.25M4.5 3.625C4.5 3.76307 4.38807 3.875 4.25 3.875C4.11193 3.875 4 3.76307 4 3.625C4 3.48693 4.11193 3.375 4.25 3.375C4.38807 3.375 4.5 3.48693 4.5 3.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 10.625H4.25M4.5 10.625C4.5 10.7631 4.38807 10.875 4.25 10.875C4.11193 10.875 4 10.7631 4 10.625C4 10.4869 4.11193 10.375 4.25 10.375C4.38807 10.375 4.5 10.4869 4.5 10.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M4.375 17.625H4.25M4.5 17.625C4.5 17.7631 4.38807 17.875 4.25 17.875C4.11193 17.875 4 17.7631 4 17.625C4 17.4869 4.11193 17.375 4.25 17.375C4.38807 17.375 4.5 17.4869 4.5 17.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]]});var o6,i6=L(()=>{o6=[["path",{d:"M10.5 8H18.5M10.5 12H13M18.5 12H16M10.5 16H13M18.5 16H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5H6C4.11438 7.5 3.17157 7.5 2.58579 8.08579C2 8.67157 2 9.61438 2 11.5V18C2 19.3807 3.11929 20.5 4.5 20.5C5.88071 20.5 7 19.3807 7 18V7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.5H11C10.07 3.5 9.60504 3.5 9.22354 3.60222C8.18827 3.87962 7.37962 4.68827 7.10222 5.72354C7 6.10504 7 6.57003 7 7.5V18C7 19.3807 5.88071 20.5 4.5 20.5H16C18.8284 20.5 20.2426 20.5 21.1213 19.6213C22 18.7426 22 17.3284 22 14.5V9.5C22 6.67157 22 5.25736 21.1213 4.37868C20.2426 3.5 18.8284 3.5 16 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var s6,a6=L(()=>{s6=[["path",{d:"M12 22C11.1818 22 10.4002 21.6754 8.83693 21.0262C4.94564 19.4101 3 18.6021 3 17.2429V7.74463M12 22C12.8182 22 13.5998 21.6754 15.1631 21.0262C19.0544 19.4101 21 18.6021 21 17.2429V7.74463M12 22V12.1687M3 7.74463C3 8.3485 3.80157 8.72983 5.40472 9.49248L8.32592 10.8822C10.1288 11.7399 11.0303 12.1687 12 12.1687M3 7.74463C3 7.14076 3.80157 6.75944 5.40472 5.99678L7.5 5M21 7.74463C21 8.3485 20.1984 8.72983 18.5953 9.49248L15.6741 10.8822C13.8712 11.7399 12.9697 12.1687 12 12.1687M21 7.74463C21 7.14076 20.1984 6.75944 18.5953 5.99678L16.5 5M6 13.1518L8 14.135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.0037 2L12.0037 8.99995M12.0037 8.99995C12.2668 9.00351 12.5263 8.81972 12.7178 8.59534L14 7.06174M12.0037 8.99995C11.7499 8.99652 11.4929 8.81368 11.2897 8.59534L10 7.06174",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var c6,u6=L(()=>{c6=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var l6,d6=L(()=>{l6=[["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var p6,f6=L(()=>{p6=[["path",{d:"M7.5 8C6.95863 8.1281 6.49932 8.14239 5.99268 8.45891C5.07234 9.03388 4.85108 9.71674 5.08821 10.7612C5.94028 14.5139 9.48599 18.0596 13.2388 18.9117C14.2834 19.1489 14.9661 18.928 15.5416 18.0077C15.8411 17.5288 15.8716 17.0081 16 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7.79915C12.1776 7.77794 12.3182 7.74034 12.4295 7.68235C13.3997 7.17686 13.9291 5.53361 14.4498 4.60009C14.9311 3.73715 15.1718 3.30567 15.7379 3.10227C16.3041 2.89888 16.6448 3.02205 17.3262 3.26839C18.9197 3.8445 20.1555 5.08032 20.7316 6.6738C20.9779 7.35521 21.1011 7.69591 20.8977 8.26204C20.6943 8.82817 20.2628 9.06884 19.3999 9.55018C18.4608 10.074 16.7954 10.6108 16.2905 11.5898C16.2345 11.6983 16.1978 11.8327 16.1769 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var m6,h6=L(()=>{m6=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var g6,C6=L(()=>{g6=[["path",{d:"M14 8V11M10 11V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00297 12.0267C7.95812 11.4726 8.42638 11 9.02009 11H14.9799C15.5736 11 16.0419 11.4726 15.997 12.0267L15.8745 13.5403C15.7864 14.6285 15.4008 15.6771 14.7546 16.5856L14.3541 17.1487C13.9759 17.6805 13.3385 18 12.6558 18H11.3442C10.6615 18 10.0241 17.6805 9.64588 17.1487L9.24535 16.5856C8.59923 15.6771 8.2136 14.6285 8.12551 13.5403L8.00297 12.0267Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 21.2109C19.5318 19.6644 22 16.1323 22 12.0224C22 6.4872 17.5228 2 12 2C6.47715 2 2 6.4872 2 12.0224C2 17.2199 5.94741 21.4933 11.0014 21.9955C11.551 22.0501 12 21.5962 12 21.0426V18.0359",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var k6,y6=L(()=>{k6=[["path",{d:"M12 7.5V13.8636M15.5 10.6818H8.5M15.5 16.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var b6,v6=L(()=>{b6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var w6,x6=L(()=>{w6=[["path",{d:"M12.828 6.00096C12.9388 5.68791 12.999 5.35099 12.999 5C12.999 3.34315 11.6559 2 9.99904 2C8.34219 2 6.99904 3.34315 6.99904 5C6.99904 5.35099 7.05932 5.68791 7.17008 6.00096C4.88532 6.0093 3.66601 6.09039 2.87772 6.87868C2.08951 7.66689 2.00836 8.88603 2 11.1704C2.31251 11.06 2.64876 11 2.99904 11C4.6559 11 5.99904 12.3431 5.99904 14C5.99904 15.6569 4.6559 17 2.99904 17C2.64876 17 2.31251 16.94 2 16.8296C2.00836 19.114 2.08951 20.3331 2.87772 21.1213C3.66593 21.9095 4.88508 21.9907 7.16941 21.999C7.05908 21.6865 6.99904 21.3503 6.99904 21C6.99904 19.3431 8.34219 18 9.99904 18C11.6559 18 12.999 19.3431 12.999 21C12.999 21.3503 12.939 21.6865 12.8287 21.999C15.113 21.9907 16.3322 21.9095 17.1204 21.1213C17.9086 20.333 17.9897 19.1137 17.9981 16.829C18.3111 16.9397 18.648 17 18.999 17C20.6559 17 21.999 15.6569 21.999 14C21.999 12.3431 20.6559 11 18.999 11C18.648 11 18.3111 11.0603 17.9981 11.171C17.9897 8.88627 17.9086 7.66697 17.1204 6.87868C16.3321 6.09039 15.1128 6.0093 12.828 6.00096Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var I6,_6=L(()=>{I6=[["path",{d:"M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var S6,L6=L(()=>{S6=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var P6,M6=L(()=>{P6=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.5C9 11.5 10.4079 11.7519 11 13.5C11 13.5 12.5 10.5 15 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var R6,T6=L(()=>{R6=[["path",{d:"M21.0477 3.05293C18.8697 0.707363 2.48648 6.4532 2.50001 8.551C2.51535 10.9299 8.89809 11.6617 10.6672 12.1581C11.7311 12.4565 12.016 12.7625 12.2613 13.8781C13.3723 18.9305 13.9301 21.4435 15.2014 21.4996C17.2278 21.5892 23.1733 5.342 21.0477 3.05293Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.4999 12.5L14.9999 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var $6,A6=L(()=>{$6=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91555C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91555C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 14.5L22 14.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 18H7M10 18H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var D6,E6=L(()=>{D6=[["path",{d:"M2 12C2 8.3109 2 6.46633 2.81382 5.1588C3.1149 4.67505 3.48891 4.2543 3.91891 3.91557C5.08116 3.00003 6.72077 3.00003 10 3.00003H14C17.2792 3.00003 18.9188 3.00003 20.0811 3.91557C20.5111 4.2543 20.8851 4.67505 21.1862 5.1588C22 6.46633 22 8.3109 22 12C22 15.6892 22 17.5337 21.1862 18.8413C20.8851 19.325 20.5111 19.7458 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7458 3.1149 19.325 2.81382 18.8413C2 17.5337 2 15.6892 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 3.00003L14.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 7.00006H19M18 10.0001H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var N6,O6=L(()=>{N6=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var z6,Z6=L(()=>{z6=[["path",{d:"M11.0001 8L19.0001 8.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 12H16.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.0001 16H14.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.0001 4H21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M5.5 21V3M5.5 21C4.79977 21 3.49153 19.0057 3 18.5M5.5 21C6.20023 21 7.50847 19.0057 8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var j6,W6=L(()=>{j6=[["path",{d:"M4 14H8.42109C9.35119 14 9.81624 14 9.94012 14.2801C10.064 14.5603 9.74755 14.8963 9.11466 15.5684L5.47691 19.4316C4.84402 20.1037 4.52757 20.4397 4.65145 20.7199C4.77533 21 5.24038 21 6.17048 21H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 9L6.10557 4.30527C6.49585 3.43509 6.69098 3 7 3C7.30902 3 7.50415 3.43509 7.89443 4.30527L10 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V4M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var V6,F6=L(()=>{V6=[["path",{d:"M7 20.9994V14.9481C7 14.3736 7 14.0863 6.76959 14.0149C6.26306 13.8577 5.5 14.999 5.5 14.999M7 20.9994H5.5M7 20.9994H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 6.5V4.75C9 3.92504 9 3.51256 8.70711 3.25628C8.41421 3 7.94281 3 7 3C6.05719 3 5.58579 3 5.29289 3.25628C5 3.51256 5 3.92504 5 4.75C5 5.57496 5 5.98744 5.29289 6.24372C5.58579 6.5 6.05719 6.5 7 6.5H9ZM9 6.5V7.375C9 8.61244 9 9.23116 8.56066 9.61558C8.12132 10 7.41421 10 6 10H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5001 19.999V3.99902M16.5001 19.999C15.7998 19.999 14.4916 18.0047 14.0001 17.499M16.5001 19.999C17.2003 19.999 18.5085 18.0047 19.0001 17.499",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var H6,B6=L(()=>{H6=[["path",{d:"M7 9.99936V3.94812C7 3.3736 7 3.08634 6.76959 3.01485C6.26306 2.85769 5.5 3.99902 5.5 3.99902M7 9.99936H5.5M7 9.99936H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 17.4991V15.7491C9 14.9242 9 14.5117 8.70711 14.2554C8.41421 13.9991 7.94281 13.9991 7 13.9991C6.05719 13.9991 5.58579 13.9991 5.29289 14.2554C5 14.5117 5 14.9242 5 15.7491C5 16.5741 5 16.9866 5.29289 17.2429C5.58579 17.4991 6.05719 17.4991 7 17.4991H9ZM9 17.4991V18.3741C9 19.6116 9 20.2303 8.56066 20.6147C8.12132 20.9991 7.41421 20.9991 6 20.9991H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 19.9991V3.99915M16.5 19.9991C15.7998 19.9991 14.4915 18.0048 14 17.4991M16.5 19.9991C17.2002 19.9991 18.5085 18.0048 19 17.4991",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var U6,G6=L(()=>{U6=[["path",{d:"M4 3H8.42109C9.35119 3 9.81624 3 9.94012 3.28013C10.064 3.56026 9.74755 3.89632 9.11466 4.56842L5.47691 8.43158C4.84402 9.10368 4.52757 9.43974 4.65145 9.71987C4.77533 10 5.24038 10 6.17048 10H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 21L6.10557 16.3053C6.49585 15.4351 6.69098 15 7 15C7.30902 15 7.50415 15.4351 7.89443 16.3053L10 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V3.99999M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var K6,q6=L(()=>{K6=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}]]});var Y6,J6=L(()=>{Y6=[["path",{d:"M12 14.5V17.5M13 14.5C13 15.0523 12.5523 15.5 12 15.5C11.4477 15.5 11 15.0523 11 14.5C11 13.9477 11.4477 13.5 12 13.5C12.5523 13.5 13 13.9477 13 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.8664 3.25221 16.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var X6,Q6=L(()=>{X6=[["path",{d:"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var eC,tC=L(()=>{eC=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var nC,rC=L(()=>{nC=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 9H16.5C18.9853 9 21 11.0147 21 13.5C21 15.9853 18.9853 18 16.5 18H12M12 18C12 17.1597 14.3932 15.5898 15 15M12 18C12 18.8403 14.3932 20.4102 15 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var oC,iC=L(()=>{oC=[["path",{d:"M12 8V12L13.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5454 16.4534C21.1818 17.337 22 17.7789 22 18.5C22 19.2211 21.1818 19.663 19.5454 20.5466L18.4311 21.1484C17.1744 21.827 16.5461 22.1663 16.2439 21.9196C15.504 21.3154 16.6567 19.7561 16.9403 19.2037C17.2277 18.644 17.2225 18.3459 16.9403 17.7963C16.6567 17.2439 15.504 15.6846 16.2439 15.0804C16.5461 14.8337 17.1744 15.173 18.4311 15.8516L19.5454 16.4534Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.0261 21.948C12.6888 21.9824 12.3464 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.6849 21.9311 13.3538 21.8 14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var sC,aC=L(()=>{sC=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 11L12 17.5M9 13.5C9.58984 12.8932 11.1597 10.5 12 10.5C12.8403 10.5 14.4102 12.8932 15 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var cC,uC=L(()=>{cC=[["path",{d:"M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"6.99988",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var lC,dC=L(()=>{lC=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var pC,fC=L(()=>{pC=[["path",{d:"M22 8C22 8 18 14 12 14C6 14 2 8 2 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 13.5L16.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 11L22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2 13L4 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9 13.5L7.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var mC,hC=L(()=>{mC=[["path",{d:"M18.5016 19.1217L21 21.6217M20 15.1217C20 12.0842 17.5376 9.62173 14.5 9.62173C11.4624 9.62173 9 12.0842 9 15.1217C9 18.1593 11.4624 20.6217 14.5 20.6217C17.5376 20.6217 20 18.1593 20 15.1217Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 13.1217V17.1217M16.5 15.1217H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3.62173H14M3 10.6217V14.6217M6.5 21.6217C4.567 21.6217 3 20.0547 3 18.1217M17.5 3.62173C19.433 3.62173 21 5.18873 21 7.12173M3 7.12173C3 5.18873 4.567 3.62173 6.5 3.62173",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var gC,CC=L(()=>{gC=[["path",{d:"M18.5016 18.5L21 21M20 14.5C20 11.4624 17.5376 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 17.5376 11.4624 20 14.5 20C17.5376 20 20 17.5376 20 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 14.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3H14M3 10V14M6.5 21C4.567 21 3 19.433 3 17.5M17.5 3C19.433 3 21 4.567 21 6.5M3 6.5C3 4.567 4.567 3 6.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var yC={};St(yC,{EXTENDED_ICON_MAP:()=>kC});var q_,Y_,J_,kC,bC=L(()=>{"use strict";Ig();Sg();Pg();Rg();$g();Dg();Ng();zg();jg();Vg();Hg();Ug();Kg();Yg();Xg();e7();n7();o7();s7();c7();l7();d7();f7();h7();C7();y7();v7();x7();_7();L7();M7();T7();A7();E7();O7();Z7();W7();F7();B7();G7();q7();J7();Q7();t3();r3();i3();Im();a3();u3();d3();f3();h3();Tm();C3();y3();Tm();v3();x3();_3();L3();M3();T3();A3();E3();O3();Z3();W3();F3();B3();G3();q3();J3();Q3();t6();r6();i6();a6();u6();d6();f6();h6();C6();y6();v6();x6();_6();L6();M6();T6();A6();E6();O6();Z6();W6();F6();B6();G6();q6();J6();Q6();tC();rC();iC();aC();uC();dC();fC();hC();CC();Mm();q_=[["path",{d:"M21.8205 10.4127C22.062 11.8519 22.1827 12.5715 21.2423 13.9326C21.1459 14.0722 20.8966 14.3713 20.777 14.4911C19.6103 15.6586 18.4308 15.6586 16.0716 15.6586H14.1392C13.5085 15.6586 13.1931 15.6586 12.9639 15.7142C11.9586 15.9581 11.3031 16.9391 11.453 17.9755C11.4872 18.2118 11.6043 18.5085 11.8386 19.102C11.9345 19.3449 11.9824 19.4664 12.0136 19.7304C12.1292 20.7084 11.0869 21.9508 10.1158 21.9926C9.85358 22.0039 9.83681 22.0002 9.80326 21.9926C7.66174 21.51 5.66204 20.3123 4.18389 18.4421C0.736789 14.0808 1.43146 7.71364 5.73548 4.22064C10.0395 0.727643 16.323 1.43156 19.7701 5.79289C20.868 7.1819 21.5457 8.77438 21.8205 10.4127Z",fill:"none",fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.36719 7.74976H7.24219M7.49219 7.74976C7.49219 7.88783 7.38026 7.99976 7.24219 7.99976C7.10412 7.99976 6.99219 7.88783 6.99219 7.74976C6.99219 7.61169 7.10412 7.49976 7.24219 7.49976C7.38026 7.49976 7.49219 7.61169 7.49219 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.36719 15.7498H7.24219M7.49219 15.7498C7.49219 15.8878 7.38026 15.9998 7.24219 15.9998C7.10412 15.9998 6.99219 15.8878 6.99219 15.7498C6.99219 15.6117 7.10412 15.4998 7.24219 15.4998C7.38026 15.4998 7.49219 15.6117 7.49219 15.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.8672 5.74976H11.7422M11.9922 5.74976C11.9922 5.88783 11.8803 5.99976 11.7422 5.99976C11.6041 5.99976 11.4922 5.88783 11.4922 5.74976C11.4922 5.61169 11.6041 5.49976 11.7422 5.49976C11.8803 5.49976 11.9922 5.61169 11.9922 5.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16.3672 7.74976H16.2422M16.4922 7.74976C16.4922 7.88783 16.3803 7.99976 16.2422 7.99976C16.1041 7.99976 15.9922 7.88783 15.9922 7.74976C15.9922 7.61169 16.1041 7.49976 16.2422 7.49976C16.3803 7.49976 16.4922 7.61169 16.4922 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.3672 11.7498H18.2422M18.4922 11.7498C18.4922 11.8878 18.3803 11.9998 18.2422 11.9998C18.1041 11.9998 17.9922 11.8878 17.9922 11.7498C17.9922 11.6117 18.1041 11.4998 18.2422 11.4998C18.3803 11.4998 18.4922 11.6117 18.4922 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M5.86719 11.7498H5.74219M5.99219 11.7498C5.99219 11.8878 5.88026 11.9998 5.74219 11.9998C5.60412 11.9998 5.49219 11.8878 5.49219 11.7498C5.49219 11.6117 5.60412 11.4998 5.74219 11.4998C5.88026 11.4998 5.99219 11.6117 5.99219 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],Y_=[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",fill:"currentColor",key:"0"}]],J_=[["path",{d:"M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943",fill:"currentColor",key:"0"}]],kC={AiBrain01:xg,AiBrowser:_g,AiContentGenerator01:Lg,AlignLeft:K3,AppWindow:Rm,ArchiveRestore:sC,ArrowDown:Mg,ArrowLeft:Ag,ArrowRight:Wg,ArrowReloadHorizontal:Zg,ArrowUp:qg,ArrowUpDown:Qg,ArrowTurnBackward:Fg,ArrowTurnForward:Bg,ArrowUpRight:t7,Beaker:eC,BellDot:i7,Browser:Rm,Brain:u7,Calendar:p7,CalendarCheckOut02:m7,ChartColumn:g7,ChevronUp:Gg,ChevronsDown:Tg,ChevronsUp:Jg,CircleArrowShrink:k7,Clean:b7,Clock:w7,ClockArrowUp:S7,ClockArrowDown:I7,Cloud:P7,CloudOff:R7,Coffee:$7,Columns2:R3,CornerDownLeft:Eg,CornerDownRight:Og,Discord:j7,DiscordLogo:Y_,DateTime:z7,Github:b3,GithubLogo:J_,DragDropHorizontal:V7,DragDropVertical:H7,EditFile:U7,ElectricPlugs:K7,Eye:lC,EyeOff:pC,Explore:a7,ExternalLink:N3,FileDiff:k6,File:n3,FileAttachment:e3,FileQuestion:o3,FileText:X7,FolderOpen:uu,FolderEdit:s3,FolderMinus:c3,Fork:p3,GitBranch:l3,GitMerge:m3,GitPullRequest:du,GitPullRequestArrow:du,GitPullRequestClosed:g3,GitPullRequestDraft:k3,Globe:I3,GridView:w3,Laptop:S3,Layers:P3,Limitation:D3,ListEnd:z3,ListView:j3,Lock:V3,Mail:H3,MailOpen:U3,Maximize2:Y7,Mic:X3,Minus:e6,Minimize2:D7,MoveTo:n6,NewTab:N7,News01:o6,PackageReceive:s6,Palette:q_,PanelBottom:$6,PanelRight:D6,Paperclip:r7,Pause:c6,Pin:l6,PinOff:p6,Play:m6,Plug02:g6,Plus:b6,Puzzle:w6,Repeat:S6,SecurityCheck:P6,RotateCcw:I6,Rows2:$3,Sent:R6,SideChat:Y3,Smartphone:N6,Sort:z6,SortingAZ02:j6,SortingZA01:U6,SortingOneNine:H6,SortingNineOne:V6,Square:K6,SquareUnlock02:Y6,Star:X6,TextWrap:nC,TimeSchedule:oC,UserRound:cC,ZoomIn:mC,ZoomOut:gC};vg(kC)});var Au=globalThis.__bbPluginRuntime;if(Au==null||Au.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var as=Au.pluginSdkApp,lL="default"in as?as.default:as,{Markdown:dL,ThreadChat:pL,ThreadTitle:fL,UrlLink:mL,definePluginApp:ph,experimental_BranchPicker:hL,experimental_Diff:gL,experimental_FileLink:CL,experimental_Icon:B,experimental_NewThreadComposer:kL,experimental_PermissionModePicker:yL,experimental_ProviderIcon:cs,experimental_ProviderModelPicker:bL,experimental_SourceCode:vL,experimental_useAppPanel:wL,experimental_useBranches:xL,experimental_useCheckoutState:IL,experimental_useCodeTheme:_L,experimental_useFixedTabTarget:SL,experimental_useProviders:fh,experimental_useSidebarThreadActions:mh,experimental_useSidebarThreadPullRequest:us,experimental_useSidebarThreadSplit:hh,experimental_useSidebarThreads:gh,useBbContext:LL,useBbNavigate:PL,useComposer:ML,useComposerView:RL,useEnvironmentProviders:Ch,useRealtime:fn,useRealtimeConnectionState:mn,useRpc:hn,useSdk:kh,useSettings:TL,useSidebarSplitLayout:yh,useSidebarThreadDraft:bh,useSidebarThreadDraftIds:vh,useSidebarThreadRowStatus:wh,useSidebarThreadRowStatuses:$L,useSidebarThreadShortcut:xh}=as;var ot={};St(ot,{Activity:()=>qk,Children:()=>ds,Component:()=>Eu,Fragment:()=>hr,Profiler:()=>Yk,PureComponent:()=>Jk,StrictMode:()=>Xk,Suspense:()=>Qk,act:()=>ey,cache:()=>ty,cacheSignal:()=>ny,captureOwnerStack:()=>ry,cloneElement:()=>gr,createContext:()=>we,createElement:()=>So,createRef:()=>oy,default:()=>qe,forwardRef:()=>F,isValidElement:()=>Cr,lazy:()=>iy,memo:()=>pt,startTransition:()=>sy,unstable_useCacheRefresh:()=>ay,use:()=>cy,useActionState:()=>uy,useCallback:()=>Z,useContext:()=>xe,useDebugValue:()=>ly,useDeferredValue:()=>dy,useEffect:()=>z,useEffectEvent:()=>py,useId:()=>gn,useImperativeHandle:()=>fy,useInsertionEffect:()=>my,useLayoutEffect:()=>rt,useMemo:()=>q,useOptimistic:()=>hy,useReducer:()=>Nu,useRef:()=>A,useState:()=>E,useSyncExternalStore:()=>Kt,useTransition:()=>gy,version:()=>Cy});var Du=globalThis.__bbPluginRuntime;if(Du==null||Du.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ls=Du.react,qe="default"in ls?ls.default:ls,{Activity:qk,Children:ds,Component:Eu,Fragment:hr,Profiler:Yk,PureComponent:Jk,StrictMode:Xk,Suspense:Qk,act:ey,cache:ty,cacheSignal:ny,captureOwnerStack:ry,cloneElement:gr,createContext:we,createElement:So,createRef:oy,forwardRef:F,isValidElement:Cr,lazy:iy,memo:pt,startTransition:sy,unstable_useCacheRefresh:ay,use:cy,useActionState:uy,useCallback:Z,useContext:xe,useDebugValue:ly,useDeferredValue:dy,useEffect:z,useEffectEvent:py,useId:gn,useImperativeHandle:fy,useInsertionEffect:my,useLayoutEffect:rt,useMemo:q,useOptimistic:hy,useReducer:Nu,useRef:A,useState:E,useSyncExternalStore:Kt,useTransition:gy,version:Cy}=ls;var Ou=globalThis.__bbPluginRuntime;if(Ou==null||Ou.reactDom==null)throw new Error('Cannot load "react-dom": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ps=Ou.reactDom,DL="default"in ps?ps.default:ps,{createPortal:fs,flushSync:EL,preconnect:NL,prefetchDNS:OL,preinit:zL,preinitModule:ZL,preload:jL,preloadModule:WL,requestFormReset:VL,unstable_batchedUpdates:Lo,useFormState:FL,useFormStatus:HL,version:BL}=ps;var Po=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ms(e){return"nodeType"in e}function Ye(e){var t,n;return e?Zn(e)?e:ms(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function hs(e){let{Document:t}=Ye(e);return e instanceof t}function kr(e){return Zn(e)?!1:e instanceof Ye(e).HTMLElement}function Zu(e){return e instanceof Ye(e).SVGElement}function jn(e){return e?Zn(e)?e.document:ms(e)?hs(e)?e:kr(e)||Zu(e)?e.ownerDocument:document:document:document}var qt=Po?rt:z;function gs(e){let t=A(e);return qt(()=>{t.current=e}),Z(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function _h(){let e=A(null),t=Z((r,o)=>{e.current=setInterval(r,o)},[]),n=Z(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function yr(e,t){t===void 0&&(t=[e]);let n=A(e);return qt(()=>{n.current!==e&&(n.current=e)},t),n}function br(e,t){let n=A();return q(()=>{let r=e(n.current);return n.current=r,r},[...t])}function Mo(e){let t=gs(e),n=A(null),r=Z(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Cs(e){let t=A();return z(()=>{t.current=e},[e]),t.current}var zu={};function Ro(e,t){return q(()=>{if(t)return t;let n=zu[e]==null?0:zu[e]+1;return zu[e]=n,e+"-"+n},[e,t])}function Sh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[c,u]of a){let l=i[c];l!=null&&(i[c]=l+e*u)}return i},{...t})}}var Wn=Sh(1),To=Sh(-1);function ky(e){return"clientX"in e&&"clientY"in e}function ju(e){if(!e)return!1;let{KeyboardEvent:t}=Ye(e.target);return t&&e instanceof t}function yy(e){if(!e)return!1;let{TouchEvent:t}=Ye(e.target);return t&&e instanceof t}function ks(e){if(yy(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ky(e)?{x:e.clientX,y:e.clientY}:null}var Ih="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Lh(e){return e.matches(Ih)?e:e.querySelector(Ih)}var by={display:"none"};function Ph(e){let{id:t,value:n}=e;return qe.createElement("div",{id:t,style:by},n)}function Mh(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return qe.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Rh(){let[e,t]=E("");return{announce:Z(r=>{r!=null&&t(r)},[]),announcement:e}}var Wh=we(null);function vy(e){let t=xe(Wh);z(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wy(){let[e]=E(()=>new Set),t=Z(r=>(e.add(r),()=>e.delete(r)),[e]);return[Z(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}var xy={draggable:`
1
+ var qk=Object.defineProperty;var L=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var St=(e,t)=>{for(var n in t)qk(e,n,{get:t[n],enumerable:!0})};var uu,Im=L(()=>{uu=[["path",{d:"M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});function wg(e){if(_m!==e){_m=e;for(let t of Sm)t()}}function lu(){return _m}function xg(e){return Sm.add(e),()=>{Sm.delete(e)}}function Bi(e){return K_.get(e)}function Lm(e){return yg.add(e),()=>{yg.delete(e)}}function Ui(e){return q_.get(e)}function Pm(e){return bg.add(e),()=>{bg.delete(e)}}var vg,_m,Sm,K_,yg,q_,bg,Mm=L(()=>{"use strict";vg=["AiBrain01","AiBrowser","AiContentGenerator01","AlignLeft","AppWindow","ArchiveRestore","ArrowDown","ArrowLeft","ArrowRight","ArrowReloadHorizontal","ArrowUp","ArrowUpDown","ArrowTurnBackward","ArrowTurnForward","ArrowUpRight","Beaker","BellDot","Browser","Brain","Calendar","CalendarCheckOut02","ChartColumn","ChevronUp","ChevronsDown","ChevronsUp","CircleArrowShrink","Clean","Clock","ClockArrowUp","ClockArrowDown","Cloud","CloudOff","Coffee","Columns2","CornerDownLeft","CornerDownRight","Discord","DiscordLogo","DateTime","Github","GithubLogo","DragDropHorizontal","DragDropVertical","EditFile","ElectricPlugs","Eye","EyeOff","Explore","ExternalLink","FileDiff","File","FileAttachment","FileQuestion","FileText","FolderOpen","FolderEdit","FolderMinus","Fork","GitBranch","GitMerge","GitPullRequest","GitPullRequestArrow","GitPullRequestClosed","GitPullRequestDraft","Globe","GridView","Laptop","Layers","Limitation","ListEnd","ListView","Lock","Mail","MailOpen","Maximize2","Mic","Minus","Minimize2","MoveTo","NewTab","News01","PackageReceive","Palette","PanelBottom","PanelRight","Paperclip","Pause","Pin","PinOff","Play","Plug02","Plus","Puzzle","Repeat","RotateCcw","Rows2","SecurityCheck","Sent","SideChat","Smartphone","Sort","SortingAZ02","SortingZA01","SortingOneNine","SortingNineOne","Square","SquareUnlock02","Star","TextWrap","TimeSchedule","UserRound","ZoomIn","ZoomOut"],_m=null,Sm=new Set;K_=new Map,yg=new Set;q_=new Map,bg=new Set});var Ig,_g=L(()=>{Ig=[["path",{d:"M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Sg,Lg=L(()=>{Sg=[["path",{d:"M18.4737 15.5215C18.4795 15.4928 18.5205 15.4928 18.5263 15.5215C18.8302 17.0081 19.9919 18.1698 21.4785 18.4737C21.5072 18.4795 21.5072 18.5205 21.4785 18.5263C19.9919 18.8302 18.8302 19.9919 18.5263 21.4785C18.5205 21.5072 18.4795 21.5072 18.4737 21.4785C18.1698 19.9919 17.0081 18.8302 15.5215 18.5263C15.4928 18.5205 15.4928 18.4795 15.5215 18.4737C17.0081 18.1698 18.1698 17.0081 18.4737 15.5215Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 7.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 20.5H10.5C6.72876 20.5 4.84315 20.5 3.67157 19.3284C2.5 18.1569 2.5 16.2712 2.5 12.5V10.5C2.5 6.72876 2.5 4.84315 3.67157 3.67157C4.84315 2.5 6.72876 2.5 10.5 2.5H12.5C16.2712 2.5 18.1569 2.5 19.3284 3.67157C20.5 4.84315 20.5 6.72876 20.5 10.5V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Pg,Mg=L(()=>{Pg=[["path",{d:"M11 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H12C15.7712 2 17.6569 2 18.8284 3.17157C20 4.34315 20 6.22876 20 10V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.4069 14.4036C17.6192 13.8655 18.3808 13.8655 18.5931 14.4036L18.6298 14.4969C19.1482 15.8113 20.1887 16.8518 21.5031 17.3702L21.5964 17.4069C22.1345 17.6192 22.1345 18.3808 21.5964 18.5931L21.5031 18.6298C20.1887 19.1482 19.1482 20.1887 18.6298 21.5031L18.5931 21.5964C18.3808 22.1345 17.6192 22.1345 17.4069 21.5964L17.3702 21.5031C16.8518 20.1887 15.8113 19.1482 14.4969 18.6298L14.4036 18.5931C13.8655 18.3808 13.8655 17.6192 14.4036 17.4069L14.4969 17.3702C15.8113 16.8518 16.8518 15.8113 17.3702 14.4969L17.4069 14.4036Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 7H15M7 11.5H15M7 16H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Rg,Tg=L(()=>{Rg=[["path",{d:"M12 18.502V5.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13.002C18 13.002 13.5811 19.0019 12 19.002C10.4188 19.002 6 13.002 6 13.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var $g,Ag=L(()=>{$g=[["path",{d:"M17.9997 12.5C17.9997 12.5 13.5807 18.5 11.9996 18.5C10.4185 18.5 5.99966 12.5 5.99966 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.9997 5.50005C17.9997 5.50005 13.5807 11.5 11.9996 11.5C10.4185 11.5 5.99966 5.5 5.99966 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Dg,Eg=L(()=>{Dg=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Ng,Og=L(()=>{Ng=[["path",{d:"M20 3V5.07692C20 7.07786 20 8.07833 19.8547 8.91545C19.0547 13.5235 15.0934 17.1376 10.0426 17.8674C9.12509 18 7.19318 18 5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 21C6.39316 20.4102 4 18.8403 4 18C4 17.1597 6.39316 15.5898 7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var zg,Zg=L(()=>{zg=[["path",{d:"M4 3V5.07692C4 7.07786 4 8.07833 4.14533 8.91545C4.94529 13.5235 8.90656 17.1376 13.9574 17.8674C14.8749 18 16.8068 18 19 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 21C17.6068 20.4102 20 18.8403 20 18C20 17.1597 17.6068 15.5898 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var jg,Wg=L(()=>{jg=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var Vg,Fg=L(()=>{Vg=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Hg,Bg=L(()=>{Hg=[["path",{d:"M11 6H15.5C17.9853 6 20 8.01472 20 10.5C20 12.9853 17.9853 15 15.5 15H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.99998 12C6.99998 12 4.00001 14.2095 4 15C3.99999 15.7906 7 18 7 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Ug,Gg=L(()=>{Ug=[["path",{d:"M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Kg,qg=L(()=>{Kg=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var Yg,Jg=L(()=>{Yg=[["path",{d:"M12 5.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11C18 11 13.5811 5.00001 12 5C10.4188 4.99999 6 11 6 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Xg,Qg=L(()=>{Xg=[["path",{d:"M18 11.5C18 11.5 13.5811 5.50001 12 5.5C10.4188 5.49999 6 11.5 6 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18.5C18 18.5 13.5811 12.5 12 12.5C10.4188 12.5 6 18.5 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var e7,t7=L(()=>{e7=[["path",{d:"M7 4V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19L17 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var n7,r7=L(()=>{n7=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var o7,i7=L(()=>{o7=[["path",{d:"M19.5 12.0001V13.5001C19.5 17.6422 16.1421 21.0001 12 21.0001C7.85786 21.0001 4.5 17.6422 4.5 13.5001V8C4.5 5.23858 6.73858 3 9.5 3C12.2614 3 14.5 5.23858 14.5 8V13.5C14.5 14.8807 13.3807 16 12 16C10.6193 16 9.5 14.8807 9.5 13.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var s7,a7=L(()=>{s7=[["path",{d:"M19 11V12.7558C19 13.5514 19.3161 14.3145 19.8787 14.8771L20.4819 15.4803C20.8136 15.8121 21 16.262 21 16.7311C21 17.708 20.208 18.5 19.2311 18.5H4.76887C3.79195 18.5 3 17.708 3 16.7311C3 16.262 3.18636 15.8121 3.51809 15.4803L4.12132 14.8771C4.68393 14.3145 5 13.5514 5 12.7558V10C5 6.13401 8.13401 3 12 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 18.5C15.5 20.433 13.933 22 12 22C10.067 22 8.5 20.433 8.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 5C21 3.34315 19.6568 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65684 16.3431 8 18 8C19.6568 8 21 6.65684 21 5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var c7,u7=L(()=>{c7=[["path",{d:"M15.5 7H8.5M12.499 11H8.49902",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 22H6C4.89543 22 4 21.1046 4 20M4 20C4 18.8954 4.89543 18 6 18H20V6C20 4.11438 20 3.17157 19.4142 2.58579C18.8284 2 17.8856 2 16 2H10C7.17157 2 5.75736 2 4.87868 2.87868C4 3.75736 4 5.17157 4 8V20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 18C19.5 18 18.5 18.7628 18.5 20C18.5 21.2372 19.5 22 19.5 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var l7,d7=L(()=>{l7=[["path",{d:"M16.998 7.12652C17.3182 7.04393 17.654 7 18 7C20.2091 7 22 8.79086 22 11C22 13.2091 20.2091 15 18 15C17.6451 15 17.3009 14.9538 16.9733 14.867M16.998 7.12652C16.9993 7.08451 17 7.04233 17 7C17 4.79086 15.2091 3 13 3C11.0824 3 9.47994 4.34939 9.09041 6.15043M16.998 7.12652C16.9769 7.80763 16.7854 8.44584 16.4649 9M16.9733 14.867C16.9909 14.7472 17 14.6247 17 14.5C17 13.2905 16.1411 12.2816 15 12.05M16.9733 14.867C16.7957 16.0737 15.756 17 14.5 17H14C11.7909 17 10 18.7909 10 21M9.09041 6.15043C8.74377 6.05243 8.37801 6 8 6C5.79086 6 4 7.79086 4 10C4 10.3886 4.05542 10.7643 4.15878 11.1195M9.09041 6.15043C10.1015 6.43625 10.9498 7.10965 11.4649 8M4.15878 11.1195C2.9114 11.4832 2 12.6352 2 14C2 15.6569 3.34315 17 5 17C6.30622 17 7.41746 16.1652 7.82929 15M4.15878 11.1195C4.24921 11.4303 4.37632 11.7255 4.53513 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.8361 11.7435C11.3257 12.2353 10.453 12.3202 9.70713 11.9008C8.9612 11.4814 8.58031 10.6917 8.73535 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var Rm,p7=L(()=>{Rm=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var f7,m7=L(()=>{f7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.1258 14H12.0008M12.1258 18H12.0008M7.625 14H7.5M7.625 18H7.5M16.625 14H16.5M12.2508 14C12.2508 14.1381 12.1389 14.25 12.0008 14.25C11.8628 14.25 11.7508 14.1381 11.7508 14C11.7508 13.8619 11.8628 13.75 12.0008 13.75C12.1389 13.75 12.2508 13.8619 12.2508 14ZM12.2508 18C12.2508 18.1381 12.1389 18.25 12.0008 18.25C11.8628 18.25 11.7508 18.1381 11.7508 18C11.7508 17.8619 11.8628 17.75 12.0008 17.75C12.1389 17.75 12.2508 17.8619 12.2508 18ZM7.75 14C7.75 14.1381 7.63807 14.25 7.5 14.25C7.36193 14.25 7.25 14.1381 7.25 14C7.25 13.8619 7.36193 13.75 7.5 13.75C7.63807 13.75 7.75 13.8619 7.75 14ZM7.75 18C7.75 18.1381 7.63807 18.25 7.5 18.25C7.36193 18.25 7.25 18.1381 7.25 18C7.25 17.8619 7.36193 17.75 7.5 17.75C7.63807 17.75 7.75 17.8619 7.75 18ZM16.75 14C16.75 14.1381 16.6381 14.25 16.5 14.25C16.3619 14.25 16.25 14.1381 16.25 14C16.25 13.8619 16.3619 13.75 16.5 13.75C16.6381 13.75 16.75 13.8619 16.75 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var h7,g7=L(()=>{h7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.5 18.5C14.0057 18.0085 16 16.7002 16 16C16 15.2998 14.0057 13.9915 13.5 13.5M15.5 16L9 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var C7,k7=L(()=>{C7=[["path",{d:"M8 9V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 13V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var y7,b7=L(()=>{y7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.115 11.1151C11.6324 10.5977 11.5463 8.4 11.5463 8.4M11.115 11.1151C10.5977 11.6324 8.4 11.5462 8.4 11.5462M11.115 11.1151L7.5 7.5M12.8882 12.8882C13.4055 12.3708 15.6032 12.4569 15.6032 12.4569M12.8882 12.8882C12.3709 13.4055 12.457 15.6032 12.457 15.6032M12.8882 12.8882L16.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var v7,w7=L(()=>{v7=[["path",{d:"M21 3L13 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.44573 11.0854C6.96539 12.0368 4.98269 11.8736 3 11.0885C3.50059 17.531 6.50414 20.0089 10.5089 21C10.5089 21 13.5261 18.8664 13.961 13.8074C14.0081 13.2595 14.0317 12.9856 13.9178 12.6769C13.8038 12.3682 13.5802 12.1468 13.1329 11.704C12.3973 10.9757 12.0295 10.6116 11.5929 10.5204C11.1564 10.4293 10.5862 10.648 9.44573 11.0854Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.5 16.4464C4.5 16.4464 7 16.9286 9.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 7.25C8.5 7.94036 7.94036 8.5 7.25 8.5C6.55964 8.5 6 7.94036 6 7.25C6 6.55964 6.55964 6 7.25 6C7.94036 6 8.5 6.55964 8.5 7.25Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.125 4H11M11.25 4C11.25 4.13807 11.1381 4.25 11 4.25C10.8619 4.25 10.75 4.13807 10.75 4C10.75 3.86193 10.8619 3.75 11 3.75C11.1381 3.75 11.25 3.86193 11.25 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var x7,I7=L(()=>{x7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var _7,S7=L(()=>{_7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 19C22 19 19.7905 22 19 22C18.2094 22 16 19 16 19M19 21V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var L7,P7=L(()=>{L7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 18C22 18 19.7905 15 19 15C18.2094 15 16 18 16 18M19 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var M7,R7=L(()=>{M7=[["path",{d:"M17.4776 10.0001C17.485 10 17.4925 10 17.5 10C19.9853 10 22 12.0147 22 14.5C22 16.9853 19.9853 19 17.5 19H7C4.23858 19 2 16.7614 2 14C2 11.4003 3.98398 9.26407 6.52042 9.0227M17.4776 10.0001C17.4924 9.83536 17.5 9.66856 17.5 9.5C17.5 6.46243 15.0376 4 12 4C9.12324 4 6.76233 6.20862 6.52042 9.0227M17.4776 10.0001C17.3753 11.1345 16.9286 12.1696 16.2428 13M6.52042 9.0227C6.67826 9.00768 6.83823 9 7 9C8.12582 9 9.16474 9.37209 10.0005 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var T7,$7=L(()=>{T7=[["path",{d:"M17.4776 10.5001C17.485 10.5 17.4925 10.5 17.5 10.5C19.9853 10.5 22 12.5147 22 15C22 15.8582 21.7597 16.6604 21.3428 17.3428M17.4776 10.5001C17.4924 10.3354 17.5 10.1686 17.5 10C17.5 6.96243 15.0376 4.5 12 4.5C10.9945 4.5 10.052 4.76982 9.24101 5.24101M17.4776 10.5001C17.4039 11.3178 17.1512 12.0839 16.759 12.759M6.52042 9.5227C3.98398 9.76407 2 11.9003 2 14.5C2 17.2614 4.23858 19.5 7 19.5H17.5C18.0928 19.5 18.6588 19.3854 19.1771 19.1771M6.52042 9.5227C6.67826 9.50768 6.83823 9.5 7 9.5C8.12582 9.5 9.16474 9.87209 10.0005 10.5M6.52042 9.5227C6.59145 8.69641 6.84518 7.92232 7.24101 7.24101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var A7,D7=L(()=>{A7=[["path",{d:"M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var E7,N7=L(()=>{E7=[["path",{d:"M13 4L13 7.00002C13 8.88563 13.0001 9.82843 13.5858 10.4142C14.1716 11 15.1144 11 17 11L20 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 20L11 17C11 15.1144 11 14.1715 10.4142 13.5858C9.82843 13 8.88563 13 7.00002 13L4.00006 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var O7,z7=L(()=>{O7=[["path",{d:"M6.3 2.75143C5.26076 2.94471 4.49591 3.28657 3.89124 3.89124C3.28657 4.49591 2.94471 5.26076 2.75143 6.3M17.7 2.75143C18.7392 2.94471 19.5041 3.28657 20.1088 3.89124C20.7134 4.49591 21.0553 5.26076 21.2486 6.3M13.9 2.50495C13.3156 2.5 12.6839 2.5 12 2.5C11.3161 2.5 10.6844 2.5 10.1 2.50495M21.495 10.1C21.5 10.6844 21.5 11.3161 21.5 12C21.5 12.6839 21.5 13.3156 21.495 13.9001M2.50495 10.1C2.5 10.6844 2.5 11.3161 2.5 12C2.5 12.6839 2.5 13.3156 2.50496 13.9001M2.75143 17.7C2.94471 18.7392 3.28657 19.5041 3.89124 20.1088C4.49591 20.7134 5.26076 21.0553 6.3 21.2486M21.2486 17.7C21.0553 18.7392 20.7134 19.5041 20.1088 20.1088C19.5041 20.7134 18.7392 21.0553 17.7 21.2486M13.9 21.495C13.3156 21.5 12.6839 21.5 12 21.5C11.3162 21.5 10.6845 21.5 10.1002 21.495",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var Z7,j7=L(()=>{Z7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var W7,V7=L(()=>{W7=[["path",{d:"M15.5 17.5C16.5 19 17.3333 19.6667 18 20C19.3333 19.6667 22 18.2 22 15C22 11.8 20.6667 7.33333 20 5.5C18 4.3 15.8333 4 15 4L14.198 5.60393C13.4135 5.28708 12.4058 5.25438 12 5.27763C11.5942 5.25438 10.5865 5.28708 9.80197 5.60393L9 4C8.16667 4 6 4.3 4 5.5C3.33333 7.33333 2 11.8 2 15C2 18.2 4.66667 19.6667 6 20C6.66667 19.6667 7.5 19 8.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.3652 11.5C17.3652 12.6046 16.5817 13.5 15.6152 13.5C14.6487 13.5 13.8652 12.6046 13.8652 11.5C13.8652 10.3954 14.6487 9.5 15.6152 9.5C16.5817 9.5 17.3652 10.3954 17.3652 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 11.5C10 12.6046 9.2165 13.5 8.25 13.5C7.2835 13.5 6.5 12.6046 6.5 11.5C6.5 10.3954 7.2835 9.5 8.25 9.5C9.2165 9.5 10 10.3954 10 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M17.5 16.5C16.4022 17.3967 14.3502 18 12 18C9.64981 18 7.59785 17.3967 6.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var F7,H7=L(()=>{F7=[["path",{d:"M6 8C6.55228 8 7 8.44772 7 9C7 9.55228 6.55228 10 6 10C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16C5.44772 16 5 15.5523 5 15C5 14.4477 5.44772 14 6 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C18.5523 8 19 8.44772 19 9C19 9.55228 18.5523 10 18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18 14C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16C17.4477 16 17 15.5523 17 15C17 14.4477 17.4477 14 18 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 14C12.5523 14 13 14.4477 13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var B7,U7=L(()=>{B7=[["path",{d:"M16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var G7,K7=L(()=>{G7=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var q7,Y7=L(()=>{q7=[["path",{d:"M9 2L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 2L15 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 18L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.6939 8.5L10.6029 10.6749C10.3788 10.9079 10.5394 11.2433 10.9048 11.3053L13.0952 11.6773C13.4848 11.7434 13.6334 12.1147 13.361 12.3413L10.7666 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.3066 5L9.69342 5C7.5551 5 6.48594 5 5.89527 5.69774C5.3046 6.39548 5.46717 7.46639 5.79232 9.60823L6.31604 13.0581C6.83606 16.4836 8.28588 18 12 18C15.7141 18 17.1639 16.4836 17.684 13.0581L18.2077 9.60823C18.5328 7.46639 18.6954 6.39548 18.1047 5.69774C17.5141 5 16.4449 5 14.3066 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var J7,X7=L(()=>{J7=[["path",{d:"M19 12L19 8.99996C19 7.11435 18.9999 6.17155 18.4142 5.58577C17.8284 4.99999 16.8856 4.99999 15 5L12 5.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 12L5.00003 15C5.00004 16.8856 5.00005 17.8284 5.58584 18.4142C6.17163 19 7.11443 19 9.00004 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Q7,e3=L(()=>{Q7=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var t3,n3=L(()=>{t3=[["path",{d:"M4 12.0004L4 14.5446C4 17.7896 4 19.4121 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0004 8.21082 22.0004 11.4558 22.0004C12.1614 22.0004 12.5141 22.0004 12.8372 21.8864C12.9044 21.8627 12.9702 21.8354 13.0345 21.8047C13.3436 21.6569 13.593 21.4074 14.0919 20.9085L18.8284 16.172C19.4065 15.5939 19.6955 15.3049 19.8478 14.9374C20 14.5698 20 14.1611 20 13.3436V10.0004C20 6.22919 20 4.34358 18.8284 3.172C17.7693 2.11284 16.1265 2.01122 13.0345 2.00146M13 21.5004V21.0004C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0004 16.1716 15.0004 19 15.0004H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 8.23028V5.46105C4 3.54929 5.567 1.99951 7.5 1.99951C9.433 1.99951 11 3.54929 11 5.46105V9.26874C11 10.2246 10.2165 10.9995 9.25 10.9995C8.2835 10.9995 7.5 10.2246 7.5 9.26874V5.46105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var r3,o3=L(()=>{r3=[["path",{d:"M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var i3,s3=L(()=>{i3=[["path",{d:"M3.5 14.5C3.5 13.1193 4.6193 12 6 12C7.3807 12 8.5 13.1193 8.5 14.5C8.5 15.3569 8.06886 16.1131 7.41166 16.5636C6.72833 17.0319 6 17.6716 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.125 21.75H6M6.25 21.75C6.25 21.8881 6.13807 22 6 22C5.86193 22 5.75 21.8881 5.75 21.75C5.75 21.6119 5.86193 21.5 6 21.5C6.13807 21.5 6.25 21.6119 6.25 21.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.5 2.5V3C13.5 5.82843 13.5 7.24264 14.3787 8.12132C15.2574 9 16.6716 9 19.5 9H20M4.50394 7.98123C4.52397 5.69117 4.64575 4.40752 5.38607 3.48933C5.56507 3.26731 5.76731 3.06508 5.98932 2.88607C7.0883 2 8.71081 2 11.9558 2C12.6614 2 13.0141 2 13.3372 2.11401C13.4044 2.13772 13.4702 2.165 13.5345 2.19575C13.8435 2.34355 14.093 2.593 14.5919 3.09188L19.3284 7.82843C19.9065 8.40649 20.1955 8.69552 20.3478 9.06306C20.5 9.4306 20.5 9.83935 20.5 10.6569V14C20.5 17.7712 20.5 19.6569 19.3284 20.8284C18.1568 22 16.2712 22 12.5 22C11.7645 22 11.1007 22 10.5 21.9913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var a3,c3=L(()=>{a3=[["path",{d:"M8.00164 7.00013H16.754C18.8613 7.00013 19.9149 7.00013 20.6718 7.50574C20.9995 7.72462 21.2808 8.00588 21.4997 8.33346C21.8937 8.92301 21.9808 9.69265 22 11.0003M12.0027 7.00013L11.3691 5.73321C10.8442 4.68363 10.3645 3.62714 9.20122 3.19101C8.69172 3 8.10969 3 6.94562 3C5.12865 3 4.22017 3 3.53848 3.38033C3.05255 3.65144 2.6516 4.0523 2.38042 4.53811C2 5.21963 2 6.1279 2 7.94443V11.0003C2 15.7145 2 18.0716 3.46487 19.5361C4.82227 20.8931 6.94628 20.9927 11.0025 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 19.8268V21H15.1734C15.5827 21 15.7874 21 15.9715 20.9238C16.1555 20.8475 16.3003 20.7028 16.5897 20.4134L21.4133 15.5894C21.6864 15.3164 21.8229 15.1799 21.8959 15.0327C22.0347 14.7525 22.0347 14.4236 21.8959 14.1434C21.8229 13.9961 21.6864 13.8596 21.4133 13.5866C21.1403 13.3136 21.0038 13.1771 20.8565 13.1041C20.5763 12.9653 20.2473 12.9653 19.9671 13.1041C19.8198 13.1771 19.6833 13.3136 19.4103 13.5866L19.4103 13.5866L14.5867 18.4106C14.2972 18.7 14.1525 18.8447 14.0762 19.0287C14 19.2128 14 19.4174 14 19.8268Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var u3,l3=L(()=>{u3=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 15L16 21M22 21L16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var d3,p3=L(()=>{d3=[["path",{d:"M7 19H13C15.8284 19 17.2426 19 18.1213 18.1213C19 17.2426 19 15.8284 19 13V10M19 10C19.7002 10 21.0085 11.9943 21.5 12.5M19 10C18.2998 10 16.9915 11.9943 16.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 7L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"5",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"19",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"5",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var f3,m3=L(()=>{f3=[["path",{d:"M6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20C13.1046 20 14 19.1046 14 18C14 16.8954 13.1046 16 12 16C10.8954 16 10 16.8954 10 18C10 19.1046 10.8954 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.01734 8.74067C6.01734 10.4142 5.77537 12.1995 9.22051 11.9855H12.0053M17.9929 8.57617C18.1259 11.9855 16.9199 11.7648 15.7861 11.9855H12.0053M12.0053 15.7001V11.9855",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var h3,g3=L(()=>{h3=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var du,Tm=L(()=>{du=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var C3,k3=L(()=>{C3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var y3,b3=L(()=>{y3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.125 11H18M18.25 11C18.25 11.1381 18.1381 11.25 18 11.25C17.8619 11.25 17.75 11.1381 17.75 11C17.75 10.8619 17.8619 10.75 18 10.75C18.1381 10.75 18.25 10.8619 18.25 11Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.125 6H18M18.25 6C18.25 6.13807 18.1381 6.25 18 6.25C17.8619 6.25 17.75 6.13807 17.75 6C17.75 5.86193 17.8619 5.75 18 5.75C18.1381 5.75 18.25 5.86193 18.25 6Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]]});var v3,w3=L(()=>{v3=[["path",{d:"M10 20.5675C6.57143 21.7248 3.71429 20.5675 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 22V18.7579C10 18.1596 10.1839 17.6396 10.4804 17.1699C10.6838 16.8476 10.5445 16.3904 10.1771 16.2894C7.13394 15.4528 5 14.1077 5 9.64606C5 8.48611 5.38005 7.39556 6.04811 6.4464C6.21437 6.21018 6.29749 6.09208 6.31748 5.9851C6.33746 5.87813 6.30272 5.73852 6.23322 5.45932C5.95038 4.32292 5.96871 3.11619 6.39322 2.02823C6.39322 2.02823 7.27042 1.74242 9.26698 2.98969C9.72282 3.27447 9.95075 3.41686 10.1515 3.44871C10.3522 3.48056 10.6206 3.41384 11.1573 3.28041C11.8913 3.09795 12.6476 3 13.5 3C14.3524 3 15.1087 3.09795 15.8427 3.28041C16.3794 3.41384 16.6478 3.48056 16.8485 3.44871C17.0493 3.41686 17.2772 3.27447 17.733 2.98969C19.7296 1.74242 20.6068 2.02823 20.6068 2.02823C21.0313 3.11619 21.0496 4.32292 20.7668 5.45932C20.6973 5.73852 20.6625 5.87813 20.6825 5.9851C20.7025 6.09207 20.7856 6.21019 20.9519 6.4464C21.6199 7.39556 22 8.48611 22 9.64606C22 14.1077 19.8661 15.4528 16.8229 16.2894C16.4555 16.3904 16.3162 16.8476 16.5196 17.1699C16.8161 17.6396 17 18.1596 17 18.7579V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var x3,I3=L(()=>{x3=[["path",{d:"M3.88884 9.66294C4.39329 10 5.09552 10 6.49998 10C7.90445 10 8.60668 10 9.11113 9.66294C9.32951 9.51702 9.51701 9.32952 9.66292 9.11114C9.99998 8.60669 9.99998 7.90446 9.99998 6.5C9.99998 5.09554 9.99998 4.39331 9.66292 3.88886C9.51701 3.67048 9.32951 3.48298 9.11113 3.33706C8.60668 3 7.90445 3 6.49998 3C5.09552 3 4.39329 3 3.88884 3.33706C3.67046 3.48298 3.48296 3.67048 3.33705 3.88886C2.99998 4.39331 2.99998 5.09554 2.99998 6.5C2.99998 7.90446 2.99998 8.60669 3.33705 9.11114C3.48296 9.32952 3.67046 9.51702 3.88884 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.8888 9.66294C15.3933 10 16.0955 10 17.5 10C18.9044 10 19.6067 10 20.1111 9.66294C20.3295 9.51702 20.517 9.32952 20.6629 9.11114C21 8.60669 21 7.90446 21 6.5C21 5.09554 21 4.39331 20.6629 3.88886C20.517 3.67048 20.3295 3.48298 20.1111 3.33706C19.6067 3 18.9044 3 17.5 3C16.0955 3 15.3933 3 14.8888 3.33706C14.6705 3.48298 14.483 3.67048 14.337 3.88886C14 4.39331 14 5.09554 14 6.5C14 7.90446 14 8.60669 14.337 9.11114C14.483 9.32952 14.6705 9.51702 14.8888 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.88884 20.6629C4.39329 21 5.09552 21 6.49998 21C7.90445 21 8.60668 21 9.11113 20.6629C9.32951 20.517 9.51701 20.3295 9.66292 20.1111C9.99998 19.6067 9.99998 18.9045 9.99998 17.5C9.99998 16.0955 9.99998 15.3933 9.66292 14.8889C9.51701 14.6705 9.32951 14.483 9.11113 14.3371C8.60668 14 7.90445 14 6.49998 14C5.09552 14 4.39329 14 3.88884 14.3371C3.67046 14.483 3.48296 14.6705 3.33705 14.8889C2.99998 15.3933 2.99998 16.0955 2.99998 17.5C2.99998 18.9045 2.99998 19.6067 3.33705 20.1111C3.48296 20.3295 3.67046 20.517 3.88884 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.8888 20.6629C15.3933 21 16.0955 21 17.5 21C18.9044 21 19.6067 21 20.1111 20.6629C20.3295 20.517 20.517 20.3295 20.6629 20.1111C21 19.6067 21 18.9045 21 17.5C21 16.0955 21 15.3933 20.6629 14.8889C20.517 14.6705 20.3295 14.483 20.1111 14.3371C19.6067 14 18.9044 14 17.5 14C16.0955 14 15.3933 14 14.8888 14.3371C14.6705 14.483 14.483 14.6705 14.337 14.8889C14 15.3933 14 16.0955 14 17.5C14 18.9045 14 19.6067 14.337 20.1111C14.483 20.3295 14.6705 20.517 14.8888 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var _3,S3=L(()=>{_3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["ellipse",{cx:"12",cy:"12",rx:"4",ry:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var L3,P3=L(()=>{L3=[["path",{d:"M20.4999 16.5V8.5C20.4999 6.14298 20.4999 4.96447 19.7676 4.23223C19.0354 3.5 17.8569 3.5 15.4999 3.5H8.49988C6.14286 3.5 4.96434 3.5 4.23211 4.23223C3.49988 4.96447 3.49988 6.14298 3.49988 8.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.9841 20.5H2.01567C1.63273 20.5 1.38367 20.1088 1.55493 19.7764L3.49988 16.5H20.4999L22.4448 19.7764C22.6161 20.1088 22.367 20.5 21.9841 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var M3,R3=L(()=>{M3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var T3,$3=L(()=>{T3=[["path",{d:"M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 2.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var A3,D3=L(()=>{A3=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.5 12L2.50078 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var E3,N3=L(()=>{E3=[["path",{d:"M8 20C7.48595 20.6974 7.2774 20.9401 6.85472 20.9929C6.43205 21.0457 6.13982 20.8037 5.55537 20.3197C3.38109 18.5193 2 15.8253 2 12.8147C2 7.39421 6.47715 3 12 3C17.5228 3 22 7.39421 22 12.8147C22 15.8253 20.6189 18.5193 18.4446 20.3197C17.8602 20.8037 17.568 21.0457 17.1453 20.9929C16.7226 20.9401 16.514 20.6974 16 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 10.5L18 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"12",cy:"12",r:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var O3,z3=L(()=>{O3=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Z3,j3=L(()=>{Z3=[["path",{d:"M2.99609 18H8.99609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 15C15.9961 15 12.9961 17.2095 12.9961 18C12.9961 18.7906 15.9961 21 15.9961 21M13.9961 18L14.9961 18C17.8245 18 19.2387 18 20.1174 17.1213C20.9961 16.2427 20.9961 14.8284 20.9961 12V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.99609 11H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.99609 4H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var W3,V3=L(()=>{W3=[["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H20.6C21.7583 10 22 10.2417 22 11.4V12.6C22 13.7583 21.7583 14 20.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H20.6C21.7583 18 22 18.2417 22 19.4V20.6C22 21.7583 21.7583 22 20.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var F3,H3=L(()=>{F3=[["path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var B3,U3=L(()=>{B3=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var G3,K3=L(()=>{G3=[["path",{d:"M2 19L8.91302 14.2905C11.4387 12.5698 12.5613 12.5698 15.087 14.2905L22 19",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01592 14.551C2.08186 17.5843 2.11484 19.1009 3.24611 20.2241C4.37738 21.3473 5.95183 21.3862 9.10072 21.4641C11.0393 21.512 12.9607 21.512 14.8993 21.4641C18.0482 21.3862 19.6226 21.3473 20.7539 20.2241C21.8852 19.1009 21.9181 17.5843 21.9841 14.551C22.0164 13.0649 21.9995 11.5934 21.9334 10.0921C21.8924 9.15964 21.8719 8.69341 21.6354 8.27984C21.3989 7.86628 20.9913 7.59935 20.176 7.0655L16.4152 4.60286C14.2742 3.20096 13.2038 2.5 12 2.5C10.7962 2.5 9.72577 3.20095 7.58483 4.60286L3.82397 7.0655C3.00869 7.59935 2.60106 7.86628 2.36459 8.27984C2.12812 8.69341 2.1076 9.15965 2.06656 10.0921C2.00049 11.5934 1.98361 13.0649 2.01592 14.551Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 9.5L17.7346 12.6072C16.7004 13.3606 15.8504 14 14.5 14M2 9.5L6.26538 12.6072C7.29955 13.3606 8.14961 14 9.5 14",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var q3,Y3=L(()=>{q3=[["path",{d:"M4 5L16 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var J3,X3=L(()=>{J3=[["path",{d:"M13 3.02144C12.6777 3.00721 12.3445 2.99998 12 2.99998C4.13281 2.99998 2 7.02942 2 12C2 14.0712 2.37034 15.979 3.37161 17.5C4.63281 19.5 3.99253 21.3333 3 22C4.61547 22 5.70211 21.4858 6.39239 20.9766C6.88252 20.615 7.50688 20.4364 8.0984 20.5814C9.20689 20.8533 10.4991 21 12 21C19.1328 21 22 16.9705 22 12C22 11.3126 21.9643 10.6432 21.8812 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1248 12H11.9998M16.125 12H16M8.125 12H8M12.2498 12C12.2498 12.1381 12.1379 12.25 11.9998 12.25C11.8618 12.25 11.7498 12.1381 11.7498 12C11.7498 11.8619 11.8618 11.75 11.9998 11.75C12.1379 11.75 12.2498 11.8619 12.2498 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 4.99998H22M19 1.99998L19 7.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Q3,e6=L(()=>{Q3=[["path",{d:"M12 18V22M12 18H11.5208C8.11765 18 5.28262 15.3914 5 12M12 18H12.4792C15.8824 18 18.7174 15.3914 19 12M12 22H15M12 22H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V11C16 13.2091 14.2091 15 12 15C9.79086 15 8 13.2091 8 11V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var t6,n6=L(()=>{t6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var r6,o6=L(()=>{r6=[["path",{d:"M8 17.625L20 17.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 14.625L20 17.625L17 20.625",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 3.625L20 3.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 10.625L20 10.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 3.625H4.25M4.5 3.625C4.5 3.76307 4.38807 3.875 4.25 3.875C4.11193 3.875 4 3.76307 4 3.625C4 3.48693 4.11193 3.375 4.25 3.375C4.38807 3.375 4.5 3.48693 4.5 3.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 10.625H4.25M4.5 10.625C4.5 10.7631 4.38807 10.875 4.25 10.875C4.11193 10.875 4 10.7631 4 10.625C4 10.4869 4.11193 10.375 4.25 10.375C4.38807 10.375 4.5 10.4869 4.5 10.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M4.375 17.625H4.25M4.5 17.625C4.5 17.7631 4.38807 17.875 4.25 17.875C4.11193 17.875 4 17.7631 4 17.625C4 17.4869 4.11193 17.375 4.25 17.375C4.38807 17.375 4.5 17.4869 4.5 17.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]]});var i6,s6=L(()=>{i6=[["path",{d:"M10.5 8H18.5M10.5 12H13M18.5 12H16M10.5 16H13M18.5 16H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5H6C4.11438 7.5 3.17157 7.5 2.58579 8.08579C2 8.67157 2 9.61438 2 11.5V18C2 19.3807 3.11929 20.5 4.5 20.5C5.88071 20.5 7 19.3807 7 18V7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.5H11C10.07 3.5 9.60504 3.5 9.22354 3.60222C8.18827 3.87962 7.37962 4.68827 7.10222 5.72354C7 6.10504 7 6.57003 7 7.5V18C7 19.3807 5.88071 20.5 4.5 20.5H16C18.8284 20.5 20.2426 20.5 21.1213 19.6213C22 18.7426 22 17.3284 22 14.5V9.5C22 6.67157 22 5.25736 21.1213 4.37868C20.2426 3.5 18.8284 3.5 16 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var a6,c6=L(()=>{a6=[["path",{d:"M12 22C11.1818 22 10.4002 21.6754 8.83693 21.0262C4.94564 19.4101 3 18.6021 3 17.2429V7.74463M12 22C12.8182 22 13.5998 21.6754 15.1631 21.0262C19.0544 19.4101 21 18.6021 21 17.2429V7.74463M12 22V12.1687M3 7.74463C3 8.3485 3.80157 8.72983 5.40472 9.49248L8.32592 10.8822C10.1288 11.7399 11.0303 12.1687 12 12.1687M3 7.74463C3 7.14076 3.80157 6.75944 5.40472 5.99678L7.5 5M21 7.74463C21 8.3485 20.1984 8.72983 18.5953 9.49248L15.6741 10.8822C13.8712 11.7399 12.9697 12.1687 12 12.1687M21 7.74463C21 7.14076 20.1984 6.75944 18.5953 5.99678L16.5 5M6 13.1518L8 14.135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.0037 2L12.0037 8.99995M12.0037 8.99995C12.2668 9.00351 12.5263 8.81972 12.7178 8.59534L14 7.06174M12.0037 8.99995C11.7499 8.99652 11.4929 8.81368 11.2897 8.59534L10 7.06174",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var u6,l6=L(()=>{u6=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var d6,p6=L(()=>{d6=[["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var f6,m6=L(()=>{f6=[["path",{d:"M7.5 8C6.95863 8.1281 6.49932 8.14239 5.99268 8.45891C5.07234 9.03388 4.85108 9.71674 5.08821 10.7612C5.94028 14.5139 9.48599 18.0596 13.2388 18.9117C14.2834 19.1489 14.9661 18.928 15.5416 18.0077C15.8411 17.5288 15.8716 17.0081 16 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7.79915C12.1776 7.77794 12.3182 7.74034 12.4295 7.68235C13.3997 7.17686 13.9291 5.53361 14.4498 4.60009C14.9311 3.73715 15.1718 3.30567 15.7379 3.10227C16.3041 2.89888 16.6448 3.02205 17.3262 3.26839C18.9197 3.8445 20.1555 5.08032 20.7316 6.6738C20.9779 7.35521 21.1011 7.69591 20.8977 8.26204C20.6943 8.82817 20.2628 9.06884 19.3999 9.55018C18.4608 10.074 16.7954 10.6108 16.2905 11.5898C16.2345 11.6983 16.1978 11.8327 16.1769 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var h6,g6=L(()=>{h6=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var C6,k6=L(()=>{C6=[["path",{d:"M14 8V11M10 11V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00297 12.0267C7.95812 11.4726 8.42638 11 9.02009 11H14.9799C15.5736 11 16.0419 11.4726 15.997 12.0267L15.8745 13.5403C15.7864 14.6285 15.4008 15.6771 14.7546 16.5856L14.3541 17.1487C13.9759 17.6805 13.3385 18 12.6558 18H11.3442C10.6615 18 10.0241 17.6805 9.64588 17.1487L9.24535 16.5856C8.59923 15.6771 8.2136 14.6285 8.12551 13.5403L8.00297 12.0267Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 21.2109C19.5318 19.6644 22 16.1323 22 12.0224C22 6.4872 17.5228 2 12 2C6.47715 2 2 6.4872 2 12.0224C2 17.2199 5.94741 21.4933 11.0014 21.9955C11.551 22.0501 12 21.5962 12 21.0426V18.0359",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var y6,b6=L(()=>{y6=[["path",{d:"M12 7.5V13.8636M15.5 10.6818H8.5M15.5 16.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var v6,w6=L(()=>{v6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var x6,I6=L(()=>{x6=[["path",{d:"M12.828 6.00096C12.9388 5.68791 12.999 5.35099 12.999 5C12.999 3.34315 11.6559 2 9.99904 2C8.34219 2 6.99904 3.34315 6.99904 5C6.99904 5.35099 7.05932 5.68791 7.17008 6.00096C4.88532 6.0093 3.66601 6.09039 2.87772 6.87868C2.08951 7.66689 2.00836 8.88603 2 11.1704C2.31251 11.06 2.64876 11 2.99904 11C4.6559 11 5.99904 12.3431 5.99904 14C5.99904 15.6569 4.6559 17 2.99904 17C2.64876 17 2.31251 16.94 2 16.8296C2.00836 19.114 2.08951 20.3331 2.87772 21.1213C3.66593 21.9095 4.88508 21.9907 7.16941 21.999C7.05908 21.6865 6.99904 21.3503 6.99904 21C6.99904 19.3431 8.34219 18 9.99904 18C11.6559 18 12.999 19.3431 12.999 21C12.999 21.3503 12.939 21.6865 12.8287 21.999C15.113 21.9907 16.3322 21.9095 17.1204 21.1213C17.9086 20.333 17.9897 19.1137 17.9981 16.829C18.3111 16.9397 18.648 17 18.999 17C20.6559 17 21.999 15.6569 21.999 14C21.999 12.3431 20.6559 11 18.999 11C18.648 11 18.3111 11.0603 17.9981 11.171C17.9897 8.88627 17.9086 7.66697 17.1204 6.87868C16.3321 6.09039 15.1128 6.0093 12.828 6.00096Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var _6,S6=L(()=>{_6=[["path",{d:"M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var L6,P6=L(()=>{L6=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var M6,R6=L(()=>{M6=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.5C9 11.5 10.4079 11.7519 11 13.5C11 13.5 12.5 10.5 15 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var T6,$6=L(()=>{T6=[["path",{d:"M21.0477 3.05293C18.8697 0.707363 2.48648 6.4532 2.50001 8.551C2.51535 10.9299 8.89809 11.6617 10.6672 12.1581C11.7311 12.4565 12.016 12.7625 12.2613 13.8781C13.3723 18.9305 13.9301 21.4435 15.2014 21.4996C17.2278 21.5892 23.1733 5.342 21.0477 3.05293Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.4999 12.5L14.9999 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var A6,D6=L(()=>{A6=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91555C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91555C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 14.5L22 14.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 18H7M10 18H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var E6,N6=L(()=>{E6=[["path",{d:"M2 12C2 8.3109 2 6.46633 2.81382 5.1588C3.1149 4.67505 3.48891 4.2543 3.91891 3.91557C5.08116 3.00003 6.72077 3.00003 10 3.00003H14C17.2792 3.00003 18.9188 3.00003 20.0811 3.91557C20.5111 4.2543 20.8851 4.67505 21.1862 5.1588C22 6.46633 22 8.3109 22 12C22 15.6892 22 17.5337 21.1862 18.8413C20.8851 19.325 20.5111 19.7458 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7458 3.1149 19.325 2.81382 18.8413C2 17.5337 2 15.6892 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 3.00003L14.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 7.00006H19M18 10.0001H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var O6,z6=L(()=>{O6=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Z6,j6=L(()=>{Z6=[["path",{d:"M11.0001 8L19.0001 8.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 12H16.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.0001 16H14.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.0001 4H21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M5.5 21V3M5.5 21C4.79977 21 3.49153 19.0057 3 18.5M5.5 21C6.20023 21 7.50847 19.0057 8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var W6,V6=L(()=>{W6=[["path",{d:"M4 14H8.42109C9.35119 14 9.81624 14 9.94012 14.2801C10.064 14.5603 9.74755 14.8963 9.11466 15.5684L5.47691 19.4316C4.84402 20.1037 4.52757 20.4397 4.65145 20.7199C4.77533 21 5.24038 21 6.17048 21H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 9L6.10557 4.30527C6.49585 3.43509 6.69098 3 7 3C7.30902 3 7.50415 3.43509 7.89443 4.30527L10 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V4M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var F6,H6=L(()=>{F6=[["path",{d:"M7 20.9994V14.9481C7 14.3736 7 14.0863 6.76959 14.0149C6.26306 13.8577 5.5 14.999 5.5 14.999M7 20.9994H5.5M7 20.9994H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 6.5V4.75C9 3.92504 9 3.51256 8.70711 3.25628C8.41421 3 7.94281 3 7 3C6.05719 3 5.58579 3 5.29289 3.25628C5 3.51256 5 3.92504 5 4.75C5 5.57496 5 5.98744 5.29289 6.24372C5.58579 6.5 6.05719 6.5 7 6.5H9ZM9 6.5V7.375C9 8.61244 9 9.23116 8.56066 9.61558C8.12132 10 7.41421 10 6 10H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5001 19.999V3.99902M16.5001 19.999C15.7998 19.999 14.4916 18.0047 14.0001 17.499M16.5001 19.999C17.2003 19.999 18.5085 18.0047 19.0001 17.499",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var B6,U6=L(()=>{B6=[["path",{d:"M7 9.99936V3.94812C7 3.3736 7 3.08634 6.76959 3.01485C6.26306 2.85769 5.5 3.99902 5.5 3.99902M7 9.99936H5.5M7 9.99936H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 17.4991V15.7491C9 14.9242 9 14.5117 8.70711 14.2554C8.41421 13.9991 7.94281 13.9991 7 13.9991C6.05719 13.9991 5.58579 13.9991 5.29289 14.2554C5 14.5117 5 14.9242 5 15.7491C5 16.5741 5 16.9866 5.29289 17.2429C5.58579 17.4991 6.05719 17.4991 7 17.4991H9ZM9 17.4991V18.3741C9 19.6116 9 20.2303 8.56066 20.6147C8.12132 20.9991 7.41421 20.9991 6 20.9991H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 19.9991V3.99915M16.5 19.9991C15.7998 19.9991 14.4915 18.0048 14 17.4991M16.5 19.9991C17.2002 19.9991 18.5085 18.0048 19 17.4991",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var G6,K6=L(()=>{G6=[["path",{d:"M4 3H8.42109C9.35119 3 9.81624 3 9.94012 3.28013C10.064 3.56026 9.74755 3.89632 9.11466 4.56842L5.47691 8.43158C4.84402 9.10368 4.52757 9.43974 4.65145 9.71987C4.77533 10 5.24038 10 6.17048 10H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 21L6.10557 16.3053C6.49585 15.4351 6.69098 15 7 15C7.30902 15 7.50415 15.4351 7.89443 16.3053L10 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V3.99999M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var q6,Y6=L(()=>{q6=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}]]});var J6,X6=L(()=>{J6=[["path",{d:"M12 14.5V17.5M13 14.5C13 15.0523 12.5523 15.5 12 15.5C11.4477 15.5 11 15.0523 11 14.5C11 13.9477 11.4477 13.5 12 13.5C12.5523 13.5 13 13.9477 13 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.8664 3.25221 16.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Q6,eC=L(()=>{Q6=[["path",{d:"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var tC,nC=L(()=>{tC=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var rC,oC=L(()=>{rC=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 9H16.5C18.9853 9 21 11.0147 21 13.5C21 15.9853 18.9853 18 16.5 18H12M12 18C12 17.1597 14.3932 15.5898 15 15M12 18C12 18.8403 14.3932 20.4102 15 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var iC,sC=L(()=>{iC=[["path",{d:"M12 8V12L13.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5454 16.4534C21.1818 17.337 22 17.7789 22 18.5C22 19.2211 21.1818 19.663 19.5454 20.5466L18.4311 21.1484C17.1744 21.827 16.5461 22.1663 16.2439 21.9196C15.504 21.3154 16.6567 19.7561 16.9403 19.2037C17.2277 18.644 17.2225 18.3459 16.9403 17.7963C16.6567 17.2439 15.504 15.6846 16.2439 15.0804C16.5461 14.8337 17.1744 15.173 18.4311 15.8516L19.5454 16.4534Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.0261 21.948C12.6888 21.9824 12.3464 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.6849 21.9311 13.3538 21.8 14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var aC,cC=L(()=>{aC=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 11L12 17.5M9 13.5C9.58984 12.8932 11.1597 10.5 12 10.5C12.8403 10.5 14.4102 12.8932 15 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var uC,lC=L(()=>{uC=[["path",{d:"M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"6.99988",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var dC,pC=L(()=>{dC=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var fC,mC=L(()=>{fC=[["path",{d:"M22 8C22 8 18 14 12 14C6 14 2 8 2 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 13.5L16.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 11L22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2 13L4 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9 13.5L7.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var hC,gC=L(()=>{hC=[["path",{d:"M18.5016 19.1217L21 21.6217M20 15.1217C20 12.0842 17.5376 9.62173 14.5 9.62173C11.4624 9.62173 9 12.0842 9 15.1217C9 18.1593 11.4624 20.6217 14.5 20.6217C17.5376 20.6217 20 18.1593 20 15.1217Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 13.1217V17.1217M16.5 15.1217H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3.62173H14M3 10.6217V14.6217M6.5 21.6217C4.567 21.6217 3 20.0547 3 18.1217M17.5 3.62173C19.433 3.62173 21 5.18873 21 7.12173M3 7.12173C3 5.18873 4.567 3.62173 6.5 3.62173",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var CC,kC=L(()=>{CC=[["path",{d:"M18.5016 18.5L21 21M20 14.5C20 11.4624 17.5376 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 17.5376 11.4624 20 14.5 20C17.5376 20 20 17.5376 20 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 14.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3H14M3 10V14M6.5 21C4.567 21 3 19.433 3 17.5M17.5 3C19.433 3 21 4.567 21 6.5M3 6.5C3 4.567 4.567 3 6.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var bC={};St(bC,{EXTENDED_ICON_MAP:()=>yC});var Y_,J_,X_,yC,vC=L(()=>{"use strict";_g();Lg();Mg();Tg();Ag();Eg();Og();Zg();Wg();Fg();Bg();Gg();qg();Jg();Qg();t7();r7();i7();a7();u7();d7();p7();m7();g7();k7();b7();w7();I7();S7();P7();R7();$7();D7();N7();z7();j7();V7();H7();U7();K7();Y7();X7();e3();n3();o3();s3();Im();c3();l3();p3();m3();g3();Tm();k3();b3();Tm();w3();I3();S3();P3();R3();$3();D3();N3();z3();j3();V3();H3();U3();K3();Y3();X3();e6();n6();o6();s6();c6();l6();p6();m6();g6();k6();b6();w6();I6();S6();P6();R6();$6();D6();N6();z6();j6();V6();H6();U6();K6();Y6();X6();eC();nC();oC();sC();cC();lC();pC();mC();gC();kC();Mm();Y_=[["path",{d:"M21.8205 10.4127C22.062 11.8519 22.1827 12.5715 21.2423 13.9326C21.1459 14.0722 20.8966 14.3713 20.777 14.4911C19.6103 15.6586 18.4308 15.6586 16.0716 15.6586H14.1392C13.5085 15.6586 13.1931 15.6586 12.9639 15.7142C11.9586 15.9581 11.3031 16.9391 11.453 17.9755C11.4872 18.2118 11.6043 18.5085 11.8386 19.102C11.9345 19.3449 11.9824 19.4664 12.0136 19.7304C12.1292 20.7084 11.0869 21.9508 10.1158 21.9926C9.85358 22.0039 9.83681 22.0002 9.80326 21.9926C7.66174 21.51 5.66204 20.3123 4.18389 18.4421C0.736789 14.0808 1.43146 7.71364 5.73548 4.22064C10.0395 0.727643 16.323 1.43156 19.7701 5.79289C20.868 7.1819 21.5457 8.77438 21.8205 10.4127Z",fill:"none",fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.36719 7.74976H7.24219M7.49219 7.74976C7.49219 7.88783 7.38026 7.99976 7.24219 7.99976C7.10412 7.99976 6.99219 7.88783 6.99219 7.74976C6.99219 7.61169 7.10412 7.49976 7.24219 7.49976C7.38026 7.49976 7.49219 7.61169 7.49219 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.36719 15.7498H7.24219M7.49219 15.7498C7.49219 15.8878 7.38026 15.9998 7.24219 15.9998C7.10412 15.9998 6.99219 15.8878 6.99219 15.7498C6.99219 15.6117 7.10412 15.4998 7.24219 15.4998C7.38026 15.4998 7.49219 15.6117 7.49219 15.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.8672 5.74976H11.7422M11.9922 5.74976C11.9922 5.88783 11.8803 5.99976 11.7422 5.99976C11.6041 5.99976 11.4922 5.88783 11.4922 5.74976C11.4922 5.61169 11.6041 5.49976 11.7422 5.49976C11.8803 5.49976 11.9922 5.61169 11.9922 5.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16.3672 7.74976H16.2422M16.4922 7.74976C16.4922 7.88783 16.3803 7.99976 16.2422 7.99976C16.1041 7.99976 15.9922 7.88783 15.9922 7.74976C15.9922 7.61169 16.1041 7.49976 16.2422 7.49976C16.3803 7.49976 16.4922 7.61169 16.4922 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.3672 11.7498H18.2422M18.4922 11.7498C18.4922 11.8878 18.3803 11.9998 18.2422 11.9998C18.1041 11.9998 17.9922 11.8878 17.9922 11.7498C17.9922 11.6117 18.1041 11.4998 18.2422 11.4998C18.3803 11.4998 18.4922 11.6117 18.4922 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M5.86719 11.7498H5.74219M5.99219 11.7498C5.99219 11.8878 5.88026 11.9998 5.74219 11.9998C5.60412 11.9998 5.49219 11.8878 5.49219 11.7498C5.49219 11.6117 5.60412 11.4998 5.74219 11.4998C5.88026 11.4998 5.99219 11.6117 5.99219 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],J_=[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",fill:"currentColor",key:"0"}]],X_=[["path",{d:"M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943",fill:"currentColor",key:"0"}]],yC={AiBrain01:Ig,AiBrowser:Sg,AiContentGenerator01:Pg,AlignLeft:q3,AppWindow:Rm,ArchiveRestore:aC,ArrowDown:Rg,ArrowLeft:Dg,ArrowRight:Vg,ArrowReloadHorizontal:jg,ArrowUp:Yg,ArrowUpDown:e7,ArrowTurnBackward:Hg,ArrowTurnForward:Ug,ArrowUpRight:n7,Beaker:tC,BellDot:s7,Browser:Rm,Brain:l7,Calendar:f7,CalendarCheckOut02:h7,ChartColumn:C7,ChevronUp:Kg,ChevronsDown:$g,ChevronsUp:Xg,CircleArrowShrink:y7,Clean:v7,Clock:x7,ClockArrowUp:L7,ClockArrowDown:_7,Cloud:M7,CloudOff:T7,Coffee:A7,Columns2:T3,CornerDownLeft:Ng,CornerDownRight:zg,Discord:W7,DiscordLogo:J_,DateTime:Z7,Github:v3,GithubLogo:X_,DragDropHorizontal:F7,DragDropVertical:B7,EditFile:G7,ElectricPlugs:q7,Eye:dC,EyeOff:fC,Explore:c7,ExternalLink:O3,FileDiff:y6,File:r3,FileAttachment:t3,FileQuestion:i3,FileText:Q7,FolderOpen:uu,FolderEdit:a3,FolderMinus:u3,Fork:f3,GitBranch:d3,GitMerge:h3,GitPullRequest:du,GitPullRequestArrow:du,GitPullRequestClosed:C3,GitPullRequestDraft:y3,Globe:_3,GridView:x3,Laptop:L3,Layers:M3,Limitation:E3,ListEnd:Z3,ListView:W3,Lock:F3,Mail:B3,MailOpen:G3,Maximize2:J7,Mic:Q3,Minus:t6,Minimize2:E7,MoveTo:r6,NewTab:O7,News01:i6,PackageReceive:a6,Palette:Y_,PanelBottom:A6,PanelRight:E6,Paperclip:o7,Pause:u6,Pin:d6,PinOff:f6,Play:h6,Plug02:C6,Plus:v6,Puzzle:x6,Repeat:L6,SecurityCheck:M6,RotateCcw:_6,Rows2:A3,Sent:T6,SideChat:J3,Smartphone:O6,Sort:Z6,SortingAZ02:W6,SortingZA01:G6,SortingOneNine:B6,SortingNineOne:F6,Square:q6,SquareUnlock02:J6,Star:Q6,TextWrap:rC,TimeSchedule:iC,UserRound:uC,ZoomIn:hC,ZoomOut:CC};wg(yC)});var Au=globalThis.__bbPluginRuntime;if(Au==null||Au.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ss=Au.pluginSdkApp,dL="default"in ss?ss.default:ss,{Markdown:pL,ThreadChat:fL,ThreadTitle:mL,UrlLink:hL,definePluginApp:ph,experimental_BranchPicker:gL,experimental_Diff:CL,experimental_FileLink:kL,experimental_Icon:B,experimental_NewThreadComposer:yL,experimental_PermissionModePicker:bL,experimental_ProviderIcon:as,experimental_ProviderModelPicker:vL,experimental_SourceCode:wL,experimental_useAppPanel:xL,experimental_useBranches:IL,experimental_useCheckoutState:_L,experimental_useCodeTheme:SL,experimental_useFixedTabTarget:LL,experimental_useProviders:fh,experimental_useSidebarThreadActions:mh,experimental_useSidebarThreadPullRequest:cs,experimental_useSidebarThreadSplit:hh,experimental_useSidebarThreads:gh,useBbContext:PL,useBbNavigate:ML,useComposer:RL,useComposerView:TL,useEnvironmentProviders:Ch,useRealtime:fn,useRealtimeConnectionState:mn,useRpc:hn,useSdk:kh,useSettings:$L,useSidebarSplitLayout:yh,useSidebarThreadDraft:bh,useSidebarThreadDraftIds:vh,useSidebarThreadRowStatus:wh,useSidebarThreadRowStatuses:AL,useSidebarThreadShortcut:xh}=ss;var ot={};St(ot,{Activity:()=>Yk,Children:()=>ls,Component:()=>Eu,Fragment:()=>hr,Profiler:()=>Jk,PureComponent:()=>Xk,StrictMode:()=>Qk,Suspense:()=>ey,act:()=>ty,cache:()=>ny,cacheSignal:()=>ry,captureOwnerStack:()=>oy,cloneElement:()=>gr,createContext:()=>we,createElement:()=>So,createRef:()=>iy,default:()=>qe,forwardRef:()=>H,isValidElement:()=>Cr,lazy:()=>sy,memo:()=>pt,startTransition:()=>ay,unstable_useCacheRefresh:()=>cy,use:()=>uy,useActionState:()=>ly,useCallback:()=>Z,useContext:()=>xe,useDebugValue:()=>dy,useDeferredValue:()=>py,useEffect:()=>z,useEffectEvent:()=>fy,useId:()=>gn,useImperativeHandle:()=>my,useInsertionEffect:()=>hy,useLayoutEffect:()=>rt,useMemo:()=>q,useOptimistic:()=>gy,useReducer:()=>Nu,useRef:()=>A,useState:()=>E,useSyncExternalStore:()=>Kt,useTransition:()=>Cy,version:()=>ky});var Du=globalThis.__bbPluginRuntime;if(Du==null||Du.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var us=Du.react,qe="default"in us?us.default:us,{Activity:Yk,Children:ls,Component:Eu,Fragment:hr,Profiler:Jk,PureComponent:Xk,StrictMode:Qk,Suspense:ey,act:ty,cache:ny,cacheSignal:ry,captureOwnerStack:oy,cloneElement:gr,createContext:we,createElement:So,createRef:iy,forwardRef:H,isValidElement:Cr,lazy:sy,memo:pt,startTransition:ay,unstable_useCacheRefresh:cy,use:uy,useActionState:ly,useCallback:Z,useContext:xe,useDebugValue:dy,useDeferredValue:py,useEffect:z,useEffectEvent:fy,useId:gn,useImperativeHandle:my,useInsertionEffect:hy,useLayoutEffect:rt,useMemo:q,useOptimistic:gy,useReducer:Nu,useRef:A,useState:E,useSyncExternalStore:Kt,useTransition:Cy,version:ky}=us;var Ou=globalThis.__bbPluginRuntime;if(Ou==null||Ou.reactDom==null)throw new Error('Cannot load "react-dom": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ds=Ou.reactDom,EL="default"in ds?ds.default:ds,{createPortal:ps,flushSync:NL,preconnect:OL,prefetchDNS:zL,preinit:ZL,preinitModule:jL,preload:WL,preloadModule:VL,requestFormReset:FL,unstable_batchedUpdates:Lo,useFormState:HL,useFormStatus:BL,version:UL}=ds;var Po=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function fs(e){return"nodeType"in e}function Ye(e){var t,n;return e?Zn(e)?e:fs(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ms(e){let{Document:t}=Ye(e);return e instanceof t}function kr(e){return Zn(e)?!1:e instanceof Ye(e).HTMLElement}function Zu(e){return e instanceof Ye(e).SVGElement}function jn(e){return e?Zn(e)?e.document:fs(e)?ms(e)?e:kr(e)||Zu(e)?e.ownerDocument:document:document:document}var qt=Po?rt:z;function hs(e){let t=A(e);return qt(()=>{t.current=e}),Z(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function _h(){let e=A(null),t=Z((r,o)=>{e.current=setInterval(r,o)},[]),n=Z(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function yr(e,t){t===void 0&&(t=[e]);let n=A(e);return qt(()=>{n.current!==e&&(n.current=e)},t),n}function br(e,t){let n=A();return q(()=>{let r=e(n.current);return n.current=r,r},[...t])}function Mo(e){let t=hs(e),n=A(null),r=Z(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function gs(e){let t=A();return z(()=>{t.current=e},[e]),t.current}var zu={};function Ro(e,t){return q(()=>{if(t)return t;let n=zu[e]==null?0:zu[e]+1;return zu[e]=n,e+"-"+n},[e,t])}function Sh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[c,u]of a){let l=i[c];l!=null&&(i[c]=l+e*u)}return i},{...t})}}var Wn=Sh(1),To=Sh(-1);function yy(e){return"clientX"in e&&"clientY"in e}function ju(e){if(!e)return!1;let{KeyboardEvent:t}=Ye(e.target);return t&&e instanceof t}function by(e){if(!e)return!1;let{TouchEvent:t}=Ye(e.target);return t&&e instanceof t}function Cs(e){if(by(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return yy(e)?{x:e.clientX,y:e.clientY}:null}var Ih="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Lh(e){return e.matches(Ih)?e:e.querySelector(Ih)}var vy={display:"none"};function Ph(e){let{id:t,value:n}=e;return qe.createElement("div",{id:t,style:vy},n)}function Mh(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return qe.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Rh(){let[e,t]=E("");return{announce:Z(r=>{r!=null&&t(r)},[]),announcement:e}}var Wh=we(null);function wy(e){let t=xe(Wh);z(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function xy(){let[e]=E(()=>new Set),t=Z(r=>(e.add(r),()=>e.delete(r)),[e]);return[Z(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}var Iy={draggable:`
2
2
  To pick up a draggable item, press the space bar.
3
3
  While dragging, use the arrow keys to move the item.
4
4
  Press space again to drop the item in its new position, or press escape to cancel.
5
- `},Iy={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _y(e){let{announcements:t=Iy,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=xy}=e,{announce:i,announcement:s}=Rh(),a=Ro("DndLiveRegion"),[c,u]=E(!1);if(z(()=>{u(!0)},[]),vy(q(()=>({onDragStart(d){let{active:m}=d;i(t.onDragStart({active:m}))},onDragMove(d){let{active:m,over:f}=d;t.onDragMove&&i(t.onDragMove({active:m,over:f}))},onDragOver(d){let{active:m,over:f}=d;i(t.onDragOver({active:m,over:f}))},onDragEnd(d){let{active:m,over:f}=d;i(t.onDragEnd({active:m,over:f}))},onDragCancel(d){let{active:m,over:f}=d;i(t.onDragCancel({active:m,over:f}))}}),[i,t])),!c)return null;let l=qe.createElement(qe.Fragment,null,qe.createElement(Ph,{id:r,value:o.draggable}),qe.createElement(Mh,{id:a,announcement:s}));return n?fs(l,n):l}var Pe;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pe||(Pe={}));function bs(){}function xs(e,t){return q(()=>({sensor:e,options:t??{}}),[e,t])}function Vh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(()=>[...t].filter(r=>r!=null),[...t])}var Lt=Object.freeze({x:0,y:0});function Sy(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ly(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Py(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function My(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Ry(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ty(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){let c=t.width*t.height,u=e.width*e.height,l=s*a,d=l/(c+u-l);return Number(d.toFixed(4))}return 0}var $y=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:s}=i,a=n.get(s);if(a){let c=Ty(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(Py)};function Ay(e,t){let{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}var Fh=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let o=[];for(let i of t){let{id:s}=i,a=n.get(s);if(a&&Ay(r,a)){let u=My(a).reduce((d,m)=>d+Sy(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Ly)};function Dy(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Hh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Lt}function Ey(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}var Ny=Ey(1);function Oy(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zy(e,t,n){let r=Oy(t);if(!r)return e;let{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c}}var Zy={ignoreTransform:!1};function zo(e,t){t===void 0&&(t=Zy);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Ye(e).getComputedStyle(e);u&&(n=zy(n,u,l))}let{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function Th(e){return zo(e,{ignoreTransform:!0})}function jy(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Wy(e,t){return t===void 0&&(t=Ye(e).getComputedStyle(e)),t.position==="fixed"}function Vy(e,t){t===void 0&&(t=Ye(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function Gu(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(hs(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!kr(o)||Zu(o)||n.includes(o))return n;let i=Ye(e).getComputedStyle(o);return o!==e&&Vy(o,i)&&n.push(o),Wy(o,i)?n:r(o.parentNode)}return e?r(e):n}function Bh(e){let[t]=Gu(e,1);return t??null}function Wu(e){return!Po||!e?null:Zn(e)?e:ms(e)?hs(e)||e===jn(e).scrollingElement?window:kr(e)?e:null:null}function Uh(e){return Zn(e)?e.scrollX:e.scrollLeft}function Gh(e){return Zn(e)?e.scrollY:e.scrollTop}function Hu(e){return{x:Uh(e),y:Gh(e)}}var De;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(De||(De={}));function Kh(e){return!Po||!e?!1:e===document.scrollingElement}function qh(e){let t={x:0,y:0},n=Kh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}var Fy={x:.2,y:.2};function Hy(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Fy);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=qh(e),f={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+g.height?(f.y=De.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(f.y=De.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!m&&a>=t.right-g.width?(f.x=De.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!d&&s<=t.left+g.width&&(f.x=De.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:h}}function By(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Yh(e){return e.reduce((t,n)=>Wn(t,Hu(n)),Lt)}function Uy(e){return e.reduce((t,n)=>t+Uh(n),0)}function Gy(e){return e.reduce((t,n)=>t+Gh(n),0)}function Ky(e,t){if(t===void 0&&(t=zo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Bh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var qy=[["x",["left","right"],Uy],["y",["top","bottom"],Gy]],Ao=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=Gu(n),o=Yh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of qy)for(let c of s)Object.defineProperty(this,c,{get:()=>{let u=a(r),l=o[i]-u;return this.rect[c]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Vn=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function Yy(e){let{EventTarget:t}=Ye(e);return e instanceof t?e:jn(e)}function Vu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ct;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ct||(Ct={}));function $h(e){e.preventDefault()}function Jy(e){e.stopPropagation()}var me;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(me||(me={}));var Jh={start:[me.Space,me.Enter],cancel:[me.Esc],end:[me.Space,me.Enter,me.Tab]},Xy=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case me.Right:return{...n,x:n.x+25};case me.Left:return{...n,x:n.x-25};case me.Down:return{...n,y:n.y+25};case me.Up:return{...n,y:n.y-25}}},vr=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Vn(jn(n)),this.windowListeners=new Vn(Ye(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ct.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Ky(r),n(Lt)}handleKeyDown(t){if(ju(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Jh,coordinateGetter:s=Xy,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}let{collisionRect:u}=r.current,l=u?{x:u.left,y:u.top}:Lt;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=To(d,l),f={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let k=t.code,{isTop:I,isRight:y,isLeft:b,isBottom:$,maxScroll:v,minScroll:R}=qh(g),T=By(g),H={x:Math.min(k===me.Right?T.right-T.width/2:T.right,Math.max(k===me.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(k===me.Down?T.bottom-T.height/2:T.bottom,Math.max(k===me.Down?T.top:T.top+T.height/2,d.y))},Y=k===me.Right&&!y||k===me.Left&&!b,te=k===me.Down&&!$||k===me.Up&&!I;if(Y&&H.x!==d.x){let se=g.scrollLeft+m.x,W=k===me.Right&&se<=v.x||k===me.Left&&se>=R.x;if(W&&!m.y){g.scrollTo({left:se,behavior:a});return}W?f.x=g.scrollLeft-se:f.x=k===me.Right?g.scrollLeft-v.x:g.scrollLeft-R.x,f.x&&g.scrollBy({left:-f.x,behavior:a});break}else if(te&&H.y!==d.y){let se=g.scrollTop+m.y,W=k===me.Down&&se<=v.y||k===me.Up&&se>=R.y;if(W&&!m.x){g.scrollTo({top:se,behavior:a});return}W?f.y=g.scrollTop-se:f.y=k===me.Down?g.scrollTop-v.y:g.scrollTop-R.y,f.y&&g.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Wn(To(d,this.referenceCoordinates),f))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};vr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Jh,onActivation:o}=t,{active:i}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Ah(e){return!!(e&&"distance"in e)}function Dh(e){return!!(e&&"delay"in e)}var Do=class{constructor(t,n,r){var o;r===void 0&&(r=Yy(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=jn(s),this.documentListeners=new Vn(this.document),this.listeners=new Vn(r),this.windowListeners=new Vn(Ye(s)),this.initialCoordinates=(o=ks(i))!=null?o:Lt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.DragStart,$h),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),this.windowListeners.add(Ct.ContextMenu,$h),this.documentListeners.add(Ct.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Dh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ah(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ct.Click,Jy,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ct.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let c=(n=ks(t))!=null?n:Lt,u=To(o,c);if(!r&&a){if(Ah(a)){if(a.tolerance!=null&&Vu(u,a.tolerance))return this.handleCancel();if(Vu(u,a.distance))return this.handleStart()}if(Dh(a)&&Vu(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===me.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},Qy={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},vs=class extends Do{constructor(t){let{event:n}=t,r=jn(n.target);super(t,Qy,r)}};vs.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var eb={move:{name:"mousemove"},end:{name:"mouseup"}},Bu;(function(e){e[e.RightClick=2]="RightClick"})(Bu||(Bu={}));var Eo=class extends Do{constructor(t){super(t,eb,jn(t.event.target))}};Eo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Bu.RightClick?!1:(r?.({event:n}),!0)}}];var Fu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},No=class extends Do{constructor(t){super(t,Fu)}static setup(){return window.addEventListener(Fu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Fu.move.name,t)};function t(){}}};No.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var $o;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})($o||($o={}));var ws;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ws||(ws={}));function tb(e){let{acceleration:t,activator:n=$o.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=ws.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,f=rb({delta:d,disabled:!i}),[h,g]=_h(),k=A({x:0,y:0}),I=A({x:0,y:0}),y=q(()=>{switch(n){case $o.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case $o.DraggableRect:return o}},[n,o,c]),b=A(null),$=Z(()=>{let R=b.current;if(!R)return;let T=k.current.x*I.current.x,H=k.current.y*I.current.y;R.scrollBy(T,H)},[]),v=q(()=>a===ws.TreeOrder?[...u].reverse():u,[a,u]);z(()=>{if(!i||!u.length||!y){g();return}for(let R of v){if(r?.(R)===!1)continue;let T=u.indexOf(R),H=l[T];if(!H)continue;let{direction:Y,speed:te}=Hy(R,H,y,t,m);for(let se of["x","y"])f[se][Y[se]]||(te[se]=0,Y[se]=0);if(te.x>0||te.y>0){g(),b.current=R,h($,s),k.current=te,I.current=Y;return}}k.current={x:0,y:0},I.current={x:0,y:0},g()},[t,$,r,g,i,s,JSON.stringify(y),JSON.stringify(f),h,u,v,l,JSON.stringify(m)])}var nb={x:{[De.Backward]:!1,[De.Forward]:!1},y:{[De.Backward]:!1,[De.Forward]:!1}};function rb(e){let{delta:t,disabled:n}=e,r=Cs(t);return br(o=>{if(n||!r||!o)return nb;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[De.Backward]:o.x[De.Backward]||i.x===-1,[De.Forward]:o.x[De.Forward]||i.x===1},y:{[De.Backward]:o.y[De.Backward]||i.y===-1,[De.Forward]:o.y[De.Forward]||i.y===1}}},[n,t,r])}function ob(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return br(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function ib(e,t){return q(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Oo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Oo||(Oo={}));var Uu;(function(e){e.Optimized="optimized"})(Uu||(Uu={}));var Eh=new Map;function sb(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=E(null),{frequency:a,measure:c,strategy:u}=o,l=A(e),d=k(),m=yr(d),f=Z(function(I){I===void 0&&(I=[]),!m.current&&s(y=>y===null?I:y.concat(I.filter(b=>!y.includes(b))))},[m]),h=A(null),g=br(I=>{if(d&&!n)return Eh;if(!I||I===Eh||l.current!==e||i!=null){let y=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){y.set(b.id,b.rect.current);continue}let $=b.node.current,v=$?new Ao(c($),$):null;b.rect.current=v,v&&y.set(b.id,v)}return y}return I},[e,i,n,d,c]);return z(()=>{l.current=e},[e]),z(()=>{d||f()},[n,d]),z(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),z(()=>{d||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{f(),h.current=null},a))},[a,d,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:i!=null};function k(){switch(u){case Oo.Always:return!1;case Oo.BeforeDragging:return n;default:return!n}}}function Xh(e,t){return br(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function ab(e,t){return Xh(e,t)}function cb(e){let{callback:t,disabled:n}=e,r=gs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return z(()=>()=>o?.disconnect(),[o]),o}function Is(e){let{callback:t,disabled:n}=e,r=gs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return z(()=>()=>o?.disconnect(),[o]),o}function ub(e){return new Ao(zo(e),e)}function Nh(e,t,n){t===void 0&&(t=ub);let[r,o]=E(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}let l=t(e);return JSON.stringify(c)===JSON.stringify(l)?c:l})}let s=cb({callback(c){if(e)for(let u of c){let{type:l,target:d}=u;if(l==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=Is({callback:i});return qt(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function lb(e){let t=Xh(e);return Hh(e,t)}var Oh=[];function db(e){let t=A(e),n=br(r=>e?r&&r!==Oh&&e&&t.current&&e.parentNode===t.current.parentNode?r:Gu(e):Oh,[e]);return z(()=>{t.current=e},[e]),n}function pb(e){let[t,n]=E(null),r=A(e),o=Z(i=>{let s=Wu(i.target);s&&n(a=>a?(a.set(s,Hu(s)),new Map(a)):null)},[]);return z(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Wu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Hu(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{let u=Wu(c);u?.removeEventListener("scroll",o)})}},[o,e]),q(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Wn(i,s),Lt):Yh(e):Lt,[e,t])}function zh(e,t){t===void 0&&(t=[]);let n=A(null);return z(()=>{n.current=null},t),z(()=>{let r=e!==Lt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?To(e,n.current):Lt}function fb(e){z(()=>{if(!Po)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function mb(e,t){return q(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function Qh(e){return q(()=>e?jy(e):null,[e])}var Zh=[];function hb(e,t){t===void 0&&(t=zo);let[n]=e,r=Qh(n?Ye(n):null),[o,i]=E(Zh);function s(){i(()=>e.length?e.map(c=>Kh(c)?r:new Ao(t(c),c)):Zh)}let a=Is({callback:s});return qt(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function gb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return kr(t)?t:e}function Cb(e){let{measure:t}=e,[n,r]=E(null),o=Z(u=>{for(let{target:l}of u)if(kr(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=Is({callback:o}),s=Z(u=>{let l=gb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=Mo(s);return q(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var kb=[{sensor:vs,options:{}},{sensor:vr,options:{}}],yb={current:{}},ys={draggable:{measure:Th},droppable:{measure:Th,strategy:Oo.WhileDragging,frequency:Uu.Optimized},dragOverlay:{measure:zo}},Fn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},bb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:bs},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ys,measureDroppableContainers:bs,windowRect:null,measuringScheduled:!1},vb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:bs,draggableNodes:new Map,over:null,measureDroppableContainers:bs},_s=we(vb),wb=we(bb);function xb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fn}}}function Ib(e,t){switch(t.type){case Pe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pe.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pe.DragEnd:case Pe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pe.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Fn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Pe.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let s=new Fn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Pe.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Fn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function _b(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=xe(_s),i=Cs(r),s=Cs(n?.id);return z(()=>{if(!t&&!r&&i&&s!=null){if(!ju(i)||document.activeElement===i.target)return;let a=o.get(s);if(!a)return;let{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let l of[c.current,u.current]){if(!l)continue;let d=Lh(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Sb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Lb(e){return q(()=>({draggable:{...ys.draggable,...e?.draggable},droppable:{...ys.droppable,...e?.droppable},dragOverlay:{...ys.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Pb(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=A(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;qt(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let l=n(u),d=Hh(l,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let m=Bh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var e5=we({...Lt,scaleX:1,scaleY:1}),Cn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Cn||(Cn={}));var t5=pt(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=kb,collisionDetection:d=$y,measuring:m,modifiers:f,...h}=t,g=Nu(Ib,void 0,xb),[k,I]=g,[y,b]=wy(),[$,v]=E(Cn.Uninitialized),R=$===Cn.Initialized,{draggable:{active:T,nodes:H,translate:Y},droppable:{containers:te}}=k,se=T!=null?H.get(T):null,W=A({initial:null,translated:null}),ae=q(()=>{var he;return T!=null?{id:T,data:(he=se?.data)!=null?he:yb,rect:W}:null},[T,se]),re=A(null),[ze,wt]=E(null),[Ge,Nn]=E(null),ht=yr(h,Object.values(h)),Fe=Ro("DndDescribedBy",s),Dt=q(()=>te.getEnabled(),[te]),Te=Lb(m),{droppableRects:Ze,measureDroppableContainers:Et,measuringScheduled:Nt}=sb(Dt,{dragging:R,dependencies:[Y.x,Y.y],config:Te.droppable}),$e=ob(H,T),cn=q(()=>Ge?ks(Ge):null,[Ge]),un=Tu(),On=ab($e,Te.draggable.measure);Pb({activeNode:T!=null?H.get(T):null,config:un.layoutShiftCompensation,initialRect:On,measure:Te.draggable.measure});let He=Nh($e,Te.draggable.measure,On),Be=Nh($e?$e.parentElement:null),Ae=A({activatorEvent:null,active:null,activeNode:$e,collisionRect:null,collisions:null,droppableRects:Ze,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:te,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=te.getNodeFor((n=Ae.current.over)==null?void 0:n.id),fe=Cb({measure:Te.dragOverlay.measure}),Ut=(r=fe.nodeRef.current)!=null?r:$e,dt=R?(o=fe.rect)!=null?o:He:null,ln=!!(fe.nodeRef.current&&fe.rect),ne=lb(ln?null:He),Ot=Qh(Ut?Ye(Ut):null),Ke=db(R?Ce??$e:null),zt=hb(Ke),j=Sb(f,{transform:{x:Y.x-ne.x,y:Y.y-ne.y,scaleX:1,scaleY:1},activatorEvent:Ge,active:ae,activeNodeRect:He,containerNodeRect:Be,draggingNodeRect:dt,over:Ae.current.over,overlayNodeRect:fe.rect,scrollableAncestors:Ke,scrollableAncestorRects:zt,windowRect:Ot}),Se=cn?Wn(cn,Y):null,yo=pb(Ke),gt=zh(yo),is=zh(yo,[He]),Gt=Wn(j,gt),xt=dt?Ny(dt,j):null,It=ae&&xt?d({active:ae,collisionRect:xt,droppableRects:Ze,droppableContainers:Dt,pointerCoordinates:Se}):null,ss=Ry(It,"id"),[_t,bo]=E(null),vo=ln?j:Wn(j,is),Lu=Dy(vo,(i=_t?.rect)!=null?i:null,He),dn=A(null),zn=Z((he,be)=>{let{sensor:ve,options:w}=be;if(re.current==null)return;let _=H.get(re.current);if(!_)return;let P=he.nativeEvent,G=new ve({active:re.current,activeNode:_,event:P,options:w,context:Ae,onAbort(oe){if(!H.get(oe))return;let{onDragAbort:je}=ht.current,Le={id:oe};je?.(Le),y({type:"onDragAbort",event:Le})},onPending(oe,ge,je,Le){if(!H.get(oe))return;let{onDragPending:Io}=ht.current,pn={id:oe,constraint:ge,initialCoordinates:je,offset:Le};Io?.(pn),y({type:"onDragPending",event:pn})},onStart(oe){let ge=re.current;if(ge==null)return;let je=H.get(ge);if(!je)return;let{onDragStart:Le}=ht.current,xo={activatorEvent:P,active:{id:ge,data:je.data,rect:W}};Lo(()=>{Le?.(xo),v(Cn.Initializing),I({type:Pe.DragStart,initialCoordinates:oe,active:ge}),y({type:"onDragStart",event:xo}),wt(dn.current),Nn(P)})},onMove(oe){I({type:Pe.DragMove,coordinates:oe})},onEnd:ee(Pe.DragEnd),onCancel:ee(Pe.DragCancel)});dn.current=G;function ee(oe){return async function(){let{active:je,collisions:Le,over:xo,scrollAdjustedTranslate:Io}=Ae.current,pn=null;if(je&&Io){let{cancelDrop:_o}=ht.current;pn={activatorEvent:P,active:je,collisions:Le,delta:Io,over:xo},oe===Pe.DragEnd&&typeof _o=="function"&&await Promise.resolve(_o(pn))&&(oe=Pe.DragCancel)}re.current=null,Lo(()=>{I({type:oe}),v(Cn.Uninitialized),bo(null),wt(null),Nn(null),dn.current=null;let _o=oe===Pe.DragEnd?"onDragEnd":"onDragCancel";if(pn){let $u=ht.current[_o];$u?.(pn),y({type:_o,event:pn})}})}}},[H]),Pu=Z((he,be)=>(ve,w)=>{let _=ve.nativeEvent,P=H.get(w);if(re.current!==null||!P||_.dndKit||_.defaultPrevented)return;let G={active:P};he(ve,be.options,G)===!0&&(_.dndKit={capturedBy:be.sensor},re.current=w,zn(ve,be))},[H,zn]),wo=ib(l,Pu);fb(l),qt(()=>{He&&$===Cn.Initializing&&v(Cn.Initialized)},[He,$]),z(()=>{let{onDragMove:he}=ht.current,{active:be,activatorEvent:ve,collisions:w,over:_}=Ae.current;if(!be||!ve)return;let P={active:be,activatorEvent:ve,collisions:w,delta:{x:Gt.x,y:Gt.y},over:_};Lo(()=>{he?.(P),y({type:"onDragMove",event:P})})},[Gt.x,Gt.y]),z(()=>{let{active:he,activatorEvent:be,collisions:ve,droppableContainers:w,scrollAdjustedTranslate:_}=Ae.current;if(!he||re.current==null||!be||!_)return;let{onDragOver:P}=ht.current,G=w.get(ss),ee=G&&G.rect.current?{id:G.id,rect:G.rect.current,data:G.data,disabled:G.disabled}:null,oe={active:he,activatorEvent:be,collisions:ve,delta:{x:_.x,y:_.y},over:ee};Lo(()=>{bo(ee),P?.(oe),y({type:"onDragOver",event:oe})})},[ss]),qt(()=>{Ae.current={activatorEvent:Ge,active:ae,activeNode:$e,collisionRect:xt,collisions:It,droppableRects:Ze,draggableNodes:H,draggingNode:Ut,draggingNodeRect:dt,droppableContainers:te,over:_t,scrollableAncestors:Ke,scrollAdjustedTranslate:Gt},W.current={initial:dt,translated:xt}},[ae,$e,It,xt,H,Ut,dt,Ze,te,_t,Ke,Gt]),tb({...un,delta:Y,draggingRect:xt,pointerCoordinates:Se,scrollableAncestors:Ke,scrollableAncestorRects:zt});let Mu=q(()=>({active:ae,activeNode:$e,activeNodeRect:He,activatorEvent:Ge,collisions:It,containerNodeRect:Be,dragOverlay:fe,draggableNodes:H,droppableContainers:te,droppableRects:Ze,over:_t,measureDroppableContainers:Et,scrollableAncestors:Ke,scrollableAncestorRects:zt,measuringConfiguration:Te,measuringScheduled:Nt,windowRect:Ot}),[ae,$e,He,Ge,It,Be,fe,H,te,Ze,_t,Et,Ke,zt,Te,Nt,Ot]),Ru=q(()=>({activatorEvent:Ge,activators:wo,active:ae,activeNodeRect:He,ariaDescribedById:{draggable:Fe},dispatch:I,draggableNodes:H,over:_t,measureDroppableContainers:Et}),[Ge,wo,ae,He,I,Fe,H,_t,Et]);return qe.createElement(Wh.Provider,{value:b},qe.createElement(_s.Provider,{value:Ru},qe.createElement(wb.Provider,{value:Mu},qe.createElement(e5.Provider,{value:Lu},u)),qe.createElement(_b,{disabled:a?.restoreFocus===!1})),qe.createElement(_y,{...a,hiddenTextDescribedById:Fe}));function Tu(){let he=ze?.autoScrollEnabled===!1,be=typeof c=="object"?c.enabled===!1:c===!1,ve=R&&!he&&!be;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),Mb=we(null),jh="button",Rb="Draggable";function Ss(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=Ro(Rb),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=xe(_s),{role:f=jh,roleDescription:h="draggable",tabIndex:g=0}=o??{},k=c?.id===t,I=xe(k?e5:Mb),[y,b]=Mo(),[$,v]=Mo(),R=mb(s,t),T=yr(n);qt(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:$,data:T}),()=>{let Y=d.get(t);Y&&Y.key===i&&d.delete(t)}),[d,t]);let H=q(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":k&&f===jh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,f,g,k,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:H,isDragging:k,listeners:r?void 0:R,node:y,over:m,setNodeRef:b,setActivatorNodeRef:v,transform:I}}var Tb="Droppable",$b={timeout:25};function Ls(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=Ro(Tb),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=xe(_s),l=A({disabled:n}),d=A(!1),m=A(null),f=A(null),{disabled:h,updateMeasurementsFor:g,timeout:k}={...$b,...o},I=yr(g??r),y=Z(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(I.current)?I.current:[I.current]),f.current=null},k)},[k]),b=Is({callback:y,disabled:h||!s}),$=Z((H,Y)=>{b&&(Y&&(b.unobserve(Y),d.current=!1),H&&b.observe(H))},[b]),[v,R]=Mo($),T=yr(t);return z(()=>{!b||!v.current||(b.disconnect(),d.current=!1,b.observe(v.current))},[v,b]),z(()=>(a({type:Pe.RegisterDroppable,element:{id:r,key:i,disabled:n,node:v,rect:m,data:T}}),()=>a({type:Pe.UnregisterDroppable,key:i,id:r})),[r]),z(()=>{n!==l.current.disabled&&(a({type:Pe.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:m,isOver:c?.id===r,node:v,over:c,setNodeRef:R}}var Ku=globalThis.__bbPluginRuntime;if(Ku==null||Ku.sonner==null)throw new Error('Cannot load "sonner": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ps=Ku.sonner,rP="default"in Ps?Ps.default:Ps,{Toaster:oP,toast:it,useSonner:iP}=Ps;var Ab=Object.defineProperty,Yu=(e,t)=>Ab(e,"name",{value:t,configurable:!0});function qu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Yu(qu,"setRef");function n5(...e){return t=>{let n=!1,r=e.map(o=>{let i=qu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){let i=r[o];typeof i=="function"?i():qu(e[o],null)}}}}Yu(n5,"composeRefs");function Ju(...e){return Z(n5(...e),e)}Yu(Ju,"useComposedRefs");var Db=Object.defineProperty,Pt=(e,t)=>Db(e,"name",{value:t,configurable:!0});function r5(e){let t=F((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];Xu(o)&&typeof Ms=="function"&&(o=Ms(o._payload)),ds.forEach(o,m=>{if(a5(m)){a=!0;let f=m,h="child"in f.props?f.props.child:f.props.children;Xu(h)&&typeof Ms=="function"&&(h=Ms(h._payload)),s=Nb(f,h),c.push(s?.props?.children)}else c.push(m)}),s?s=gr(s,void 0,c):!a&&ds.count(o)===1&&Cr(o)&&(s=o);let u=s?s5(s):void 0,l=Ju(r,u);if(!s){if(o||o===0)throw new Error(a?Zb(e):zb(e));return o}let d=i5(i,s.props??{});return s.type!==hr&&(d.ref=r?l:u),gr(s,d)});return t.displayName=`${e}.Slot`,t}Pt(r5,"createSlot");var kn=r5("Slot"),o5=Symbol.for("radix.slottable");function Eb(e){let t=Pt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=o5,t}Pt(Eb,"createSlottable");var Nb=Pt((e,t)=>{if("child"in e.props){let n=e.props.child;return Cr(n)?gr(n,void 0,e.props.children(n.props.children)):null}return Cr(t)?t:null},"getSlottableElementFromSlottable");function i5(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{let c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}Pt(i5,"mergeProps");function s5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Pt(s5,"getElementRef");function a5(e){return Cr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===o5}Pt(a5,"isSlottable");var Ob=Symbol.for("react.lazy");function Xu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ob&&"_payload"in e&&c5(e._payload)}Pt(Xu,"isLazyComponent");function c5(e){return typeof e=="object"&&e!==null&&"then"in e}Pt(c5,"isPromiseLike");var zb=Pt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Zb=Pt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ms=ot[" use ".trim().toString()];var Qu=globalThis.__bbPluginRuntime;if(Qu==null||Qu.classVarianceAuthority==null)throw new Error('Cannot load "class-variance-authority": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Rs=Qu.classVarianceAuthority,lP="default"in Rs?Rs.default:Rs,{cva:u5,cx:dP}=Rs;var el=globalThis.__bbPluginRuntime;if(el==null||el.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ts=el.clsx,fP="default"in Ts?Ts.default:Ts,{clsx:l5}=Ts;var tl=globalThis.__bbPluginRuntime;if(tl==null||tl.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var $s=tl.tailwindMerge,hP="default"in $s?$s.default:$s,{createTailwindMerge:gP,extendTailwindMerge:CP,fromTheme:kP,getDefaultConfig:yP,mergeConfigs:bP,twJoin:vP,twMerge:d5,validators:wP}=$s;function S(...e){return d5(l5(e))}var As="transition-colors duration-150 hover:duration-0",Zt="transition-none";var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ds=nl.jsxRuntime,PP="default"in Ds?Ds.default:Ds,{Fragment:jt,jsx:p,jsxs:x}=Ds;var Es=u5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${As} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-state-hover hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-state-hover hover:text-foreground aria-pressed:bg-state-active aria-pressed:text-foreground aria-pressed:hover:bg-state-active data-[state=open]:bg-state-active data-[state=open]:text-foreground data-[state=open]:hover:bg-state-active",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Je=F(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>p(r?kn:"button",{className:S(Es({variant:t,size:n,className:e})),ref:i,...o}));Je.displayName="Button";var rl=globalThis.__bbPluginRuntime;if(rl==null||rl.radixPopover==null)throw new Error('Cannot load "@radix-ui/react-popover": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ns=rl.radixPopover,NP="default"in Ns?Ns.default:Ns,{Anchor:p5,Arrow:OP,Close:zP,Content:f5,Popover:ZP,PopoverAnchor:jP,PopoverArrow:WP,PopoverClose:VP,PopoverContent:FP,PopoverPortal:HP,PopoverTrigger:BP,Portal:m5,Root:h5,Trigger:g5,createPopoverScope:UP}=Ns;function Ee(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var Wb="select-none",Vb=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),yn=e=>S(Wb,e);function Fb(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!Vb.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function Zo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!Fb(t)||e!==null&&!e.contains(t)||t.blur()}function bn(){Zo(null)}function C5(){Zo(null)}function Yt(e){e.preventDefault()}var ol="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{ol="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{ol="pointer"},{capture:!0}));function k5(){return ol==="keyboard"}var Os=new Map;function Hb(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Os.get(e);if(t)return t;let n=window.matchMedia(e),r=new Set,o=()=>{for(let i of r)i()};return t={mql:n,subscribe(i){let s=r.size===0;return r.add(i),s&&n.addEventListener("change",o),()=>{r.delete(i),r.size===0&&(n.removeEventListener("change",o),Os.delete(e))}}},Os.set(e,t),t}function Bb(e,t){return Hb(e)?.subscribe(t)??(()=>{})}function Ub(e){return typeof window>"u"||!window.matchMedia?!1:Os.get(e)?.mql.matches??window.matchMedia(e).matches}function zs(e){return Kt(t=>Bb(e,t),()=>Ub(e),()=>!1)}var Gb="(max-width: 767px)",Kb=we(null);function y5(){let e=xe(Kb),t=zs(Gb);return e!==null?e:t}var qb="(pointer: coarse)";function Zs(){return zs(qb)}var Yb=120,Vs={width:"auto",minWidth:"auto",maxWidth:"none"},il="--bb-drawer-keyboard-inset",Jb=80;function Ws(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(il))}function Xb({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=Jb?r:0}function Qb(e,t){z(()=>{let n=e.current,r=window.visualViewport;if(n===null||!t||!r)return;let o=null,i=()=>{if(o=null,r.scale!==1){Ws(n);return}let a=Xb({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(il);return}n.style.bottom=`${a}px`,n.style.setProperty(il,`${a}px`)},s=()=>{o!==null&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(i)};return i(),r.addEventListener("resize",s),r.addEventListener("scroll",s),()=>{r.removeEventListener("resize",s),r.removeEventListener("scroll",s),o!==null&&window.cancelAnimationFrame(o),Ws(n)}},[t,e])}function ev(){let e=y5()?"drawer":"floating",t=Zs();return{presentation:e,supportsHover:e==="floating"&&!t}}function wr(e,t,n=!1){let{presentation:r}=ev(),o=r==="drawer",[i,s]=E(n),a=e!==void 0,c=a?e:i,u=Z(l=>{c&&!l&&o&&C5(),a||s(l),t?.(l)},[o,a,t,c]);return q(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var Hn=F(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=yn(s),l=m=>{o?.(m),m.defaultPrevented||(t||bn(),n(!t))},d={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?p(kn,{ref:c,onClick:l,onMouseDown:Yt,className:u,...d,...a,children:i}):p("button",{ref:c,type:"button",onClick:l,onMouseDown:Yt,className:u,...d,...a,children:i})});Hn.displayName="MobileTrigger";var tv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],nv=new Set(tv);function xr(e){let t={};for(let n of Object.keys(e))nv.has(n)||(t[n]=e[n]);return t}function rv({open:e,enabled:t=!0}){let[n,r]=E(!1),o=Z(()=>r(!0),[]);return z(()=>{if(!t||!e||n)return;let i=null,s=null;i=window.requestAnimationFrame(()=>{i=null,s=window.requestAnimationFrame(()=>{s=null,o()})});let a=window.setTimeout(o,Yb);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function Ir({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=rv({open:e});return!e&&!l?null:p(pv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:p("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var b5="cubic-bezier(0.32, 0.72, 0, 1)",ov=.25,iv=450,sv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),js=new WeakMap;function av(e){return Array.from(e.querySelectorAll(sv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function cv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function uv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&cv(n,t))return;let r=av(t);if(e.preventDefault(),r.length===0){t.focus({preventScroll:!0});return}let o=r[0],i=r[r.length-1];if(e.shiftKey){if(!t.contains(n)||n===t||n===o){i?.focus({preventScroll:!0});return}let a=r.indexOf(n);r[Math.max(0,a-1)]?.focus({preventScroll:!0});return}if(!t.contains(n)||n===t||n===i){o?.focus({preventScroll:!0});return}let s=r.indexOf(n);r[Math.min(r.length-1,s+1)]?.focus({preventScroll:!0})}function lv(e,t){let n=js.get(e);if(n===void 0){let r=[],o=i=>{if(i.defaultPrevented)return;let s=r[r.length-1],a=s?.panel()??null;s===void 0||a===null||(i.key==="Escape"?(i.preventDefault(),s.requestClose()):i.key==="Tab"&&uv(i,a))};n={entries:r,handleKeyDown:o},js.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=js.get(e);if(r===void 0)return;let o=r.entries.indexOf(t);o>=0&&r.entries.splice(o,1),r.entries.length===0&&(e.removeEventListener("keydown",r.handleKeyDown),js.delete(e))}}function dv({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=A(null);rt(()=>{if(!n)return;let a=r.current;if(a===null)return;let c=a.ownerDocument,u=c.activeElement;i.current=u instanceof HTMLElement&&u!==c.body?u:null;let l=lv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=A(n);rt(()=>{let a;if(s.current&&!n){t?.();let c=i.current;if(c?.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&(c.focus({preventScroll:!0}),c.ownerDocument.activeElement!==c)){let u=c.ownerDocument.defaultView;if(u!==null){let l=u.requestAnimationFrame(()=>{c.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&c.focus({preventScroll:!0}),e?.()});a=()=>u.cancelAnimationFrame(l)}}i.current=null,a===void 0&&e?.()}return s.current=n,a},[e,t,n])}function pv({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,motionDurationMs:c=220,onContentAnimationEnd:u,children:l}){let d=A(null),m=A(null),f=A(null),h=A(null),g=gn(),k=Ee(),I=`transform ${c}ms ${b5}`,y=`opacity ${c}ms ${b5}`,b=A(t);rt(()=>{b.current=t},[t]);let $=Z(()=>{Zo(d.current),Ws(d.current),b.current(!1)},[]),v=Z(()=>{Zo(d.current),Ws(d.current)},[]);dv({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:v,open:e,panelRef:d,requestClose:$}),Qb(d,e);let R=Z(W=>{h.current!==W&&(h.current=W,u?.(W))},[u]);z(()=>{h.current=null;let W=window.setTimeout(()=>R(e),c+50);return()=>window.clearTimeout(W)},[c,e,R]);let T=Z((W,ae,re)=>{let ze=d.current,wt=m.current;ze===null||wt===null||(ze.style.transition=re?I:"none",ze.style.transform=`translate3d(0, ${W}px, 0)`,wt.style.transition=re?y:"none",wt.style.opacity=String(Math.max(0,Math.min(1,1-W/ae))))},[y,I]),H=Z(W=>{if(!e||W.button!==0)return;W.currentTarget.setPointerCapture(W.pointerId);let ae=Date.now(),re=Math.max(d.current?.clientHeight??0,1);f.current={pointerId:W.pointerId,startY:W.clientY,lastY:W.clientY,lastTimeMs:ae,velocityY:0,height:re},T(0,re,!1),W.preventDefault()},[e,T]),Y=Z(W=>{let ae=f.current;if(ae===null||ae.pointerId!==W.pointerId)return;let re=Date.now(),ze=re-ae.lastTimeMs;ze>0&&(ae.velocityY=(W.clientY-ae.lastY)/ze*1e3,ae.lastY=W.clientY,ae.lastTimeMs=re),T(Math.max(0,W.clientY-ae.startY),ae.height,!1),W.preventDefault()},[T]),te=Z((W,ae)=>{let re=f.current;if(re===null||re.pointerId!==W.pointerId)return;f.current=null;let ze=Math.max(0,W.clientY-re.startY);!ae&&(ze>=re.height*ov||re.velocityY>=iv)?(T(re.height,re.height,!0),$()):T(0,re.height,!0),W.preventDefault()},[$,T]),se=typeof document>"u"?null:document.body;return se===null?null:fs(x(jt,{children:[p("div",{ref:m,...k,"aria-hidden":"true","data-persistent-drawer-backdrop":"","data-state":e?"open":"closed",className:"fixed inset-0 z-50 bg-black/40",style:{opacity:e?1:0,pointerEvents:e?"auto":"none",transition:y},onClick:r?$:void 0,onTouchMove:W=>W.preventDefault()}),x("div",{ref:d,...k,"aria-hidden":!e,"aria-labelledby":i??(o===void 0?void 0:g),"aria-describedby":s,"aria-modal":e||void 0,"data-bb-portaled-overlay":"","data-persistent-drawer-content":"","data-state":e?"open":"closed",inert:!e,role:"dialog",tabIndex:-1,className:S("fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[calc(92dvh-var(--bb-drawer-keyboard-inset,0px))] flex-col rounded-t-xl border bg-background outline-none",a),style:{transform:e?"translate3d(0, 0, 0)":"translate3d(0, 100%, 0)",transition:I,willChange:e?"transform":void 0},onTransitionEnd:W=>{W.currentTarget===W.target&&W.propertyName==="transform"&&R(e)},children:[p("div",{"data-persistent-drawer-handle":"",className:"mx-auto flex h-8 w-16 shrink-0 touch-none cursor-grab items-center justify-center active:cursor-grabbing",onPointerDown:H,onPointerMove:Y,onPointerUp:W=>te(W,!1),onPointerCancel:W=>te(W,!0),children:p("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:p("h2",{id:g,className:"sr-only",children:o}),l]})]}),se)}var sl=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function al(){return xe(sl)}function Fs({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=wr(t,n,r);return i.isCompactViewport?p(sl.Provider,{value:i,children:e}):p(h5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(sl.Provider,{value:i,children:e})})}var jo=F(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=al();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(g5,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});jo.displayName="PopoverTrigger";var Wo=F(({className:e,align:t="center",sideOffset:n=4,children:r,dismissOnOutsideInteraction:o=!0,onInteractOutside:i,mobileTitle:s,mobileClassName:a,onMobileContentAnimationEnd:c,onOpenAutoFocus:u,autoFocusRef:l,...d},m)=>{let{isCompactViewport:f,open:h,onOpenChange:g}=al(),k=Zs(),I=Ee();if(z(()=>{if(!h||f||k||!l)return;let y=window.requestAnimationFrame(()=>{let b=l.current;b?.focus(),b instanceof HTMLInputElement&&b.select()});return()=>window.cancelAnimationFrame(y)},[l,f,k,h]),f){let{style:y,...b}=xr(d);return p(Ir,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:p("div",{ref:m,className:S("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...b,style:{...y,...Vs},children:r})})}return p(m5,{children:p(f5,{ref:m,...I,align:t,sideOffset:n,onOpenAutoFocus:y=>{(k||l)&&y.preventDefault(),k||u?.(y)},className:S("z-50 w-96 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",e),...d,onInteractOutside:y=>{o||y.preventDefault(),i?.(y)},children:r})})});Wo.displayName="PopoverContent";var fv=F(({children:e,...t},n)=>{let{isCompactViewport:r}=al();return r?p(jt,{children:e}):p(p5,{ref:n,...t,children:e})});fv.displayName="PopoverAnchor";var mv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),hv=new Set(["working","background","queued","scheduled"]);function gv(e){return!hv.has(e.state.kind)}function Cv(e,t){let n=0;return t.has("unread-failed")&&(n=Math.max(n,e.latestAttentionAt)),t.has("queue-failed")&&(n=Math.max(n,e.updatedAt)),n}function v5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!gv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=Cv(e,t)}function w5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)mv.has(r)&&n.add(r);return n}return e.has("waits-on-you")&&n.add("waits-on-you"),e.has("offline")&&n.add("offline"),t.orphaned&&(e.has("unread-failed")&&n.add("unread-failed"),e.has("queue-failed")&&n.add("queue-failed")),n}function x5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}function cl(e,t){return e.needsYouFlags.size>0||e.root.thread.id===t}function I5(e,t){return t===void 0?null:cl(t,e)?t.root.thread.id:null}function _5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.needsYou.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),x5(o.needsYou,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,needsYou:r}}function S5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.needsYou)e?.needsYou.has(r)||n.set(r,"reveal");for(let r of t.unread)r===t.activeThreadId||n.has(r)||e?.unread.has(r)||n.set(r,"open");return n}function L5(e,t){if(t.size===0)return e;let n=new Map(e);for(let[r,o]of t)n.get(r)!=="reveal"&&n.set(r,o);return n}function P5(e,t){let n=!1,r=new Map;for(let[o,i]of e)t(o)?n=!0:r.set(o,i);return n?r:e}function M5(e,t){let n=A(null),r=A(null),o=A(void 0),[i,s]=E(()=>new Map),a=A(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=_5(e,t),d=S5(n.current,l);n.current=l,r.current=e,o.current=t,c=L5(i,d),c!==i&&(a.current=c,s(c))}let u=Z(l=>{let d=P5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var ie={};St(ie,{$brand:()=>xl,$input:()=>K1,$output:()=>G1,INVALID:()=>et,NEVER:()=>wl,TimePrecision:()=>ip,ZodAny:()=>Gf,ZodArray:()=>Jf,ZodBase64:()=>jc,ZodBase64URL:()=>Wc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Hc,ZodBoolean:()=>io,ZodCIDRv4:()=>zc,ZodCIDRv6:()=>Zc,ZodCUID:()=>Tc,ZodCUID2:()=>$c,ZodCatch:()=>k2,ZodCodec:()=>Di,ZodCompileAsyncError:()=>Rt,ZodCompileUnsupportedError:()=>Q,ZodCreditCard:()=>Zf,ZodCustom:()=>Ei,ZodCustomStringFormat:()=>cr,ZodDate:()=>Pi,ZodDefault:()=>p2,ZodDiscriminatedUnion:()=>Qf,ZodE164:()=>Vc,ZodEmail:()=>Lc,ZodEmoji:()=>Mc,ZodEnum:()=>no,ZodError:()=>LI,ZodExactOptional:()=>Kc,ZodFile:()=>c2,ZodFirstPartyTypeKind:()=>$2,ZodFunction:()=>P2,ZodGUID:()=>Pc,ZodIBAN:()=>jf,ZodIPv4:()=>Nc,ZodIPv6:()=>Oc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>T2,ZodIntersection:()=>e2,ZodIssueCode:()=>RI,ZodJWT:()=>Fc,ZodKSUID:()=>Ec,ZodLazy:()=>_2,ZodLiteral:()=>a2,ZodMAC:()=>zf,ZodMap:()=>i2,ZodNaN:()=>b2,ZodNanoID:()=>Rc,ZodNever:()=>qf,ZodNonOptional:()=>qc,ZodNull:()=>Bf,ZodNullable:()=>d2,ZodNumber:()=>oo,ZodNumberFormat:()=>ur,ZodObject:()=>Ri,ZodOptional:()=>$i,ZodPipe:()=>Ai,ZodPrefault:()=>m2,ZodPreprocess:()=>v2,ZodPromise:()=>L2,ZodReadonly:()=>w2,ZodRealError:()=>lt,ZodRecord:()=>to,ZodSet:()=>s2,ZodString:()=>ro,ZodStringFormat:()=>de,ZodSuccess:()=>C2,ZodSymbol:()=>Ff,ZodTemplateLiteral:()=>I2,ZodTransform:()=>u2,ZodTuple:()=>n2,ZodType:()=>J,ZodULID:()=>Ac,ZodURL:()=>Li,ZodUUID:()=>Ht,ZodUndefined:()=>Hf,ZodUnion:()=>Ti,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>Dc,ZodXor:()=>Xf,_ZodString:()=>Sc,_default:()=>f2,_function:()=>Q9,any:()=>R9,array:()=>Mi,base64:()=>l9,base64url:()=>d9,bigint:()=>_9,boolean:()=>Vf,catch:()=>y2,check:()=>e4,cidrv4:()=>c9,cidrv6:()=>u9,clone:()=>ce,codec:()=>q9,coerce:()=>D2,compile:()=>X1,config:()=>ye,core:()=>tn,creditCard:()=>f9,cuid:()=>e9,cuid2:()=>t9,currencyCode:()=>y9,custom:()=>t4,date:()=>$9,decode:()=>Tf,decodeAsync:()=>Af,deepPartial:()=>m4,describe:()=>n4,discriminatedUnion:()=>z9,e164:()=>p9,email:()=>H0,emoji:()=>X0,encode:()=>Rf,encodeAsync:()=>$f,endsWith:()=>Hr,enum:()=>Uc,exactOptional:()=>l2,file:()=>B9,flattenError:()=>Jo,float32:()=>v9,float64:()=>w9,formatError:()=>Xo,fromJSONSchema:()=>p4,function:()=>Q9,getDiscriminatedOption:()=>v1,getErrorMap:()=>$I,globalRegistry:()=>Ve,gt:()=>Vt,gte:()=>mt,guid:()=>B0,hash:()=>b9,hex:()=>k9,hostname:()=>C9,httpUrl:()=>J0,iban:()=>m9,includes:()=>Vr,input:()=>g4,instanceof:()=>o4,int:()=>Ic,int32:()=>x9,int64:()=>S9,intersection:()=>t2,invertCodec:()=>Y9,ipv4:()=>i9,ipv6:()=>a9,iso:()=>Ni,json:()=>s4,jwt:()=>h9,keyof:()=>A9,ksuid:()=>o9,lazy:()=>S2,length:()=>rr,literal:()=>H9,locales:()=>Ci,looseObject:()=>N9,looseRecord:()=>j9,lowercase:()=>jr,lt:()=>Wt,lte:()=>ft,mac:()=>s9,map:()=>W9,maxLength:()=>nr,maxSize:()=>_n,memoizer:()=>gi,meta:()=>r4,mime:()=>Ur,minLength:()=>en,minSize:()=>Ft,multipleOf:()=>In,nan:()=>K9,nanoid:()=>Q0,nativeEnum:()=>F9,negative:()=>fc,never:()=>Bc,nonnegative:()=>hc,nonoptional:()=>g2,nonpositive:()=>mc,normalize:()=>Gr,null:()=>Uf,nullable:()=>Si,nullish:()=>U9,number:()=>Wf,object:()=>D9,optional:()=>sr,output:()=>C4,overwrite:()=>Tt,parse:()=>Sf,parseAsync:()=>Lf,partialRecord:()=>Z9,pipe:()=>_c,positive:()=>pc,prefault:()=>h2,preprocess:()=>a4,prettifyError:()=>Pl,promise:()=>X9,properties:()=>Br,property:()=>gc,readonly:()=>x2,record:()=>o2,refine:()=>M2,regex:()=>Zr,regexes:()=>bt,registry:()=>Wa,safeDecode:()=>Ef,safeDecodeAsync:()=>Of,safeEncode:()=>Df,safeEncodeAsync:()=>Nf,safeParse:()=>Pf,safeParseAsync:()=>Mf,set:()=>V9,setErrorMap:()=>TI,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,strictObject:()=>E9,string:()=>_i,stringFormat:()=>g9,stringbool:()=>i4,success:()=>G9,superRefine:()=>R2,symbol:()=>P9,templateLiteral:()=>J9,toJSONSchema:()=>bc,toLowerCase:()=>qr,toUpperCase:()=>Yr,toZod:()=>Vo,transform:()=>Gc,treeifyError:()=>Ll,trim:()=>Kr,tuple:()=>r2,uint32:()=>I9,uint64:()=>L9,ulid:()=>n9,undefined:()=>M9,union:()=>ao,unknown:()=>ir,uppercase:()=>Wr,url:()=>Y0,util:()=>O,uuid:()=>U0,uuidv4:()=>G0,uuidv6:()=>K0,uuidv7:()=>q0,validate:()=>Qo,validateAsync:()=>ei,void:()=>T9,withParser:()=>Va,xid:()=>r9,xor:()=>O9});var tn={};St(tn,{$ZodAny:()=>f1,$ZodArray:()=>k1,$ZodAsyncError:()=>ct,$ZodBase64:()=>t1,$ZodBase64URL:()=>n1,$ZodBigInt:()=>Ma,$ZodBigIntFormat:()=>u1,$ZodBoolean:()=>li,$ZodCIDRv4:()=>Qd,$ZodCIDRv6:()=>e1,$ZodCUID:()=>Wd,$ZodCUID2:()=>Vd,$ZodCatch:()=>O1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>md,$ZodCheckEndsWith:()=>Sd,$ZodCheckGreaterThan:()=>fa,$ZodCheckIncludes:()=>Id,$ZodCheckLengthEquals:()=>bd,$ZodCheckLessThan:()=>pa,$ZodCheckLowerCase:()=>wd,$ZodCheckMaxLength:()=>kd,$ZodCheckMaxSize:()=>hd,$ZodCheckMimeType:()=>Md,$ZodCheckMinLength:()=>yd,$ZodCheckMinSize:()=>gd,$ZodCheckMultipleOf:()=>pd,$ZodCheckNumberFormat:()=>fd,$ZodCheckOverwrite:()=>Rd,$ZodCheckProperties:()=>Pd,$ZodCheckProperty:()=>Ld,$ZodCheckRegex:()=>vd,$ZodCheckSizeEquals:()=>Cd,$ZodCheckStartsWith:()=>_d,$ZodCheckStringFormat:()=>Er,$ZodCheckUpperCase:()=>xd,$ZodCodec:()=>pi,$ZodCreditCard:()=>o1,$ZodCustom:()=>H1,$ZodCustomStringFormat:()=>a1,$ZodCyclicError:()=>Na,$ZodDate:()=>C1,$ZodDefault:()=>A1,$ZodDiscriminatedUnion:()=>w1,$ZodE164:()=>r1,$ZodEmail:()=>Ed,$ZodEmoji:()=>Zd,$ZodEncodeError:()=>xn,$ZodEnum:()=>L1,$ZodError:()=>Sl,$ZodExactOptional:()=>T1,$ZodFile:()=>M1,$ZodFunction:()=>V1,$ZodGUID:()=>Ad,$ZodIBAN:()=>i1,$ZodIPv4:()=>Yd,$ZodIPv6:()=>Jd,$ZodISODate:()=>Gd,$ZodISODateTime:()=>Ud,$ZodISODuration:()=>qd,$ZodISOTime:()=>Kd,$ZodIntersection:()=>x1,$ZodJWT:()=>s1,$ZodKSUID:()=>Bd,$ZodLazy:()=>fi,$ZodLiteral:()=>P1,$ZodMAC:()=>Xd,$ZodMap:()=>_1,$ZodNaN:()=>z1,$ZodNanoID:()=>jd,$ZodNever:()=>h1,$ZodNonOptional:()=>E1,$ZodNull:()=>p1,$ZodNullable:()=>$1,$ZodNumber:()=>Pa,$ZodNumberFormat:()=>c1,$ZodObject:()=>l0,$ZodObjectJIT:()=>y1,$ZodOptional:()=>Ta,$ZodPipe:()=>$a,$ZodPrefault:()=>D1,$ZodPreprocess:()=>Z1,$ZodPromise:()=>F1,$ZodReadonly:()=>j1,$ZodRealError:()=>ut,$ZodRecord:()=>I1,$ZodRegistry:()=>ja,$ZodSet:()=>S1,$ZodString:()=>Yn,$ZodStringFormat:()=>ue,$ZodSuccess:()=>N1,$ZodSymbol:()=>l1,$ZodTemplateLiteral:()=>W1,$ZodTransform:()=>R1,$ZodTuple:()=>Ra,$ZodType:()=>K,$ZodULID:()=>Fd,$ZodURL:()=>zd,$ZodUUID:()=>Dd,$ZodUndefined:()=>d1,$ZodUnion:()=>di,$ZodUnknown:()=>m1,$ZodVoid:()=>g1,$ZodXID:()=>Hd,$ZodXor:()=>b1,$brand:()=>xl,$constructor:()=>C,$input:()=>K1,$output:()=>G1,Doc:()=>qn,INVALID:()=>et,JSONSchema:()=>W0,JSONSchemaGenerator:()=>vc,NEVER:()=>wl,TimePrecision:()=>ip,URL_BAD_FORMAT:()=>Nd,URL_UNPARSEABLE:()=>ii,ZodCompileAsyncError:()=>Rt,ZodCompileUnsupportedError:()=>Q,_any:()=>wp,_array:()=>Mp,_base64:()=>cc,_base64url:()=>uc,_bigint:()=>hp,_boolean:()=>fp,_catch:()=>hI,_check:()=>_0,_cidrv4:()=>sc,_cidrv6:()=>ac,_coercedBigint:()=>gp,_coercedBoolean:()=>mp,_coercedDate:()=>Lp,_coercedNumber:()=>ap,_coercedString:()=>tp,_creditCard:()=>rp,_cuid:()=>Qa,_cuid2:()=>ec,_custom:()=>Tp,_date:()=>Sp,_decode:()=>ta,_decodeAsync:()=>ra,_default:()=>pI,_discriminatedUnion:()=>eI,_e164:()=>lc,_email:()=>Ba,_emoji:()=>Ja,_encode:()=>ea,_encodeAsync:()=>na,_endsWith:()=>Hr,_enum:()=>sI,_file:()=>Rp,_float32:()=>up,_float64:()=>lp,_gt:()=>Vt,_gte:()=>mt,_guid:()=>Ua,_iban:()=>op,_includes:()=>Vr,_int:()=>cp,_int32:()=>dp,_int64:()=>Cp,_intersection:()=>tI,_ipv4:()=>oc,_ipv6:()=>ic,_isoDate:()=>bi,_isoDateTime:()=>yi,_isoDuration:()=>wi,_isoTime:()=>vi,_jwt:()=>dc,_ksuid:()=>rc,_lazy:()=>yI,_length:()=>rr,_literal:()=>cI,_lowercase:()=>jr,_lt:()=>Wt,_lte:()=>ft,_mac:()=>np,_map:()=>oI,_max:()=>ft,_maxLength:()=>nr,_maxSize:()=>_n,_mime:()=>Ur,_min:()=>mt,_minLength:()=>en,_minSize:()=>Ft,_multipleOf:()=>In,_nan:()=>Pp,_nanoid:()=>Xa,_nativeEnum:()=>aI,_negative:()=>fc,_never:()=>Ip,_nonnegative:()=>hc,_nonoptional:()=>fI,_nonpositive:()=>mc,_normalize:()=>Gr,_null:()=>vp,_nullable:()=>dI,_number:()=>sp,_optional:()=>lI,_overwrite:()=>Tt,_parse:()=>Tr,_parseAsync:()=>$r,_pipe:()=>gI,_positive:()=>pc,_promise:()=>bI,_properties:()=>Br,_property:()=>gc,_readonly:()=>CI,_record:()=>rI,_refine:()=>$p,_regex:()=>Zr,_safeDecode:()=>ia,_safeDecodeAsync:()=>aa,_safeEncode:()=>oa,_safeEncodeAsync:()=>sa,_safeParse:()=>Ar,_safeParseAsync:()=>Dr,_set:()=>iI,_size:()=>tr,_slugify:()=>Jr,_startsWith:()=>Fr,_string:()=>ep,_stringFormat:()=>or,_stringbool:()=>Np,_success:()=>mI,_superRefine:()=>Ap,_symbol:()=>yp,_templateLiteral:()=>kI,_toLowerCase:()=>qr,_toUpperCase:()=>Yr,_transform:()=>uI,_trim:()=>Kr,_tuple:()=>nI,_uint32:()=>pp,_uint64:()=>kp,_ulid:()=>tc,_undefined:()=>bp,_union:()=>Xx,_unknown:()=>xp,_uppercase:()=>Wr,_url:()=>ki,_uuid:()=>Ga,_uuidv4:()=>Ka,_uuidv6:()=>qa,_uuidv7:()=>Ya,_void:()=>_p,_xid:()=>nc,_xor:()=>Qx,base64Charset:()=>xa,base64urlCharset:()=>ui,canParseURL:()=>Od,clone:()=>ce,compile:()=>X1,compileFn:()=>Fa,config:()=>ye,createStandardJSONSchemaMethod:()=>Xr,createToJSONSchemaMethod:()=>zp,decode:()=>cw,decodeAsync:()=>lw,describe:()=>Dp,encode:()=>aw,encodeAsync:()=>uw,extractDefs:()=>Ln,finalize:()=>Pn,flattenError:()=>Jo,formatError:()=>Xo,getDiscriminatedOption:()=>v1,globalConfig:()=>Ne,globalRegistry:()=>Ve,handleUnrepresentable:()=>Me,initializeContext:()=>Sn,isBackEdge:()=>za,isRecursiveSchema:()=>Oa,isValidBase64:()=>ci,isValidBase64URL:()=>Ia,isValidCIDRv6:()=>wa,isValidCreditCard:()=>_a,isValidIBAN:()=>Sa,isValidIPv6:()=>ai,isValidJWT:()=>La,locales:()=>Ci,memoizer:()=>gi,mergeValues:()=>Nr,meta:()=>Ep,parse:()=>Xs,parseAsync:()=>Qs,parseURLObject:()=>a0,prettifyError:()=>Pl,process:()=>le,processSchema:()=>le,regexes:()=>bt,registry:()=>Wa,safeDecode:()=>pw,safeDecodeAsync:()=>mw,safeEncode:()=>dw,safeEncodeAsync:()=>fw,safeParse:()=>nw,safeParseAsync:()=>rw,standardProps:()=>ka,stripTabAndNewline:()=>si,toDotPath:()=>j5,toJSONSchema:()=>bc,toZod:()=>Vo,treeifyError:()=>Ll,urlHostnameOk:()=>ba,urlProtocolOk:()=>va,util:()=>O,validate:()=>Qo,validateAsync:()=>ei,validateURL:()=>ya,version:()=>Td,withParser:()=>Va});var O={};St(O,{BIGINT_FORMAT_RANGES:()=>Go,CONSTANT_CATCH:()=>Ys,Class:()=>dl,NUMBER_FORMAT_RANGES:()=>Uo,aborted:()=>Qe,allowsEval:()=>ml,assert:()=>wv,assertEqual:()=>kv,assertIs:()=>bv,assertNever:()=>vv,assertNotEqual:()=>yv,assignProp:()=>We,attachSchema:()=>qs,base64ToUint8Array:()=>D5,base64urlToUint8Array:()=>Wv,cached:()=>Pr,captureStackTrace:()=>Us,cleanEnum:()=>jv,cleanRegex:()=>Xt,clone:()=>ce,cloneDef:()=>_v,codePointLength:()=>Gn,constantCatch:()=>bl,createTransparentProxy:()=>Tv,defineLazy:()=>pl,defineLazyInternal:()=>X,derived:()=>Bv,esc:()=>Xe,escapeRegex:()=>yt,explicitlyAborted:()=>Cl,extend:()=>Dv,finalizeIssue:()=>at,floatSafeRemainder:()=>Fo,getElementAtPath:()=>Sv,getEnumValues:()=>Sr,getLengthableOrigin:()=>qo,getParsedType:()=>Rv,getSizableOrigin:()=>Ko,hexToUint8Array:()=>Fv,hide:()=>Yo,installLazyProp:()=>qv,isObject:()=>Un,isPlainObject:()=>kt,issue:()=>Rr,joinValues:()=>Hs,jsonStringifyReplacer:()=>Lr,members:()=>yl,merge:()=>Nv,mergeDefs:()=>Mt,normalizeParams:()=>M,nullish:()=>Bs,numKeys:()=>Mv,objectClone:()=>xv,omit:()=>Av,optionalKeys:()=>gl,own:()=>wn,parsedType:()=>kl,partial:()=>Ov,pick:()=>$v,prefixIssues:()=>st,primitiveTypes:()=>hl,promiseAllObject:()=>Lv,propertyKeyTypes:()=>Bo,randomString:()=>Pv,rawShape:()=>Mr,required:()=>zv,safeExtend:()=>Ev,shallowClone:()=>Ho,slugify:()=>fl,stringifyPrimitive:()=>Gs,toZod:()=>Vo,uint8ArrayToBase64:()=>E5,uint8ArrayToBase64url:()=>Vv,uint8ArrayToHex:()=>Hv,unwrapMessage:()=>_r});function kv(e){return e}function yv(e){return e}function Vo(){return e=>e}function bv(e){}function vv(e){throw new Error("Unexpected value in exhaustive check")}function wv(e){}function Sr(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Hs(e,t="|"){return e.map(n=>Gs(n)).join(t)}function Lr(e,t){return typeof t=="bigint"?t.toString():t}var ll=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Pr(e){return new ll(e)}function Bs(e){return e==null}function Xt(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Fo(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}var R5=Symbol("evaluating");function pl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==R5)return r===void 0&&(r=R5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function xv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function We(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Mr(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Jt(e){return Mr(e._zod.def)??e._zod.def.shape}function T5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return We(this,t,r),r},enumerable:!0,configurable:!0})}function $5(e,t,n){t in e?We(e,t,n):e[t]=n}function Bn(e,t,n,r){let o=Jt(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?T5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):$5(e,i,r?r(s.value,i):s.value))}}function Iv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?T5(e,n,()=>t[n]):$5(e,n,r.value))}}function Mt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function _v(e){return Mt(e._zod.def)}function Sv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Lv(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function Pv(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Xe(e){return JSON.stringify(e)}function fl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Us="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Un(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ml=Pr(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function kt(e){if(Un(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Un(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ho(e){return kt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Mv(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Rv=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Bo=new Set(["string","number","symbol"]),hl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Tv(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function Gs(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function gl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Uo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Go={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $v(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Bn(i,e,Ks(e,t)),ce(e,Mt(n,{shape:i,checks:[]}))}function Ks(e,t){let n=Jt(e),r=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function Av(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(Ks(e,t)),s={};return Bn(s,e,Reflect.ownKeys(Jt(e)).filter(a=>!i.has(a))),ce(e,Mt(n,{shape:s,checks:[]}))}function Dv(e,t){if(!kt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=Jt(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ce(e,Mt(e._zod.def,{shape:A5(e,t)}))}function A5(e,t){let n={};return Bn(n,e,Reflect.ownKeys(Jt(e))),Iv(n,t),n}function Ev(e,t){if(!kt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ce(e,Mt(e._zod.def,{shape:A5(e,t)}))}function Nv(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Bn(n,e,Reflect.ownKeys(Jt(e))),Bn(n,t,Reflect.ownKeys(Jt(t)));let r=Mt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ce(e,r)}function Ov(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Ks(t,n)):void 0,c={};return Bn(c,t,Reflect.ownKeys(Jt(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),ce(t,Mt(t._zod.def,{shape:c,checks:[]}))}function zv(e,t,n){let r=n?new Set(Ks(t,n)):void 0,o={};return Bn(o,t,Reflect.ownKeys(Jt(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),ce(t,Mt(t._zod.def,{shape:o}))}function Qe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Cl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function st(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function _r(e){return typeof e=="string"?e:e?.message}function qs(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function at(e,t,n){var r;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:_r(e.inst?._zod.def?.error?.(e))??_r(i?.(e))??_r(t?.error?.(e))??_r(n.customError?.(e))??_r(n.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function Ko(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Zv=/[\uD800-\uDBFF]/;function Gn(e){let t=e.length;if(!Zv.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function qo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function kl(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Rr(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function jv(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function D5(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function E5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Wv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return D5(t+n)}function Vv(e){return E5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Fv(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function Hv(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var dl=class{constructor(...t){}};function yl(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Uv(e,n,r.value)}}function wn(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Yo(e,t,n){return wn(e,t,n,!1)}function Bv(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return wn(this,n,r(this))},set(o){wn(this,n,o)}})}return t}function Uv(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:wn(this,t,n.bind(this))},set(r){wn(this,t,r)}})}function Gv(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var ul,vn=!1,Kv={configurable:!0,get(){vn=!0}};function X(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&ul!==e._zod){ul=void 0;return}ul=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Kv);let o=vn;vn=!1;try{let i=n(this);return vn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),vn=vn||o,i}catch(i){throw delete this[t],vn=vn||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function qv(e,t,n,r){let o=Gv(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var Ys="~constantCatch";function bl(e){let t=()=>e;return t[Ys]=!0,t}var N5,wl=Object.freeze({status:"aborted"}),vl={value:void 0,enumerable:!1},O5="captureStackTrace"in Error?Error:null;function Yv(e){let t=O5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return O5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function C(e,t,n,r){let o={};function i(m){this.def=m,this.constr=d,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(m,f){if(m._zod){if(m._zod.traits.has(e))return}else{vl.value=new i(f);try{Object.defineProperty(m,"_zod",vl)}finally{vl.value=void 0}}if(m._zod.traits.add(e),t(m,f),a){let g=Object.getPrototypeOf(m),k=m._zod.constr.prototype,I=g;for(;I&&I!==k;)I=Object.getPrototypeOf(I);let y=I??g;a.has(y)||(a.add(y),yl(y,s))}let h=d.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(m){let f=r?.Parent?Yv(l):this;c(f,m);let h=f._zod.deferred;if(h){for(let k of h)k();f._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var xl=Symbol("zod_brand"),ct=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},xn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(N5=globalThis).__zod_globalConfig??(N5.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(Ne,e),Ne}function Jv(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Lr,2)),e.message}function Xv(e){this._zod.message=e}var Qv={get:Jv,set:Xv,enumerable:!0,configurable:!0},_l={value:void 0,enumerable:!1},z5=new WeakSet([Object.prototype,Error.prototype]),Z5=(e,t)=>{e.name="$ZodError",_l.value=t,Object.defineProperty(e,"issues",_l),_l.value=void 0,Object.defineProperty(e,"message",Qv);let n=Object.getPrototypeOf(e);z5.has(n)||(z5.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Sl=C("$ZodError",Z5),ut=C("$ZodError",Z5,void 0,{Parent:Error});function ew(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Jo(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?ew(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Xo(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=c[l];d&&m._errors.push(t(s)),c=m,u++}}}};return r(e),n}function Ll(e,t=n=>n.message){let n={errors:[]},r=(o,i=[])=>{var s;for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>r({issues:c},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{let c=[...i,...a.path];if(c.length===0){n.errors.push(t(a));continue}let u=n,l=0;for(;l<c.length;){let d=c[l],m=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(t(a)),l++}}};return r(e),n}function j5(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Pl(e){let t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${j5(r.path)}`);return t.join(`
6
- `)}function Js(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Tr=e=>{let t=(n,r,o,i)=>{let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new ct;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>at(u,s,ye())));throw Us(c,i?.callee??t),c}return a.value};return t},Xs=Tr(ut),$r=e=>{let t=async(n,r,o,i)=>{let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>at(u,s,ye())));throw Us(c,i?.callee??t),c}return a.value};return t},Qs=$r(ut),Ar=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new ct;return i.issues.length?W5(e,i.issues,o):{success:!0,data:i.value}},nw=Ar(ut);function W5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>at(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Dr=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?W5(e,i.issues,o):{success:!0,data:i.value}},rw=Dr(ut),ow=Symbol.for("zod.compile.invalid"),iw=Symbol.for("zod.compile.fallback"),Qo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==ow)return!0;if(r.definite===!0&&n===void 0)return!1}return sw(e,t,n)});function sw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[iw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new ct;return i.issues.length===0}var ei=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},ea=e=>{let t=Tr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,Js(n,s))};return n},aw=ea(ut),ta=e=>{let t=Tr(e),n=(r,o,i,s)=>t(r,o,i,Js(n,s));return n},cw=ta(ut),na=e=>{let t=$r(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,Js(n,s))};return n},uw=na(ut),ra=e=>{let t=$r(e),n=async(r,o,i,s)=>await t(r,o,i,Js(n,s));return n},lw=ra(ut),oa=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Ar(e)(t,n,o)},dw=oa(ut),ia=e=>(t,n,r)=>Ar(e)(t,n,r),pw=ia(ut),sa=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Dr(e)(t,n,o)},fw=sa(ut),aa=e=>async(t,n,r)=>Dr(e)(t,n,r),mw=aa(ut);var bt={};St(bt,{anyString:()=>td,base64:()=>Ul,base64url:()=>Gl,bigint:()=>rd,boolean:()=>od,browserEmail:()=>ww,cidrv4:()=>Hl,cidrv6:()=>Bl,creditCard:()=>ca,cuid:()=>Rl,cuid2:()=>Tl,currencyCode:()=>Jl,date:()=>Xl,datetime:()=>ed,domain:()=>ql,duration:()=>Ol,e164:()=>Yl,email:()=>Zl,emoji:()=>jl,extendedDuration:()=>hw,guid:()=>zl,hex:()=>ud,hostname:()=>Kl,html5Email:()=>yw,httpProtocol:()=>ti,iban:()=>ua,idnEmail:()=>vw,integer:()=>ni,ipv4:()=>Wl,ipv6:()=>Vl,ksuid:()=>Dl,lowercase:()=>ad,mac:()=>Fl,md5_base64:()=>Sw,md5_base64url:()=>Lw,md5_hex:()=>_w,nanoid:()=>El,nanoidOfLength:()=>Nl,null:()=>id,number:()=>Qt,rfc5322Email:()=>bw,sha1_base64:()=>Mw,sha1_base64url:()=>Rw,sha1_hex:()=>Pw,sha256_base64:()=>$w,sha256_base64url:()=>Aw,sha256_hex:()=>Tw,sha384_base64:()=>Ew,sha384_base64url:()=>Nw,sha384_hex:()=>Dw,sha512_base64:()=>zw,sha512_base64url:()=>Zw,sha512_hex:()=>Ow,string:()=>nd,time:()=>Ql,ulid:()=>$l,undefined:()=>sd,unicodeEmail:()=>V5,uppercase:()=>cd,uuid:()=>Kn,uuid4:()=>gw,uuid6:()=>Cw,uuid7:()=>kw,xid:()=>Al});var Rl=/^[cC][0-9a-z]{6,}$/,Tl=/^[0-9a-z]+$/,$l=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Al=/^[0-9a-vA-V]{20}$/,Dl=/^[A-Za-z0-9]{27}$/,El=/^[a-zA-Z0-9_-]{21}$/;function Nl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Ol=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Kn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gw=Kn(4),Cw=Kn(6),kw=Kn(7),Zl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,yw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,V5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,vw=V5,ww=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function jl(){return new RegExp(xw,"u")}var Wl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Vl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Fl=e=>{let t=yt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Hl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Bl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ul=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Kl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ql=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ti=/^https?$/,Yl=/^\+[1-9]\d{6,14}$/,ca=/^\d(?:[ -]?\d){11,18}$/,Jl=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,ua=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,F5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Iw(e){return new RegExp(`^${e}$`)}var Xl=Iw(F5);function Ml(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ql(e){return new RegExp(`^${Ml(e)}$`)}function ed(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Ml({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Ml({precision:e.precision})}`:n;return new RegExp(`^${F5}T(?:${r})$`)}var td=/^[\s\S]{0,}$/,nd=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rd=/^-?\d+n?$/,ni=/^-?\d+$/,Qt=/^-?\d+(?:\.\d+)?$/,od=/^(?:true|false)$/i,id=/^null$/i;var sd=/^undefined$/i;var ad=/^[^A-Z]*$/,cd=/^[^a-z]*$/,ud=/^[0-9a-fA-F]*$/;function ri(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function oi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var _w=/^[0-9a-fA-F]{32}$/,Sw=ri(22,"=="),Lw=oi(22),Pw=/^[0-9a-fA-F]{40}$/,Mw=ri(27,"="),Rw=oi(27),Tw=/^[0-9a-fA-F]{64}$/,$w=ri(43,"="),Aw=oi(43),Dw=/^[0-9a-fA-F]{96}$/,Ew=ri(64,""),Nw=oi(64),Ow=/^[0-9a-fA-F]{128}$/,zw=ri(86,"=="),Zw=oi(86);var pe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ld=e=>{let t=e.value;return!Bs(t)&&t.size!==void 0},dd=e=>{let t=e.value;return!Bs(t)&&t.length!==void 0},la={number:"number",bigint:"bigint",object:"date"},pa=C("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=la[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:la[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),fa=C("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=la[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:la[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pd=C("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Fo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),fd=C("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Uo[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),md=C("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=Go[t.format];e._zod.check=o=>{let i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),hd=C("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Ko(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),gd=C("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Ko(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cd=C("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;r.issues.push({origin:Ko(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),kd=C("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Gn(o):i)<=t.maximum)return;let a=qo(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),yd=C("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Gn(o):i)>=t.minimum)return;let a=qo(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),bd=C("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Gn(o):i;if(s===t.length)return;let a=qo(o),c=s>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Er=C("$ZodCheckStringFormat",(e,t)=>{var n,r;pe.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),vd=C("$ZodCheckRegex",(e,t)=>{Er.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),wd=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ad),Er.init(e,t)}),xd=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cd),Er.init(e,t)}),Id=C("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=yt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),_d=C("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${yt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Sd=C("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${yt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function da(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues))}var Ld=C("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>da(o,n,t.property));da(r,n,t.property)}}),Pd=C("$ZodCheckProperties",(e,t)=>{pe.init(e,t),Yo(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let o=r.value,i;for(let[s,a]of n){let c=a._zod.run({value:o[s],issues:[]},{});c instanceof Promise?(i??(i=[]),i.push(c.then(u=>da(u,r,s)))):da(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),Md=C("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Rd=C("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var qn=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
5
+ `},_y={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Sy(e){let{announcements:t=_y,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Iy}=e,{announce:i,announcement:s}=Rh(),a=Ro("DndLiveRegion"),[c,u]=E(!1);if(z(()=>{u(!0)},[]),wy(q(()=>({onDragStart(d){let{active:m}=d;i(t.onDragStart({active:m}))},onDragMove(d){let{active:m,over:f}=d;t.onDragMove&&i(t.onDragMove({active:m,over:f}))},onDragOver(d){let{active:m,over:f}=d;i(t.onDragOver({active:m,over:f}))},onDragEnd(d){let{active:m,over:f}=d;i(t.onDragEnd({active:m,over:f}))},onDragCancel(d){let{active:m,over:f}=d;i(t.onDragCancel({active:m,over:f}))}}),[i,t])),!c)return null;let l=qe.createElement(qe.Fragment,null,qe.createElement(Ph,{id:r,value:o.draggable}),qe.createElement(Mh,{id:a,announcement:s}));return n?ps(l,n):l}var Pe;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pe||(Pe={}));function ys(){}function ws(e,t){return q(()=>({sensor:e,options:t??{}}),[e,t])}function Vh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(()=>[...t].filter(r=>r!=null),[...t])}var Lt=Object.freeze({x:0,y:0});function Ly(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Py(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function My(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Ry(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Ty(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function $y(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){let c=t.width*t.height,u=e.width*e.height,l=s*a,d=l/(c+u-l);return Number(d.toFixed(4))}return 0}var Ay=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:s}=i,a=n.get(s);if(a){let c=$y(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(My)};function Dy(e,t){let{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}var Fh=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let o=[];for(let i of t){let{id:s}=i,a=n.get(s);if(a&&Dy(r,a)){let u=Ry(a).reduce((d,m)=>d+Ly(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Py)};function Ey(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Hh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Lt}function Ny(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}var Oy=Ny(1);function zy(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Zy(e,t,n){let r=zy(t);if(!r)return e;let{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c}}var jy={ignoreTransform:!1};function zo(e,t){t===void 0&&(t=jy);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Ye(e).getComputedStyle(e);u&&(n=Zy(n,u,l))}let{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function Th(e){return zo(e,{ignoreTransform:!0})}function Wy(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Vy(e,t){return t===void 0&&(t=Ye(e).getComputedStyle(e)),t.position==="fixed"}function Fy(e,t){t===void 0&&(t=Ye(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function Gu(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(ms(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!kr(o)||Zu(o)||n.includes(o))return n;let i=Ye(e).getComputedStyle(o);return o!==e&&Fy(o,i)&&n.push(o),Vy(o,i)?n:r(o.parentNode)}return e?r(e):n}function Bh(e){let[t]=Gu(e,1);return t??null}function Wu(e){return!Po||!e?null:Zn(e)?e:fs(e)?ms(e)||e===jn(e).scrollingElement?window:kr(e)?e:null:null}function Uh(e){return Zn(e)?e.scrollX:e.scrollLeft}function Gh(e){return Zn(e)?e.scrollY:e.scrollTop}function Hu(e){return{x:Uh(e),y:Gh(e)}}var De;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(De||(De={}));function Kh(e){return!Po||!e?!1:e===document.scrollingElement}function qh(e){let t={x:0,y:0},n=Kh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}var Hy={x:.2,y:.2};function By(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Hy);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=qh(e),f={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+g.height?(f.y=De.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(f.y=De.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!m&&a>=t.right-g.width?(f.x=De.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!d&&s<=t.left+g.width&&(f.x=De.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:h}}function Uy(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Yh(e){return e.reduce((t,n)=>Wn(t,Hu(n)),Lt)}function Gy(e){return e.reduce((t,n)=>t+Uh(n),0)}function Ky(e){return e.reduce((t,n)=>t+Gh(n),0)}function qy(e,t){if(t===void 0&&(t=zo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Bh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var Yy=[["x",["left","right"],Gy],["y",["top","bottom"],Ky]],Ao=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=Gu(n),o=Yh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of Yy)for(let c of s)Object.defineProperty(this,c,{get:()=>{let u=a(r),l=o[i]-u;return this.rect[c]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Vn=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function Jy(e){let{EventTarget:t}=Ye(e);return e instanceof t?e:jn(e)}function Vu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ct;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ct||(Ct={}));function $h(e){e.preventDefault()}function Xy(e){e.stopPropagation()}var me;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(me||(me={}));var Jh={start:[me.Space,me.Enter],cancel:[me.Esc],end:[me.Space,me.Enter,me.Tab]},Qy=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case me.Right:return{...n,x:n.x+25};case me.Left:return{...n,x:n.x-25};case me.Down:return{...n,y:n.y+25};case me.Up:return{...n,y:n.y-25}}},vr=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Vn(jn(n)),this.windowListeners=new Vn(Ye(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ct.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&qy(r),n(Lt)}handleKeyDown(t){if(ju(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Jh,coordinateGetter:s=Qy,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}let{collisionRect:u}=r.current,l=u?{x:u.left,y:u.top}:Lt;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=To(d,l),f={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let k=t.code,{isTop:I,isRight:y,isLeft:b,isBottom:$,maxScroll:T,minScroll:w}=qh(g),R=Uy(g),V={x:Math.min(k===me.Right?R.right-R.width/2:R.right,Math.max(k===me.Right?R.left:R.left+R.width/2,d.x)),y:Math.min(k===me.Down?R.bottom-R.height/2:R.bottom,Math.max(k===me.Down?R.top:R.top+R.height/2,d.y))},Y=k===me.Right&&!y||k===me.Left&&!b,ne=k===me.Down&&!$||k===me.Up&&!I;if(Y&&V.x!==d.x){let oe=g.scrollLeft+m.x,j=k===me.Right&&oe<=T.x||k===me.Left&&oe>=w.x;if(j&&!m.y){g.scrollTo({left:oe,behavior:a});return}j?f.x=g.scrollLeft-oe:f.x=k===me.Right?g.scrollLeft-T.x:g.scrollLeft-w.x,f.x&&g.scrollBy({left:-f.x,behavior:a});break}else if(ne&&V.y!==d.y){let oe=g.scrollTop+m.y,j=k===me.Down&&oe<=T.y||k===me.Up&&oe>=w.y;if(j&&!m.x){g.scrollTo({top:oe,behavior:a});return}j?f.y=g.scrollTop-oe:f.y=k===me.Down?g.scrollTop-T.y:g.scrollTop-w.y,f.y&&g.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Wn(To(d,this.referenceCoordinates),f))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};vr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Jh,onActivation:o}=t,{active:i}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Ah(e){return!!(e&&"distance"in e)}function Dh(e){return!!(e&&"delay"in e)}var Do=class{constructor(t,n,r){var o;r===void 0&&(r=Jy(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=jn(s),this.documentListeners=new Vn(this.document),this.listeners=new Vn(r),this.windowListeners=new Vn(Ye(s)),this.initialCoordinates=(o=Cs(i))!=null?o:Lt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.DragStart,$h),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),this.windowListeners.add(Ct.ContextMenu,$h),this.documentListeners.add(Ct.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Dh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ah(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ct.Click,Xy,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ct.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let c=(n=Cs(t))!=null?n:Lt,u=To(o,c);if(!r&&a){if(Ah(a)){if(a.tolerance!=null&&Vu(u,a.tolerance))return this.handleCancel();if(Vu(u,a.distance))return this.handleStart()}if(Dh(a)&&Vu(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===me.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},eb={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},bs=class extends Do{constructor(t){let{event:n}=t,r=jn(n.target);super(t,eb,r)}};bs.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var tb={move:{name:"mousemove"},end:{name:"mouseup"}},Bu;(function(e){e[e.RightClick=2]="RightClick"})(Bu||(Bu={}));var Eo=class extends Do{constructor(t){super(t,tb,jn(t.event.target))}};Eo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Bu.RightClick?!1:(r?.({event:n}),!0)}}];var Fu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},No=class extends Do{constructor(t){super(t,Fu)}static setup(){return window.addEventListener(Fu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Fu.move.name,t)};function t(){}}};No.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var $o;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})($o||($o={}));var vs;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(vs||(vs={}));function nb(e){let{acceleration:t,activator:n=$o.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=vs.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,f=ob({delta:d,disabled:!i}),[h,g]=_h(),k=A({x:0,y:0}),I=A({x:0,y:0}),y=q(()=>{switch(n){case $o.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case $o.DraggableRect:return o}},[n,o,c]),b=A(null),$=Z(()=>{let w=b.current;if(!w)return;let R=k.current.x*I.current.x,V=k.current.y*I.current.y;w.scrollBy(R,V)},[]),T=q(()=>a===vs.TreeOrder?[...u].reverse():u,[a,u]);z(()=>{if(!i||!u.length||!y){g();return}for(let w of T){if(r?.(w)===!1)continue;let R=u.indexOf(w),V=l[R];if(!V)continue;let{direction:Y,speed:ne}=By(w,V,y,t,m);for(let oe of["x","y"])f[oe][Y[oe]]||(ne[oe]=0,Y[oe]=0);if(ne.x>0||ne.y>0){g(),b.current=w,h($,s),k.current=ne,I.current=Y;return}}k.current={x:0,y:0},I.current={x:0,y:0},g()},[t,$,r,g,i,s,JSON.stringify(y),JSON.stringify(f),h,u,T,l,JSON.stringify(m)])}var rb={x:{[De.Backward]:!1,[De.Forward]:!1},y:{[De.Backward]:!1,[De.Forward]:!1}};function ob(e){let{delta:t,disabled:n}=e,r=gs(t);return br(o=>{if(n||!r||!o)return rb;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[De.Backward]:o.x[De.Backward]||i.x===-1,[De.Forward]:o.x[De.Forward]||i.x===1},y:{[De.Backward]:o.y[De.Backward]||i.y===-1,[De.Forward]:o.y[De.Forward]||i.y===1}}},[n,t,r])}function ib(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return br(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function sb(e,t){return q(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Oo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Oo||(Oo={}));var Uu;(function(e){e.Optimized="optimized"})(Uu||(Uu={}));var Eh=new Map;function ab(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=E(null),{frequency:a,measure:c,strategy:u}=o,l=A(e),d=k(),m=yr(d),f=Z(function(I){I===void 0&&(I=[]),!m.current&&s(y=>y===null?I:y.concat(I.filter(b=>!y.includes(b))))},[m]),h=A(null),g=br(I=>{if(d&&!n)return Eh;if(!I||I===Eh||l.current!==e||i!=null){let y=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){y.set(b.id,b.rect.current);continue}let $=b.node.current,T=$?new Ao(c($),$):null;b.rect.current=T,T&&y.set(b.id,T)}return y}return I},[e,i,n,d,c]);return z(()=>{l.current=e},[e]),z(()=>{d||f()},[n,d]),z(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),z(()=>{d||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{f(),h.current=null},a))},[a,d,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:i!=null};function k(){switch(u){case Oo.Always:return!1;case Oo.BeforeDragging:return n;default:return!n}}}function Xh(e,t){return br(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function cb(e,t){return Xh(e,t)}function ub(e){let{callback:t,disabled:n}=e,r=hs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return z(()=>()=>o?.disconnect(),[o]),o}function xs(e){let{callback:t,disabled:n}=e,r=hs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return z(()=>()=>o?.disconnect(),[o]),o}function lb(e){return new Ao(zo(e),e)}function Nh(e,t,n){t===void 0&&(t=lb);let[r,o]=E(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}let l=t(e);return JSON.stringify(c)===JSON.stringify(l)?c:l})}let s=ub({callback(c){if(e)for(let u of c){let{type:l,target:d}=u;if(l==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=xs({callback:i});return qt(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function db(e){let t=Xh(e);return Hh(e,t)}var Oh=[];function pb(e){let t=A(e),n=br(r=>e?r&&r!==Oh&&e&&t.current&&e.parentNode===t.current.parentNode?r:Gu(e):Oh,[e]);return z(()=>{t.current=e},[e]),n}function fb(e){let[t,n]=E(null),r=A(e),o=Z(i=>{let s=Wu(i.target);s&&n(a=>a?(a.set(s,Hu(s)),new Map(a)):null)},[]);return z(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Wu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Hu(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{let u=Wu(c);u?.removeEventListener("scroll",o)})}},[o,e]),q(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Wn(i,s),Lt):Yh(e):Lt,[e,t])}function zh(e,t){t===void 0&&(t=[]);let n=A(null);return z(()=>{n.current=null},t),z(()=>{let r=e!==Lt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?To(e,n.current):Lt}function mb(e){z(()=>{if(!Po)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function hb(e,t){return q(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function Qh(e){return q(()=>e?Wy(e):null,[e])}var Zh=[];function gb(e,t){t===void 0&&(t=zo);let[n]=e,r=Qh(n?Ye(n):null),[o,i]=E(Zh);function s(){i(()=>e.length?e.map(c=>Kh(c)?r:new Ao(t(c),c)):Zh)}let a=xs({callback:s});return qt(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function Cb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return kr(t)?t:e}function kb(e){let{measure:t}=e,[n,r]=E(null),o=Z(u=>{for(let{target:l}of u)if(kr(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=xs({callback:o}),s=Z(u=>{let l=Cb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=Mo(s);return q(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var yb=[{sensor:bs,options:{}},{sensor:vr,options:{}}],bb={current:{}},ks={draggable:{measure:Th},droppable:{measure:Th,strategy:Oo.WhileDragging,frequency:Uu.Optimized},dragOverlay:{measure:zo}},Fn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},vb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ys},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ks,measureDroppableContainers:ys,windowRect:null,measuringScheduled:!1},wb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ys,draggableNodes:new Map,over:null,measureDroppableContainers:ys},Is=we(wb),xb=we(vb);function Ib(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fn}}}function _b(e,t){switch(t.type){case Pe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pe.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pe.DragEnd:case Pe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pe.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Fn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Pe.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let s=new Fn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Pe.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Fn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Sb(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=xe(Is),i=gs(r),s=gs(n?.id);return z(()=>{if(!t&&!r&&i&&s!=null){if(!ju(i)||document.activeElement===i.target)return;let a=o.get(s);if(!a)return;let{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let l of[c.current,u.current]){if(!l)continue;let d=Lh(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Lb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Pb(e){return q(()=>({draggable:{...ks.draggable,...e?.draggable},droppable:{...ks.droppable,...e?.droppable},dragOverlay:{...ks.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Mb(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=A(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;qt(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let l=n(u),d=Hh(l,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let m=Bh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var e5=we({...Lt,scaleX:1,scaleY:1}),Cn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Cn||(Cn={}));var t5=pt(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=yb,collisionDetection:d=Ay,measuring:m,modifiers:f,...h}=t,g=Nu(_b,void 0,Ib),[k,I]=g,[y,b]=xy(),[$,T]=E(Cn.Uninitialized),w=$===Cn.Initialized,{draggable:{active:R,nodes:V,translate:Y},droppable:{containers:ne}}=k,oe=R!=null?V.get(R):null,j=A({initial:null,translated:null}),ae=q(()=>{var he;return R!=null?{id:R,data:(he=oe?.data)!=null?he:bb,rect:j}:null},[R,oe]),re=A(null),[ze,wt]=E(null),[Ge,Nn]=E(null),ht=yr(h,Object.values(h)),Fe=Ro("DndDescribedBy",s),Dt=q(()=>ne.getEnabled(),[ne]),Te=Pb(m),{droppableRects:Ze,measureDroppableContainers:Et,measuringScheduled:Nt}=ab(Dt,{dragging:w,dependencies:[Y.x,Y.y],config:Te.droppable}),$e=ib(V,R),cn=q(()=>Ge?Cs(Ge):null,[Ge]),un=Tu(),On=cb($e,Te.draggable.measure);Mb({activeNode:R!=null?V.get(R):null,config:un.layoutShiftCompensation,initialRect:On,measure:Te.draggable.measure});let He=Nh($e,Te.draggable.measure,On),Be=Nh($e?$e.parentElement:null),Ae=A({activatorEvent:null,active:null,activeNode:$e,collisionRect:null,collisions:null,droppableRects:Ze,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:ne,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=ne.getNodeFor((n=Ae.current.over)==null?void 0:n.id),fe=kb({measure:Te.dragOverlay.measure}),Ut=(r=fe.nodeRef.current)!=null?r:$e,dt=w?(o=fe.rect)!=null?o:He:null,ln=!!(fe.nodeRef.current&&fe.rect),te=db(ln?null:He),Ot=Qh(Ut?Ye(Ut):null),Ke=pb(w?Ce??$e:null),zt=gb(Ke),W=Lb(f,{transform:{x:Y.x-te.x,y:Y.y-te.y,scaleX:1,scaleY:1},activatorEvent:Ge,active:ae,activeNodeRect:He,containerNodeRect:Be,draggingNodeRect:dt,over:Ae.current.over,overlayNodeRect:fe.rect,scrollableAncestors:Ke,scrollableAncestorRects:zt,windowRect:Ot}),Se=cn?Wn(cn,Y):null,yo=fb(Ke),gt=zh(yo),os=zh(yo,[He]),Gt=Wn(W,gt),xt=dt?Oy(dt,W):null,It=ae&&xt?d({active:ae,collisionRect:xt,droppableRects:Ze,droppableContainers:Dt,pointerCoordinates:Se}):null,is=Ty(It,"id"),[_t,bo]=E(null),vo=ln?W:Wn(W,os),Lu=Ey(vo,(i=_t?.rect)!=null?i:null,He),dn=A(null),zn=Z((he,be)=>{let{sensor:ve,options:v}=be;if(re.current==null)return;let _=V.get(re.current);if(!_)return;let P=he.nativeEvent,G=new ve({active:re.current,activeNode:_,event:P,options:v,context:Ae,onAbort(ie){if(!V.get(ie))return;let{onDragAbort:je}=ht.current,Le={id:ie};je?.(Le),y({type:"onDragAbort",event:Le})},onPending(ie,ge,je,Le){if(!V.get(ie))return;let{onDragPending:Io}=ht.current,pn={id:ie,constraint:ge,initialCoordinates:je,offset:Le};Io?.(pn),y({type:"onDragPending",event:pn})},onStart(ie){let ge=re.current;if(ge==null)return;let je=V.get(ge);if(!je)return;let{onDragStart:Le}=ht.current,xo={activatorEvent:P,active:{id:ge,data:je.data,rect:j}};Lo(()=>{Le?.(xo),T(Cn.Initializing),I({type:Pe.DragStart,initialCoordinates:ie,active:ge}),y({type:"onDragStart",event:xo}),wt(dn.current),Nn(P)})},onMove(ie){I({type:Pe.DragMove,coordinates:ie})},onEnd:ee(Pe.DragEnd),onCancel:ee(Pe.DragCancel)});dn.current=G;function ee(ie){return async function(){let{active:je,collisions:Le,over:xo,scrollAdjustedTranslate:Io}=Ae.current,pn=null;if(je&&Io){let{cancelDrop:_o}=ht.current;pn={activatorEvent:P,active:je,collisions:Le,delta:Io,over:xo},ie===Pe.DragEnd&&typeof _o=="function"&&await Promise.resolve(_o(pn))&&(ie=Pe.DragCancel)}re.current=null,Lo(()=>{I({type:ie}),T(Cn.Uninitialized),bo(null),wt(null),Nn(null),dn.current=null;let _o=ie===Pe.DragEnd?"onDragEnd":"onDragCancel";if(pn){let $u=ht.current[_o];$u?.(pn),y({type:_o,event:pn})}})}}},[V]),Pu=Z((he,be)=>(ve,v)=>{let _=ve.nativeEvent,P=V.get(v);if(re.current!==null||!P||_.dndKit||_.defaultPrevented)return;let G={active:P};he(ve,be.options,G)===!0&&(_.dndKit={capturedBy:be.sensor},re.current=v,zn(ve,be))},[V,zn]),wo=sb(l,Pu);mb(l),qt(()=>{He&&$===Cn.Initializing&&T(Cn.Initialized)},[He,$]),z(()=>{let{onDragMove:he}=ht.current,{active:be,activatorEvent:ve,collisions:v,over:_}=Ae.current;if(!be||!ve)return;let P={active:be,activatorEvent:ve,collisions:v,delta:{x:Gt.x,y:Gt.y},over:_};Lo(()=>{he?.(P),y({type:"onDragMove",event:P})})},[Gt.x,Gt.y]),z(()=>{let{active:he,activatorEvent:be,collisions:ve,droppableContainers:v,scrollAdjustedTranslate:_}=Ae.current;if(!he||re.current==null||!be||!_)return;let{onDragOver:P}=ht.current,G=v.get(is),ee=G&&G.rect.current?{id:G.id,rect:G.rect.current,data:G.data,disabled:G.disabled}:null,ie={active:he,activatorEvent:be,collisions:ve,delta:{x:_.x,y:_.y},over:ee};Lo(()=>{bo(ee),P?.(ie),y({type:"onDragOver",event:ie})})},[is]),qt(()=>{Ae.current={activatorEvent:Ge,active:ae,activeNode:$e,collisionRect:xt,collisions:It,droppableRects:Ze,draggableNodes:V,draggingNode:Ut,draggingNodeRect:dt,droppableContainers:ne,over:_t,scrollableAncestors:Ke,scrollAdjustedTranslate:Gt},j.current={initial:dt,translated:xt}},[ae,$e,It,xt,V,Ut,dt,Ze,ne,_t,Ke,Gt]),nb({...un,delta:Y,draggingRect:xt,pointerCoordinates:Se,scrollableAncestors:Ke,scrollableAncestorRects:zt});let Mu=q(()=>({active:ae,activeNode:$e,activeNodeRect:He,activatorEvent:Ge,collisions:It,containerNodeRect:Be,dragOverlay:fe,draggableNodes:V,droppableContainers:ne,droppableRects:Ze,over:_t,measureDroppableContainers:Et,scrollableAncestors:Ke,scrollableAncestorRects:zt,measuringConfiguration:Te,measuringScheduled:Nt,windowRect:Ot}),[ae,$e,He,Ge,It,Be,fe,V,ne,Ze,_t,Et,Ke,zt,Te,Nt,Ot]),Ru=q(()=>({activatorEvent:Ge,activators:wo,active:ae,activeNodeRect:He,ariaDescribedById:{draggable:Fe},dispatch:I,draggableNodes:V,over:_t,measureDroppableContainers:Et}),[Ge,wo,ae,He,I,Fe,V,_t,Et]);return qe.createElement(Wh.Provider,{value:b},qe.createElement(Is.Provider,{value:Ru},qe.createElement(xb.Provider,{value:Mu},qe.createElement(e5.Provider,{value:Lu},u)),qe.createElement(Sb,{disabled:a?.restoreFocus===!1})),qe.createElement(Sy,{...a,hiddenTextDescribedById:Fe}));function Tu(){let he=ze?.autoScrollEnabled===!1,be=typeof c=="object"?c.enabled===!1:c===!1,ve=w&&!he&&!be;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),Rb=we(null),jh="button",Tb="Draggable";function _s(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=Ro(Tb),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=xe(Is),{role:f=jh,roleDescription:h="draggable",tabIndex:g=0}=o??{},k=c?.id===t,I=xe(k?e5:Rb),[y,b]=Mo(),[$,T]=Mo(),w=hb(s,t),R=yr(n);qt(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:$,data:R}),()=>{let Y=d.get(t);Y&&Y.key===i&&d.delete(t)}),[d,t]);let V=q(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":k&&f===jh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,f,g,k,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:V,isDragging:k,listeners:r?void 0:w,node:y,over:m,setNodeRef:b,setActivatorNodeRef:T,transform:I}}var $b="Droppable",Ab={timeout:25};function Ss(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=Ro($b),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=xe(Is),l=A({disabled:n}),d=A(!1),m=A(null),f=A(null),{disabled:h,updateMeasurementsFor:g,timeout:k}={...Ab,...o},I=yr(g??r),y=Z(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(I.current)?I.current:[I.current]),f.current=null},k)},[k]),b=xs({callback:y,disabled:h||!s}),$=Z((V,Y)=>{b&&(Y&&(b.unobserve(Y),d.current=!1),V&&b.observe(V))},[b]),[T,w]=Mo($),R=yr(t);return z(()=>{!b||!T.current||(b.disconnect(),d.current=!1,b.observe(T.current))},[T,b]),z(()=>(a({type:Pe.RegisterDroppable,element:{id:r,key:i,disabled:n,node:T,rect:m,data:R}}),()=>a({type:Pe.UnregisterDroppable,key:i,id:r})),[r]),z(()=>{n!==l.current.disabled&&(a({type:Pe.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:m,isOver:c?.id===r,node:T,over:c,setNodeRef:w}}var Ku=globalThis.__bbPluginRuntime;if(Ku==null||Ku.sonner==null)throw new Error('Cannot load "sonner": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ls=Ku.sonner,oP="default"in Ls?Ls.default:Ls,{Toaster:iP,toast:it,useSonner:sP}=Ls;var Db=Object.defineProperty,Yu=(e,t)=>Db(e,"name",{value:t,configurable:!0});function qu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Yu(qu,"setRef");function n5(...e){return t=>{let n=!1,r=e.map(o=>{let i=qu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){let i=r[o];typeof i=="function"?i():qu(e[o],null)}}}}Yu(n5,"composeRefs");function Ju(...e){return Z(n5(...e),e)}Yu(Ju,"useComposedRefs");var Eb=Object.defineProperty,Pt=(e,t)=>Eb(e,"name",{value:t,configurable:!0});function r5(e){let t=H((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];Xu(o)&&typeof Ps=="function"&&(o=Ps(o._payload)),ls.forEach(o,m=>{if(a5(m)){a=!0;let f=m,h="child"in f.props?f.props.child:f.props.children;Xu(h)&&typeof Ps=="function"&&(h=Ps(h._payload)),s=Ob(f,h),c.push(s?.props?.children)}else c.push(m)}),s?s=gr(s,void 0,c):!a&&ls.count(o)===1&&Cr(o)&&(s=o);let u=s?s5(s):void 0,l=Ju(r,u);if(!s){if(o||o===0)throw new Error(a?jb(e):Zb(e));return o}let d=i5(i,s.props??{});return s.type!==hr&&(d.ref=r?l:u),gr(s,d)});return t.displayName=`${e}.Slot`,t}Pt(r5,"createSlot");var kn=r5("Slot"),o5=Symbol.for("radix.slottable");function Nb(e){let t=Pt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=o5,t}Pt(Nb,"createSlottable");var Ob=Pt((e,t)=>{if("child"in e.props){let n=e.props.child;return Cr(n)?gr(n,void 0,e.props.children(n.props.children)):null}return Cr(t)?t:null},"getSlottableElementFromSlottable");function i5(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{let c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}Pt(i5,"mergeProps");function s5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Pt(s5,"getElementRef");function a5(e){return Cr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===o5}Pt(a5,"isSlottable");var zb=Symbol.for("react.lazy");function Xu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===zb&&"_payload"in e&&c5(e._payload)}Pt(Xu,"isLazyComponent");function c5(e){return typeof e=="object"&&e!==null&&"then"in e}Pt(c5,"isPromiseLike");var Zb=Pt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),jb=Pt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ps=ot[" use ".trim().toString()];var Qu=globalThis.__bbPluginRuntime;if(Qu==null||Qu.classVarianceAuthority==null)throw new Error('Cannot load "class-variance-authority": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ms=Qu.classVarianceAuthority,dP="default"in Ms?Ms.default:Ms,{cva:u5,cx:pP}=Ms;var el=globalThis.__bbPluginRuntime;if(el==null||el.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Rs=el.clsx,mP="default"in Rs?Rs.default:Rs,{clsx:l5}=Rs;var tl=globalThis.__bbPluginRuntime;if(tl==null||tl.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ts=tl.tailwindMerge,gP="default"in Ts?Ts.default:Ts,{createTailwindMerge:CP,extendTailwindMerge:kP,fromTheme:yP,getDefaultConfig:bP,mergeConfigs:vP,twJoin:wP,twMerge:d5,validators:xP}=Ts;function S(...e){return d5(l5(e))}var $s="transition-colors duration-150 hover:duration-0",Zt="transition-none";var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var As=nl.jsxRuntime,MP="default"in As?As.default:As,{Fragment:jt,jsx:p,jsxs:x}=As;var Ds=u5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${$s} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-state-hover hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-state-hover hover:text-foreground aria-pressed:bg-state-active aria-pressed:text-foreground aria-pressed:hover:bg-state-active data-[state=open]:bg-state-active data-[state=open]:text-foreground data-[state=open]:hover:bg-state-active",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Je=H(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>p(r?kn:"button",{className:S(Ds({variant:t,size:n,className:e})),ref:i,...o}));Je.displayName="Button";var rl=globalThis.__bbPluginRuntime;if(rl==null||rl.radixPopover==null)throw new Error('Cannot load "@radix-ui/react-popover": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Es=rl.radixPopover,OP="default"in Es?Es.default:Es,{Anchor:p5,Arrow:zP,Close:ZP,Content:f5,Popover:jP,PopoverAnchor:WP,PopoverArrow:VP,PopoverClose:FP,PopoverContent:HP,PopoverPortal:BP,PopoverTrigger:UP,Portal:m5,Root:h5,Trigger:g5,createPopoverScope:GP}=Es;function Ee(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var Vb="select-none",Fb=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),yn=e=>S(Vb,e);function Hb(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!Fb.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function Zo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!Hb(t)||e!==null&&!e.contains(t)||t.blur()}function bn(){Zo(null)}function C5(){Zo(null)}function Yt(e){e.preventDefault()}var ol="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{ol="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{ol="pointer"},{capture:!0}));function k5(){return ol==="keyboard"}var Ns=new Map;function Bb(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Ns.get(e);if(t)return t;let n=window.matchMedia(e),r=new Set,o=()=>{for(let i of r)i()};return t={mql:n,subscribe(i){let s=r.size===0;return r.add(i),s&&n.addEventListener("change",o),()=>{r.delete(i),r.size===0&&(n.removeEventListener("change",o),Ns.delete(e))}}},Ns.set(e,t),t}function Ub(e,t){return Bb(e)?.subscribe(t)??(()=>{})}function Gb(e){return typeof window>"u"||!window.matchMedia?!1:Ns.get(e)?.mql.matches??window.matchMedia(e).matches}function Os(e){return Kt(t=>Ub(e,t),()=>Gb(e),()=>!1)}var Kb="(max-width: 767px)",qb=we(null);function y5(){let e=xe(qb),t=Os(Kb);return e!==null?e:t}var Yb="(pointer: coarse)";function zs(){return Os(Yb)}var Jb=120,Ws={width:"auto",minWidth:"auto",maxWidth:"none"},il="--bb-drawer-keyboard-inset",Xb=80;function js(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(il))}function Qb({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=Xb?r:0}function ev(e,t){z(()=>{let n=e.current,r=window.visualViewport;if(n===null||!t||!r)return;let o=null,i=()=>{if(o=null,r.scale!==1){js(n);return}let a=Qb({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(il);return}n.style.bottom=`${a}px`,n.style.setProperty(il,`${a}px`)},s=()=>{o!==null&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(i)};return i(),r.addEventListener("resize",s),r.addEventListener("scroll",s),()=>{r.removeEventListener("resize",s),r.removeEventListener("scroll",s),o!==null&&window.cancelAnimationFrame(o),js(n)}},[t,e])}function tv(){let e=y5()?"drawer":"floating",t=zs();return{presentation:e,supportsHover:e==="floating"&&!t}}function wr(e,t,n=!1){let{presentation:r}=tv(),o=r==="drawer",[i,s]=E(n),a=e!==void 0,c=a?e:i,u=Z(l=>{c&&!l&&o&&C5(),a||s(l),t?.(l)},[o,a,t,c]);return q(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var Hn=H(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=yn(s),l=m=>{o?.(m),m.defaultPrevented||(t||bn(),n(!t))},d={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?p(kn,{ref:c,onClick:l,onMouseDown:Yt,className:u,...d,...a,children:i}):p("button",{ref:c,type:"button",onClick:l,onMouseDown:Yt,className:u,...d,...a,children:i})});Hn.displayName="MobileTrigger";var nv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],rv=new Set(nv);function xr(e){let t={};for(let n of Object.keys(e))rv.has(n)||(t[n]=e[n]);return t}function ov({open:e,enabled:t=!0}){let[n,r]=E(!1),o=Z(()=>r(!0),[]);return z(()=>{if(!t||!e||n)return;let i=null,s=null;i=window.requestAnimationFrame(()=>{i=null,s=window.requestAnimationFrame(()=>{s=null,o()})});let a=window.setTimeout(o,Jb);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function Ir({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=ov({open:e});return!e&&!l?null:p(fv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:p("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var b5="cubic-bezier(0.32, 0.72, 0, 1)",iv=.25,sv=450,av=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Zs=new WeakMap;function cv(e){return Array.from(e.querySelectorAll(av)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function uv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function lv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&uv(n,t))return;let r=cv(t);if(e.preventDefault(),r.length===0){t.focus({preventScroll:!0});return}let o=r[0],i=r[r.length-1];if(e.shiftKey){if(!t.contains(n)||n===t||n===o){i?.focus({preventScroll:!0});return}let a=r.indexOf(n);r[Math.max(0,a-1)]?.focus({preventScroll:!0});return}if(!t.contains(n)||n===t||n===i){o?.focus({preventScroll:!0});return}let s=r.indexOf(n);r[Math.min(r.length-1,s+1)]?.focus({preventScroll:!0})}function dv(e,t){let n=Zs.get(e);if(n===void 0){let r=[],o=i=>{if(i.defaultPrevented)return;let s=r[r.length-1],a=s?.panel()??null;s===void 0||a===null||(i.key==="Escape"?(i.preventDefault(),s.requestClose()):i.key==="Tab"&&lv(i,a))};n={entries:r,handleKeyDown:o},Zs.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=Zs.get(e);if(r===void 0)return;let o=r.entries.indexOf(t);o>=0&&r.entries.splice(o,1),r.entries.length===0&&(e.removeEventListener("keydown",r.handleKeyDown),Zs.delete(e))}}function pv({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=A(null);rt(()=>{if(!n)return;let a=r.current;if(a===null)return;let c=a.ownerDocument,u=c.activeElement;i.current=u instanceof HTMLElement&&u!==c.body?u:null;let l=dv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=A(n);rt(()=>{let a;if(s.current&&!n){t?.();let c=i.current;if(c?.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&(c.focus({preventScroll:!0}),c.ownerDocument.activeElement!==c)){let u=c.ownerDocument.defaultView;if(u!==null){let l=u.requestAnimationFrame(()=>{c.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&c.focus({preventScroll:!0}),e?.()});a=()=>u.cancelAnimationFrame(l)}}i.current=null,a===void 0&&e?.()}return s.current=n,a},[e,t,n])}function fv({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,motionDurationMs:c=220,onContentAnimationEnd:u,children:l}){let d=A(null),m=A(null),f=A(null),h=A(null),g=gn(),k=Ee(),I=`transform ${c}ms ${b5}`,y=`opacity ${c}ms ${b5}`,b=A(t);rt(()=>{b.current=t},[t]);let $=Z(()=>{Zo(d.current),js(d.current),b.current(!1)},[]),T=Z(()=>{Zo(d.current),js(d.current)},[]);pv({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:T,open:e,panelRef:d,requestClose:$}),ev(d,e);let w=Z(j=>{h.current!==j&&(h.current=j,u?.(j))},[u]);z(()=>{h.current=null;let j=window.setTimeout(()=>w(e),c+50);return()=>window.clearTimeout(j)},[c,e,w]);let R=Z((j,ae,re)=>{let ze=d.current,wt=m.current;ze===null||wt===null||(ze.style.transition=re?I:"none",ze.style.transform=`translate3d(0, ${j}px, 0)`,wt.style.transition=re?y:"none",wt.style.opacity=String(Math.max(0,Math.min(1,1-j/ae))))},[y,I]),V=Z(j=>{if(!e||j.button!==0)return;j.currentTarget.setPointerCapture(j.pointerId);let ae=Date.now(),re=Math.max(d.current?.clientHeight??0,1);f.current={pointerId:j.pointerId,startY:j.clientY,lastY:j.clientY,lastTimeMs:ae,velocityY:0,height:re},R(0,re,!1),j.preventDefault()},[e,R]),Y=Z(j=>{let ae=f.current;if(ae===null||ae.pointerId!==j.pointerId)return;let re=Date.now(),ze=re-ae.lastTimeMs;ze>0&&(ae.velocityY=(j.clientY-ae.lastY)/ze*1e3,ae.lastY=j.clientY,ae.lastTimeMs=re),R(Math.max(0,j.clientY-ae.startY),ae.height,!1),j.preventDefault()},[R]),ne=Z((j,ae)=>{let re=f.current;if(re===null||re.pointerId!==j.pointerId)return;f.current=null;let ze=Math.max(0,j.clientY-re.startY);!ae&&(ze>=re.height*iv||re.velocityY>=sv)?(R(re.height,re.height,!0),$()):R(0,re.height,!0),j.preventDefault()},[$,R]),oe=typeof document>"u"?null:document.body;return oe===null?null:ps(x(jt,{children:[p("div",{ref:m,...k,"aria-hidden":"true","data-persistent-drawer-backdrop":"","data-state":e?"open":"closed",className:"fixed inset-0 z-50 bg-black/40",style:{opacity:e?1:0,pointerEvents:e?"auto":"none",transition:y},onClick:r?$:void 0,onTouchMove:j=>j.preventDefault()}),x("div",{ref:d,...k,"aria-hidden":!e,"aria-labelledby":i??(o===void 0?void 0:g),"aria-describedby":s,"aria-modal":e||void 0,"data-bb-portaled-overlay":"","data-persistent-drawer-content":"","data-state":e?"open":"closed",inert:!e,role:"dialog",tabIndex:-1,className:S("fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[calc(92dvh-var(--bb-drawer-keyboard-inset,0px))] flex-col rounded-t-xl border bg-background outline-none",a),style:{transform:e?"translate3d(0, 0, 0)":"translate3d(0, 100%, 0)",transition:I,willChange:e?"transform":void 0},onTransitionEnd:j=>{j.currentTarget===j.target&&j.propertyName==="transform"&&w(e)},children:[p("div",{"data-persistent-drawer-handle":"",className:"mx-auto flex h-8 w-16 shrink-0 touch-none cursor-grab items-center justify-center active:cursor-grabbing",onPointerDown:V,onPointerMove:Y,onPointerUp:j=>ne(j,!1),onPointerCancel:j=>ne(j,!0),children:p("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:p("h2",{id:g,className:"sr-only",children:o}),l]})]}),oe)}var sl=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function al(){return xe(sl)}function Vs({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=wr(t,n,r);return i.isCompactViewport?p(sl.Provider,{value:i,children:e}):p(h5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(sl.Provider,{value:i,children:e})})}var jo=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=al();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(g5,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});jo.displayName="PopoverTrigger";var Wo=H(({className:e,align:t="center",sideOffset:n=4,children:r,dismissOnOutsideInteraction:o=!0,onInteractOutside:i,mobileTitle:s,mobileClassName:a,onMobileContentAnimationEnd:c,onOpenAutoFocus:u,autoFocusRef:l,...d},m)=>{let{isCompactViewport:f,open:h,onOpenChange:g}=al(),k=zs(),I=Ee();if(z(()=>{if(!h||f||k||!l)return;let y=window.requestAnimationFrame(()=>{let b=l.current;b?.focus(),b instanceof HTMLInputElement&&b.select()});return()=>window.cancelAnimationFrame(y)},[l,f,k,h]),f){let{style:y,...b}=xr(d);return p(Ir,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:p("div",{ref:m,className:S("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...b,style:{...y,...Ws},children:r})})}return p(m5,{children:p(f5,{ref:m,...I,align:t,sideOffset:n,onOpenAutoFocus:y=>{(k||l)&&y.preventDefault(),k||u?.(y)},className:S("z-50 w-96 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",e),...d,onInteractOutside:y=>{o||y.preventDefault(),i?.(y)},children:r})})});Wo.displayName="PopoverContent";var mv=H(({children:e,...t},n)=>{let{isCompactViewport:r}=al();return r?p(jt,{children:e}):p(p5,{ref:n,...t,children:e})});mv.displayName="PopoverAnchor";var hv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),gv=new Set(["working","background","queued","scheduled"]);function Cv(e){return!gv.has(e.state.kind)}function kv(e,t){let n=0;return t.has("unread-failed")&&(n=Math.max(n,e.latestAttentionAt)),t.has("queue-failed")&&(n=Math.max(n,e.updatedAt)),n}function v5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!Cv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=kv(e,t)}function w5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)hv.has(r)&&n.add(r);return n}return e.has("waits-on-you")&&n.add("waits-on-you"),e.has("offline")&&n.add("offline"),t.orphaned&&(e.has("unread-failed")&&n.add("unread-failed"),e.has("queue-failed")&&n.add("queue-failed")),n}function x5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}var cl={heldRootId:null,openRootId:null};function I5(e,t,n){let r=e.root.thread.id;return r===t?!0:e.needsYouFlags.size>0&&r!==n}function _5(e,t){if(t===void 0)return cl;let n=t.root.thread.id;return n===e.openRootId?{heldRootId:e.heldRootId===n?n:null,openRootId:n}:{heldRootId:t.needsYouFlags.size>0?n:null,openRootId:n}}function S5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.needsYou.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),x5(o.needsYou,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,needsYou:r}}function L5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.needsYou)e?.needsYou.has(r)||n.set(r,"reveal");for(let r of t.unread)r===t.activeThreadId||n.has(r)||e?.unread.has(r)||n.set(r,"open");return n}function P5(e,t){if(t.size===0)return e;let n=new Map(e);for(let[r,o]of t)n.get(r)!=="reveal"&&n.set(r,o);return n}function M5(e,t){let n=!1,r=new Map;for(let[o,i]of e)t(o)?n=!0:r.set(o,i);return n?r:e}function R5(e,t){let n=A(null),r=A(null),o=A(void 0),[i,s]=E(()=>new Map),a=A(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=S5(e,t),d=L5(n.current,l);n.current=l,r.current=e,o.current=t,c=P5(i,d),c!==i&&(a.current=c,s(c))}let u=Z(l=>{let d=M5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var se={};St(se,{$brand:()=>xl,$input:()=>K1,$output:()=>G1,INVALID:()=>et,NEVER:()=>wl,TimePrecision:()=>ip,ZodAny:()=>Gf,ZodArray:()=>Jf,ZodBase64:()=>Zc,ZodBase64URL:()=>jc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Fc,ZodBoolean:()=>io,ZodCIDRv4:()=>Oc,ZodCIDRv6:()=>zc,ZodCUID:()=>Rc,ZodCUID2:()=>Tc,ZodCatch:()=>k2,ZodCodec:()=>Di,ZodCompileAsyncError:()=>Rt,ZodCompileUnsupportedError:()=>Q,ZodCreditCard:()=>Zf,ZodCustom:()=>Ei,ZodCustomStringFormat:()=>cr,ZodDate:()=>Pi,ZodDefault:()=>p2,ZodDiscriminatedUnion:()=>Qf,ZodE164:()=>Wc,ZodEmail:()=>Sc,ZodEmoji:()=>Pc,ZodEnum:()=>no,ZodError:()=>PI,ZodExactOptional:()=>Gc,ZodFile:()=>c2,ZodFirstPartyTypeKind:()=>$2,ZodFunction:()=>P2,ZodGUID:()=>Lc,ZodIBAN:()=>jf,ZodIPv4:()=>Ec,ZodIPv6:()=>Nc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>T2,ZodIntersection:()=>e2,ZodIssueCode:()=>TI,ZodJWT:()=>Vc,ZodKSUID:()=>Dc,ZodLazy:()=>_2,ZodLiteral:()=>a2,ZodMAC:()=>zf,ZodMap:()=>i2,ZodNaN:()=>b2,ZodNanoID:()=>Mc,ZodNever:()=>qf,ZodNonOptional:()=>Kc,ZodNull:()=>Bf,ZodNullable:()=>d2,ZodNumber:()=>oo,ZodNumberFormat:()=>ur,ZodObject:()=>Ri,ZodOptional:()=>$i,ZodPipe:()=>Ai,ZodPrefault:()=>m2,ZodPreprocess:()=>v2,ZodPromise:()=>L2,ZodReadonly:()=>w2,ZodRealError:()=>lt,ZodRecord:()=>to,ZodSet:()=>s2,ZodString:()=>ro,ZodStringFormat:()=>de,ZodSuccess:()=>C2,ZodSymbol:()=>Ff,ZodTemplateLiteral:()=>I2,ZodTransform:()=>u2,ZodTuple:()=>n2,ZodType:()=>J,ZodULID:()=>$c,ZodURL:()=>Li,ZodUUID:()=>Ht,ZodUndefined:()=>Hf,ZodUnion:()=>Ti,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>Ac,ZodXor:()=>Xf,_ZodString:()=>_c,_default:()=>f2,_function:()=>e4,any:()=>T9,array:()=>Mi,base64:()=>d9,base64url:()=>p9,bigint:()=>S9,boolean:()=>Vf,catch:()=>y2,check:()=>t4,cidrv4:()=>u9,cidrv6:()=>l9,clone:()=>ce,codec:()=>Y9,coerce:()=>D2,compile:()=>X1,config:()=>ye,core:()=>tn,creditCard:()=>m9,cuid:()=>t9,cuid2:()=>n9,currencyCode:()=>b9,custom:()=>n4,date:()=>A9,decode:()=>Tf,decodeAsync:()=>Af,deepPartial:()=>h4,describe:()=>r4,discriminatedUnion:()=>Z9,e164:()=>f9,email:()=>B0,emoji:()=>Q0,encode:()=>Rf,encodeAsync:()=>$f,endsWith:()=>Hr,enum:()=>Bc,exactOptional:()=>l2,file:()=>U9,flattenError:()=>Jo,float32:()=>w9,float64:()=>x9,formatError:()=>Xo,fromJSONSchema:()=>f4,function:()=>e4,getDiscriminatedOption:()=>v1,getErrorMap:()=>AI,globalRegistry:()=>Ve,gt:()=>Vt,gte:()=>mt,guid:()=>U0,hash:()=>v9,hex:()=>y9,hostname:()=>k9,httpUrl:()=>X0,iban:()=>h9,includes:()=>Vr,input:()=>C4,instanceof:()=>i4,int:()=>xc,int32:()=>I9,int64:()=>L9,intersection:()=>t2,invertCodec:()=>J9,ipv4:()=>s9,ipv6:()=>c9,iso:()=>Ni,json:()=>a4,jwt:()=>g9,keyof:()=>D9,ksuid:()=>i9,lazy:()=>S2,length:()=>rr,literal:()=>B9,locales:()=>Ci,looseObject:()=>O9,looseRecord:()=>W9,lowercase:()=>jr,lt:()=>Wt,lte:()=>ft,mac:()=>a9,map:()=>V9,maxLength:()=>nr,maxSize:()=>_n,memoizer:()=>gi,meta:()=>o4,mime:()=>Ur,minLength:()=>en,minSize:()=>Ft,multipleOf:()=>In,nan:()=>q9,nanoid:()=>e9,nativeEnum:()=>H9,negative:()=>pc,never:()=>Hc,nonnegative:()=>mc,nonoptional:()=>g2,nonpositive:()=>fc,normalize:()=>Gr,null:()=>Uf,nullable:()=>Si,nullish:()=>G9,number:()=>Wf,object:()=>E9,optional:()=>sr,output:()=>k4,overwrite:()=>Tt,parse:()=>Sf,parseAsync:()=>Lf,partialRecord:()=>j9,pipe:()=>Ic,positive:()=>dc,prefault:()=>h2,preprocess:()=>c4,prettifyError:()=>Pl,promise:()=>Q9,properties:()=>Br,property:()=>hc,readonly:()=>x2,record:()=>o2,refine:()=>M2,regex:()=>Zr,regexes:()=>bt,registry:()=>ja,safeDecode:()=>Ef,safeDecodeAsync:()=>Of,safeEncode:()=>Df,safeEncodeAsync:()=>Nf,safeParse:()=>Pf,safeParseAsync:()=>Mf,set:()=>F9,setErrorMap:()=>$I,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,strictObject:()=>N9,string:()=>_i,stringFormat:()=>C9,stringbool:()=>s4,success:()=>K9,superRefine:()=>R2,symbol:()=>M9,templateLiteral:()=>X9,toJSONSchema:()=>yc,toLowerCase:()=>qr,toUpperCase:()=>Yr,toZod:()=>Vo,transform:()=>Uc,treeifyError:()=>Ll,trim:()=>Kr,tuple:()=>r2,uint32:()=>_9,uint64:()=>P9,ulid:()=>r9,undefined:()=>R9,union:()=>ao,unknown:()=>ir,uppercase:()=>Wr,url:()=>J0,util:()=>O,uuid:()=>G0,uuidv4:()=>K0,uuidv6:()=>q0,uuidv7:()=>Y0,validate:()=>Qo,validateAsync:()=>ei,void:()=>$9,withParser:()=>Wa,xid:()=>o9,xor:()=>z9});var tn={};St(tn,{$ZodAny:()=>f1,$ZodArray:()=>k1,$ZodAsyncError:()=>ct,$ZodBase64:()=>t1,$ZodBase64URL:()=>n1,$ZodBigInt:()=>Pa,$ZodBigIntFormat:()=>u1,$ZodBoolean:()=>li,$ZodCIDRv4:()=>Qd,$ZodCIDRv6:()=>e1,$ZodCUID:()=>Wd,$ZodCUID2:()=>Vd,$ZodCatch:()=>O1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>md,$ZodCheckEndsWith:()=>Sd,$ZodCheckGreaterThan:()=>pa,$ZodCheckIncludes:()=>Id,$ZodCheckLengthEquals:()=>bd,$ZodCheckLessThan:()=>da,$ZodCheckLowerCase:()=>wd,$ZodCheckMaxLength:()=>kd,$ZodCheckMaxSize:()=>hd,$ZodCheckMimeType:()=>Md,$ZodCheckMinLength:()=>yd,$ZodCheckMinSize:()=>gd,$ZodCheckMultipleOf:()=>pd,$ZodCheckNumberFormat:()=>fd,$ZodCheckOverwrite:()=>Rd,$ZodCheckProperties:()=>Pd,$ZodCheckProperty:()=>Ld,$ZodCheckRegex:()=>vd,$ZodCheckSizeEquals:()=>Cd,$ZodCheckStartsWith:()=>_d,$ZodCheckStringFormat:()=>Er,$ZodCheckUpperCase:()=>xd,$ZodCodec:()=>pi,$ZodCreditCard:()=>o1,$ZodCustom:()=>H1,$ZodCustomStringFormat:()=>a1,$ZodCyclicError:()=>Ea,$ZodDate:()=>C1,$ZodDefault:()=>A1,$ZodDiscriminatedUnion:()=>w1,$ZodE164:()=>r1,$ZodEmail:()=>Ed,$ZodEmoji:()=>Zd,$ZodEncodeError:()=>xn,$ZodEnum:()=>L1,$ZodError:()=>Sl,$ZodExactOptional:()=>T1,$ZodFile:()=>M1,$ZodFunction:()=>V1,$ZodGUID:()=>Ad,$ZodIBAN:()=>i1,$ZodIPv4:()=>Yd,$ZodIPv6:()=>Jd,$ZodISODate:()=>Gd,$ZodISODateTime:()=>Ud,$ZodISODuration:()=>qd,$ZodISOTime:()=>Kd,$ZodIntersection:()=>x1,$ZodJWT:()=>s1,$ZodKSUID:()=>Bd,$ZodLazy:()=>fi,$ZodLiteral:()=>P1,$ZodMAC:()=>Xd,$ZodMap:()=>_1,$ZodNaN:()=>z1,$ZodNanoID:()=>jd,$ZodNever:()=>h1,$ZodNonOptional:()=>E1,$ZodNull:()=>p1,$ZodNullable:()=>$1,$ZodNumber:()=>La,$ZodNumberFormat:()=>c1,$ZodObject:()=>d0,$ZodObjectJIT:()=>y1,$ZodOptional:()=>Ra,$ZodPipe:()=>Ta,$ZodPrefault:()=>D1,$ZodPreprocess:()=>Z1,$ZodPromise:()=>F1,$ZodReadonly:()=>j1,$ZodRealError:()=>ut,$ZodRecord:()=>I1,$ZodRegistry:()=>Za,$ZodSet:()=>S1,$ZodString:()=>Yn,$ZodStringFormat:()=>ue,$ZodSuccess:()=>N1,$ZodSymbol:()=>l1,$ZodTemplateLiteral:()=>W1,$ZodTransform:()=>R1,$ZodTuple:()=>Ma,$ZodType:()=>K,$ZodULID:()=>Fd,$ZodURL:()=>zd,$ZodUUID:()=>Dd,$ZodUndefined:()=>d1,$ZodUnion:()=>di,$ZodUnknown:()=>m1,$ZodVoid:()=>g1,$ZodXID:()=>Hd,$ZodXor:()=>b1,$brand:()=>xl,$constructor:()=>C,$input:()=>K1,$output:()=>G1,Doc:()=>qn,INVALID:()=>et,JSONSchema:()=>V0,JSONSchemaGenerator:()=>bc,NEVER:()=>wl,TimePrecision:()=>ip,URL_BAD_FORMAT:()=>Nd,URL_UNPARSEABLE:()=>ii,ZodCompileAsyncError:()=>Rt,ZodCompileUnsupportedError:()=>Q,_any:()=>wp,_array:()=>Mp,_base64:()=>ac,_base64url:()=>cc,_bigint:()=>hp,_boolean:()=>fp,_catch:()=>gI,_check:()=>S0,_cidrv4:()=>ic,_cidrv6:()=>sc,_coercedBigint:()=>gp,_coercedBoolean:()=>mp,_coercedDate:()=>Lp,_coercedNumber:()=>ap,_coercedString:()=>tp,_creditCard:()=>rp,_cuid:()=>Xa,_cuid2:()=>Qa,_custom:()=>Tp,_date:()=>Sp,_decode:()=>ea,_decodeAsync:()=>na,_default:()=>fI,_discriminatedUnion:()=>tI,_e164:()=>uc,_email:()=>Ha,_emoji:()=>Ya,_encode:()=>Qs,_encodeAsync:()=>ta,_endsWith:()=>Hr,_enum:()=>aI,_file:()=>Rp,_float32:()=>up,_float64:()=>lp,_gt:()=>Vt,_gte:()=>mt,_guid:()=>Ba,_iban:()=>op,_includes:()=>Vr,_int:()=>cp,_int32:()=>dp,_int64:()=>Cp,_intersection:()=>nI,_ipv4:()=>rc,_ipv6:()=>oc,_isoDate:()=>bi,_isoDateTime:()=>yi,_isoDuration:()=>wi,_isoTime:()=>vi,_jwt:()=>lc,_ksuid:()=>nc,_lazy:()=>bI,_length:()=>rr,_literal:()=>uI,_lowercase:()=>jr,_lt:()=>Wt,_lte:()=>ft,_mac:()=>np,_map:()=>iI,_max:()=>ft,_maxLength:()=>nr,_maxSize:()=>_n,_mime:()=>Ur,_min:()=>mt,_minLength:()=>en,_minSize:()=>Ft,_multipleOf:()=>In,_nan:()=>Pp,_nanoid:()=>Ja,_nativeEnum:()=>cI,_negative:()=>pc,_never:()=>Ip,_nonnegative:()=>mc,_nonoptional:()=>mI,_nonpositive:()=>fc,_normalize:()=>Gr,_null:()=>vp,_nullable:()=>pI,_number:()=>sp,_optional:()=>dI,_overwrite:()=>Tt,_parse:()=>Tr,_parseAsync:()=>$r,_pipe:()=>CI,_positive:()=>dc,_promise:()=>vI,_properties:()=>Br,_property:()=>hc,_readonly:()=>kI,_record:()=>oI,_refine:()=>$p,_regex:()=>Zr,_safeDecode:()=>oa,_safeDecodeAsync:()=>sa,_safeEncode:()=>ra,_safeEncodeAsync:()=>ia,_safeParse:()=>Ar,_safeParseAsync:()=>Dr,_set:()=>sI,_size:()=>tr,_slugify:()=>Jr,_startsWith:()=>Fr,_string:()=>ep,_stringFormat:()=>or,_stringbool:()=>Np,_success:()=>hI,_superRefine:()=>Ap,_symbol:()=>yp,_templateLiteral:()=>yI,_toLowerCase:()=>qr,_toUpperCase:()=>Yr,_transform:()=>lI,_trim:()=>Kr,_tuple:()=>rI,_uint32:()=>pp,_uint64:()=>kp,_ulid:()=>ec,_undefined:()=>bp,_union:()=>Qx,_unknown:()=>xp,_uppercase:()=>Wr,_url:()=>ki,_uuid:()=>Ua,_uuidv4:()=>Ga,_uuidv6:()=>Ka,_uuidv7:()=>qa,_void:()=>_p,_xid:()=>tc,_xor:()=>eI,base64Charset:()=>wa,base64urlCharset:()=>ui,canParseURL:()=>Od,clone:()=>ce,compile:()=>X1,compileFn:()=>Va,config:()=>ye,createStandardJSONSchemaMethod:()=>Xr,createToJSONSchemaMethod:()=>zp,decode:()=>uw,decodeAsync:()=>dw,describe:()=>Dp,encode:()=>cw,encodeAsync:()=>lw,extractDefs:()=>Ln,finalize:()=>Pn,flattenError:()=>Jo,formatError:()=>Xo,getDiscriminatedOption:()=>v1,globalConfig:()=>Ne,globalRegistry:()=>Ve,handleUnrepresentable:()=>Me,initializeContext:()=>Sn,isBackEdge:()=>Oa,isRecursiveSchema:()=>Na,isValidBase64:()=>ci,isValidBase64URL:()=>xa,isValidCIDRv6:()=>va,isValidCreditCard:()=>Ia,isValidIBAN:()=>_a,isValidIPv6:()=>ai,isValidJWT:()=>Sa,locales:()=>Ci,memoizer:()=>gi,mergeValues:()=>Nr,meta:()=>Ep,parse:()=>Js,parseAsync:()=>Xs,parseURLObject:()=>c0,prettifyError:()=>Pl,process:()=>le,processSchema:()=>le,regexes:()=>bt,registry:()=>ja,safeDecode:()=>fw,safeDecodeAsync:()=>hw,safeEncode:()=>pw,safeEncodeAsync:()=>mw,safeParse:()=>rw,safeParseAsync:()=>ow,standardProps:()=>Ca,stripTabAndNewline:()=>si,toDotPath:()=>W5,toJSONSchema:()=>yc,toZod:()=>Vo,treeifyError:()=>Ll,urlHostnameOk:()=>ya,urlProtocolOk:()=>ba,util:()=>O,validate:()=>Qo,validateAsync:()=>ei,validateURL:()=>ka,version:()=>Td,withParser:()=>Wa});var O={};St(O,{BIGINT_FORMAT_RANGES:()=>Go,CONSTANT_CATCH:()=>qs,Class:()=>dl,NUMBER_FORMAT_RANGES:()=>Uo,aborted:()=>Qe,allowsEval:()=>ml,assert:()=>xv,assertEqual:()=>yv,assertIs:()=>vv,assertNever:()=>wv,assertNotEqual:()=>bv,assignProp:()=>We,attachSchema:()=>Ks,base64ToUint8Array:()=>E5,base64urlToUint8Array:()=>Vv,cached:()=>Pr,captureStackTrace:()=>Bs,cleanEnum:()=>Wv,cleanRegex:()=>Xt,clone:()=>ce,cloneDef:()=>Sv,codePointLength:()=>Gn,constantCatch:()=>bl,createTransparentProxy:()=>$v,defineLazy:()=>pl,defineLazyInternal:()=>X,derived:()=>Uv,esc:()=>Xe,escapeRegex:()=>yt,explicitlyAborted:()=>Cl,extend:()=>Ev,finalizeIssue:()=>at,floatSafeRemainder:()=>Fo,getElementAtPath:()=>Lv,getEnumValues:()=>Sr,getLengthableOrigin:()=>qo,getParsedType:()=>Tv,getSizableOrigin:()=>Ko,hexToUint8Array:()=>Hv,hide:()=>Yo,installLazyProp:()=>Yv,isObject:()=>Un,isPlainObject:()=>kt,issue:()=>Rr,joinValues:()=>Fs,jsonStringifyReplacer:()=>Lr,members:()=>yl,merge:()=>Ov,mergeDefs:()=>Mt,normalizeParams:()=>M,nullish:()=>Hs,numKeys:()=>Rv,objectClone:()=>Iv,omit:()=>Dv,optionalKeys:()=>gl,own:()=>wn,parsedType:()=>kl,partial:()=>zv,pick:()=>Av,prefixIssues:()=>st,primitiveTypes:()=>hl,promiseAllObject:()=>Pv,propertyKeyTypes:()=>Bo,randomString:()=>Mv,rawShape:()=>Mr,required:()=>Zv,safeExtend:()=>Nv,shallowClone:()=>Ho,slugify:()=>fl,stringifyPrimitive:()=>Us,toZod:()=>Vo,uint8ArrayToBase64:()=>N5,uint8ArrayToBase64url:()=>Fv,uint8ArrayToHex:()=>Bv,unwrapMessage:()=>_r});function yv(e){return e}function bv(e){return e}function Vo(){return e=>e}function vv(e){}function wv(e){throw new Error("Unexpected value in exhaustive check")}function xv(e){}function Sr(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Fs(e,t="|"){return e.map(n=>Us(n)).join(t)}function Lr(e,t){return typeof t=="bigint"?t.toString():t}var ll=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Pr(e){return new ll(e)}function Hs(e){return e==null}function Xt(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Fo(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}var T5=Symbol("evaluating");function pl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==T5)return r===void 0&&(r=T5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Iv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function We(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Mr(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Jt(e){return Mr(e._zod.def)??e._zod.def.shape}function $5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return We(this,t,r),r},enumerable:!0,configurable:!0})}function A5(e,t,n){t in e?We(e,t,n):e[t]=n}function Bn(e,t,n,r){let o=Jt(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?$5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):A5(e,i,r?r(s.value,i):s.value))}}function _v(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?$5(e,n,()=>t[n]):A5(e,n,r.value))}}function Mt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Sv(e){return Mt(e._zod.def)}function Lv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Pv(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function Mv(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Xe(e){return JSON.stringify(e)}function fl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Bs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Un(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ml=Pr(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function kt(e){if(Un(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Un(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ho(e){return kt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Rv(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Tv=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Bo=new Set(["string","number","symbol"]),hl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $v(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function Us(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function gl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Uo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Go={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Av(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Bn(i,e,Gs(e,t)),ce(e,Mt(n,{shape:i,checks:[]}))}function Gs(e,t){let n=Jt(e),r=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function Dv(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(Gs(e,t)),s={};return Bn(s,e,Reflect.ownKeys(Jt(e)).filter(a=>!i.has(a))),ce(e,Mt(n,{shape:s,checks:[]}))}function Ev(e,t){if(!kt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=Jt(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ce(e,Mt(e._zod.def,{shape:D5(e,t)}))}function D5(e,t){let n={};return Bn(n,e,Reflect.ownKeys(Jt(e))),_v(n,t),n}function Nv(e,t){if(!kt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ce(e,Mt(e._zod.def,{shape:D5(e,t)}))}function Ov(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Bn(n,e,Reflect.ownKeys(Jt(e))),Bn(n,t,Reflect.ownKeys(Jt(t)));let r=Mt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ce(e,r)}function zv(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Gs(t,n)):void 0,c={};return Bn(c,t,Reflect.ownKeys(Jt(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),ce(t,Mt(t._zod.def,{shape:c,checks:[]}))}function Zv(e,t,n){let r=n?new Set(Gs(t,n)):void 0,o={};return Bn(o,t,Reflect.ownKeys(Jt(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),ce(t,Mt(t._zod.def,{shape:o}))}function Qe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Cl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function st(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function _r(e){return typeof e=="string"?e:e?.message}function Ks(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function at(e,t,n){var r;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:_r(e.inst?._zod.def?.error?.(e))??_r(i?.(e))??_r(t?.error?.(e))??_r(n.customError?.(e))??_r(n.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function Ko(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var jv=/[\uD800-\uDBFF]/;function Gn(e){let t=e.length;if(!jv.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function qo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function kl(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Rr(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Wv(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function E5(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function N5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Vv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return E5(t+n)}function Fv(e){return N5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Hv(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function Bv(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var dl=class{constructor(...t){}};function yl(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Gv(e,n,r.value)}}function wn(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Yo(e,t,n){return wn(e,t,n,!1)}function Uv(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return wn(this,n,r(this))},set(o){wn(this,n,o)}})}return t}function Gv(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:wn(this,t,n.bind(this))},set(r){wn(this,t,r)}})}function Kv(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var ul,vn=!1,qv={configurable:!0,get(){vn=!0}};function X(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&ul!==e._zod){ul=void 0;return}ul=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,qv);let o=vn;vn=!1;try{let i=n(this);return vn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),vn=vn||o,i}catch(i){throw delete this[t],vn=vn||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function Yv(e,t,n,r){let o=Kv(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var qs="~constantCatch";function bl(e){let t=()=>e;return t[qs]=!0,t}var O5,wl=Object.freeze({status:"aborted"}),vl={value:void 0,enumerable:!1},z5="captureStackTrace"in Error?Error:null;function Jv(e){let t=z5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return z5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function C(e,t,n,r){let o={};function i(m){this.def=m,this.constr=d,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(m,f){if(m._zod){if(m._zod.traits.has(e))return}else{vl.value=new i(f);try{Object.defineProperty(m,"_zod",vl)}finally{vl.value=void 0}}if(m._zod.traits.add(e),t(m,f),a){let g=Object.getPrototypeOf(m),k=m._zod.constr.prototype,I=g;for(;I&&I!==k;)I=Object.getPrototypeOf(I);let y=I??g;a.has(y)||(a.add(y),yl(y,s))}let h=d.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(m){let f=r?.Parent?Jv(l):this;c(f,m);let h=f._zod.deferred;if(h){for(let k of h)k();f._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var xl=Symbol("zod_brand"),ct=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},xn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(O5=globalThis).__zod_globalConfig??(O5.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(Ne,e),Ne}function Xv(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Lr,2)),e.message}function Qv(e){this._zod.message=e}var ew={get:Xv,set:Qv,enumerable:!0,configurable:!0},_l={value:void 0,enumerable:!1},Z5=new WeakSet([Object.prototype,Error.prototype]),j5=(e,t)=>{e.name="$ZodError",_l.value=t,Object.defineProperty(e,"issues",_l),_l.value=void 0,Object.defineProperty(e,"message",ew);let n=Object.getPrototypeOf(e);Z5.has(n)||(Z5.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Sl=C("$ZodError",j5),ut=C("$ZodError",j5,void 0,{Parent:Error});function tw(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Jo(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?tw(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Xo(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=c[l];d&&m._errors.push(t(s)),c=m,u++}}}};return r(e),n}function Ll(e,t=n=>n.message){let n={errors:[]},r=(o,i=[])=>{var s;for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>r({issues:c},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{let c=[...i,...a.path];if(c.length===0){n.errors.push(t(a));continue}let u=n,l=0;for(;l<c.length;){let d=c[l],m=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(t(a)),l++}}};return r(e),n}function W5(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Pl(e){let t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${W5(r.path)}`);return t.join(`
6
+ `)}function Ys(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Tr=e=>{let t=(n,r,o,i)=>{let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new ct;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>at(u,s,ye())));throw Bs(c,i?.callee??t),c}return a.value};return t},Js=Tr(ut),$r=e=>{let t=async(n,r,o,i)=>{let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>at(u,s,ye())));throw Bs(c,i?.callee??t),c}return a.value};return t},Xs=$r(ut),Ar=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new ct;return i.issues.length?V5(e,i.issues,o):{success:!0,data:i.value}},rw=Ar(ut);function V5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>at(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Dr=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?V5(e,i.issues,o):{success:!0,data:i.value}},ow=Dr(ut),iw=Symbol.for("zod.compile.invalid"),sw=Symbol.for("zod.compile.fallback"),Qo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==iw)return!0;if(r.definite===!0&&n===void 0)return!1}return aw(e,t,n)});function aw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[sw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new ct;return i.issues.length===0}var ei=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},Qs=e=>{let t=Tr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,Ys(n,s))};return n},cw=Qs(ut),ea=e=>{let t=Tr(e),n=(r,o,i,s)=>t(r,o,i,Ys(n,s));return n},uw=ea(ut),ta=e=>{let t=$r(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,Ys(n,s))};return n},lw=ta(ut),na=e=>{let t=$r(e),n=async(r,o,i,s)=>await t(r,o,i,Ys(n,s));return n},dw=na(ut),ra=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Ar(e)(t,n,o)},pw=ra(ut),oa=e=>(t,n,r)=>Ar(e)(t,n,r),fw=oa(ut),ia=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Dr(e)(t,n,o)},mw=ia(ut),sa=e=>async(t,n,r)=>Dr(e)(t,n,r),hw=sa(ut);var bt={};St(bt,{anyString:()=>td,base64:()=>Ul,base64url:()=>Gl,bigint:()=>rd,boolean:()=>od,browserEmail:()=>xw,cidrv4:()=>Hl,cidrv6:()=>Bl,creditCard:()=>aa,cuid:()=>Rl,cuid2:()=>Tl,currencyCode:()=>Jl,date:()=>Xl,datetime:()=>ed,domain:()=>ql,duration:()=>Ol,e164:()=>Yl,email:()=>Zl,emoji:()=>jl,extendedDuration:()=>gw,guid:()=>zl,hex:()=>ud,hostname:()=>Kl,html5Email:()=>bw,httpProtocol:()=>ti,iban:()=>ca,idnEmail:()=>ww,integer:()=>ni,ipv4:()=>Wl,ipv6:()=>Vl,ksuid:()=>Dl,lowercase:()=>ad,mac:()=>Fl,md5_base64:()=>Lw,md5_base64url:()=>Pw,md5_hex:()=>Sw,nanoid:()=>El,nanoidOfLength:()=>Nl,null:()=>id,number:()=>Qt,rfc5322Email:()=>vw,sha1_base64:()=>Rw,sha1_base64url:()=>Tw,sha1_hex:()=>Mw,sha256_base64:()=>Aw,sha256_base64url:()=>Dw,sha256_hex:()=>$w,sha384_base64:()=>Nw,sha384_base64url:()=>Ow,sha384_hex:()=>Ew,sha512_base64:()=>Zw,sha512_base64url:()=>jw,sha512_hex:()=>zw,string:()=>nd,time:()=>Ql,ulid:()=>$l,undefined:()=>sd,unicodeEmail:()=>F5,uppercase:()=>cd,uuid:()=>Kn,uuid4:()=>Cw,uuid6:()=>kw,uuid7:()=>yw,xid:()=>Al});var Rl=/^[cC][0-9a-z]{6,}$/,Tl=/^[0-9a-z]+$/,$l=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Al=/^[0-9a-vA-V]{20}$/,Dl=/^[A-Za-z0-9]{27}$/,El=/^[a-zA-Z0-9_-]{21}$/;function Nl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Ol=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Kn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Cw=Kn(4),kw=Kn(6),yw=Kn(7),Zl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,F5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ww=F5,xw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Iw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function jl(){return new RegExp(Iw,"u")}var Wl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Vl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Fl=e=>{let t=yt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Hl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Bl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ul=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Kl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ql=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ti=/^https?$/,Yl=/^\+[1-9]\d{6,14}$/,aa=/^\d(?:[ -]?\d){11,18}$/,Jl=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,ca=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,H5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function _w(e){return new RegExp(`^${e}$`)}var Xl=_w(H5);function Ml(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ql(e){return new RegExp(`^${Ml(e)}$`)}function ed(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Ml({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Ml({precision:e.precision})}`:n;return new RegExp(`^${H5}T(?:${r})$`)}var td=/^[\s\S]{0,}$/,nd=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rd=/^-?\d+n?$/,ni=/^-?\d+$/,Qt=/^-?\d+(?:\.\d+)?$/,od=/^(?:true|false)$/i,id=/^null$/i;var sd=/^undefined$/i;var ad=/^[^A-Z]*$/,cd=/^[^a-z]*$/,ud=/^[0-9a-fA-F]*$/;function ri(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function oi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Sw=/^[0-9a-fA-F]{32}$/,Lw=ri(22,"=="),Pw=oi(22),Mw=/^[0-9a-fA-F]{40}$/,Rw=ri(27,"="),Tw=oi(27),$w=/^[0-9a-fA-F]{64}$/,Aw=ri(43,"="),Dw=oi(43),Ew=/^[0-9a-fA-F]{96}$/,Nw=ri(64,""),Ow=oi(64),zw=/^[0-9a-fA-F]{128}$/,Zw=ri(86,"=="),jw=oi(86);var pe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ld=e=>{let t=e.value;return!Hs(t)&&t.size!==void 0},dd=e=>{let t=e.value;return!Hs(t)&&t.length!==void 0},ua={number:"number",bigint:"bigint",object:"date"},da=C("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=ua[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ua[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pa=C("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=ua[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ua[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pd=C("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Fo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),fd=C("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Uo[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),md=C("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=Go[t.format];e._zod.check=o=>{let i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),hd=C("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Ko(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),gd=C("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Ko(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cd=C("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;r.issues.push({origin:Ko(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),kd=C("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Gn(o):i)<=t.maximum)return;let a=qo(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),yd=C("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Gn(o):i)>=t.minimum)return;let a=qo(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),bd=C("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Gn(o):i;if(s===t.length)return;let a=qo(o),c=s>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Er=C("$ZodCheckStringFormat",(e,t)=>{var n,r;pe.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),vd=C("$ZodCheckRegex",(e,t)=>{Er.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),wd=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ad),Er.init(e,t)}),xd=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cd),Er.init(e,t)}),Id=C("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=yt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),_d=C("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${yt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Sd=C("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${yt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function la(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues))}var Ld=C("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>la(o,n,t.property));la(r,n,t.property)}}),Pd=C("$ZodCheckProperties",(e,t)=>{pe.init(e,t),Yo(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let o=r.value,i;for(let[s,a]of n){let c=a._zod.run({value:o[s],issues:[]},{});c instanceof Promise?(i??(i=[]),i.push(c.then(u=>la(u,r,s)))):la(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),Md=C("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Rd=C("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var qn=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
7
7
  `).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
8
8
  ${n.join(`
9
9
  `)}
10
- };`)(...Object.values(this.closed))}};var Td={major:4,minor:6,patch:5};var K=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Td;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let i of o)for(let s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,u)=>{if(a.memo)return a;let l=Qe(a),d;for(let m of c){if(m._zod.def.when){if(Cl(a)||!m._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,h=m._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new ct;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==f&&(qs(a.issues,f,e),l||(l=Qe(a,f)))});else{if(a.issues.length===f)continue;qs(a.issues,f,e),l||(l=Qe(a,f))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(Qe(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new ct;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ct;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return Yo(this,"~standard",ka(this))},set"~standard"(e){wn(this,"~standard",e)}}),s0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>at(n,t,ye()))}:{value:e.value};async function jw(e,t){let n={async:!0};return s0(await e._zod.run({value:t,issues:[]},n),n)}function ka(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return s0(r,n)}catch{}return jw(e,t)},vendor:"zod",version:1}}var Yn=C("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??td,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ue=C("$ZodStringFormat",(e,t)=>{Er.init(e,t),Yn.init(e,t)}),Ad=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zl),ue.init(e,t)}),Dd=C("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Kn(r))}else t.pattern??(t.pattern=Kn());ue.init(e,t)}),Ed=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Zl),ue.init(e,t)}),Nd=1,ii=2;function Od(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function ya(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Od(e)||ii:a0(e,t)}function a0(e,t){if(!t.normalize&&t.protocol?.source===ti.source&&!/^https?:\/\//i.test(e))return Nd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??ii}return new URL(e)}catch{return ii}}var Ww=/[\t\n\r]/g;function si(e){return e.replace(Ww,"")}function ba(e,t){return t.lastIndex=0,t.test(e.hostname)}function va(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var zd=C("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=ya(r,t);if(o===Nd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===ii){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=si(r);return}t.hostname&&!ba(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!va(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:si(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Zd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jl()),ue.init(e,t)}),jd=C("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?El:Nl(t.length)),ue.init(e,t)}),Wd=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Rl),ue.init(e,t)}),Vd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Tl),ue.init(e,t)}),Fd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$l),ue.init(e,t)}),Hd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Al),ue.init(e,t)}),Bd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Dl),ue.init(e,t)}),Ud=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ed(t)),ue.init(e,t)}),Gd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Xl),ue.init(e,t)}),Kd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ql(t)),ue.init(e,t)}),qd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ol),ue.init(e,t)}),Yd=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Wl),ue.init(e,t)}),Vw=/^[0-9a-fA-F:.]+$/;function ai(e){return Vw.test(e)?Od(`http://[${e}]`):!1}var Jd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Vl),ue.init(e,t),e._zod.check=n=>{ai(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),Xd=C("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Fl(t.delimiter)),ue.init(e,t)}),Qd=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hl),ue.init(e,t)});function wa(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:ai(n)}var e1=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bl),ue.init(e,t),e._zod.check=n=>{wa(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function ci(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var xa=/^[0-9a-zA-Z+/]*={0,2}$/,t1=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=xa),ue.init(e,t),e._zod.check=n=>{ci(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ui=/^[A-Za-z0-9_-]*$/;function Ia(e){if(!ui.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ci(n)}var n1=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ui),ue.init(e,t),e._zod.check=n=>{Ia(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),r1=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Yl),ue.init(e,t)}),Fw=/[- ]/g;function Hw(e){let t=e.length,n=1,r=0;for(;t;){let o=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][o]:o}return r%10===0}function _a(e){return ca.test(e)?Hw(e.replace(Fw,"")):!1}var o1=C("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=ca),ue.init(e,t),e._zod.check=n=>{_a(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Bw(e){let t=0,n=e.length;for(let r=4;r<n;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let r=0;r<4;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function Sa(e){return ua.test(e)?Bw(e):!1}var i1=C("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=ua),ue.init(e,t),e._zod.check=n=>{Sa(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function La(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var s1=C("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=n=>{La(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),a1=C("$ZodCustomStringFormat",(e,t)=>{ue.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Pa=C("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=Qt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),c1=C("$ZodNumberFormat",(e,t)=>{fd.init(e,t),Pa.init(e,t)}),li=C("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=od,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Ma=C("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=rd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),u1=C("$ZodBigIntFormat",(e,t)=>{md.init(e,t),Ma.init(e,t)}),l1=C("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),d1=C("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=sd,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),p1=C("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=id,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),f1=C("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),m1=C("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),h1=C("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),g1=C("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),C1=C("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function B5(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}var k1=C("$ZodArray",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o?.abortEarly;for(let c=0;c<i.length;c++){let u=i[c],l=t.element._zod.run({value:u,issues:[]},o);if(l instanceof Promise)s.push(l.then(d=>B5(d,r,c)));else if(B5(l,r,c),a&&l.issues.length!==0&&Qe(l))break}return s.length?Promise.all(s).then(()=>r):r}});function Ca(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...st(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}var Uw=[];function c0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Uw,o=r.length?[...t,...r]:t;for(let s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=gl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function u0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,m=u.optout,f=0;for(let h in t){if(s&&n.issues.length!==f){if(Qe(n,f))break;f=n.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let g=u.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(k=>Ca(k,n,h,t,d,m))):Ca(g,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var l0=C("$ZodObject",(e,t)=>{K.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){let u=()=>{let l={...r};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=r,Object.defineProperty(t,"shape",{get:u})}let o=Pr(()=>c0(t));X(e,"propValues",u=>{let l=u.def.shape,d={};for(let m in l){let f=l[m]._zod;if(f.values){Object.prototype.hasOwnProperty.call(d,m)||We(d,m,new Set);for(let h of f.values)d[m].add(h);f.optin!==void 0&&d[m].add(void 0)}}return d});let i=Un,s=t.catchall,a,c=Ne.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let d=u.value;if(!i(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let m=[],f=a.shape,h=l?.abortEarly,g=u.issues.length;for(let k of a.allKeys){if(h&&u.issues.length!==g){if(Qe(u,g))break;g=u.issues.length}if(k==="__proto__")continue;let I=f[k],y=I._zod.optin,b=I._zod.optout,$=I._zod.run({value:d[k],issues:[]},l);$ instanceof Promise?m.push($.then(v=>Ca(v,u,k,d,y,b))):Ca($,u,k,d,y,b)}return s?u0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),y1=C("$ZodObjectJIT",(e,t)=>{l0.init(e,t);let n=e._zod.parse,r=Pr(()=>c0(t)),o=Ne.memoizer,i=f=>{let h=r.value,g=h.symbolKeys,k=new qn(["payload","ctx"],{shape:f,inst:e,memo:o,syms:g}),I=v=>`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`,y=(v,R)=>`
11
- let ${v}_ab = false;
12
- for (let i = 0; i < ${v}.issues.length; i++) {
13
- const iss = ${v}.issues[i];
14
- iss.path = iss.path ? [${R}, ...iss.path] : [${R}];
10
+ };`)(...Object.values(this.closed))}};var Td={major:4,minor:6,patch:5};var K=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Td;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let i of o)for(let s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,u)=>{if(a.memo)return a;let l=Qe(a),d;for(let m of c){if(m._zod.def.when){if(Cl(a)||!m._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,h=m._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new ct;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==f&&(Ks(a.issues,f,e),l||(l=Qe(a,f)))});else{if(a.issues.length===f)continue;Ks(a.issues,f,e),l||(l=Qe(a,f))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(Qe(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new ct;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ct;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return Yo(this,"~standard",Ca(this))},set"~standard"(e){wn(this,"~standard",e)}}),a0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>at(n,t,ye()))}:{value:e.value};async function Ww(e,t){let n={async:!0};return a0(await e._zod.run({value:t,issues:[]},n),n)}function Ca(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return a0(r,n)}catch{}return Ww(e,t)},vendor:"zod",version:1}}var Yn=C("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??td,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ue=C("$ZodStringFormat",(e,t)=>{Er.init(e,t),Yn.init(e,t)}),Ad=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zl),ue.init(e,t)}),Dd=C("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Kn(r))}else t.pattern??(t.pattern=Kn());ue.init(e,t)}),Ed=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Zl),ue.init(e,t)}),Nd=1,ii=2;function Od(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function ka(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Od(e)||ii:c0(e,t)}function c0(e,t){if(!t.normalize&&t.protocol?.source===ti.source&&!/^https?:\/\//i.test(e))return Nd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??ii}return new URL(e)}catch{return ii}}var Vw=/[\t\n\r]/g;function si(e){return e.replace(Vw,"")}function ya(e,t){return t.lastIndex=0,t.test(e.hostname)}function ba(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var zd=C("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=ka(r,t);if(o===Nd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===ii){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=si(r);return}t.hostname&&!ya(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!ba(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:si(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Zd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jl()),ue.init(e,t)}),jd=C("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?El:Nl(t.length)),ue.init(e,t)}),Wd=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Rl),ue.init(e,t)}),Vd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Tl),ue.init(e,t)}),Fd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$l),ue.init(e,t)}),Hd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Al),ue.init(e,t)}),Bd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Dl),ue.init(e,t)}),Ud=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ed(t)),ue.init(e,t)}),Gd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Xl),ue.init(e,t)}),Kd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ql(t)),ue.init(e,t)}),qd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ol),ue.init(e,t)}),Yd=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Wl),ue.init(e,t)}),Fw=/^[0-9a-fA-F:.]+$/;function ai(e){return Fw.test(e)?Od(`http://[${e}]`):!1}var Jd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Vl),ue.init(e,t),e._zod.check=n=>{ai(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),Xd=C("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Fl(t.delimiter)),ue.init(e,t)}),Qd=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hl),ue.init(e,t)});function va(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:ai(n)}var e1=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bl),ue.init(e,t),e._zod.check=n=>{va(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function ci(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var wa=/^[0-9a-zA-Z+/]*={0,2}$/,t1=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wa),ue.init(e,t),e._zod.check=n=>{ci(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ui=/^[A-Za-z0-9_-]*$/;function xa(e){if(!ui.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ci(n)}var n1=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ui),ue.init(e,t),e._zod.check=n=>{xa(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),r1=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Yl),ue.init(e,t)}),Hw=/[- ]/g;function Bw(e){let t=e.length,n=1,r=0;for(;t;){let o=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][o]:o}return r%10===0}function Ia(e){return aa.test(e)?Bw(e.replace(Hw,"")):!1}var o1=C("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=aa),ue.init(e,t),e._zod.check=n=>{Ia(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Uw(e){let t=0,n=e.length;for(let r=4;r<n;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let r=0;r<4;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function _a(e){return ca.test(e)?Uw(e):!1}var i1=C("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=ca),ue.init(e,t),e._zod.check=n=>{_a(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function Sa(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var s1=C("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=n=>{Sa(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),a1=C("$ZodCustomStringFormat",(e,t)=>{ue.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),La=C("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=Qt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),c1=C("$ZodNumberFormat",(e,t)=>{fd.init(e,t),La.init(e,t)}),li=C("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=od,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Pa=C("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=rd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),u1=C("$ZodBigIntFormat",(e,t)=>{md.init(e,t),Pa.init(e,t)}),l1=C("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),d1=C("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=sd,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),p1=C("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=id,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),f1=C("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),m1=C("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),h1=C("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),g1=C("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),C1=C("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function U5(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}var k1=C("$ZodArray",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o?.abortEarly;for(let c=0;c<i.length;c++){let u=i[c],l=t.element._zod.run({value:u,issues:[]},o);if(l instanceof Promise)s.push(l.then(d=>U5(d,r,c)));else if(U5(l,r,c),a&&l.issues.length!==0&&Qe(l))break}return s.length?Promise.all(s).then(()=>r):r}});function ga(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...st(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}var Gw=[];function u0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Gw,o=r.length?[...t,...r]:t;for(let s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=gl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function l0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,m=u.optout,f=0;for(let h in t){if(s&&n.issues.length!==f){if(Qe(n,f))break;f=n.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let g=u.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(k=>ga(k,n,h,t,d,m))):ga(g,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var d0=C("$ZodObject",(e,t)=>{K.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){let u=()=>{let l={...r};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=r,Object.defineProperty(t,"shape",{get:u})}let o=Pr(()=>u0(t));X(e,"propValues",u=>{let l=u.def.shape,d={};for(let m in l){let f=l[m]._zod;if(f.values){Object.prototype.hasOwnProperty.call(d,m)||We(d,m,new Set);for(let h of f.values)d[m].add(h);f.optin!==void 0&&d[m].add(void 0)}}return d});let i=Un,s=t.catchall,a,c=Ne.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let d=u.value;if(!i(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let m=[],f=a.shape,h=l?.abortEarly,g=u.issues.length;for(let k of a.allKeys){if(h&&u.issues.length!==g){if(Qe(u,g))break;g=u.issues.length}if(k==="__proto__")continue;let I=f[k],y=I._zod.optin,b=I._zod.optout,$=I._zod.run({value:d[k],issues:[]},l);$ instanceof Promise?m.push($.then(T=>ga(T,u,k,d,y,b))):ga($,u,k,d,y,b)}return s?l0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),y1=C("$ZodObjectJIT",(e,t)=>{d0.init(e,t);let n=e._zod.parse,r=Pr(()=>u0(t)),o=Ne.memoizer,i=f=>{let h=r.value,g=h.symbolKeys,k=new qn(["payload","ctx"],{shape:f,inst:e,memo:o,syms:g}),I=T=>`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`,y=(T,w)=>`
11
+ let ${T}_ab = false;
12
+ for (let i = 0; i < ${T}.issues.length; i++) {
13
+ const iss = ${T}.issues[i];
14
+ iss.path = iss.path ? [${w}, ...iss.path] : [${w}];
15
15
  payload.issues.push(iss);
16
- if (iss.continue !== true) ${v}_ab = true;
16
+ if (iss.continue !== true) ${T}_ab = true;
17
17
  }
18
- if (${v}_ab && ctx && ctx.abortEarly) {
18
+ if (${T}_ab && ctx && ctx.abortEarly) {
19
19
  payload.value = newResult;
20
20
  return payload;
21
- }`;k.write("const input = payload.value;");let b=Object.create(null),$=0;for(let v of h.allKeys)b[v]=`key_${$++}`;k.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let v of h.allKeys){if(v==="__proto__")continue;let R=b[v],T=typeof v=="symbol"?`syms[${g.indexOf(v)}]`:Xe(v),H=`${T} in input`,Y=f[v],te=Y?._zod?.optin,se=te!==void 0,W=Y?._zod?.optout==="optional";if(k.write(`const ${R} = ${I(T)};`),se&&W){let ae=te==="optional"?`${R}_present`:`${R}.value !== undefined || ${R}_present`;k.write(`
22
- const ${R}_present = ${H};
23
- if (!${R}.issues.length || ${R}_present) {
24
- if (${R}.issues.length) {${y(R,T)}
21
+ }`;k.write("const input = payload.value;");let b=Object.create(null),$=0;for(let T of h.allKeys)b[T]=`key_${$++}`;k.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let T of h.allKeys){if(T==="__proto__")continue;let w=b[T],R=typeof T=="symbol"?`syms[${g.indexOf(T)}]`:Xe(T),V=`${R} in input`,Y=f[T],ne=Y?._zod?.optin,oe=ne!==void 0,j=Y?._zod?.optout==="optional";if(k.write(`const ${w} = ${I(R)};`),oe&&j){let ae=ne==="optional"?`${w}_present`:`${w}.value !== undefined || ${w}_present`;k.write(`
22
+ const ${w}_present = ${V};
23
+ if (!${w}.issues.length || ${w}_present) {
24
+ if (${w}.issues.length) {${y(w,R)}
25
25
  }
26
26
 
27
27
  if (${ae}) {
28
- newResult[${T}] = ${R}.value;
28
+ newResult[${R}] = ${w}.value;
29
29
  }
30
30
  }
31
31
 
32
- `)}else se?(k.write(`
33
- if (${R}.issues.length) {${y(R,T)}
32
+ `)}else oe?(k.write(`
33
+ if (${w}.issues.length) {${y(w,R)}
34
34
  }
35
- `),te==="defaulted"?k.write(`newResult[${T}] = ${R}.value;`):k.write(`
36
- if (${R}.value !== undefined || ${H}) {
37
- newResult[${T}] = ${R}.value;
35
+ `),ne==="defaulted"?k.write(`newResult[${R}] = ${w}.value;`):k.write(`
36
+ if (${w}.value !== undefined || ${V}) {
37
+ newResult[${R}] = ${w}.value;
38
38
  }
39
39
  `)):k.write(`
40
- const ${R}_present = ${H};
41
- if (${R}.issues.length) {${y(R,T)}
40
+ const ${w}_present = ${V};
41
+ if (${w}.issues.length) {${y(w,R)}
42
42
  }
43
- if (!${R}_present && !${R}.issues.length) {
43
+ if (!${w}_present && !${w}.issues.length) {
44
44
  payload.issues.push({
45
45
  code: "invalid_type",
46
46
  expected: "nonoptional",
47
47
  input: undefined,
48
- path: [${T}]
48
+ path: [${R}]
49
49
  });
50
50
  if (ctx && ctx.abortEarly) {
51
51
  payload.value = newResult;
@@ -53,14 +53,14 @@ ${n.join(`
53
53
  }
54
54
  }
55
55
 
56
- if (${R}_present) {
57
- newResult[${T}] = ${R}.value;
56
+ if (${w}_present) {
57
+ newResult[${R}] = ${w}.value;
58
58
  }
59
59
 
60
- `)}return k.write("payload.value = newResult;"),k.write("return payload;"),k.compile()},s,a=Un,c=!Ne.jitless,l=c&&ml.value,d=t.catchall,m;e._zod.parse=(f,h)=>{m??(m=r.value);let g=f.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),f=s(f,h),d?u0([],g,f,h,m,e,h?.abortEarly===!0):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function U5(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!Qe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>at(s,r,ye())))}),t)}var di=C("$ZodUnion",(e,t)=>{K.init(e,t),X(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),X(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),X(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),X(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Xt(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>U5(a,r,e,o)):U5(s,r,e,o)}});function G5(e,t,n,r){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>at(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var b1=C("$ZodXor",(e,t)=>{di.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>G5(a,r,e,o)):G5(s,r,e,o)}});function v1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=d0(n.def),n.bag.optionsMap=r);let o=r.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function d0(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}var w1=C("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,di.init(e,t);let n=e._zod.parse;X(e,"propValues",o=>{let i={},s=0;for(let a of o.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(a)}"`);c[o.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(i,u)||We(i,u,new Set);for(let d of l)i[u].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Mr(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Pr(()=>d0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Un(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s?.[t.discriminator],c=r.value.get(a);return c&&(a!==void 0||i.direction!=="backward")?c._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),x1=C("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>K5(n,c,u)):K5(n,i,s)}});function Nr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(kt(e)&&kt(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=Nr(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=Nr(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function K5(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let m=String(u.path[0]);i.has(m)||i.set(m,u),d=[m]}else return!1;for(let m of d)r.has(m)||r.set(m,{}),r.get(m)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(l=>o.keys.includes(l)):[];u.length&&e.issues.push({...o,keys:u});for(let l of a)!u.includes(l)&&i.has(l)&&e.issues.push(i.get(l))}let c=Nr(t.value,n.value);if(!c.valid){if(Qe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Ra=C("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items,r=Ne.memoizer;r?.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],c=q5(n,"optin"),u=q5(n,"optout");if(!t.rest){if(s.length<c)return o.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(n.length),d=t.rest?i?.abortEarly:void 0,m=!1;for(let f=0;f<n.length;f++){let h=n[f]._zod.run({value:s[f],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[f]=g})):(l[f]=h,d&&!m&&h.issues.length&&(m=Qe(h)))}if(t.rest&&!m){let f=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let k of h){if(d&&o.issues.length!==g){if(Qe(o,g))break;g=o.issues.length}f++;let I=t.rest._zod.run({value:k,issues:[]},i);I instanceof Promise?a.push(I.then(y=>Y5(y,o,f))):Y5(I,o,f)}}return a.length?Promise.all(a).then(()=>J5(l,o,n,s,u)):J5(l,o,n,s,u)}});function q5(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Y5(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}function J5(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...st(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var I1=C("$ZodRecord",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!kt(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>at(h,o,ye())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...st(l,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...st(l,f.issues)),r.value[m]=f.value)}let u;for(let l in i)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;r.value[l]=i[l]}else u=u??[],u.push(l);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let c;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Qt.test(u)&&l.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(c=c??[],c.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>at(h,o,ye())),input:u,path:[u],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...st(u,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...st(u,f.issues)),r.value[m]=f.value)}c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),_1=C("$ZodMap",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let s=[];r.value=n?n.alloc(e,r,new Map,o):new Map;let a=o?.abortEarly,c=r.issues.length;for(let[u,l]of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},o),m=t.valueType._zod.run({value:l,issues:[]},o);d instanceof Promise||m instanceof Promise?s.push(Promise.all([d,m]).then(([f,h])=>{X5(f,h,r,u,i,e,o)})):X5(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function X5(e,t,n,r,o,i,s){e.issues.length&&(Bo.has(typeof r)?n.issues.push(...st(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>at(a,s,ye()))})),t.issues.length&&(Bo.has(typeof r)?n.issues.push(...st(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>at(a,s,ye()))})),n.value.set(e.value,t.value)}var S1=C("$ZodSet",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,o):new Set;let a=o?.abortEarly,c=r.issues.length;for(let u of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(d=>Q5(d,r))):Q5(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function Q5(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var L1=C("$ZodEnum",(e,t)=>{K.init(e,t);let n=Sr(t.entries),r=new Set(n);e._zod.values=r,X(e,"pattern",o=>{let i=Sr(o.def.entries).filter(s=>Bo.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>yt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),P1=C("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,X(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?yt(i):i?yt(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),M1=C("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),R1=C("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.optin="optional",Ne.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new ct;return n.value=o,n}});function e0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ta=C("$ZodOptional",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>e0(n,i)):e0(n,o)}return t.innerType._zod.run(n,r)}}),T1=C("$ZodExactOptional",(e,t)=>{Ta.init(e,t),X(e,"values",n=>n.def.innerType._zod.values),X(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),$1=C("$ZodNullable",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)}|null)$`):void 0}),X(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),A1=C("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>t0(i,t)):t0(o,t)}});function t0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var D1=C("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),E1=C("$ZodNonOptional",(e,t)=>{K.init(e,t),X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>n0(i,e)):n0(o,e)}});function n0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var N1=C("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn("ZodSuccess");let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}});function r0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>at(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var O1=C("$ZodCatch",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>r0(n,i,t,r)):r0(n,o,t,r)}}),z1=C("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),$a=C("$ZodPipe",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ma(s,t.in,r)):ma(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>ma(i,t.out,r)):ma(o,t.out,r)}});function ma(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var pi=C("$ZodCodec",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(s=>ha(s,t,r)):ha(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ha(s,t,r)):ha(i,t,r)}}});function ha(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>ga(e,i,t.out,n)):ga(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>ga(e,i,t.in,n)):ga(e,o,t.in,n)}}function ga(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var Z1=C("$ZodPreprocess",(e,t)=>{$a.init(e,t)}),j1=C("$ZodReadonly",(e,t)=>{K.init(e,t),X(e,"propValues",n=>n.def.innerType._zod.propValues),X(e,"values",n=>n.def.innerType._zod.values),X(e,"optin",n=>n.def.innerType?._zod?.optin),X(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(o0):o0(o)}});function o0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Gw(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes("int"),o,i;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(n=c.pattern),r||(r=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(o===void 0||u>o)&&(o=u),l!==void 0&&(i===void 0||l<i)&&(i=l)}if(n)return n.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return nd({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===Qt?ni:s)?.source}function $d(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let o=r._zod.pattern?.source,i=$d(r);return n&&o&&i&&i!==o?n.replace(Xt(o),()=>Xt(i)):n}if(t.options){let o=t.options.map($d);if(o.every(Boolean))return`^(${o.map(i=>Xt(i)).join("|")})$`}return Gw(e)}var W1=C("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=$d(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(Xt(o))}else if(r===null||hl.has(typeof r))n.push(yt(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),V1=C("$ZodFunction",(e,t)=>(K.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){let o=e._def.input?Xs(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?Xs(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){let o=e._def.input?await Qs(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await Qs(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Ra({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),F1=C("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),fi=C("$ZodLazy",(e,t)=>{K.init(e,t),pl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),X(e,"pattern",n=>n.innerType?._zod?.pattern),X(e,"propValues",n=>n.innerType?._zod?.propValues),X(e,"optin",n=>n.innerType?._zod?.optin??void 0),X(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),H1=C("$ZodCustom",(e,t)=>{pe.init(e,t),K.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>i0(i,n,r,e));i0(o,n,r,e)}});function i0(e,t,n,r){if(!e){let o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Rr(o))}}var Na=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},U1="~memo",f0=[];function m0(e){return e!==null&&typeof e=="object"}function B1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var h0=new WeakMap,Or=0,Ea=1,mi=2;function hi(e,t,n){let r=h0.get(e);if(r!==void 0)return r?mi:Or;if(t.has(e))return mi;t.add(e);let o=Or,i=l=>{if(o!==mi&&l?._zod){let d=hi(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Or;for(let f of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,f);if(d&&!h.enumerable)continue;let g=h.get?Ea:h.value?._zod?hi(h.value,t,n):Or;g>m&&(m=g)}return m},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Mr(c);a(l?s(l,!0):Ea),i(c.catchall);break}case"array":i(c.element);break;case"tuple":for(let l of c.items)i(l);i(c.rest);break;case"record":case"map":i(c.keyType),i(c.valueType);break;case"set":i(c.valueType);break;case"union":for(let l of c.options)i(l);break;case"intersection":i(c.left),i(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(c.innerType);break;case"pipe":i(c.in),i(c.out);break;case"function":i(c.input),i(c.output);break;case"lazy":{let l=c._cachedInner??(n?e._zod.innerType:void 0);a(l?hi(l,t,!1):Ea);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)i(m);else if(Array.isArray(m))for(let f of m)i(f)}}}return t.delete(e),Kw(e,o)}function Kw(e,t){return t!==Ea&&h0.set(e,t===mi),t}function Oa(e){return hi(e,new Set,!0)!==Or}function qw(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Aa,Da=[],Yw={alloc(e,t,n){let r=Aa;if(!r)return n;Aa=void 0;let o={value:n,issues:null};return r.set(t.value,o),Da.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&za(i,o.value))throw new Na;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(n===void 0){let I=hi(e,new Set,!1);if(I===Or)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);I===mi||r?n=!0:r=!0}let l=c.value;if(!m0(l))return s(c,u);let d=u[U1];d||(d={buckets:new WeakMap,backEdges:void 0},u[U1]=d);let m;o===u?m=i:(m=qw(d,e),o=u,i=m);let f=m.get(l);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...B1(f.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),c;Aa=m;let h=Da.length,g=s(c,u);Aa=void 0;let k=Da.length>h?Da.pop():void 0;return g instanceof Promise?g.then(I=>(k&&(k.issues=I.issues.length?B1(I.issues):f0),I)):(k&&(k.issues=g.issues.length?B1(g.issues):f0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function gi(){return Yw}function za(e,t){let n=e[U1]?.backEdges;return n!==void 0&&m0(t)&&n.has(t)}var Ci={};St(Ci,{en:()=>Za});var Jw=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=o(i.expected),a=kl(i.input),c=o(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Gs(i.values[0])}`:`Invalid option: expected one of ${Hs(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Hs(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Za(){return{localeError:Jw()}}var g0,G1=Symbol("ZodOutput"),K1=Symbol("ZodInput"),ja=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Wa(){return new ja}(g0=globalThis).__zod_globalRegistry??(g0.__zod_globalRegistry=Wa());var Ve=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),C0=Symbol.for("zod.compile.fallback"),Rt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Q=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function Qw(e,t){try{return Fa(e,{assertOnly:!0})}catch{return t}}function X1(e,t){try{let n=Fa(e),r=Va(e,n);return r._zod.bag.validator=Qw(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Va(e,t){if(Oa(e))throw new Q("a schema whose subtree contains a reference cycle");let n=ce(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[C0]||a&&za(a,s.value))return o(s,a);let c=t(s.value);return c!==et?(s.value=c,s):(a&&(a[C0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||ex(n,e,t),n}function ex(e,t,n){let r=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;r.safeParse=(s,a)=>{let c=n(s);return c!==et?{success:!0,data:c}:i(s,a)}}if(typeof o.parse=="function"){let i=o.parse;r.parse=(s,a)=>{let c=n(s);return c!==et?c:i(s,a)}}}function Fa(e,t){let n=!0;try{n=Oa(e)}catch{}if(n)throw new Q("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new qn(["input"]),i=ke(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[et,...r.constants.values()],c=o.content.join(`
60
+ `)}return k.write("payload.value = newResult;"),k.write("return payload;"),k.compile()},s,a=Un,c=!Ne.jitless,l=c&&ml.value,d=t.catchall,m;e._zod.parse=(f,h)=>{m??(m=r.value);let g=f.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),f=s(f,h),d?l0([],g,f,h,m,e,h?.abortEarly===!0):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function G5(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!Qe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>at(s,r,ye())))}),t)}var di=C("$ZodUnion",(e,t)=>{K.init(e,t),X(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),X(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),X(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),X(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Xt(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>G5(a,r,e,o)):G5(s,r,e,o)}});function K5(e,t,n,r){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>at(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var b1=C("$ZodXor",(e,t)=>{di.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>K5(a,r,e,o)):K5(s,r,e,o)}});function v1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=p0(n.def),n.bag.optionsMap=r);let o=r.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function p0(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}var w1=C("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,di.init(e,t);let n=e._zod.parse;X(e,"propValues",o=>{let i={},s=0;for(let a of o.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(a)}"`);c[o.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(i,u)||We(i,u,new Set);for(let d of l)i[u].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Mr(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Pr(()=>p0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Un(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s?.[t.discriminator],c=r.value.get(a);return c&&(a!==void 0||i.direction!=="backward")?c._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),x1=C("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>q5(n,c,u)):q5(n,i,s)}});function Nr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(kt(e)&&kt(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=Nr(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=Nr(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function q5(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let m=String(u.path[0]);i.has(m)||i.set(m,u),d=[m]}else return!1;for(let m of d)r.has(m)||r.set(m,{}),r.get(m)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(l=>o.keys.includes(l)):[];u.length&&e.issues.push({...o,keys:u});for(let l of a)!u.includes(l)&&i.has(l)&&e.issues.push(i.get(l))}let c=Nr(t.value,n.value);if(!c.valid){if(Qe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Ma=C("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items,r=Ne.memoizer;r?.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],c=Y5(n,"optin"),u=Y5(n,"optout");if(!t.rest){if(s.length<c)return o.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(n.length),d=t.rest?i?.abortEarly:void 0,m=!1;for(let f=0;f<n.length;f++){let h=n[f]._zod.run({value:s[f],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[f]=g})):(l[f]=h,d&&!m&&h.issues.length&&(m=Qe(h)))}if(t.rest&&!m){let f=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let k of h){if(d&&o.issues.length!==g){if(Qe(o,g))break;g=o.issues.length}f++;let I=t.rest._zod.run({value:k,issues:[]},i);I instanceof Promise?a.push(I.then(y=>J5(y,o,f))):J5(I,o,f)}}return a.length?Promise.all(a).then(()=>X5(l,o,n,s,u)):X5(l,o,n,s,u)}});function Y5(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function J5(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}function X5(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...st(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var I1=C("$ZodRecord",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!kt(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>at(h,o,ye())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...st(l,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...st(l,f.issues)),r.value[m]=f.value)}let u;for(let l in i)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;r.value[l]=i[l]}else u=u??[],u.push(l);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let c;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Qt.test(u)&&l.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(c=c??[],c.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>at(h,o,ye())),input:u,path:[u],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...st(u,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...st(u,f.issues)),r.value[m]=f.value)}c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),_1=C("$ZodMap",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let s=[];r.value=n?n.alloc(e,r,new Map,o):new Map;let a=o?.abortEarly,c=r.issues.length;for(let[u,l]of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},o),m=t.valueType._zod.run({value:l,issues:[]},o);d instanceof Promise||m instanceof Promise?s.push(Promise.all([d,m]).then(([f,h])=>{Q5(f,h,r,u,i,e,o)})):Q5(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function Q5(e,t,n,r,o,i,s){e.issues.length&&(Bo.has(typeof r)?n.issues.push(...st(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>at(a,s,ye()))})),t.issues.length&&(Bo.has(typeof r)?n.issues.push(...st(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>at(a,s,ye()))})),n.value.set(e.value,t.value)}var S1=C("$ZodSet",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,o):new Set;let a=o?.abortEarly,c=r.issues.length;for(let u of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(d=>e0(d,r))):e0(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function e0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var L1=C("$ZodEnum",(e,t)=>{K.init(e,t);let n=Sr(t.entries),r=new Set(n);e._zod.values=r,X(e,"pattern",o=>{let i=Sr(o.def.entries).filter(s=>Bo.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>yt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),P1=C("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,X(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?yt(i):i?yt(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),M1=C("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),R1=C("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.optin="optional",Ne.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new ct;return n.value=o,n}});function t0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ra=C("$ZodOptional",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>t0(n,i)):t0(n,o)}return t.innerType._zod.run(n,r)}}),T1=C("$ZodExactOptional",(e,t)=>{Ra.init(e,t),X(e,"values",n=>n.def.innerType._zod.values),X(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),$1=C("$ZodNullable",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)}|null)$`):void 0}),X(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),A1=C("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>n0(i,t)):n0(o,t)}});function n0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var D1=C("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),E1=C("$ZodNonOptional",(e,t)=>{K.init(e,t),X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>r0(i,e)):r0(o,e)}});function r0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var N1=C("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn("ZodSuccess");let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}});function o0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>at(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var O1=C("$ZodCatch",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>o0(n,i,t,r)):o0(n,o,t,r)}}),z1=C("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Ta=C("$ZodPipe",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>fa(s,t.in,r)):fa(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>fa(i,t.out,r)):fa(o,t.out,r)}});function fa(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var pi=C("$ZodCodec",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(s=>ma(s,t,r)):ma(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ma(s,t,r)):ma(i,t,r)}}});function ma(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>ha(e,i,t.out,n)):ha(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>ha(e,i,t.in,n)):ha(e,o,t.in,n)}}function ha(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var Z1=C("$ZodPreprocess",(e,t)=>{Ta.init(e,t)}),j1=C("$ZodReadonly",(e,t)=>{K.init(e,t),X(e,"propValues",n=>n.def.innerType._zod.propValues),X(e,"values",n=>n.def.innerType._zod.values),X(e,"optin",n=>n.def.innerType?._zod?.optin),X(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i0):i0(o)}});function i0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Kw(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes("int"),o,i;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(n=c.pattern),r||(r=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(o===void 0||u>o)&&(o=u),l!==void 0&&(i===void 0||l<i)&&(i=l)}if(n)return n.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return nd({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===Qt?ni:s)?.source}function $d(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let o=r._zod.pattern?.source,i=$d(r);return n&&o&&i&&i!==o?n.replace(Xt(o),()=>Xt(i)):n}if(t.options){let o=t.options.map($d);if(o.every(Boolean))return`^(${o.map(i=>Xt(i)).join("|")})$`}return Kw(e)}var W1=C("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=$d(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(Xt(o))}else if(r===null||hl.has(typeof r))n.push(yt(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),V1=C("$ZodFunction",(e,t)=>(K.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){let o=e._def.input?Js(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?Js(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){let o=e._def.input?await Xs(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await Xs(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Ma({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),F1=C("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),fi=C("$ZodLazy",(e,t)=>{K.init(e,t),pl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),X(e,"pattern",n=>n.innerType?._zod?.pattern),X(e,"propValues",n=>n.innerType?._zod?.propValues),X(e,"optin",n=>n.innerType?._zod?.optin??void 0),X(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),H1=C("$ZodCustom",(e,t)=>{pe.init(e,t),K.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>s0(i,n,r,e));s0(o,n,r,e)}});function s0(e,t,n,r){if(!e){let o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Rr(o))}}var Ea=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},U1="~memo",m0=[];function h0(e){return e!==null&&typeof e=="object"}function B1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var g0=new WeakMap,Or=0,Da=1,mi=2;function hi(e,t,n){let r=g0.get(e);if(r!==void 0)return r?mi:Or;if(t.has(e))return mi;t.add(e);let o=Or,i=l=>{if(o!==mi&&l?._zod){let d=hi(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Or;for(let f of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,f);if(d&&!h.enumerable)continue;let g=h.get?Da:h.value?._zod?hi(h.value,t,n):Or;g>m&&(m=g)}return m},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Mr(c);a(l?s(l,!0):Da),i(c.catchall);break}case"array":i(c.element);break;case"tuple":for(let l of c.items)i(l);i(c.rest);break;case"record":case"map":i(c.keyType),i(c.valueType);break;case"set":i(c.valueType);break;case"union":for(let l of c.options)i(l);break;case"intersection":i(c.left),i(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(c.innerType);break;case"pipe":i(c.in),i(c.out);break;case"function":i(c.input),i(c.output);break;case"lazy":{let l=c._cachedInner??(n?e._zod.innerType:void 0);a(l?hi(l,t,!1):Da);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)i(m);else if(Array.isArray(m))for(let f of m)i(f)}}}return t.delete(e),qw(e,o)}function qw(e,t){return t!==Da&&g0.set(e,t===mi),t}function Na(e){return hi(e,new Set,!0)!==Or}function Yw(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var $a,Aa=[],Jw={alloc(e,t,n){let r=$a;if(!r)return n;$a=void 0;let o={value:n,issues:null};return r.set(t.value,o),Aa.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&Oa(i,o.value))throw new Ea;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(n===void 0){let I=hi(e,new Set,!1);if(I===Or)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);I===mi||r?n=!0:r=!0}let l=c.value;if(!h0(l))return s(c,u);let d=u[U1];d||(d={buckets:new WeakMap,backEdges:void 0},u[U1]=d);let m;o===u?m=i:(m=Yw(d,e),o=u,i=m);let f=m.get(l);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...B1(f.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),c;$a=m;let h=Aa.length,g=s(c,u);$a=void 0;let k=Aa.length>h?Aa.pop():void 0;return g instanceof Promise?g.then(I=>(k&&(k.issues=I.issues.length?B1(I.issues):m0),I)):(k&&(k.issues=g.issues.length?B1(g.issues):m0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function gi(){return Jw}function Oa(e,t){let n=e[U1]?.backEdges;return n!==void 0&&h0(t)&&n.has(t)}var Ci={};St(Ci,{en:()=>za});var Xw=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=o(i.expected),a=kl(i.input),c=o(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Us(i.values[0])}`:`Invalid option: expected one of ${Fs(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Fs(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function za(){return{localeError:Xw()}}var C0,G1=Symbol("ZodOutput"),K1=Symbol("ZodInput"),Za=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ja(){return new Za}(C0=globalThis).__zod_globalRegistry??(C0.__zod_globalRegistry=ja());var Ve=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),k0=Symbol.for("zod.compile.fallback"),Rt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Q=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function ex(e,t){try{return Va(e,{assertOnly:!0})}catch{return t}}function X1(e,t){try{let n=Va(e),r=Wa(e,n);return r._zod.bag.validator=ex(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Wa(e,t){if(Na(e))throw new Q("a schema whose subtree contains a reference cycle");let n=ce(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[k0]||a&&Oa(a,s.value))return o(s,a);let c=t(s.value);return c!==et?(s.value=c,s):(a&&(a[k0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||tx(n,e,t),n}function tx(e,t,n){let r=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;r.safeParse=(s,a)=>{let c=n(s);return c!==et?{success:!0,data:c}:i(s,a)}}if(typeof o.parse=="function"){let i=o.parse;r.parse=(s,a)=>{let c=n(s);return c!==et?c:i(s,a)}}}function Va(e,t){let n=!0;try{n=Na(e)}catch{}if(n)throw new Q("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new qn(["input"]),i=ke(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[et,...r.constants.values()],c=o.content.join(`
61
61
  `),u=t?.debug?s.length>0?`// Constants: ${s.join(", ")}
62
62
  ${c}`:c:"",l=Function,d=`return (input) => {
63
63
  ${c}
64
- }`,m;try{m=new l(...s,d)(...a)}catch(f){throw new Q(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(m.code=u),m.definite=r.definite,m}function U(e,t){for(let[r,o]of e.constants)if(o===t)return r;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function Qn(e,t){return e.definite=!1,U(e,t)}function V(e){return`v${e.varCounter++}`}function tx(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return et;let r=n;return r.issues.length===0?r.value:et}function Ue(e,t,n,r,o=!0){let i=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return ke(e,t,n,r,o)}catch(u){if(!(u instanceof Q)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,nx(e,t,n,r)}}function nx(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,tx),s=V(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var rx=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function ox(e,t,n,r){let o=n._zod.def.checks;if(!o||o.length===0)return r;let i=r;for(let s of o){let a=s._zod.def;if(a.when&&!rx.has(a.check))throw new Q('check with a custom "when" condition');switch(a.check){case"greater_than":ix(e,t,a,i);break;case"less_than":sx(e,t,a,i);break;case"multiple_of":ax(e,t,a,i);break;case"number_format":x0(e,a,i);break;case"min_length":{let c=Jn(a.minimum,"min_length"),u=q1(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=Jn(a.maximum,"max_length"),u=q1(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=Jn(a.length,"length_equals"),u=q1(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${Jn(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${Jn(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${Jn(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=I0(e,t,a,i);break;case"custom":i=fx(e,t,s,i);break;case"bigint_format":cx(e,a,i);break;case"mime_type":ux(e,t,a,i);break;case"property":dx(e,t,a,i);break;case"properties":lx(e,t,a,i);break;case"overwrite":{let c=V(t);px(e,t,s,i,c),i=c;break}default:throw new Q(`check type ${a.check}`)}}return i}function q1(e,t,n,r){let o=U(t,Gn),i=V(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function Jn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Q(`${t} bound of type ${typeof e}`);return`${e}`}function w0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Q("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Q("comparison check with Invalid Date bound");return U(e,t)}throw new Q(`comparison check bound of type ${typeof t}`)}function ix(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${w0(t,n.value)}) return INVALID;`)}function sx(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${w0(t,n.value)}) return INVALID;`)}function ax(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Q("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=U(t,Fo);e.write(`if (${o}(${r}, ${Jn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function x0(e,t,n){let r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Q(`number format ${r}`)}}function cx(e,t,n){let r=t.format;if(r)switch(r){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Q(`bigint format ${r}`)}}function ux(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=U(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function lx(e,t,n,r){if(n.when)throw new Q('check with a custom "when" condition');e.write(`if (${r} == null) return INVALID;`);let o=n.shape;for(let i of Reflect.ownKeys(o)){let s=typeof i=="symbol"?U(t,i):Xe(i),a=V(t);e.write(`const ${a} = ${r}[${s}];`),Ue(e,t,o[i],a,!1)}}function dx(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ke(e,t,n.schema,o)}function px(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new Q("overwrite check without a transform function");if(er(i))throw new Rt("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function Y1(){throw new ct}function Q1(e){this.issues.push(e)}function fx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Rt("z.compile: async .refine() predicates are not supported");let i=Qn(t,o.fn),s=U(t,Y1),a=V(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),r}if(n._zod.check){if(er(n._zod.check))throw new Rt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:Q1};return i(l)instanceof Promise&&Y1(),l.issues.length===0?l.value:et}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new Q("custom check without a predicate or check function")}var mx=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function I0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,ci);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,Ia);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,La),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,ai);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,wa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,_a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,Sa);return e.write(`if (!${u}(${r})) return INVALID;`),r}let s=n;if(i==="url"||i==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=U(t,ya),l=U(t,n),d=V(t),m=V(t);if(e.write(`const ${d} = ${r}.trim();`),e.write(`const ${m} = ${u}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),s.hostname!==void 0){let g=U(t,ba);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,va);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let f=V(t),h=s.normalize?`${m}.href`:`${U(t,si)}(${d})`;return e.write(`const ${f} = ${h};`),f}let a=n.fn;if(a){if(er(a))throw new Q(`async string format ${i}`);let u=U(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(mx.has(i)&&n.pattern){let u=U(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${r})) return INVALID;`),r}let c=n.format;switch(c){case"regex":throw new Q("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${Xe(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${Xe(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${Xe(u)}) return INVALID;`);break}default:throw new Q(`string format ${c}`)}return r}function ke(e,t,n,r,o=!0){let i=n._zod.def,s=i.type;if(i.coerce)throw new Q(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=hx(e,t,n,r,a);break;case"number":c=gx(e,n,r);break;case"boolean":c=Cx(e,r);break;case"bigint":c=kx(e,n,r);break;case"symbol":c=yx(e,r);break;case"undefined":c=bx(e,r);break;case"null":c=vx(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=wx(e,r);break;case"nan":c=xx(e,r);break;case"date":c=Ix(e,r);break;case"object":c=_x(e,t,n,r,a);break;case"optional":c=Sx(e,t,n,r,a);break;case"nullable":c=Mx(e,t,n,r,a);break;case"array":c=Rx(e,t,n,r,a);break;case"literal":c=Tx(e,t,n,r);break;case"enum":c=$x(e,t,n,r);break;case"readonly":{let u=y0(e,t,n,r),l=V(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":y0(e,t,n,r),c="true";break;case"default":case"prefault":c=Ax(e,t,n,r);break;case"nonoptional":c=Dx(e,t,n,r);break;case"tuple":c=Ex(e,t,n,r);break;case"union":c=Nx(e,t,n,r);break;case"intersection":c=Zx(e,t,n,r);break;case"record":c=jx(e,t,n,r);break;case"map":c=Vx(e,t,n,r);break;case"set":c=Fx(e,t,n,r);break;case"file":c=Hx(e,r);break;case"template_literal":c=Bx(e,t,n,r);break;case"lazy":c=Ux(e,t,n,r);break;case"pipe":c=Gx(e,t,n,r);break;case"custom":c=Kx(e,t,n,r);break;case"transform":c=Jx(e,t,n,r);break;case"catch":c=Yx(e,t,n,r);break;default:throw new Q(`schema type ${s}`)}return c===null?null:ox(e,t,n,c)}function hx(e,t,n,r,o=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.def;return i.format===void 0?r:I0(e,t,i,r,o)}function gx(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check==="number_format"&&r.format&&x0(e,{format:r.format},n),n}function Cx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function kx(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function yx(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function bx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function vx(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function wx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function xx(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Ix(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function _x(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let s=i.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=y=>typeof y=="symbol"?U(t,y):Xe(y),d=y=>typeof y=="symbol"?`[${l(y)}]`:Xe(y),m=s;if(a.includes("__proto__"))throw new Q('object shape key "__proto__"');let f=new Map;for(let y of u){let b=m[y],$=l(y),v=V(t);if(e.write(`const ${v} = ${r}[${$}];`),b._zod.optin!==void 0){let R=V(t);e.write(`let ${R} = (() => {`),e.indented(T=>{let H=Ue(T,t,b,v);T.write(`return ${H};`)}),e.write("})();"),b._zod.optout==="optional"?(e.write(`if (${R} === INVALID) {`),e.indented(T=>{T.write(`if (${$} in ${r}) return INVALID;`),T.write(`${R} = undefined;`)}),e.write("}")):e.write(`if (${R} === INVALID) return INVALID;`),f.set(y,R)}else{Px(b)&&e.write(`if (!(${$} in ${r})) return INVALID;`);let R=Ue(e,t,b,v,o);R!==null&&f.set(y,R)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let b=a.map($=>`k !== ${Xe($)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented($=>{$.write(`if (${b}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let k=V(t),I=u.some(y=>k0(m[y])||J1(m[y]));if(!o){if(g==="schema"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(b=>{b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`);let $=V(t);b.write(`const ${$} = ${r}[k];`),Ue(b,t,h,$,!1)}),e.write("}")}return null}if(I){e.write(`const ${k} = {};`);for(let y of u){let b=l(y),$=f.get(y);J1(m[y])?e.write(`if (${b} in ${r}) ${k}[${b}] = ${$};`):k0(m[y])?e.write(`if (${$} !== undefined || ${b} in ${r}) ${k}[${b}] = ${$};`):e.write(`${k}[${b}] = ${$};`)}}else{let y=u.map(b=>`${d(b)}: ${f.get(b)}`).join(", ");e.write(`const ${k} = { ${y} };`)}if(g!=="none"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(b=>{if(b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`),g==="passthrough")b.write(`${k}[k] = ${r}[k];`);else{let $=V(t);b.write(`const ${$} = ${r}[k];`);let v=Ue(b,t,h,$);b.write(`${k}[k] = ${v};`)}}),e.write("}")}return k}function Sx(e,t,n,r,o=!0){let i=n._zod.def;if(Lx(n))return ke(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=V(t),c=V(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=ke(l,t,i.innerType,r);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=ke(u,t,i.innerType,r);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=o?V(t):null;return s&&e.write(`let ${s};`),e.write(`if (${r} !== undefined) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Lx(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Px(e){return e._zod.optin===void 0&&Xn(e)}function Xn(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Xn(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Xn(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Xn):!0;case"intersection":return!t.left||!t.right?!0:Xn(t.left)&&Xn(t.right);case"pipe":return t.in?Xn(t.in):!0;default:return!0}}function J1(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function k0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&zr(e)}function zr(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?zr(t.innerType):!0;case"union":return t.options?t.options.some(zr):!0;case"intersection":return!t.left||!t.right||zr(t.left)||zr(t.right);case"pipe":return t.out?zr(t.out):!0;default:return!0}}function Mx(e,t,n,r,o=!0){let i=n._zod.def,s=o?V(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${r} !== null) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Rx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?V(t):null,a=V(t),c=V(t);return s&&e.write(`const ${s} = new Array(${r}.length);`),e.write(`for (let ${a} = 0; ${a} < ${r}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${r}[${a}];`);let l=Ue(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function Tx(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}let s=i[0];if(typeof s=="number"&&Number.isNaN(s)){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${Xe(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${r} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${r} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${r} !== ${s}n) return INVALID;`);else throw new Q(`literal type ${typeof s}`);return r}function $x(e,t,n,r){let o=n._zod.values;if(!o)throw new Q("enum schema without enumerated values");let i=U(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function y0(e,t,n,r){let o=n._zod.def;return ke(e,t,o.innerType,r)}function Ax(e,t,n,r){let o=n._zod.def,s=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!s)return ke(e,t,o.innerType,r);let c=U(t,s),u=V(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ke(e,t,o.innerType,u)}let a=V(t);if(s){let c=U(t,s),u=U(t,Ho);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=ke(l,t,o.innerType,r);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${r} !== undefined) {`),e.indented(c=>{let u=ke(c,t,o.innerType,r);c.write(`${a} = ${u};`)}),e.write("}");return a}function Dx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.innerType,r),s=V(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function Ex(e,t,n,r){let o=n._zod.def,i=o.items,s=o.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let a=b0(i,"optin"),c=b0(i,"optout");s?e.write(`if (${r}.length < ${a}) return INVALID;`):e.write(`if (${r}.length < ${a} || ${r}.length > ${i.length}) return INVALID;`);let u=V(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let d=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${r}.length) {`),m.indented(f=>{let h=V(t);f.write(`const ${h} = ${r}[${l}];`);let g=Ue(f,t,d,h);f.write(`${u}[${l}] = ${g};`)}),m.write("} else {"),m.indented(f=>{if(J1(d)){f.write(`${u}.length = ${l};`);return}let h=V(t),g=V(t);f.write(`const ${h} = undefined;`),f.write(`const ${g} = (() => {`),f.indented(k=>{let I=Ue(k,t,d,h);k.write(`return ${I};`)}),f.write("})();"),f.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),f.write(`else ${u}[${l}] = ${g};`)}),m.write("}")}),e.write("}");else{let m=V(t);e.write(`const ${m} = ${r}[${l}];`);let f=Ue(e,t,d,m);e.write(`${u}[${l}] = ${f};`)}}if(s){let l=V(t),d=V(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${r}[${l}];`);let f=Ue(m,t,s,d);m.write(`${u}[${l}] = ${f};`)}),e.write("}")}return u}function b0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Nx(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return Ox(e,t,o,r);if(o.inclusive===!1)throw new Q("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),r;if(i.length===1)return ke(e,t,i[0],r);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(l=>l._zod.def.values)),u=U(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=V(t);e.write(`let ${a};`);for(let c=0;c<i.length;c++){let u=i[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=ke(l,t,u,r);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function Ox(e,t,n,r){if(n.unionFallback)throw new Q("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=V(t),i=V(t);e.write(`const ${o} = ${r}?.[${Xe(n.discriminator)}];`),e.write(`let ${i};`);let s=!0,a=new Set;for(let c of n.options){let u=c._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Q("discriminated union option without static discriminator values");for(let m of u){if(a.has(m))throw new Q(`duplicate discriminator value ${String(m)}`);a.add(m)}let l=Array.from(u,m=>zx(t,o,m)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let f=ke(m,t,c,r);m.write(`${i} = ${f};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function zx(e,t,n){if(typeof n=="string")return`${t} === ${Xe(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let r=U(e,n);return`${t} === ${r}`}throw new Q(`literal discriminator value ${String(n)}`)}function Zx(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=Ue(e,t,o.left,r),s=Ue(e,t,o.right,r),a=U(t,Nr),c=V(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function jx(e,t,n,r){let o=n._zod.def,i=U(t,kt);e.write(`if (!${i}(${r})) return INVALID;`);let s=V(t),a=V(t),c=V(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let f=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new Q(`record key value ${String(g)}`);let k=typeof g=="number"?g.toString():g;if(k==="__proto__")throw new Q('record key "__proto__"');f.push(k);let I=U(t,g),y=ke(e,t,o.keyType,I),b=V(t);e.write(`const ${b} = ${r}[${Wx(t,k)}];`);let $=Ue(e,t,o.valueType,b);e.write(`${s}[${y}] = ${$};`)}let h=U(t,new Set(f));return e.write(`for (const ${a} in ${r}) {`),e.indented(g=>{g.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${r}[${a}];`):g.write("return INVALID;")}),e.write("}"),s}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let f=o.mode==="loose",h=Fa(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),k=U(t,Qt),I=V(t);return v0(e,t,r,a,y=>{y.write(`let ${I} = ${g}(${a});`),y.write(`if (${I} === INVALID && typeof ${a} === "string" && ${k}.test(${a})) ${I} = ${g}(Number(${a}));`),f?y.write(`if (${I} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${I} === INVALID) return INVALID;`),y.write(`if (${I} === "__proto__") continue;`);let b=V(t);y.write(`const ${b} = ${r}[${a}];`);let $=Ue(y,t,o.valueType,b);y.write(`${s}[${I}] = ${$};`)}),s}return v0(e,t,r,a,f=>{f.write(`const ${c} = ${r}[${a}];`);let h=Ue(f,t,o.valueType,c);f.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function v0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=V(t),c=V(t),u=V(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${c}[${u}];`),l.write(`if (${r} === "__proto__" || !${s}.call(${n}, ${r})) continue;`),o(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${a}[${u}];`),l.write(`if (!${s}.call(${n}, ${r})) continue;`),i?l.write(i):o(l)}),e.write("}")}function Wx(e,t){return typeof t=="string"?Xe(t):U(e,t)}function Vx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=V(t),s=V(t),a=V(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${s}, ${a}] of ${r}) {`),e.indented(c=>{let u=ke(c,t,o.keyType,s),l=ke(c,t,o.valueType,a);c.write(`${i}.set(${u}, ${l});`)}),e.write("}"),i}function Fx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=V(t),s=V(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${s} of ${r}) {`),e.indented(a=>{let c=ke(a,t,o.valueType,s);a.write(`${i}.add(${c});`)}),e.write("}"),i}function Hx(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Bx(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=U(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function Ux(e,t,n,r){let o=n._zod.def,i=Qn(t,o.getter),s=U(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=V(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function Gx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.in,r);if(o.transform){if(er(o.transform))throw new Rt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=Qn(t,l=>{let d={value:l,issues:[],addIssue:Q1},m=s(l,d);return m instanceof Promise?et:d.issues.length===0?m:et}),u=V(t);return e.write(`const ${u} = ${c}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),ke(e,t,o.out,u)}else return ke(e,t,o.out,i)}function er(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function Kx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Rt("z.compile: async custom predicates are not supported");let i=Qn(t,o.fn),s=U(t,Y1),a=V(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new Q("custom schema without a predicate function");return r}function qx(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return et;let o=r;return o.issues.length===0?o.value:t()}function Yx(e,t,n,r){let o=n._zod.def;if(!o.catchValue[Ys])throw new Q("catch with a callback (only a constant catch value compiles)",!1);let i=V(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=Ue(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=U(t,o.innerType),a=Qn(t,o.catchValue),c=U(t,qx);return e.write(`if (${i} === INVALID) {`),e.indented(u=>{u.write(`${i} = ${c}(${s}, ${a}, ${r});`),u.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function Jx(e,t,n,r){let o=n._zod.def;if(o.transform){if(er(o.transform))throw new Rt("z.compile: async transforms are not supported");let i=o.transform,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:Q1},d=i(u,l);return d instanceof Promise?et:l.issues.length===0?d:et}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Ha(e){return e.checks&&(e.checks=[...e.checks]),e}function ep(e,t){return new e(Ha({type:"string",...M(t)}))}function tp(e,t){return new e(Ha({type:"string",coerce:!0,...M(t)}))}function Ba(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function Ua(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function Ga(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function Ka(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function qa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function Ya(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function ki(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function Ja(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function Xa(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function Qa(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function ec(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function tc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function nc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function rc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function oc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function ic(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function np(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function sc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function ac(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function cc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function uc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function lc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function rp(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...M(t)})}function op(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...M(t)})}function dc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var ip={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function yi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function bi(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function vi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function wi(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function sp(e,t){return new e(Ha({type:"number",checks:[],...M(t)}))}function ap(e,t){return new e(Ha({type:"number",coerce:!0,checks:[],...M(t)}))}function cp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function up(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function fp(e,t){return new e({type:"boolean",...M(t)})}function mp(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function hp(e,t){return new e({type:"bigint",...M(t)})}function gp(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function Cp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function kp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function yp(e,t){return new e({type:"symbol",...M(t)})}function bp(e,t){return new e({type:"undefined",...M(t)})}function vp(e,t){return new e({type:"null",...M(t)})}function wp(e){return new e({type:"any"})}function xp(e){return new e({type:"unknown"})}function Ip(e,t){return new e({type:"never",...M(t)})}function _p(e,t){return new e({type:"void",...M(t)})}function Sp(e,t){return new e({type:"date",...M(t)})}function Lp(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Pp(e,t){return new e({type:"nan",...M(t)})}function Wt(e,t){return new pa({check:"less_than",...M(t),value:e,inclusive:!1})}function ft(e,t){return new pa({check:"less_than",...M(t),value:e,inclusive:!0})}function Vt(e,t){return new fa({check:"greater_than",...M(t),value:e,inclusive:!1})}function mt(e,t){return new fa({check:"greater_than",...M(t),value:e,inclusive:!0})}function pc(e){return Vt(0,e)}function fc(e){return Wt(0,e)}function mc(e){return ft(0,e)}function hc(e){return mt(0,e)}function In(e,t){return new pd({check:"multiple_of",...M(t),value:e})}function _n(e,t){return new hd({check:"max_size",...M(t),maximum:e})}function Ft(e,t){return new gd({check:"min_size",...M(t),minimum:e})}function tr(e,t){return new Cd({check:"size_equals",...M(t),size:e})}function nr(e,t){return new kd({check:"max_length",...M(t),maximum:e})}function en(e,t){return new yd({check:"min_length",...M(t),minimum:e})}function rr(e,t){return new bd({check:"length_equals",...M(t),length:e})}function Zr(e,t){return new vd({check:"string_format",format:"regex",...M(t),pattern:e})}function jr(e){return new wd({check:"string_format",format:"lowercase",...M(e)})}function Wr(e){return new xd({check:"string_format",format:"uppercase",...M(e)})}function Vr(e,t){return new Id({check:"string_format",format:"includes",...M(t),includes:e})}function Fr(e,t){return new _d({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Hr(e,t){return new Sd({check:"string_format",format:"ends_with",...M(t),suffix:e})}function gc(e,t,n){return new Ld({check:"property",property:e,schema:t,...M(n)})}function Br(e,t){return new Pd({check:"properties",shape:e,...M(t)})}function Ur(e,t){return new Md({check:"mime_type",mime:e,...M(t)})}function Tt(e){return new Rd({check:"overwrite",tx:e})}function Gr(e){return Tt(t=>t.normalize(e))}function Kr(){return Tt(e=>e.trim())}function qr(){return Tt(e=>e.toLowerCase())}function Yr(){return Tt(e=>e.toUpperCase())}function Jr(){return Tt(e=>fl(e))}function Mp(e,t,n){return new e({type:"array",element:t,...M(n)})}function Xx(e,t,n){return new e({type:"union",options:t,...M(n)})}function Qx(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function eI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...M(r)})}function tI(e,t,n){return new e({type:"intersection",left:t,right:n})}function nI(e,t,n,r){let o=n instanceof K,i=o?r:n,s=o?n:null;return new e({type:"tuple",items:t,rest:s,...M(i)})}function rI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...M(r)})}function oI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...M(r)})}function iI(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function sI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...M(n)})}function aI(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function cI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function Rp(e,t){return new e({type:"file",...M(t)})}function uI(e,t){return new e({type:"transform",transform:t})}function lI(e,t){return new e({type:"optional",innerType:t})}function dI(e,t){return new e({type:"nullable",innerType:t})}function pI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Ho(n)}})}function fI(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function mI(e,t){return new e({type:"success",innerType:t})}function hI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:bl(n)})}function gI(e,t,n){return new e({type:"pipe",in:t,out:n})}function CI(e,t){return new e({type:"readonly",innerType:t})}function kI(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function yI(e,t){return new e({type:"lazy",getter:t})}function bI(e,t){return new e({type:"promise",innerType:t})}function Tp(e,t,n){let r=M(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function $p(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Ap(e,t){let n=_0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Rr(o,r.value,n._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Rr(i))}},e(r.value,r)),t);return n}function _0(e,t){let n=new pe({check:"custom",...M(t)});return n._zod.check=e,n}function Dp(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=Ve.get(n)??{};Ve.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Ep(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=Ve.get(n)??{};Ve.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Np(e,t){let n=M(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),o=o.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(r),s=new Set(o),a=e.Codec??pi,c=e.Boolean??li,u=e.String??Yn,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new a({type:"pipe",in:l,out:d,transform:((f,h)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?r[0]||"true":o[0]||"false"),error:n.error});return m._zod.bag.truthy=r,m._zod.bag.falsy=o,m._zod.bag.case=n.case??"insensitive",m}function or(e,t,n,r={}){let o=M(r),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function xi(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&We(e,r,n[r]);return e}function Sn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ve,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Me(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function le(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let m=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,m,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),le(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&xi(s.schema,c),t.io==="input"&&tt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function S0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ln(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}let o=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${m("__shared")}#/${a}/${S0(f)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+S0(l)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
64
+ }`,m;try{m=new l(...s,d)(...a)}catch(f){throw new Q(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(m.code=u),m.definite=r.definite,m}function U(e,t){for(let[r,o]of e.constants)if(o===t)return r;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function Qn(e,t){return e.definite=!1,U(e,t)}function F(e){return`v${e.varCounter++}`}function nx(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return et;let r=n;return r.issues.length===0?r.value:et}function Ue(e,t,n,r,o=!0){let i=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return ke(e,t,n,r,o)}catch(u){if(!(u instanceof Q)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,rx(e,t,n,r)}}function rx(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,nx),s=F(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var ox=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function ix(e,t,n,r){let o=n._zod.def.checks;if(!o||o.length===0)return r;let i=r;for(let s of o){let a=s._zod.def;if(a.when&&!ox.has(a.check))throw new Q('check with a custom "when" condition');switch(a.check){case"greater_than":sx(e,t,a,i);break;case"less_than":ax(e,t,a,i);break;case"multiple_of":cx(e,t,a,i);break;case"number_format":I0(e,a,i);break;case"min_length":{let c=Jn(a.minimum,"min_length"),u=q1(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=Jn(a.maximum,"max_length"),u=q1(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=Jn(a.length,"length_equals"),u=q1(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${Jn(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${Jn(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${Jn(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=_0(e,t,a,i);break;case"custom":i=mx(e,t,s,i);break;case"bigint_format":ux(e,a,i);break;case"mime_type":lx(e,t,a,i);break;case"property":px(e,t,a,i);break;case"properties":dx(e,t,a,i);break;case"overwrite":{let c=F(t);fx(e,t,s,i,c),i=c;break}default:throw new Q(`check type ${a.check}`)}}return i}function q1(e,t,n,r){let o=U(t,Gn),i=F(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function Jn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Q(`${t} bound of type ${typeof e}`);return`${e}`}function x0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Q("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Q("comparison check with Invalid Date bound");return U(e,t)}throw new Q(`comparison check bound of type ${typeof t}`)}function sx(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${x0(t,n.value)}) return INVALID;`)}function ax(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${x0(t,n.value)}) return INVALID;`)}function cx(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Q("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=U(t,Fo);e.write(`if (${o}(${r}, ${Jn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function I0(e,t,n){let r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Q(`number format ${r}`)}}function ux(e,t,n){let r=t.format;if(r)switch(r){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Q(`bigint format ${r}`)}}function lx(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=U(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function dx(e,t,n,r){if(n.when)throw new Q('check with a custom "when" condition');e.write(`if (${r} == null) return INVALID;`);let o=n.shape;for(let i of Reflect.ownKeys(o)){let s=typeof i=="symbol"?U(t,i):Xe(i),a=F(t);e.write(`const ${a} = ${r}[${s}];`),Ue(e,t,o[i],a,!1)}}function px(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ke(e,t,n.schema,o)}function fx(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new Q("overwrite check without a transform function");if(er(i))throw new Rt("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function Y1(){throw new ct}function Q1(e){this.issues.push(e)}function mx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Rt("z.compile: async .refine() predicates are not supported");let i=Qn(t,o.fn),s=U(t,Y1),a=F(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),r}if(n._zod.check){if(er(n._zod.check))throw new Rt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:Q1};return i(l)instanceof Promise&&Y1(),l.issues.length===0?l.value:et}),c=F(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new Q("custom check without a predicate or check function")}var hx=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function _0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,ci);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,xa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,Sa),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,ai);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,va);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,Ia);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,_a);return e.write(`if (!${u}(${r})) return INVALID;`),r}let s=n;if(i==="url"||i==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=U(t,ka),l=U(t,n),d=F(t),m=F(t);if(e.write(`const ${d} = ${r}.trim();`),e.write(`const ${m} = ${u}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),s.hostname!==void 0){let g=U(t,ya);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,ba);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let f=F(t),h=s.normalize?`${m}.href`:`${U(t,si)}(${d})`;return e.write(`const ${f} = ${h};`),f}let a=n.fn;if(a){if(er(a))throw new Q(`async string format ${i}`);let u=U(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(hx.has(i)&&n.pattern){let u=U(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${r})) return INVALID;`),r}let c=n.format;switch(c){case"regex":throw new Q("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${Xe(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${Xe(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${Xe(u)}) return INVALID;`);break}default:throw new Q(`string format ${c}`)}return r}function ke(e,t,n,r,o=!0){let i=n._zod.def,s=i.type;if(i.coerce)throw new Q(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=gx(e,t,n,r,a);break;case"number":c=Cx(e,n,r);break;case"boolean":c=kx(e,r);break;case"bigint":c=yx(e,n,r);break;case"symbol":c=bx(e,r);break;case"undefined":c=vx(e,r);break;case"null":c=wx(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=xx(e,r);break;case"nan":c=Ix(e,r);break;case"date":c=_x(e,r);break;case"object":c=Sx(e,t,n,r,a);break;case"optional":c=Lx(e,t,n,r,a);break;case"nullable":c=Rx(e,t,n,r,a);break;case"array":c=Tx(e,t,n,r,a);break;case"literal":c=$x(e,t,n,r);break;case"enum":c=Ax(e,t,n,r);break;case"readonly":{let u=b0(e,t,n,r),l=F(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":b0(e,t,n,r),c="true";break;case"default":case"prefault":c=Dx(e,t,n,r);break;case"nonoptional":c=Ex(e,t,n,r);break;case"tuple":c=Nx(e,t,n,r);break;case"union":c=Ox(e,t,n,r);break;case"intersection":c=jx(e,t,n,r);break;case"record":c=Wx(e,t,n,r);break;case"map":c=Fx(e,t,n,r);break;case"set":c=Hx(e,t,n,r);break;case"file":c=Bx(e,r);break;case"template_literal":c=Ux(e,t,n,r);break;case"lazy":c=Gx(e,t,n,r);break;case"pipe":c=Kx(e,t,n,r);break;case"custom":c=qx(e,t,n,r);break;case"transform":c=Xx(e,t,n,r);break;case"catch":c=Jx(e,t,n,r);break;default:throw new Q(`schema type ${s}`)}return c===null?null:ix(e,t,n,c)}function gx(e,t,n,r,o=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.def;return i.format===void 0?r:_0(e,t,i,r,o)}function Cx(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check==="number_format"&&r.format&&I0(e,{format:r.format},n),n}function kx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function yx(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function bx(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function vx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function wx(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function xx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Ix(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function _x(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function Sx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let s=i.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=y=>typeof y=="symbol"?U(t,y):Xe(y),d=y=>typeof y=="symbol"?`[${l(y)}]`:Xe(y),m=s;if(a.includes("__proto__"))throw new Q('object shape key "__proto__"');let f=new Map;for(let y of u){let b=m[y],$=l(y),T=F(t);if(e.write(`const ${T} = ${r}[${$}];`),b._zod.optin!==void 0){let w=F(t);e.write(`let ${w} = (() => {`),e.indented(R=>{let V=Ue(R,t,b,T);R.write(`return ${V};`)}),e.write("})();"),b._zod.optout==="optional"?(e.write(`if (${w} === INVALID) {`),e.indented(R=>{R.write(`if (${$} in ${r}) return INVALID;`),R.write(`${w} = undefined;`)}),e.write("}")):e.write(`if (${w} === INVALID) return INVALID;`),f.set(y,w)}else{Mx(b)&&e.write(`if (!(${$} in ${r})) return INVALID;`);let w=Ue(e,t,b,T,o);w!==null&&f.set(y,w)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let b=a.map($=>`k !== ${Xe($)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented($=>{$.write(`if (${b}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let k=F(t),I=u.some(y=>y0(m[y])||J1(m[y]));if(!o){if(g==="schema"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(b=>{b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`);let $=F(t);b.write(`const ${$} = ${r}[k];`),Ue(b,t,h,$,!1)}),e.write("}")}return null}if(I){e.write(`const ${k} = {};`);for(let y of u){let b=l(y),$=f.get(y);J1(m[y])?e.write(`if (${b} in ${r}) ${k}[${b}] = ${$};`):y0(m[y])?e.write(`if (${$} !== undefined || ${b} in ${r}) ${k}[${b}] = ${$};`):e.write(`${k}[${b}] = ${$};`)}}else{let y=u.map(b=>`${d(b)}: ${f.get(b)}`).join(", ");e.write(`const ${k} = { ${y} };`)}if(g!=="none"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(b=>{if(b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`),g==="passthrough")b.write(`${k}[k] = ${r}[k];`);else{let $=F(t);b.write(`const ${$} = ${r}[k];`);let T=Ue(b,t,h,$);b.write(`${k}[k] = ${T};`)}}),e.write("}")}return k}function Lx(e,t,n,r,o=!0){let i=n._zod.def;if(Px(n))return ke(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=F(t),c=F(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=ke(l,t,i.innerType,r);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=ke(u,t,i.innerType,r);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=o?F(t):null;return s&&e.write(`let ${s};`),e.write(`if (${r} !== undefined) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Px(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Mx(e){return e._zod.optin===void 0&&Xn(e)}function Xn(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Xn(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Xn(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Xn):!0;case"intersection":return!t.left||!t.right?!0:Xn(t.left)&&Xn(t.right);case"pipe":return t.in?Xn(t.in):!0;default:return!0}}function J1(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function y0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&zr(e)}function zr(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?zr(t.innerType):!0;case"union":return t.options?t.options.some(zr):!0;case"intersection":return!t.left||!t.right||zr(t.left)||zr(t.right);case"pipe":return t.out?zr(t.out):!0;default:return!0}}function Rx(e,t,n,r,o=!0){let i=n._zod.def,s=o?F(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${r} !== null) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Tx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?F(t):null,a=F(t),c=F(t);return s&&e.write(`const ${s} = new Array(${r}.length);`),e.write(`for (let ${a} = 0; ${a} < ${r}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${r}[${a}];`);let l=Ue(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function $x(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}let s=i[0];if(typeof s=="number"&&Number.isNaN(s)){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${Xe(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${r} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${r} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${r} !== ${s}n) return INVALID;`);else throw new Q(`literal type ${typeof s}`);return r}function Ax(e,t,n,r){let o=n._zod.values;if(!o)throw new Q("enum schema without enumerated values");let i=U(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function b0(e,t,n,r){let o=n._zod.def;return ke(e,t,o.innerType,r)}function Dx(e,t,n,r){let o=n._zod.def,s=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!s)return ke(e,t,o.innerType,r);let c=U(t,s),u=F(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ke(e,t,o.innerType,u)}let a=F(t);if(s){let c=U(t,s),u=U(t,Ho);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=ke(l,t,o.innerType,r);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${r} !== undefined) {`),e.indented(c=>{let u=ke(c,t,o.innerType,r);c.write(`${a} = ${u};`)}),e.write("}");return a}function Ex(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.innerType,r),s=F(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function Nx(e,t,n,r){let o=n._zod.def,i=o.items,s=o.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let a=v0(i,"optin"),c=v0(i,"optout");s?e.write(`if (${r}.length < ${a}) return INVALID;`):e.write(`if (${r}.length < ${a} || ${r}.length > ${i.length}) return INVALID;`);let u=F(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let d=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${r}.length) {`),m.indented(f=>{let h=F(t);f.write(`const ${h} = ${r}[${l}];`);let g=Ue(f,t,d,h);f.write(`${u}[${l}] = ${g};`)}),m.write("} else {"),m.indented(f=>{if(J1(d)){f.write(`${u}.length = ${l};`);return}let h=F(t),g=F(t);f.write(`const ${h} = undefined;`),f.write(`const ${g} = (() => {`),f.indented(k=>{let I=Ue(k,t,d,h);k.write(`return ${I};`)}),f.write("})();"),f.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),f.write(`else ${u}[${l}] = ${g};`)}),m.write("}")}),e.write("}");else{let m=F(t);e.write(`const ${m} = ${r}[${l}];`);let f=Ue(e,t,d,m);e.write(`${u}[${l}] = ${f};`)}}if(s){let l=F(t),d=F(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${r}[${l}];`);let f=Ue(m,t,s,d);m.write(`${u}[${l}] = ${f};`)}),e.write("}")}return u}function v0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Ox(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return zx(e,t,o,r);if(o.inclusive===!1)throw new Q("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),r;if(i.length===1)return ke(e,t,i[0],r);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(l=>l._zod.def.values)),u=U(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=F(t);e.write(`let ${a};`);for(let c=0;c<i.length;c++){let u=i[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=ke(l,t,u,r);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function zx(e,t,n,r){if(n.unionFallback)throw new Q("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=F(t),i=F(t);e.write(`const ${o} = ${r}?.[${Xe(n.discriminator)}];`),e.write(`let ${i};`);let s=!0,a=new Set;for(let c of n.options){let u=c._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Q("discriminated union option without static discriminator values");for(let m of u){if(a.has(m))throw new Q(`duplicate discriminator value ${String(m)}`);a.add(m)}let l=Array.from(u,m=>Zx(t,o,m)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let f=ke(m,t,c,r);m.write(`${i} = ${f};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function Zx(e,t,n){if(typeof n=="string")return`${t} === ${Xe(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let r=U(e,n);return`${t} === ${r}`}throw new Q(`literal discriminator value ${String(n)}`)}function jx(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=Ue(e,t,o.left,r),s=Ue(e,t,o.right,r),a=U(t,Nr),c=F(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function Wx(e,t,n,r){let o=n._zod.def,i=U(t,kt);e.write(`if (!${i}(${r})) return INVALID;`);let s=F(t),a=F(t),c=F(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let f=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new Q(`record key value ${String(g)}`);let k=typeof g=="number"?g.toString():g;if(k==="__proto__")throw new Q('record key "__proto__"');f.push(k);let I=U(t,g),y=ke(e,t,o.keyType,I),b=F(t);e.write(`const ${b} = ${r}[${Vx(t,k)}];`);let $=Ue(e,t,o.valueType,b);e.write(`${s}[${y}] = ${$};`)}let h=U(t,new Set(f));return e.write(`for (const ${a} in ${r}) {`),e.indented(g=>{g.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${r}[${a}];`):g.write("return INVALID;")}),e.write("}"),s}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let f=o.mode==="loose",h=Va(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),k=U(t,Qt),I=F(t);return w0(e,t,r,a,y=>{y.write(`let ${I} = ${g}(${a});`),y.write(`if (${I} === INVALID && typeof ${a} === "string" && ${k}.test(${a})) ${I} = ${g}(Number(${a}));`),f?y.write(`if (${I} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${I} === INVALID) return INVALID;`),y.write(`if (${I} === "__proto__") continue;`);let b=F(t);y.write(`const ${b} = ${r}[${a}];`);let $=Ue(y,t,o.valueType,b);y.write(`${s}[${I}] = ${$};`)}),s}return w0(e,t,r,a,f=>{f.write(`const ${c} = ${r}[${a}];`);let h=Ue(f,t,o.valueType,c);f.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function w0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=F(t),c=F(t),u=F(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${c}[${u}];`),l.write(`if (${r} === "__proto__" || !${s}.call(${n}, ${r})) continue;`),o(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${a}[${u}];`),l.write(`if (!${s}.call(${n}, ${r})) continue;`),i?l.write(i):o(l)}),e.write("}")}function Vx(e,t){return typeof t=="string"?Xe(t):U(e,t)}function Fx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=F(t),s=F(t),a=F(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${s}, ${a}] of ${r}) {`),e.indented(c=>{let u=ke(c,t,o.keyType,s),l=ke(c,t,o.valueType,a);c.write(`${i}.set(${u}, ${l});`)}),e.write("}"),i}function Hx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=F(t),s=F(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${s} of ${r}) {`),e.indented(a=>{let c=ke(a,t,o.valueType,s);a.write(`${i}.add(${c});`)}),e.write("}"),i}function Bx(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Ux(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=U(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function Gx(e,t,n,r){let o=n._zod.def,i=Qn(t,o.getter),s=U(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=F(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function Kx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.in,r);if(o.transform){if(er(o.transform))throw new Rt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=Qn(t,l=>{let d={value:l,issues:[],addIssue:Q1},m=s(l,d);return m instanceof Promise?et:d.issues.length===0?m:et}),u=F(t);return e.write(`const ${u} = ${c}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),ke(e,t,o.out,u)}else return ke(e,t,o.out,i)}function er(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function qx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Rt("z.compile: async custom predicates are not supported");let i=Qn(t,o.fn),s=U(t,Y1),a=F(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new Q("custom schema without a predicate function");return r}function Yx(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return et;let o=r;return o.issues.length===0?o.value:t()}function Jx(e,t,n,r){let o=n._zod.def;if(!o.catchValue[qs])throw new Q("catch with a callback (only a constant catch value compiles)",!1);let i=F(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=Ue(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=U(t,o.innerType),a=Qn(t,o.catchValue),c=U(t,Yx);return e.write(`if (${i} === INVALID) {`),e.indented(u=>{u.write(`${i} = ${c}(${s}, ${a}, ${r});`),u.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function Xx(e,t,n,r){let o=n._zod.def;if(o.transform){if(er(o.transform))throw new Rt("z.compile: async transforms are not supported");let i=o.transform,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:Q1},d=i(u,l);return d instanceof Promise?et:l.issues.length===0?d:et}),c=F(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Fa(e){return e.checks&&(e.checks=[...e.checks]),e}function ep(e,t){return new e(Fa({type:"string",...M(t)}))}function tp(e,t){return new e(Fa({type:"string",coerce:!0,...M(t)}))}function Ha(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function Ba(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function Ua(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function Ga(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function Ka(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function qa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function ki(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function Ya(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function Ja(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function Xa(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function Qa(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function ec(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function tc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function nc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function rc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function oc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function np(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function ic(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function sc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function ac(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function cc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function uc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function rp(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...M(t)})}function op(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...M(t)})}function lc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var ip={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function yi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function bi(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function vi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function wi(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function sp(e,t){return new e(Fa({type:"number",checks:[],...M(t)}))}function ap(e,t){return new e(Fa({type:"number",coerce:!0,checks:[],...M(t)}))}function cp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function up(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function fp(e,t){return new e({type:"boolean",...M(t)})}function mp(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function hp(e,t){return new e({type:"bigint",...M(t)})}function gp(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function Cp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function kp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function yp(e,t){return new e({type:"symbol",...M(t)})}function bp(e,t){return new e({type:"undefined",...M(t)})}function vp(e,t){return new e({type:"null",...M(t)})}function wp(e){return new e({type:"any"})}function xp(e){return new e({type:"unknown"})}function Ip(e,t){return new e({type:"never",...M(t)})}function _p(e,t){return new e({type:"void",...M(t)})}function Sp(e,t){return new e({type:"date",...M(t)})}function Lp(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Pp(e,t){return new e({type:"nan",...M(t)})}function Wt(e,t){return new da({check:"less_than",...M(t),value:e,inclusive:!1})}function ft(e,t){return new da({check:"less_than",...M(t),value:e,inclusive:!0})}function Vt(e,t){return new pa({check:"greater_than",...M(t),value:e,inclusive:!1})}function mt(e,t){return new pa({check:"greater_than",...M(t),value:e,inclusive:!0})}function dc(e){return Vt(0,e)}function pc(e){return Wt(0,e)}function fc(e){return ft(0,e)}function mc(e){return mt(0,e)}function In(e,t){return new pd({check:"multiple_of",...M(t),value:e})}function _n(e,t){return new hd({check:"max_size",...M(t),maximum:e})}function Ft(e,t){return new gd({check:"min_size",...M(t),minimum:e})}function tr(e,t){return new Cd({check:"size_equals",...M(t),size:e})}function nr(e,t){return new kd({check:"max_length",...M(t),maximum:e})}function en(e,t){return new yd({check:"min_length",...M(t),minimum:e})}function rr(e,t){return new bd({check:"length_equals",...M(t),length:e})}function Zr(e,t){return new vd({check:"string_format",format:"regex",...M(t),pattern:e})}function jr(e){return new wd({check:"string_format",format:"lowercase",...M(e)})}function Wr(e){return new xd({check:"string_format",format:"uppercase",...M(e)})}function Vr(e,t){return new Id({check:"string_format",format:"includes",...M(t),includes:e})}function Fr(e,t){return new _d({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Hr(e,t){return new Sd({check:"string_format",format:"ends_with",...M(t),suffix:e})}function hc(e,t,n){return new Ld({check:"property",property:e,schema:t,...M(n)})}function Br(e,t){return new Pd({check:"properties",shape:e,...M(t)})}function Ur(e,t){return new Md({check:"mime_type",mime:e,...M(t)})}function Tt(e){return new Rd({check:"overwrite",tx:e})}function Gr(e){return Tt(t=>t.normalize(e))}function Kr(){return Tt(e=>e.trim())}function qr(){return Tt(e=>e.toLowerCase())}function Yr(){return Tt(e=>e.toUpperCase())}function Jr(){return Tt(e=>fl(e))}function Mp(e,t,n){return new e({type:"array",element:t,...M(n)})}function Qx(e,t,n){return new e({type:"union",options:t,...M(n)})}function eI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function tI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...M(r)})}function nI(e,t,n){return new e({type:"intersection",left:t,right:n})}function rI(e,t,n,r){let o=n instanceof K,i=o?r:n,s=o?n:null;return new e({type:"tuple",items:t,rest:s,...M(i)})}function oI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...M(r)})}function iI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...M(r)})}function sI(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function aI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...M(n)})}function cI(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function uI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function Rp(e,t){return new e({type:"file",...M(t)})}function lI(e,t){return new e({type:"transform",transform:t})}function dI(e,t){return new e({type:"optional",innerType:t})}function pI(e,t){return new e({type:"nullable",innerType:t})}function fI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Ho(n)}})}function mI(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function hI(e,t){return new e({type:"success",innerType:t})}function gI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:bl(n)})}function CI(e,t,n){return new e({type:"pipe",in:t,out:n})}function kI(e,t){return new e({type:"readonly",innerType:t})}function yI(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function bI(e,t){return new e({type:"lazy",getter:t})}function vI(e,t){return new e({type:"promise",innerType:t})}function Tp(e,t,n){let r=M(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function $p(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Ap(e,t){let n=S0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Rr(o,r.value,n._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Rr(i))}},e(r.value,r)),t);return n}function S0(e,t){let n=new pe({check:"custom",...M(t)});return n._zod.check=e,n}function Dp(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=Ve.get(n)??{};Ve.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Ep(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=Ve.get(n)??{};Ve.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Np(e,t){let n=M(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),o=o.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(r),s=new Set(o),a=e.Codec??pi,c=e.Boolean??li,u=e.String??Yn,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new a({type:"pipe",in:l,out:d,transform:((f,h)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?r[0]||"true":o[0]||"false"),error:n.error});return m._zod.bag.truthy=r,m._zod.bag.falsy=o,m._zod.bag.case=n.case??"insensitive",m}function or(e,t,n,r={}){let o=M(r),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function xi(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&We(e,r,n[r]);return e}function Sn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ve,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Me(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function le(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let m=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,m,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),le(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&xi(s.schema,c),t.io==="input"&&tt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function L0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ln(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}let o=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${m("__shared")}#/${a}/${L0(f)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+L0(l)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
65
65
 
66
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}a.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function M0(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;M0(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var R0=new Set(["type","properties","required","additionalProperties"]),L0=["oneOf","anyOf"];function P0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Op(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!R0.has(s))return null;t.push(i)}let n={},r=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??P0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Op(a)??{allOf:a};We(n,s,c)}for(let s of i.required??[])r.add(s)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let s of t){let a=P0(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function vI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of R0)if(o in e)return;let n=t.filter(o=>L0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Op(t);else{let o=n[0],i=L0.find(c=>Array.isArray(o[c]));if(Object.keys(o).length!==1)return;let s=t.filter(c=>c!==o),a=o[i].map(c=>Op([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,xi(e,r))}function Pn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){r(d);let f=e.seen.get(d),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):xi(u,h),xi(u,l),a._zod.parent===d)for(let k in u)k==="$ref"||k==="allOf"||k in l||delete u[k];if(h.$ref&&f.def)for(let k in u)k==="$ref"||k==="allOf"||k in f.def&&JSON.stringify(u[k])===JSON.stringify(f.def[k])&&delete u[k]}let m=a._zod.parent;if(m&&m!==d){r(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())r(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())M0(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])vI(u)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}xi(o,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,We(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xr(t,"input",e.processors),output:Xr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return tt(r.element,n);if(r.type==="set")return tt(r.valueType,n);if(r.type==="lazy")return tt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return tt(r.innerType,n);if(r.type==="intersection")return tt(r.left,n)||tt(r.right,n);if(r.type==="record"||r.type==="map")return tt(r.keyType,n)||tt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:tt(r.in,n)||tt(r.out,n);if(r.type==="object"){for(let o in r.shape)if(tt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(tt(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(tt(o,n))return!0;return!!(r.rest&&tt(r.rest,n))}return!1}var zp=(e,t={})=>n=>{let r=Sn({...n,processors:t});return le(e,r),Ln(r,e),Pn(r,e)},Xr=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Sn({...o??{},target:i,io:t,processors:n});return le(e,s),Ln(s,e),Pn(s,e)};var Qr=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},eo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},T0=(e,t)=>{Qr(e,"minimum",t),eo(e,"maximum",t)},E0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},N0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},O0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},z0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},$0=(e,t)=>Qr(e,"minimum",t.minimum),A0=(e,t)=>eo(e,"maximum",t.maximum),D0=e=>(t,n)=>{z0(t,n.format);let[r,o]=e[n.format];Qr(t,"minimum",r),eo(t,"maximum",o)},wI={greater_than:(e,t)=>Qr(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>eo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>E0(e,t.value),number_format:D0(Uo),bigint_format:D0(Go),min_length:$0,max_length:A0,length_equals:(e,t)=>T0(e,t.length),min_size:$0,max_size:A0,size_equals:(e,t)=>T0(e,t.size),string_format:(e,t)=>{z0(e,t.format),t.pattern&&N0(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>O0(e,t.mime)};function Re(e){let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let i of r)wI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Qr(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Qr(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&eo(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&eo(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&E0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&O0(t,o.mime);for(let i of o.patterns??[])N0(t,i);return t}var xI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},II=new Map([[xa,Ul],[ui,Gl]]),Z0=e=>II.get(e)??e,Wp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Re(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=xI[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let d=[...c].map(Z0);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Vp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Re(e);o.type=l?"integer":"number";let d=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(d?f?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?f?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let I of a)Number.isFinite(I)&&I!==0?h.add(Math.abs(I)):Me(e,t,o,r,`A multipleOf divisor of ${I} cannot be represented in JSON Schema`);let[g,...k]=h;g!==void 0&&(o.multipleOf=g),k.length&&(o.allOf=[...o.allOf??[],...k.map(I=>({multipleOf:I}))])}},Fp=(e,t,n,r)=>{n.type="boolean"},Hp=(e,t,n,r)=>{Me(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Bp=(e,t,n,r)=>{Me(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Up=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Gp=(e,t,n,r)=>{Me(e,t,n,r,"Undefined cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{Me(e,t,n,r,"Void cannot be represented in JSON Schema")},qp=(e,t,n,r)=>{n.not={}},Yp=(e,t,n,r)=>{},Jp=(e,t,n,r)=>{},Xp=(e,t,n,r)=>{Me(e,t,n,r,"Date cannot be represented in JSON Schema")},Qp=(e,t,n,r)=>{let o=e._zod.def,i=Sr(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},ef=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(Me(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(Me(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},tf=(e,t,n,r)=>{Me(e,t,n,r,"NaN cannot be represented in JSON Schema")},nf=(e,t,n,r)=>{let o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},rf=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Re(e);i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),a&&(a.length===0?o.not={}:a.length===1?o.contentMediaType=a[0]:o.anyOf=a.map(c=>({contentMediaType:c})))},of=(e,t,n,r)=>{n.type="boolean"},sf=(e,t,n,r)=>{Me(e,t,n,r,"Custom types cannot be represented in JSON Schema")},af=(e,t,n,r)=>{Me(e,t,n,r,"Function types cannot be represented in JSON Schema")},cf=(e,t,n,r)=>{Me(e,t,n,r,"Transforms cannot be represented in JSON Schema")},uf=(e,t,n,r)=>{Me(e,t,n,r,"Map cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{Me(e,t,n,r,"Set cannot be represented in JSON Schema")},df=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Re(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=le(i.element,t,{...r,path:[...r.path,"items"]})};function Ii(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Ii(t.out):t.type==="catch"?Ii(t.innerType):e._zod.optin}var pf=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&Me(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)We(o.properties,u,le(s[u],t,{...r,path:[...r.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=i.shape[u];(t.io==="input"?Ii(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(o.required=c),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=le(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},kc=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>le(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},ff=(e,t,n,r)=>{let o=e._zod.def,i=le(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=le(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},mf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,k)=>le(g,t,{...r,path:[...r.path,s,k]})),u=i.rest?le(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,l=i.items.length;for(;l>0;){let g=i.items[l-1];if(!(t.io==="input"?Ii(g)!==void 0:g._zod.optout==="optional"))break;l--}let d=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,m?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):(o.items=c,m?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),m&&(o.maxItems=d));let{minimum:f,maximum:h}=Re(e);typeof f=="number"&&(o.minItems=f),typeof h=="number"&&(o.maxItems=h)};function Zp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let g=Zp(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let k=g.map(I=>Zp(e,I,n));k.some((I,y)=>I!==g[y])&&(t={...t,[h]:k})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(h=>typeof h=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:m,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),o&&(f.type="string",i||(f.pattern=(r.includes("number")?Qt:ni).source)),f}var jp=new WeakMap;function _I(e){let t=new Map;for(let r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);let n=new Map;for(let r of jp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=Zp(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(let r of e.seen.values())for(let o of[r.schema,r.def]){let i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}var hf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Re(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=le(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let d of a)We(o.patternProperties,Z0(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=le(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=jp.get(t);l||(l=[],jp.set(t,l),t.deferred.push(()=>_I(t))),l.push(e)}o.additionalProperties=le(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&Ii(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l.map(String))}},gf=(e,t,n,r)=>{let o=e._zod.def,i=le(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Cf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},kf=Symbol();function j0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Me(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),kf):JSON.parse(s)}var yf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=j0(o.defaultValue,e,t,n,r);s!==kf&&(n.default=s)},bf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=j0(o.defaultValue,e,t,n,r);s!==kf&&(n._prefault=s)},vf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{Me(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},wf=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;le(s,t,r);let a=t.seen.get(e);a.ref=s},xf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},If=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},yc=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},_f=(e,t,n,r)=>{let o=e._zod.innerType;le(o,t,r);let i=t.seen.get(e);i.ref=o},Cc={string:Wp,number:Vp,boolean:Fp,bigint:Hp,symbol:Bp,null:Up,undefined:Gp,void:Kp,never:qp,any:Yp,unknown:Jp,date:Xp,enum:Qp,literal:ef,nan:tf,template_literal:nf,file:rf,success:of,custom:sf,function:af,transform:cf,map:uf,set:lf,array:df,object:pf,union:kc,intersection:ff,tuple:mf,record:hf,nullable:gf,nonoptional:Cf,default:yf,prefault:bf,catch:vf,pipe:wf,readonly:xf,promise:If,optional:yc,lazy:_f};function bc(e,t){if("_idmap"in e){let r=e,o=Sn({...t,processors:Cc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;le(l,o)}let s={},a={registry:r,uri:t?.uri,defs:i};o.external=a;for(let c of r._idmap.entries()){let[u,l]=c;Ln(o,l),We(s,u,Pn(o,l))}if(Object.keys(i).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=Sn({...t,processors:Cc});return le(e,n),Ln(n,e),Pn(n,e)}var vc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Sn({processors:Cc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return le(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Ln(this.ctx,t);let r=Pn(this.ctx,t),{"~standard":o,...i}=r;return i}};var W0={};var co={};St(co,{ZodAny:()=>Gf,ZodArray:()=>Jf,ZodBase64:()=>jc,ZodBase64URL:()=>Wc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Hc,ZodBoolean:()=>io,ZodCIDRv4:()=>zc,ZodCIDRv6:()=>Zc,ZodCUID:()=>Tc,ZodCUID2:()=>$c,ZodCatch:()=>k2,ZodCodec:()=>Di,ZodCreditCard:()=>Zf,ZodCustom:()=>Ei,ZodCustomStringFormat:()=>cr,ZodDate:()=>Pi,ZodDefault:()=>p2,ZodDiscriminatedUnion:()=>Qf,ZodE164:()=>Vc,ZodEmail:()=>Lc,ZodEmoji:()=>Mc,ZodEnum:()=>no,ZodExactOptional:()=>Kc,ZodFile:()=>c2,ZodFunction:()=>P2,ZodGUID:()=>Pc,ZodIBAN:()=>jf,ZodIPv4:()=>Nc,ZodIPv6:()=>Oc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>T2,ZodIntersection:()=>e2,ZodJWT:()=>Fc,ZodKSUID:()=>Ec,ZodLazy:()=>_2,ZodLiteral:()=>a2,ZodMAC:()=>zf,ZodMap:()=>i2,ZodNaN:()=>b2,ZodNanoID:()=>Rc,ZodNever:()=>qf,ZodNonOptional:()=>qc,ZodNull:()=>Bf,ZodNullable:()=>d2,ZodNumber:()=>oo,ZodNumberFormat:()=>ur,ZodObject:()=>Ri,ZodOptional:()=>$i,ZodPipe:()=>Ai,ZodPrefault:()=>m2,ZodPreprocess:()=>v2,ZodPromise:()=>L2,ZodReadonly:()=>w2,ZodRecord:()=>to,ZodSet:()=>s2,ZodString:()=>ro,ZodStringFormat:()=>de,ZodSuccess:()=>C2,ZodSymbol:()=>Ff,ZodTemplateLiteral:()=>I2,ZodTransform:()=>u2,ZodTuple:()=>n2,ZodType:()=>J,ZodULID:()=>Ac,ZodURL:()=>Li,ZodUUID:()=>Ht,ZodUndefined:()=>Hf,ZodUnion:()=>Ti,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>Dc,ZodXor:()=>Xf,_ZodString:()=>Sc,_default:()=>f2,_function:()=>Q9,any:()=>R9,array:()=>Mi,base64:()=>l9,base64url:()=>d9,bigint:()=>_9,boolean:()=>Vf,catch:()=>y2,check:()=>e4,cidrv4:()=>c9,cidrv6:()=>u9,codec:()=>q9,creditCard:()=>f9,cuid:()=>e9,cuid2:()=>t9,currencyCode:()=>y9,custom:()=>t4,date:()=>$9,describe:()=>n4,discriminatedUnion:()=>z9,e164:()=>p9,email:()=>H0,emoji:()=>X0,enum:()=>Uc,exactOptional:()=>l2,file:()=>B9,float32:()=>v9,float64:()=>w9,function:()=>Q9,guid:()=>B0,hash:()=>b9,hex:()=>k9,hostname:()=>C9,httpUrl:()=>J0,iban:()=>m9,instanceof:()=>o4,int:()=>Ic,int32:()=>x9,int64:()=>S9,intersection:()=>t2,invertCodec:()=>Y9,ipv4:()=>i9,ipv6:()=>a9,json:()=>s4,jwt:()=>h9,keyof:()=>A9,ksuid:()=>o9,lazy:()=>S2,literal:()=>H9,looseObject:()=>N9,looseRecord:()=>j9,mac:()=>s9,map:()=>W9,meta:()=>r4,nan:()=>K9,nanoid:()=>Q0,nativeEnum:()=>F9,never:()=>Bc,nonoptional:()=>g2,null:()=>Uf,nullable:()=>Si,nullish:()=>U9,number:()=>Wf,object:()=>D9,optional:()=>sr,partialRecord:()=>Z9,pipe:()=>_c,prefault:()=>h2,preprocess:()=>a4,promise:()=>X9,readonly:()=>x2,record:()=>o2,refine:()=>M2,set:()=>V9,strictObject:()=>E9,string:()=>_i,stringFormat:()=>g9,stringbool:()=>i4,success:()=>G9,superRefine:()=>R2,symbol:()=>P9,templateLiteral:()=>J9,transform:()=>Gc,tuple:()=>r2,uint32:()=>I9,uint64:()=>L9,ulid:()=>n9,undefined:()=>M9,union:()=>ao,unknown:()=>ir,url:()=>Y0,uuid:()=>U0,uuidv4:()=>G0,uuidv6:()=>K0,uuidv7:()=>q0,void:()=>T9,xid:()=>r9,xor:()=>O9});var wc={};St(wc,{endsWith:()=>Hr,gt:()=>Vt,gte:()=>mt,includes:()=>Vr,length:()=>rr,lowercase:()=>jr,lt:()=>Wt,lte:()=>ft,maxLength:()=>nr,maxSize:()=>_n,mime:()=>Ur,minLength:()=>en,minSize:()=>Ft,multipleOf:()=>In,negative:()=>fc,nonnegative:()=>hc,nonpositive:()=>mc,normalize:()=>Gr,overwrite:()=>Tt,positive:()=>pc,properties:()=>Br,property:()=>gc,regex:()=>Zr,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,toLowerCase:()=>qr,toUpperCase:()=>Yr,trim:()=>Kr,uppercase:()=>Wr});var V0=new WeakSet([Object.prototype,Error.prototype]);function xc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var F0=(e,t)=>{Sl.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);V0.has(n)||(V0.add(n),xc(n,"format",r=>o=>Xo(r,o)),xc(n,"flatten",r=>o=>Jo(r,o)),xc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Lr,2)}),xc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Lr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},LI=C("ZodError",F0),lt=C("ZodError",F0,void 0,{Parent:Error});var Sf=Tr(lt),Lf=$r(lt),Pf=Ar(lt),Mf=Dr(lt),Rf=ea(lt),Tf=ta(lt),$f=na(lt),Af=ra(lt),Df=oa(lt),Ef=ia(lt),Nf=sa(lt),Of=aa(lt);function MI(){Ne.localeError||ye(Za())}function ar(){Ne.memoizer||ye({memoizer:gi()})}var J=C("ZodType",(e,t)=>(MI(),K.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(O.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(M2(e,t))},superRefine(e,t){return this.check(R2(e,t))},overwrite(e){return this.check(Tt(e))},optional(){return sr(this)},exactOptional(){return l2(this)},nullable(){return Si(this)},nullish(){return sr(Si(this))},nonoptional(e){return g2(this,e)},array(){return Mi(this)},or(e){return ao([this,e])},and(e){return t2(this,e)},transform(e){return _c(this,Gc(e))},default(e){return f2(this,e)},prefault(e){return h2(this,e)},catch(e){return y2(this,e)},pipe(e){return _c(this,e)},readonly(){return x2(this)},describe(e){let t=this.clone();return Ve.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ve.get(this);let t=this.clone();return Ve.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return O.hide(this,"~standard",{...ka(this),jsonSchema:{input:Xr(this,"input"),output:Xr(this,"output")}})},set"~standard"(e){O.own(this,"~standard",e)},parse:function e(t,n){return Sf(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Lf(this,t,n,{callee:e})},safeParse(e,t){return Pf(this,e,t)},async safeParseAsync(e,t){return Mf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){O.own(this,"spa",e)},validate(e,t){return Qo(this,e,t)},validateAsync(e,t){return ei(this,e,t)},encode:function e(t,n){return Rf(this,t,n,{callee:e})},decode:function e(t,n){return Tf(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await $f(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Af(this,t,n,{callee:e})},safeEncode(e,t){return Df(this,e,t)},safeDecode(e,t){return Ef(this,e,t)},async safeEncodeAsync(e,t){return Nf(this,e,t)},async safeDecodeAsync(e,t){return Of(this,e,t)},toJSONSchema(e){return zp(this,{})(e)},get description(){return Ve.get(this)?.description},get _def(){return this._zod.def}}),Sc=C("_ZodString",(e,t)=>{Yn.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(e,n,r,o)},O.derived({format:e=>Re(e).format??null,minLength:e=>Re(e).minimum??null,maxLength:e=>Re(e).maximum??null},{regex(...e){return this.check(Zr(...e))},includes(...e){return this.check(Vr(...e))},startsWith(...e){return this.check(Fr(...e))},endsWith(...e){return this.check(Hr(...e))},min(...e){return this.check(en(...e))},max(...e){return this.check(nr(...e))},length(...e){return this.check(rr(...e))},nonempty(...e){return this.check(en(1,...e))},lowercase(e){return this.check(jr(e))},uppercase(e){return this.check(Wr(e))},trim(){return this.check(Kr())},normalize(...e){return this.check(Gr(...e))},toLowerCase(){return this.check(qr())},toUpperCase(){return this.check(Yr())},slugify(){return this.check(Jr())}})),ro=C("ZodString",(e,t)=>{Yn.init(e,t),Sc.init(e,t)},{email(e){return this.check(Ba(Lc,e))},url(e){return this.check(ki(Li,e))},jwt(e){return this.check(dc(Fc,e))},emoji(e){return this.check(Ja(Mc,e))},guid(e){return this.check(Ua(Pc,e))},uuid(e){return this.check(Ga(Ht,e))},uuidv4(e){return this.check(Ka(Ht,e))},uuidv6(e){return this.check(qa(Ht,e))},uuidv7(e){return this.check(Ya(Ht,e))},nanoid(e){return this.check(Xa(Rc,e))},cuid(e){return this.check(Qa(Tc,e))},cuid2(e){return this.check(ec($c,e))},ulid(e){return this.check(tc(Ac,e))},base64(e){return this.check(cc(jc,e))},base64url(e){return this.check(uc(Wc,e))},xid(e){return this.check(nc(Dc,e))},ksuid(e){return this.check(rc(Ec,e))},ipv4(e){return this.check(oc(Nc,e))},ipv6(e){return this.check(ic(Oc,e))},cidrv4(e){return this.check(sc(zc,e))},cidrv6(e){return this.check(ac(Zc,e))},e164(e){return this.check(lc(Vc,e))},datetime(e){return this.check(yi(Mn,e))},date(e){return this.check(bi(Rn,e))},time(e){return this.check(vi(Tn,e))},duration(e){return this.check(wi($n,e))}});function _i(e){return ep(ro,e)}var de=C("ZodStringFormat",(e,t)=>{ue.init(e,t),Sc.init(e,t)}),Mn=C("ZodISODateTime",(e,t)=>{Ud.init(e,t),de.init(e,t)}),Rn=C("ZodISODate",(e,t)=>{Gd.init(e,t),de.init(e,t)}),Tn=C("ZodISOTime",(e,t)=>{Kd.init(e,t),de.init(e,t)}),$n=C("ZodISODuration",(e,t)=>{qd.init(e,t),de.init(e,t)}),Lc=C("ZodEmail",(e,t)=>{Ed.init(e,t),de.init(e,t)});function H0(e){return Ba(Lc,e)}var Pc=C("ZodGUID",(e,t)=>{Ad.init(e,t),de.init(e,t)});function B0(e){return Ua(Pc,e)}var Ht=C("ZodUUID",(e,t)=>{Dd.init(e,t),de.init(e,t)});function U0(e){return Ga(Ht,e)}function G0(e){return Ka(Ht,e)}function K0(e){return qa(Ht,e)}function q0(e){return Ya(Ht,e)}var Li=C("ZodURL",(e,t)=>{zd.init(e,t),de.init(e,t)});function Y0(e){return ki(Li,e)}function J0(e){return ki(Li,{protocol:ti,hostname:ql,...O.normalizeParams(e)})}var Mc=C("ZodEmoji",(e,t)=>{Zd.init(e,t),de.init(e,t)});function X0(e){return Ja(Mc,e)}var Rc=C("ZodNanoID",(e,t)=>{jd.init(e,t),de.init(e,t)});function Q0(e){return Xa(Rc,e)}var Tc=C("ZodCUID",(e,t)=>{Wd.init(e,t),de.init(e,t)});function e9(e){return Qa(Tc,e)}var $c=C("ZodCUID2",(e,t)=>{Vd.init(e,t),de.init(e,t)});function t9(e){return ec($c,e)}var Ac=C("ZodULID",(e,t)=>{Fd.init(e,t),de.init(e,t)});function n9(e){return tc(Ac,e)}var Dc=C("ZodXID",(e,t)=>{Hd.init(e,t),de.init(e,t)});function r9(e){return nc(Dc,e)}var Ec=C("ZodKSUID",(e,t)=>{Bd.init(e,t),de.init(e,t)});function o9(e){return rc(Ec,e)}var Nc=C("ZodIPv4",(e,t)=>{Yd.init(e,t),de.init(e,t)});function i9(e){return oc(Nc,e)}var zf=C("ZodMAC",(e,t)=>{Xd.init(e,t),de.init(e,t)});function s9(e){return np(zf,e)}var Oc=C("ZodIPv6",(e,t)=>{Jd.init(e,t),de.init(e,t)});function a9(e){return ic(Oc,e)}var zc=C("ZodCIDRv4",(e,t)=>{Qd.init(e,t),de.init(e,t)});function c9(e){return sc(zc,e)}var Zc=C("ZodCIDRv6",(e,t)=>{e1.init(e,t),de.init(e,t)});function u9(e){return ac(Zc,e)}var jc=C("ZodBase64",(e,t)=>{t1.init(e,t),de.init(e,t)});function l9(e){return cc(jc,e)}var Wc=C("ZodBase64URL",(e,t)=>{n1.init(e,t),de.init(e,t)});function d9(e){return uc(Wc,e)}var Vc=C("ZodE164",(e,t)=>{r1.init(e,t),de.init(e,t)});function p9(e){return lc(Vc,e)}var Zf=C("ZodCreditCard",(e,t)=>{o1.init(e,t),de.init(e,t)});function f9(e){return rp(Zf,e)}var jf=C("ZodIBAN",(e,t)=>{i1.init(e,t),de.init(e,t)});function m9(e){return op(jf,e)}var Fc=C("ZodJWT",(e,t)=>{s1.init(e,t),de.init(e,t)});function h9(e){return dc(Fc,e)}var cr=C("ZodCustomStringFormat",(e,t)=>{a1.init(e,t),de.init(e,t)});function g9(e,t,n={}){return or(cr,e,t,n)}function C9(e){return or(cr,"hostname",Kl,e)}function k9(e){return or(cr,"hex",ud,e)}function y9(e){return or(cr,"currency_code",Jl,e)}function b9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=bt[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return or(cr,r,o,t)}var oo=C("ZodNumber",(e,t)=>{Pa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r,o),e.isFinite=!0},O.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Re(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Re(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Re(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Re(e).format??null},{gt(e,t){return this.check(Vt(e,t))},gte(e,t){return this.check(mt(e,t))},min(e,t){return this.check(mt(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},int(e){return this.check(Ic(e))},safe(e){return this.check(Ic(e))},positive(e){return this.check(Vt(0,e))},nonnegative(e){return this.check(mt(0,e))},negative(e){return this.check(Wt(0,e))},nonpositive(e){return this.check(ft(0,e))},multipleOf(e,t){return this.check(In(e,t))},step(e,t){return this.check(In(e,t))},finite(){return this}}));function Wf(e){return sp(oo,e)}var ur=C("ZodNumberFormat",(e,t)=>{c1.init(e,t),oo.init(e,t)});function Ic(e){return cp(ur,e)}function v9(e){return up(ur,e)}function w9(e){return lp(ur,e)}function x9(e){return dp(ur,e)}function I9(e){return pp(ur,e)}var io=C("ZodBoolean",(e,t)=>{li.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fp(e,n,r,o)});function Vf(e){return fp(io,e)}var so=C("ZodBigInt",(e,t)=>{Ma.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o)},O.derived({minValue:e=>Re(e).minimum??null,maxValue:e=>Re(e).maximum??null,format:e=>Re(e).format??null},{gte(e,t){return this.check(mt(e,t))},min(e,t){return this.check(mt(e,t))},gt(e,t){return this.check(Vt(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},positive(e){return this.check(Vt(BigInt(0),e))},negative(e){return this.check(Wt(BigInt(0),e))},nonpositive(e){return this.check(ft(BigInt(0),e))},nonnegative(e){return this.check(mt(BigInt(0),e))},multipleOf(e,t){return this.check(In(e,t))}}));function _9(e){return hp(so,e)}var Hc=C("ZodBigIntFormat",(e,t)=>{u1.init(e,t),so.init(e,t)});function S9(e){return Cp(Hc,e)}function L9(e){return kp(Hc,e)}var Ff=C("ZodSymbol",(e,t)=>{l1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n,r,o)});function P9(e){return yp(Ff,e)}var Hf=C("ZodUndefined",(e,t)=>{d1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)});function M9(e){return bp(Hf,e)}var Bf=C("ZodNull",(e,t)=>{p1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o)});function Uf(e){return vp(Bf,e)}var Gf=C("ZodAny",(e,t)=>{f1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o)});function R9(){return wp(Gf)}var Kf=C("ZodUnknown",(e,t)=>{m1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)});function ir(){return xp(Kf)}var qf=C("ZodNever",(e,t)=>{h1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o)});function Bc(e){return Ip(qf,e)}var Yf=C("ZodVoid",(e,t)=>{g1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)});function T9(e){return _p(Yf,e)}var Pi=C("ZodDate",(e,t)=>{C1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),e.min=(n,r)=>e.check(mt(n,r)),e.max=(n,r)=>e.check(ft(n,r))},O.derived({minDate:e=>{let{minimum:t}=Re(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Re(e);return t?new Date(t):null}},{}));function $9(e){return Sp(Pi,e)}var Jf=C("ZodArray",(e,t)=>{ar(),k1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),e.element=t.element},{min(e,t){return this.check(en(e,t))},nonempty(e){return this.check(en(1,e))},max(e,t){return this.check(nr(e,t))},length(e,t){return this.check(rr(e,t))},unwrap(){return this.element}});function Mi(e,t){return Mp(Jf,e,t)}function A9(e){let t=e._zod.def.shape;return Uc(Object.keys(t))}var Ri=C("ZodObject",(e,t)=>{ar(),y1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o),O.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Uc(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(O.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},loose(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},strict(){return this.clone(O.mergeDefs(this._zod.def,{catchall:Bc()}))},strip(){return this.clone(O.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return O.extend(this,e)},safeExtend(e){return O.safeExtend(this,e)},merge(e){return O.merge(this,e)},pick(e){return O.pick(this,e)},omit(e){return O.omit(this,e)},partial(...e){return O.partial($i,this,e[0])},exactPartial(...e){return O.partial(Kc,this,e[0],"exactPartial")},required(...e){return O.required(qc,this,e[0])}});function D9(e,t){let n={type:"object",shape:e??{},...O.normalizeParams(t)};return new Ri(n)}function E9(e,t){return new Ri({type:"object",shape:e,catchall:Bc(),...O.normalizeParams(t)})}function N9(e,t){return new Ri({type:"object",shape:e,catchall:ir(),...O.normalizeParams(t)})}var Ti=C("ZodUnion",(e,t)=>{di.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kc(e,n,r,o),e.options=t.options});function ao(e,t){return new Ti({type:"union",options:e,...O.normalizeParams(t)})}var Xf=C("ZodXor",(e,t)=>{Ti.init(e,t),b1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kc(e,n,r,o),e.options=t.options});function O9(e,t){return new Xf({type:"union",options:e,inclusive:!1,...O.normalizeParams(t)})}var Qf=C("ZodDiscriminatedUnion",(e,t)=>{Ti.init(e,t),w1.init(e,t)});function z9(e,t,n){return new Qf({type:"union",options:t,discriminator:e,...O.normalizeParams(n)})}var e2=C("ZodIntersection",(e,t)=>{x1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o)});function t2(e,t){return new e2({type:"intersection",left:e,right:t})}var n2=C("ZodTuple",(e,t)=>{ar(),Ra.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new $i({type:"optional",innerType:t}))})}});function r2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new n2({type:"tuple",items:e,rest:i,...O.normalizeParams(o)})}var to=C("ZodRecord",(e,t)=>{ar(),I1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function o2(e,t,n){return!t||!t._zod?new to({type:"record",keyType:_i(),valueType:e,...O.normalizeParams(t)}):new to({type:"record",keyType:e,valueType:t,...O.normalizeParams(n)})}function Z9(e,t,n){return new to({type:"record",keyType:e,valueType:t,...O.normalizeParams(n),partial:!0})}function j9(e,t,n){return new to({type:"record",keyType:e,valueType:t,mode:"loose",...O.normalizeParams(n)})}var i2=C("ZodMap",(e,t)=>{ar(),_1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Ft(...n)),e.nonempty=n=>e.check(Ft(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function W9(e,t,n){return new i2({type:"map",keyType:e,valueType:t,...O.normalizeParams(n)})}var s2=C("ZodSet",(e,t)=>{ar(),S1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o),e.min=(...n)=>e.check(Ft(...n)),e.nonempty=n=>e.check(Ft(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function V9(e,t){return new s2({type:"set",valueType:e,...O.normalizeParams(t)})}var no=C("ZodEnum",(e,t)=>{L1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Qp(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new no({...t,checks:[],...O.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new no({...t,checks:[],...O.normalizeParams(o),entries:i})}});function Uc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new no({type:"enum",entries:n,...O.normalizeParams(t)})}function F9(e,t){return new no({type:"enum",entries:e,...O.normalizeParams(t)})}var a2=C("ZodLiteral",(e,t)=>{P1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function H9(e,t){return new a2({type:"literal",values:Array.isArray(e)?e:[e],...O.normalizeParams(t)})}var c2=C("ZodFile",(e,t)=>{M1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o),e.min=(n,r)=>e.check(Ft(n,r)),e.max=(n,r)=>e.check(_n(n,r)),e.mime=(n,r)=>e.check(Ur(Array.isArray(n)?n:[n],r))});function B9(e){return Rp(c2,e)}var u2=C("ZodTransform",(e,t)=>{ar(),R1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(O.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(O.issue(s))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Gc(e){return new u2({type:"transform",transform:e})}var $i=C("ZodOptional",(e,t)=>{Ta.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sr(e){return new $i({type:"optional",innerType:e})}var Kc=C("ZodExactOptional",(e,t)=>{T1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function l2(e){return new Kc({type:"optional",innerType:e})}var d2=C("ZodNullable",(e,t)=>{$1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Si(e){return new d2({type:"nullable",innerType:e})}function U9(e){return sr(Si(e))}var p2=C("ZodDefault",(e,t)=>{A1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function f2(e,t){return new p2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var m2=C("ZodPrefault",(e,t)=>{D1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function h2(e,t){return new m2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var qc=C("ZodNonOptional",(e,t)=>{E1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function g2(e,t){return new qc({type:"nonoptional",innerType:e,...O.normalizeParams(t)})}var C2=C("ZodSuccess",(e,t)=>{N1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function G9(e){return new C2({type:"success",innerType:e})}var k2=C("ZodCatch",(e,t)=>{O1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function y2(e,t){return new k2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:O.constantCatch(t)})}var b2=C("ZodNaN",(e,t)=>{z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o)});function K9(e){return Pp(b2,e)}var Ai=C("ZodPipe",(e,t)=>{$a.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),e.in=t.in,e.out=t.out});function _c(e,t){return new Ai({type:"pipe",in:e,out:t})}var Di=C("ZodCodec",(e,t)=>{Ai.init(e,t),pi.init(e,t)});function q9(e,t,n){return new Di({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Y9(e){let t=e._zod.def;return new Di({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var v2=C("ZodPreprocess",(e,t)=>{Ai.init(e,t),Z1.init(e,t)}),w2=C("ZodReadonly",(e,t)=>{j1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function x2(e){return new w2({type:"readonly",innerType:e})}var I2=C("ZodTemplateLiteral",(e,t)=>{W1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o)});function J9(e,t){return new I2({type:"template_literal",parts:e,...O.normalizeParams(t)})}var _2=C("ZodLazy",(e,t)=>{fi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function S2(e){return new _2({type:"lazy",getter:e})}var L2=C("ZodPromise",(e,t)=>{F1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function X9(e){return new L2({type:"promise",innerType:e})}var P2=C("ZodFunction",(e,t)=>{V1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o)});function Q9(e){return new P2({type:"function",input:Array.isArray(e?.input)?r2(e?.input):e?.input??Mi(ir()),output:e?.output??ir()})}var Ei=C("ZodCustom",(e,t)=>{H1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o)});function e4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function t4(e,t){return Tp(Ei,e??(()=>!0),t)}function M2(e,t={}){return $p(Ei,e,t)}function R2(e,t){return Ap(e,t)}var n4=Dp,r4=Ep,T2=C("ZodInstanceOf",(e,t)=>{Ei.init(e,t)},{properties(e,t){return this.check(Br(e,t))}});function o4(e,t={}){let n=new T2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...O.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var i4=(...e)=>Np({Codec:Di,Boolean:io,String:ro},...e);function s4(e){let t=S2(()=>ao([_i(e),Wf(),Vf(),Uf(),Mi(t),o2(_i(),t)]));return t}function a4(e,t){return new v2({type:"pipe",in:Gc(e),out:t})}var RI={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function TI(e){ye({customError:e})}function $I(){return ye().customError}var $2;$2||($2={});var Ni={};St(Ni,{ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,date:()=>DI,datetime:()=>AI,duration:()=>NI,time:()=>EI});function AI(e){return yi(Mn,e)}function DI(e){return bi(Rn,e)}function EI(e){return vi(Tn,e)}function NI(e){return wi($n,e)}var D={...co,...wc,iso:Ni},OI=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function zI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function c4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function ZI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function jI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let o=n[1]===void 0?void 0:ZI(n[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function WI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&r.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&r.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let s of i){let a=t.keySchema.safeParse(s);a.success||r.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function A2(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let r=String(e);return`${n[0]}${r.length}:${r}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let s of e){let a=A2(s,t);if(a===null)return null;i.push(a)}return`a${i.length}:[${i.join(",")}]`}let r=Object.keys(e).sort(),o=[];for(let i of r){let s=A2(e[i],t);if(s===null)return null;o.push(`${i.length}:${i}=${s}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var VI=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),FI=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Oi(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Oi):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>VI.has(t)?Oi(n):!FI.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Oi))}function u4(e){return e===1?"element":"elements"}function HI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let s=0;s<o.length;s++){let a=A2(o[s],new Set);if(a===null)continue;let c=i.get(a);if(c===void 0){i.set(a,s);continue}r.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:o,path:[s],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of o)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<i&&r.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${u4(i)}; found ${a}`,input:o,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&r.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${u4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function l4(e,t){if(e!==!1)return e===void 0||e===!0?D.any():nt(e,t)}var BI=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function d4(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return D.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=jI(o,t),s=nt(i,t);return t.refs.set(o,s),t.processing.delete(o),s}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return D.null();if(o.length===0)return D.never();if(o.length===1)return D.literal(o[0]);if(o.every(s=>typeof s=="string"))return D.enum(o);let i=o.map(s=>D.literal(s));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return d4(s,t)});return o.length===0?D.never():o.length===1?o[0]:D.union(o)}if(!n)return D.any();let r;switch(n){case"string":{let o=D.string();if(e.format){let i=e.format;i==="email"?o=o.check(D.email()):i==="uri"||i==="uri-reference"?o=o.check(D.url()):i==="uuid"||i==="guid"?o=o.check(D.uuid()):i==="date-time"?o=o.check(D.iso.datetime({offset:!0})):i==="date"?o=o.check(D.iso.date()):i==="time"?o=o.check(D.regex(BI)):i==="duration"?o=o.check(D.iso.duration()):i==="hostname"?o=o.check(D.hostname()):i==="ipv4"?o=o.check(D.ipv4()):i==="ipv6"?o=o.check(D.ipv6()):i==="mac"?o=o.check(D.mac()):i==="cidr"?o=o.check(D.cidrv4()):i==="cidr-v6"?o=o.check(D.cidrv6()):i==="base64"?o=o.check(D.base64()):i==="base64url"?o=o.check(D.base64url()):i==="e164"?o=o.check(D.e164()):i==="credit_card"?o=o.check(D.creditCard()):i==="iban"?o=o.check(D.iban()):i==="jwt"?o=o.check(D.jwt()):i==="emoji"?o=o.check(D.emoji()):i==="nanoid"?o=o.check(D.nanoid()):i==="cuid"?o=o.check(D.cuid()):i==="cuid2"?o=o.check(D.cuid2()):i==="ulid"?o=o.check(D.ulid()):i==="xid"?o=o.check(D.xid()):i==="ksuid"&&(o=o.check(D.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=D.boolean();break}case"null":{r=D.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?nt(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(i)){let f=nt(m,t);We(o,d,s.has(d)?f:f.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),f=[];for(let g of m){let k=nt(d[g],t),I=D.string().regex(new RegExp(g));f.push(D.looseRecord(I,k))}let h=[];if(Object.keys(o).length>0&&h.push(D.object(o).passthrough()),h.push(...f),h.length===0)r=D.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=D.intersection(h[0],h[1]);for(let k=2;k<h.length;k++)g=D.intersection(g,h[k]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),k=m.map(y=>new RegExp(y)),I=r;r=r.check(y=>{if(!kt(y.value))return;let b=[];for(let $ of Object.keys(y.value))g.includes($)||k.some(v=>v.test($))||b.push($);b.length&&y.issues.push({code:"unrecognized_keys",keys:b,input:y.value,inst:I})})}}else{let d=D.object(o);e.additionalProperties===!1?r=d.strict():a?r=d.catchall(a):r=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=nt(m,t)}r=WI(r,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>nt(d,t)),c=c4(a,s),u=Array.isArray(i)?void 0:l4(i,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(d=>nt(d,t)),c=c4(a,s),u=l4(e.additionalItems,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let s=nt(i,t),a=D.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=D.array(D.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=HI(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?nt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return r}function nt(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n=d4(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>nt(u,t)),c=D.union(a);n=r?D.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>nt(u,t)),c=D.xor(a);n=r?D.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:D.any();else{let a=r?n:nt(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=D.intersection(a,nt(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=D.nullable(n)),e.readOnly===!0&&(n=D.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(o[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(o[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Oi(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(o[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Oi(e.contains)&&(o.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(o[a]=e[a])}for(let a of Object.keys(e))OI.has(a)||We(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function p4(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=zI(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Ve};return nt(n,i)}var f4=Symbol("z.visit/resolving");function zi(e,t){let n=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},r=new Map;function o(s){let a=r.get(s);if(a===f4)return new fi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,f4);let c=i(s),u=n(c,c!==s);return r.set(s,u),u}function i(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,m={};for(let h of l){let g=o(u[h]);g!==u[h]&&(d=!0),m[h]=g}let f=a.catchall;return a.catchall&&(f=o(a.catchall),f!==a.catchall&&(d=!0)),d?ce(s,{...a,shape:m,catchall:f}):s}case"array":{let u=o(a.element);return u===a.element?s:ce(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let f of u){let h=o(f);h!==f&&(l=!0),d.push(h)}let m=a.rest;return a.rest&&(m=o(a.rest),m!==a.rest&&(l=!0)),l?ce(s,{...a,items:d,rest:m}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:ce(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:ce(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let m of u){let f=o(m);f!==m&&(l=!0),d.push(f)}return l?ce(s,{...a,options:d}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:ce(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=o(a.innerType);return u===a.innerType?s:ce(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:ce(s,{...a,in:u,out:l})}case"function":{let u=o(a.input),l=o(a.output);return u===a.input&&l===a.output?s:ce(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return ce(s,{...d,getter:()=>o(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return o(e)}function m4(e){return zi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:ao(n.options)}})}function UI(e,t){if(!t?.length)return e;let n=e._zod.def;return ce(e,Mt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function h4(e){return UI(e.out,e.checks)}function GI(e){return e.in._zod.traits.has("$ZodTransform")?h4(e):e.in}function g4(e){return zi(e,{pipe:t=>GI(t._zod.def),default:(t,n)=>n?sr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function C4(e){return zi(e,{pipe:t=>h4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var D2={};St(D2,{bigint:()=>JI,boolean:()=>YI,date:()=>XI,number:()=>qI,string:()=>KI});function KI(e){return tp(ro,e)}function qI(e){return ap(oo,e)}function YI(e){return mp(io,e)}function JI(e){return gp(so,e)}function XI(e){return Lp(Pi,e)}var E2=1e4,k4=ie.string().min(1).max(1024),nn=ie.array(k4).max(E2),QI=ie.enum(["project","chronological","machine"]),e_=ie.enum(["updated","created","alpha","none"]),t_=ie.enum(["default","ascending","descending"]),n_=ie.enum(["active","archived"]),r_=ie.enum(["muted","colour","hidden"]),o_=ie.enum(["blocked","everything"]),i_=ie.array(ie.union([ie.literal("threads"),k4.regex(/^(project|section|machine):\S+$/)])).max(E2).transform(e=>[...new Set(e)]);function Ie(e,t,n){return{schema:e,defaultValue:t,description:n}}var Yc={threadLifecycles:Ie(ie.array(n_).min(1).max(2).refine(e=>new Set(e).size===e.length,"Lifecycles must be unique"),["active"],'Threads shown: ["active"], ["archived"] or both. At least one is required.'),organizationMode:Ie(QI,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:Ie(ie.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:Ie(e_,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:Ie(t_,"default","Sort direction: ascending or descending. A saved default reads as the field's own direction (descending for dates, ascending for alpha)."),sectionOrder:Ie(nn,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:Ie(nn,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:Ie(nn,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:Ie(i_,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:Ie(ie.array(ie.enum(["pinned","threads"])).max(E2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:Ie(nn,[],"Project ids whose group is collapsed."),collapsedThreadSections:Ie(nn,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:Ie(nn,[],"Machine ids whose group is collapsed."),collapsedEnvironments:Ie(nn,[],"Environment ids whose folder row is collapsed."),foldOlder:Ie(ie.boolean(),!0,"Collapse older threads: whether each group's quiet roots past its 5 newest fold behind an N older row."),workingFirst:Ie(ie.boolean(),!1,"Working threads first: whether working threads sort first under Updated, as bb's list does."),expandedOlder:Ie(nn,[],"Group ids and parent thread ids whose N older fold the user opened."),expandedChildren:Ie(nn,[],"Parent thread ids whose chip the user opened."),showPullRequests:Ie(ie.boolean(),!0,"Whether rows show a pull request badge."),childAttention:Ie(o_,"blocked","Needs you counts every child: blocked counts a child thread that waits on you, is offline or has an orphaned failure; everything also counts every failed or finished-unread child. The same children stay out of a family's older fold, as running ones do."),harnessIcon:Ie(r_,"muted","How rows draw the harness logo: muted (monochrome), colour (the provider's tint) or hidden.")},y4=Object.keys(Yc);function N2(e){return Object.hasOwn(Yc,e)}function s_(e){return structuredClone(Yc[e].defaultValue)}function a_(){return Object.fromEntries(y4.map(e=>[e,s_(e)]))}function O2(e,t){let n=Yc[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function z2(e){let t=a_();if(e===null||typeof e!="object")return t;let n=e;for(let r of y4){if(!(r in n))continue;let o=O2(r,n[r]);o.success&&(t[r]=o.value)}return t}var c_=ie.object({density:ie.enum(["compact","comfortable"]).catch("compact")}),Z2="bb.thread-glance.client.v1",Zi="bb.thread-glance.preferences.v1",b4="bb.thread-list.preferences.v1";function v4(e){let t=c_.safeParse(e??{});return t.success?t.data:{density:"compact"}}function ji(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function uo(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}function w4(){let[e,t]=E(()=>v4(ji(Z2))),n=Z(r=>{t(o=>{let i={...o,...r};return uo(Z2,i),i})},[]);return[e,n]}function x4(e,t){let n=A(null),r=A(null),o=A(void 0);return e!==null&&(e!==r.current||t!==o.current)&&(n.current=I5(n.current,t===null?void 0:e.familyOf.get(t)),r.current=e,o.current=t),n.current}function I4(e){let[t,n]=E(()=>Date.now());return z(()=>{let r=setInterval(()=>n(Date.now()),6e4);return()=>clearInterval(r)},[]),z(()=>{if(e===null)return;let r=e-Date.now();if(r<=0||r>2**31-1)return;let o=setTimeout(()=>n(Date.now()),r+50);return()=>clearTimeout(o)},[e]),t}var Jc=ie.record(ie.string(),ie.number()),aT=ie.object({startedAt:Jc,finishedAt:Jc,pendingAt:Jc,seenAt:Jc}),u_=140,j2=ie.object({kind:ie.enum(["question","approval","plan","input","failed","done"]),text:ie.string().max(u_),at:ie.number()}),_4=ie.object({pending:j2.optional(),failed:j2.optional(),done:j2.optional()}),An={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var l_=150;function S4(){let e=hn(),[t,n]=E(()=>z2(ji(Zi))),[r,o]=E(!1),i=A(new Map),s=A(null),a=mn(),c=A(!1),u=Z(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),f=z2(m);for(let[h,g]of i.current)f[h]=g;n(f),uo(Zi,f)}finally{o(!0)}},[e]);z(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:ji(b4)})}catch{}m||await u().catch(()=>{})})(),()=>{m=!0}},[e,u]),z(()=>{a==="connected"&&(c.current&&u().catch(()=>{}),c.current=!0)},[a,u]),fn(An.preferences,m=>{let f=m;if(!N2(f?.key)||i.current.has(f.key))return;let h=O2(f.key,f.value);h.success&&n(g=>{let k={...g,[f.key]:h.value};return uo(Zi,k),k})});let l=Z(()=>{let m=[...i.current];i.current.clear();for(let[f,h]of m)e.call("setPreference",{key:f,value:h}).catch(g=>{it.error(`Couldn't save the ${f} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);z(()=>()=>{s.current!==null&&clearTimeout(s.current),l()},[l]);let d=Z(m=>{n(f=>{let h={...f,...m};return uo(Zi,h),h});for(let[f,h]of Object.entries(m))N2(f)&&i.current.set(f,h);s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,l()},l_)},[l]);return{prefs:t,hydrated:r,update:d}}var W2={};function L4(){let e=hn(),[t,n]=E(W2),r=mn(),o=A(!1),[i,s]=E(0);return z(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:W2)},()=>{}),()=>{a=!0}},[e,i]),z(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),fn(An.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:W2)}),t}var P4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},d_=new Set(Object.keys(P4));function M4(){let e=hn(),[t,n]=E(P4),r=mn(),o=A(!1),i=Z(()=>{e.call("listStamps",null).then(u=>n(u.stamps),()=>{})},[e]);z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]);let s=Z(u=>{!d_.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let d={...l[u.kind]};for(let m of u.threadIds)u.value===null?delete d[m]:d[m]=u.value;return{...l,[u.kind]:d}})},[]);fn(An.stamps,u=>s(u));let a=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:Date.now()}),e.call("markSeen",{threadIds:u}).catch(()=>{}))},[s,e]),c=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:null}),e.call("clearSeen",{threadIds:u}).catch(()=>{}))},[s,e]);return{stamps:t,markSeen:a,clearSeen:c}}function V2(e,t,n){let r=new Set,o=e;for(;o!==null&&!r.has(o);){if(o===t)return!0;r.add(o),o=n(o)}return!1}function R4(e,t,n){if(t==="pinned")return e.pinned?{type:"unchanged"}:{type:"pin",threadId:e.threadId};if(e.pinned)return{type:"unpin",threadId:e.threadId};if(n.mode==="chronological"&&(t==="threads"||t.startsWith("section:"))){let r=t==="threads"?null:t.slice(8);return r===e.sectionId&&e.parentThreadId===null?{type:"unchanged"}:{type:"move",threadId:e.threadId,sectionId:r,detach:e.parentThreadId!==null}}return e.parentThreadId!==null?{type:"detach",threadId:e.threadId}:{type:"unchanged"}}function F2(e,t,n){if(t.kind==="group")return R4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return V2(t.threadId,e.threadId,n.parentOf)?{type:"blocked"}:e.parentThreadId===t.threadId?{type:"unchanged"}:{type:"nest",threadId:e.threadId,parentThreadId:t.threadId,unpinFirst:e.pinned};if(t.inPinned&&n.pinnedOrder.includes(t.threadId)){if(!e.pinned)return{type:"pin",threadId:e.threadId};let r=n.pinnedOrder.filter(u=>u!==e.threadId),o=r.indexOf(t.threadId),i=t.zone==="before"?o:o+1,s=r[i-1]??null,a=r[i]??null,c=n.pinnedOrder.indexOf(e.threadId);return(n.pinnedOrder[c-1]??null)===s&&(n.pinnedOrder[c+1]??null)===a?{type:"unchanged"}:{type:"reorder-pinned",threadId:e.threadId,previousThreadId:s,nextThreadId:a}}return R4(e,n.groupOfThread(t.threadId),n)}var p_=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],T4={question:{icon:"CircleQuestion",label:"Asks a question"},approval:{icon:"SecurityCheck",label:"Needs approval"},plan:{icon:"ListTodo",label:"Plan to review"},input:{icon:"MessageQuestion",label:"Needs your input"}},$4=new Set(["pending","starting","active","stopping","idle","error"]),H2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),f_=new Set([...$4,...H2,"waiting-for-host"]);function lr(e){return $4.has(e.status)?e.status:"idle"}function B2(e){return f_.has(e.runtimeStatus)?e.runtimeStatus:lr(e)}function Xc(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function m_(e){return H2.has(B2(e))}function h_(e){return B2(e)==="waiting-for-host"}function A4(e,t){let n=lr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:Wi(e,t)}function Wi(e,t){if(e.parentThreadId===null||lr(e)!=="idle"||e.id===t.activeThreadId)return!1;let n=t.finishedAt[e.id];return n===void 0?!1:n>Math.max(e.lastReadAt??0,t.seenAt[e.id]??0)}var g_=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function _e(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function C_(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function D4(e,t){let n=lr(e),r=B2(e),o=Xc(e),i={sendAt:null};if(e.hasPendingInteraction){let s=T4[t.needsKind??"input"]??T4.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"waits-on-you",label:s.label,glyph:_e(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:_e("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:_e("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:_e("CloudOff","attention"),...i};if(H2.has(r)){let s=C_(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:_e("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:_e("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:_e("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:_e("Loading","working",!0),...i}}for(let[s,a,c]of g_)if(e.activity[s]>0)return{kind:"background",label:c,glyph:_e(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:_e("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:_e("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:_e("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:_e("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:_e(null,"none"),...i}}function E4(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function N4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),lr(e)==="error"&&t&&n.add("unread-failed"),Xc(e)==="failed"&&n.add("queue-failed"),h_(e)&&n.add("offline"),m_(e)&&n.add("working"),t&&n.add("unread"),n}function O4(e){let t=new Set;return e.has("waits-on-you")&&t.add("waits-on-you"),e.has("unread-failed")&&t.add("unread-failed"),t}function U2(e){return p_.find(t=>e.has(t))??null}function G2(e){switch(e){case"waits-on-you":return"attention";case"unread-failed":case"queue-failed":return"destructive";case"working":return"working";default:return"neutral"}}var Qc={"waits-on-you":{..._e("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{..._e("CircleX","destructive"),label:"failed"},"queue-failed":{..._e("AlertTriangle","destructive"),label:"queued message failed"},offline:{..._e("CloudOff","attention"),label:"machine offline"},working:{..._e("Loading","working",!0),label:"working"},unread:{..._e("dot","none"),label:"unread"}};function Vi(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function z4(e,t){let n=t.thread.createdAt-e.thread.createdAt;return n!==0?n:e.thread.id<t.thread.id?-1:e.thread.id>t.thread.id?1:0}function k_(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function y_(e,t){let n=t.familyAttention-e.familyAttention;return n!==0?n:z4(e,t)}function rn(e){return e==="none"?"updated":e}function eu(e){return rn(e)==="alpha"?"ascending":"descending"}function K2(e,t){return t==="default"?eu(e):t}function q2(e){let t=rn(e.field),n=K2(t,e.direction)===eu(t)?1:-1,r=t==="alpha"?k_:t==="created"?z4:y_;return(o,i)=>{if(t==="updated"&&e.workingFirst){let s=o.thread.status==="active",a=i.thread.status==="active";if(s!==a)return s?-1:1}return n*r(o,i)}}function Z4(e,t){if(e.pinSortKey!==null&&t.pinSortKey!==null&&e.pinSortKey!==t.pinSortKey)return e.pinSortKey<t.pinSortKey?-1:1;let n=(t.pinnedAt??0)-(e.pinnedAt??0);if(n!==0)return n;let r=t.createdAt-e.createdAt;return r!==0?r:e.id<t.id?-1:e.id>t.id?1:0}function j4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var b_={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function Y2(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function W4(e,t){if(e.hasPendingInteraction){let n=Y2(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:b_[n],text:r,tone:"attention"}}if(lr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return Xc(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function V4(e){return e?.done??null}var v_=new Set(["working","background"]);function F4(e){return e.pinnedAt!==null||e.isPinned}function w_(e,t){let n=new Set([e.id]),r=e.parentThreadId,o=null,i=!1;for(;r!==null;){if(n.has(r))return null;n.add(r);let s=t.get(r);if(s===void 0)break;s.isHidden||(o??=s.id,F4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&F4(e)&&!i?null:o}function H4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=A4(l,e),m=D4(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:Y2(e.notes?.[l.id])}),f=N4(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?O4(f):f,needsYou:new Set,quiet:Vi(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:w_(l,t),note:W4(l,e.notes?.[l.id])})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.needsYou=w5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&v5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.quietIgnoringOpen=d===void 0||r==="everything"?Vi(l.state,l.unread,!1):l.thread.isArchived||!v_.has(l.state.kind)&&l.needsYou.size===0}let o=new Map,i=[];for(let l of n.values()){if(l.parentId===null){l.thread.isHidden||i.push(l);continue}let d=o.get(l.parentId)??[];d.push(l.thread.id),o.set(l.parentId,d)}for(let l of o.values())l.sort((d,m)=>j4(t.get(d),t.get(m)));let s=new Map,a=(l,d)=>{let m=s.get(l);if(m!==void 0)return m;let f=[],h=new Set,g=0,k=!0;d.add(l);for(let y of o.get(l)??[]){if(d.has(y))continue;let b=n.get(y),$=a(y,d);if(f.push(b,...$.descendants),!b.thread.isArchived){for(let v of b.needsYou)h.add(v);b.flags.has("working")&&h.add("working")}for(let v of $.flags)h.add(v);(b.thread.isHidden?b.needsYou.size>0:!b.quietIgnoringOpen)&&(k=!1),b.thread.isHidden||(g+=1),g+=$.visibleCount,$.quietIgnoringOpen||(k=!1)}d.delete(l);let I={descendants:f,flags:h,visibleCount:g,quietIgnoringOpen:k};return s.set(l,I),I};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:d,flags:m,visibleCount:f}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,k=Vi(l.state,l.unread,!1),I=l.isActive,y=new Set;for(let v of d){if(!v.thread.isArchived)for(let R of v.needsYou)y.add(R);h=Math.max(h,v.thread.latestAttentionAt),v.isActive&&(I=!0),v.thread.isHidden?v.needsYou.size>0&&(g=k=!1):(v.quiet||(g=!1),Vi(v.state,v.unread,!1)||(k=!1))}let b=new Set(m);if(!l.thread.isArchived){for(let v of l.needsYou)b.add(v),y.add(v);l.flags.has("working")&&b.add("working")}let $={root:l,descendants:d,descendantFlags:m,flags:b,needsYouFlags:y,visibleDescendantCount:f,latestAttentionAt:h,quiet:g&&!I,quietIgnoringOpen:k,containsActive:I};c.push($),u.set(l.thread.id,$);for(let v of d)u.set(v.thread.id,$)}return{infos:n,children:o,families:c,familyOf:u,subtrees:s}}function lo(e,t,n=null){let r=[],o=new Set([e]),i=t.get(e)?.parentId??null;for(;i!==null&&i!==n&&!o.has(i);)r.push(i),o.add(i),i=t.get(i)?.parentId??null;return r}var $t="pinned",vt="threads";function x_(e){return e.pinnedAt!==null||e.isPinned}function B4(e){return e.find(t=>t.isPersonal)??null}function tu(e,t){if(x_(e)&&!e.isHidden)return $t;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?vt:`project:${n.id}`}case"chronological":return e.sectionId===null?vt:`section:${e.sectionId}`;case"machine":return e.host===null?vt:`machine:${e.host.id}`}}function U4(e,t){let n=B4(e.projects);switch(e.mode){case"project":return e.projects.filter(r=>!r.isPersonal).map(r=>({id:`project:${r.id}`,kind:"project",label:r.name,entityId:r.id,newThreadProjectId:r.id,newThreadSectionId:null}));case"chronological":{let r=new Set(e.sections.map(s=>s.id)),o=[...e.sections];t&&o.sort((s,a)=>s.name.localeCompare(a.name));let i=o.map(s=>({id:`section:${s.id}`,kind:"section",label:s.name,entityId:s.id,newThreadProjectId:n?.id??null,newThreadSectionId:s.id}));for(let s of e.threads)s.sectionId===null||r.has(s.sectionId)||(r.add(s.sectionId),i.push({id:`section:${s.sectionId}`,kind:"section",label:"Section",entityId:s.sectionId,newThreadProjectId:n?.id??null,newThreadSectionId:s.sectionId}));return i}case"machine":{let r=new Map;for(let o of e.threads)o.host!==null&&!r.has(o.host.id)&&r.set(o.host.id,o.host.name);return[...r].map(([o,i])=>({id:`machine:${o}`,kind:"machine",label:i||"Unknown machine",entityId:o,newThreadProjectId:null,newThreadSectionId:null}))}}}function J2(e,t){return e===$t?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:B4(t)?.id??null,newThreadSectionId:null}}var I_={project:"projects",chronological:"sections",machine:"machines"},Fi={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function G4(e,t,n){let r=I_[e],o=new Set(n),i=new Set(t),s=[],a=u=>{s.includes(u)||s.push(u)};for(let u of t)if(u===r)for(let l of n)i.has(l)||a(l);else(u===$t||u===vt||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((d,m)=>{o.has(d)&&(u=m)});let l=u>=0?u+1:s.includes(vt)?s.indexOf(vt):s.length;s.splice(l,0,...c)}return s.includes($t)||s.unshift($t),s.includes(vt)||s.push(vt),s}function X2(e,t,n,r){if(t===n)return[...e];let o=e.filter(s=>s!==t),i=o.indexOf(n);return i<0?[...e]:(o.splice(r==="before"?i:i+1,0,t),o)}function nu(e,t){switch(e.kind){case"pinned":case"threads":return t.collapsedSections.includes(e.kind);case"project":return t.collapsedProjects.includes(e.entityId);case"section":return t.collapsedThreadSections.includes(e.id);case"machine":return t.collapsedMachines.includes(e.entityId)}}function Q2(e,t){let n=(r,o)=>r.includes(o)?r.filter(i=>i!==o):[...r,o];switch(e.kind){case"pinned":case"threads":return{collapsedSections:n(t.collapsedSections,e.kind)};case"project":return{collapsedProjects:n(t.collapsedProjects,e.entityId)};case"section":return{collapsedThreadSections:n(t.collapsedThreadSections,e.id)};case"machine":return{collapsedMachines:n(t.collapsedMachines,e.entityId)}}}var N={archive:"Archive",unarchive:"ArchiveRestore",more:"MoreHorizontal",openInSplit:"Columns2",copy:"Copy",link:"ExternalLink",markRead:"MailOpen",markUnread:"Mail",pin:"Pin",unpin:"PinOff",moveToSection:"SectionMove",rename:"Edit",remove:"Trash2",details:"Info",crossGroup:"FolderExport",hidden:"EyeOff",show:"Eye",expand:"ChevronRight",collapse:"ChevronDown",moveUp:"ChevronUp",newThread:"Plus",newSection:"SectionAdd",settings:"Settings",customize:"SlidersHorizontal",check:"Check",pullRequest:"GitPullRequest",branch:"GitBranch",worktree:"FolderGit",machine:"Laptop",environmentFallback:"Zap",filter:"FilterHorizontal",drag:"DragDropVertical",move:"MoveTo",open:"ArrowUpRight"},ET=Object.values(N);function K4(e){let{thread:t}=e,n=t.archivedAt!==null||t.isArchived,r=t.pinnedAt!==null||t.isPinned,o=[];return o.push({action:"details",label:"Details",icon:N.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:N.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:N.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:N.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:N.markRead}:{action:"mark-unread",label:"Mark unread",icon:N.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:N.unpin}:{action:"pin",label:"Pin",icon:N.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:N.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:N.move}),o.push({action:"rename",label:"Rename",icon:N.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:N.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:N.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:N.remove,destructive:!0}),o}var q4=20;function Y4(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function J4(e){let t=e.displayName?.trim()||e.id,n=Y4(t),r=Y4(e.id),o=(n[0]??e.id)[0]??"?",i=[],s=a=>{if(a===void 0)return;let c=(o+a).toUpperCase();i.includes(c)||i.push(c)};s((n[0]??"")[1]);for(let a of n.slice(1))s(a[0]);for(let a of r)for(let c of a)s(c);for(let a of(n[0]??"").slice(2))s(a);return i.length===0&&i.push(o.toUpperCase()),i}function X4(e){let t=new Map,n=new Set;for(let r of e){let o=J4(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function Q4(e,t){return t.get(e)??J4({id:e})[0]}function Hi(e,t){return e.filter(n=>n!==t)}function e8(e,t){return n=>lo(n,e.infos).includes(t)}function t8(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:Hi(t.expandedChildren,r)},drop:e8(n,r)}:{patch:{expandedChildren:[...Hi(t.expandedChildren,r),r]},drop:null}}function n8(e,t,n,r){if(e.scope==="reveal")return{patch:{expandedChildren:[...Hi(t.expandedChildren,e.scopeId),e.scopeId]},drop:null};if(!e.expanded)return{patch:{expandedOlder:[...Hi(t.expandedOlder,e.scopeId),e.scopeId]},drop:null};let o={expandedOlder:Hi(t.expandedOlder,e.scopeId)};if(e.scope==="family")return{patch:o,drop:e8(r,e.scopeId)};let i=new Set;for(let a of r.families)a.quietIgnoringOpen&&i.add(a.root.thread.id);let s=new Set(n?.rootIds??[]);return{patch:o,drop:a=>{let c=r.familyOf.get(a);return c!==void 0&&i.has(c.root.thread.id)&&s.has(c.root.thread.id)}}}function r8(e,t,n){let r=new Set(e.rootIds),o=i=>{let s=n.familyOf.get(i);return s!==void 0&&r.has(s.root.thread.id)};return e.collapsed?{patch:nu(e.descriptor,t)?Q2(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:Q2(e.descriptor,t),drop:o}}function o8(e,t){let n=[],r=[];for(let o of e)for(let i of[o.root,...o.descendants])!i.unread||i.thread.isArchived||(n.push(i.thread.id),Wi(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}var em={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function i8(e){let t={...em};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.needsYou;o.has("waits-on-you")&&(t.waitsOnYou+=1),(o.has("unread-failed")||o.has("queue-failed"))&&(t.failed+=1),o.has("offline")&&(t.offline+=1),r.flags.has("working")&&(t.working+=1),o.has("unread")&&(t.unread+=1)}return t}function s8(e,t){return{waitsOnYou:e.waitsOnYou+t.waitsOnYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}function a8(e,t){return{waitsOnYou:e.waitsOnYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}function dr(e){return 8+e*12}function c8(e){return dr(e)+8}function tm(e){return e.map((t,n)=>{let r=e[n+1],o=[];for(let i=0;i<=t;i+=1){let s=r!==void 0&&r>i;i===t?o.push(s?"start":null):o.push(s?"full":"end")}return o})}function u8(e,t){let n=e>0;return{small:n,muted:n&&!t.unread&&!t.active}}var __=5,S_=3,d8="needs-you";function L_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function P_(e,t,n){let r=t.thread,o=n.thread;if(t===n)return null;switch(e.prefs.organizationMode){case"project":return r.projectId===o.projectId?null:`In project ${e.projectNames.get(r.projectId)??"another project"}`;case"chronological":return r.sectionId===o.sectionId?null:r.sectionId===null?"In Threads":`In section ${e.sectionNames.get(r.sectionId)??"another section"}`;case"machine":return(r.host?.id??null)===(o.host?.id??null)?null:r.host===null?"On no machine":`On machine ${r.host.name}`}}function ru(e,t,n,r){return{type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:L_(e,t.parentId),chip:r.chip,rails:[],hiddenBadge:t.thread.isHidden,crossGroupLabel:P_(e,t,n),homeGroupLabel:null,projectId:t.thread.projectId}}function M_(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.needsYou.size>0)}function nm(e,t){return e.forest.subtrees.get(t)}function R_(e,t,n){let r=t.thread.id,o=M_(e,r),i=h=>e.revealIds.has(h.thread.id)||e.revealPath.has(h.thread.id),s=(h,g,k)=>g>0?{type:"older",key:`older:${h}:${r}`,scopeId:r,scope:h,count:g,expanded:k,depth:n,rails:[]}:null;if(!e.expandedChildren.has(r)){let h=o.filter(i),g=o.filter(k=>!i(k)&&!k.thread.isHidden).length;return{shown:h,older:h.length>0?s("reveal",g,!1):null}}let a=h=>h.quietIgnoringOpen&&nm(e,h.thread.id).quietIgnoringOpen,c=new Set;for(let h of o)(h.thread.isHidden||!a(h))&&c.add(h.thread.id);let u=o.filter(h=>!c.has(h.thread.id)&&!h.thread.isHidden).sort((h,g)=>g.thread.createdAt-h.thread.createdAt).slice(0,S_);for(let h of u)c.add(h.thread.id);let l=e.expandedOlder.has(r),d=h=>c.has(h.thread.id)||i(h)||e.activePath.has(h.thread.id),m=o.filter(h=>!d(h)).length;return{shown:l?o:o.filter(d),older:s("family",m,l)}}function T_(e){let t=e.environment;return t===null?"Environment":t.name?t.name:t.branchName?t.branchName:t.path?t.path.split(/[\\/]/).filter(Boolean).pop()??"Environment":"Environment"}function p8(e,t,n){if(!e.prefs.environmentGrouping)return t.flatMap(s=>s.rows);let r=new Map;for(let s of t){let a=s.info.thread.environment;a?.isWorktree===!0&&a.id!==null&&r.set(a.id,(r.get(a.id)??0)+1)}let o=[],i=new Set;for(let s of t){let a=s.info.thread.environment,c=a?.isWorktree===!0?a.id:null;if(c===null||(r.get(c)??0)<2){o.push(...s.rows);continue}if(i.has(c))continue;i.add(c);let u=t.filter(m=>m.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),d=new Set;for(let m of u)for(let f of m.flags)d.add(f);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:T_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(m=>m.info.thread.id),collapsed:l,flag:l?U2(d):null,depth:n,rails:[]}),!l)for(let m of u)for(let f of m.rows)o.push({...f,depth:f.depth+1})}return o}function $_(e,t){let n=[];for(let r of t){let o=r.thread.providerId;if(!(r.thread.isHidden||o===e.thread.providerId||n.includes(o))&&(n.push(o),n.length===3))break}return n}function f8(e,t,n){let r=nm(e,t.thread.id);return r.visibleCount>0||r.descendants.some(i=>i.thread.isHidden&&i.needsYou.size>0)?{count:r.visibleCount,flag:U2(r.flags),expanded:n,providerIds:$_(t,r.descendants)}:null}function A_(e,t){let n=new Set([...t.needsYou,...nm(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function m8(e,t,n,r){let{shown:o,older:i}=R_(e,n,r),s=o.map(c=>({info:c,flags:A_(e,c),rows:[ru(e,c,t.root,{depth:r,nested:r>1,chip:f8(e,c,e.expandedChildren.has(c.thread.id))}),...m8(e,t,c,r+1)]})),a=p8(e,s,r);return i!==null&&a.push(i),a}function D_(e,t){let n=t.root,r=f8(e,n,e.expandedChildren.has(n.thread.id));return[ru(e,n,n,{depth:0,nested:!1,chip:r}),...m8(e,t,n,1)]}function E_(e,t){return{info:t.root,rows:D_(e,t),flags:t.flags}}function l8(e){let t=e.needsYouFlags;return t.has("waits-on-you")?0:t.has("unread-failed")||t.has("queue-failed")?1:t.has("offline")?2:t.has("unread")?3:4}function N_(e,t,n){let r=t.root,o=new Set([r.thread.id]);for(let c of t.descendants)if(!(!(!c.thread.isArchived&&c.needsYou.size>0)&&!c.isActive)){o.add(c.thread.id);for(let l of lo(c.thread.id,e.forest.infos,r.thread.id))o.add(l)}let i=[{...ru(e,r,r,{depth:0,nested:!1,chip:null}),homeGroupLabel:n}],s=(c,u)=>{for(let l of e.forest.children.get(c)??[])o.has(l)&&(i.push(ru(e,e.forest.infos.get(l),r,{depth:u,nested:u>1,chip:null})),s(l,u+1))};s(r.thread.id,1);let a=t.descendants.filter(c=>!c.thread.isHidden&&!o.has(c.thread.id)).length;return a>0&&i.push({type:"left-out",key:`left-out:${r.thread.id}`,scopeId:r.thread.id,count:a,depth:1,rails:[]}),i}function O_(e,t,n){if(t.length===0)return null;let r=q2({field:e.prefs.chronologicalSort,direction:"default",workingFirst:e.prefs.workingFirst}),o=[...t].sort((c,u)=>l8(c)-l8(u)||r({thread:c.root.thread,familyAttention:c.latestAttentionAt},{thread:u.root.thread,familyAttention:u.latestAttentionAt})),i={},s=o.flatMap(c=>{let u=n(c),l=N_(e,c,u.label);for(let d of l)d.type==="thread"&&(i[d.info.thread.id]=u.id);return l}),a=tm(s.map(c=>c.depth));return{familyCount:o.length,rows:s.map((c,u)=>({...c,rails:a[u]})),homeGroupIds:i}}function z_(e,t,n,r,o){let i=i8(n),s=nu(t,e.prefs),a=r.some(y=>e.targets.has(y.root.thread.id)||y.descendants.some(b=>e.targets.has(b.thread.id))),c=s&&!a,u=t.id===$t,l=[...r];u?l.sort((y,b)=>Z4(y.root.thread,b.root.thread)):l.sort((y,b)=>e.compare({thread:y.root.thread,familyAttention:y.latestAttentionAt},{thread:b.root.thread,familyAttention:b.latestAttentionAt}));let d=l,m=null;if(!u&&e.prefs.foldOlder){let y=l.filter(T=>T.quietIgnoringOpen&&!T.root.thread.isArchived),b=rn(e.prefs.chronologicalSort)==="created",$=T=>b?T.root.thread.createdAt:T.latestAttentionAt,v=new Set([...y].sort((T,H)=>$(H)-$(T)).slice(0,__)),R=y.filter(T=>!v.has(T)&&!T.containsActive);if(R.length>0){let T=e.expandedOlder.has(t.id)||R.some(Y=>e.targets.has(Y.root.thread.id)||Y.descendants.some(te=>e.targets.has(te.thread.id))),H=new Set(R);T||(d=l.filter(Y=>!H.has(Y))),m={type:"older",key:`older:group:${t.id}`,scopeId:t.id,scope:"group",count:R.length,expanded:T,depth:0,rails:[]}}}let h=d.map(y=>E_(e,y)),g=p8(e,h,0),k=tm(g.map(y=>y.depth)),I=g.map((y,b)=>({...y,rails:k[b]}));return m!==null&&I.push(m),{descriptor:t,counters:i,userCollapsed:s,collapsed:c,hidden:o,rows:I,rootIds:n.map(y=>y.root.thread.id)}}function h8(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[v,R]of e.targets)if(!(R!=="reveal"||!t.infos.has(v))){r.add(v);for(let T of lo(v,t.infos))o.add(T)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let v of lo(e.activeThreadId,t.infos))i.add(v)}let s={...e,compare:q2({field:n.chronologicalSort,direction:n.sortDirection,workingFirst:n.workingFirst}),expandedChildren:new Set(n.expandedChildren),expandedOlder:new Set(n.expandedOlder),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(v=>[v.id,v.name])),sectionNames:new Map(e.sections.map(v=>[v.id,v.name]))},a=new Map,c=new Map,u=[];for(let v of t.families){let R=tu(v.root.thread,{mode:n.organizationMode,projects:e.projects}),T=a.get(R)??[];T.push(v),a.set(R,T),c.set(v,R),cl(v,e.heldRootId)&&u.push(v)}let l=new Set(u),d=rn(n.chronologicalSort)==="alpha",m=U4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},d),f=new Map(m.map(v=>[v.id,v]));f.set($t,J2($t,e.projects)),f.set(vt,J2(vt,e.projects));let h=G4(n.organizationMode,n[Fi[n.organizationMode]],m.map(v=>v.id)),g=new Set(n.hiddenGroups),k=[],I=[],y=em;for(let v of h){let R=f.get(v);if(R===void 0)continue;let T=a.get(v)??[],H=T.filter(se=>!l.has(se));if(H.length===0&&(v===$t||v===vt&&n.organizationMode!=="chronological"))continue;let Y=v!==$t&&g.has(v),te=z_(s,R,T,H,Y);Y?(I.push(te),y=s8(y,te.counters)):k.push(te)}let b=new Set;for(let v of e.threads)v.host!==null&&b.add(v.host.id);return{needsYou:O_(s,u,v=>f.get(c.get(v))),groups:k,more:I,moreCounters:y,order:h,multiHost:b.size>1}}function g8(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Z_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function ou(e,t){if(Object.is(e,t))return e;if(Array.isArray(e)&&Array.isArray(t)){let n=e.length===t.length,r=t.map((o,i)=>{let s=i<e.length?ou(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return Z_(e,t)?e:t;if(g8(e)&&g8(t)){let n=Object.keys(t),r=n.length===Object.keys(e).length,o={};for(let i of n){i in e||(r=!1);let s=i in e?ou(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function k8(e,t){let n=new Map(e.map(i=>[i.key,i])),r=e.length===t.length,o=t.map((i,s)=>{let a=n.get(i.key),c=a===void 0?i:ou(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function rm(e,t,n){let r={...t},o=e,i=Object.keys(r).length===Object.keys(o).length;for(let s of Object.keys(r))s in o||(i=!1),r[s]=s in n?n[s]:ou(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function j_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function C8(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:rm(i,o,{rows:k8(i.rows,o.rows)})});return j_(e,r)?e:r}function W_(e,t){return e===null||t===null?t:rm(e,t,{rows:k8(e.rows,t.rows)})}function y8(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return rm(e,t,{needsYou:W_(e.needsYou,t.needsYou),groups:C8(e.groups,n,t.groups),more:C8(e.more,n,t.more)})}var iu=we({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},familyOf:()=>{}});var om=globalThis.__bbPluginRuntime;if(om==null||om.radixAlertDialog==null)throw new Error('Cannot load "@radix-ui/react-alert-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var su=om.radixAlertDialog,r$="default"in su?su.default:su,{Action:im,AlertDialog:o$,AlertDialogAction:i$,AlertDialogCancel:s$,AlertDialogContent:a$,AlertDialogDescription:c$,AlertDialogOverlay:u$,AlertDialogPortal:l$,AlertDialogTitle:d$,AlertDialogTrigger:p$,Cancel:sm,Content:am,Description:cm,Overlay:um,Portal:b8,Root:v8,Title:lm,Trigger:V_,createAlertDialogScope:f$}=su;var w8=v8;var H_=b8,x8=F(({className:e,...t},n)=>p(um,{className:S("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n,...Ee()}));x8.displayName=um.displayName;var dm=F(({className:e,...t},n)=>x(H_,{children:[p(x8,{}),p(am,{ref:n,...Ee(),className:S("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));dm.displayName=am.displayName;var pm=({className:e,...t})=>p("div",{className:S("flex flex-col space-y-2 text-center sm:text-left",e),...t});pm.displayName="AlertDialogHeader";var fm=({className:e,...t})=>p("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fm.displayName="AlertDialogFooter";var mm=F(({className:e,...t},n)=>p(lm,{ref:n,className:S("text-lg font-semibold",e),...t}));mm.displayName=lm.displayName;var hm=F(({className:e,...t},n)=>p(cm,{ref:n,className:S("text-sm text-muted-foreground",e),...t}));hm.displayName=cm.displayName;var gm=F(({className:e,...t},n)=>p(im,{ref:n,className:S(Es(),e),...t}));gm.displayName=im.displayName;var Cm=F(({className:e,...t},n)=>p(sm,{ref:n,className:S(Es({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Cm.displayName=sm.displayName;var km=globalThis.__bbPluginRuntime;if(km==null||km.radixDialog==null)throw new Error('Cannot load "@radix-ui/react-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var au=km.radixDialog,y$="default"in au?au.default:au,{Close:ym,Content:I8,Description:bm,Dialog:b$,DialogClose:v$,DialogContent:w$,DialogDescription:x$,DialogOverlay:I$,DialogPortal:_$,DialogTitle:S$,DialogTrigger:L$,Overlay:vm,Portal:_8,Root:S8,Title:L8,Trigger:P8,WarningProvider:P$,createDialogScope:M$}=au;var U_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Bi=F(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:s=!1,icon:a,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:l=!1,...d},m)=>{let f=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=f!==void 0?{strokeWidth:f,stroke:"currentColor"}:{},g={ref:m,...U_,width:t,height:t,color:c||e,className:o,...h,...d},I=[...s&&i?i:a].sort(([,y],[,b])=>{let $=y.opacity!==void 0;return b.opacity!==void 0?1:$?-1:0}).map(([y,b])=>{let $=b.opacity!==void 0,v=$&&!l?b.opacity:void 0,R=u?{...b.stroke!==void 0?{stroke:$?u:c||e}:{fill:$?u:c||e}}:{};return So(y,{...b,...h,...R,opacity:v,key:b.key})});return So("svg",g,I)});Bi.displayName="HugeiconsIcon";var M8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var R8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var T8=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 17L12 10.5M9 14.5C9.58984 15.1068 11.1597 17.5 12 17.5C12.8403 17.5 14.4102 15.1068 15 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var $8=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var A8=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var D8=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var E8=[["path",{d:"M13 7H11C8.19108 7 6.78661 7 5.77772 7.67412C5.34096 7.96596 4.96596 8.34096 4.67412 8.77772C4 9.78661 4 11.1911 4 14C4 16.8089 4 18.2134 4.67412 19.2223C4.96596 19.659 5.34096 20.034 5.77772 20.3259C6.78661 21 8.19108 21 11 21H13C15.8089 21 17.2134 21 18.2223 20.3259C18.659 20.034 19.034 19.659 19.3259 19.2223C20 18.2134 20 16.8089 20 14C20 11.1911 20 9.78661 19.3259 8.77772C19.034 8.34096 18.659 7.96596 18.2223 7.67412C17.2134 7 15.8089 7 13 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 14H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M15 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M12 7C12 5.11438 12 4.17157 11.4142 3.58579C10.8284 3 9.88562 3 8 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]];var wm=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 12H8.5M12 8.5V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var N8=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1257 12H12.0007M8.125 12H8M16.125 12H16M12.2507 12C12.2507 12.1381 12.1388 12.25 12.0007 12.25C11.8627 12.25 11.7507 12.1381 11.7507 12C11.7507 11.8619 11.8627 11.75 12.0007 11.75C12.1388 11.75 12.2507 11.8619 12.2507 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var O8=[["path",{d:"M3.01309 4.99084C2.89323 6.05084 3.55249 8.42285 6.48923 8.42285",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5951 8.38081C18.8357 8.57881 21.1132 7.49881 20.9957 5.00281",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.9928 20.9989C21.0528 19.9429 20.1777 17.5549 17.599 17.4229",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.45163 17.4708C5.65013 17.2308 3.01306 18.3348 3.01306 20.9988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9.3299 6.11884C9.35388 5.09884 9.84533 2.99884 12.0029 2.99884C13.9208 2.99884 14.5861 4.61884 14.676 6.11884M6.26131 9.41884C6.38118 8.63884 7.29216 6.81484 9.36586 6.63484C11.4635 6.55564 14.3403 6.58684 14.8797 6.67084C15.5869 6.73377 17.2951 7.43884 17.7506 9.41884C17.9124 10.4388 17.8285 11.8788 17.8524 12.7188C17.8165 13.5588 17.9207 15.2623 17.7565 16.1388C17.6367 17.0988 16.9894 18.4668 16.1024 19.3068C14.7838 20.7228 11.1639 22.2108 8.03534 19.4508C6.41713 17.8908 6.30925 16.3788 6.18939 15.7788C6.15725 15.4571 6.15875 13.8763 6.16541 12.3588C6.14144 11.046 6.17235 9.78063 6.26131 9.41884Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M3.01306 12.8988H5.9498",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M20.9929 12.8988L18.1161 12.8988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M12.0033 16.4988L12.0033 20.2788",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var cu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var z8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Z8=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var j8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var W8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var xm=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var V8=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var F8=[["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C11.3151 2 10.6462 2.06886 10 2.20004M21.8 10C21.9311 10.6462 22 11.3151 22 12C22 12.6849 21.9311 13.3538 21.8 14M14 21.8C13.3538 21.9311 12.6849 22 12 22C11.3151 22 10.6462 21.9311 10 21.8M2.20004 14C2.06886 13.3538 2 12.6849 2 12C2 11.3151 2.06886 10.6462 2.20004 10M17.5 3.64702C18.6332 4.39469 19.6053 5.36678 20.353 6.5M20.353 17.5C19.6053 18.6332 18.6332 19.6053 17.5 20.353M6.5 20.353C5.36678 19.6053 4.39469 18.6332 3.64702 17.5M3.64702 6.5C4.39469 5.36678 5.36678 4.39469 6.5 3.64702",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var H8=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]];var B8=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var U8=[["path",{d:"M14.0737 3.88545C14.8189 3.07808 15.1915 2.6744 15.5874 2.43893C16.5427 1.87076 17.7191 1.85309 18.6904 2.39232C19.0929 2.6158 19.4769 3.00812 20.245 3.79276C21.0131 4.5774 21.3972 4.96972 21.6159 5.38093C22.1438 6.37312 22.1265 7.57479 21.5703 8.5507C21.3398 8.95516 20.9446 9.33578 20.1543 10.097L10.7506 19.1543C9.25288 20.5969 8.504 21.3182 7.56806 21.6837C6.63212 22.0493 5.6032 22.0224 3.54536 21.9686L3.26538 21.9613C2.63891 21.9449 2.32567 21.9367 2.14359 21.73C1.9615 21.5234 1.98636 21.2043 2.03608 20.5662L2.06308 20.2197C2.20301 18.4235 2.27297 17.5255 2.62371 16.7182C2.97444 15.9109 3.57944 15.2555 4.78943 13.9445L14.0737 3.88545Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4L20 11",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 22L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var G8=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]];var K8=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var q8=[["path",{d:"M19 21C19.6068 20.4102 22 18.8403 22 18C22 17.1597 19.6068 15.5898 19 15M21 18H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12V13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]];var Y8=[["path",{d:"M8 6.50116H16.75C18.8567 6.50116 19.91 6.50116 20.6667 7.0069C20.9943 7.22584 21.2755 7.50717 21.4944 7.83484C22 8.59173 22 9.64538 22 11.7527C22 12.0122 22 12.2621 21.9997 12.5029M12 6.50116L11.3666 5.23392C10.8418 4.18406 10.3622 3.1273 9.19926 2.69106C8.6899 2.5 8.10802 2.5 6.94427 2.5C5.1278 2.5 4.21956 2.5 3.53806 2.88043C3.05227 3.15161 2.65142 3.55257 2.38032 4.03851C2 4.72021 2 5.62871 2 7.44571V10.5023C2 15.2177 2 17.5754 3.46447 19.0403C4.70529 20.2815 6.58687 20.4711 10 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"14",cy:"12.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"20",cy:"18.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 18.5C15.7909 18.5 14 16.7091 14 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 14.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];Im();var J8=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]];var X8=[["path",{d:"M8.00164 6.50013H16.754C18.8613 6.50013 19.9149 6.50013 20.6718 7.00574C20.9995 7.22462 21.2808 7.50588 21.4997 7.83346C21.8937 8.42301 21.9808 9.19265 22 10.5003M12.0027 6.50013L11.3691 5.23321C10.8442 4.18363 10.3645 3.12714 9.20122 2.69101C8.69172 2.5 8.10969 2.5 6.94562 2.5C5.12865 2.5 4.22017 2.5 3.53848 2.88033C3.05255 3.15144 2.6516 3.5523 2.38042 4.03811C2 4.71963 2 5.6279 2 7.44443V10.5003C2 15.2145 2 17.5716 3.46487 19.0361C4.82227 20.3931 6.94628 20.4927 11.0025 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.4649 15C20.7733 13.8044 19.4806 13 18 13C16.4726 13 15.1451 13.8561 14.4713 15.1147M14.5351 19C15.2267 20.1956 16.5194 21 18 21C19.5227 21 20.8467 20.1492 21.5224 18.897M17 15.5H16C15.0572 15.5 14.5858 15.5 14.2929 15.2071C14 14.9142 14 14.4428 14 13.5V12.5M19 18.5H20C20.9428 18.5 21.4142 18.5 21.7071 18.7929C22 19.0858 22 19.5572 22 20.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Q8=[["path",{d:"M15.0244 21H12.0222C7.29769 21 4.93543 21 3.46772 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38116 4.53806C2.65287 4.05227 3.0546 3.65142 3.54148 3.38032C4.22449 3 5.13474 3 6.95525 3C8.12158 3 8.70475 3 9.21524 3.19101C10.3808 3.62712 10.8614 4.68358 11.3874 5.73313L12.0222 7M8.01332 7H16.7827C18.8941 7 19.9498 7 20.7081 7.50559C21.0364 7.72447 21.3183 8.00572 21.5377 8.33329C21.8193 8.75388 21.9444 9.26614 22 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 14C15.9961 12.6193 17.1159 11.5 18.4973 11.5C19.8786 11.5 20.9984 12.6193 20.9984 14C20.9984 14.8571 20.5668 15.6135 19.9091 16.0639C19.2259 16.5317 18.4985 17.172 18.5 18M18.625 20.75H18.5M18.75 20.75C18.75 20.8881 18.6381 21 18.5 21C18.3619 21 18.25 20.8881 18.25 20.75C18.25 20.6119 18.3619 20.5 18.5 20.5C18.6381 20.5 18.75 20.6119 18.75 20.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var eg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var tg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var ng=[["path",{d:"M12 3V6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 18V21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 12L3 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.3635 5.63672L16.2422 7.75804",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.75804 16.2422L5.63672 18.3635",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M18.3635 18.3635L16.2422 16.2422",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M7.75804 7.75804L5.63672 5.63672",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var rg=[["path",{d:"M12 20.5C19.1328 20.5 22 16.4706 22 11.5C22 6.52944 20.1328 2.5 12 2.5C4.13281 2.5 2 6.52944 2 11.5C2 13.5712 2.37034 15.4791 3.37161 17C4.63281 19 3.99253 20.8333 3 21.5C4.61547 21.5 5.70211 20.9858 6.39239 20.4766C6.88252 20.115 7.50688 19.9364 8.0984 20.0815C9.20689 20.3533 10.4991 20.5 12 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.57777 13.755 10.0983 13.3632 10.4634C12.7572 11.0282 12 11.6716 12 12.5M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var og=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var ig=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var sg=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var ag=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var cg=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]];var ug=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var lg=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 11.3151 21.9311 10.6462 21.8 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.0303 11.9625L16.5832 7.4096M19.7404 4.34462L19.1872 2.35748C19.0853 2.03011 18.6914 1.89965 18.4259 2.11662C16.9898 3.29018 15.4254 4.87091 16.703 7.36419C19.2771 8.56455 20.7466 6.94584 21.8733 5.5853C22.0975 5.3146 21.9623 4.90767 21.6247 4.81005L19.7404 4.34462Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var dg=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var pg=[["path",{d:"M3 15V14H21V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17157 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 14L3.00001 12.9999C3.00003 11.5278 3.00004 10.7918 3.31675 10.1584C3.63347 9.52493 4.22231 9.08329 5.39999 8.20002C6.19297 7.60528 6.58946 7.30791 7.05132 7.15395C7.51317 7 8.00879 7 9.00002 7H15C15.9912 7 16.4868 7 16.9487 7.15395C17.4105 7.3079 17.807 7.60527 18.6 8.2C19.7777 9.08328 20.3666 9.52492 20.6833 10.1584C21 10.7918 21 11.5279 21 13V14H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M8.49997 7.00006V6.50006C8.49997 5.0956 8.49997 4.39337 8.83703 3.88892C8.98295 3.67054 9.17045 3.48304 9.38883 3.33712C9.89328 3.00006 10.5955 3.00006 12 3.00006C13.4044 3.00006 14.1067 3.00006 14.6111 3.33712C14.8295 3.48304 15.017 3.67054 15.1629 3.88892C15.5 4.39337 15.5 5.0956 15.5 6.50006V7.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var fg=[["path",{d:"M20.0004 10.9826C20.6281 10.1316 21 9.07385 21 7.92761C21 5.11556 18.7614 2.83594 16 2.83594C14.0209 2.83594 12.3104 4.00687 11.5 5.70554",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.6364 21.1658H9.36364C6.67794 21.1658 5.33509 21.1658 4.40253 20.4549C4.13533 20.2512 3.89812 20.0096 3.69811 19.7375C3 18.7879 3 17.4204 3 14.6855C3 13.1226 3 12.3412 3.39892 11.7986C3.51321 11.6431 3.64876 11.505 3.80144 11.3887C4.33434 10.9824 5.10168 10.9824 6.63636 10.9824H17.3636C18.8983 10.9824 19.6657 10.9824 20.1986 11.3887C20.3512 11.505 20.4868 11.6431 20.6011 11.7986C21 12.3412 21 13.1226 21 14.6855C21 17.4204 21 18.7879 20.3019 19.7375C20.1019 20.0096 19.8647 20.2512 19.5975 20.4549C18.6649 21.1658 17.3221 21.1658 14.6364 21.1658Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 15.0547H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.6858 10.9826L13.335 10.1564C13.2474 9.94999 13.2565 9.71349 13.3595 9.51989L14.9144 6.59747C15.1776 6.10273 14.7982 5.48558 14.2636 5.53902L11.1099 5.85432C10.9004 5.87526 10.692 5.78776 10.5492 5.6189L8.39732 3.07491C8.03241 2.64349 7.37203 2.82539 7.26584 3.38656L6.63969 6.69573C6.59813 6.91538 6.46021 7.09827 6.26863 7.18779L3.38401 8.53572C2.89509 8.76418 2.86669 9.49366 3.33529 9.78682L5.24666 10.9826",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var mg=[["path",{d:"M3 20.5002C3.28417 16.8058 6.3 13.7193 10.0008 13.5379C10.3134 13.5226 10.6446 13.5097 11 13.5L11.995 13.5663C12.6939 13.6129 13.3665 13.7543 14 13.9777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 15.5V21.5M21 18.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11",cy:"6.5",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var hg=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var gg=[["path",{d:"M15 5C15 6.65685 13.6569 8 12 8C10.3431 8 9 6.65685 9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V9M12 9C12 9.93188 12 10.3978 12.1776 10.7654C12.4144 11.2554 12.8687 11.6448 13.4404 11.8478C13.8692 12 14.4128 12 15.5 12C16.5872 12 17.1308 12 17.5596 12.1522C18.1313 12.3552 18.5856 12.7446 18.8224 13.2346C19 13.6022 19 14.0681 19 15V16M12 9C12 9.93188 12 10.3978 11.8224 10.7654C11.5856 11.2554 11.1313 11.6448 10.5596 11.8478C10.1308 12 9.5872 12 8.5 12C7.4128 12 6.8692 12 6.44041 12.1522C5.86867 12.3552 5.41443 12.7446 5.17761 13.2346C5 13.6022 5 14.0681 5 15V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19C8 20.6569 6.65685 22 5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 19C22 20.6569 20.6569 22 19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]];var Cg=[["path",{d:"M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];Mm();var X_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],Q_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 17H22M19 14L22 17L19 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],wC={AlertCircle:R8,AlertTriangle:M8,Archive:T8,Bot:E8,Bug:O8,Check:dg,ChevronDown:$8,ChevronLeft:A8,ChevronRight:D8,Circle:W8,CircleCheck:j8,CircleQuestion:eg,CircleX:z8,ClosePluginPane:cu,CloseThreadPane:cu,Code:ug,ComputerTerminal01:xm,Copy:V8,Download:B8,Edit:U8,FilterHorizontal:G8,Folder:J8,FolderExport:q8,FolderGit:Y8,FolderPlus:K8,FolderSync:X8,FolderUnknown:Q8,Folder02:uu,Info:tg,ListTodo:Z8,Loading:ng,MessageQuestion:rg,MessageCirclePlus:wm,MessageSquarePlus:wm,MessageSquare:N8,MoreHorizontal:og,PanelLeft:ag,Search:ig,SectionAdd:X_,SectionMove:Q_,Settings:sg,SlidersHorizontal:cg,Spinner:F8,Target:lg,Terminal:xm,Toolbox:pg,ToolCase:fg,Trash2:H8,Unavailable:hg,UserRoundPlus:mg,Workflow:gg,X:cu,Zap:Cg},eS=Object.keys(wC),tS=[...eS,...bg],nS=wC,$m=null;function rS(){return lu()!==null?Promise.resolve():($m??=Promise.resolve().then(()=>(bC(),yC)).then(()=>{},e=>{throw $m=null,e}),$m)}var oS=[],iS=new Set(tS),vC=we([]);function Am(e){return iS.has(e)}var Em=class extends Eu{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function At({name:e,fallback:t="Zap",...n}){let r=xe(vC),o=Kt(Lm,()=>Ui(e),()=>Ui(e)),i=Kt(Lm,()=>Ui(t),()=>Ui(t)),s=Kt(Pm,()=>Gi(e),()=>Gi(e)),a=Kt(Pm,()=>Gi(t),()=>Gi(t)),c=o!==void 0||Am(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?p(Dm,{name:Am(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?p(vC.Provider,{value:[...r,u],children:p(Em,{fallback:p(Dm,{name:"Zap",...n}),children:p("span",{className:S("inline-flex size-6 shrink-0",n.className),style:n.style,"aria-hidden":n["aria-hidden"],"aria-label":n["aria-label"],role:n["aria-label"]?"img":void 0,"data-icon":u,"data-icon-root":"",children:p(m,{className:"size-full"})})},l.key)}):m===void 0&&d!==void 0?p(sS,{url:d,resolved:u,...n}):p(Dm,{name:Am(u)?u:"Zap",...n})}function sS({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return p("span",{className:S("inline-block size-6 shrink-0",n),style:{...r,backgroundColor:"currentColor",maskImage:s,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:s,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},"aria-hidden":o,"aria-label":i,role:i?"img":void 0,"data-icon":t,"data-icon-root":"","data-plugin-icon-asset":e})}function Dm({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=nS[e];return i!==void 0?p(Bi,{icon:i,className:S(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):p(aS,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function aS({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=Kt(wg,lu,lu)?.[e];return s===void 0&&rS().catch(()=>{}),p(Bi,{icon:s??oS,className:S(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var xC=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function Ki(){return xe(xC)}function qi({children:e,open:t,onOpenChange:n,...r}){let o=wr(t,n),i=gn(),s=gn(),[a,c]=E(i),[u,l]=E(s),d=Z(g=>(c(g),()=>c(i)),[i]),m=Z(g=>(l(g),()=>l(s)),[s]),f=q(()=>({...o,titleId:a,descriptionId:u,registerTitleId:d,registerDescriptionId:m}),[u,m,d,o,a]),h=f.isCompactViewport?e:p(S8,{open:f.open,onOpenChange:f.onOpenChange,...r,children:e});return p(xC.Provider,{value:f,children:h})}var cS=F(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=Ki();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(P8,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});cS.displayName="DialogTrigger";var uS=F(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=Ki();return i?p(e?kn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):p(ym,{ref:o,asChild:e,onClick:t,...r,children:n})});uS.displayName="DialogClose";var IC=F(({className:e,...t},n)=>p(vm,{ref:n,...Ee(),className:S("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));IC.displayName=vm.displayName;var po=F(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=Ki();let m=Ee();if(a){let f=xr(i);return p(Ir,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:p("div",{ref:s,className:S("grid grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e,"max-w-none"),...f,children:t})})}return x(_8,{children:[p(IC,{}),x(I8,{ref:s,...m,onCloseAutoFocus:f=>{o?.(f),queueMicrotask(()=>r?.())},className:S("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-sm duration-200 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 sm:rounded-lg",e),...i,children:[t,n?null:x(ym,{className:"absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-state-active data-[state=open]:text-foreground",children:[p(At,{name:"X",className:"h-4 w-4"}),p("span",{className:"sr-only",children:"Close"})]})]})]})});po.displayName="DialogContent";var fo=({className:e,...t})=>p("div",{className:S("flex flex-col space-y-1.5 text-left",e),...t});fo.displayName="DialogHeader";var pu=({className:e,...t})=>p("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pu.displayName="DialogFooter";var mo=F(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=Ki(),u=n??a;if(rt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:S("text-base font-semibold leading-none tracking-tight",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("h2",{ref:i,...l,children:r})}return p(L8,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:S("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});mo.displayName="DialogTitle";var fu=F(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=Ki(),u=n??a;if(rt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:S("text-sm text-muted-foreground",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("p",{ref:i,...l,children:r})}return p(bm,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:S("text-sm text-muted-foreground",t),...o,children:r})});fu.displayName=bm.displayName;var _C="text-sm max-md:pointer-coarse:text-base";var Dn="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",SC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",jz=`${SC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,Wz=`${SC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var LC="h-9 max-md:pointer-coarse:h-10";var mu=F(({className:e,type:t,...n},r)=>p("input",{type:t,autoComplete:"off",className:S(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${As} file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,LC,_C,e),ref:r,...n}));mu.displayName="Input";function PC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return p(qi,{open:e,onOpenChange:n,children:x(po,{className:"max-w-sm",children:[x(fo,{children:[p(mo,{children:"Customize list"}),p(fu,{children:"Hidden groups move into More. Their counters still show there."})]}),p("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>x("li",{"data-sidebar-customize-item":i.id,className:"flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-sm hover:bg-accent",children:[p("span",{className:S("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),p(Je,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:p(B,{name:N.moveUp,"aria-hidden":!0})}),p(Je,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:p(B,{name:N.collapse,"aria-hidden":!0})}),p(Je,{variant:"ghost",size:"icon",className:"size-7","aria-pressed":!i.hidden,"aria-label":i.hidden?`Show ${i.label}`:`Hide ${i.label}`,disabled:!i.hideable,onClick:()=>r(i.id),children:p(B,{name:i.hidden?N.hidden:N.show,"aria-hidden":!0})})]},i.id))}),p(pu,{children:p(Je,{onClick:()=>n(!1),children:"Done"})})]})})}function MC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=E(""),[i,s]=E(!1);return z(()=>{e&&o("")},[e]),p(qi,{open:e,onOpenChange:t,children:p(po,{className:"max-w-sm",children:x("form",{className:"flex flex-col gap-4",onSubmit:async a=>{a.preventDefault();let c=r.trim();if(c!==""){s(!0);try{await n(c),t(!1)}finally{s(!1)}}},children:[p(fo,{children:p(mo,{children:"New section"})}),p(mu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),x(pu,{children:[p(Je,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),p(Je,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function RC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return p(w8,{open:e,onOpenChange:i,children:x(dm,{children:[x(pm,{children:[p(mm,{children:t}),p(hm,{children:n})]}),x(fm,{children:[p(Cm,{children:"Cancel"}),p(gm,{className:S(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function TC({open:e,title:t,onOpenChange:n,children:r}){return p(qi,{open:e,onOpenChange:n,children:x(po,{className:"max-w-sm",children:[p(fo,{children:p(mo,{className:"sr-only",children:t})}),r]})})}function $C({open:e,title:t,targets:n,query:r,onQueryChange:o,onOpenChange:i,onMove:s}){let[a,c]=E(0);z(()=>c(0),[r,e]);let u=l=>{l!==void 0&&(s(l.parentThreadId),i(!1))};return p(qi,{open:e,onOpenChange:i,children:x(po,{className:"max-w-sm",children:[x(fo,{children:[x(mo,{children:["Move \u201C",t,"\u201D"]}),p(fu,{children:"Nest it under another thread, or move it to the top level."})]}),p(mu,{autoFocus:!0,role:"combobox","aria-expanded":!0,"aria-controls":"thread-glance-move-targets","aria-activedescendant":n[a]?`thread-glance-move-${a}`:void 0,"aria-label":"Find a thread",placeholder:"Find a thread",value:r,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="ArrowDown"?(l.preventDefault(),c(d=>Math.min(d+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(d=>Math.max(d-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),x("ul",{id:"thread-glance-move-targets",role:"listbox","aria-label":"Move to",className:"flex max-h-72 flex-col gap-0.5 overflow-y-auto",children:[n.length===0?p("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,d)=>x("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:S("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",d===a&&"bg-accent"),children:[p("span",{className:"truncate",children:l.label}),l.detail?p("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function AC(){let e=hn(),[t,n]=E({}),r=mn(),o=A(!1),i=Z(()=>{e.call("listNotes",null).then(s=>n(s.notes),()=>{})},[e]);return z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]),fn(An.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:_4.safeParse(a.notes);c!==null&&!c.success||n(u=>{let l={...u};return c===null?delete l[a.threadId]:l[a.threadId]=c.data,l})}),t}function DC(e,t,n="",r=50){let o=t.infos.get(e);if(o===void 0)return[];let i=u=>t.infos.get(u)?.thread.parentThreadId??null,s=n.trim().toLowerCase(),a=[];o.thread.parentThreadId!==null&&(s===""||"top level".includes(s))&&a.push({parentThreadId:null,label:"Top level",detail:"No parent thread"});let c=[...t.infos.values()].filter(u=>{let l=u.thread;return l.isHidden||l.isArchived||l.id===o.thread.parentThreadId||V2(l.id,e,i)?!1:s===""||l.displayTitle.toLowerCase().includes(s)}).sort((u,l)=>l.thread.latestAttentionAt-u.thread.latestAttentionAt);for(let u of c.slice(0,r)){let l=u.parentId===null?null:t.infos.get(u.parentId);a.push({parentThreadId:u.thread.id,label:u.thread.displayTitle,detail:l?`in ${l.thread.displayTitle}`:null})}return a}var lS=[["waits-on-you","needing you"],["failed","failed"],["queue-failed","queue failed"],["offline","offline"],["working","working"],["background","in background"],["scheduled","scheduled"],["queued","queued"],["unread","unread"],["draft","drafts"],["idle","idle"]];function EC(e){let t=new Map;for(let r of e)r.thread.isHidden||t.set(r.state.kind,(t.get(r.state.kind)??0)+1);let n=lS.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function NC(e,t){if(e===void 0)return[];if(e.root.thread.id===t)return e.descendants;let n=[],r=new Set([t]);for(let o of e.descendants)o.parentId!==null&&r.has(o.parentId)&&(r.add(o.thread.id),n.push(o));return n}function ho(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function OC(e,t){if(t===null)return null;let n=t==="now"?"just now":`${t} ago`;switch(e){case"working":case"background":return`started ${n}`;case"waits-on-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function zC(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var dS={attention:"text-attention",destructive:"text-destructive",working:"text-[var(--timeline-accent)]",background:"text-muted-foreground/50","muted-strong":"text-muted-foreground/75",muted:"text-muted-foreground",none:""},ZC={attention:"border-[color:color-mix(in_oklch,var(--attention)_45%,transparent)] bg-[color-mix(in_oklch,var(--attention)_10%,transparent)] text-[color:color-mix(in_oklch,var(--attention),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--attention)_20%,transparent)]",destructive:"border-[color:color-mix(in_oklch,var(--destructive-text)_45%,transparent)] bg-[color-mix(in_oklch,var(--destructive-text)_10%,transparent)] text-[color:color-mix(in_oklch,var(--destructive-text),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--destructive-text)_20%,transparent)]",working:"border-[color:color-mix(in_oklch,var(--timeline-accent)_45%,transparent)] bg-[color-mix(in_oklch,var(--timeline-accent)_10%,transparent)] text-[color:color-mix(in_oklch,var(--timeline-accent),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--timeline-accent)_20%,transparent)]",neutral:"border-border/70 text-muted-foreground hover:bg-state-hover hover:text-foreground"},jC="animate-shine-icon motion-reduce:animate-none",pS="animate-spin motion-reduce:animate-none";function fS({label:e,className:t}){return p("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:S("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function Yi({glyph:e,label:t,className:n}){return e.icon===null?null:e.icon==="dot"?p(fS,{label:t}):p(B,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:S("size-4 shrink-0",dS[e.tone],e.spin&&pS,e.shine&&jC,n)})}function WC({status:e}){let t=e.tone==="error"?"text-destructive":e.tone==="success"?"text-success-foreground":e.tone==="running"?"text-success motion-safe:animate-pulse":"text-muted-foreground";return p(B,{name:e.icon,"aria-label":e.label,className:S("size-4 shrink-0",t,e.tone==="running"&&jC)})}function Ji({flag:e,className:t}){return p(Yi,{glyph:Qc[e],className:t})}var mS=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} need${e===1?"s":""} you`},{key:"failed",flag:"unread-failed",label:e=>`${e} failed`},{key:"offline",flag:"offline",label:e=>`${e} waiting for an offline machine`},{key:"working",flag:"working",label:e=>`${e} working`},{key:"unread",flag:"unread",label:e=>`${e} unread`}];function hu({counters:e,className:t}){let n=mS.filter(r=>e[r.key]>0);return n.length===0?null:p("span",{role:"group","aria-label":n.map(r=>r.label(e[r.key])).join(", "),className:S("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>x("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[p(Ji,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var hS=500,gS=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),Xi=!1,gu=0,VC=0;function FC(e){Xi=gS.has(e.key)}function HC(){Xi=!1,gu+=1}function BC(){gu+=1}function UC(e,t){let[n,r]=E(!1),o=A(null),i=A(null),s=A(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=gu;o.current=setTimeout(()=>{o.current=null,gu===u&&r(!0)},hS)};return z(()=>(VC++===0&&(Xi=!1,document.addEventListener("keydown",FC,!0),document.addEventListener("pointerdown",HC,!0)),()=>{a(),--VC===0&&(document.removeEventListener("keydown",FC,!0),document.removeEventListener("pointerdown",HC,!0))}),[]),z(()=>{a(),r(!1)},[e,t]),{open:n&&t&&!e,onOpenChange:u=>{u||(a(),r(!1))},rowProps:{onPointerEnter:u=>{i.current={x:u.clientX,y:u.clientY}},onPointerMove:u=>{if(u.pointerType==="touch")return;let l=i.current;l!==null&&l.x===u.clientX&&l.y===u.clientY||(i.current=null,c())},onPointerLeave:()=>{a(),i.current=null,s.current=!1},onPointerDown:()=>{s.current=!0,a(),r(!1)},onFocus:()=>{Xi&&(Xi=!1,c())},onBlur:a}}}var Nm=globalThis.__bbPluginRuntime;if(Nm==null||Nm.radixDropdownMenu==null)throw new Error('Cannot load "@radix-ui/react-dropdown-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Cu=Nm.radixDropdownMenu,kZ="default"in Cu?Cu.default:Cu,{Arrow:yZ,CheckboxItem:GC,Content:KC,DropdownMenu:bZ,DropdownMenuArrow:vZ,DropdownMenuCheckboxItem:wZ,DropdownMenuContent:xZ,DropdownMenuGroup:IZ,DropdownMenuItem:_Z,DropdownMenuItemIndicator:SZ,DropdownMenuLabel:LZ,DropdownMenuPortal:PZ,DropdownMenuRadioGroup:MZ,DropdownMenuRadioItem:RZ,DropdownMenuSeparator:TZ,DropdownMenuSub:$Z,DropdownMenuSubContent:AZ,DropdownMenuSubTrigger:DZ,DropdownMenuTrigger:EZ,Group:qC,Item:YC,ItemIndicator:Om,Label:JC,Portal:XC,RadioGroup:CS,RadioItem:zm,Root:QC,Separator:ek,Sub:tk,SubContent:Zm,SubTrigger:jm,Trigger:nk,createDropdownMenuScope:NZ}=Cu;var yS=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),on="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",rk=we({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function ku({children:e}){let[t,n]=E(null),r=q(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return p(rk.Provider,{value:r,children:e})}function Bt(e){let t=gn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=xe(rk),i=n===t,s=A(e);s.current=e;let a=Z(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=Z(u=>{s.current?.onKeyDown?.(u),yS.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var bS="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",vS="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",wS="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Wm=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function En(){return xe(Wm)}function go({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=wr(t,n,r);return i.isCompactViewport?p(Wm.Provider,{value:i,children:e}):p(QC,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Wm.Provider,{value:i,children:e})})}var pr=F(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=En();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):p(nk,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});pr.displayName="DropdownMenuTrigger";var fr=F(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=En(),l=Ee();if(a){let{style:d,...m}=xr(i);return p(Ir,{open:c,onOpenChange:u,srLabel:r??"Menu",children:p("div",{ref:s,className:S("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Vs},children:n})})}return p(XC,{children:p(KC,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{k5()||d.preventDefault(),o?.(d)},className:S("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i,children:p(ku,{children:n})})})});fr.displayName="DropdownMenuContent";function ok(){return new Event("select",{cancelable:!0})}var Oe=F(({className:e,inset:t,variant:n="default",onSelect:r,disabled:o,role:i="menuitem","aria-checked":s,textValue:a,children:c,onPointerEnter:u,onKeyDown:l,onFocus:d,onBlur:m,...f},h)=>{let{isCompactViewport:g,onOpenChange:k}=En(),{hoverProps:I}=Bt({onPointerEnter:u,onKeyDown:l});return g?p("button",{ref:h,type:"button",role:i,disabled:o,"aria-disabled":o||void 0,"aria-checked":s,className:S("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-2 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",t&&"pl-8",n==="destructive"&&wS,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=ok();r?.(y),y.defaultPrevented||k(!1)},children:c}):p(YC,{ref:h,className:S("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Zt,n==="destructive"?vS:bS,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...f,...I,children:c})});Oe.displayName="DropdownMenuItem";var xS=F(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:d,onOpenChange:m}=En(),{hoverProps:f}=Bt({onPointerEnter:a,onKeyDown:c});return d?x("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:S("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2 pr-8 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-disabled":i?"":void 0,onClick:()=>{if(i)return;let h=ok();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:(n===!0||n==="indeterminate")&&p(At,{name:"Check",className:Dn})}),t]}):x(GC,{ref:l,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...f,children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:p(Om,{children:p(At,{name:"Check",className:Dn})})}),t]})});xS.displayName="DropdownMenuCheckboxItem";var IS=F(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=En(),{hoverProps:a}=Bt({onPointerEnter:n,onKeyDown:r});return s?null:x(zm,{ref:i,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),...o,...a,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Om,{children:p(At,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});IS.displayName=zm.displayName;var _S=F(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=En();return i?p("div",{ref:o,className:S("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):p(JC,{ref:o,className:S("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});_S.displayName="DropdownMenuLabel";var Qi=F(({className:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("hr",{ref:n,className:S("-mx-1 my-1 h-px border-0 bg-muted",e)}):p(ek,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t})});Qi.displayName="DropdownMenuSeparator";var SS=F(({children:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("div",{ref:n,role:"group",...t,children:e}):p(qC,{ref:n,...t,children:e})});SS.displayName="DropdownMenuGroup";var ik=tk,Vm=F(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(jm,{ref:s,className:S("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Zt,on,t&&"pl-8",e),...i,...a,children:[n,p(At,{name:"ChevronRight",className:"ml-auto"})]})});Vm.displayName=jm.displayName;var Fm=F(({className:e,...t},n)=>p(Zm,{ref:n,...Ee(),className:S("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Fm.displayName=Zm.displayName;var LS=({className:e,...t})=>p("span",{className:S("ml-auto text-xs tracking-widest opacity-60",e),...t});LS.displayName="DropdownMenuShortcut";function sk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var PS=25;function ak(e,t=PS){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}var MS={start:{top:"calc(50% + 10px)",bottom:"0px"},full:{top:"0px",bottom:"0px"},end:{top:"0px",bottom:"50%"}};function Co({rails:e}){return e.every(t=>t===null)?null:p("span",{"aria-hidden":!0,"data-rails":"",className:"pointer-events-none absolute inset-0",children:e.map((t,n)=>t===null?null:p("span",{className:"absolute w-px bg-border",style:{left:c8(n),...MS[t]}},n))})}function RS(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${ho(n.sendAt)}`:r}function ck(e,t){let n=[RS(e,t.pluginLabel),t.providerName];return e.parentTitle!==null&&e.depth>0&&n.push(`child of ${e.parentTitle}`),e.crossGroupLabel!==null&&n.push(e.crossGroupLabel.toLowerCase()),e.homeGroupLabel!==null&&n.push(`in ${e.homeGroupLabel}`),e.hiddenBadge&&n.push("hidden thread"),e.info.unread&&e.info.state.kind!=="unread"&&n.push("unread"),t.hasDraft&&e.info.state.kind!=="draft"&&n.push("unsubmitted draft"),`Open ${e.info.thread.displayTitle} \u2014 ${n.join("; ")}`}function Hm(e,t,n,r){let o=t===1?"child thread":"child threads",i=n===null?"":`, ${Qc[n].label}`;return`${r?"Collapse":"Show"} ${t} ${o} of ${e}${i}`}function uk(e){let t=e.count===1?"thread":"threads";if(e.scope==="group")return{label:e.expanded?"Show fewer":`${e.count} older`,ariaLabel:`${e.expanded?"Hide":"Show"} ${e.count} older ${t}`};let n=e.count===1?"child thread":"child threads";return e.expanded?{label:"Show fewer",ariaLabel:`Hide ${e.count} older ${n}`}:{label:`${e.count} more ${n}`,ariaLabel:`Show ${e.count} more ${n}`}}var TS=600;function $S(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function ko({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=E(e),[a,c]=E(!1),u=A(null),l=A(!1),d=A(!1),m=A(!1);z(()=>{let h=g=>{g.target!==u.current&&(m.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),z(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{d.current=!0},TS);return()=>clearTimeout(h)},[]);let f=async h=>{if(l.current)return;l.current=!0;let g=i.trim();if(!h||g===""||g===e){r();return}c(!0);try{await n(g)}catch(k){it.error("Couldn't rename",{description:k instanceof Error?k.message:String(k)})}finally{r()}};return x(jt,{children:[p("input",{ref:u,"aria-label":t,value:i,disabled:a,onChange:h=>s(h.target.value),onKeyDown:h=>{h.stopPropagation(),!h.nativeEvent.isComposing&&(h.key==="Enter"?(h.preventDefault(),f(!0)):h.key==="Escape"&&(h.preventDefault(),f(!1)))},onBlur:h=>{if(!d.current&&!m.current&&$S(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}f(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:S("pointer-events-auto relative z-10 h-6 min-w-0 flex-1 rounded-sm border border-input bg-background px-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",o)}),a?p("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var Bm=globalThis.__bbPluginRuntime;if(Bm==null||Bm.radixContextMenu==null)throw new Error('Cannot load "@radix-ui/react-context-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var yu=Bm.radixContextMenu,aj="default"in yu?yu.default:yu,{Arrow:cj,CheckboxItem:Um,Content:Gm,ContextMenu:uj,ContextMenuArrow:lj,ContextMenuCheckboxItem:dj,ContextMenuContent:pj,ContextMenuGroup:fj,ContextMenuItem:mj,ContextMenuItemIndicator:hj,ContextMenuLabel:gj,ContextMenuPortal:Cj,ContextMenuRadioGroup:kj,ContextMenuRadioItem:yj,ContextMenuSeparator:bj,ContextMenuSub:vj,ContextMenuSubContent:wj,ContextMenuSubTrigger:xj,ContextMenuTrigger:Ij,Group:AS,Item:Km,ItemIndicator:qm,Label:Ym,Portal:lk,RadioGroup:DS,RadioItem:Jm,Root:dk,Separator:Xm,Sub:pk,SubContent:Qm,SubTrigger:eh,Trigger:fk,createContextMenuScope:_j}=yu;var mk="z-[70]",hk=dk,gk=fk;var Ck=pk;var th=F(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(eh,{ref:s,className:S("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Zt,on,t&&"pl-8",e),...i,...a,children:[n,p(At,{name:"ChevronRight",className:"ml-auto"})]})});th.displayName=eh.displayName;var nh=F(({className:e,...t},n)=>p(Qm,{ref:n,...Ee(),className:S(mk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));nh.displayName=Qm.displayName;var rh=F(({className:e,children:t,...n},r)=>p(lk,{children:p(Gm,{ref:r,...Ee(),className:S(mk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:p(ku,{children:t})})}));rh.displayName=Gm.displayName;var bu=F(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return p(Km,{ref:i,className:S("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Zt,on,t&&"pl-8",e),...o,...s})});bu.displayName=Km.displayName;var NS=F(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(Um,{ref:s,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),checked:n,...i,...a,children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:p(qm,{children:p(At,{name:"Check",className:Dn})})}),t]})});NS.displayName=Um.displayName;var OS=F(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return x(Jm,{ref:i,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),...o,...s,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(qm,{children:p(At,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});OS.displayName=Jm.displayName;var zS=F(({className:e,inset:t,...n},r)=>p(Ym,{ref:r,className:S("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));zS.displayName=Ym.displayName;var oh=F(({className:e,...t},n)=>p(Xm,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t}));oh.displayName=Xm.displayName;function ZS({className:e,...t}){return p("span",{className:S("ml-auto text-xs tracking-widest opacity-60",e),...t})}ZS.displayName="ContextMenuShortcut";var ih=globalThis.__bbPluginRuntime;if(ih==null||ih.radixHoverCard==null)throw new Error('Cannot load "@radix-ui/react-hover-card": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var vu=ih.radixHoverCard,Dj="default"in vu?vu.default:vu,{Arrow:Ej,Content:sh,HoverCard:Nj,HoverCardArrow:Oj,HoverCardContent:zj,HoverCardPortal:Zj,HoverCardTrigger:jj,Portal:kk,Root:yk,Trigger:bk,createHoverCardScope:Wj}=vu;var vk=yk,wk=bk,ah=F(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Ee();return p(kk,{children:p(sh,{ref:o,align:t,sideOffset:n,...i,className:S("z-50 w-64 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...r})})});ah.displayName=sh.displayName;function wu(e){let t=Math.max(0,e);return t<6e4?"now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:t<6048e5?`${Math.floor(t/864e5)}d`:`${Math.floor(t/6048e5)}w`}function WS(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function xk(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=wu(r-o),a=s==="now"?"<1m":s;return{text:a,label:`Waiting on you for ${a==="<1m"?"less than a minute":a}`,kind:"waiting"}}if(t){let s=n.startedAt[e.id];if(s===void 0)return null;let a=wu(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=wu(r-WS(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function Ik(e,t){if(e.status!=="idle"&&e.status!=="error"||e.hasPendingInteraction)return null;let n=t[e.id];return n!==void 0?Math.max(n,e.latestAttentionAt):e.latestAttentionAt>e.createdAt&&(e.parentThreadId===null||e.status==="error")?e.latestAttentionAt:null}function _k(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="waits-on-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:wu(r-o)}function es({display:e,mode:t="muted",className:n}){if(t==="hidden")return null;let r=t==="muted";if(e.provider!==null){let o=r?{id:e.provider.id,logoUrl:e.provider.logoUrl,icon:e.provider.icon}:e.provider;return p("span",{title:e.name,className:S("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:p(cs,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return p("span",{role:"img","aria-label":e.name,title:e.name,className:S("inline-flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-[3px] border border-border px-px text-[8px] font-semibold leading-none tracking-tight text-muted-foreground",r&&"opacity-60",n),children:e.mark})}function ch(e){switch(e){case"checks_failed":case"conflicts":case"changes_requested":return"text-destructive";case"ready_to_merge":return"text-success";default:return"text-muted-foreground"}}var VS={checks_failed:"checks failed",conflicts:"has conflicts",changes_requested:"changes requested",ready_to_merge:"ready to merge",checks_pending:"checks pending",review_requested:"review requested",draft:"draft",merged:"merged",closed:"closed",blocked:"blocked"};function xu(e){let t=VS[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function Sk({threadId:e}){let{pullRequest:t}=us(e);return t===null?null:x("span",{title:xu(t),"aria-label":xu(t),className:S("shrink-0 text-[11px] tabular-nums",ch(t.attention)),children:["#",t.number]})}function Iu({item:e}){return x(jt,{children:[p(B,{name:e.icon,"aria-hidden":!0,className:"size-4"}),p("span",{children:e.label})]})}function Lk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Pk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o,input:i}){let s=a=>c=>{if(!i.current.pressed&&!i.current.keyed){c.preventDefault();return}a()};return p(rh,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>x(hr,{children:[a.separated?p(oh,{}):null,a.action==="move-to-section"?x(Ck,{children:[p(th,{children:p(Iu,{item:a})}),p(nh,{children:Lk(t).map(c=>x(bu,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):p(bu,{className:S(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:p(Iu,{item:a})})]},a.action))})}function Mk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return p(fr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>x(hr,{children:[i.separated?p(Qi,{}):null,i.action==="move-to-section"?x(ik,{children:[p(Vm,{children:p(Iu,{item:i})}),p(Fm,{children:Lk(t).map(s=>x(Oe,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):p(Oe,{className:S(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:p(Iu,{item:i})})]},i.action))})}function Rk({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return p("svg",{role:"img","aria-label":t,viewBox:"0 0 14 14",width:14,height:14,shapeRendering:"crispEdges",className:S("pointer-events-none size-3.5 shrink-0",!r&&"opacity-60",n&&"animate-shine-icon motion-reduce:animate-none"),children:e.map(o=>{let i=o.isMe?0:.5;return p("rect",{x:1+o.rect.x*12+i,y:1+o.rect.y*12+i,width:Math.max(o.rect.width*12-2*i,0),height:Math.max(o.rect.height*12-2*i,0),strokeWidth:o.isMe?0:1,className:o.isMe?o.isFocused?"fill-primary/70 stroke-none":"fill-muted-foreground/45 stroke-none":"fill-none stroke-muted-foreground/30"},o.paneId)})})}function sn({label:e,title:t,children:n}){return x("div",{className:"flex min-w-0 gap-2",title:t,children:[p("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),p("dd",{className:"min-w-0 flex-1 break-words",children:n})]})}function FS(e,t){let[n,r]=E("loading"),{id:o,status:i}=t.thread;return z(()=>{let s=!1;return r("loading"),e.loadModel(o,i).then(a=>!s&&r(a),()=>!s&&r(null)),()=>{s=!0}},[e,o,i]),n}function HS({threadId:e}){let{pullRequest:t}=us(e);return t===null?null:p(sn,{label:"Pull request",children:p("span",{className:ch(t.attention),children:xu(t)})})}function _u({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=FS(t,e),a=xe(iu),c=OC(e.state.kind,_k(e.state.kind,o.id,a.stamps,a.now)),u=EC(NC(a.familyOf(o.id),o.id)),l=o.environment,d=Ik(o,a.stamps.finishedAt),m=V4(a.notes[o.id]);return x("div",{className:"flex flex-col gap-2 text-xs",children:[p("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),x("div",{className:"flex items-center gap-1.5",children:[p(Yi,{glyph:e.state.glyph,className:"size-3.5"}),x("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${ho(e.state.sendAt)}`:""]})]}),e.note!==null?x("p",{className:"break-words leading-snug",children:[x("span",{className:e.note.tone==="destructive"?"text-destructive":"text-attention",children:[e.note.prefix,":"]})," ",e.note.text]}):null,x("dl",{className:"flex flex-col gap-1",children:[p(sn,{label:"Harness",children:x("span",{className:"inline-flex items-center gap-1.5",children:[p(es,{display:i,mode:t.harnessIcon==="hidden"?"muted":t.harnessIcon}),i.name]})}),p(sn,{label:"Model",title:"The model and reasoning level the next message will use",children:s==="loading"?"\u2026":s===null?"Unknown":`${s.model} \xB7 ${s.reasoningLevel}`}),l?.branchName?p(sn,{label:"Branch",children:x("span",{className:"inline-flex items-center gap-1",children:[p(B,{name:l.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?p(sn,{label:"Machine",children:o.host.name}):null,u!==null?p(sn,{label:"Children",children:u}):null,n?p(HS,{threadId:o.id}):null,m!==null&&e.note===null?p(sn,{label:"Last reply",children:p("span",{className:"line-clamp-2",children:m.text})}):null,p(sn,{label:"Created",children:ho(o.createdAt)}),d!==null?p(sn,{label:"Finished",children:ho(d)}):null]}),r?x("div",{className:"flex gap-2 pt-1",children:[x(Je,{size:"sm",onClick:r.open,children:[p(B,{name:N.open,"aria-hidden":!0}),"Open"]}),x(Je,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[p(B,{name:e.unread?N.markRead:N.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var BS=400,US=700,GS=10,ts=null;function KS(){let e=t=>{t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e,!0)};window.addEventListener("click",e,!0),window.addEventListener("touchend",()=>setTimeout(()=>window.removeEventListener("click",e,!0),400),{capture:!0,once:!0})}var an="pointer-events-auto relative z-10 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-[state=open]:bg-state-active";function qS(e){let t=yh();return q(()=>{if(t===null)return null;let n=t.panes.map(r=>({paneId:r.paneId,rect:r.rect,isMe:r.threadId===e,isFocused:r.isFocused}));return n.some(r=>r.isMe)?n:null},[t,e])}var Tk=pt(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,active:s,editing:a,now:c,startedAt:u,finishedAt:l,pendingAt:d}){let{info:m}=t,f=m.thread,h=f.archivedAt!==null||f.isArchived,g=n.compact,k=xh(f.id),I=wh(f.id),{hasUnsubmittedDraft:y}=bh(f.id),b=hh(f.id),$=qS(f.id),[v,R]=E(!1),[T,H]=E(!1),Y=UC(s,!g&&!a&&!v&&!T),te=A({pressed:!1,keyed:!1}),se=A(null),W=A(null),ae={threadId:f.id,parentThreadId:f.parentThreadId,sectionId:f.sectionId,pinned:f.pinnedAt!==null||f.isPinned},re=Ss({id:`thread:${f.id}:${r}`,data:{kind:"thread",thread:ae,groupId:r},disabled:a||g}),ze=Ls({id:`drop-thread:${f.id}:${r}`,data:{kind:"thread",threadId:f.id,inPinned:o,groupId:r}}),wt=Z(j=>{re.setNodeRef(j),ze.setNodeRef(j)},[re.setNodeRef,ze.setNodeRef]),Ge=n.provider(f.providerId),Nn=E4(m.state,I),ht=ck(t,{providerName:Ge.name,pluginLabel:Nn?I.label:null,hasDraft:y}),Fe=h?null:xk(f,m.flags.has("working"),{startedAt:u===void 0?{}:{[f.id]:u},finishedAt:l===void 0?{}:{[f.id]:l}},c,m.state.kind==="waits-on-you"?d??null:void 0),Dt=K4({thread:f,unread:m.unread,splitAvailable:b.isAvailable,isRoot:f.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),Te=A(!1),Ze=A(!1),Et=(j,Se)=>{if(j==="rename"){Te.current=!0,Ze.current=!0,setTimeout(()=>{Ze.current=!1},1500);return}n.onMenuAction(j,f,Se)};z(()=>{if(v||T||!Te.current)return;let j=setTimeout(()=>{Te.current&&(Te.current=!1,n.setEditingId(f.id))},60);return()=>clearTimeout(j)},[v,T,n,f.id]);let Nt=j=>{Ze.current&&(Ze.current=!1,j.preventDefault(),Te.current&&(Te.current=!1,n.setEditingId(f.id)))},$e=n.showPullRequests&&t.depth===0?n.defaultBranchOf(f):void 0,cn=f.environment?.branchName??null,un=n.showPullRequests&&t.depth===0&&cn!==null&&$e!==void 0&&cn!==$e,On=$?p(Rk,{panes:$,label:`${f.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):Nn?p(WC,{status:I}):p("span",{title:m.state.label,className:"inline-flex",children:p(Yi,{glyph:m.state.glyph,label:m.state.label})}),He=j=>{if(a){j.preventDefault();return}if(b.isAvailable&&(j.metaKey||j.ctrlKey)){j.preventDefault(),n.onMenuAction("open-in-split",f);return}let Se=Date.now();if(ts!==null&&ts.threadId===f.id&&Se-ts.at<BS){ts=null,j.preventDefault(),n.setEditingId(f.id);return}ts={threadId:f.id,at:Se},n.onNavigate()},Be=()=>{W.current!==null&&clearTimeout(W.current.timer),W.current=null},Ae=A(!1),Ce=g?{onTouchStart:j=>{let Se=j.touches[0];Se!==void 0&&(Be(),Ae.current=!1,W.current={x:Se.clientX,y:Se.clientY,timer:setTimeout(()=>{W.current=null,Ae.current=!0,KS(),R(!0)},US)})},onTouchMove:j=>{let Se=j.touches[0];W.current===null||Se===void 0||Math.hypot(Se.clientX-W.current.x,Se.clientY-W.current.y)>GS&&Be()},onTouchEnd:j=>{Be(),Ae.current&&j.preventDefault()},onTouchCancel:Be,onContextMenu:j=>j.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},fe=t.chip,Ut=dr(t.depth),dt=u8(t.depth,{unread:m.unread,active:s}),ln=n.comfortable||m.note!==null,ne=m.quiet&&!s&&!a&&fe===null,Ot=v||T,Ke=g?"":Ot?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",zt=x("div",{ref:wt,"data-sidebar-rename-row":"","data-sidebar-nest-target":i==="valid"||i==="blocked"||i==="unchanged"?i:void 0,"data-sidebar-reorder-placement":i==="before"||i==="after"?i:void 0,...re.attributes,...re.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:Y.rowProps.onPointerEnter,onPointerMove:Y.rowProps.onPointerMove,onPointerDown:j=>{Y.rowProps.onPointerDown(),a||b.splitProps.onPointerDown?.(j)},onPointerLeave:Y.rowProps.onPointerLeave,onFocus:Y.rowProps.onFocus,onBlur:Y.rowProps.onBlur,...Ce,className:S("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",ln?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",s?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!s&&Ot&&"bg-sidebar-accent",$&&!s&&"bb-sidebar-open-in-split-row",re.isDragging&&"opacity-50",i==="valid"&&"ring-1 ring-inset ring-sidebar-ring/80 bg-sidebar-accent/45",i==="blocked"&&"ring-1 ring-inset ring-destructive/60",i==="before"&&"shadow-[inset_0_2px_0_0_var(--sidebar-ring)]",i==="after"&&"shadow-[inset_0_-2px_0_0_var(--sidebar-ring)]"),style:{paddingLeft:Ut},children:[p("a",{ref:se,href:f.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":f.id,"data-sidebar-rename-anchor":"","aria-label":ht,"aria-keyshortcuts":k?.ariaKeyshortcuts,"aria-current":s?"page":void 0,onClick:He,onDoubleClick:j=>{j.preventDefault(),n.setEditingId(f.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p(Co,{rails:t.rails}),p("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:On}),t.nested?p("span",{"aria-hidden":!0,title:`Child of ${t.parentTitle??"a thread"}`,className:S("pointer-events-none relative -ml-[3px] -mr-px w-1.5 shrink-0 text-center text-[10px] leading-none text-muted-foreground",ln&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?p("span",{role:"img","aria-label":t.crossGroupLabel,title:t.crossGroupLabel,"data-sidebar-thread-cross-project":"",className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:p(B,{name:N.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,x("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?p(ko,{initial:f.displayTitle,label:"Thread name",onSave:j=>n.onRename(f.id,j),onDone:()=>{n.setEditingId(null),se.current?.focus()}}):p("span",{title:f.displayTitle,className:S("min-w-0 truncate",m.unread?"font-semibold":"font-normal",ne&&!dt.muted&&"text-muted-foreground",dt.small&&"text-xs",dt.muted&&"text-[color:color-mix(in_oklch,var(--foreground)_72%,var(--sidebar))] group-hover/row:text-foreground"),children:f.displayTitle}),!a&&m.note!==null?x("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:`${m.note.prefix}: ${m.note.text}`,children:[x("span",{className:m.note.tone==="destructive"?"text-destructive":"text-attention",children:[m.note.prefix,":"]})," ",m.note.text]}):n.comfortable&&!a?p(YS,{row:t,multiHost:n.multiHost,defaultBranch:n.defaultBranchOf(f)}):null]}),t.hiddenBadge?p("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:p(B,{name:N.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,un&&!a?p("span",{className:"pointer-events-none relative",children:p(Sk,{threadId:f.id})}):null,fe!==null&&!a?x("button",{type:"button","aria-expanded":fe.expanded,"aria-label":Hm(f.displayTitle,fe.count,fe.flag,fe.expanded),title:Hm(f.displayTitle,fe.count,fe.flag,fe.expanded),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onToggleChip(t)},onPointerDown:j=>j.stopPropagation(),onKeyDown:j=>j.stopPropagation(),"data-tone":G2(fe.flag),className:S("pointer-events-auto relative z-10 inline-flex h-5 shrink-0 items-center gap-0.5 rounded-md border px-1 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",ZC[G2(fe.flag)]),children:[fe.count,fe.flag!==null?p(Ji,{flag:fe.flag,className:"size-3"}):null,n.harnessIcon!=="hidden"?fe.providerIds.map(j=>p(es,{display:n.provider(j),className:"size-3 [&_*]:size-3"},j)):null,p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 transition-transform duration-150",fe.expanded&&"rotate-90")})]}):null,a?null:p("span",{className:S("pointer-events-none relative inline-flex shrink-0 transition-opacity",k===null&&Ke),children:p(es,{display:Ge,mode:n.harnessIcon})}),a?null:p("span",{className:"relative flex h-6 min-w-8 shrink-0 items-center justify-end gap-1",children:k!==null?p("kbd",{"aria-hidden":!0,className:"pointer-events-none rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground",children:k.label}):x(jt,{children:[t.homeGroupLabel!==null?p("span",{title:`In ${t.homeGroupLabel}`,className:S("pointer-events-none max-w-24 truncate text-[11px] text-muted-foreground transition-opacity",Ke),children:t.homeGroupLabel}):Fe!==null?p("span",{title:Fe.label,"aria-label":Fe.label,className:S("pointer-events-none text-[11px] tabular-nums transition-opacity",Fe.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",Ke),children:Fe.text}):null,x("span",{className:S("flex items-center gap-0.5 transition-opacity",g?"relative":Ot?"absolute right-0 opacity-100":"absolute right-0 opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:[g?null:p("button",{type:"button","aria-label":h?"Unarchive thread":"Archive thread",title:h?"Unarchive":"Archive",className:an,onPointerDown:j=>j.stopPropagation(),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onMenuAction(h?"unarchive":"archive",f)},children:p(B,{name:h?N.unarchive:N.archive,"aria-hidden":!0,className:"size-4"})}),x(go,{open:v,onOpenChange:R,children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread actions",className:g?"sr-only":an,onPointerDown:j=>j.stopPropagation(),onClick:j=>j.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),p(Mk,{items:Dt,sections:n.sections,currentSectionId:f.sectionId,onAction:Et,onCloseAutoFocus:Nt})]})]})]})})]});return g?zt:x(hk,{onOpenChange:j=>{j&&(te.current={pressed:!1,keyed:!1}),H(j)},children:[x(vk,{closeDelay:100,open:Y.open,onOpenChange:Y.onOpenChange,children:[p(gk,{asChild:!0,disabled:a,children:p(wk,{asChild:!0,children:zt})}),!a&&!v&&!T?p(ah,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:p(_u,{info:m,controller:n,showPullRequest:un})}):null]}),p(Pk,{items:Dt,sections:n.sections,currentSectionId:f.sectionId,onAction:Et,onCloseAutoFocus:Nt,input:te})]})});function YS({row:e,multiHost:t,defaultBranch:n}){let r=e.info.thread,o=r.environment,i=[],s=o?.branchName??null;return s!==null&&s!==n&&i.push(x("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[p(B,{name:o?.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),p("span",{className:"truncate",children:s}),o?.isWorktree?p("span",{className:"sr-only",children:" (worktree)"}):null]},"branch")),t&&r.host!==null&&i.push(x("span",{className:"inline-flex shrink-0 items-center gap-0.5",children:[p(B,{name:N.machine,"aria-hidden":!0,className:"size-3"}),r.host.name]},"host")),i.length===0?null:p("span",{className:"flex min-w-0 items-center gap-2 text-xs leading-4 text-muted-foreground",children:i})}var $k=pt(function({row:t,controller:n}){let{label:r,ariaLabel:o}=uk(t),i=t.scope!=="group";return x("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:S("relative flex w-full items-center rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring",i?"h-7 gap-1.5 max-md:pointer-coarse:h-9":"h-6 gap-1"),style:{paddingLeft:dr(t.depth)+(i?0:2)},children:[p(Co,{rails:t.rails}),i?p("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:p(B,{name:N.more,className:"size-3.5"})}):p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 transition-transform",t.expanded&&"-rotate-90")}),r]})}),Ak=pt(function({row:t}){let n=t.count===1?"child thread":"child threads";return x("div",{className:"relative flex h-6 w-full items-center gap-1.5 pr-2 text-xs text-muted-foreground",style:{paddingLeft:dr(t.depth)},children:[p(Co,{rails:t.rails}),p("span",{"aria-hidden":!0,className:"size-4 shrink-0"}),x("span",{title:`${t.count} more ${n}`,children:["+",t.count," more"]})]})}),Dk=pt(function({row:t,controller:n,environmentProviders:r}){let[o,i]=E(!1),s=t.environmentProviderId===null?null:r.find(a=>a.id===t.environmentProviderId)??null;return x("div",{className:"group/row relative flex h-7 w-full items-center gap-1.5 rounded-md pr-1 text-sm text-muted-foreground hover:bg-sidebar-accent",style:{paddingLeft:dr(t.depth)},children:[p(Co,{rails:t.rails}),p("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${t.label} environment, ${t.threadIds.length} threads`,onClick:()=>n.onToggleEnvironment(t.environmentId),className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?p(cs,{providerKind:"environment",provider:s,className:"size-3.5"}):p(B,{name:t.environmentProviderId===null?N.machine:N.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?p(ko,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):p("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?p(Ji,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,p("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),p(B,{name:N.expand,"aria-hidden":!0,className:S("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),x(go,{children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":"Environment actions",className:S(an,!n.compact&&"opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100"),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),x(fr,{align:"end",children:[x(Oe,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),x(Oe,{onSelect:()=>i(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),x(Oe,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[p(B,{name:N.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Su=28,Ek={compact:28,comfortable:44};function Nk(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var JS=pt(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=E(!1),a=t.descriptor.label,c=Ss({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),u=n.compact?"":"opacity-0 group-hover/header:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100";return x("div",{ref:c.setNodeRef,...c.attributes,...c.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",style:{top:r?0:Su},className:S("group/header sticky z-20 flex h-7 items-center gap-1 rounded-md bg-sidebar pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",o&&"bg-sidebar-accent",c.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?p(ko,{initial:a,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:l=>n.onRename(t,l),onDone:()=>s(!1),className:"text-xs"}):x("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${a} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:l=>l.stopPropagation(),onDoubleClick:()=>Nk(t)&&s(!0),className:"flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 text-left font-medium outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"min-w-0 truncate",title:a,children:a}),p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:p(hu,{counters:a8(t.counters,{collapsed:t.collapsed,more:!1}),className:"ml-auto"}),!i&&t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?p("button",{type:"button","aria-label":`New thread in ${a}`,title:`New thread in ${a}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:S(an,u),onPointerDown:l=>l.stopPropagation(),onClick:()=>n.onNewThread(t),children:p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"})}):!i&&!n.compact?p("span",{"aria-hidden":!0,className:"size-6 shrink-0"}):null,i?null:x(go,{children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":`${a} actions`,className:S(an,u),onPointerDown:l=>l.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),x(fr,{align:"end",className:"min-w-48",children:[x(Oe,{onSelect:()=>n.onMarkAllRead(t),children:[p(B,{name:N.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?x(Oe,{onSelect:()=>n.onNewThread(t),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?x(Oe,{onSelect:()=>n.onNewSection(),children:[p(B,{name:N.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,Nk(t)?x(Oe,{onSelect:()=>s(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,p(Qi,{}),t.descriptor.kind!=="pinned"?t.hidden?x(Oe,{onSelect:()=>n.onShow(t),children:[p(B,{name:N.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):x(Oe,{onSelect:()=>n.onHide(t),children:[p(B,{name:N.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,x(Oe,{onSelect:()=>n.onToggleArchived(),children:[p(B,{name:n.showArchived?N.check:N.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),x(Oe,{onSelect:()=>n.onCustomize(),children:[p(B,{name:N.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?x(Oe,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[p(B,{name:N.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})});function XS(e){return e.key}function QS({rows:e,forceMount:t,rowHeight:n,children:r}){let o=A(null),[i,s]=E(!0),a=A(null);z(()=>{let l=o.current;if(l===null||typeof IntersectionObserver>"u")return;let d=new IntersectionObserver(m=>{for(let f of m)f.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(f.isIntersecting)},{rootMargin:"240px 0px"});return d.observe(l),()=>d.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return p("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:sk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function Ok({rows:e,groupId:t,inPinned:n,forceMount:r,rowController:o,environmentProviders:i,dropStates:s,activeThreadId:a,editingId:c,now:u,stamps:l}){let d=o.comfortable?Ek.comfortable:Ek.compact;return p("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:ak(e).map(m=>p(QS,{rows:m,rowHeight:d,forceMount:r||m.some(f=>f.type==="thread"&&(f.info.thread.id===a||f.info.thread.id===c)),children:m.map(f=>f.type==="thread"?p(Tk,{row:f,controller:o,groupId:t,inPinned:n,dropState:s.get(f.info.thread.id)??null,active:f.info.thread.id===a,editing:f.info.thread.id===c,now:u,startedAt:l.startedAt[f.info.thread.id],finishedAt:l.finishedAt[f.info.thread.id],pendingAt:l.pendingAt[f.info.thread.id]},f.key):f.type==="older"?p($k,{row:f,controller:o},f.key):f.type==="left-out"?p(Ak,{row:f},f.key):p(Dk,{row:f,controller:o,environmentProviders:i},f.key))},XS(m[0])))})}var uh=pt(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=Ls({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return x("section",{ref:s.setNodeRef,"aria-label":t.descriptor.label,"data-sidebar-visibility-group":t.descriptor.id,"data-sidebar-section-id":t.descriptor.kind==="section"?t.descriptor.entityId??void 0:void 0,className:"relative flex w-full min-w-0 flex-col",children:[p(JS,{group:t,controller:n,inOverflow:o,dropActive:r===t.descriptor.id}),t.collapsed?null:t.rows.length===0?t.rootIds.length===0?p("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):null:p(Ok,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})}),zk=pt(function({view:t,...n}){return x("section",{"aria-label":"Needs you",className:"relative flex w-full min-w-0 flex-col",children:[x("h2",{style:{top:Su},className:"sticky z-20 flex h-7 items-center gap-1 bg-sidebar pl-2 pr-2 text-xs font-medium text-muted-foreground max-md:pointer-coarse:h-9",children:[p("span",{className:"min-w-0 flex-1 truncate",children:"Needs you"}),p("span",{className:"tabular-nums","aria-label":`${t.familyCount} ${t.familyCount===1?"family":"families"}`,children:t.familyCount})]}),p(Ok,{...n,rows:t.rows,groupId:d8,inPinned:!1,forceMount:!1})]})});function Zk(e){let t=e.includes("active"),n=e.includes("archived");return t&&n?"both":n?"archived":"active"}function jk(e){return e==="both"?["active","archived"]:[e]}function Wk(e){return e==="everything"}function Vk(e){return e?"everything":"blocked"}function Fk(e){return{chronologicalSort:e,sortDirection:eu(e)}}function Hk(e){let t=rn(e.chronologicalSort),r=K2(t,e.sortDirection)==="descending";return{glyph:r?"\u2193":"\u2191",label:t==="alpha"?r?"Z\u2013A":"A\u2013Z":r?"Newest first":"Oldest first",patch:{sortDirection:r?"ascending":"descending"}}}var eL="flex min-w-0 flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",tL="flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring";function nL(e){return S(tL,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function ns({label:e,children:t}){return x("div",{className:"flex items-center gap-2 px-2 py-1",children:[p("span",{className:"w-[5.5rem] shrink-0 text-sm",children:e}),t]})}function rs({label:e,options:t,current:n,onSelect:r}){return p("div",{role:"radiogroup","aria-label":e,className:eL,children:t.map(([o,i])=>p("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:nL(o===n),children:i},o))})}function os({label:e,checked:t,onChange:n,description:r}){return x("button",{type:"button",role:"checkbox","aria-checked":t,onClick:()=>n(!t),className:"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none hover:bg-accent focus-visible:bg-accent",children:[p("span",{"aria-hidden":!0,className:S("mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-input",t&&"border-primary bg-primary text-primary-foreground"),children:t?p(B,{name:N.check,"aria-hidden":!0,className:"size-3"}):null}),x("span",{className:"flex min-w-0 flex-col",children:[p("span",{children:e}),r?p("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function lh({children:e}){return p("h3",{className:"px-2 pb-0.5 pt-3 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function rL({prefs:e,client:t,onPrefs:n,onClient:r}){let o=Hk(e);return x("div",{className:"flex flex-col",children:[p(lh,{children:"List"}),p(ns,{label:"Group by",children:p(rs,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),x(ns,{label:"Sort by",children:[p(rs,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:rn(e.chronologicalSort),onSelect:i=>n(Fk(i))}),p("button",{type:"button","aria-label":`Sort order: ${o.label}. Reverse`,title:o.label,onClick:()=>n(o.patch),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-recessed text-xs outline-none hover:bg-state-hover focus-visible:ring-2 focus-visible:ring-ring",children:o.glyph})]}),p(os,{label:"Working threads first",checked:e.workingFirst,onChange:i=>n({workingFirst:i})}),p(os,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),p(os,{label:"Collapse older threads",checked:e.foldOlder,onChange:i=>n({foldOlder:i})}),p(lh,{children:"Rows"}),p(ns,{label:"Density",children:p(rs,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),p(ns,{label:"Harness icon",children:p(rs,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"],["hidden","Hidden"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),p(os,{label:"Pull request badge",checked:e.showPullRequests,onChange:i=>n({showPullRequests:i})}),p(lh,{children:"Show"}),p(ns,{label:"Threads",children:p(rs,{label:"Threads",options:[["active","Active"],["archived","Archived"],["both","Both"]],current:Zk(e.threadLifecycles),onSelect:i=>n({threadLifecycles:jk(i)})})}),p(os,{label:"Needs you counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:Wk(e.childAttention),onChange:i=>n({childAttention:Vk(i)})})]})}function Bk({prefs:e,client:t,onPrefs:n,onClient:r}){return p("div",{style:{height:Su},className:"sticky top-0 z-30 flex items-center justify-end bg-sidebar",children:x(Fs,{children:[p(jo,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread Glance settings",title:"List settings",className:an,children:p(B,{name:N.settings,"aria-hidden":!0,className:"size-4"})})}),p(Wo,{align:"end",className:"w-80 p-2",children:p(rL,{prefs:e,client:t,onPrefs:n,onClient:r})})]})})}var oL="thread-glance";function mr(e){return e instanceof Error?e.message:String(e)}async function Uk(e,t){try{await navigator.clipboard.writeText(e),it.success(t)}catch(n){it.error("Couldn't copy",{description:mr(n)})}}var iL={activationConstraint:{distance:4}},sL={activationConstraint:{delay:200,tolerance:6}},aL=e=>{let t=e.active.data.current?.kind,n=Fh(e);if(t==="group")return n.filter(o=>String(o.id).startsWith("drop-group:"));let r=n.filter(o=>String(o.id).startsWith("drop-thread:"));return r.length>0?r:n};function Gk(e){let t=e.activatorEvent,n=null;return t instanceof MouseEvent?n=t.clientY:typeof TouchEvent<"u"&&t instanceof TouchEvent&&(n=t.touches[0]?.clientY??null),n===null?null:n+e.delta.y}function dh(e){let[t,n]=E(0);return p(cL,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function cL({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=S4(),[c,u]=w4(),l=gh({experimental_lifecycles:i.threadLifecycles}),d=mh(),m=kh(),{providers:f}=fh(),{providers:h}=Ch(),g=vh(),{stamps:k,markSeen:I,clearSeen:y}=M4(),b=L4(),$=AC(),v=q(()=>{let w=Object.values(b).filter(_=>_>Date.now());return w.length>0?Math.min(...w):null},[b]),R=I4(v),[T,H]=E(null),[Y,te]=E(null),[se,W]=E(null),[ae,re]=E(""),ze=A(new Map),[wt,Ge]=E(!1),[Nn,ht]=E(!1),[Fe,Dt]=E(null),[Te,Ze]=E(()=>new Map),[Et,Nt]=E(null),[$e,cn]=E(()=>new Map),un=A(new Set),On=A(new Map),He=l.status==="ready",Be=l.threads,Ae=q(()=>new Map(Be.map(w=>[w.id,w])),[Be]),Ce=q(()=>He?H4({threads:Be,activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt,draftIds:g,scheduled:b,now:R,notes:$,childAttention:i.childAttention}):null,[He,Be,e,k.finishedAt,k.seenAt,g,b,R,$,i.childAttention]),{targets:fe,prune:Ut}=M5(s?Ce:null,e),dt=x4(Ce,e),ln=A(null),ne=q(()=>Ce===null?null:y8(ln.current,h8({forest:Ce,threads:Be,projects:l.projects,sections:l.sections,prefs:i,activeThreadId:e,heldRootId:dt,targets:fe})),[Ce,Be,l.projects,l.sections,i,e,dt,fe]);rt(()=>{ln.current=ne},[ne]);let Ot=A(null);z(()=>{let w=[Ot.current,e].filter(_=>_!==null&&Ae.get(_)?.parentThreadId!=null);Ot.current=e,BC(),w.length>0&&I([...new Set(w)])},[e]),z(()=>{if(!(!i.showPullRequests||Ce===null))for(let w of Ce.families){let _=w.root.thread,P=_.projectId;_.environment?.branchName==null||_.host===null||un.current.has(P)||(un.current.add(P),m.projects.branches({projectId:P,hostId:_.host.id,limit:"1"}).then(G=>cn(ee=>new Map(ee).set(P,G.defaultBranch)),()=>cn(G=>new Map(G).set(P,null))))}},[i.showPullRequests,Ce,m]);let Ke=q(()=>X4(f),[f]),zt=q(()=>{let w=new Map,_=new Map(f.map(P=>[P.id,P]));return P=>{let G=w.get(P);if(G===void 0){let ee=_.get(P);G={id:P,name:ee?.displayName??P,provider:ee?.logoUrl?ee:null,mark:Q4(P,Ke)},w.set(P,G)}return G}},[f,Ke]),j=Z(w=>{Object.keys(w.patch).length>0&&a(w.patch),w.drop!==null&&Ut(w.drop)},[a,Ut]),Se=Z((w,_,P)=>{let G={activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt},ee=oe=>ge=>it.error(oe,{description:mr(ge)});switch(w){case"open-in-split":d.open(_.id,{split:!0}),n();return;case"copy-link":Uk(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":Uk(_.id,"Thread ID copied");return;case"mark-read":Wi(_,G)&&I([_.id]),d.setRead(_.id,!0).catch(ee("Couldn't mark read"));return;case"mark-unread":y([_.id]),d.setRead(_.id,!1).catch(ee("Couldn't mark unread"));return;case"pin":case"unpin":d.setPinned(_.id,w==="pin").catch(ee("Couldn't change the pin"));return;case"move-to-section":m.threads.update({threadId:_.id,sectionId:P??null}).catch(ee("Couldn't move the thread"));return;case"rename":H(_.id);return;case"details":te(_.id);return;case"move":re(""),W(_.id);return;case"archive":d.archive(_.id);return;case"unarchive":m.threads.unarchive({threadId:_.id}).catch(ee("Couldn't unarchive"));return;case"delete":setTimeout(()=>d.requestDelete(_.id),0);return}},[d,e,y,I,n,m,k.finishedAt,k.seenAt]),yo=A(Se);rt(()=>{yo.current=Se});let gt=A({forest:Ce,view:ne,prefs:i,byId:Ae,activeThreadId:e,stamps:k});rt(()=>{gt.current={forest:Ce,view:ne,prefs:i,byId:Ae,activeThreadId:e,stamps:k}});let is=Z((w,_)=>{let P=`${w}:${_}`,G=On.current.get(P);if(G===void 0){let ee=gt.current.byId.get(w),oe=ee?.providerId??"",ge=ze.current.get(oe);ge===void 0&&(ge=m.providers.models(ee?.host?{providerId:oe,hostId:ee.host.id}:{providerId:oe}).then(Le=>Le.models,()=>[]),ze.current.set(oe,ge));let je=ge;G=m.threads.defaultExecutionOptions({threadId:w}).then(async Le=>Le===null?null:{model:zC(Le.model,await je),reasoningLevel:Le.reasoningLevel},()=>null),On.current.set(P,G)}return G},[m]),Gt=ne?.multiHost??!1,xt=Ce!==null&&ne!==null,It=q(()=>xt?{compact:t,comfortable:c.density==="comfortable",setEditingId:H,showPullRequests:i.showPullRequests,harnessIcon:i.harnessIcon,defaultBranchOf:w=>$e.has(w.projectId)?$e.get(w.projectId)??null:void 0,multiHost:Gt,provider:zt,sections:l.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:w=>{let{prefs:_,forest:P}=gt.current;j(t8(w,_,P))},onToggleOlder:w=>{let{prefs:_,forest:P,view:G}=gt.current,ee=G.groups.find(oe=>oe.descriptor.id===w.scopeId)??null;j(n8(w,_,ee,P))},onToggleEnvironment:w=>{let{collapsedEnvironments:_}=gt.current.prefs;a({collapsedEnvironments:_.includes(w)?_.filter(P=>P!==w):[..._,w]})},onMenuAction:(w,_,P)=>yo.current(w,_,P),onRename:(w,_)=>d.rename(w,_),loadModel:is,openDetails:te,onNewThreadInEnvironment:(w,_,P)=>{d.openNewThread({projectId:_,environmentId:w,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(w,_)=>{await m.environments.update({environmentId:w,name:_})},onArchiveEnvironment:w=>{m.environments.archiveThreads({environmentId:w}).catch(_=>it.error("Couldn't archive the environment",{description:mr(_)}))}}:null,[xt,t,c.density,i.showPullRequests,i.harnessIcon,i.organizationMode,$e,Gt,zt,l.sections,n,j,a,d,m,is]),ss=q(()=>({now:R,stamps:k,notes:$,familyOf:w=>Ce?.familyOf.get(w)}),[R,k,$,Ce]),_t=q(()=>{let w=e===null||Ce===null?void 0:Ce.familyOf.get(e);return w===void 0?null:tu(w.root.thread,{mode:i.organizationMode,projects:l.projects})},[e,Ce,i.organizationMode,l.projects]),bo=i.threadLifecycles.includes("archived"),vo=q(()=>{if(!xt)return null;let w=_=>{let{forest:P,activeThreadId:G,stamps:ee}=gt.current,oe=_.rootIds.flatMap(Le=>P.familyOf.get(Le)??[]),ge=o8(oe,{activeThreadId:G,finishedAt:ee.finishedAt,seenAt:ee.seenAt}),je=()=>{ge.seen.length>0&&I(ge.seen);for(let Le of ge.read)d.setRead(Le,!0).catch(()=>{})};ge.read.length===0?it(`Nothing unread in ${_.descriptor.label}`):ge.read.length>q4?Dt({title:`Mark ${ge.read.length} threads read?`,description:`Every unread thread in ${_.descriptor.label}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:je}):je()};return{compact:t,activeGroupId:_t,showArchived:bo,onToggleArchived:()=>a({threadLifecycles:gt.current.prefs.threadLifecycles.includes("archived")?["active"]:["active","archived"]}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:P,forest:G}=gt.current;j(r8(_,P,G))},onNewThread:_=>{let P=_.descriptor;d.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...gt.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:gt.current.prefs.hiddenGroups.filter(P=>P!==_.descriptor.id)}),onCustomize:()=>Ge(!0),onRename:async(_,P)=>{_.descriptor.kind==="section"?await m.threadSections.update({id:_.descriptor.entityId,name:P}):_.descriptor.kind==="machine"&&await m.hosts.update({hostId:_.descriptor.entityId,name:P})},onRemove:_=>Dt({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{m.threadSections.delete({id:_.descriptor.entityId}).catch(P=>it.error("Couldn't remove the section",{description:mr(P)}))}}),onMarkAllRead:w,onNewSection:()=>ht(!0)}},[xt,t,_t,bo,i.organizationMode,j,d,n,a,m,I]),Lu=Vh(xs(Eo,iL),xs(No,sL),xs(vr)),dn=Z(w=>{let _=w.over;if(_===null)return null;let P=_.data.current;if(P===void 0)return null;if(P.kind==="group")return{kind:"group",groupId:P.groupId};let G=Gk(w),ee=_.rect,oe=G===null?.5:(G-ee.top)/Math.max(ee.height,1),ge=oe<.25?"before":oe>.75?"after":"middle";return{kind:"thread",threadId:P.threadId,zone:ge,inPinned:P.inPinned??!1}},[]),zn=q(()=>{let w=new Map(Object.entries(ne?.needsYou?.homeGroupIds??{}));for(let P of[...ne?.groups??[],...ne?.more??[]])for(let G of P.rows)G.type==="thread"&&w.set(G.info.thread.id,P.descriptor.id);let _=ne?.groups.find(P=>P.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:P=>Ae.get(P)?.parentThreadId??null,pinnedOrder:(_?.rows??[]).flatMap(P=>P.type==="thread"&&P.depth===0?[P.info.thread.id]:[]),groupOfThread:P=>w.get(P)??"threads"}},[ne,i.organizationMode,Ae]),Pu=Z(w=>{let _=w.active.data.current,P=dn(w);if(_?.kind!=="thread"||P===null){Ze(new Map),Nt(_?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Ze(new Map),Nt(P.groupId);return}Nt(null);let G=F2(_.thread,P,zn),ee=G.type==="blocked"?"blocked":G.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Ze(new Map([[P.threadId,ee]]))},[dn,zn]),wo=Z(async w=>{switch(w.type){case"nest":w.unpinFirst&&await m.threads.unpin({threadId:w.threadId}),await m.threads.update({threadId:w.threadId,parentThreadId:w.parentThreadId});return;case"move":await m.threads.update({threadId:w.threadId,sectionId:w.sectionId,...w.detach?{parentThreadId:null}:{}});return;case"detach":await m.threads.update({threadId:w.threadId,parentThreadId:null});return;case"pin":await d.setPinned(w.threadId,!0);return;case"unpin":await d.setPinned(w.threadId,!1);return;case"reorder-pinned":await m.threads.reorderPinned({threadId:w.threadId,previousThreadId:w.previousThreadId,nextThreadId:w.nextThreadId});return;case"blocked":case"unchanged":return}},[m,d]),Mu=Z(w=>{Ze(new Map),Nt(null);let _=w.active.data.current,P=dn(w);if(_===void 0||P===null||ne===null)return;if(_.kind==="group"){if(P.kind!=="group"||P.groupId===_.groupId)return;let ee=w.over.rect,oe=Gk(w),ge=oe!==null&&oe>ee.top+ee.height/2?"after":"before",je=Fi[i.organizationMode];a({[je]:X2(ne.order,_.groupId,P.groupId,ge)});return}let G=F2(_.thread,P,zn);wo(G).catch(ee=>it.error("Failed to move thread.",{description:mr(ee)}))},[dn,ne,i.organizationMode,a,zn,wo]),Ru=Z(()=>Ze(new Map),[]),Tu=q(()=>{if(ne===null)return[];let w=new Map([...ne.groups,...ne.more].map(_=>[_.descriptor.id,_]));return ne.order.flatMap(_=>{let P=w.get(_);return P===void 0?[]:[{id:_,label:P.descriptor.label,hidden:P.hidden,hideable:_!=="pinned"}]})},[ne]);if(l.status==="error")return x("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[p("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?p(Je,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):p(Je,{size:"sm",variant:"outline",onClick:()=>{m.plugins.reload({pluginId:oL}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(l.status==="loading"||!s||ne===null||It===null||vo===null)return p("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(w=>p("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},w))});let he=l.experimental_archived,be=Y===null?null:Ce?.infos.get(Y)??null,ve=se===null?null:Ae.get(se)??null;return p(iu.Provider,{value:ss,children:x("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[p(Bk,{prefs:i,client:c,onPrefs:a,onClient:u}),Be.length===0?p("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No threads yet."}):x(t5,{sensors:Lu,collisionDetection:aL,onDragMove:Pu,onDragEnd:Mu,onDragCancel:Ru,children:[ne.needsYou!==null?p(zk,{view:ne.needsYou,rowController:It,environmentProviders:h,dropStates:Te,activeThreadId:e,editingId:T,now:R,stamps:k}):null,ne.groups.map(w=>p(uh,{group:w,rowController:It,groupController:vo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Et,activeThreadId:e,editingId:T,now:R,stamps:k},w.descriptor.id)),ne.more.length>0?x(Fs,{children:[p(jo,{asChild:!0,children:x("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${ne.more.length} hidden ${ne.more.length===1?"group":"groups"}`,className:"mt-1 flex h-7 w-full items-center gap-1 rounded-md pl-2 pr-1 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"flex-1 font-medium",children:"More"}),p(hu,{counters:ne.moreCounters}),p(B,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),p(Wo,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:p("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:ne.more.map(w=>p(uh,{group:w,rowController:It,groupController:vo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Et,activeThreadId:e,editingId:T,now:R,stamps:k,inOverflow:!0},w.descriptor.id))})})]}):null]}),he!==null?x("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[he.status==="loading"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):he.status==="error"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,he.hasNextPage||he.isFetchNextPageError?p(Je,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:he.isFetchingNextPage,className:S("h-7 text-xs text-muted-foreground"),onClick:()=>{he.fetchNextPage()},children:he.isFetchingNextPage?"Loading\u2026":he.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,p(PC,{open:wt,items:Tu,onOpenChange:Ge,onToggleHidden:w=>a({hiddenGroups:i.hiddenGroups.includes(w)?i.hiddenGroups.filter(_=>_!==w):[...i.hiddenGroups,w]}),onMove:(w,_)=>{let P=ne.order.indexOf(w),G=ne.order[P+_];G!==void 0&&a({[Fi[i.organizationMode]]:X2(ne.order,w,G,_<0?"before":"after")})}}),p(MC,{open:Nn,onOpenChange:ht,onCreate:async w=>{try{await m.threadSections.create({name:w})}catch(_){throw it.error("Couldn't create the section",{description:mr(_)}),_}}}),p(RC,{open:Fe!==null,title:Fe?.title??"",description:Fe?.description??"",confirmLabel:Fe?.confirmLabel??"OK",destructive:Fe?.destructive,onOpenChange:w=>!w&&Dt(null),onConfirm:()=>{Fe?.run(),Dt(null)}}),be!=null?p(TC,{open:!0,title:be.thread.displayTitle,onOpenChange:w=>!w&&te(null),children:p(_u,{info:be,controller:It,showPullRequest:i.showPullRequests,actions:{open:()=>{te(null),d.open(be.thread.id),n()},toggleRead:()=>Se(be.unread?"mark-read":"mark-unread",be.thread)}})}):null,ve!==null&&Ce!==null?p($C,{open:!0,title:ve.displayTitle,targets:DC(ve.id,Ce,ae),query:ae,onQueryChange:re,onOpenChange:w=>!w&&W(null),onMove:w=>{(async()=>{w!==null&&(ve.pinnedAt!==null||ve.isPinned)&&await m.threads.unpin({threadId:ve.id}),await m.threads.update({threadId:ve.id,parentThreadId:w})})().catch(P=>it.error("Failed to move thread.",{description:mr(P)}))}}):null]})})}var vF=ph(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:dh})});export{vF as default};
66
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}a.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function R0(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;R0(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var T0=new Set(["type","properties","required","additionalProperties"]),P0=["oneOf","anyOf"];function M0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Op(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!T0.has(s))return null;t.push(i)}let n={},r=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??M0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Op(a)??{allOf:a};We(n,s,c)}for(let s of i.required??[])r.add(s)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let s of t){let a=M0(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function wI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of T0)if(o in e)return;let n=t.filter(o=>P0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Op(t);else{let o=n[0],i=P0.find(c=>Array.isArray(o[c]));if(Object.keys(o).length!==1)return;let s=t.filter(c=>c!==o),a=o[i].map(c=>Op([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,xi(e,r))}function Pn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){r(d);let f=e.seen.get(d),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):xi(u,h),xi(u,l),a._zod.parent===d)for(let k in u)k==="$ref"||k==="allOf"||k in l||delete u[k];if(h.$ref&&f.def)for(let k in u)k==="$ref"||k==="allOf"||k in f.def&&JSON.stringify(u[k])===JSON.stringify(f.def[k])&&delete u[k]}let m=a._zod.parent;if(m&&m!==d){r(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())r(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())R0(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])wI(u)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}xi(o,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,We(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xr(t,"input",e.processors),output:Xr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return tt(r.element,n);if(r.type==="set")return tt(r.valueType,n);if(r.type==="lazy")return tt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return tt(r.innerType,n);if(r.type==="intersection")return tt(r.left,n)||tt(r.right,n);if(r.type==="record"||r.type==="map")return tt(r.keyType,n)||tt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:tt(r.in,n)||tt(r.out,n);if(r.type==="object"){for(let o in r.shape)if(tt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(tt(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(tt(o,n))return!0;return!!(r.rest&&tt(r.rest,n))}return!1}var zp=(e,t={})=>n=>{let r=Sn({...n,processors:t});return le(e,r),Ln(r,e),Pn(r,e)},Xr=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Sn({...o??{},target:i,io:t,processors:n});return le(e,s),Ln(s,e),Pn(s,e)};var Qr=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},eo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},$0=(e,t)=>{Qr(e,"minimum",t),eo(e,"maximum",t)},N0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},O0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},z0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},Z0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},A0=(e,t)=>Qr(e,"minimum",t.minimum),D0=(e,t)=>eo(e,"maximum",t.maximum),E0=e=>(t,n)=>{Z0(t,n.format);let[r,o]=e[n.format];Qr(t,"minimum",r),eo(t,"maximum",o)},xI={greater_than:(e,t)=>Qr(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>eo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>N0(e,t.value),number_format:E0(Uo),bigint_format:E0(Go),min_length:A0,max_length:D0,length_equals:(e,t)=>$0(e,t.length),min_size:A0,max_size:D0,size_equals:(e,t)=>$0(e,t.size),string_format:(e,t)=>{Z0(e,t.format),t.pattern&&O0(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>z0(e,t.mime)};function Re(e){let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let i of r)xI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Qr(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Qr(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&eo(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&eo(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&N0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&z0(t,o.mime);for(let i of o.patterns??[])O0(t,i);return t}var II={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_I=new Map([[wa,Ul],[ui,Gl]]),j0=e=>_I.get(e)??e,Wp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Re(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=II[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let d=[...c].map(j0);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Vp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Re(e);o.type=l?"integer":"number";let d=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(d?f?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?f?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let I of a)Number.isFinite(I)&&I!==0?h.add(Math.abs(I)):Me(e,t,o,r,`A multipleOf divisor of ${I} cannot be represented in JSON Schema`);let[g,...k]=h;g!==void 0&&(o.multipleOf=g),k.length&&(o.allOf=[...o.allOf??[],...k.map(I=>({multipleOf:I}))])}},Fp=(e,t,n,r)=>{n.type="boolean"},Hp=(e,t,n,r)=>{Me(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Bp=(e,t,n,r)=>{Me(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Up=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Gp=(e,t,n,r)=>{Me(e,t,n,r,"Undefined cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{Me(e,t,n,r,"Void cannot be represented in JSON Schema")},qp=(e,t,n,r)=>{n.not={}},Yp=(e,t,n,r)=>{},Jp=(e,t,n,r)=>{},Xp=(e,t,n,r)=>{Me(e,t,n,r,"Date cannot be represented in JSON Schema")},Qp=(e,t,n,r)=>{let o=e._zod.def,i=Sr(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},ef=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(Me(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(Me(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},tf=(e,t,n,r)=>{Me(e,t,n,r,"NaN cannot be represented in JSON Schema")},nf=(e,t,n,r)=>{let o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},rf=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Re(e);i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),a&&(a.length===0?o.not={}:a.length===1?o.contentMediaType=a[0]:o.anyOf=a.map(c=>({contentMediaType:c})))},of=(e,t,n,r)=>{n.type="boolean"},sf=(e,t,n,r)=>{Me(e,t,n,r,"Custom types cannot be represented in JSON Schema")},af=(e,t,n,r)=>{Me(e,t,n,r,"Function types cannot be represented in JSON Schema")},cf=(e,t,n,r)=>{Me(e,t,n,r,"Transforms cannot be represented in JSON Schema")},uf=(e,t,n,r)=>{Me(e,t,n,r,"Map cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{Me(e,t,n,r,"Set cannot be represented in JSON Schema")},df=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Re(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=le(i.element,t,{...r,path:[...r.path,"items"]})};function Ii(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Ii(t.out):t.type==="catch"?Ii(t.innerType):e._zod.optin}var pf=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&Me(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)We(o.properties,u,le(s[u],t,{...r,path:[...r.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=i.shape[u];(t.io==="input"?Ii(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(o.required=c),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=le(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Cc=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>le(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},ff=(e,t,n,r)=>{let o=e._zod.def,i=le(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=le(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},mf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,k)=>le(g,t,{...r,path:[...r.path,s,k]})),u=i.rest?le(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,l=i.items.length;for(;l>0;){let g=i.items[l-1];if(!(t.io==="input"?Ii(g)!==void 0:g._zod.optout==="optional"))break;l--}let d=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,m?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):(o.items=c,m?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),m&&(o.maxItems=d));let{minimum:f,maximum:h}=Re(e);typeof f=="number"&&(o.minItems=f),typeof h=="number"&&(o.maxItems=h)};function Zp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let g=Zp(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let k=g.map(I=>Zp(e,I,n));k.some((I,y)=>I!==g[y])&&(t={...t,[h]:k})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(h=>typeof h=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:m,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),o&&(f.type="string",i||(f.pattern=(r.includes("number")?Qt:ni).source)),f}var jp=new WeakMap;function SI(e){let t=new Map;for(let r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);let n=new Map;for(let r of jp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=Zp(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(let r of e.seen.values())for(let o of[r.schema,r.def]){let i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}var hf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Re(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=le(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let d of a)We(o.patternProperties,j0(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=le(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=jp.get(t);l||(l=[],jp.set(t,l),t.deferred.push(()=>SI(t))),l.push(e)}o.additionalProperties=le(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&Ii(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l.map(String))}},gf=(e,t,n,r)=>{let o=e._zod.def,i=le(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Cf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},kf=Symbol();function W0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Me(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),kf):JSON.parse(s)}var yf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=W0(o.defaultValue,e,t,n,r);s!==kf&&(n.default=s)},bf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=W0(o.defaultValue,e,t,n,r);s!==kf&&(n._prefault=s)},vf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{Me(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},wf=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;le(s,t,r);let a=t.seen.get(e);a.ref=s},xf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},If=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},kc=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},_f=(e,t,n,r)=>{let o=e._zod.innerType;le(o,t,r);let i=t.seen.get(e);i.ref=o},gc={string:Wp,number:Vp,boolean:Fp,bigint:Hp,symbol:Bp,null:Up,undefined:Gp,void:Kp,never:qp,any:Yp,unknown:Jp,date:Xp,enum:Qp,literal:ef,nan:tf,template_literal:nf,file:rf,success:of,custom:sf,function:af,transform:cf,map:uf,set:lf,array:df,object:pf,union:Cc,intersection:ff,tuple:mf,record:hf,nullable:gf,nonoptional:Cf,default:yf,prefault:bf,catch:vf,pipe:wf,readonly:xf,promise:If,optional:kc,lazy:_f};function yc(e,t){if("_idmap"in e){let r=e,o=Sn({...t,processors:gc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;le(l,o)}let s={},a={registry:r,uri:t?.uri,defs:i};o.external=a;for(let c of r._idmap.entries()){let[u,l]=c;Ln(o,l),We(s,u,Pn(o,l))}if(Object.keys(i).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=Sn({...t,processors:gc});return le(e,n),Ln(n,e),Pn(n,e)}var bc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Sn({processors:gc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return le(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Ln(this.ctx,t);let r=Pn(this.ctx,t),{"~standard":o,...i}=r;return i}};var V0={};var co={};St(co,{ZodAny:()=>Gf,ZodArray:()=>Jf,ZodBase64:()=>Zc,ZodBase64URL:()=>jc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Fc,ZodBoolean:()=>io,ZodCIDRv4:()=>Oc,ZodCIDRv6:()=>zc,ZodCUID:()=>Rc,ZodCUID2:()=>Tc,ZodCatch:()=>k2,ZodCodec:()=>Di,ZodCreditCard:()=>Zf,ZodCustom:()=>Ei,ZodCustomStringFormat:()=>cr,ZodDate:()=>Pi,ZodDefault:()=>p2,ZodDiscriminatedUnion:()=>Qf,ZodE164:()=>Wc,ZodEmail:()=>Sc,ZodEmoji:()=>Pc,ZodEnum:()=>no,ZodExactOptional:()=>Gc,ZodFile:()=>c2,ZodFunction:()=>P2,ZodGUID:()=>Lc,ZodIBAN:()=>jf,ZodIPv4:()=>Ec,ZodIPv6:()=>Nc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>T2,ZodIntersection:()=>e2,ZodJWT:()=>Vc,ZodKSUID:()=>Dc,ZodLazy:()=>_2,ZodLiteral:()=>a2,ZodMAC:()=>zf,ZodMap:()=>i2,ZodNaN:()=>b2,ZodNanoID:()=>Mc,ZodNever:()=>qf,ZodNonOptional:()=>Kc,ZodNull:()=>Bf,ZodNullable:()=>d2,ZodNumber:()=>oo,ZodNumberFormat:()=>ur,ZodObject:()=>Ri,ZodOptional:()=>$i,ZodPipe:()=>Ai,ZodPrefault:()=>m2,ZodPreprocess:()=>v2,ZodPromise:()=>L2,ZodReadonly:()=>w2,ZodRecord:()=>to,ZodSet:()=>s2,ZodString:()=>ro,ZodStringFormat:()=>de,ZodSuccess:()=>C2,ZodSymbol:()=>Ff,ZodTemplateLiteral:()=>I2,ZodTransform:()=>u2,ZodTuple:()=>n2,ZodType:()=>J,ZodULID:()=>$c,ZodURL:()=>Li,ZodUUID:()=>Ht,ZodUndefined:()=>Hf,ZodUnion:()=>Ti,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>Ac,ZodXor:()=>Xf,_ZodString:()=>_c,_default:()=>f2,_function:()=>e4,any:()=>T9,array:()=>Mi,base64:()=>d9,base64url:()=>p9,bigint:()=>S9,boolean:()=>Vf,catch:()=>y2,check:()=>t4,cidrv4:()=>u9,cidrv6:()=>l9,codec:()=>Y9,creditCard:()=>m9,cuid:()=>t9,cuid2:()=>n9,currencyCode:()=>b9,custom:()=>n4,date:()=>A9,describe:()=>r4,discriminatedUnion:()=>Z9,e164:()=>f9,email:()=>B0,emoji:()=>Q0,enum:()=>Bc,exactOptional:()=>l2,file:()=>U9,float32:()=>w9,float64:()=>x9,function:()=>e4,guid:()=>U0,hash:()=>v9,hex:()=>y9,hostname:()=>k9,httpUrl:()=>X0,iban:()=>h9,instanceof:()=>i4,int:()=>xc,int32:()=>I9,int64:()=>L9,intersection:()=>t2,invertCodec:()=>J9,ipv4:()=>s9,ipv6:()=>c9,json:()=>a4,jwt:()=>g9,keyof:()=>D9,ksuid:()=>i9,lazy:()=>S2,literal:()=>B9,looseObject:()=>O9,looseRecord:()=>W9,mac:()=>a9,map:()=>V9,meta:()=>o4,nan:()=>q9,nanoid:()=>e9,nativeEnum:()=>H9,never:()=>Hc,nonoptional:()=>g2,null:()=>Uf,nullable:()=>Si,nullish:()=>G9,number:()=>Wf,object:()=>E9,optional:()=>sr,partialRecord:()=>j9,pipe:()=>Ic,prefault:()=>h2,preprocess:()=>c4,promise:()=>Q9,readonly:()=>x2,record:()=>o2,refine:()=>M2,set:()=>F9,strictObject:()=>N9,string:()=>_i,stringFormat:()=>C9,stringbool:()=>s4,success:()=>K9,superRefine:()=>R2,symbol:()=>M9,templateLiteral:()=>X9,transform:()=>Uc,tuple:()=>r2,uint32:()=>_9,uint64:()=>P9,ulid:()=>r9,undefined:()=>R9,union:()=>ao,unknown:()=>ir,url:()=>J0,uuid:()=>G0,uuidv4:()=>K0,uuidv6:()=>q0,uuidv7:()=>Y0,void:()=>$9,xid:()=>o9,xor:()=>z9});var vc={};St(vc,{endsWith:()=>Hr,gt:()=>Vt,gte:()=>mt,includes:()=>Vr,length:()=>rr,lowercase:()=>jr,lt:()=>Wt,lte:()=>ft,maxLength:()=>nr,maxSize:()=>_n,mime:()=>Ur,minLength:()=>en,minSize:()=>Ft,multipleOf:()=>In,negative:()=>pc,nonnegative:()=>mc,nonpositive:()=>fc,normalize:()=>Gr,overwrite:()=>Tt,positive:()=>dc,properties:()=>Br,property:()=>hc,regex:()=>Zr,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,toLowerCase:()=>qr,toUpperCase:()=>Yr,trim:()=>Kr,uppercase:()=>Wr});var F0=new WeakSet([Object.prototype,Error.prototype]);function wc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var H0=(e,t)=>{Sl.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);F0.has(n)||(F0.add(n),wc(n,"format",r=>o=>Xo(r,o)),wc(n,"flatten",r=>o=>Jo(r,o)),wc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Lr,2)}),wc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Lr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},PI=C("ZodError",H0),lt=C("ZodError",H0,void 0,{Parent:Error});var Sf=Tr(lt),Lf=$r(lt),Pf=Ar(lt),Mf=Dr(lt),Rf=Qs(lt),Tf=ea(lt),$f=ta(lt),Af=na(lt),Df=ra(lt),Ef=oa(lt),Nf=ia(lt),Of=sa(lt);function RI(){Ne.localeError||ye(za())}function ar(){Ne.memoizer||ye({memoizer:gi()})}var J=C("ZodType",(e,t)=>(RI(),K.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(O.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(M2(e,t))},superRefine(e,t){return this.check(R2(e,t))},overwrite(e){return this.check(Tt(e))},optional(){return sr(this)},exactOptional(){return l2(this)},nullable(){return Si(this)},nullish(){return sr(Si(this))},nonoptional(e){return g2(this,e)},array(){return Mi(this)},or(e){return ao([this,e])},and(e){return t2(this,e)},transform(e){return Ic(this,Uc(e))},default(e){return f2(this,e)},prefault(e){return h2(this,e)},catch(e){return y2(this,e)},pipe(e){return Ic(this,e)},readonly(){return x2(this)},describe(e){let t=this.clone();return Ve.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ve.get(this);let t=this.clone();return Ve.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return O.hide(this,"~standard",{...Ca(this),jsonSchema:{input:Xr(this,"input"),output:Xr(this,"output")}})},set"~standard"(e){O.own(this,"~standard",e)},parse:function e(t,n){return Sf(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Lf(this,t,n,{callee:e})},safeParse(e,t){return Pf(this,e,t)},async safeParseAsync(e,t){return Mf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){O.own(this,"spa",e)},validate(e,t){return Qo(this,e,t)},validateAsync(e,t){return ei(this,e,t)},encode:function e(t,n){return Rf(this,t,n,{callee:e})},decode:function e(t,n){return Tf(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await $f(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Af(this,t,n,{callee:e})},safeEncode(e,t){return Df(this,e,t)},safeDecode(e,t){return Ef(this,e,t)},async safeEncodeAsync(e,t){return Nf(this,e,t)},async safeDecodeAsync(e,t){return Of(this,e,t)},toJSONSchema(e){return zp(this,{})(e)},get description(){return Ve.get(this)?.description},get _def(){return this._zod.def}}),_c=C("_ZodString",(e,t)=>{Yn.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(e,n,r,o)},O.derived({format:e=>Re(e).format??null,minLength:e=>Re(e).minimum??null,maxLength:e=>Re(e).maximum??null},{regex(...e){return this.check(Zr(...e))},includes(...e){return this.check(Vr(...e))},startsWith(...e){return this.check(Fr(...e))},endsWith(...e){return this.check(Hr(...e))},min(...e){return this.check(en(...e))},max(...e){return this.check(nr(...e))},length(...e){return this.check(rr(...e))},nonempty(...e){return this.check(en(1,...e))},lowercase(e){return this.check(jr(e))},uppercase(e){return this.check(Wr(e))},trim(){return this.check(Kr())},normalize(...e){return this.check(Gr(...e))},toLowerCase(){return this.check(qr())},toUpperCase(){return this.check(Yr())},slugify(){return this.check(Jr())}})),ro=C("ZodString",(e,t)=>{Yn.init(e,t),_c.init(e,t)},{email(e){return this.check(Ha(Sc,e))},url(e){return this.check(ki(Li,e))},jwt(e){return this.check(lc(Vc,e))},emoji(e){return this.check(Ya(Pc,e))},guid(e){return this.check(Ba(Lc,e))},uuid(e){return this.check(Ua(Ht,e))},uuidv4(e){return this.check(Ga(Ht,e))},uuidv6(e){return this.check(Ka(Ht,e))},uuidv7(e){return this.check(qa(Ht,e))},nanoid(e){return this.check(Ja(Mc,e))},cuid(e){return this.check(Xa(Rc,e))},cuid2(e){return this.check(Qa(Tc,e))},ulid(e){return this.check(ec($c,e))},base64(e){return this.check(ac(Zc,e))},base64url(e){return this.check(cc(jc,e))},xid(e){return this.check(tc(Ac,e))},ksuid(e){return this.check(nc(Dc,e))},ipv4(e){return this.check(rc(Ec,e))},ipv6(e){return this.check(oc(Nc,e))},cidrv4(e){return this.check(ic(Oc,e))},cidrv6(e){return this.check(sc(zc,e))},e164(e){return this.check(uc(Wc,e))},datetime(e){return this.check(yi(Mn,e))},date(e){return this.check(bi(Rn,e))},time(e){return this.check(vi(Tn,e))},duration(e){return this.check(wi($n,e))}});function _i(e){return ep(ro,e)}var de=C("ZodStringFormat",(e,t)=>{ue.init(e,t),_c.init(e,t)}),Mn=C("ZodISODateTime",(e,t)=>{Ud.init(e,t),de.init(e,t)}),Rn=C("ZodISODate",(e,t)=>{Gd.init(e,t),de.init(e,t)}),Tn=C("ZodISOTime",(e,t)=>{Kd.init(e,t),de.init(e,t)}),$n=C("ZodISODuration",(e,t)=>{qd.init(e,t),de.init(e,t)}),Sc=C("ZodEmail",(e,t)=>{Ed.init(e,t),de.init(e,t)});function B0(e){return Ha(Sc,e)}var Lc=C("ZodGUID",(e,t)=>{Ad.init(e,t),de.init(e,t)});function U0(e){return Ba(Lc,e)}var Ht=C("ZodUUID",(e,t)=>{Dd.init(e,t),de.init(e,t)});function G0(e){return Ua(Ht,e)}function K0(e){return Ga(Ht,e)}function q0(e){return Ka(Ht,e)}function Y0(e){return qa(Ht,e)}var Li=C("ZodURL",(e,t)=>{zd.init(e,t),de.init(e,t)});function J0(e){return ki(Li,e)}function X0(e){return ki(Li,{protocol:ti,hostname:ql,...O.normalizeParams(e)})}var Pc=C("ZodEmoji",(e,t)=>{Zd.init(e,t),de.init(e,t)});function Q0(e){return Ya(Pc,e)}var Mc=C("ZodNanoID",(e,t)=>{jd.init(e,t),de.init(e,t)});function e9(e){return Ja(Mc,e)}var Rc=C("ZodCUID",(e,t)=>{Wd.init(e,t),de.init(e,t)});function t9(e){return Xa(Rc,e)}var Tc=C("ZodCUID2",(e,t)=>{Vd.init(e,t),de.init(e,t)});function n9(e){return Qa(Tc,e)}var $c=C("ZodULID",(e,t)=>{Fd.init(e,t),de.init(e,t)});function r9(e){return ec($c,e)}var Ac=C("ZodXID",(e,t)=>{Hd.init(e,t),de.init(e,t)});function o9(e){return tc(Ac,e)}var Dc=C("ZodKSUID",(e,t)=>{Bd.init(e,t),de.init(e,t)});function i9(e){return nc(Dc,e)}var Ec=C("ZodIPv4",(e,t)=>{Yd.init(e,t),de.init(e,t)});function s9(e){return rc(Ec,e)}var zf=C("ZodMAC",(e,t)=>{Xd.init(e,t),de.init(e,t)});function a9(e){return np(zf,e)}var Nc=C("ZodIPv6",(e,t)=>{Jd.init(e,t),de.init(e,t)});function c9(e){return oc(Nc,e)}var Oc=C("ZodCIDRv4",(e,t)=>{Qd.init(e,t),de.init(e,t)});function u9(e){return ic(Oc,e)}var zc=C("ZodCIDRv6",(e,t)=>{e1.init(e,t),de.init(e,t)});function l9(e){return sc(zc,e)}var Zc=C("ZodBase64",(e,t)=>{t1.init(e,t),de.init(e,t)});function d9(e){return ac(Zc,e)}var jc=C("ZodBase64URL",(e,t)=>{n1.init(e,t),de.init(e,t)});function p9(e){return cc(jc,e)}var Wc=C("ZodE164",(e,t)=>{r1.init(e,t),de.init(e,t)});function f9(e){return uc(Wc,e)}var Zf=C("ZodCreditCard",(e,t)=>{o1.init(e,t),de.init(e,t)});function m9(e){return rp(Zf,e)}var jf=C("ZodIBAN",(e,t)=>{i1.init(e,t),de.init(e,t)});function h9(e){return op(jf,e)}var Vc=C("ZodJWT",(e,t)=>{s1.init(e,t),de.init(e,t)});function g9(e){return lc(Vc,e)}var cr=C("ZodCustomStringFormat",(e,t)=>{a1.init(e,t),de.init(e,t)});function C9(e,t,n={}){return or(cr,e,t,n)}function k9(e){return or(cr,"hostname",Kl,e)}function y9(e){return or(cr,"hex",ud,e)}function b9(e){return or(cr,"currency_code",Jl,e)}function v9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=bt[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return or(cr,r,o,t)}var oo=C("ZodNumber",(e,t)=>{La.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r,o),e.isFinite=!0},O.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Re(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Re(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Re(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Re(e).format??null},{gt(e,t){return this.check(Vt(e,t))},gte(e,t){return this.check(mt(e,t))},min(e,t){return this.check(mt(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},int(e){return this.check(xc(e))},safe(e){return this.check(xc(e))},positive(e){return this.check(Vt(0,e))},nonnegative(e){return this.check(mt(0,e))},negative(e){return this.check(Wt(0,e))},nonpositive(e){return this.check(ft(0,e))},multipleOf(e,t){return this.check(In(e,t))},step(e,t){return this.check(In(e,t))},finite(){return this}}));function Wf(e){return sp(oo,e)}var ur=C("ZodNumberFormat",(e,t)=>{c1.init(e,t),oo.init(e,t)});function xc(e){return cp(ur,e)}function w9(e){return up(ur,e)}function x9(e){return lp(ur,e)}function I9(e){return dp(ur,e)}function _9(e){return pp(ur,e)}var io=C("ZodBoolean",(e,t)=>{li.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fp(e,n,r,o)});function Vf(e){return fp(io,e)}var so=C("ZodBigInt",(e,t)=>{Pa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o)},O.derived({minValue:e=>Re(e).minimum??null,maxValue:e=>Re(e).maximum??null,format:e=>Re(e).format??null},{gte(e,t){return this.check(mt(e,t))},min(e,t){return this.check(mt(e,t))},gt(e,t){return this.check(Vt(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},positive(e){return this.check(Vt(BigInt(0),e))},negative(e){return this.check(Wt(BigInt(0),e))},nonpositive(e){return this.check(ft(BigInt(0),e))},nonnegative(e){return this.check(mt(BigInt(0),e))},multipleOf(e,t){return this.check(In(e,t))}}));function S9(e){return hp(so,e)}var Fc=C("ZodBigIntFormat",(e,t)=>{u1.init(e,t),so.init(e,t)});function L9(e){return Cp(Fc,e)}function P9(e){return kp(Fc,e)}var Ff=C("ZodSymbol",(e,t)=>{l1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n,r,o)});function M9(e){return yp(Ff,e)}var Hf=C("ZodUndefined",(e,t)=>{d1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)});function R9(e){return bp(Hf,e)}var Bf=C("ZodNull",(e,t)=>{p1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o)});function Uf(e){return vp(Bf,e)}var Gf=C("ZodAny",(e,t)=>{f1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o)});function T9(){return wp(Gf)}var Kf=C("ZodUnknown",(e,t)=>{m1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)});function ir(){return xp(Kf)}var qf=C("ZodNever",(e,t)=>{h1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o)});function Hc(e){return Ip(qf,e)}var Yf=C("ZodVoid",(e,t)=>{g1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)});function $9(e){return _p(Yf,e)}var Pi=C("ZodDate",(e,t)=>{C1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),e.min=(n,r)=>e.check(mt(n,r)),e.max=(n,r)=>e.check(ft(n,r))},O.derived({minDate:e=>{let{minimum:t}=Re(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Re(e);return t?new Date(t):null}},{}));function A9(e){return Sp(Pi,e)}var Jf=C("ZodArray",(e,t)=>{ar(),k1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),e.element=t.element},{min(e,t){return this.check(en(e,t))},nonempty(e){return this.check(en(1,e))},max(e,t){return this.check(nr(e,t))},length(e,t){return this.check(rr(e,t))},unwrap(){return this.element}});function Mi(e,t){return Mp(Jf,e,t)}function D9(e){let t=e._zod.def.shape;return Bc(Object.keys(t))}var Ri=C("ZodObject",(e,t)=>{ar(),y1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o),O.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Bc(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(O.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},loose(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},strict(){return this.clone(O.mergeDefs(this._zod.def,{catchall:Hc()}))},strip(){return this.clone(O.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return O.extend(this,e)},safeExtend(e){return O.safeExtend(this,e)},merge(e){return O.merge(this,e)},pick(e){return O.pick(this,e)},omit(e){return O.omit(this,e)},partial(...e){return O.partial($i,this,e[0])},exactPartial(...e){return O.partial(Gc,this,e[0],"exactPartial")},required(...e){return O.required(Kc,this,e[0])}});function E9(e,t){let n={type:"object",shape:e??{},...O.normalizeParams(t)};return new Ri(n)}function N9(e,t){return new Ri({type:"object",shape:e,catchall:Hc(),...O.normalizeParams(t)})}function O9(e,t){return new Ri({type:"object",shape:e,catchall:ir(),...O.normalizeParams(t)})}var Ti=C("ZodUnion",(e,t)=>{di.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cc(e,n,r,o),e.options=t.options});function ao(e,t){return new Ti({type:"union",options:e,...O.normalizeParams(t)})}var Xf=C("ZodXor",(e,t)=>{Ti.init(e,t),b1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cc(e,n,r,o),e.options=t.options});function z9(e,t){return new Xf({type:"union",options:e,inclusive:!1,...O.normalizeParams(t)})}var Qf=C("ZodDiscriminatedUnion",(e,t)=>{Ti.init(e,t),w1.init(e,t)});function Z9(e,t,n){return new Qf({type:"union",options:t,discriminator:e,...O.normalizeParams(n)})}var e2=C("ZodIntersection",(e,t)=>{x1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o)});function t2(e,t){return new e2({type:"intersection",left:e,right:t})}var n2=C("ZodTuple",(e,t)=>{ar(),Ma.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new $i({type:"optional",innerType:t}))})}});function r2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new n2({type:"tuple",items:e,rest:i,...O.normalizeParams(o)})}var to=C("ZodRecord",(e,t)=>{ar(),I1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function o2(e,t,n){return!t||!t._zod?new to({type:"record",keyType:_i(),valueType:e,...O.normalizeParams(t)}):new to({type:"record",keyType:e,valueType:t,...O.normalizeParams(n)})}function j9(e,t,n){return new to({type:"record",keyType:e,valueType:t,...O.normalizeParams(n),partial:!0})}function W9(e,t,n){return new to({type:"record",keyType:e,valueType:t,mode:"loose",...O.normalizeParams(n)})}var i2=C("ZodMap",(e,t)=>{ar(),_1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Ft(...n)),e.nonempty=n=>e.check(Ft(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function V9(e,t,n){return new i2({type:"map",keyType:e,valueType:t,...O.normalizeParams(n)})}var s2=C("ZodSet",(e,t)=>{ar(),S1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o),e.min=(...n)=>e.check(Ft(...n)),e.nonempty=n=>e.check(Ft(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function F9(e,t){return new s2({type:"set",valueType:e,...O.normalizeParams(t)})}var no=C("ZodEnum",(e,t)=>{L1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Qp(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new no({...t,checks:[],...O.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new no({...t,checks:[],...O.normalizeParams(o),entries:i})}});function Bc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new no({type:"enum",entries:n,...O.normalizeParams(t)})}function H9(e,t){return new no({type:"enum",entries:e,...O.normalizeParams(t)})}var a2=C("ZodLiteral",(e,t)=>{P1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function B9(e,t){return new a2({type:"literal",values:Array.isArray(e)?e:[e],...O.normalizeParams(t)})}var c2=C("ZodFile",(e,t)=>{M1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o),e.min=(n,r)=>e.check(Ft(n,r)),e.max=(n,r)=>e.check(_n(n,r)),e.mime=(n,r)=>e.check(Ur(Array.isArray(n)?n:[n],r))});function U9(e){return Rp(c2,e)}var u2=C("ZodTransform",(e,t)=>{ar(),R1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(O.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(O.issue(s))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Uc(e){return new u2({type:"transform",transform:e})}var $i=C("ZodOptional",(e,t)=>{Ra.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sr(e){return new $i({type:"optional",innerType:e})}var Gc=C("ZodExactOptional",(e,t)=>{T1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function l2(e){return new Gc({type:"optional",innerType:e})}var d2=C("ZodNullable",(e,t)=>{$1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Si(e){return new d2({type:"nullable",innerType:e})}function G9(e){return sr(Si(e))}var p2=C("ZodDefault",(e,t)=>{A1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function f2(e,t){return new p2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var m2=C("ZodPrefault",(e,t)=>{D1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function h2(e,t){return new m2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var Kc=C("ZodNonOptional",(e,t)=>{E1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function g2(e,t){return new Kc({type:"nonoptional",innerType:e,...O.normalizeParams(t)})}var C2=C("ZodSuccess",(e,t)=>{N1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function K9(e){return new C2({type:"success",innerType:e})}var k2=C("ZodCatch",(e,t)=>{O1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function y2(e,t){return new k2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:O.constantCatch(t)})}var b2=C("ZodNaN",(e,t)=>{z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o)});function q9(e){return Pp(b2,e)}var Ai=C("ZodPipe",(e,t)=>{Ta.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),e.in=t.in,e.out=t.out});function Ic(e,t){return new Ai({type:"pipe",in:e,out:t})}var Di=C("ZodCodec",(e,t)=>{Ai.init(e,t),pi.init(e,t)});function Y9(e,t,n){return new Di({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function J9(e){let t=e._zod.def;return new Di({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var v2=C("ZodPreprocess",(e,t)=>{Ai.init(e,t),Z1.init(e,t)}),w2=C("ZodReadonly",(e,t)=>{j1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function x2(e){return new w2({type:"readonly",innerType:e})}var I2=C("ZodTemplateLiteral",(e,t)=>{W1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o)});function X9(e,t){return new I2({type:"template_literal",parts:e,...O.normalizeParams(t)})}var _2=C("ZodLazy",(e,t)=>{fi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function S2(e){return new _2({type:"lazy",getter:e})}var L2=C("ZodPromise",(e,t)=>{F1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Q9(e){return new L2({type:"promise",innerType:e})}var P2=C("ZodFunction",(e,t)=>{V1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o)});function e4(e){return new P2({type:"function",input:Array.isArray(e?.input)?r2(e?.input):e?.input??Mi(ir()),output:e?.output??ir()})}var Ei=C("ZodCustom",(e,t)=>{H1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o)});function t4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function n4(e,t){return Tp(Ei,e??(()=>!0),t)}function M2(e,t={}){return $p(Ei,e,t)}function R2(e,t){return Ap(e,t)}var r4=Dp,o4=Ep,T2=C("ZodInstanceOf",(e,t)=>{Ei.init(e,t)},{properties(e,t){return this.check(Br(e,t))}});function i4(e,t={}){let n=new T2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...O.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var s4=(...e)=>Np({Codec:Di,Boolean:io,String:ro},...e);function a4(e){let t=S2(()=>ao([_i(e),Wf(),Vf(),Uf(),Mi(t),o2(_i(),t)]));return t}function c4(e,t){return new v2({type:"pipe",in:Uc(e),out:t})}var TI={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function $I(e){ye({customError:e})}function AI(){return ye().customError}var $2;$2||($2={});var Ni={};St(Ni,{ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,date:()=>EI,datetime:()=>DI,duration:()=>OI,time:()=>NI});function DI(e){return yi(Mn,e)}function EI(e){return bi(Rn,e)}function NI(e){return vi(Tn,e)}function OI(e){return wi($n,e)}var D={...co,...vc,iso:Ni},zI=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function ZI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function u4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function jI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function WI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let o=n[1]===void 0?void 0:jI(n[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function VI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&r.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&r.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let s of i){let a=t.keySchema.safeParse(s);a.success||r.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function A2(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let r=String(e);return`${n[0]}${r.length}:${r}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let s of e){let a=A2(s,t);if(a===null)return null;i.push(a)}return`a${i.length}:[${i.join(",")}]`}let r=Object.keys(e).sort(),o=[];for(let i of r){let s=A2(e[i],t);if(s===null)return null;o.push(`${i.length}:${i}=${s}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var FI=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),HI=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Oi(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Oi):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>FI.has(t)?Oi(n):!HI.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Oi))}function l4(e){return e===1?"element":"elements"}function BI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let s=0;s<o.length;s++){let a=A2(o[s],new Set);if(a===null)continue;let c=i.get(a);if(c===void 0){i.set(a,s);continue}r.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:o,path:[s],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of o)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<i&&r.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${l4(i)}; found ${a}`,input:o,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&r.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${l4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function d4(e,t){if(e!==!1)return e===void 0||e===!0?D.any():nt(e,t)}var UI=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function p4(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return D.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=WI(o,t),s=nt(i,t);return t.refs.set(o,s),t.processing.delete(o),s}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return D.null();if(o.length===0)return D.never();if(o.length===1)return D.literal(o[0]);if(o.every(s=>typeof s=="string"))return D.enum(o);let i=o.map(s=>D.literal(s));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return p4(s,t)});return o.length===0?D.never():o.length===1?o[0]:D.union(o)}if(!n)return D.any();let r;switch(n){case"string":{let o=D.string();if(e.format){let i=e.format;i==="email"?o=o.check(D.email()):i==="uri"||i==="uri-reference"?o=o.check(D.url()):i==="uuid"||i==="guid"?o=o.check(D.uuid()):i==="date-time"?o=o.check(D.iso.datetime({offset:!0})):i==="date"?o=o.check(D.iso.date()):i==="time"?o=o.check(D.regex(UI)):i==="duration"?o=o.check(D.iso.duration()):i==="hostname"?o=o.check(D.hostname()):i==="ipv4"?o=o.check(D.ipv4()):i==="ipv6"?o=o.check(D.ipv6()):i==="mac"?o=o.check(D.mac()):i==="cidr"?o=o.check(D.cidrv4()):i==="cidr-v6"?o=o.check(D.cidrv6()):i==="base64"?o=o.check(D.base64()):i==="base64url"?o=o.check(D.base64url()):i==="e164"?o=o.check(D.e164()):i==="credit_card"?o=o.check(D.creditCard()):i==="iban"?o=o.check(D.iban()):i==="jwt"?o=o.check(D.jwt()):i==="emoji"?o=o.check(D.emoji()):i==="nanoid"?o=o.check(D.nanoid()):i==="cuid"?o=o.check(D.cuid()):i==="cuid2"?o=o.check(D.cuid2()):i==="ulid"?o=o.check(D.ulid()):i==="xid"?o=o.check(D.xid()):i==="ksuid"&&(o=o.check(D.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=D.boolean();break}case"null":{r=D.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?nt(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(i)){let f=nt(m,t);We(o,d,s.has(d)?f:f.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),f=[];for(let g of m){let k=nt(d[g],t),I=D.string().regex(new RegExp(g));f.push(D.looseRecord(I,k))}let h=[];if(Object.keys(o).length>0&&h.push(D.object(o).passthrough()),h.push(...f),h.length===0)r=D.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=D.intersection(h[0],h[1]);for(let k=2;k<h.length;k++)g=D.intersection(g,h[k]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),k=m.map(y=>new RegExp(y)),I=r;r=r.check(y=>{if(!kt(y.value))return;let b=[];for(let $ of Object.keys(y.value))g.includes($)||k.some(T=>T.test($))||b.push($);b.length&&y.issues.push({code:"unrecognized_keys",keys:b,input:y.value,inst:I})})}}else{let d=D.object(o);e.additionalProperties===!1?r=d.strict():a?r=d.catchall(a):r=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=nt(m,t)}r=VI(r,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>nt(d,t)),c=u4(a,s),u=Array.isArray(i)?void 0:d4(i,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(d=>nt(d,t)),c=u4(a,s),u=d4(e.additionalItems,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let s=nt(i,t),a=D.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=D.array(D.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=BI(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?nt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return r}function nt(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n=p4(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>nt(u,t)),c=D.union(a);n=r?D.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>nt(u,t)),c=D.xor(a);n=r?D.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:D.any();else{let a=r?n:nt(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=D.intersection(a,nt(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=D.nullable(n)),e.readOnly===!0&&(n=D.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(o[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(o[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Oi(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(o[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Oi(e.contains)&&(o.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(o[a]=e[a])}for(let a of Object.keys(e))zI.has(a)||We(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function f4(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=ZI(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Ve};return nt(n,i)}var m4=Symbol("z.visit/resolving");function zi(e,t){let n=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},r=new Map;function o(s){let a=r.get(s);if(a===m4)return new fi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,m4);let c=i(s),u=n(c,c!==s);return r.set(s,u),u}function i(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,m={};for(let h of l){let g=o(u[h]);g!==u[h]&&(d=!0),m[h]=g}let f=a.catchall;return a.catchall&&(f=o(a.catchall),f!==a.catchall&&(d=!0)),d?ce(s,{...a,shape:m,catchall:f}):s}case"array":{let u=o(a.element);return u===a.element?s:ce(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let f of u){let h=o(f);h!==f&&(l=!0),d.push(h)}let m=a.rest;return a.rest&&(m=o(a.rest),m!==a.rest&&(l=!0)),l?ce(s,{...a,items:d,rest:m}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:ce(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:ce(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let m of u){let f=o(m);f!==m&&(l=!0),d.push(f)}return l?ce(s,{...a,options:d}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:ce(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=o(a.innerType);return u===a.innerType?s:ce(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:ce(s,{...a,in:u,out:l})}case"function":{let u=o(a.input),l=o(a.output);return u===a.input&&l===a.output?s:ce(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return ce(s,{...d,getter:()=>o(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return o(e)}function h4(e){return zi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:ao(n.options)}})}function GI(e,t){if(!t?.length)return e;let n=e._zod.def;return ce(e,Mt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function g4(e){return GI(e.out,e.checks)}function KI(e){return e.in._zod.traits.has("$ZodTransform")?g4(e):e.in}function C4(e){return zi(e,{pipe:t=>KI(t._zod.def),default:(t,n)=>n?sr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function k4(e){return zi(e,{pipe:t=>g4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var D2={};St(D2,{bigint:()=>XI,boolean:()=>JI,date:()=>QI,number:()=>YI,string:()=>qI});function qI(e){return tp(ro,e)}function YI(e){return ap(oo,e)}function JI(e){return mp(io,e)}function XI(e){return gp(so,e)}function QI(e){return Lp(Pi,e)}var E2=1e4,y4=se.string().min(1).max(1024),nn=se.array(y4).max(E2),e_=se.enum(["project","chronological","machine"]),t_=se.enum(["updated","created","alpha","none"]),n_=se.enum(["default","ascending","descending"]),r_=se.enum(["active","archived"]),o_=se.enum(["muted","colour","hidden"]),i_=se.enum(["blocked","everything"]),s_=se.array(se.union([se.literal("threads"),y4.regex(/^(project|section|machine):\S+$/)])).max(E2).transform(e=>[...new Set(e)]);function Ie(e,t,n){return{schema:e,defaultValue:t,description:n}}var qc={threadLifecycles:Ie(se.array(r_).min(1).max(2).refine(e=>new Set(e).size===e.length,"Lifecycles must be unique"),["active"],'Threads shown: ["active"], ["archived"] or both. At least one is required.'),organizationMode:Ie(e_,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:Ie(se.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:Ie(t_,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:Ie(n_,"default","Sort direction: ascending or descending. A saved default reads as the field's own direction (descending for dates, ascending for alpha)."),sectionOrder:Ie(nn,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:Ie(nn,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:Ie(nn,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:Ie(s_,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:Ie(se.array(se.enum(["pinned","threads"])).max(E2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:Ie(nn,[],"Project ids whose group is collapsed."),collapsedThreadSections:Ie(nn,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:Ie(nn,[],"Machine ids whose group is collapsed."),collapsedEnvironments:Ie(nn,[],"Environment ids whose folder row is collapsed."),foldOlder:Ie(se.boolean(),!0,"Collapse older threads: whether each group's quiet roots past its 5 newest fold behind an N older row."),workingFirst:Ie(se.boolean(),!1,"Working threads first: whether working threads sort first under Updated, as bb's list does."),expandedOlder:Ie(nn,[],"Group ids and parent thread ids whose N older fold the user opened."),expandedChildren:Ie(nn,[],"Parent thread ids whose chip the user opened."),showPullRequests:Ie(se.boolean(),!0,"Whether rows show a pull request badge."),childAttention:Ie(i_,"blocked","Needs you counts every child: blocked counts a child thread that waits on you, is offline or has an orphaned failure; everything also counts every failed or finished-unread child. The same children stay out of a family's older fold, as running ones do."),harnessIcon:Ie(o_,"muted","How rows draw the harness logo: muted (monochrome), colour (the provider's tint) or hidden.")},b4=Object.keys(qc);function N2(e){return Object.hasOwn(qc,e)}function a_(e){return structuredClone(qc[e].defaultValue)}function c_(){return Object.fromEntries(b4.map(e=>[e,a_(e)]))}function O2(e,t){let n=qc[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function z2(e){let t=c_();if(e===null||typeof e!="object")return t;let n=e;for(let r of b4){if(!(r in n))continue;let o=O2(r,n[r]);o.success&&(t[r]=o.value)}return t}var u_=se.object({density:se.enum(["compact","comfortable"]).catch("compact")}),Z2="bb.thread-glance.client.v1",Zi="bb.thread-glance.preferences.v1",v4="bb.thread-list.preferences.v1";function w4(e){let t=u_.safeParse(e??{});return t.success?t.data:{density:"compact"}}function ji(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function uo(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}function x4(){let[e,t]=E(()=>w4(ji(Z2))),n=Z(r=>{t(o=>{let i={...o,...r};return uo(Z2,i),i})},[]);return[e,n]}function I4(e,t){let n=A(cl),r=A(null),o=A(void 0);return e!==null&&(e!==r.current||t!==o.current)&&(n.current=_5(n.current,t===null?void 0:e.familyOf.get(t)),r.current=e,o.current=t),n.current.heldRootId}function _4(e){let[t,n]=E(()=>Date.now());return z(()=>{let r=setInterval(()=>n(Date.now()),6e4);return()=>clearInterval(r)},[]),z(()=>{if(e===null)return;let r=e-Date.now();if(r<=0||r>2**31-1)return;let o=setTimeout(()=>n(Date.now()),r+50);return()=>clearTimeout(o)},[e]),t}var Yc=se.record(se.string(),se.number()),cT=se.object({startedAt:Yc,finishedAt:Yc,pendingAt:Yc,seenAt:Yc}),l_=140,j2=se.object({kind:se.enum(["question","approval","plan","input","failed","done"]),text:se.string().max(l_),at:se.number()}),S4=se.object({pending:j2.optional(),failed:j2.optional(),done:j2.optional()}),An={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var d_=150;function L4(){let e=hn(),[t,n]=E(()=>z2(ji(Zi))),[r,o]=E(!1),i=A(new Map),s=A(null),a=mn(),c=A(!1),u=Z(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),f=z2(m);for(let[h,g]of i.current)f[h]=g;n(f),uo(Zi,f)}finally{o(!0)}},[e]);z(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:ji(v4)})}catch{}m||await u().catch(()=>{})})(),()=>{m=!0}},[e,u]),z(()=>{a==="connected"&&(c.current&&u().catch(()=>{}),c.current=!0)},[a,u]),fn(An.preferences,m=>{let f=m;if(!N2(f?.key)||i.current.has(f.key))return;let h=O2(f.key,f.value);h.success&&n(g=>{let k={...g,[f.key]:h.value};return uo(Zi,k),k})});let l=Z(()=>{let m=[...i.current];i.current.clear();for(let[f,h]of m)e.call("setPreference",{key:f,value:h}).catch(g=>{it.error(`Couldn't save the ${f} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);z(()=>()=>{s.current!==null&&clearTimeout(s.current),l()},[l]);let d=Z(m=>{n(f=>{let h={...f,...m};return uo(Zi,h),h});for(let[f,h]of Object.entries(m))N2(f)&&i.current.set(f,h);s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,l()},d_)},[l]);return{prefs:t,hydrated:r,update:d}}var W2={};function P4(){let e=hn(),[t,n]=E(W2),r=mn(),o=A(!1),[i,s]=E(0);return z(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:W2)},()=>{}),()=>{a=!0}},[e,i]),z(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),fn(An.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:W2)}),t}var M4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},p_=new Set(Object.keys(M4));function R4(){let e=hn(),[t,n]=E(M4),r=mn(),o=A(!1),i=Z(()=>{e.call("listStamps",null).then(u=>n(u.stamps),()=>{})},[e]);z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]);let s=Z(u=>{!p_.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let d={...l[u.kind]};for(let m of u.threadIds)u.value===null?delete d[m]:d[m]=u.value;return{...l,[u.kind]:d}})},[]);fn(An.stamps,u=>s(u));let a=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:Date.now()}),e.call("markSeen",{threadIds:u}).catch(()=>{}))},[s,e]),c=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:null}),e.call("clearSeen",{threadIds:u}).catch(()=>{}))},[s,e]);return{stamps:t,markSeen:a,clearSeen:c}}function V2(e,t,n){let r=new Set,o=e;for(;o!==null&&!r.has(o);){if(o===t)return!0;r.add(o),o=n(o)}return!1}function T4(e,t,n){if(t==="pinned")return e.pinned?{type:"unchanged"}:{type:"pin",threadId:e.threadId};if(e.pinned)return{type:"unpin",threadId:e.threadId};if(n.mode==="chronological"&&(t==="threads"||t.startsWith("section:"))){let r=t==="threads"?null:t.slice(8);return r===e.sectionId&&e.parentThreadId===null?{type:"unchanged"}:{type:"move",threadId:e.threadId,sectionId:r,detach:e.parentThreadId!==null}}return e.parentThreadId!==null?{type:"detach",threadId:e.threadId}:{type:"unchanged"}}function F2(e,t,n){if(t.kind==="group")return T4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return V2(t.threadId,e.threadId,n.parentOf)?{type:"blocked"}:e.parentThreadId===t.threadId?{type:"unchanged"}:{type:"nest",threadId:e.threadId,parentThreadId:t.threadId,unpinFirst:e.pinned};if(t.inPinned&&n.pinnedOrder.includes(t.threadId)){if(!e.pinned)return{type:"pin",threadId:e.threadId};let r=n.pinnedOrder.filter(u=>u!==e.threadId),o=r.indexOf(t.threadId),i=t.zone==="before"?o:o+1,s=r[i-1]??null,a=r[i]??null,c=n.pinnedOrder.indexOf(e.threadId);return(n.pinnedOrder[c-1]??null)===s&&(n.pinnedOrder[c+1]??null)===a?{type:"unchanged"}:{type:"reorder-pinned",threadId:e.threadId,previousThreadId:s,nextThreadId:a}}return T4(e,n.groupOfThread(t.threadId),n)}var f_=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],$4={question:{icon:"CircleQuestion",label:"Asks a question"},approval:{icon:"SecurityCheck",label:"Needs approval"},plan:{icon:"ListTodo",label:"Plan to review"},input:{icon:"MessageQuestion",label:"Needs your input"}},A4=new Set(["pending","starting","active","stopping","idle","error"]),H2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),m_=new Set([...A4,...H2,"waiting-for-host"]);function lr(e){return A4.has(e.status)?e.status:"idle"}function B2(e){return m_.has(e.runtimeStatus)?e.runtimeStatus:lr(e)}function Jc(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function h_(e){return H2.has(B2(e))}function g_(e){return B2(e)==="waiting-for-host"}function D4(e,t){let n=lr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:Wi(e,t)}function Wi(e,t){if(e.parentThreadId===null||lr(e)!=="idle"||e.id===t.activeThreadId)return!1;let n=t.finishedAt[e.id];return n===void 0?!1:n>Math.max(e.lastReadAt??0,t.seenAt[e.id]??0)}var C_=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function _e(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function k_(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function E4(e,t){let n=lr(e),r=B2(e),o=Jc(e),i={sendAt:null};if(e.hasPendingInteraction){let s=$4[t.needsKind??"input"]??$4.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"waits-on-you",label:s.label,glyph:_e(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:_e("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:_e("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:_e("CloudOff","attention"),...i};if(H2.has(r)){let s=k_(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:_e("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:_e("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:_e("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:_e("Loading","working",!0),...i}}for(let[s,a,c]of C_)if(e.activity[s]>0)return{kind:"background",label:c,glyph:_e(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:_e("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:_e("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:_e("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:_e("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:_e(null,"none"),...i}}function N4(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function O4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),lr(e)==="error"&&t&&n.add("unread-failed"),Jc(e)==="failed"&&n.add("queue-failed"),g_(e)&&n.add("offline"),h_(e)&&n.add("working"),t&&n.add("unread"),n}function z4(e){let t=new Set;return e.has("waits-on-you")&&t.add("waits-on-you"),e.has("unread-failed")&&t.add("unread-failed"),t}function U2(e){return f_.find(t=>e.has(t))??null}function G2(e){switch(e){case"waits-on-you":return"attention";case"unread-failed":case"queue-failed":return"destructive";case"working":return"working";default:return"neutral"}}var Xc={"waits-on-you":{..._e("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{..._e("CircleX","destructive"),label:"failed"},"queue-failed":{..._e("AlertTriangle","destructive"),label:"queued message failed"},offline:{..._e("CloudOff","attention"),label:"machine offline"},working:{..._e("Loading","working",!0),label:"working"},unread:{..._e("dot","none"),label:"unread"}};function Qc(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function Z4(e,t){let n=t.thread.createdAt-e.thread.createdAt;return n!==0?n:e.thread.id<t.thread.id?-1:e.thread.id>t.thread.id?1:0}function y_(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function b_(e,t){let n=t.familyAttention-e.familyAttention;return n!==0?n:Z4(e,t)}function rn(e){return e==="none"?"updated":e}function eu(e){return rn(e)==="alpha"?"ascending":"descending"}function K2(e,t){return t==="default"?eu(e):t}function q2(e){let t=rn(e.field),n=K2(t,e.direction)===eu(t)?1:-1,r=t==="alpha"?y_:t==="created"?Z4:b_;return(o,i)=>{if(t==="updated"&&e.workingFirst){let s=o.thread.status==="active",a=i.thread.status==="active";if(s!==a)return s?-1:1}return n*r(o,i)}}function j4(e,t){if(e.pinSortKey!==null&&t.pinSortKey!==null&&e.pinSortKey!==t.pinSortKey)return e.pinSortKey<t.pinSortKey?-1:1;let n=(t.pinnedAt??0)-(e.pinnedAt??0);if(n!==0)return n;let r=t.createdAt-e.createdAt;return r!==0?r:e.id<t.id?-1:e.id>t.id?1:0}function W4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var v_={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function Y2(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function V4(e,t){if(e.hasPendingInteraction){let n=Y2(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:v_[n],text:r,tone:"attention"}}if(lr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return Jc(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function F4(e){return e?.done??null}var w_=new Set(["working","background"]);function H4(e){return e.pinnedAt!==null||e.isPinned}function x_(e,t){let n=new Set([e.id]),r=e.parentThreadId,o=null,i=!1;for(;r!==null;){if(n.has(r))return null;n.add(r);let s=t.get(r);if(s===void 0)break;s.isHidden||(o??=s.id,H4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&H4(e)&&!i?null:o}function B4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=D4(l,e),m=E4(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:Y2(e.notes?.[l.id])}),f=O4(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?z4(f):f,needsYou:new Set,quiet:Qc(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:x_(l,t),note:V4(l,e.notes?.[l.id])})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.needsYou=w5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&v5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.quietIgnoringOpen=d===void 0||r==="everything"?Qc(l.state,l.unread,!1):l.thread.isArchived||!w_.has(l.state.kind)&&l.needsYou.size===0}let o=new Map,i=[];for(let l of n.values()){if(l.parentId===null){l.thread.isHidden||i.push(l);continue}let d=o.get(l.parentId)??[];d.push(l.thread.id),o.set(l.parentId,d)}for(let l of o.values())l.sort((d,m)=>W4(t.get(d),t.get(m)));let s=new Map,a=(l,d)=>{let m=s.get(l);if(m!==void 0)return m;let f=[],h=new Set,g=0,k=!0;d.add(l);for(let y of o.get(l)??[]){if(d.has(y))continue;let b=n.get(y),$=a(y,d);if(f.push(b,...$.descendants),!b.thread.isArchived){for(let T of b.needsYou)h.add(T);b.flags.has("working")&&h.add("working")}for(let T of $.flags)h.add(T);(b.thread.isHidden?b.needsYou.size>0:!b.quietIgnoringOpen)&&(k=!1),b.thread.isHidden||(g+=1),g+=$.visibleCount,$.quietIgnoringOpen||(k=!1)}d.delete(l);let I={descendants:f,flags:h,visibleCount:g,quietIgnoringOpen:k};return s.set(l,I),I};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:d,flags:m,visibleCount:f}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,k=Qc(l.state,l.unread,!1),I=l.isActive,y=new Set;for(let T of d){if(!T.thread.isArchived)for(let w of T.needsYou)y.add(w);h=Math.max(h,T.thread.latestAttentionAt),T.isActive&&(I=!0),T.thread.isHidden?T.needsYou.size>0&&(g=k=!1):(T.quiet||(g=!1),T.quietIgnoringOpen||(k=!1))}let b=new Set(m);if(!l.thread.isArchived){for(let T of l.needsYou)b.add(T),y.add(T);l.flags.has("working")&&b.add("working")}let $={root:l,descendants:d,descendantFlags:m,flags:b,needsYouFlags:y,visibleDescendantCount:f,latestAttentionAt:h,quiet:g&&!I,quietIgnoringOpen:k,containsActive:I};c.push($),u.set(l.thread.id,$);for(let T of d)u.set(T.thread.id,$)}return{infos:n,children:o,families:c,familyOf:u,subtrees:s}}function lo(e,t,n=null){let r=[],o=new Set([e]),i=t.get(e)?.parentId??null;for(;i!==null&&i!==n&&!o.has(i);)r.push(i),o.add(i),i=t.get(i)?.parentId??null;return r}var $t="pinned",vt="threads";function I_(e){return e.pinnedAt!==null||e.isPinned}function U4(e){return e.find(t=>t.isPersonal)??null}function tu(e,t){if(I_(e)&&!e.isHidden)return $t;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?vt:`project:${n.id}`}case"chronological":return e.sectionId===null?vt:`section:${e.sectionId}`;case"machine":return e.host===null?vt:`machine:${e.host.id}`}}function G4(e,t){let n=U4(e.projects);switch(e.mode){case"project":return e.projects.filter(r=>!r.isPersonal).map(r=>({id:`project:${r.id}`,kind:"project",label:r.name,entityId:r.id,newThreadProjectId:r.id,newThreadSectionId:null}));case"chronological":{let r=new Set(e.sections.map(s=>s.id)),o=[...e.sections];t&&o.sort((s,a)=>s.name.localeCompare(a.name));let i=o.map(s=>({id:`section:${s.id}`,kind:"section",label:s.name,entityId:s.id,newThreadProjectId:n?.id??null,newThreadSectionId:s.id}));for(let s of e.threads)s.sectionId===null||r.has(s.sectionId)||(r.add(s.sectionId),i.push({id:`section:${s.sectionId}`,kind:"section",label:"Section",entityId:s.sectionId,newThreadProjectId:n?.id??null,newThreadSectionId:s.sectionId}));return i}case"machine":{let r=new Map;for(let o of e.threads)o.host!==null&&!r.has(o.host.id)&&r.set(o.host.id,o.host.name);return[...r].map(([o,i])=>({id:`machine:${o}`,kind:"machine",label:i||"Unknown machine",entityId:o,newThreadProjectId:null,newThreadSectionId:null}))}}}function J2(e,t){return e===$t?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:U4(t)?.id??null,newThreadSectionId:null}}var __={project:"projects",chronological:"sections",machine:"machines"},Vi={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function K4(e,t,n){let r=__[e],o=new Set(n),i=new Set(t),s=[],a=u=>{s.includes(u)||s.push(u)};for(let u of t)if(u===r)for(let l of n)i.has(l)||a(l);else(u===$t||u===vt||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((d,m)=>{o.has(d)&&(u=m)});let l=u>=0?u+1:s.includes(vt)?s.indexOf(vt):s.length;s.splice(l,0,...c)}return s.includes($t)||s.unshift($t),s.includes(vt)||s.push(vt),s}function X2(e,t,n,r){if(t===n)return[...e];let o=e.filter(s=>s!==t),i=o.indexOf(n);return i<0?[...e]:(o.splice(r==="before"?i:i+1,0,t),o)}function nu(e,t){switch(e.kind){case"pinned":case"threads":return t.collapsedSections.includes(e.kind);case"project":return t.collapsedProjects.includes(e.entityId);case"section":return t.collapsedThreadSections.includes(e.id);case"machine":return t.collapsedMachines.includes(e.entityId)}}function Q2(e,t){let n=(r,o)=>r.includes(o)?r.filter(i=>i!==o):[...r,o];switch(e.kind){case"pinned":case"threads":return{collapsedSections:n(t.collapsedSections,e.kind)};case"project":return{collapsedProjects:n(t.collapsedProjects,e.entityId)};case"section":return{collapsedThreadSections:n(t.collapsedThreadSections,e.id)};case"machine":return{collapsedMachines:n(t.collapsedMachines,e.entityId)}}}var N={archive:"Archive",unarchive:"ArchiveRestore",more:"MoreHorizontal",openInSplit:"Columns2",copy:"Copy",link:"ExternalLink",markRead:"MailOpen",markUnread:"Mail",pin:"Pin",unpin:"PinOff",moveToSection:"SectionMove",rename:"Edit",remove:"Trash2",details:"Info",crossGroup:"FolderExport",hidden:"EyeOff",show:"Eye",expand:"ChevronRight",collapse:"ChevronDown",moveUp:"ChevronUp",newThread:"Plus",newSection:"SectionAdd",settings:"Settings",customize:"SlidersHorizontal",check:"Check",pullRequest:"GitPullRequest",branch:"GitBranch",worktree:"FolderGit",machine:"Laptop",environmentFallback:"Zap",filter:"FilterHorizontal",drag:"DragDropVertical",move:"MoveTo",open:"ArrowUpRight"},NT=Object.values(N);function q4(e){let{thread:t}=e,n=t.archivedAt!==null||t.isArchived,r=t.pinnedAt!==null||t.isPinned,o=[];return o.push({action:"details",label:"Details",icon:N.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:N.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:N.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:N.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:N.markRead}:{action:"mark-unread",label:"Mark unread",icon:N.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:N.unpin}:{action:"pin",label:"Pin",icon:N.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:N.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:N.move}),o.push({action:"rename",label:"Rename",icon:N.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:N.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:N.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:N.remove,destructive:!0}),o}var Y4=20;function J4(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function X4(e){let t=e.displayName?.trim()||e.id,n=J4(t),r=J4(e.id),o=(n[0]??e.id)[0]??"?",i=[],s=a=>{if(a===void 0)return;let c=(o+a).toUpperCase();i.includes(c)||i.push(c)};s((n[0]??"")[1]);for(let a of n.slice(1))s(a[0]);for(let a of r)for(let c of a)s(c);for(let a of(n[0]??"").slice(2))s(a);return i.length===0&&i.push(o.toUpperCase()),i}function Q4(e){let t=new Map,n=new Set;for(let r of e){let o=X4(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function e8(e,t){return t.get(e)??X4({id:e})[0]}function Fi(e,t){return e.filter(n=>n!==t)}function t8(e,t){return n=>lo(n,e.infos).includes(t)}function n8(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:Fi(t.expandedChildren,r)},drop:t8(n,r)}:{patch:{expandedChildren:[...Fi(t.expandedChildren,r),r]},drop:null}}function r8(e,t,n,r){if(e.scope==="reveal")return{patch:{expandedChildren:[...Fi(t.expandedChildren,e.scopeId),e.scopeId]},drop:null};if(!e.expanded)return{patch:{expandedOlder:[...Fi(t.expandedOlder,e.scopeId),e.scopeId]},drop:null};let o={expandedOlder:Fi(t.expandedOlder,e.scopeId)};if(e.scope==="family")return{patch:o,drop:t8(r,e.scopeId)};let i=new Set;for(let a of r.families)a.quietIgnoringOpen&&i.add(a.root.thread.id);let s=new Set(n?.rootIds??[]);return{patch:o,drop:a=>{let c=r.familyOf.get(a);return c!==void 0&&i.has(c.root.thread.id)&&s.has(c.root.thread.id)}}}function o8(e,t,n){let r=new Set(e.rootIds),o=i=>{let s=n.familyOf.get(i);return s!==void 0&&r.has(s.root.thread.id)};return e.collapsed?{patch:nu(e.descriptor,t)?Q2(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:Q2(e.descriptor,t),drop:o}}function i8(e,t){let n=[],r=[];for(let o of e)for(let i of[o.root,...o.descendants])!i.unread||i.thread.isArchived||(n.push(i.thread.id),Wi(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}var em={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function s8(e){let t={...em};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.needsYou;o.has("waits-on-you")&&(t.waitsOnYou+=1),(o.has("unread-failed")||o.has("queue-failed"))&&(t.failed+=1),o.has("offline")&&(t.offline+=1),r.flags.has("working")&&(t.working+=1),o.has("unread")&&(t.unread+=1)}return t}function a8(e,t){return{waitsOnYou:e.waitsOnYou+t.waitsOnYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}function c8(e,t){return{waitsOnYou:e.waitsOnYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}function dr(e){return 8+e*12}function u8(e){return dr(e)+8}function tm(e){return e.map((t,n)=>{let r=e[n+1],o=[];for(let i=0;i<=t;i+=1){let s=r!==void 0&&r>i;i===t?o.push(s?"start":null):o.push(s?"full":"end")}return o})}function l8(e,t){let n=e>0;return{small:n,muted:n&&!t.unread&&!t.active}}var S_=5,L_=3,p8="needs-you";function P_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function M_(e,t,n){let r=t.thread,o=n.thread;if(t===n)return null;switch(e.prefs.organizationMode){case"project":return r.projectId===o.projectId?null:`In project ${e.projectNames.get(r.projectId)??"another project"}`;case"chronological":return r.sectionId===o.sectionId?null:r.sectionId===null?"In Threads":`In section ${e.sectionNames.get(r.sectionId)??"another section"}`;case"machine":return(r.host?.id??null)===(o.host?.id??null)?null:r.host===null?"On no machine":`On machine ${r.host.name}`}}function ru(e,t,n,r){return{type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:P_(e,t.parentId),chip:r.chip,rails:[],hiddenBadge:t.thread.isHidden,crossGroupLabel:M_(e,t,n),homeGroupLabel:null,projectId:t.thread.projectId}}function R_(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.needsYou.size>0)}function nm(e,t){return e.forest.subtrees.get(t)}function T_(e,t,n){let r=t.thread.id,o=R_(e,r),i=h=>e.revealIds.has(h.thread.id)||e.revealPath.has(h.thread.id),s=(h,g,k)=>g>0?{type:"older",key:`older:${h}:${r}`,scopeId:r,scope:h,count:g,expanded:k,depth:n,rails:[]}:null;if(!e.expandedChildren.has(r)){let h=o.filter(i),g=o.filter(k=>!i(k)&&!k.thread.isHidden).length;return{shown:h,older:h.length>0?s("reveal",g,!1):null}}let a=h=>h.quietIgnoringOpen&&nm(e,h.thread.id).quietIgnoringOpen,c=new Set;for(let h of o)(h.thread.isHidden||!a(h))&&c.add(h.thread.id);let u=o.filter(h=>!c.has(h.thread.id)&&!h.thread.isHidden).sort((h,g)=>g.thread.createdAt-h.thread.createdAt).slice(0,L_);for(let h of u)c.add(h.thread.id);let l=e.expandedOlder.has(r),d=h=>c.has(h.thread.id)||i(h)||e.activePath.has(h.thread.id),m=o.filter(h=>!d(h)).length;return{shown:l?o:o.filter(d),older:s("family",m,l)}}function $_(e){let t=e.environment;return t===null?"Environment":t.name?t.name:t.branchName?t.branchName:t.path?t.path.split(/[\\/]/).filter(Boolean).pop()??"Environment":"Environment"}function f8(e,t,n){if(!e.prefs.environmentGrouping)return t.flatMap(s=>s.rows);let r=new Map;for(let s of t){let a=s.info.thread.environment;a?.isWorktree===!0&&a.id!==null&&r.set(a.id,(r.get(a.id)??0)+1)}let o=[],i=new Set;for(let s of t){let a=s.info.thread.environment,c=a?.isWorktree===!0?a.id:null;if(c===null||(r.get(c)??0)<2){o.push(...s.rows);continue}if(i.has(c))continue;i.add(c);let u=t.filter(m=>m.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),d=new Set;for(let m of u)for(let f of m.flags)d.add(f);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:$_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(m=>m.info.thread.id),collapsed:l,flag:l?U2(d):null,depth:n,rails:[]}),!l)for(let m of u)for(let f of m.rows)o.push({...f,depth:f.depth+1})}return o}function A_(e,t){let n=[];for(let r of t){let o=r.thread.providerId;if(!(r.thread.isHidden||o===e.thread.providerId||n.includes(o))&&(n.push(o),n.length===3))break}return n}function m8(e,t,n){let r=nm(e,t.thread.id);return r.visibleCount>0||r.descendants.some(i=>i.thread.isHidden&&i.needsYou.size>0)?{count:r.visibleCount,flag:U2(r.flags),expanded:n,providerIds:A_(t,r.descendants)}:null}function D_(e,t){let n=new Set([...t.needsYou,...nm(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function h8(e,t,n,r){let{shown:o,older:i}=T_(e,n,r),s=o.map(c=>({info:c,flags:D_(e,c),rows:[ru(e,c,t.root,{depth:r,nested:r>1,chip:m8(e,c,e.expandedChildren.has(c.thread.id))}),...h8(e,t,c,r+1)]})),a=f8(e,s,r);return i!==null&&a.push(i),a}function E_(e,t){let n=t.root,r=m8(e,n,e.expandedChildren.has(n.thread.id));return[ru(e,n,n,{depth:0,nested:!1,chip:r}),...h8(e,t,n,1)]}function N_(e,t){return{info:t.root,rows:E_(e,t),flags:t.flags}}function d8(e){let t=e.needsYouFlags;return t.has("waits-on-you")?0:t.has("unread-failed")||t.has("queue-failed")?1:t.has("offline")?2:t.has("unread")?3:4}function O_(e,t,n){let r=t.root,o=new Set([r.thread.id]);for(let c of t.descendants)if(!(!(!c.thread.isArchived&&c.needsYou.size>0)&&!c.isActive)){o.add(c.thread.id);for(let l of lo(c.thread.id,e.forest.infos,r.thread.id))o.add(l)}let i=[{...ru(e,r,r,{depth:0,nested:!1,chip:null}),homeGroupLabel:n}],s=(c,u)=>{for(let l of e.forest.children.get(c)??[])o.has(l)&&(i.push(ru(e,e.forest.infos.get(l),r,{depth:u,nested:u>1,chip:null})),s(l,u+1))};s(r.thread.id,1);let a=t.descendants.filter(c=>!c.thread.isHidden&&!o.has(c.thread.id)).length;return a>0&&i.push({type:"left-out",key:`left-out:${r.thread.id}`,scopeId:r.thread.id,count:a,depth:1,rails:[]}),i}function z_(e,t,n){if(t.length===0)return null;let r=q2({field:e.prefs.chronologicalSort,direction:"default",workingFirst:e.prefs.workingFirst}),o=[...t].sort((c,u)=>d8(c)-d8(u)||r({thread:c.root.thread,familyAttention:c.latestAttentionAt},{thread:u.root.thread,familyAttention:u.latestAttentionAt})),i={},s=o.flatMap(c=>{let u=n(c),l=O_(e,c,u.label);for(let d of l)d.type==="thread"&&(i[d.info.thread.id]=u.id);return l}),a=tm(s.map(c=>c.depth));return{familyCount:o.length,rows:s.map((c,u)=>({...c,rails:a[u]})),homeGroupIds:i}}function Z_(e,t,n,r,o){let i=s8(n),s=nu(t,e.prefs),a=r.some(y=>e.targets.has(y.root.thread.id)||y.descendants.some(b=>e.targets.has(b.thread.id))),c=s&&!a,u=t.id===$t,l=[...r];u?l.sort((y,b)=>j4(y.root.thread,b.root.thread)):l.sort((y,b)=>e.compare({thread:y.root.thread,familyAttention:y.latestAttentionAt},{thread:b.root.thread,familyAttention:b.latestAttentionAt}));let d=l,m=null;if(!u&&e.prefs.foldOlder){let y=l.filter(R=>R.quietIgnoringOpen&&!R.root.thread.isArchived),b=rn(e.prefs.chronologicalSort)==="created",$=R=>b?R.root.thread.createdAt:R.latestAttentionAt,T=new Set([...y].sort((R,V)=>$(V)-$(R)).slice(0,S_)),w=y.filter(R=>!T.has(R)&&!R.containsActive);if(w.length>0){let R=e.expandedOlder.has(t.id)||w.some(Y=>e.targets.has(Y.root.thread.id)||Y.descendants.some(ne=>e.targets.has(ne.thread.id))),V=new Set(w);R||(d=l.filter(Y=>!V.has(Y))),m={type:"older",key:`older:group:${t.id}`,scopeId:t.id,scope:"group",count:w.length,expanded:R,depth:0,rails:[]}}}let h=d.map(y=>N_(e,y)),g=f8(e,h,0),k=tm(g.map(y=>y.depth)),I=g.map((y,b)=>({...y,rails:k[b]}));return m!==null&&I.push(m),{descriptor:t,counters:i,userCollapsed:s,collapsed:c,hidden:o,rows:I,rootIds:n.map(y=>y.root.thread.id)}}function g8(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[w,R]of e.targets)if(!(R!=="reveal"||!t.infos.has(w))){r.add(w);for(let V of lo(w,t.infos))o.add(V)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let w of lo(e.activeThreadId,t.infos))i.add(w)}let s={...e,compare:q2({field:n.chronologicalSort,direction:n.sortDirection,workingFirst:n.workingFirst}),expandedChildren:new Set(n.expandedChildren),expandedOlder:new Set(n.expandedOlder),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(w=>[w.id,w.name])),sectionNames:new Map(e.sections.map(w=>[w.id,w.name]))},a=new Map,c=new Map,u=[],l=e.activeThreadId===null?null:t.familyOf.get(e.activeThreadId)?.root.thread.id??null;for(let w of t.families){let R=tu(w.root.thread,{mode:n.organizationMode,projects:e.projects}),V=a.get(R)??[];V.push(w),a.set(R,V),c.set(w,R),I5(w,e.heldRootId,l)&&u.push(w)}let d=new Set(u),m=rn(n.chronologicalSort)==="alpha",f=G4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},m),h=new Map(f.map(w=>[w.id,w]));h.set($t,J2($t,e.projects)),h.set(vt,J2(vt,e.projects));let g=K4(n.organizationMode,n[Vi[n.organizationMode]],f.map(w=>w.id)),k=new Set(n.hiddenGroups),I=[],y=[],b=em;for(let w of g){let R=h.get(w);if(R===void 0)continue;let V=a.get(w)??[],Y=V.filter(j=>!d.has(j));if(Y.length===0&&(w===$t||w===vt&&n.organizationMode!=="chronological"))continue;let ne=w!==$t&&k.has(w),oe=Z_(s,R,V,Y,ne);ne?(y.push(oe),b=a8(b,oe.counters)):I.push(oe)}let $=new Set;for(let w of e.threads)w.host!==null&&$.add(w.host.id);return{needsYou:z_(s,u,w=>h.get(c.get(w))),groups:I,more:y,moreCounters:b,order:g,multiHost:$.size>1}}function C8(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function j_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function ou(e,t){if(Object.is(e,t))return e;if(Array.isArray(e)&&Array.isArray(t)){let n=e.length===t.length,r=t.map((o,i)=>{let s=i<e.length?ou(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return j_(e,t)?e:t;if(C8(e)&&C8(t)){let n=Object.keys(t),r=n.length===Object.keys(e).length,o={};for(let i of n){i in e||(r=!1);let s=i in e?ou(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function y8(e,t){let n=new Map(e.map(i=>[i.key,i])),r=e.length===t.length,o=t.map((i,s)=>{let a=n.get(i.key),c=a===void 0?i:ou(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function rm(e,t,n){let r={...t},o=e,i=Object.keys(r).length===Object.keys(o).length;for(let s of Object.keys(r))s in o||(i=!1),r[s]=s in n?n[s]:ou(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function W_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function k8(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:rm(i,o,{rows:y8(i.rows,o.rows)})});return W_(e,r)?e:r}function V_(e,t){return e===null||t===null?t:rm(e,t,{rows:y8(e.rows,t.rows)})}function b8(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return rm(e,t,{needsYou:V_(e.needsYou,t.needsYou),groups:k8(e.groups,n,t.groups),more:k8(e.more,n,t.more)})}var iu=we({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},familyOf:()=>{}});var om=globalThis.__bbPluginRuntime;if(om==null||om.radixAlertDialog==null)throw new Error('Cannot load "@radix-ui/react-alert-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var su=om.radixAlertDialog,o$="default"in su?su.default:su,{Action:im,AlertDialog:i$,AlertDialogAction:s$,AlertDialogCancel:a$,AlertDialogContent:c$,AlertDialogDescription:u$,AlertDialogOverlay:l$,AlertDialogPortal:d$,AlertDialogTitle:p$,AlertDialogTrigger:f$,Cancel:sm,Content:am,Description:cm,Overlay:um,Portal:v8,Root:w8,Title:lm,Trigger:F_,createAlertDialogScope:m$}=su;var x8=w8;var B_=v8,I8=H(({className:e,...t},n)=>p(um,{className:S("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n,...Ee()}));I8.displayName=um.displayName;var dm=H(({className:e,...t},n)=>x(B_,{children:[p(I8,{}),p(am,{ref:n,...Ee(),className:S("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));dm.displayName=am.displayName;var pm=({className:e,...t})=>p("div",{className:S("flex flex-col space-y-2 text-center sm:text-left",e),...t});pm.displayName="AlertDialogHeader";var fm=({className:e,...t})=>p("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fm.displayName="AlertDialogFooter";var mm=H(({className:e,...t},n)=>p(lm,{ref:n,className:S("text-lg font-semibold",e),...t}));mm.displayName=lm.displayName;var hm=H(({className:e,...t},n)=>p(cm,{ref:n,className:S("text-sm text-muted-foreground",e),...t}));hm.displayName=cm.displayName;var gm=H(({className:e,...t},n)=>p(im,{ref:n,className:S(Ds(),e),...t}));gm.displayName=im.displayName;var Cm=H(({className:e,...t},n)=>p(sm,{ref:n,className:S(Ds({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Cm.displayName=sm.displayName;var km=globalThis.__bbPluginRuntime;if(km==null||km.radixDialog==null)throw new Error('Cannot load "@radix-ui/react-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var au=km.radixDialog,b$="default"in au?au.default:au,{Close:ym,Content:_8,Description:bm,Dialog:v$,DialogClose:w$,DialogContent:x$,DialogDescription:I$,DialogOverlay:_$,DialogPortal:S$,DialogTitle:L$,DialogTrigger:P$,Overlay:vm,Portal:S8,Root:L8,Title:P8,Trigger:M8,WarningProvider:M$,createDialogScope:R$}=au;var G_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Hi=H(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:s=!1,icon:a,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:l=!1,...d},m)=>{let f=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=f!==void 0?{strokeWidth:f,stroke:"currentColor"}:{},g={ref:m,...G_,width:t,height:t,color:c||e,className:o,...h,...d},I=[...s&&i?i:a].sort(([,y],[,b])=>{let $=y.opacity!==void 0;return b.opacity!==void 0?1:$?-1:0}).map(([y,b])=>{let $=b.opacity!==void 0,T=$&&!l?b.opacity:void 0,w=u?{...b.stroke!==void 0?{stroke:$?u:c||e}:{fill:$?u:c||e}}:{};return So(y,{...b,...h,...w,opacity:T,key:b.key})});return So("svg",g,I)});Hi.displayName="HugeiconsIcon";var R8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var T8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var $8=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 17L12 10.5M9 14.5C9.58984 15.1068 11.1597 17.5 12 17.5C12.8403 17.5 14.4102 15.1068 15 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var A8=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var D8=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var E8=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var N8=[["path",{d:"M13 7H11C8.19108 7 6.78661 7 5.77772 7.67412C5.34096 7.96596 4.96596 8.34096 4.67412 8.77772C4 9.78661 4 11.1911 4 14C4 16.8089 4 18.2134 4.67412 19.2223C4.96596 19.659 5.34096 20.034 5.77772 20.3259C6.78661 21 8.19108 21 11 21H13C15.8089 21 17.2134 21 18.2223 20.3259C18.659 20.034 19.034 19.659 19.3259 19.2223C20 18.2134 20 16.8089 20 14C20 11.1911 20 9.78661 19.3259 8.77772C19.034 8.34096 18.659 7.96596 18.2223 7.67412C17.2134 7 15.8089 7 13 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 14H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M15 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M12 7C12 5.11438 12 4.17157 11.4142 3.58579C10.8284 3 9.88562 3 8 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]];var wm=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 12H8.5M12 8.5V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var O8=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1257 12H12.0007M8.125 12H8M16.125 12H16M12.2507 12C12.2507 12.1381 12.1388 12.25 12.0007 12.25C11.8627 12.25 11.7507 12.1381 11.7507 12C11.7507 11.8619 11.8627 11.75 12.0007 11.75C12.1388 11.75 12.2507 11.8619 12.2507 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var z8=[["path",{d:"M3.01309 4.99084C2.89323 6.05084 3.55249 8.42285 6.48923 8.42285",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5951 8.38081C18.8357 8.57881 21.1132 7.49881 20.9957 5.00281",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.9928 20.9989C21.0528 19.9429 20.1777 17.5549 17.599 17.4229",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.45163 17.4708C5.65013 17.2308 3.01306 18.3348 3.01306 20.9988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9.3299 6.11884C9.35388 5.09884 9.84533 2.99884 12.0029 2.99884C13.9208 2.99884 14.5861 4.61884 14.676 6.11884M6.26131 9.41884C6.38118 8.63884 7.29216 6.81484 9.36586 6.63484C11.4635 6.55564 14.3403 6.58684 14.8797 6.67084C15.5869 6.73377 17.2951 7.43884 17.7506 9.41884C17.9124 10.4388 17.8285 11.8788 17.8524 12.7188C17.8165 13.5588 17.9207 15.2623 17.7565 16.1388C17.6367 17.0988 16.9894 18.4668 16.1024 19.3068C14.7838 20.7228 11.1639 22.2108 8.03534 19.4508C6.41713 17.8908 6.30925 16.3788 6.18939 15.7788C6.15725 15.4571 6.15875 13.8763 6.16541 12.3588C6.14144 11.046 6.17235 9.78063 6.26131 9.41884Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M3.01306 12.8988H5.9498",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M20.9929 12.8988L18.1161 12.8988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M12.0033 16.4988L12.0033 20.2788",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var cu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Z8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var j8=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var W8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var V8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var xm=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var F8=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var H8=[["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C11.3151 2 10.6462 2.06886 10 2.20004M21.8 10C21.9311 10.6462 22 11.3151 22 12C22 12.6849 21.9311 13.3538 21.8 14M14 21.8C13.3538 21.9311 12.6849 22 12 22C11.3151 22 10.6462 21.9311 10 21.8M2.20004 14C2.06886 13.3538 2 12.6849 2 12C2 11.3151 2.06886 10.6462 2.20004 10M17.5 3.64702C18.6332 4.39469 19.6053 5.36678 20.353 6.5M20.353 17.5C19.6053 18.6332 18.6332 19.6053 17.5 20.353M6.5 20.353C5.36678 19.6053 4.39469 18.6332 3.64702 17.5M3.64702 6.5C4.39469 5.36678 5.36678 4.39469 6.5 3.64702",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var B8=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]];var U8=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var G8=[["path",{d:"M14.0737 3.88545C14.8189 3.07808 15.1915 2.6744 15.5874 2.43893C16.5427 1.87076 17.7191 1.85309 18.6904 2.39232C19.0929 2.6158 19.4769 3.00812 20.245 3.79276C21.0131 4.5774 21.3972 4.96972 21.6159 5.38093C22.1438 6.37312 22.1265 7.57479 21.5703 8.5507C21.3398 8.95516 20.9446 9.33578 20.1543 10.097L10.7506 19.1543C9.25288 20.5969 8.504 21.3182 7.56806 21.6837C6.63212 22.0493 5.6032 22.0224 3.54536 21.9686L3.26538 21.9613C2.63891 21.9449 2.32567 21.9367 2.14359 21.73C1.9615 21.5234 1.98636 21.2043 2.03608 20.5662L2.06308 20.2197C2.20301 18.4235 2.27297 17.5255 2.62371 16.7182C2.97444 15.9109 3.57944 15.2555 4.78943 13.9445L14.0737 3.88545Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4L20 11",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 22L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var K8=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]];var q8=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Y8=[["path",{d:"M19 21C19.6068 20.4102 22 18.8403 22 18C22 17.1597 19.6068 15.5898 19 15M21 18H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12V13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]];var J8=[["path",{d:"M8 6.50116H16.75C18.8567 6.50116 19.91 6.50116 20.6667 7.0069C20.9943 7.22584 21.2755 7.50717 21.4944 7.83484C22 8.59173 22 9.64538 22 11.7527C22 12.0122 22 12.2621 21.9997 12.5029M12 6.50116L11.3666 5.23392C10.8418 4.18406 10.3622 3.1273 9.19926 2.69106C8.6899 2.5 8.10802 2.5 6.94427 2.5C5.1278 2.5 4.21956 2.5 3.53806 2.88043C3.05227 3.15161 2.65142 3.55257 2.38032 4.03851C2 4.72021 2 5.62871 2 7.44571V10.5023C2 15.2177 2 17.5754 3.46447 19.0403C4.70529 20.2815 6.58687 20.4711 10 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"14",cy:"12.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"20",cy:"18.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 18.5C15.7909 18.5 14 16.7091 14 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 14.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];Im();var X8=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]];var Q8=[["path",{d:"M8.00164 6.50013H16.754C18.8613 6.50013 19.9149 6.50013 20.6718 7.00574C20.9995 7.22462 21.2808 7.50588 21.4997 7.83346C21.8937 8.42301 21.9808 9.19265 22 10.5003M12.0027 6.50013L11.3691 5.23321C10.8442 4.18363 10.3645 3.12714 9.20122 2.69101C8.69172 2.5 8.10969 2.5 6.94562 2.5C5.12865 2.5 4.22017 2.5 3.53848 2.88033C3.05255 3.15144 2.6516 3.5523 2.38042 4.03811C2 4.71963 2 5.6279 2 7.44443V10.5003C2 15.2145 2 17.5716 3.46487 19.0361C4.82227 20.3931 6.94628 20.4927 11.0025 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.4649 15C20.7733 13.8044 19.4806 13 18 13C16.4726 13 15.1451 13.8561 14.4713 15.1147M14.5351 19C15.2267 20.1956 16.5194 21 18 21C19.5227 21 20.8467 20.1492 21.5224 18.897M17 15.5H16C15.0572 15.5 14.5858 15.5 14.2929 15.2071C14 14.9142 14 14.4428 14 13.5V12.5M19 18.5H20C20.9428 18.5 21.4142 18.5 21.7071 18.7929C22 19.0858 22 19.5572 22 20.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var eg=[["path",{d:"M15.0244 21H12.0222C7.29769 21 4.93543 21 3.46772 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38116 4.53806C2.65287 4.05227 3.0546 3.65142 3.54148 3.38032C4.22449 3 5.13474 3 6.95525 3C8.12158 3 8.70475 3 9.21524 3.19101C10.3808 3.62712 10.8614 4.68358 11.3874 5.73313L12.0222 7M8.01332 7H16.7827C18.8941 7 19.9498 7 20.7081 7.50559C21.0364 7.72447 21.3183 8.00572 21.5377 8.33329C21.8193 8.75388 21.9444 9.26614 22 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 14C15.9961 12.6193 17.1159 11.5 18.4973 11.5C19.8786 11.5 20.9984 12.6193 20.9984 14C20.9984 14.8571 20.5668 15.6135 19.9091 16.0639C19.2259 16.5317 18.4985 17.172 18.5 18M18.625 20.75H18.5M18.75 20.75C18.75 20.8881 18.6381 21 18.5 21C18.3619 21 18.25 20.8881 18.25 20.75C18.25 20.6119 18.3619 20.5 18.5 20.5C18.6381 20.5 18.75 20.6119 18.75 20.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var tg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var ng=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var rg=[["path",{d:"M12 3V6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 18V21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 12L3 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.3635 5.63672L16.2422 7.75804",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.75804 16.2422L5.63672 18.3635",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M18.3635 18.3635L16.2422 16.2422",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M7.75804 7.75804L5.63672 5.63672",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var og=[["path",{d:"M12 20.5C19.1328 20.5 22 16.4706 22 11.5C22 6.52944 20.1328 2.5 12 2.5C4.13281 2.5 2 6.52944 2 11.5C2 13.5712 2.37034 15.4791 3.37161 17C4.63281 19 3.99253 20.8333 3 21.5C4.61547 21.5 5.70211 20.9858 6.39239 20.4766C6.88252 20.115 7.50688 19.9364 8.0984 20.0815C9.20689 20.3533 10.4991 20.5 12 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.57777 13.755 10.0983 13.3632 10.4634C12.7572 11.0282 12 11.6716 12 12.5M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var ig=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var sg=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var ag=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var cg=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var ug=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]];var lg=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var dg=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 11.3151 21.9311 10.6462 21.8 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.0303 11.9625L16.5832 7.4096M19.7404 4.34462L19.1872 2.35748C19.0853 2.03011 18.6914 1.89965 18.4259 2.11662C16.9898 3.29018 15.4254 4.87091 16.703 7.36419C19.2771 8.56455 20.7466 6.94584 21.8733 5.5853C22.0975 5.3146 21.9623 4.90767 21.6247 4.81005L19.7404 4.34462Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var pg=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var fg=[["path",{d:"M3 15V14H21V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17157 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 14L3.00001 12.9999C3.00003 11.5278 3.00004 10.7918 3.31675 10.1584C3.63347 9.52493 4.22231 9.08329 5.39999 8.20002C6.19297 7.60528 6.58946 7.30791 7.05132 7.15395C7.51317 7 8.00879 7 9.00002 7H15C15.9912 7 16.4868 7 16.9487 7.15395C17.4105 7.3079 17.807 7.60527 18.6 8.2C19.7777 9.08328 20.3666 9.52492 20.6833 10.1584C21 10.7918 21 11.5279 21 13V14H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M8.49997 7.00006V6.50006C8.49997 5.0956 8.49997 4.39337 8.83703 3.88892C8.98295 3.67054 9.17045 3.48304 9.38883 3.33712C9.89328 3.00006 10.5955 3.00006 12 3.00006C13.4044 3.00006 14.1067 3.00006 14.6111 3.33712C14.8295 3.48304 15.017 3.67054 15.1629 3.88892C15.5 4.39337 15.5 5.0956 15.5 6.50006V7.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var mg=[["path",{d:"M20.0004 10.9826C20.6281 10.1316 21 9.07385 21 7.92761C21 5.11556 18.7614 2.83594 16 2.83594C14.0209 2.83594 12.3104 4.00687 11.5 5.70554",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.6364 21.1658H9.36364C6.67794 21.1658 5.33509 21.1658 4.40253 20.4549C4.13533 20.2512 3.89812 20.0096 3.69811 19.7375C3 18.7879 3 17.4204 3 14.6855C3 13.1226 3 12.3412 3.39892 11.7986C3.51321 11.6431 3.64876 11.505 3.80144 11.3887C4.33434 10.9824 5.10168 10.9824 6.63636 10.9824H17.3636C18.8983 10.9824 19.6657 10.9824 20.1986 11.3887C20.3512 11.505 20.4868 11.6431 20.6011 11.7986C21 12.3412 21 13.1226 21 14.6855C21 17.4204 21 18.7879 20.3019 19.7375C20.1019 20.0096 19.8647 20.2512 19.5975 20.4549C18.6649 21.1658 17.3221 21.1658 14.6364 21.1658Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 15.0547H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.6858 10.9826L13.335 10.1564C13.2474 9.94999 13.2565 9.71349 13.3595 9.51989L14.9144 6.59747C15.1776 6.10273 14.7982 5.48558 14.2636 5.53902L11.1099 5.85432C10.9004 5.87526 10.692 5.78776 10.5492 5.6189L8.39732 3.07491C8.03241 2.64349 7.37203 2.82539 7.26584 3.38656L6.63969 6.69573C6.59813 6.91538 6.46021 7.09827 6.26863 7.18779L3.38401 8.53572C2.89509 8.76418 2.86669 9.49366 3.33529 9.78682L5.24666 10.9826",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var hg=[["path",{d:"M3 20.5002C3.28417 16.8058 6.3 13.7193 10.0008 13.5379C10.3134 13.5226 10.6446 13.5097 11 13.5L11.995 13.5663C12.6939 13.6129 13.3665 13.7543 14 13.9777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 15.5V21.5M21 18.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11",cy:"6.5",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var gg=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var Cg=[["path",{d:"M15 5C15 6.65685 13.6569 8 12 8C10.3431 8 9 6.65685 9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V9M12 9C12 9.93188 12 10.3978 12.1776 10.7654C12.4144 11.2554 12.8687 11.6448 13.4404 11.8478C13.8692 12 14.4128 12 15.5 12C16.5872 12 17.1308 12 17.5596 12.1522C18.1313 12.3552 18.5856 12.7446 18.8224 13.2346C19 13.6022 19 14.0681 19 15V16M12 9C12 9.93188 12 10.3978 11.8224 10.7654C11.5856 11.2554 11.1313 11.6448 10.5596 11.8478C10.1308 12 9.5872 12 8.5 12C7.4128 12 6.8692 12 6.44041 12.1522C5.86867 12.3552 5.41443 12.7446 5.17761 13.2346C5 13.6022 5 14.0681 5 15V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19C8 20.6569 6.65685 22 5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 19C22 20.6569 20.6569 22 19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]];var kg=[["path",{d:"M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];Mm();var Q_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],eS=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 17H22M19 14L22 17L19 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],xC={AlertCircle:T8,AlertTriangle:R8,Archive:$8,Bot:N8,Bug:z8,Check:pg,ChevronDown:A8,ChevronLeft:D8,ChevronRight:E8,Circle:V8,CircleCheck:W8,CircleQuestion:tg,CircleX:Z8,ClosePluginPane:cu,CloseThreadPane:cu,Code:lg,ComputerTerminal01:xm,Copy:F8,Download:U8,Edit:G8,FilterHorizontal:K8,Folder:X8,FolderExport:Y8,FolderGit:J8,FolderPlus:q8,FolderSync:Q8,FolderUnknown:eg,Folder02:uu,Info:ng,ListTodo:j8,Loading:rg,MessageQuestion:og,MessageCirclePlus:wm,MessageSquarePlus:wm,MessageSquare:O8,MoreHorizontal:ig,PanelLeft:cg,Search:sg,SectionAdd:Q_,SectionMove:eS,Settings:ag,SlidersHorizontal:ug,Spinner:H8,Target:dg,Terminal:xm,Toolbox:fg,ToolCase:mg,Trash2:B8,Unavailable:gg,UserRoundPlus:hg,Workflow:Cg,X:cu,Zap:kg},tS=Object.keys(xC),nS=[...tS,...vg],rS=xC,$m=null;function oS(){return lu()!==null?Promise.resolve():($m??=Promise.resolve().then(()=>(vC(),bC)).then(()=>{},e=>{throw $m=null,e}),$m)}var iS=[],sS=new Set(nS),wC=we([]);function Am(e){return sS.has(e)}var Em=class extends Eu{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function At({name:e,fallback:t="Zap",...n}){let r=xe(wC),o=Kt(Lm,()=>Bi(e),()=>Bi(e)),i=Kt(Lm,()=>Bi(t),()=>Bi(t)),s=Kt(Pm,()=>Ui(e),()=>Ui(e)),a=Kt(Pm,()=>Ui(t),()=>Ui(t)),c=o!==void 0||Am(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?p(Dm,{name:Am(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?p(wC.Provider,{value:[...r,u],children:p(Em,{fallback:p(Dm,{name:"Zap",...n}),children:p("span",{className:S("inline-flex size-6 shrink-0",n.className),style:n.style,"aria-hidden":n["aria-hidden"],"aria-label":n["aria-label"],role:n["aria-label"]?"img":void 0,"data-icon":u,"data-icon-root":"",children:p(m,{className:"size-full"})})},l.key)}):m===void 0&&d!==void 0?p(aS,{url:d,resolved:u,...n}):p(Dm,{name:Am(u)?u:"Zap",...n})}function aS({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return p("span",{className:S("inline-block size-6 shrink-0",n),style:{...r,backgroundColor:"currentColor",maskImage:s,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:s,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},"aria-hidden":o,"aria-label":i,role:i?"img":void 0,"data-icon":t,"data-icon-root":"","data-plugin-icon-asset":e})}function Dm({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=rS[e];return i!==void 0?p(Hi,{icon:i,className:S(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):p(cS,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function cS({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=Kt(xg,lu,lu)?.[e];return s===void 0&&oS().catch(()=>{}),p(Hi,{icon:s??iS,className:S(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var IC=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function Gi(){return xe(IC)}function Ki({children:e,open:t,onOpenChange:n,...r}){let o=wr(t,n),i=gn(),s=gn(),[a,c]=E(i),[u,l]=E(s),d=Z(g=>(c(g),()=>c(i)),[i]),m=Z(g=>(l(g),()=>l(s)),[s]),f=q(()=>({...o,titleId:a,descriptionId:u,registerTitleId:d,registerDescriptionId:m}),[u,m,d,o,a]),h=f.isCompactViewport?e:p(L8,{open:f.open,onOpenChange:f.onOpenChange,...r,children:e});return p(IC.Provider,{value:f,children:h})}var uS=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=Gi();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(M8,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});uS.displayName="DialogTrigger";var lS=H(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=Gi();return i?p(e?kn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):p(ym,{ref:o,asChild:e,onClick:t,...r,children:n})});lS.displayName="DialogClose";var _C=H(({className:e,...t},n)=>p(vm,{ref:n,...Ee(),className:S("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));_C.displayName=vm.displayName;var po=H(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=Gi();let m=Ee();if(a){let f=xr(i);return p(Ir,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:p("div",{ref:s,className:S("grid grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e,"max-w-none"),...f,children:t})})}return x(S8,{children:[p(_C,{}),x(_8,{ref:s,...m,onCloseAutoFocus:f=>{o?.(f),queueMicrotask(()=>r?.())},className:S("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-sm duration-200 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 sm:rounded-lg",e),...i,children:[t,n?null:x(ym,{className:"absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-state-active data-[state=open]:text-foreground",children:[p(At,{name:"X",className:"h-4 w-4"}),p("span",{className:"sr-only",children:"Close"})]})]})]})});po.displayName="DialogContent";var fo=({className:e,...t})=>p("div",{className:S("flex flex-col space-y-1.5 text-left",e),...t});fo.displayName="DialogHeader";var pu=({className:e,...t})=>p("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pu.displayName="DialogFooter";var mo=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=Gi(),u=n??a;if(rt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:S("text-base font-semibold leading-none tracking-tight",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("h2",{ref:i,...l,children:r})}return p(P8,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:S("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});mo.displayName="DialogTitle";var fu=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=Gi(),u=n??a;if(rt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:S("text-sm text-muted-foreground",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("p",{ref:i,...l,children:r})}return p(bm,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:S("text-sm text-muted-foreground",t),...o,children:r})});fu.displayName=bm.displayName;var SC="text-sm max-md:pointer-coarse:text-base";var Dn="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",LC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",Wz=`${LC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,Vz=`${LC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var PC="h-9 max-md:pointer-coarse:h-10";var mu=H(({className:e,type:t,...n},r)=>p("input",{type:t,autoComplete:"off",className:S(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${$s} file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,PC,SC,e),ref:r,...n}));mu.displayName="Input";function MC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return p(Ki,{open:e,onOpenChange:n,children:x(po,{className:"max-w-sm",children:[x(fo,{children:[p(mo,{children:"Customize list"}),p(fu,{children:"Hidden groups move into More. Their counters still show there."})]}),p("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>x("li",{"data-sidebar-customize-item":i.id,className:"flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-sm hover:bg-accent",children:[p("span",{className:S("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),p(Je,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:p(B,{name:N.moveUp,"aria-hidden":!0})}),p(Je,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:p(B,{name:N.collapse,"aria-hidden":!0})}),p(Je,{variant:"ghost",size:"icon",className:"size-7","aria-pressed":!i.hidden,"aria-label":i.hidden?`Show ${i.label}`:`Hide ${i.label}`,disabled:!i.hideable,onClick:()=>r(i.id),children:p(B,{name:i.hidden?N.hidden:N.show,"aria-hidden":!0})})]},i.id))}),p(pu,{children:p(Je,{onClick:()=>n(!1),children:"Done"})})]})})}function RC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=E(""),[i,s]=E(!1);return z(()=>{e&&o("")},[e]),p(Ki,{open:e,onOpenChange:t,children:p(po,{className:"max-w-sm",children:x("form",{className:"flex flex-col gap-4",onSubmit:async a=>{a.preventDefault();let c=r.trim();if(c!==""){s(!0);try{await n(c),t(!1)}finally{s(!1)}}},children:[p(fo,{children:p(mo,{children:"New section"})}),p(mu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),x(pu,{children:[p(Je,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),p(Je,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function TC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return p(x8,{open:e,onOpenChange:i,children:x(dm,{children:[x(pm,{children:[p(mm,{children:t}),p(hm,{children:n})]}),x(fm,{children:[p(Cm,{children:"Cancel"}),p(gm,{className:S(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function $C({open:e,title:t,onOpenChange:n,children:r}){return p(Ki,{open:e,onOpenChange:n,children:x(po,{className:"max-w-sm",children:[p(fo,{children:p(mo,{className:"sr-only",children:t})}),r]})})}function AC({open:e,title:t,targets:n,query:r,onQueryChange:o,onOpenChange:i,onMove:s}){let[a,c]=E(0);z(()=>c(0),[r,e]);let u=l=>{l!==void 0&&(s(l.parentThreadId),i(!1))};return p(Ki,{open:e,onOpenChange:i,children:x(po,{className:"max-w-sm",children:[x(fo,{children:[x(mo,{children:["Move \u201C",t,"\u201D"]}),p(fu,{children:"Nest it under another thread, or move it to the top level."})]}),p(mu,{autoFocus:!0,role:"combobox","aria-expanded":!0,"aria-controls":"thread-glance-move-targets","aria-activedescendant":n[a]?`thread-glance-move-${a}`:void 0,"aria-label":"Find a thread",placeholder:"Find a thread",value:r,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="ArrowDown"?(l.preventDefault(),c(d=>Math.min(d+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(d=>Math.max(d-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),x("ul",{id:"thread-glance-move-targets",role:"listbox","aria-label":"Move to",className:"flex max-h-72 flex-col gap-0.5 overflow-y-auto",children:[n.length===0?p("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,d)=>x("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:S("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",d===a&&"bg-accent"),children:[p("span",{className:"truncate",children:l.label}),l.detail?p("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function DC(){let e=hn(),[t,n]=E({}),r=mn(),o=A(!1),i=Z(()=>{e.call("listNotes",null).then(s=>n(s.notes),()=>{})},[e]);return z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]),fn(An.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:S4.safeParse(a.notes);c!==null&&!c.success||n(u=>{let l={...u};return c===null?delete l[a.threadId]:l[a.threadId]=c.data,l})}),t}function EC(e,t,n="",r=50){let o=t.infos.get(e);if(o===void 0)return[];let i=u=>t.infos.get(u)?.thread.parentThreadId??null,s=n.trim().toLowerCase(),a=[];o.thread.parentThreadId!==null&&(s===""||"top level".includes(s))&&a.push({parentThreadId:null,label:"Top level",detail:"No parent thread"});let c=[...t.infos.values()].filter(u=>{let l=u.thread;return l.isHidden||l.isArchived||l.id===o.thread.parentThreadId||V2(l.id,e,i)?!1:s===""||l.displayTitle.toLowerCase().includes(s)}).sort((u,l)=>l.thread.latestAttentionAt-u.thread.latestAttentionAt);for(let u of c.slice(0,r)){let l=u.parentId===null?null:t.infos.get(u.parentId);a.push({parentThreadId:u.thread.id,label:u.thread.displayTitle,detail:l?`in ${l.thread.displayTitle}`:null})}return a}var dS=[["waits-on-you","needing you"],["failed","failed"],["queue-failed","queue failed"],["offline","offline"],["working","working"],["background","in background"],["scheduled","scheduled"],["queued","queued"],["unread","unread"],["draft","drafts"],["idle","idle"]];function NC(e){let t=new Map;for(let r of e)r.thread.isHidden||t.set(r.state.kind,(t.get(r.state.kind)??0)+1);let n=dS.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function OC(e,t){if(e===void 0)return[];if(e.root.thread.id===t)return e.descendants;let n=[],r=new Set([t]);for(let o of e.descendants)o.parentId!==null&&r.has(o.parentId)&&(r.add(o.thread.id),n.push(o));return n}function ho(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function zC(e,t){if(t===null)return null;let n=t==="now"?"just now":`${t} ago`;switch(e){case"working":case"background":return`started ${n}`;case"waits-on-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function ZC(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var pS={attention:"text-attention",destructive:"text-destructive",working:"text-[var(--timeline-accent)]",background:"text-muted-foreground/50","muted-strong":"text-muted-foreground/75",muted:"text-muted-foreground",none:""},jC={attention:"border-[color:color-mix(in_oklch,var(--attention)_45%,transparent)] bg-[color-mix(in_oklch,var(--attention)_10%,transparent)] text-[color:color-mix(in_oklch,var(--attention),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--attention)_20%,transparent)]",destructive:"border-[color:color-mix(in_oklch,var(--destructive-text)_45%,transparent)] bg-[color-mix(in_oklch,var(--destructive-text)_10%,transparent)] text-[color:color-mix(in_oklch,var(--destructive-text),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--destructive-text)_20%,transparent)]",working:"border-[color:color-mix(in_oklch,var(--timeline-accent)_45%,transparent)] bg-[color-mix(in_oklch,var(--timeline-accent)_10%,transparent)] text-[color:color-mix(in_oklch,var(--timeline-accent),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--timeline-accent)_20%,transparent)]",neutral:"border-border/70 text-muted-foreground hover:bg-state-hover hover:text-foreground"},WC="animate-shine-icon motion-reduce:animate-none",fS="animate-spin motion-reduce:animate-none";function mS({label:e,className:t}){return p("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:S("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function qi({glyph:e,label:t,className:n}){return e.icon===null?null:e.icon==="dot"?p(mS,{label:t}):p(B,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:S("size-4 shrink-0",pS[e.tone],e.spin&&fS,e.shine&&WC,n)})}function VC({status:e}){let t=e.tone==="error"?"text-destructive":e.tone==="success"?"text-success-foreground":e.tone==="running"?"text-success motion-safe:animate-pulse":"text-muted-foreground";return p(B,{name:e.icon,"aria-label":e.label,className:S("size-4 shrink-0",t,e.tone==="running"&&WC)})}function Yi({flag:e,className:t}){return p(qi,{glyph:Xc[e],className:t})}var hS=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} need${e===1?"s":""} you`},{key:"failed",flag:"unread-failed",label:e=>`${e} failed`},{key:"offline",flag:"offline",label:e=>`${e} waiting for an offline machine`},{key:"working",flag:"working",label:e=>`${e} working`},{key:"unread",flag:"unread",label:e=>`${e} unread`}];function hu({counters:e,className:t}){let n=hS.filter(r=>e[r.key]>0);return n.length===0?null:p("span",{role:"group","aria-label":n.map(r=>r.label(e[r.key])).join(", "),className:S("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>x("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[p(Yi,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var gS=500,CS=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),Ji=!1,gu=0,FC=0;function HC(e){Ji=CS.has(e.key)}function BC(){Ji=!1,gu+=1}function UC(){gu+=1}function GC(e,t){let[n,r]=E(!1),o=A(null),i=A(null),s=A(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=gu;o.current=setTimeout(()=>{o.current=null,gu===u&&r(!0)},gS)};return z(()=>(FC++===0&&(Ji=!1,document.addEventListener("keydown",HC,!0),document.addEventListener("pointerdown",BC,!0)),()=>{a(),--FC===0&&(document.removeEventListener("keydown",HC,!0),document.removeEventListener("pointerdown",BC,!0))}),[]),z(()=>{a(),r(!1)},[e,t]),{open:n&&t&&!e,onOpenChange:u=>{u||(a(),r(!1))},rowProps:{onPointerEnter:u=>{i.current={x:u.clientX,y:u.clientY}},onPointerMove:u=>{if(u.pointerType==="touch")return;let l=i.current;l!==null&&l.x===u.clientX&&l.y===u.clientY||(i.current=null,c())},onPointerLeave:()=>{a(),i.current=null,s.current=!1},onPointerDown:()=>{s.current=!0,a(),r(!1)},onFocus:()=>{Ji&&(Ji=!1,c())},onBlur:a}}}var Nm=globalThis.__bbPluginRuntime;if(Nm==null||Nm.radixDropdownMenu==null)throw new Error('Cannot load "@radix-ui/react-dropdown-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Cu=Nm.radixDropdownMenu,yZ="default"in Cu?Cu.default:Cu,{Arrow:bZ,CheckboxItem:KC,Content:qC,DropdownMenu:vZ,DropdownMenuArrow:wZ,DropdownMenuCheckboxItem:xZ,DropdownMenuContent:IZ,DropdownMenuGroup:_Z,DropdownMenuItem:SZ,DropdownMenuItemIndicator:LZ,DropdownMenuLabel:PZ,DropdownMenuPortal:MZ,DropdownMenuRadioGroup:RZ,DropdownMenuRadioItem:TZ,DropdownMenuSeparator:$Z,DropdownMenuSub:AZ,DropdownMenuSubContent:DZ,DropdownMenuSubTrigger:EZ,DropdownMenuTrigger:NZ,Group:YC,Item:JC,ItemIndicator:Om,Label:XC,Portal:QC,RadioGroup:kS,RadioItem:zm,Root:ek,Separator:tk,Sub:nk,SubContent:Zm,SubTrigger:jm,Trigger:rk,createDropdownMenuScope:OZ}=Cu;var bS=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),on="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",ok=we({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function ku({children:e}){let[t,n]=E(null),r=q(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return p(ok.Provider,{value:r,children:e})}function Bt(e){let t=gn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=xe(ok),i=n===t,s=A(e);s.current=e;let a=Z(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=Z(u=>{s.current?.onKeyDown?.(u),bS.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var vS="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",wS="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",xS="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Wm=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function En(){return xe(Wm)}function go({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=wr(t,n,r);return i.isCompactViewport?p(Wm.Provider,{value:i,children:e}):p(ek,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Wm.Provider,{value:i,children:e})})}var pr=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=En();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):p(rk,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});pr.displayName="DropdownMenuTrigger";var fr=H(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=En(),l=Ee();if(a){let{style:d,...m}=xr(i);return p(Ir,{open:c,onOpenChange:u,srLabel:r??"Menu",children:p("div",{ref:s,className:S("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Ws},children:n})})}return p(QC,{children:p(qC,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{k5()||d.preventDefault(),o?.(d)},className:S("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i,children:p(ku,{children:n})})})});fr.displayName="DropdownMenuContent";function ik(){return new Event("select",{cancelable:!0})}var Oe=H(({className:e,inset:t,variant:n="default",onSelect:r,disabled:o,role:i="menuitem","aria-checked":s,textValue:a,children:c,onPointerEnter:u,onKeyDown:l,onFocus:d,onBlur:m,...f},h)=>{let{isCompactViewport:g,onOpenChange:k}=En(),{hoverProps:I}=Bt({onPointerEnter:u,onKeyDown:l});return g?p("button",{ref:h,type:"button",role:i,disabled:o,"aria-disabled":o||void 0,"aria-checked":s,className:S("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-2 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",t&&"pl-8",n==="destructive"&&xS,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=ik();r?.(y),y.defaultPrevented||k(!1)},children:c}):p(JC,{ref:h,className:S("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Zt,n==="destructive"?wS:vS,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...f,...I,children:c})});Oe.displayName="DropdownMenuItem";var IS=H(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:d,onOpenChange:m}=En(),{hoverProps:f}=Bt({onPointerEnter:a,onKeyDown:c});return d?x("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:S("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2 pr-8 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-disabled":i?"":void 0,onClick:()=>{if(i)return;let h=ik();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:(n===!0||n==="indeterminate")&&p(At,{name:"Check",className:Dn})}),t]}):x(KC,{ref:l,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...f,children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:p(Om,{children:p(At,{name:"Check",className:Dn})})}),t]})});IS.displayName="DropdownMenuCheckboxItem";var _S=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=En(),{hoverProps:a}=Bt({onPointerEnter:n,onKeyDown:r});return s?null:x(zm,{ref:i,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),...o,...a,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Om,{children:p(At,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});_S.displayName=zm.displayName;var SS=H(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=En();return i?p("div",{ref:o,className:S("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):p(XC,{ref:o,className:S("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});SS.displayName="DropdownMenuLabel";var Xi=H(({className:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("hr",{ref:n,className:S("-mx-1 my-1 h-px border-0 bg-muted",e)}):p(tk,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t})});Xi.displayName="DropdownMenuSeparator";var LS=H(({children:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("div",{ref:n,role:"group",...t,children:e}):p(YC,{ref:n,...t,children:e})});LS.displayName="DropdownMenuGroup";var sk=nk,Vm=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(jm,{ref:s,className:S("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Zt,on,t&&"pl-8",e),...i,...a,children:[n,p(At,{name:"ChevronRight",className:"ml-auto"})]})});Vm.displayName=jm.displayName;var Fm=H(({className:e,...t},n)=>p(Zm,{ref:n,...Ee(),className:S("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Fm.displayName=Zm.displayName;var PS=({className:e,...t})=>p("span",{className:S("ml-auto text-xs tracking-widest opacity-60",e),...t});PS.displayName="DropdownMenuShortcut";function ak(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var MS=25;function ck(e,t=MS){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}var RS={start:{top:"calc(50% + 10px)",bottom:"0px"},full:{top:"0px",bottom:"0px"},end:{top:"0px",bottom:"50%"}};function Co({rails:e}){return e.every(t=>t===null)?null:p("span",{"aria-hidden":!0,"data-rails":"",className:"pointer-events-none absolute inset-0",children:e.map((t,n)=>t===null?null:p("span",{className:"absolute w-px bg-border",style:{left:u8(n),...RS[t]}},n))})}function TS(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${ho(n.sendAt)}`:r}function uk(e,t){let n=[TS(e,t.pluginLabel),t.providerName];return e.parentTitle!==null&&e.depth>0&&n.push(`child of ${e.parentTitle}`),e.crossGroupLabel!==null&&n.push(e.crossGroupLabel.toLowerCase()),e.homeGroupLabel!==null&&n.push(`in ${e.homeGroupLabel}`),e.hiddenBadge&&n.push("hidden thread"),e.info.unread&&e.info.state.kind!=="unread"&&n.push("unread"),t.hasDraft&&e.info.state.kind!=="draft"&&n.push("unsubmitted draft"),`Open ${e.info.thread.displayTitle} \u2014 ${n.join("; ")}`}function Hm(e,t,n,r){let o=t===1?"child thread":"child threads",i=n===null?"":`, ${Xc[n].label}`;return`${r?"Collapse":"Show"} ${t} ${o} of ${e}${i}`}function lk(e){let t=e.count===1?"thread":"threads";if(e.scope==="group")return{label:e.expanded?"Show fewer":`${e.count} older`,ariaLabel:`${e.expanded?"Hide":"Show"} ${e.count} older ${t}`};let n=e.count===1?"child thread":"child threads";return e.expanded?{label:"Show fewer",ariaLabel:`Hide ${e.count} older ${n}`}:{label:`${e.count} more ${n}`,ariaLabel:`Show ${e.count} more ${n}`}}var $S=600;function AS(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function ko({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=E(e),[a,c]=E(!1),u=A(null),l=A(!1),d=A(!1),m=A(!1);z(()=>{let h=g=>{g.target!==u.current&&(m.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),z(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{d.current=!0},$S);return()=>clearTimeout(h)},[]);let f=async h=>{if(l.current)return;l.current=!0;let g=i.trim();if(!h||g===""||g===e){r();return}c(!0);try{await n(g)}catch(k){it.error("Couldn't rename",{description:k instanceof Error?k.message:String(k)})}finally{r()}};return x(jt,{children:[p("input",{ref:u,"aria-label":t,value:i,disabled:a,onChange:h=>s(h.target.value),onKeyDown:h=>{h.stopPropagation(),!h.nativeEvent.isComposing&&(h.key==="Enter"?(h.preventDefault(),f(!0)):h.key==="Escape"&&(h.preventDefault(),f(!1)))},onBlur:h=>{if(!d.current&&!m.current&&AS(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}f(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:S("pointer-events-auto relative z-10 h-6 min-w-0 flex-1 rounded-sm border border-input bg-background px-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",o)}),a?p("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var Bm=globalThis.__bbPluginRuntime;if(Bm==null||Bm.radixContextMenu==null)throw new Error('Cannot load "@radix-ui/react-context-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var yu=Bm.radixContextMenu,cj="default"in yu?yu.default:yu,{Arrow:uj,CheckboxItem:Um,Content:Gm,ContextMenu:lj,ContextMenuArrow:dj,ContextMenuCheckboxItem:pj,ContextMenuContent:fj,ContextMenuGroup:mj,ContextMenuItem:hj,ContextMenuItemIndicator:gj,ContextMenuLabel:Cj,ContextMenuPortal:kj,ContextMenuRadioGroup:yj,ContextMenuRadioItem:bj,ContextMenuSeparator:vj,ContextMenuSub:wj,ContextMenuSubContent:xj,ContextMenuSubTrigger:Ij,ContextMenuTrigger:_j,Group:DS,Item:Km,ItemIndicator:qm,Label:Ym,Portal:dk,RadioGroup:ES,RadioItem:Jm,Root:pk,Separator:Xm,Sub:fk,SubContent:Qm,SubTrigger:eh,Trigger:mk,createContextMenuScope:Sj}=yu;var hk="z-[70]",gk=pk,Ck=mk;var kk=fk;var th=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(eh,{ref:s,className:S("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Zt,on,t&&"pl-8",e),...i,...a,children:[n,p(At,{name:"ChevronRight",className:"ml-auto"})]})});th.displayName=eh.displayName;var nh=H(({className:e,...t},n)=>p(Qm,{ref:n,...Ee(),className:S(hk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));nh.displayName=Qm.displayName;var rh=H(({className:e,children:t,...n},r)=>p(dk,{children:p(Gm,{ref:r,...Ee(),className:S(hk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:p(ku,{children:t})})}));rh.displayName=Gm.displayName;var bu=H(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return p(Km,{ref:i,className:S("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Zt,on,t&&"pl-8",e),...o,...s})});bu.displayName=Km.displayName;var OS=H(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(Um,{ref:s,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),checked:n,...i,...a,children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:p(qm,{children:p(At,{name:"Check",className:Dn})})}),t]})});OS.displayName=Um.displayName;var zS=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return x(Jm,{ref:i,className:S("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Zt,on,e),...o,...s,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(qm,{children:p(At,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});zS.displayName=Jm.displayName;var ZS=H(({className:e,inset:t,...n},r)=>p(Ym,{ref:r,className:S("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));ZS.displayName=Ym.displayName;var oh=H(({className:e,...t},n)=>p(Xm,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t}));oh.displayName=Xm.displayName;function jS({className:e,...t}){return p("span",{className:S("ml-auto text-xs tracking-widest opacity-60",e),...t})}jS.displayName="ContextMenuShortcut";var ih=globalThis.__bbPluginRuntime;if(ih==null||ih.radixHoverCard==null)throw new Error('Cannot load "@radix-ui/react-hover-card": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var vu=ih.radixHoverCard,Ej="default"in vu?vu.default:vu,{Arrow:Nj,Content:sh,HoverCard:Oj,HoverCardArrow:zj,HoverCardContent:Zj,HoverCardPortal:jj,HoverCardTrigger:Wj,Portal:yk,Root:bk,Trigger:vk,createHoverCardScope:Vj}=vu;var wk=bk,xk=vk,ah=H(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Ee();return p(yk,{children:p(sh,{ref:o,align:t,sideOffset:n,...i,className:S("z-50 w-64 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...r})})});ah.displayName=sh.displayName;function wu(e){let t=Math.max(0,e);return t<6e4?"now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:t<6048e5?`${Math.floor(t/864e5)}d`:`${Math.floor(t/6048e5)}w`}function VS(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function Ik(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=wu(r-o),a=s==="now"?"<1m":s;return{text:a,label:`Waiting on you for ${a==="<1m"?"less than a minute":a}`,kind:"waiting"}}if(t){let s=n.startedAt[e.id];if(s===void 0)return null;let a=wu(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=wu(r-VS(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function _k(e,t){if(e.status!=="idle"&&e.status!=="error"||e.hasPendingInteraction)return null;let n=t[e.id];return n!==void 0?Math.max(n,e.latestAttentionAt):e.latestAttentionAt>e.createdAt&&(e.parentThreadId===null||e.status==="error")?e.latestAttentionAt:null}function Sk(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="waits-on-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:wu(r-o)}function Qi({display:e,mode:t="muted",className:n}){if(t==="hidden")return null;let r=t==="muted";if(e.provider!==null){let o=r?{id:e.provider.id,logoUrl:e.provider.logoUrl,icon:e.provider.icon}:e.provider;return p("span",{title:e.name,className:S("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:p(as,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return p("span",{role:"img","aria-label":e.name,title:e.name,className:S("inline-flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-[3px] border border-border px-px text-[8px] font-semibold leading-none tracking-tight text-muted-foreground",r&&"opacity-60",n),children:e.mark})}function ch(e){switch(e){case"checks_failed":case"conflicts":case"changes_requested":return"text-destructive";case"ready_to_merge":return"text-success";default:return"text-muted-foreground"}}var FS={checks_failed:"checks failed",conflicts:"has conflicts",changes_requested:"changes requested",ready_to_merge:"ready to merge",checks_pending:"checks pending",review_requested:"review requested",draft:"draft",merged:"merged",closed:"closed",blocked:"blocked"};function xu(e){let t=FS[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function Lk({threadId:e}){let{pullRequest:t}=cs(e);return t===null?null:x("span",{title:xu(t),"aria-label":xu(t),className:S("shrink-0 text-[11px] tabular-nums",ch(t.attention)),children:["#",t.number]})}function Iu({item:e}){return x(jt,{children:[p(B,{name:e.icon,"aria-hidden":!0,className:"size-4"}),p("span",{children:e.label})]})}function Pk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Mk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o,input:i}){let s=a=>c=>{if(!i.current.pressed&&!i.current.keyed){c.preventDefault();return}a()};return p(rh,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>x(hr,{children:[a.separated?p(oh,{}):null,a.action==="move-to-section"?x(kk,{children:[p(th,{children:p(Iu,{item:a})}),p(nh,{children:Pk(t).map(c=>x(bu,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):p(bu,{className:S(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:p(Iu,{item:a})})]},a.action))})}function Rk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return p(fr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>x(hr,{children:[i.separated?p(Xi,{}):null,i.action==="move-to-section"?x(sk,{children:[p(Vm,{children:p(Iu,{item:i})}),p(Fm,{children:Pk(t).map(s=>x(Oe,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):p(Oe,{className:S(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:p(Iu,{item:i})})]},i.action))})}function Tk({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return p("svg",{role:"img","aria-label":t,viewBox:"0 0 14 14",width:14,height:14,shapeRendering:"crispEdges",className:S("pointer-events-none size-3.5 shrink-0",!r&&"opacity-60",n&&"animate-shine-icon motion-reduce:animate-none"),children:e.map(o=>{let i=o.isMe?0:.5;return p("rect",{x:1+o.rect.x*12+i,y:1+o.rect.y*12+i,width:Math.max(o.rect.width*12-2*i,0),height:Math.max(o.rect.height*12-2*i,0),strokeWidth:o.isMe?0:1,className:o.isMe?o.isFocused?"fill-primary/70 stroke-none":"fill-muted-foreground/45 stroke-none":"fill-none stroke-muted-foreground/30"},o.paneId)})})}function sn({label:e,title:t,children:n}){return x("div",{className:"flex min-w-0 gap-2",title:t,children:[p("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),p("dd",{className:"min-w-0 flex-1 break-words",children:n})]})}function HS(e,t){let[n,r]=E("loading"),{id:o,status:i}=t.thread;return z(()=>{let s=!1;return r("loading"),e.loadModel(o,i).then(a=>!s&&r(a),()=>!s&&r(null)),()=>{s=!0}},[e,o,i]),n}function BS({threadId:e}){let{pullRequest:t}=cs(e);return t===null?null:p(sn,{label:"Pull request",children:p("span",{className:ch(t.attention),children:xu(t)})})}function _u({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=HS(t,e),a=xe(iu),c=zC(e.state.kind,Sk(e.state.kind,o.id,a.stamps,a.now)),u=NC(OC(a.familyOf(o.id),o.id)),l=o.environment,d=_k(o,a.stamps.finishedAt),m=F4(a.notes[o.id]);return x("div",{className:"flex flex-col gap-2 text-xs",children:[p("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),x("div",{className:"flex items-center gap-1.5",children:[p(qi,{glyph:e.state.glyph,className:"size-3.5"}),x("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${ho(e.state.sendAt)}`:""]})]}),e.note!==null?x("p",{className:"break-words leading-snug",children:[x("span",{className:e.note.tone==="destructive"?"text-destructive":"text-attention",children:[e.note.prefix,":"]})," ",e.note.text]}):null,x("dl",{className:"flex flex-col gap-1",children:[p(sn,{label:"Harness",children:x("span",{className:"inline-flex items-center gap-1.5",children:[p(Qi,{display:i,mode:t.harnessIcon==="hidden"?"muted":t.harnessIcon}),i.name]})}),p(sn,{label:"Model",title:"The model and reasoning level the next message will use",children:s==="loading"?"\u2026":s===null?"Unknown":`${s.model} \xB7 ${s.reasoningLevel}`}),l?.branchName?p(sn,{label:"Branch",children:x("span",{className:"inline-flex items-center gap-1",children:[p(B,{name:l.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?p(sn,{label:"Machine",children:o.host.name}):null,u!==null?p(sn,{label:"Children",children:u}):null,n?p(BS,{threadId:o.id}):null,m!==null&&e.note===null?p(sn,{label:"Last reply",children:p("span",{className:"line-clamp-2",children:m.text})}):null,p(sn,{label:"Created",children:ho(o.createdAt)}),d!==null?p(sn,{label:"Finished",children:ho(d)}):null]}),r?x("div",{className:"flex gap-2 pt-1",children:[x(Je,{size:"sm",onClick:r.open,children:[p(B,{name:N.open,"aria-hidden":!0}),"Open"]}),x(Je,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[p(B,{name:e.unread?N.markRead:N.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var US=400,GS=700,KS=10,es=null;function qS(){let e=t=>{t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e,!0)};window.addEventListener("click",e,!0),window.addEventListener("touchend",()=>setTimeout(()=>window.removeEventListener("click",e,!0),400),{capture:!0,once:!0})}var an="pointer-events-auto relative z-10 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-[state=open]:bg-state-active";function YS(e){let t=yh();return q(()=>{if(t===null)return null;let n=t.panes.map(r=>({paneId:r.paneId,rect:r.rect,isMe:r.threadId===e,isFocused:r.isFocused}));return n.some(r=>r.isMe)?n:null},[t,e])}var $k=pt(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,active:s,editing:a,now:c,startedAt:u,finishedAt:l,pendingAt:d}){let{info:m}=t,f=m.thread,h=f.archivedAt!==null||f.isArchived,g=n.compact,k=xh(f.id),I=wh(f.id),{hasUnsubmittedDraft:y}=bh(f.id),b=hh(f.id),$=YS(f.id),[T,w]=E(!1),[R,V]=E(!1),Y=GC(s,!g&&!a&&!T&&!R),ne=A({pressed:!1,keyed:!1}),oe=A(null),j=A(null),ae={threadId:f.id,parentThreadId:f.parentThreadId,sectionId:f.sectionId,pinned:f.pinnedAt!==null||f.isPinned},re=_s({id:`thread:${f.id}:${r}`,data:{kind:"thread",thread:ae,groupId:r},disabled:a||g}),ze=Ss({id:`drop-thread:${f.id}:${r}`,data:{kind:"thread",threadId:f.id,inPinned:o,groupId:r}}),wt=Z(W=>{re.setNodeRef(W),ze.setNodeRef(W)},[re.setNodeRef,ze.setNodeRef]),Ge=n.provider(f.providerId),Nn=N4(m.state,I),ht=uk(t,{providerName:Ge.name,pluginLabel:Nn?I.label:null,hasDraft:y}),Fe=h?null:Ik(f,m.flags.has("working"),{startedAt:u===void 0?{}:{[f.id]:u},finishedAt:l===void 0?{}:{[f.id]:l}},c,m.state.kind==="waits-on-you"?d??null:void 0),Dt=q4({thread:f,unread:m.unread,splitAvailable:b.isAvailable,isRoot:f.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),Te=A(!1),Ze=A(!1),Et=(W,Se)=>{if(W==="rename"){Te.current=!0,Ze.current=!0,setTimeout(()=>{Ze.current=!1},1500);return}n.onMenuAction(W,f,Se)};z(()=>{if(T||R||!Te.current)return;let W=setTimeout(()=>{Te.current&&(Te.current=!1,n.setEditingId(f.id))},60);return()=>clearTimeout(W)},[T,R,n,f.id]);let Nt=W=>{Ze.current&&(Ze.current=!1,W.preventDefault(),Te.current&&(Te.current=!1,n.setEditingId(f.id)))},$e=n.showPullRequests&&t.depth===0?n.defaultBranchOf(f):void 0,cn=f.environment?.branchName??null,un=n.showPullRequests&&t.depth===0&&cn!==null&&$e!==void 0&&cn!==$e,On=$?p(Tk,{panes:$,label:`${f.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):Nn?p(VC,{status:I}):p("span",{title:m.state.label,className:"inline-flex",children:p(qi,{glyph:m.state.glyph,label:m.state.label})}),He=W=>{if(a){W.preventDefault();return}if(b.isAvailable&&(W.metaKey||W.ctrlKey)){W.preventDefault(),n.onMenuAction("open-in-split",f);return}let Se=Date.now();if(es!==null&&es.threadId===f.id&&Se-es.at<US){es=null,W.preventDefault(),n.setEditingId(f.id);return}es={threadId:f.id,at:Se},n.onNavigate()},Be=()=>{j.current!==null&&clearTimeout(j.current.timer),j.current=null},Ae=A(!1),Ce=g?{onTouchStart:W=>{let Se=W.touches[0];Se!==void 0&&(Be(),Ae.current=!1,j.current={x:Se.clientX,y:Se.clientY,timer:setTimeout(()=>{j.current=null,Ae.current=!0,qS(),w(!0)},GS)})},onTouchMove:W=>{let Se=W.touches[0];j.current===null||Se===void 0||Math.hypot(Se.clientX-j.current.x,Se.clientY-j.current.y)>KS&&Be()},onTouchEnd:W=>{Be(),Ae.current&&W.preventDefault()},onTouchCancel:Be,onContextMenu:W=>W.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},fe=t.chip,Ut=dr(t.depth),dt=l8(t.depth,{unread:m.unread,active:s}),ln=n.comfortable||m.note!==null,te=m.quiet&&!s&&!a&&fe===null,Ot=T||R,Ke=g?"":Ot?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",zt=x("div",{ref:wt,"data-sidebar-rename-row":"","data-sidebar-nest-target":i==="valid"||i==="blocked"||i==="unchanged"?i:void 0,"data-sidebar-reorder-placement":i==="before"||i==="after"?i:void 0,...re.attributes,...re.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:Y.rowProps.onPointerEnter,onPointerMove:Y.rowProps.onPointerMove,onPointerDown:W=>{Y.rowProps.onPointerDown(),a||b.splitProps.onPointerDown?.(W)},onPointerLeave:Y.rowProps.onPointerLeave,onFocus:Y.rowProps.onFocus,onBlur:Y.rowProps.onBlur,...Ce,className:S("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",ln?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",s?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!s&&Ot&&"bg-sidebar-accent",$&&!s&&"bb-sidebar-open-in-split-row",re.isDragging&&"opacity-50",i==="valid"&&"ring-1 ring-inset ring-sidebar-ring/80 bg-sidebar-accent/45",i==="blocked"&&"ring-1 ring-inset ring-destructive/60",i==="before"&&"shadow-[inset_0_2px_0_0_var(--sidebar-ring)]",i==="after"&&"shadow-[inset_0_-2px_0_0_var(--sidebar-ring)]"),style:{paddingLeft:Ut},children:[p("a",{ref:oe,href:f.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":f.id,"data-sidebar-rename-anchor":"","aria-label":ht,"aria-keyshortcuts":k?.ariaKeyshortcuts,"aria-current":s?"page":void 0,onClick:He,onDoubleClick:W=>{W.preventDefault(),n.setEditingId(f.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p(Co,{rails:t.rails}),p("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:On}),t.nested?p("span",{"aria-hidden":!0,title:`Child of ${t.parentTitle??"a thread"}`,className:S("pointer-events-none relative -ml-[3px] -mr-px w-1.5 shrink-0 text-center text-[10px] leading-none text-muted-foreground",ln&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?p("span",{role:"img","aria-label":t.crossGroupLabel,title:t.crossGroupLabel,"data-sidebar-thread-cross-project":"",className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:p(B,{name:N.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,x("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?p(ko,{initial:f.displayTitle,label:"Thread name",onSave:W=>n.onRename(f.id,W),onDone:()=>{n.setEditingId(null),oe.current?.focus()}}):p("span",{title:f.displayTitle,className:S("min-w-0 truncate",m.unread?"font-semibold":"font-normal",te&&!dt.muted&&"text-muted-foreground",dt.small&&"text-xs",dt.muted&&"text-[color:color-mix(in_oklch,var(--foreground)_72%,var(--sidebar))] group-hover/row:text-foreground"),children:f.displayTitle}),!a&&m.note!==null?x("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:`${m.note.prefix}: ${m.note.text}`,children:[x("span",{className:m.note.tone==="destructive"?"text-destructive":"text-attention",children:[m.note.prefix,":"]})," ",m.note.text]}):n.comfortable&&!a?p(JS,{row:t,multiHost:n.multiHost,defaultBranch:n.defaultBranchOf(f)}):null]}),t.hiddenBadge?p("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:p(B,{name:N.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,un&&!a?p("span",{className:"pointer-events-none relative",children:p(Lk,{threadId:f.id})}):null,fe!==null&&!a?x("button",{type:"button","aria-expanded":fe.expanded,"aria-label":Hm(f.displayTitle,fe.count,fe.flag,fe.expanded),title:Hm(f.displayTitle,fe.count,fe.flag,fe.expanded),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onToggleChip(t)},onPointerDown:W=>W.stopPropagation(),onKeyDown:W=>W.stopPropagation(),"data-tone":G2(fe.flag),className:S("pointer-events-auto relative z-10 inline-flex h-5 shrink-0 items-center gap-0.5 rounded-md border px-1 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",jC[G2(fe.flag)]),children:[fe.count,fe.flag!==null?p(Yi,{flag:fe.flag,className:"size-3"}):null,n.harnessIcon!=="hidden"?fe.providerIds.map(W=>p(Qi,{display:n.provider(W),className:"size-3 [&_*]:size-3"},W)):null,p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 transition-transform duration-150",fe.expanded&&"rotate-90")})]}):null,a?null:p("span",{className:S("pointer-events-none relative inline-flex shrink-0 transition-opacity",k===null&&Ke),children:p(Qi,{display:Ge,mode:n.harnessIcon})}),a?null:p("span",{className:"relative flex h-6 min-w-8 shrink-0 items-center justify-end gap-1",children:k!==null?p("kbd",{"aria-hidden":!0,className:"pointer-events-none rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground",children:k.label}):x(jt,{children:[t.homeGroupLabel!==null?p("span",{title:`In ${t.homeGroupLabel}`,className:S("pointer-events-none max-w-24 truncate text-[11px] text-muted-foreground transition-opacity",Ke),children:t.homeGroupLabel}):Fe!==null?p("span",{title:Fe.label,"aria-label":Fe.label,className:S("pointer-events-none text-[11px] tabular-nums transition-opacity",Fe.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",Ke),children:Fe.text}):null,x("span",{className:S("flex items-center gap-0.5 transition-opacity",g?"relative":Ot?"absolute right-0 opacity-100":"absolute right-0 opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:[g?null:p("button",{type:"button","aria-label":h?"Unarchive thread":"Archive thread",title:h?"Unarchive":"Archive",className:an,onPointerDown:W=>W.stopPropagation(),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onMenuAction(h?"unarchive":"archive",f)},children:p(B,{name:h?N.unarchive:N.archive,"aria-hidden":!0,className:"size-4"})}),x(go,{open:T,onOpenChange:w,children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread actions",className:g?"sr-only":an,onPointerDown:W=>W.stopPropagation(),onClick:W=>W.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),p(Rk,{items:Dt,sections:n.sections,currentSectionId:f.sectionId,onAction:Et,onCloseAutoFocus:Nt})]})]})]})})]});return g?zt:x(gk,{onOpenChange:W=>{W&&(ne.current={pressed:!1,keyed:!1}),V(W)},children:[x(wk,{closeDelay:100,open:Y.open,onOpenChange:Y.onOpenChange,children:[p(Ck,{asChild:!0,disabled:a,children:p(xk,{asChild:!0,children:zt})}),!a&&!T&&!R?p(ah,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:p(_u,{info:m,controller:n,showPullRequest:un})}):null]}),p(Mk,{items:Dt,sections:n.sections,currentSectionId:f.sectionId,onAction:Et,onCloseAutoFocus:Nt,input:ne})]})});function JS({row:e,multiHost:t,defaultBranch:n}){let r=e.info.thread,o=r.environment,i=[],s=o?.branchName??null;return s!==null&&s!==n&&i.push(x("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[p(B,{name:o?.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),p("span",{className:"truncate",children:s}),o?.isWorktree?p("span",{className:"sr-only",children:" (worktree)"}):null]},"branch")),t&&r.host!==null&&i.push(x("span",{className:"inline-flex shrink-0 items-center gap-0.5",children:[p(B,{name:N.machine,"aria-hidden":!0,className:"size-3"}),r.host.name]},"host")),i.length===0?null:p("span",{className:"flex min-w-0 items-center gap-2 text-xs leading-4 text-muted-foreground",children:i})}var Ak=pt(function({row:t,controller:n}){let{label:r,ariaLabel:o}=lk(t),i=t.scope!=="group";return x("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:S("relative flex w-full items-center rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring",i?"h-7 gap-1.5 max-md:pointer-coarse:h-9":"h-6 gap-1"),style:{paddingLeft:dr(t.depth)+(i?0:2)},children:[p(Co,{rails:t.rails}),i?p("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:p(B,{name:N.more,className:"size-3.5"})}):p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 transition-transform",t.expanded&&"-rotate-90")}),r]})}),Dk=pt(function({row:t}){let n=t.count===1?"child thread":"child threads";return x("div",{className:"relative flex h-6 w-full items-center gap-1.5 pr-2 text-xs text-muted-foreground",style:{paddingLeft:dr(t.depth)},children:[p(Co,{rails:t.rails}),p("span",{"aria-hidden":!0,className:"size-4 shrink-0"}),x("span",{title:`${t.count} more ${n}`,children:["+",t.count," more"]})]})}),Ek=pt(function({row:t,controller:n,environmentProviders:r}){let[o,i]=E(!1),s=t.environmentProviderId===null?null:r.find(a=>a.id===t.environmentProviderId)??null;return x("div",{className:"group/row relative flex h-7 w-full items-center gap-1.5 rounded-md pr-1 text-sm text-muted-foreground hover:bg-sidebar-accent",style:{paddingLeft:dr(t.depth)},children:[p(Co,{rails:t.rails}),p("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${t.label} environment, ${t.threadIds.length} threads`,onClick:()=>n.onToggleEnvironment(t.environmentId),className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?p(as,{providerKind:"environment",provider:s,className:"size-3.5"}):p(B,{name:t.environmentProviderId===null?N.machine:N.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?p(ko,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):p("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?p(Yi,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,p("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),p(B,{name:N.expand,"aria-hidden":!0,className:S("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),x(go,{children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":"Environment actions",className:S(an,!n.compact&&"opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100"),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),x(fr,{align:"end",children:[x(Oe,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),x(Oe,{onSelect:()=>i(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),x(Oe,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[p(B,{name:N.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Su=28,Nk={compact:28,comfortable:44};function Ok(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var XS=pt(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=E(!1),a=t.descriptor.label,c=_s({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),u=n.compact?"":"opacity-0 group-hover/header:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100";return x("div",{ref:c.setNodeRef,...c.attributes,...c.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",style:{top:r?0:Su},className:S("group/header sticky z-20 flex h-7 items-center gap-1 rounded-md bg-sidebar pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",o&&"bg-sidebar-accent",c.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?p(ko,{initial:a,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:l=>n.onRename(t,l),onDone:()=>s(!1),className:"text-xs"}):x("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${a} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:l=>l.stopPropagation(),onDoubleClick:()=>Ok(t)&&s(!0),className:"flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 text-left font-medium outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"min-w-0 truncate",title:a,children:a}),p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:p(hu,{counters:c8(t.counters,{collapsed:t.collapsed,more:!1}),className:"ml-auto"}),!i&&t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?p("button",{type:"button","aria-label":`New thread in ${a}`,title:`New thread in ${a}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:S(an,u),onPointerDown:l=>l.stopPropagation(),onClick:()=>n.onNewThread(t),children:p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"})}):!i&&!n.compact?p("span",{"aria-hidden":!0,className:"size-6 shrink-0"}):null,i?null:x(go,{children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":`${a} actions`,className:S(an,u),onPointerDown:l=>l.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),x(fr,{align:"end",className:"min-w-48",children:[x(Oe,{onSelect:()=>n.onMarkAllRead(t),children:[p(B,{name:N.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?x(Oe,{onSelect:()=>n.onNewThread(t),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?x(Oe,{onSelect:()=>n.onNewSection(),children:[p(B,{name:N.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,Ok(t)?x(Oe,{onSelect:()=>s(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,p(Xi,{}),t.descriptor.kind!=="pinned"?t.hidden?x(Oe,{onSelect:()=>n.onShow(t),children:[p(B,{name:N.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):x(Oe,{onSelect:()=>n.onHide(t),children:[p(B,{name:N.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,x(Oe,{onSelect:()=>n.onToggleArchived(),children:[p(B,{name:n.showArchived?N.check:N.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),x(Oe,{onSelect:()=>n.onCustomize(),children:[p(B,{name:N.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?x(Oe,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[p(B,{name:N.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})});function QS(e){return e.key}function eL({rows:e,forceMount:t,rowHeight:n,children:r}){let o=A(null),[i,s]=E(!0),a=A(null);z(()=>{let l=o.current;if(l===null||typeof IntersectionObserver>"u")return;let d=new IntersectionObserver(m=>{for(let f of m)f.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(f.isIntersecting)},{rootMargin:"240px 0px"});return d.observe(l),()=>d.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return p("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:ak(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function zk({rows:e,groupId:t,inPinned:n,forceMount:r,rowController:o,environmentProviders:i,dropStates:s,activeThreadId:a,editingId:c,now:u,stamps:l}){let d=o.comfortable?Nk.comfortable:Nk.compact;return p("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:ck(e).map(m=>p(eL,{rows:m,rowHeight:d,forceMount:r||m.some(f=>f.type==="thread"&&(f.info.thread.id===a||f.info.thread.id===c)),children:m.map(f=>f.type==="thread"?p($k,{row:f,controller:o,groupId:t,inPinned:n,dropState:s.get(f.info.thread.id)??null,active:f.info.thread.id===a,editing:f.info.thread.id===c,now:u,startedAt:l.startedAt[f.info.thread.id],finishedAt:l.finishedAt[f.info.thread.id],pendingAt:l.pendingAt[f.info.thread.id]},f.key):f.type==="older"?p(Ak,{row:f,controller:o},f.key):f.type==="left-out"?p(Dk,{row:f},f.key):p(Ek,{row:f,controller:o,environmentProviders:i},f.key))},QS(m[0])))})}var uh=pt(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=Ss({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return x("section",{ref:s.setNodeRef,"aria-label":t.descriptor.label,"data-sidebar-visibility-group":t.descriptor.id,"data-sidebar-section-id":t.descriptor.kind==="section"?t.descriptor.entityId??void 0:void 0,className:"relative flex w-full min-w-0 flex-col",children:[p(XS,{group:t,controller:n,inOverflow:o,dropActive:r===t.descriptor.id}),t.collapsed?null:t.rows.length===0?t.rootIds.length===0?p("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):null:p(zk,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})}),Zk=pt(function({view:t,...n}){return x("section",{"aria-label":"Needs you",className:"relative flex w-full min-w-0 flex-col",children:[x("h2",{style:{top:Su},className:"sticky z-20 flex h-7 items-center gap-1 bg-sidebar pl-2 pr-2 text-xs font-medium text-muted-foreground max-md:pointer-coarse:h-9",children:[p("span",{className:"min-w-0 flex-1 truncate",children:"Needs you"}),p("span",{className:"tabular-nums","aria-label":`${t.familyCount} ${t.familyCount===1?"family":"families"}`,children:t.familyCount})]}),p(zk,{...n,rows:t.rows,groupId:p8,inPinned:!1,forceMount:!1})]})});function jk(e){let t=e.includes("active"),n=e.includes("archived");return t&&n?"both":n?"archived":"active"}function Wk(e){return e==="both"?["active","archived"]:[e]}function Vk(e){return e==="everything"}function Fk(e){return e?"everything":"blocked"}function Hk(e){return{chronologicalSort:e,sortDirection:eu(e)}}function Bk(e){let t=rn(e.chronologicalSort),r=K2(t,e.sortDirection)==="descending";return{glyph:r?"\u2193":"\u2191",label:t==="alpha"?r?"Z\u2013A":"A\u2013Z":r?"Newest first":"Oldest first",patch:{sortDirection:r?"ascending":"descending"}}}var tL="flex min-w-0 flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",nL="flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring";function rL(e){return S(nL,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function ts({label:e,children:t}){return x("div",{className:"flex items-center gap-2 px-2 py-1",children:[p("span",{className:"w-[5.5rem] shrink-0 text-sm",children:e}),t]})}function ns({label:e,options:t,current:n,onSelect:r}){return p("div",{role:"radiogroup","aria-label":e,className:tL,children:t.map(([o,i])=>p("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:rL(o===n),children:i},o))})}function rs({label:e,checked:t,onChange:n,description:r}){return x("button",{type:"button",role:"checkbox","aria-checked":t,onClick:()=>n(!t),className:"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none hover:bg-accent focus-visible:bg-accent",children:[p("span",{"aria-hidden":!0,className:S("mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-input",t&&"border-primary bg-primary text-primary-foreground"),children:t?p(B,{name:N.check,"aria-hidden":!0,className:"size-3"}):null}),x("span",{className:"flex min-w-0 flex-col",children:[p("span",{children:e}),r?p("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function lh({children:e}){return p("h3",{className:"px-2 pb-0.5 pt-3 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function oL({prefs:e,client:t,onPrefs:n,onClient:r}){let o=Bk(e);return x("div",{className:"flex flex-col",children:[p(lh,{children:"List"}),p(ts,{label:"Group by",children:p(ns,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),x(ts,{label:"Sort by",children:[p(ns,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:rn(e.chronologicalSort),onSelect:i=>n(Hk(i))}),p("button",{type:"button","aria-label":`Sort order: ${o.label}. Reverse`,title:o.label,onClick:()=>n(o.patch),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-recessed text-xs outline-none hover:bg-state-hover focus-visible:ring-2 focus-visible:ring-ring",children:o.glyph})]}),p(rs,{label:"Working threads first",checked:e.workingFirst,onChange:i=>n({workingFirst:i})}),p(rs,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),p(rs,{label:"Collapse older threads",checked:e.foldOlder,onChange:i=>n({foldOlder:i})}),p(lh,{children:"Rows"}),p(ts,{label:"Density",children:p(ns,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),p(ts,{label:"Harness icon",children:p(ns,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"],["hidden","Hidden"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),p(rs,{label:"Pull request badge",checked:e.showPullRequests,onChange:i=>n({showPullRequests:i})}),p(lh,{children:"Show"}),p(ts,{label:"Threads",children:p(ns,{label:"Threads",options:[["active","Active"],["archived","Archived"],["both","Both"]],current:jk(e.threadLifecycles),onSelect:i=>n({threadLifecycles:Wk(i)})})}),p(rs,{label:"Needs you counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:Vk(e.childAttention),onChange:i=>n({childAttention:Fk(i)})})]})}function Uk({prefs:e,client:t,onPrefs:n,onClient:r}){return p("div",{style:{height:Su},className:"sticky top-0 z-30 flex items-center justify-end bg-sidebar",children:x(Vs,{children:[p(jo,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread Glance settings",title:"List settings",className:an,children:p(B,{name:N.settings,"aria-hidden":!0,className:"size-4"})})}),p(Wo,{align:"end",className:"w-80 p-2",children:p(oL,{prefs:e,client:t,onPrefs:n,onClient:r})})]})})}var iL="thread-glance";function mr(e){return e instanceof Error?e.message:String(e)}async function Gk(e,t){try{await navigator.clipboard.writeText(e),it.success(t)}catch(n){it.error("Couldn't copy",{description:mr(n)})}}var sL={activationConstraint:{distance:4}},aL={activationConstraint:{delay:200,tolerance:6}},cL=e=>{let t=e.active.data.current?.kind,n=Fh(e);if(t==="group")return n.filter(o=>String(o.id).startsWith("drop-group:"));let r=n.filter(o=>String(o.id).startsWith("drop-thread:"));return r.length>0?r:n};function Kk(e){let t=e.activatorEvent,n=null;return t instanceof MouseEvent?n=t.clientY:typeof TouchEvent<"u"&&t instanceof TouchEvent&&(n=t.touches[0]?.clientY??null),n===null?null:n+e.delta.y}function dh(e){let[t,n]=E(0);return p(uL,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function uL({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=L4(),[c,u]=x4(),l=gh({experimental_lifecycles:i.threadLifecycles}),d=mh(),m=kh(),{providers:f}=fh(),{providers:h}=Ch(),g=vh(),{stamps:k,markSeen:I,clearSeen:y}=R4(),b=P4(),$=DC(),T=q(()=>{let v=Object.values(b).filter(_=>_>Date.now());return v.length>0?Math.min(...v):null},[b]),w=_4(T),[R,V]=E(null),[Y,ne]=E(null),[oe,j]=E(null),[ae,re]=E(""),ze=A(new Map),[wt,Ge]=E(!1),[Nn,ht]=E(!1),[Fe,Dt]=E(null),[Te,Ze]=E(()=>new Map),[Et,Nt]=E(null),[$e,cn]=E(()=>new Map),un=A(new Set),On=A(new Map),He=l.status==="ready",Be=l.threads,Ae=q(()=>new Map(Be.map(v=>[v.id,v])),[Be]),Ce=q(()=>He?B4({threads:Be,activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt,draftIds:g,scheduled:b,now:w,notes:$,childAttention:i.childAttention}):null,[He,Be,e,k.finishedAt,k.seenAt,g,b,w,$,i.childAttention]),{targets:fe,prune:Ut}=R5(s?Ce:null,e),dt=I4(Ce,e),ln=A(null),te=q(()=>Ce===null?null:b8(ln.current,g8({forest:Ce,threads:Be,projects:l.projects,sections:l.sections,prefs:i,activeThreadId:e,heldRootId:dt,targets:fe})),[Ce,Be,l.projects,l.sections,i,e,dt,fe]);rt(()=>{ln.current=te},[te]);let Ot=A(null);z(()=>{let v=[Ot.current,e].filter(_=>_!==null&&Ae.get(_)?.parentThreadId!=null);Ot.current=e,UC(),v.length>0&&I([...new Set(v)])},[e]),z(()=>{if(!(!i.showPullRequests||Ce===null))for(let v of Ce.families){let _=v.root.thread,P=_.projectId;_.environment?.branchName==null||_.host===null||un.current.has(P)||(un.current.add(P),m.projects.branches({projectId:P,hostId:_.host.id,limit:"1"}).then(G=>cn(ee=>new Map(ee).set(P,G.defaultBranch)),()=>cn(G=>new Map(G).set(P,null))))}},[i.showPullRequests,Ce,m]);let Ke=q(()=>Q4(f),[f]),zt=q(()=>{let v=new Map,_=new Map(f.map(P=>[P.id,P]));return P=>{let G=v.get(P);if(G===void 0){let ee=_.get(P);G={id:P,name:ee?.displayName??P,provider:ee?.logoUrl?ee:null,mark:e8(P,Ke)},v.set(P,G)}return G}},[f,Ke]),W=Z(v=>{Object.keys(v.patch).length>0&&a(v.patch),v.drop!==null&&Ut(v.drop)},[a,Ut]),Se=Z((v,_,P)=>{let G={activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt},ee=ie=>ge=>it.error(ie,{description:mr(ge)});switch(v){case"open-in-split":d.open(_.id,{split:!0}),n();return;case"copy-link":Gk(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":Gk(_.id,"Thread ID copied");return;case"mark-read":Wi(_,G)&&I([_.id]),d.setRead(_.id,!0).catch(ee("Couldn't mark read"));return;case"mark-unread":y([_.id]),d.setRead(_.id,!1).catch(ee("Couldn't mark unread"));return;case"pin":case"unpin":d.setPinned(_.id,v==="pin").catch(ee("Couldn't change the pin"));return;case"move-to-section":m.threads.update({threadId:_.id,sectionId:P??null}).catch(ee("Couldn't move the thread"));return;case"rename":V(_.id);return;case"details":ne(_.id);return;case"move":re(""),j(_.id);return;case"archive":d.archive(_.id);return;case"unarchive":m.threads.unarchive({threadId:_.id}).catch(ee("Couldn't unarchive"));return;case"delete":setTimeout(()=>d.requestDelete(_.id),0);return}},[d,e,y,I,n,m,k.finishedAt,k.seenAt]),yo=A(Se);rt(()=>{yo.current=Se});let gt=A({forest:Ce,view:te,prefs:i,byId:Ae,activeThreadId:e,stamps:k});rt(()=>{gt.current={forest:Ce,view:te,prefs:i,byId:Ae,activeThreadId:e,stamps:k}});let os=Z((v,_)=>{let P=`${v}:${_}`,G=On.current.get(P);if(G===void 0){let ee=gt.current.byId.get(v),ie=ee?.providerId??"",ge=ze.current.get(ie);ge===void 0&&(ge=m.providers.models(ee?.host?{providerId:ie,hostId:ee.host.id}:{providerId:ie}).then(Le=>Le.models,()=>[]),ze.current.set(ie,ge));let je=ge;G=m.threads.defaultExecutionOptions({threadId:v}).then(async Le=>Le===null?null:{model:ZC(Le.model,await je),reasoningLevel:Le.reasoningLevel},()=>null),On.current.set(P,G)}return G},[m]),Gt=te?.multiHost??!1,xt=Ce!==null&&te!==null,It=q(()=>xt?{compact:t,comfortable:c.density==="comfortable",setEditingId:V,showPullRequests:i.showPullRequests,harnessIcon:i.harnessIcon,defaultBranchOf:v=>$e.has(v.projectId)?$e.get(v.projectId)??null:void 0,multiHost:Gt,provider:zt,sections:l.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:v=>{let{prefs:_,forest:P}=gt.current;W(n8(v,_,P))},onToggleOlder:v=>{let{prefs:_,forest:P,view:G}=gt.current,ee=G.groups.find(ie=>ie.descriptor.id===v.scopeId)??null;W(r8(v,_,ee,P))},onToggleEnvironment:v=>{let{collapsedEnvironments:_}=gt.current.prefs;a({collapsedEnvironments:_.includes(v)?_.filter(P=>P!==v):[..._,v]})},onMenuAction:(v,_,P)=>yo.current(v,_,P),onRename:(v,_)=>d.rename(v,_),loadModel:os,openDetails:ne,onNewThreadInEnvironment:(v,_,P)=>{d.openNewThread({projectId:_,environmentId:v,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(v,_)=>{await m.environments.update({environmentId:v,name:_})},onArchiveEnvironment:v=>{m.environments.archiveThreads({environmentId:v}).catch(_=>it.error("Couldn't archive the environment",{description:mr(_)}))}}:null,[xt,t,c.density,i.showPullRequests,i.harnessIcon,i.organizationMode,$e,Gt,zt,l.sections,n,W,a,d,m,os]),is=q(()=>({now:w,stamps:k,notes:$,familyOf:v=>Ce?.familyOf.get(v)}),[w,k,$,Ce]),_t=q(()=>{let v=e===null||Ce===null?void 0:Ce.familyOf.get(e);return v===void 0?null:tu(v.root.thread,{mode:i.organizationMode,projects:l.projects})},[e,Ce,i.organizationMode,l.projects]),bo=i.threadLifecycles.includes("archived"),vo=q(()=>{if(!xt)return null;let v=_=>{let{forest:P,activeThreadId:G,stamps:ee}=gt.current,ie=_.rootIds.flatMap(Le=>P.familyOf.get(Le)??[]),ge=i8(ie,{activeThreadId:G,finishedAt:ee.finishedAt,seenAt:ee.seenAt}),je=()=>{ge.seen.length>0&&I(ge.seen);for(let Le of ge.read)d.setRead(Le,!0).catch(()=>{})};ge.read.length===0?it(`Nothing unread in ${_.descriptor.label}`):ge.read.length>Y4?Dt({title:`Mark ${ge.read.length} threads read?`,description:`Every unread thread in ${_.descriptor.label}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:je}):je()};return{compact:t,activeGroupId:_t,showArchived:bo,onToggleArchived:()=>a({threadLifecycles:gt.current.prefs.threadLifecycles.includes("archived")?["active"]:["active","archived"]}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:P,forest:G}=gt.current;W(o8(_,P,G))},onNewThread:_=>{let P=_.descriptor;d.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...gt.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:gt.current.prefs.hiddenGroups.filter(P=>P!==_.descriptor.id)}),onCustomize:()=>Ge(!0),onRename:async(_,P)=>{_.descriptor.kind==="section"?await m.threadSections.update({id:_.descriptor.entityId,name:P}):_.descriptor.kind==="machine"&&await m.hosts.update({hostId:_.descriptor.entityId,name:P})},onRemove:_=>Dt({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{m.threadSections.delete({id:_.descriptor.entityId}).catch(P=>it.error("Couldn't remove the section",{description:mr(P)}))}}),onMarkAllRead:v,onNewSection:()=>ht(!0)}},[xt,t,_t,bo,i.organizationMode,W,d,n,a,m,I]),Lu=Vh(ws(Eo,sL),ws(No,aL),ws(vr)),dn=Z(v=>{let _=v.over;if(_===null)return null;let P=_.data.current;if(P===void 0)return null;if(P.kind==="group")return{kind:"group",groupId:P.groupId};let G=Kk(v),ee=_.rect,ie=G===null?.5:(G-ee.top)/Math.max(ee.height,1),ge=ie<.25?"before":ie>.75?"after":"middle";return{kind:"thread",threadId:P.threadId,zone:ge,inPinned:P.inPinned??!1}},[]),zn=q(()=>{let v=new Map(Object.entries(te?.needsYou?.homeGroupIds??{}));for(let P of[...te?.groups??[],...te?.more??[]])for(let G of P.rows)G.type==="thread"&&v.set(G.info.thread.id,P.descriptor.id);let _=te?.groups.find(P=>P.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:P=>Ae.get(P)?.parentThreadId??null,pinnedOrder:(_?.rows??[]).flatMap(P=>P.type==="thread"&&P.depth===0?[P.info.thread.id]:[]),groupOfThread:P=>v.get(P)??"threads"}},[te,i.organizationMode,Ae]),Pu=Z(v=>{let _=v.active.data.current,P=dn(v);if(_?.kind!=="thread"||P===null){Ze(new Map),Nt(_?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Ze(new Map),Nt(P.groupId);return}Nt(null);let G=F2(_.thread,P,zn),ee=G.type==="blocked"?"blocked":G.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Ze(new Map([[P.threadId,ee]]))},[dn,zn]),wo=Z(async v=>{switch(v.type){case"nest":v.unpinFirst&&await m.threads.unpin({threadId:v.threadId}),await m.threads.update({threadId:v.threadId,parentThreadId:v.parentThreadId});return;case"move":await m.threads.update({threadId:v.threadId,sectionId:v.sectionId,...v.detach?{parentThreadId:null}:{}});return;case"detach":await m.threads.update({threadId:v.threadId,parentThreadId:null});return;case"pin":await d.setPinned(v.threadId,!0);return;case"unpin":await d.setPinned(v.threadId,!1);return;case"reorder-pinned":await m.threads.reorderPinned({threadId:v.threadId,previousThreadId:v.previousThreadId,nextThreadId:v.nextThreadId});return;case"blocked":case"unchanged":return}},[m,d]),Mu=Z(v=>{Ze(new Map),Nt(null);let _=v.active.data.current,P=dn(v);if(_===void 0||P===null||te===null)return;if(_.kind==="group"){if(P.kind!=="group"||P.groupId===_.groupId)return;let ee=v.over.rect,ie=Kk(v),ge=ie!==null&&ie>ee.top+ee.height/2?"after":"before",je=Vi[i.organizationMode];a({[je]:X2(te.order,_.groupId,P.groupId,ge)});return}let G=F2(_.thread,P,zn);wo(G).catch(ee=>it.error("Failed to move thread.",{description:mr(ee)}))},[dn,te,i.organizationMode,a,zn,wo]),Ru=Z(()=>Ze(new Map),[]),Tu=q(()=>{if(te===null)return[];let v=new Map([...te.groups,...te.more].map(_=>[_.descriptor.id,_]));return te.order.flatMap(_=>{let P=v.get(_);return P===void 0?[]:[{id:_,label:P.descriptor.label,hidden:P.hidden,hideable:_!=="pinned"}]})},[te]);if(l.status==="error")return x("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[p("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?p(Je,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):p(Je,{size:"sm",variant:"outline",onClick:()=>{m.plugins.reload({pluginId:iL}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(l.status==="loading"||!s||te===null||It===null||vo===null)return p("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(v=>p("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},v))});let he=l.experimental_archived,be=Y===null?null:Ce?.infos.get(Y)??null,ve=oe===null?null:Ae.get(oe)??null;return p(iu.Provider,{value:is,children:x("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[p(Uk,{prefs:i,client:c,onPrefs:a,onClient:u}),Be.length===0?p("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No threads yet."}):x(t5,{sensors:Lu,collisionDetection:cL,onDragMove:Pu,onDragEnd:Mu,onDragCancel:Ru,children:[te.needsYou!==null?p(Zk,{view:te.needsYou,rowController:It,environmentProviders:h,dropStates:Te,activeThreadId:e,editingId:R,now:w,stamps:k}):null,te.groups.map(v=>p(uh,{group:v,rowController:It,groupController:vo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Et,activeThreadId:e,editingId:R,now:w,stamps:k},v.descriptor.id)),te.more.length>0?x(Vs,{children:[p(jo,{asChild:!0,children:x("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${te.more.length} hidden ${te.more.length===1?"group":"groups"}`,className:"mt-1 flex h-7 w-full items-center gap-1 rounded-md pl-2 pr-1 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"flex-1 font-medium",children:"More"}),p(hu,{counters:te.moreCounters}),p(B,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),p(Wo,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:p("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:te.more.map(v=>p(uh,{group:v,rowController:It,groupController:vo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Et,activeThreadId:e,editingId:R,now:w,stamps:k,inOverflow:!0},v.descriptor.id))})})]}):null]}),he!==null?x("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[he.status==="loading"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):he.status==="error"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,he.hasNextPage||he.isFetchNextPageError?p(Je,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:he.isFetchingNextPage,className:S("h-7 text-xs text-muted-foreground"),onClick:()=>{he.fetchNextPage()},children:he.isFetchingNextPage?"Loading\u2026":he.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,p(MC,{open:wt,items:Tu,onOpenChange:Ge,onToggleHidden:v=>a({hiddenGroups:i.hiddenGroups.includes(v)?i.hiddenGroups.filter(_=>_!==v):[...i.hiddenGroups,v]}),onMove:(v,_)=>{let P=te.order.indexOf(v),G=te.order[P+_];G!==void 0&&a({[Vi[i.organizationMode]]:X2(te.order,v,G,_<0?"before":"after")})}}),p(RC,{open:Nn,onOpenChange:ht,onCreate:async v=>{try{await m.threadSections.create({name:v})}catch(_){throw it.error("Couldn't create the section",{description:mr(_)}),_}}}),p(TC,{open:Fe!==null,title:Fe?.title??"",description:Fe?.description??"",confirmLabel:Fe?.confirmLabel??"OK",destructive:Fe?.destructive,onOpenChange:v=>!v&&Dt(null),onConfirm:()=>{Fe?.run(),Dt(null)}}),be!=null?p($C,{open:!0,title:be.thread.displayTitle,onOpenChange:v=>!v&&ne(null),children:p(_u,{info:be,controller:It,showPullRequest:i.showPullRequests,actions:{open:()=>{ne(null),d.open(be.thread.id),n()},toggleRead:()=>Se(be.unread?"mark-read":"mark-unread",be.thread)}})}):null,ve!==null&&Ce!==null?p(AC,{open:!0,title:ve.displayTitle,targets:EC(ve.id,Ce,ae),query:ae,onQueryChange:re,onOpenChange:v=>!v&&j(null),onMove:v=>{(async()=>{v!==null&&(ve.pinnedAt!==null||ve.isPinned)&&await m.threads.unpin({threadId:ve.id}),await m.threads.update({threadId:ve.id,parentThreadId:v})})().catch(P=>it.error("Failed to move thread.",{description:mr(P)}))}}):null]})})}var wF=ph(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:dh})});export{wF as default};