@pollinations/ui 0.1.0-alpha.4 → 0.1.0-alpha.5
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/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var PollinationsUI=(()=>{var Fn=Object.defineProperty;var Od=Object.getOwnPropertyDescriptor;var Ad=Object.getOwnPropertyNames;var Md=Object.prototype.hasOwnProperty;var Dd=(e,t)=>{for(var o in t)Fn(e,o,{get:t[o],enumerable:!0})},Ld=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ad(t))!Md.call(e,n)&&n!==o&&Fn(e,n,{get:()=>t[n],enumerable:!(r=Od(t,n))||r.enumerable});return e};var Fd=e=>Ld(Fn({},"__esModule",{value:!0}),e);var U2={};Dd(U2,{AccountIcon:()=>X1,AccountIdentity:()=>vp,AccountIdentityLink:()=>yp,AccountMenu:()=>Yi,Alert:()=>Cp,AppBrand:()=>nn,AppHeader:()=>Tp,AppIcon:()=>Y1,ArrowLeftIcon:()=>eg,ArrowRightIcon:()=>Vi,AudioIcon:()=>x0,BeakerIcon:()=>Z1,BookIcon:()=>Q1,BotIcon:()=>J1,BrandMark:()=>vo,BugIcon:()=>e0,Button:()=>Ze,ButtonGroup:()=>md,Callout:()=>Np,CardIcon:()=>Y0,ChatConversation:()=>Zi,ChatConversationContent:()=>kp,ChatIcon:()=>M0,ChatMessage:()=>Rp,ChatMessageActions:()=>Ap,ChatMessageContent:()=>Op,ChatMessageHeader:()=>Sp,ChatPromptInput:()=>Mp,ChatPromptInputFooter:()=>Dp,ChatPromptTextarea:()=>Ji,CheckIcon:()=>Re,ChevronIcon:()=>de,Chip:()=>tr,ClipboardIcon:()=>Kt,ClockIcon:()=>Hi,CloudUploadIcon:()=>c0,CodeBlock:()=>Fp,CodeIcon:()=>K0,Collapsible:()=>Bp,ColorModeToggle:()=>xd,ConfirmationDialog:()=>Yp,ContentHeader:()=>Xp,CopyButton:()=>Ct,CopyField:()=>Zp,CubeIcon:()=>h0,DatabaseIcon:()=>q0,Dialog:()=>gn,DialogBody:()=>hn,DialogDescription:()=>fl,DialogFooter:()=>gl,DialogHeader:()=>qo,DialogTitle:()=>ml,DiscordIcon:()=>t0,DownloadIcon:()=>i0,Drawer:()=>bd,Dropdown:()=>vt,DropdownItem:()=>vd,EarningsIcon:()=>S0,EditableCombobox:()=>Tu,EditableComboboxToken:()=>Iu,ExpandIcon:()=>l0,ExternalLinkButton:()=>Nu,ExternalLinkIcon:()=>rt,EyeIcon:()=>D0,EyeOffIcon:()=>L0,Eyebrow:()=>xn,Field:()=>it,FieldStack:()=>Mu,FileUpload:()=>Vu,GenApiIcon:()=>p0,GitBranchIcon:()=>u0,GitHubIcon:()=>g0,GitPullRequestIcon:()=>d0,GlobeIcon:()=>Q0,GraduationCapIcon:()=>m0,Heading:()=>bo,IconButton:()=>er,ImageIcon:()=>rn,InfoTip:()=>Hu,InlineLink:()=>On,Input:()=>Rn,InstagramIcon:()=>o0,KeyChip:()=>Wu,KeyIcon:()=>J0,LinkCard:()=>zu,LinkedInIcon:()=>n0,LoadingStatus:()=>yd,LockIcon:()=>b0,LogInIcon:()=>v0,LogOutIcon:()=>y0,MailIcon:()=>C0,McpIcon:()=>w0,MediaPlaceholder:()=>Uu,MegaphoneIcon:()=>H0,MenuIcon:()=>P0,MicIcon:()=>B0,MoonIcon:()=>Ui,MultiSelect:()=>Ku,NavItem:()=>qu,NewspaperIcon:()=>E0,PauseIcon:()=>a0,PencilIcon:()=>Z0,PeriodPicker:()=>ld,PlayIcon:()=>s0,PlusIcon:()=>_i,PowerIcon:()=>G0,ReasoningIcon:()=>_0,ReceiptIcon:()=>A0,RefreshIcon:()=>tg,RobotIcon:()=>ji,RocketIcon:()=>W0,ScrollArea:()=>Ue,SearchIcon:()=>z0,Section:()=>sd,SignOutIcon:()=>U0,Slider:()=>wd,SparkleIcon:()=>$0,SparklesIcon:()=>f0,SpeakerIcon:()=>V0,SproutIcon:()=>X0,StarIcon:()=>j0,StatCard:()=>ad,SunIcon:()=>Gi,Surface:()=>yt,Switch:()=>An,TabButton:()=>Sn,Table:()=>Ed,TableBody:()=>Td,TableCell:()=>Rd,TableDisclosureButton:()=>Sd,TableHead:()=>Id,TableHeaderCell:()=>kd,TableRow:()=>Nd,TargetIcon:()=>T0,TerminalIcon:()=>I0,Text:()=>ce,Textarea:()=>jo,TokensIcon:()=>N0,ToolCallDetails:()=>pd,ToolIcon:()=>Wi,Tooltip:()=>Je,TrashIcon:()=>$i,TrendUpIcon:()=>R0,UsageIcon:()=>k0,VideoIcon:()=>F0,WalletIcon:()=>O0,WarningIcon:()=>zi,XIcon:()=>qt,XSocialIcon:()=>r0,cn:()=>ud,currentPeriod:()=>Xu,getPeriodBucketKeys:()=>Zu,isPeriodSelectable:()=>or,periodBucketKeyToDate:()=>Ju,periodFromDate:()=>st,periodToWindow:()=>Tt,setColorMode:()=>cs,useColorMode:()=>ps,useScrollLock:()=>dd});function Bd(){let e=globalThis.React;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.React. Load React before @pollinations/ui.");return e}var Vd=Bd();var{Children:cr,Component:$2,Fragment:Z,Profiler:j2,PureComponent:K2,StrictMode:q2,Suspense:Y2,cache:X2,cloneElement:gs,createContext:hs,createElement:pr,createRef:Z2,forwardRef:P,isValidElement:xs,lazy:J2,memo:bs,startTransition:Q2,use:eh,useActionState:th,useCallback:ur,useContext:vs,useDebugValue:oh,useDeferredValue:rh,useEffect:Y,useEffectEvent:nh,useId:ue,useImperativeHandle:ih,useInsertionEffect:lh,useLayoutEffect:dr,useMemo:se,useOptimistic:sh,useReducer:ah,useRef:$,useState:ee,useSyncExternalStore:mr,useTransition:ch,version:ph}=Vd;function ys(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=ys(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function fr(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=ys(e))&&(r&&(r+=" "),r+=t);return r}var Hd=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},_d=(e,t)=>({classGroupId:e,validator:t}),Is=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var Cs=[],Wd="arbitrary..",zd=e=>{let t=Gd(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ud(l);let a=l.split("-"),c=a[0]===""&&a.length>1?1:0;return Ts(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){let c=r[l],p=o[l];return c?p?Hd(p,c):c:p||Cs}return o[l]||Cs}}},Ts=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],i=o.nextPart.get(n);if(i){let p=Ts(e,t+1,i);if(p)return p}let l=o.validators;if(l===null)return;let a=t===0?e.join("-"):e.slice(t).join("-"),c=l.length;for(let p=0;p<c;p++){let u=l[p];if(u.validator(a))return u.classGroupId}},Ud=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Wd+r:void 0})(),Gd=e=>{let{theme:t,classGroups:o}=e;return $d(o,t)},$d=(e,t)=>{let o=Is();for(let r in e){let n=e[r];Wn(n,o,r,t)}return o},Wn=(e,t,o,r)=>{let n=e.length;for(let i=0;i<n;i++){let l=e[i];jd(l,t,o,r)}},jd=(e,t,o,r)=>{if(typeof e=="string"){Kd(e,t,o);return}if(typeof e=="function"){qd(e,t,o,r);return}Yd(e,t,o,r)},Kd=(e,t,o)=>{let r=e===""?t:Ns(t,e);r.classGroupId=o},qd=(e,t,o,r)=>{if(Xd(e)){Wn(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_d(o,e))},Yd=(e,t,o,r)=>{let n=Object.entries(e),i=n.length;for(let l=0;l<i;l++){let[a,c]=n[l];Wn(c,Ns(t,a),o,r)}},Ns=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let i=0;i<n;i++){let l=r[i],a=o.nextPart.get(l);a||(a=Is(),o.nextPart.set(l,a)),o=a}return o},Xd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(i,l)=>{o[i]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let l=o[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return n(i,l),l},set(i,l){i in o?o[i]=l:n(i,l)}}};var Jd=[],ws=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),Qd=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let i=[],l=0,a=0,c=0,p,u=n.length;for(let v=0;v<u;v++){let h=n[v];if(l===0&&a===0){if(h===":"){i.push(n.slice(c,v)),c=v+1;continue}if(h==="/"){p=v;continue}}h==="["?l++:h==="]"?l--:h==="("?a++:h===")"&&a--}let d=i.length===0?n:n.slice(c),g=d,f=!1;d.endsWith("!")?(g=d.slice(0,-1),f=!0):d.startsWith("!")&&(g=d.slice(1),f=!0);let m=p&&p>c?p-c:void 0;return ws(i,f,g,m)};if(t){let n=t+":",i=r;r=l=>l.startsWith(n)?i(l.slice(n.length)):ws(Jd,!1,l,void 0,!0)}if(o){let n=r;r=i=>o({className:i,parseClassName:n})}return r},em=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let i=0;i<o.length;i++){let l=o[i],a=l[0]==="[",c=t.has(l);a||c?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(l)):n.push(l)}return n.length>0&&(n.sort(),r.push(...n)),r}},tm=e=>({cache:Zd(e.cacheSize),parseClassName:Qd(e),sortModifiers:em(e),...zd(e)}),om=/\s+/,rm=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i}=t,l=[],a=e.trim().split(om),c="";for(let p=a.length-1;p>=0;p-=1){let u=a[p],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:v}=o(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!v,C=r(h?m.substring(0,v):m);if(!C){if(!h){c=u+(c.length>0?" "+c:c);continue}if(C=r(m),!C){c=u+(c.length>0?" "+c:c);continue}h=!1}let I=g.length===0?"":g.length===1?g[0]:i(g).join(":"),E=f?I+"!":I,w=E+C;if(l.indexOf(w)>-1)continue;l.push(w);let M=n(C,h);for(let N=0;N<M.length;++N){let _=M[N];l.push(E+_)}c=u+(c.length>0?" "+c:c)}return c},nm=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=ks(o))&&(n&&(n+=" "),n+=r);return n},ks=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ks(e[r]))&&(o&&(o+=" "),o+=t);return o},Hn=(e,...t)=>{let o,r,n,i,l=c=>{let p=t.reduce((u,d)=>d(u),e());return o=tm(p),r=o.cache.get,n=o.cache.set,i=a,a(c)},a=c=>{let p=r(c);if(p)return p;let u=rm(c,o);return n(c,u),u};return i=l,(...c)=>i(nm(...c))},im=[],ae=e=>{let t=o=>o[e]||im;return t.isThemeGetter=!0,t},Rs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ss=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lm=/^\d+\/\d+$/,sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,am=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,um=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>lm.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Bn=e=>e.endsWith("%")&&j(e.slice(0,-1)),Qe=e=>sm.test(e),dm=()=>!0,mm=e=>am.test(e)&&!cm.test(e),Os=()=>!1,fm=e=>pm.test(e),gm=e=>um.test(e),hm=e=>!V(e)&&!H(e),xm=e=>Qt(e,Ds,Os),V=e=>Rs.test(e),Nt=e=>Qt(e,Ls,mm),Vn=e=>Qt(e,wm,j),Ps=e=>Qt(e,As,Os),bm=e=>Qt(e,Ms,gm),gr=e=>Qt(e,Fs,fm),H=e=>Ss.test(e),To=e=>eo(e,Ls),vm=e=>eo(e,Pm),Es=e=>eo(e,As),ym=e=>eo(e,Ds),Cm=e=>eo(e,Ms),hr=e=>eo(e,Fs,!0),Qt=(e,t,o)=>{let r=Rs.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},eo=(e,t,o=!1)=>{let r=Ss.exec(e);return r?r[1]?t(r[1]):o:!1},As=e=>e==="position"||e==="percentage",Ms=e=>e==="image"||e==="url",Ds=e=>e==="length"||e==="size"||e==="bg-size",Ls=e=>e==="length",wm=e=>e==="number",Pm=e=>e==="family-name",Fs=e=>e==="shadow";var _n=()=>{let e=ae("color"),t=ae("font"),o=ae("text"),r=ae("font-weight"),n=ae("tracking"),i=ae("leading"),l=ae("breakpoint"),a=ae("container"),c=ae("spacing"),p=ae("radius"),u=ae("shadow"),d=ae("inset-shadow"),g=ae("text-shadow"),f=ae("drop-shadow"),m=ae("blur"),v=ae("perspective"),h=ae("aspect"),C=ae("ease"),I=ae("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...w(),H,V],N=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],y=()=>[H,V,c],O=()=>[Jt,"full","auto",...y()],L=()=>[at,"none","subgrid",H,V],k=()=>["auto",{span:["full",at,H,V]},at,H,V],A=()=>[at,"auto",H,V],S=()=>["auto","min","max","fr",H,V],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...y()],q=()=>[Jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],B=()=>[e,H,V],be=()=>[...w(),Es,Ps,{position:[H,V]}],nr=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ds=()=>["auto","cover","contain",ym,xm,{size:[H,V]}],Dn=()=>[Bn,To,Nt],ve=()=>["","none","full",p,H,V],Ne=()=>["",j,To,Nt],ir=()=>["solid","dashed","dotted","double"],ms=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[j,Bn,Es,Ps],fs=()=>["","none",m,H,V],lr=()=>["none",j,H,V],sr=()=>["none",j,H,V],Ln=()=>[j,H,V],ar=()=>[Jt,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[dm],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[hm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",j],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jt,V,H,h]}],container:["container"],columns:[{columns:[j,V,H,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",H,V]}],basis:[{basis:[Jt,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Jt,"auto","initial","none",V]}],grow:[{grow:["",j,H,V]}],shrink:[{shrink:["",j,H,V]}],order:[{order:[at,"first","last","none",H,V]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,To,Nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,H,Vn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bn,V]}],"font-family":[{font:[vm,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,H,V]}],"line-clamp":[{"line-clamp":[j,"none",H,Vn]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",H,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ir(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",H,Nt]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[j,"auto",H,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:nr()}],"bg-size":[{bg:ds()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,H,V],radial:["",H,V],conic:[at,H,V]},Cm,bm]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Dn()}],"gradient-via-pos":[{via:Dn()}],"gradient-to-pos":[{to:Dn()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:Ne()}],"border-w-x":[{"border-x":Ne()}],"border-w-y":[{"border-y":Ne()}],"border-w-s":[{"border-s":Ne()}],"border-w-e":[{"border-e":Ne()}],"border-w-t":[{"border-t":Ne()}],"border-w-r":[{"border-r":Ne()}],"border-w-b":[{"border-b":Ne()}],"border-w-l":[{"border-l":Ne()}],"divide-x":[{"divide-x":Ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ir(),"hidden","none"]}],"divide-style":[{divide:[...ir(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ir(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,H,V]}],"outline-w":[{outline:["",j,To,Nt]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",u,hr,gr]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",d,hr,gr]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[j,Nt]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":Ne()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",g,hr,gr]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[j,H,V]}],"mix-blend":[{"mix-blend":[...ms(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ms()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[H,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:nr()}],"mask-size":[{mask:ds()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,V]}],filter:[{filter:["","none",H,V]}],blur:[{blur:fs()}],brightness:[{brightness:[j,H,V]}],contrast:[{contrast:[j,H,V]}],"drop-shadow":[{"drop-shadow":["","none",f,hr,gr]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",j,H,V]}],"hue-rotate":[{"hue-rotate":[j,H,V]}],invert:[{invert:["",j,H,V]}],saturate:[{saturate:[j,H,V]}],sepia:[{sepia:["",j,H,V]}],"backdrop-filter":[{"backdrop-filter":["","none",H,V]}],"backdrop-blur":[{"backdrop-blur":fs()}],"backdrop-brightness":[{"backdrop-brightness":[j,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[j,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,H,V]}],"backdrop-invert":[{"backdrop-invert":["",j,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[j,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[j,H,V]}],"backdrop-sepia":[{"backdrop-sepia":["",j,H,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",H,V]}],ease:[{ease:["linear","initial",C,H,V]}],delay:[{delay:[j,H,V]}],animate:[{animate:["none",I,H,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,H,V]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:lr()}],"rotate-x":[{"rotate-x":lr()}],"rotate-y":[{"rotate-y":lr()}],"rotate-z":[{"rotate-z":lr()}],scale:[{scale:sr()}],"scale-x":[{"scale-x":sr()}],"scale-y":[{"scale-y":sr()}],"scale-z":[{"scale-z":sr()}],"scale-3d":["scale-3d"],skew:[{skew:Ln()}],"skew-x":[{"skew-x":Ln()}],"skew-y":[{"skew-y":Ln()}],transform:[{transform:[H,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ar()}],"translate-x":[{"translate-x":ar()}],"translate-y":[{"translate-y":ar()}],"translate-z":[{"translate-z":ar()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H,V]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[j,To,Nt,Vn]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Em=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:i={}})=>(No(e,"cacheSize",t),No(e,"prefix",o),No(e,"experimentalParseClassName",r),xr(e.theme,i.theme),xr(e.classGroups,i.classGroups),xr(e.conflictingClassGroups,i.conflictingClassGroups),xr(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),No(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),br(e.theme,n.theme),br(e.classGroups,n.classGroups),br(e.conflictingClassGroups,n.conflictingClassGroups),br(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Bs(e,n,"orderSensitiveModifiers"),e),No=(e,t,o)=>{o!==void 0&&(e[t]=o)},xr=(e,t)=>{if(t)for(let o in t)No(e,o,t[o])},br=(e,t)=>{if(t)for(let o in t)Bs(e,t,o)},Bs=(e,t,o)=>{let r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},Vs=(e,...t)=>typeof e=="function"?Hn(_n,e,...t):Hn(()=>Em(_n(),e),...t),Hs=Hn(_n);var Im=Vs({prefix:"polli"});function x(...e){return Im(fr(...e))}var Tm=pr;function s(e,t,o){let r=o===void 0?t:{...t??{},key:String(o)};return Tm(e,r)}var b=s;var de=({expanded:e,className:t})=>s("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 12 12",className:x("polli:shrink-0 polli:transition-transform polli:duration-200 polli:ease-out",e&&"polli:rotate-180",t),children:s("path",{d:"M3 4.5 6 7.5l3-3",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})});var ke=(e,t=[])=>({parts:(...o)=>{if(Nm(t))return ke(e,o);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...o)=>ke(e,[...t,...o]),omit:(...o)=>ke(e,t.filter(r=>!o.includes(r))),rename:o=>ke(o,t),keys:()=>t,build:()=>[...new Set(t)].reduce((o,r)=>Object.assign(o,{[r]:{selector:[`&[data-scope="${to(e)}"][data-part="${to(r)}"]`,`& [data-scope="${to(e)}"][data-part="${to(r)}"]`].join(", "),attrs:{"data-scope":to(e),"data-part":to(r)}}}),{})}),to=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Nm=e=>e.length===0;var km=ke("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Ve=km.build();var Rm=Object.defineProperty,Sm=(e,t,o)=>t in e?Rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,vr=(e,t,o)=>Sm(e,typeof t!="symbol"?t+"":t,o);function yr(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}var ko=()=>{},Ro=e=>typeof e=="object"&&e!==null;var G=e=>e?"":void 0,et=e=>e?"true":void 0;var Om=1,Am=9,Mm=11;var J=e=>Ro(e)&&e.nodeType===Om&&typeof e.nodeName=="string",So=e=>Ro(e)&&e.nodeType===Am,Dm=e=>Ro(e)&&e===e.window;var _s=e=>J(e)?e.localName||"":"#document";function Ws(e){return["html","body","#document"].includes(_s(e))}var zs=e=>Ro(e)&&e.nodeType!==void 0,tt=e=>zs(e)&&e.nodeType===Mm&&"host"in e,zn=e=>J(e)&&e.localName==="input",Us=e=>!!e?.matches("a[href]"),Gs=e=>J(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function kt(e){if(!e)return!1;let t=e.getRootNode();return He(t)===e}var Lm=/(textarea|select)/;function $s(e){if(e==null||!J(e))return!1;try{return zn(e)&&e.selectionStart!=null||Lm.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Rt(e,t){if(!e||!t||!J(e)||!zs(t))return!1;if(J(t)&&e===t||e.contains(t))return!0;let o=t.getRootNode?.();if(o&&tt(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Q(e){return So(e)?e:Dm(e)?e.document:e?.ownerDocument??document}function Fm(e){return Q(e).documentElement}function te(e){return tt(e)?te(e.host):So(e)?e.defaultView??window:J(e)?e.ownerDocument?.defaultView??window:window}function He(e){let t=e.activeElement;for(;t?.shadowRoot;){let o=t.shadowRoot.activeElement;if(!o||o===t)break;t=o}return t}function js(e){if(_s(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tt(e)&&e.host||Fm(e);return tt(t)?t.host:t}function Cr(e){let t;try{if(t=e.getRootNode({composed:!0}),So(t)||tt(t))return t}catch{}return e.ownerDocument??document}var Un=new WeakMap;function Ge(e){return Un.has(e)||Un.set(e,te(e).getComputedStyle(e)),Un.get(e)}var Gn=new Set(["menu","listbox","dialog","grid","tree","region","application"]),Bm=e=>Gn.has(e),Ks=e=>e.getAttribute("aria-controls")?.split(" ")||[];function wr(e,t){let o=new Set,r=Cr(e),n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=Ks(a);for(let p of c){if(!p||o.has(p))continue;o.add(p);let u=r.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";if(d&&Bm(d)&&!g&&(u===t||u.contains(t)||n(u)))return!0}}}return!1};return n(e)}function $n(e,t){let o=Cr(e),r=new Set,n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=Ks(a);for(let p of c){if(!p||r.has(p))continue;r.add(p);let u=o.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";d&&Gn.has(d)&&!g&&(t(u),n(u))}}}};n(e)}function qs(e){let t=new Set;return $n(e,o=>{e.contains(o)||t.add(o)}),Array.from(t)}function Vm(e){let t=e.getAttribute("role");return!!(t&&Gn.has(t))}function Hm(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function Ys(e){return Hm(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function Xs(e){if(!e.id)return!1;let t=Cr(e),o=CSS.escape(e.id),r=`[aria-controls~="${o}"][aria-expanded="true"], [aria-controls="${o}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&Vm(e))}var Pr=()=>typeof document<"u";function _m(){return navigator.userAgentData?.platform??navigator.platform}function Wm(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:o})=>`${t}/${o}`).join(" "):navigator.userAgent}var jn=e=>Pr()&&e.test(_m()),Zs=e=>Pr()&&e.test(Wm()),zm=e=>Pr()&&e.test(navigator.vendor),Kn=()=>Pr()&&!!navigator.maxTouchPoints,Um=()=>jn(/^iPhone/i),Gm=()=>jn(/^iPad/i)||St()&&navigator.maxTouchPoints>1,qn=()=>Um()||Gm(),Yn=()=>St()||qn(),St=()=>jn(/^Mac/i),Js=()=>Yn()&&zm(/apple/i),Qs=()=>Zs(/Firefox/i);var ea=()=>Zs(/Android/i);function $m(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function me(e){return $m(e)?.[0]??e.target}function oa(e){let t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let r=e.button===1,n=jm(e);return r||n}function ra(e){let t=e.currentTarget;if(!t)return!1;let o=t.localName;return e.altKey?o==="a"||o==="button"&&t.type==="submit"||o==="input"&&t.type==="submit":!1}function na(e){return qm(e).isComposing||e.keyCode===229}function jm(e){return St()?e.metaKey:e.ctrlKey}function ia(e){return e.pointerType===""&&e.isTrusted?!0:ea()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ot=e=>e.button===0,Er=e=>e.button===2||St()&&e.ctrlKey&&e.button===0;var Km={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},ta={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Xn(e,t={}){let{dir:o="ltr",orientation:r="horizontal"}=t,n=e.key;return n=Km[n]??n,o==="rtl"&&r==="horizontal"&&n in ta&&(n=ta[n]),n}function qm(e){return e.nativeEvent??e}var ye=(e,t,o,r)=>{let n=typeof e=="function"?e():e;return n?.addEventListener(t,o,r),()=>{n?.removeEventListener(t,o,r)}};var la=e=>J(e)&&e.tagName==="IFRAME",Ym=/^(audio|video|details)$/;function sa(e){let t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var Xm=e=>!Number.isNaN(sa(e)),Zm=e=>sa(e)<0;function Jm(e){return zn(e)&&e.type==="radio"}function Qm(e){if(!Jm(e)||!e.name||e.checked)return!0;let t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,o=e.form??e.ownerDocument,r=Array.from(o.querySelectorAll(t)).filter(i=>i.form===e.form&&Ae(i)),n=r.find(i=>i.checked);return n?n===e:r[0]===e}function ef(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;let o=t(e);return(o===!0?e.shadowRoot:o)||null}function aa(e,t,o){let r=[...e],n=[...e],i=new Set,l=new Map;e.forEach((c,p)=>l.set(c,p));let a=0;for(;a<n.length;){let c=n[a++];if(!c||i.has(c))continue;i.add(c);let p=ef(c,t);if(p){let u=Array.from(p.querySelectorAll(Ir)).filter(o),d=l.get(c);if(d!==void 0){let g=d+1;r.splice(g,0,...u),u.forEach((f,m)=>{l.set(f,g+m)});for(let f=g+u.length;f<r.length;f++)l.set(r[f],f)}else{let g=r.length;r.push(...u),u.forEach((f,m)=>{l.set(f,g+m)})}n.push(...u)}}return r}var Ir="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Tr=(e,t={})=>{if(!e)return[];let{includeContainer:o=!1,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Ir));(o==!0||o=="if-empty"&&n.length===0)&&J(e)&&Ae(e)&&n.unshift(e);let l=[];for(let a of n)if(Ae(a)){if(la(a)&&a.contentDocument){let c=a.contentDocument.body;l.push(...Tr(c,{getShadowRoot:r}));continue}l.push(a)}return r?aa(l,r,Ae):l};function Ae(e){return!J(e)||e.closest("[inert]")?!1:e.matches(Ir)&&Gs(e)}function At(e,t={}){if(!e)return[];let{includeContainer:o,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Ir));o&&ct(e)&&n.unshift(e);let i=[];for(let l of n)if(ct(l)){if(la(l)&&l.contentDocument){let a=l.contentDocument.body;i.push(...At(a,{getShadowRoot:r}));continue}i.push(l)}if(r){let l=aa(i,r,ct);return!l.length&&o?n:l}return!i.length&&o?n:i}function ct(e){return J(e)&&e.tabIndex>0?!0:!Ae(e)||Zm(e)?!1:Qm(e)}function Zn(e,t={}){let o=At(e,t),r=o[0]||null,n=o[o.length-1]||null;return[r,n]}function ca(e,t={}){let{current:o,getShadowRoot:r}=t,n=At(e,{getShadowRoot:r}),i=e?.ownerDocument||document,l=o??He(i);if(!l)return null;let a=n.indexOf(l);return n[a+1]||null}function oo(e){return e.tabIndex<0&&(Ym.test(e.localName)||$s(e))&&!Xm(e)?0:e.tabIndex}function Oo(e){let{root:t,getInitialEl:o,filter:r,enabled:n=!0}=e;if(!n)return;let i=null;if(i||(i=typeof o=="function"?o():o),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){let l=At(t);i=r?l.filter(r)[0]:l[0]}return i||t||void 0}var tf=class pa{constructor(){vr(this,"id",null),vr(this,"fn_cleanup"),vr(this,"cleanup",()=>{this.cancel()})}static create(){return new pa}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function K(e){let t=tf.create();return t.request(e),t.cleanup}function ro(e){let t=new Set;function o(r){let n=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(n))}return o(()=>o(e)),function(){t.forEach(n=>n())}}function ua(e,t,o){let r=K(()=>{e.removeEventListener(t,n,!0),o()}),n=()=>{r(),o()};return e.addEventListener(t,n,{once:!0,capture:!0}),r}function of(e,t){if(!e)return;let{attributes:o,callback:r}=t,n=e.ownerDocument.defaultView||window,i=new n.MutationObserver(l=>{for(let a of l)a.type==="attributes"&&a.attributeName&&o.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:o}),()=>i.disconnect()}function da(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(of(i,t))})),()=>{n.forEach(i=>i?.())}}function ma(e){let t=()=>{let o=te(e);e.dispatchEvent(new o.MouseEvent("click"))};Qs()?ua(e,"keyup",t):queueMicrotask(t)}function Nr(e){let t=js(e);return Ws(t)?Q(t).body:J(t)&&Jn(t)?t:Nr(t)}var rf=/auto|scroll|overlay|hidden|clip/,nf=new Set(["inline","contents"]);function Jn(e){let t=te(e),{overflow:o,overflowX:r,overflowY:n,display:i}=t.getComputedStyle(e);return rf.test(o+n+r)&&!nf.has(i)}function lf(e,t={}){let{triggerElement:o,onFocus:r,onFocusEnter:n,getShadowRoot:i}=t,l=e?.ownerDocument||document,a=l.body;function c(p){if(p.key!=="Tab")return;let u=null,[d,g]=Zn(e,{includeContainer:!0,getShadowRoot:i}),f=ca(a,{current:o,getShadowRoot:i}),m=!d&&!g;p.shiftKey&&kt(f)?(n?.(),u=g):p.shiftKey&&(kt(d)||m)?u=o:!p.shiftKey&&kt(o)?(n?.(),u=d):!p.shiftKey&&(kt(g)||m)&&(u=f),u&&(p.preventDefault(),typeof r=="function"?r(u):u.focus())}return ye(l,"keydown",c,!0)}function fa(e,t){let{defer:o,triggerElement:r,...n}=t,i=o?K:a=>a(),l=[];return l.push(i(()=>{let a=typeof e=="function"?e():e,c=typeof r=="function"?r():r;l.push(lf(a,{triggerElement:c,...n}))})),()=>{l.forEach(a=>a?.())}}function kr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function ga(e,t){return e?.querySelector(t)??null}function sf(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Qn(e,t){let{rootEl:o,...r}=t||{};!e||!o||!Jn(o)||!sf(o)||e.scrollIntoView(r)}function Mt(e,t){if(!e)return ko;let o=Object.keys(t).reduce((r,n)=>(r[n]=e.style.getPropertyValue(n),r),{});return af(o,t)?ko:(Object.assign(e.style,t),()=>{Object.assign(e.style,o),e.style.length===0&&e.removeAttribute("style")})}function ha(e,t,o){if(!e)return ko;let r=e.style.getPropertyValue(t);return r===o?ko:(e.style.setProperty(t,o),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")})}function af(e,t){return Object.keys(e).every(o=>e[o]===t[o])}function cf(e,t,o){let{signal:r}=t;return[new Promise((l,a)=>{let c=setTimeout(()=>{a(new Error(`Timeout of ${o}ms exceeded`))},o);r.addEventListener("abort",()=>{clearTimeout(c),a(new DOMException("Promise aborted","AbortError"))}),e.then(p=>{r.aborted||(clearTimeout(c),l(p))}).catch(p=>{r.aborted||(clearTimeout(c),a(p))})}),()=>t.abort()]}function xa(e,t){let{timeout:o,rootNode:r}=t,n=te(r),i=Q(r),l=new n.AbortController;return cf(new Promise(a=>{let c=e();if(c){a(c);return}let p=new n.MutationObserver(()=>{let u=e();u&&u.isConnected&&(p.disconnect(),a(u))});p.observe(i.body,{childList:!0,subtree:!0})}),l,o)}var ya=["top","right","bottom","left"];var no=Math.min,pt=Math.max;var pf={left:"right",right:"left",bottom:"top",top:"bottom"};function Sr(e,t,o){return pt(e,no(t,o))}function $e(e,t){return typeof e=="function"?e(t):e}function je(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function Or(e){return e==="x"?"y":"x"}function Ar(e){return e==="y"?"height":"width"}function _e(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Mr(e){return Or(_e(e))}function Ca(e,t,o){o===void 0&&(o=!1);let r=Dt(e),n=Mr(e),i=Ar(n),l=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ao(l)),[l,Ao(l)]}function wa(e){let t=Ao(e);return[Rr(e),t,Rr(t)]}function Rr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var ba=["left","right"],va=["right","left"],uf=["top","bottom"],df=["bottom","top"];function mf(e,t,o){switch(e){case"top":case"bottom":return o?t?va:ba:t?ba:va;case"left":case"right":return t?uf:df;default:return[]}}function Pa(e,t,o,r){let n=Dt(e),i=mf(je(e),o==="start",r);return n&&(i=i.map(l=>l+"-"+n),t&&(i=i.concat(i.map(Rr)))),i}function Ao(e){let t=je(e);return pf[t]+e.slice(t.length)}function ff(e){return{top:0,right:0,bottom:0,left:0,...e}}function ei(e){return typeof e!="number"?ff(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Ea(e,t,o){let{reference:r,floating:n}=e,i=_e(t),l=Mr(t),a=Ar(l),c=je(t),p=i==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2,f;switch(c){case"top":f={x:u,y:r.y-n.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-n.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Dt(t)){case"start":f[l]-=g*(o&&p?-1:1);break;case"end":f[l]+=g*(o&&p?-1:1);break}return f}async function Na(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=$e(t,e),m=ei(f),h=a[g?d==="floating"?"reference":"floating":d],C=Lt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(h)))==null||o?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:u,strategy:c})),I=d==="floating"?{x:r,y:n,width:l.floating.width,height:l.floating.height}:l.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},M=Lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:E,strategy:c}):I);return{top:(C.top-M.top+m.top)/w.y,bottom:(M.bottom-C.bottom+m.bottom)/w.y,left:(C.left-M.left+m.left)/w.x,right:(M.right-C.right+m.right)/w.x}}var gf=50,ka=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:l}=o,a=l.detectOverflow?l:{...l,detectOverflow:Na},c=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=Ea(p,r,c),g=r,f=0,m={};for(let v=0;v<i.length;v++){let h=i[v];if(!h)continue;let{name:C,fn:I}=h,{x:E,y:w,data:M,reset:N}=await I({x:u,y:d,initialPlacement:r,placement:g,strategy:n,middlewareData:m,rects:p,platform:a,elements:{reference:e,floating:t}});u=E??u,d=w??d,m[C]={...m[C],...M},N&&f<gf&&(f++,typeof N=="object"&&(N.placement&&(g=N.placement),N.rects&&(p=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:n}):N.rects),{x:u,y:d}=Ea(p,g,c)),v=-1)}return{x:u,y:d,placement:g,strategy:n,middlewareData:m}},Ra=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:l,elements:a,middlewareData:c}=t,{element:p,padding:u=0}=$e(e,t)||{};if(p==null)return{};let d=ei(u),g={x:o,y:r},f=Mr(n),m=Ar(f),v=await l.getDimensions(p),h=f==="y",C=h?"top":"left",I=h?"bottom":"right",E=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-g[f]-i.floating[m],M=g[f]-i.reference[f],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p)),_=N?N[E]:0;(!_||!await(l.isElement==null?void 0:l.isElement(N)))&&(_=a.floating[E]||i.floating[m]);let y=w/2-M/2,O=_/2-v[m]/2-1,L=no(d[C],O),k=no(d[I],O),A=L,S=_-v[m]-k,W=_/2-v[m]/2+y,R=Sr(A,W,S),z=!c.arrow&&Dt(n)!=null&&W!==R&&i.reference[m]/2-(W<A?L:k)-v[m]/2<0,q=z?W<A?W-A:W-S:0;return{[f]:g[f]+q,data:{[f]:R,centerOffset:W-R-q,...z&&{alignmentOffset:q}},reset:z}}});var Sa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:l,initialPlacement:a,platform:c,elements:p}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...h}=$e(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let C=je(n),I=_e(a),E=je(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(p.floating)),M=g||(E||!v?[Ao(a)]:wa(a)),N=m!=="none";!g&&N&&M.push(...Pa(a,v,m,w));let _=[a,...M],y=await c.detectOverflow(t,h),O=[],L=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&O.push(y[C]),d){let W=Ca(n,l,w);O.push(y[W[0]],y[W[1]])}if(L=[...L,{placement:n,overflows:O}],!O.every(W=>W<=0)){var k,A;let W=(((k=i.flip)==null?void 0:k.index)||0)+1,R=_[W];if(R&&(!(d==="alignment"?I!==_e(R):!1)||L.every(B=>_e(B.placement)===I?B.overflows[0]>0:!0)))return{data:{index:W,overflows:L},reset:{placement:R}};let z=(A=L.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:A.placement;if(!z)switch(f){case"bestFit":{var S;let q=(S=L.filter(B=>{if(N){let be=_e(B.placement);return be===I||be==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(be=>be>0).reduce((be,nr)=>be+nr,0)]).sort((B,be)=>B[1]-be[1])[0])==null?void 0:S[0];q&&(z=q);break}case"initialPlacement":z=a;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function Ia(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ta(e){return ya.some(t=>e[t]>=0)}var Oa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...i}=$e(e,t);switch(n){case"referenceHidden":{let l=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Ia(l,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ta(a)}}}case"escaped":{let l=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Ia(l,o.floating);return{data:{escapedOffsets:a,escaped:Ta(a)}}}default:return{}}}}};var Aa=new Set(["left","top"]);async function hf(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),l=je(o),a=Dt(o),c=_e(o)==="y",p=Aa.has(l)?-1:1,u=i&&c?-1:1,d=$e(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:g*p}:{x:g*p,y:f*u}}var Ma=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:l,middlewareData:a}=t,c=await hf(t,e);return l===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:l}}}}},Da=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:c={fn:C=>{let{x:I,y:E}=C;return{x:I,y:E}}},...p}=$e(e,t),u={x:o,y:r},d=await i.detectOverflow(t,p),g=_e(je(n)),f=Or(g),m=u[f],v=u[g];if(l){let C=f==="y"?"top":"left",I=f==="y"?"bottom":"right",E=m+d[C],w=m-d[I];m=Sr(E,m,w)}if(a){let C=g==="y"?"top":"left",I=g==="y"?"bottom":"right",E=v+d[C],w=v-d[I];v=Sr(E,v,w)}let h=c.fn({...t,[f]:m,[g]:v});return{...h,data:{x:h.x-o,y:h.y-r,enabled:{[f]:l,[g]:a}}}}}},La=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:c=!0,crossAxis:p=!0}=$e(e,t),u={x:o,y:r},d=_e(n),g=Or(d),f=u[g],m=u[d],v=$e(a,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let E=g==="y"?"height":"width",w=i.reference[g]-i.floating[E]+h.mainAxis,M=i.reference[g]+i.reference[E]-h.mainAxis;f<w?f=w:f>M&&(f=M)}if(p){var C,I;let E=g==="y"?"width":"height",w=Aa.has(je(n)),M=i.reference[d]-i.floating[E]+(w&&((C=l.offset)==null?void 0:C[d])||0)+(w?0:h.crossAxis),N=i.reference[d]+i.reference[E]+(w?0:((I=l.offset)==null?void 0:I[d])||0)-(w?h.crossAxis:0);m<M?m=M:m>N&&(m=N)}return{[g]:f,[d]:m}}}},Fa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:i,platform:l,elements:a}=t,{apply:c=()=>{},...p}=$e(e,t),u=await l.detectOverflow(t,p),d=je(n),g=Dt(n),f=_e(n)==="y",{width:m,height:v}=i.floating,h,C;d==="top"||d==="bottom"?(h=d,C=g===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(C=d,h=g==="end"?"top":"bottom");let I=v-u.top-u.bottom,E=m-u.left-u.right,w=no(v-u[h],I),M=no(m-u[C],E),N=!t.middlewareData.shift,_=w,y=M;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(y=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=I),N&&!g){let L=pt(u.left,0),k=pt(u.right,0),A=pt(u.top,0),S=pt(u.bottom,0);f?y=m-2*(L!==0||k!==0?L+k:pt(u.left,u.right)):_=v-2*(A!==0||S!==0?A+S:pt(u.top,u.bottom))}await c({...t,availableWidth:y,availableHeight:_});let O=await l.getDimensions(a.floating);return m!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};var Dr=Math.min,Ft=Math.max,Mo=Math.round,Do=Math.floor,We=e=>({x:e,y:e});function Lr(){return typeof window<"u"}function Vt(e){return Va(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Va(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Va(e){return Lr()?e instanceof Node||e instanceof we(e).Node:!1}function Me(e){return Lr()?e instanceof Element||e instanceof we(e).Element:!1}function Ke(e){return Lr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Ba(e){return!Lr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}function lo(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Ha(e){return/^(table|td|th)$/.test(Vt(e))}function Lo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var xf=/transform|translate|scale|rotate|perspective|filter/,bf=/paint|layout|strict|content/,Bt=e=>!!e&&e!=="none",ti;function Fr(e){let t=Me(e)?De(e):e;return Bt(t.transform)||Bt(t.translate)||Bt(t.scale)||Bt(t.rotate)||Bt(t.perspective)||!Br()&&(Bt(t.backdropFilter)||Bt(t.filter))||xf.test(t.willChange||"")||bf.test(t.contain||"")}function _a(e){let t=ot(e);for(;Ke(t)&&!Ht(t);){if(Fr(t))return t;if(Lo(t))return null;t=ot(t)}return null}function Br(){return ti==null&&(ti=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ti}function Ht(e){return/^(html|body|#document)$/.test(Vt(e))}function De(e){return we(e).getComputedStyle(e)}function Fo(e){return Me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ot(e){if(Vt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ba(e)&&e.host||ze(e);return Ba(t)?t.host:t}function Wa(e){let t=ot(e);return Ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&lo(t)?t:Wa(t)}function io(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Wa(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),l=we(n);if(i){let a=Vr(l);return t.concat(l,l.visualViewport||[],lo(n)?n:[],a&&o?io(a):[])}else return t.concat(n,io(n,[],o))}function Vr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $a(e){let t=De(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ke(e),i=n?e.offsetWidth:o,l=n?e.offsetHeight:r,a=Mo(o)!==i||Mo(r)!==l;return a&&(o=i,r=l),{width:o,height:r,$:a}}function ri(e){return Me(e)?e:e.contextElement}function so(e){let t=ri(e);if(!Ke(t))return We(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=$a(t),l=(i?Mo(o.width):o.width)/r,a=(i?Mo(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}var vf=We(0);function ja(e){let t=we(e);return!Br()||!t.visualViewport?vf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yf(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==we(e)?!1:t}function _t(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=ri(e),l=We(1);t&&(r?Me(r)&&(l=so(r)):l=so(e));let a=yf(i,o,r)?ja(i):We(0),c=(n.left+a.x)/l.x,p=(n.top+a.y)/l.y,u=n.width/l.x,d=n.height/l.y;if(i){let g=we(i),f=r&&Me(r)?we(r):r,m=g,v=Vr(m);for(;v&&r&&f!==m;){let h=so(v),C=v.getBoundingClientRect(),I=De(v),E=C.left+(v.clientLeft+parseFloat(I.paddingLeft))*h.x,w=C.top+(v.clientTop+parseFloat(I.paddingTop))*h.y;c*=h.x,p*=h.y,u*=h.x,d*=h.y,c+=E,p+=w,m=we(v),v=Vr(m)}}return Lt({width:u,height:d,x:c,y:p})}function Hr(e,t){let o=Fo(e).scrollLeft;return t?t.left+o:_t(ze(e)).left+o}function Ka(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Hr(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function Cf(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",l=ze(r),a=t?Lo(t.floating):!1;if(r===l||a&&i)return o;let c={scrollLeft:0,scrollTop:0},p=We(1),u=We(0),d=Ke(r);if((d||!d&&!i)&&((Vt(r)!=="body"||lo(l))&&(c=Fo(r)),d)){let f=_t(r);p=so(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}let g=l&&!d&&!i?Ka(l,c):We(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+u.x+g.x,y:o.y*p.y-c.scrollTop*p.y+u.y+g.y}}function wf(e){return Array.from(e.getClientRects())}function Pf(e){let t=ze(e),o=Fo(e),r=e.ownerDocument.body,n=Ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-o.scrollLeft+Hr(e),a=-o.scrollTop;return De(r).direction==="rtl"&&(l+=Ft(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:l,y:a}}var za=25;function Ef(e,t){let o=we(e),r=ze(e),n=o.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(n){i=n.width,l=n.height;let u=Br();(!u||u&&t==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}let p=Hr(r);if(p<=0){let u=r.ownerDocument,d=u.body,g=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-f);m<=za&&(i-=m)}else p<=za&&(i+=p);return{width:i,height:l,x:a,y:c}}function If(e,t){let o=_t(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=Ke(e)?so(e):We(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,c=n*i.x,p=r*i.y;return{width:l,height:a,x:c,y:p}}function Ua(e,t,o){let r;if(t==="viewport")r=Ef(e,o);else if(t==="document")r=Pf(ze(e));else if(Me(t))r=If(t,o);else{let n=ja(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lt(r)}function qa(e,t){let o=ot(e);return o===t||!Me(o)||Ht(o)?!1:De(o).position==="fixed"||qa(o,t)}function Tf(e,t){let o=t.get(e);if(o)return o;let r=io(e,[],!1).filter(a=>Me(a)&&Vt(a)!=="body"),n=null,i=De(e).position==="fixed",l=i?ot(e):e;for(;Me(l)&&!Ht(l);){let a=De(l),c=Fr(l);!c&&a.position==="fixed"&&(n=null),(i?!c&&!n:!c&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||lo(l)&&!c&&qa(e,l))?r=r.filter(u=>u!==l):n=a,l=ot(l)}return t.set(e,r),r}function Nf(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,l=[...o==="clippingAncestors"?Lo(t)?[]:Tf(t,this._c):[].concat(o),r],a=Ua(t,l[0],n),c=a.top,p=a.right,u=a.bottom,d=a.left;for(let g=1;g<l.length;g++){let f=Ua(t,l[g],n);c=Ft(f.top,c),p=Dr(f.right,p),u=Dr(f.bottom,u),d=Ft(f.left,d)}return{width:p-d,height:u-c,x:d,y:c}}function kf(e){let{width:t,height:o}=$a(e);return{width:t,height:o}}function Rf(e,t,o){let r=Ke(t),n=ze(t),i=o==="fixed",l=_t(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=We(0);function p(){c.x=Hr(n)}if(r||!r&&!i)if((Vt(t)!=="body"||lo(n))&&(a=Fo(t)),r){let f=_t(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else n&&p();i&&!r&&n&&p();let u=n&&!r&&!i?Ka(n,a):We(0),d=l.left+a.scrollLeft-c.x-u.x,g=l.top+a.scrollTop-c.y-u.y;return{x:d,y:g,width:l.width,height:l.height}}function oi(e){return De(e).position==="static"}function Ga(e,t){if(!Ke(e)||De(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ze(e)===o&&(o=o.ownerDocument.body),o}function Ya(e,t){let o=we(e);if(Lo(e))return o;if(!Ke(e)){let n=ot(e);for(;n&&!Ht(n);){if(Me(n)&&!oi(n))return n;n=ot(n)}return o}let r=Ga(e,t);for(;r&&Ha(r)&&oi(r);)r=Ga(r,t);return r&&Ht(r)&&oi(r)&&!Fr(r)?o:r||_a(e)||o}var Sf=async function(e){let t=this.getOffsetParent||Ya,o=this.getDimensions,r=await o(e.floating);return{reference:Rf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Of(e){return De(e).direction==="rtl"}var Af={convertOffsetParentRelativeRectToViewportRelativeRect:Cf,getDocumentElement:ze,getClippingRect:Nf,getOffsetParent:Ya,getElementRects:Sf,getClientRects:wf,getDimensions:kf,getScale:so,isElement:Me,isRTL:Of};function Xa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mf(e,t){let o=null,r,n=ze(e);function i(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function l(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();let p=e.getBoundingClientRect(),{left:u,top:d,width:g,height:f}=p;if(a||t(),!g||!f)return;let m=Do(d),v=Do(n.clientWidth-(u+g)),h=Do(n.clientHeight-(d+f)),C=Do(u),E={rootMargin:-m+"px "+-v+"px "+-h+"px "+-C+"px",threshold:Ft(0,Dr(1,c))||1},w=!0;function M(N){let _=N[0].intersectionRatio;if(_!==c){if(!w)return l();_?l(!1,_):r=setTimeout(()=>{l(!1,1e-7)},1e3)}_===1&&!Xa(p,e.getBoundingClientRect())&&l(),w=!1}try{o=new IntersectionObserver(M,{...E,root:n.ownerDocument})}catch{o=new IntersectionObserver(M,E)}o.observe(e)}return l(!0),i}function Za(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,p=ri(e),u=n||i?[...p?io(p):[],...t?io(t):[]]:[];u.forEach(C=>{n&&C.addEventListener("scroll",o,{passive:!0}),i&&C.addEventListener("resize",o)});let d=p&&a?Mf(p,o):null,g=-1,f=null;l&&(f=new ResizeObserver(C=>{let[I]=C;I&&I.target===p&&f&&t&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),p&&!c&&f.observe(p),t&&f.observe(t));let m,v=c?_t(e):null;c&&h();function h(){let C=_t(e);v&&!Xa(v,C)&&o(),v=C,m=requestAnimationFrame(h)}return o(),()=>{var C;u.forEach(I=>{n&&I.removeEventListener("scroll",o),i&&I.removeEventListener("resize",o)}),d?.(),(C=f)==null||C.disconnect(),f=null,c&&cancelAnimationFrame(m)}}var Ja=Ma;var Qa=Da,ec=Sa,tc=Fa,oc=Oa,rc=Ra;var nc=La,ic=(e,t,o)=>{let r=new Map,n={platform:Af,...o},i={...n.platform,_c:r};return ka(e,t,{...n,platform:i})};function lc(e){return e==null?[]:Array.isArray(e)?e:[e]}var Df=(e,t)=>e.indexOf(t)!==-1,Lf=(e,...t)=>e.concat(t),ni=(e,...t)=>e.filter(o=>!t.includes(o));var ii=(e,t)=>Df(e,t)?ni(e,t):Lf(e,t);var sc=e=>e?.constructor.name==="Array",Ff=(e,t)=>{if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ao(e[o],t[o]))return!1;return!0},ao=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(sc(e)&&sc(t))return Ff(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;let o=Object.keys(t??Object.create(null)),r=o.length;for(let n=0;n<r;n++)if(!Reflect.has(e,o[n]))return!1;for(let n=0;n<r;n++){let i=o[n];if(!ao(e[i],t[i]))return!1}return!0};var Bf=e=>Array.isArray(e),ac=e=>e===!0||e===!1,cc=e=>e!=null&&typeof e=="object",_r=e=>cc(e)&&!Bf(e);var co=e=>typeof e=="string",fe=e=>typeof e=="function",pc=e=>e==null,Wt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Vf=e=>Object.prototype.toString.call(e),uc=Function.prototype.toString,Hf=uc.call(Object),dc=e=>{if(!cc(e)||Vf(e)!="[object Object]"||zf(e))return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let o=Wt(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&uc.call(o)==Hf},_f=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Wf=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,zf=e=>_f(e)||Wf(e);var mc=e=>e(),li=()=>{},ut=(...e)=>(...t)=>{e.forEach(function(o){o?.(...t)})};function qe(e,t,...o){if(e in t){let n=t[e];return fe(n)?n(...o):n}let r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,qe),r}function dt(e){if(!dc(e)||e===void 0)return e;let t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),o={};for(let r of t){let n=e[r];n!==void 0&&(o[r]=dt(n))}return o}function po(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function si(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function zt(e,t){if(e==null)throw new Error(t())}function fc(e=0,t=0,o=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,o,r);let n={x:e,y:t,width:o,height:r,top:t,right:e+o,bottom:t+r,left:e};return{...n,toJSON:()=>n}}function Uf(e){if(!e)return fc();let{x:t,y:o,width:r,height:n}=e;return fc(t,o,r,n)}function gc(e,t){return{contextElement:J(e)?e:e?.contextElement,getBoundingClientRect:()=>{let o=e,r=t?.(o);return r||!o?Uf(r):o.getBoundingClientRect()}}}var Bo=e=>({variable:e,reference:`var(${e})`}),Ye={arrowSize:Bo("--arrow-size"),arrowSizeHalf:Bo("--arrow-size-half"),arrowBg:Bo("--arrow-background"),transformOrigin:Bo("--transform-origin"),arrowOffset:Bo("--arrow-offset")},Gf=e=>e==="top"||e==="bottom"?"y":"x";function hc(e,t){return{name:"transformOrigin",fn(o){let{elements:r,middlewareData:n,placement:i,rects:l,y:a}=o,c=i.split("-")[0],p=Gf(c),u=n.arrow?.x||0,d=n.arrow?.y||0,g=t?.clientWidth||0,f=t?.clientHeight||0,m=u+g/2,v=d+f/2,h=Math.abs(n.shift?.y||0),C=l.reference.height/2,I=f/2,E=e.offset?.mainAxis??e.gutter,w=typeof E=="number"?E+I:E??I,M=h>w,N={top:`${m}px calc(100% + ${w}px)`,bottom:`${m}px ${-w}px`,left:`calc(100% + ${w}px) ${v}px`,right:`${-w}px ${v}px`}[c],_=`${m}px ${l.reference.y+C-a}px`,y=!!e.overlap&&p==="y"&&M;return r.floating.style.setProperty(Ye.transformOrigin.variable,y?_:N),{data:{transformOrigin:y?_:N}}}}}var xc={name:"rects",fn({rects:e}){return{data:e}}},bc=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:o}){if(!o.arrow)return{};let{x:r,y:n}=o.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:n!=null?`${n}px`:"",[i]:`calc(100% + ${Ye.arrowOffset.reference})`}),{}}}};function vc(e){let[t,o]=e.split("-");return{side:t,align:o,hasAlign:o!=null}}function Vo(e){return e.split("-")[0]}var $f={strategy:"absolute",placement:"bottom",listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function yc(e,t){let o=e.devicePixelRatio||1;return Math.round(t*o)/o}function uo(e,t){return e!=null&&Math.abs(e-t)<.5}function Wr(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function jf(e,t,o){let r=e||t.createElement("div");return rc({element:r,padding:o.arrowPadding})}function Kf(e,t){if(!pc(t.offset??t.gutter))return Ja(({placement:o})=>{let r=(e?.clientHeight||0)/2,n=t.offset?.mainAxis??t.gutter,i=typeof n=="number"?n+r:n??r,{hasAlign:l}=vc(o),a=l?void 0:t.shift,c=t.offset?.crossAxis??a;return dt({crossAxis:c,mainAxis:i,alignmentAxis:t.shift})})}function qf(e){if(e.flip)return ec(()=>{let t=Wr(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function Yf(e){if(!(!e.slide&&!e.overlap))return Qa(()=>{let t=Wr(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:nc()}})}function Xf(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,o,r,n;return tc(()=>{let i=Wr(e.boundary);return{padding:e.overflowPadding,...i?{boundary:i}:void 0,apply({elements:l,rects:a,availableHeight:c,availableWidth:p}){let u=l.floating,d=Math.round(a.reference.width),g=Math.round(a.reference.height);p=Math.floor(p),c=Math.floor(c),uo(t,d)||(u.style.setProperty("--reference-width",`${d}px`),t=d),uo(o,g)||(u.style.setProperty("--reference-height",`${g}px`),o=g),uo(r,p)||(u.style.setProperty("--available-width",`${p}px`),r=p),uo(n,c)||(u.style.setProperty("--available-height",`${c}px`),n=c)}}})}function Zf(e){if(e.hideWhenDetached)return oc(()=>({strategy:"referenceHidden",boundary:Wr(e.boundary)??"clippingAncestors"}))}function Jf(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var Qf=["transform","visibility","pointer-events","--x","--y","--z-index","--reference-width","--reference-height","--available-width","--available-height","--transform-origin"],e1=["top","right","bottom","left"];function Cc(e,t){if(!e)return li;let o=new Map(t.map(r=>[r,e.style.getPropertyValue(r)]));return()=>{o.forEach((r,n)=>{r?e.style.setProperty(n,r):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute("style")}}function wc(e){return e==null?null:J(e)?e:typeof e=="object"&&e&&"contextElement"in e&&e.contextElement?e.contextElement:e}function t1(e,t,o={}){let r=()=>(typeof t=="function"?t():t)??null,n=()=>{let L=typeof e=="function"?e():e;return o.getAnchorElement?.()??L},i=()=>{let L=n();return!L&&!o.getAnchorRect?null:gc(L,o.getAnchorRect)},l=Object.assign({},$f,o),a=[],c=null,p,u;function d(L){p?.(),u?.(),c=L,p=l.restoreStyles?Cc(L,Qf):void 0;let k=L.querySelector("[data-part=arrow]");u=l.restoreStyles?Cc(k,e1):void 0,a=[Kf(k,l),qf(l),Yf(l),jf(k,L.ownerDocument,l),bc(k),hc({gutter:l.gutter,offset:l.offset,overlap:l.overlap},k),Xf(l),Zf(l),xc]}let{placement:g,strategy:f,onComplete:m,onPositioned:v}=l,h,C,I=!1,E,w,M=li,N=Jf(l.listeners);function _(){if(!l.listeners)return;let L=n(),k=i(),A=r();if(!k||!A)return;(wc(L)!==wc(E)||A!==w)&&(M(),E=L,w=A,M=Za(k,A,O,N))}async function y(){_();let L=r();if(!L)return;L!==c&&(d(L),I=!1);let k=i();if(!k)return;let A=await ic(k,L,{placement:g,middleware:a,strategy:f});m?.(A);let S=te(L),W=yc(S,A.x),R=yc(S,A.y);if(uo(h,W)||(L.style.setProperty("--x",`${W}px`),h=W),uo(C,R)||(L.style.setProperty("--y",`${R}px`),C=R),l.hideWhenDetached&&(A.middlewareData.hide?.referenceHidden?(L.style.setProperty("visibility","hidden"),L.style.setProperty("pointer-events","none")):(L.style.removeProperty("visibility"),L.style.removeProperty("pointer-events"))),!I){let z=L.firstElementChild;z&&(L.style.setProperty("--z-index",Ge(z).zIndex),I=!0)}}async function O(){o.updatePosition?(await o.updatePosition({updatePosition:y,floatingElement:r()}),v?.({placed:!0})):await y()}return O(),()=>{M(),u?.(),p?.(),v?.({placed:!1})}}function Ut(e,t,o={}){let{defer:r,...n}=o,i=r?K:a=>a(),l=[];return l.push(i(()=>{l.push(t1(e,t,n))})),()=>{l.forEach(a=>a?.())}}var o1={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Ho(e={}){let{placement:t,sameWidth:o,fitViewport:r,strategy:n="absolute"}=e;return{arrow:{position:"absolute",width:Ye.arrowSize.reference,height:Ye.arrowSize.reference,[Ye.arrowSizeHalf.variable]:`calc(${Ye.arrowSize.reference} / 2)`,[Ye.arrowOffset.variable]:`calc(${Ye.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?o1[t.split("-")[0]]:void 0,background:Ye.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:n,isolation:"isolate",minWidth:o?void 0:"max-content",width:o?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var ai=e=>e.ids?.anchor??`popover:${e.id}:anchor`,zr=(e,t)=>{let o=e.ids?.trigger;return o!=null?fe(o)?o(t):o:t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`},Ur=e=>e.ids?.content??`popover:${e.id}:content`,ci=e=>e.ids?.positioner??`popover:${e.id}:popper`,Pc=e=>e.ids?.arrow??`popover:${e.id}:arrow`,Gr=e=>e.ids?.title??`popover:${e.id}:title`,$r=e=>e.ids?.description??`popover:${e.id}:desc`,Ec=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,pi=e=>e.getById(ai(e)),ui=e=>e.getById(zr(e)),jr=e=>kr(e.getRootNode(),`[data-scope="popover"][data-part="trigger"][data-ownedby="${e.id}"]`),mt=(e,t)=>t==null?ui(e)??jr(e)[0]:e.getById(zr(e,t)),Gt=e=>e.getById(Ur(e)),di=e=>e.getById(ci(e)),Ic=e=>e.getById(Gr(e)),Tc=e=>e.getById($r(e));function mi(e,t){let{state:o,context:r,send:n,computed:i,prop:l,scope:a}=e,c=l("translations"),p=o.matches("open"),u=r.get("currentPlacement"),d=u?Vo(u):void 0,g=i("currentPortalled"),f=r.get("renderedElements"),m=r.get("triggerValue"),v=Ho({...l("positioning"),placement:u});return{portalled:g,open:p,setOpen(h){o.matches("open")!==h&&n({type:h?"OPEN":"CLOSE"})},triggerValue:m,setTriggerValue(h){n({type:"TRIGGER_VALUE.SET",value:h})},reposition(h={}){n({type:"POSITIONING.SET",options:h})},getArrowProps(){return t.element({id:Pc(a),...Ve.arrow.attrs,dir:l("dir"),style:v.arrow})},getArrowTipProps(){return t.element({...Ve.arrowTip.attrs,dir:l("dir"),style:v.arrowTip})},getAnchorProps(){return t.element({...Ve.anchor.attrs,dir:l("dir"),id:ai(a)})},getTriggerProps(h={}){let{value:C}=h,I=C==null?!1:m===C;return t.button({...Ve.trigger.attrs,dir:l("dir"),type:"button","data-placement":u,"data-side":d,id:zr(a,C),"data-ownedby":a.id,"data-value":C,"data-current":G(I),"aria-haspopup":"dialog","aria-expanded":C==null?p:p&&I,"data-state":p?"open":"closed","aria-controls":Ur(a),onPointerDown(E){Ot(E)&&Js()&&E.currentTarget.focus()},onClick(E){if(E.defaultPrevented)return;let w=p&&C!=null&&!I;n({type:w?"TRIGGER_VALUE.SET":"TOGGLE",value:C})},onBlur(E){n({type:"TRIGGER_BLUR",target:E.relatedTarget})}})},getIndicatorProps(){return t.element({...Ve.indicator.attrs,dir:l("dir"),"data-state":p?"open":"closed"})},getPositionerProps(){return t.element({id:ci(a),...Ve.positioner.attrs,dir:l("dir"),style:v.floating})},getContentProps(){return t.element({...Ve.content.attrs,dir:l("dir"),id:Ur(a),tabIndex:-1,role:"dialog","aria-modal":et(l("modal")),hidden:!p,"data-state":p?"open":"closed","data-expanded":G(p),"aria-labelledby":f.title?Gr(a):void 0,"aria-describedby":f.description?$r(a):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({...Ve.title.attrs,id:Gr(a),dir:l("dir")})},getDescriptionProps(){return t.element({...Ve.description.attrs,id:$r(a),dir:l("dir")})},getCloseTriggerProps(){return t.button({...Ve.closeTrigger.attrs,dir:l("dir"),id:Ec(a),type:"button","aria-label":c.closeTriggerLabel,onClick(h){h.defaultPrevented||(h.stopPropagation(),n({type:"CLOSE"}))}})}}}var mo=new WeakMap,Kr=new WeakMap,qr={},fi=0,kc=e=>e&&(e.host||kc(e.parentNode)),r1=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=kc(o);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),n1=new Set(["script","output","status","next-route-announcer"]),i1=e=>n1.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Rc=(e,t)=>{let{parentNode:o,markerName:r,controlAttribute:n,explicitBooleanValue:i,followControlledElements:l=!0}=t,a=r1(o,Array.isArray(e)?e:[e]);qr[r]||(qr[r]=new WeakMap);let c=qr[r],p=[],u=new Set,d=new Set(a),g=m=>{!m||u.has(m)||(u.add(m),g(m.parentNode))};a.forEach(m=>{g(m),l&&J(m)&&$n(m,v=>{g(v)})});let f=m=>{!m||d.has(m)||Array.prototype.forEach.call(m.children,v=>{if(u.has(v))f(v);else try{if(i1(v))return;let h=v.getAttribute(n),C=i?h==="true":h!==null&&h!=="false",I=(mo.get(v)||0)+1,E=(c.get(v)||0)+1;mo.set(v,I),c.set(v,E),p.push(v),I===1&&C&&Kr.set(v,!0),E===1&&v.setAttribute(r,""),C||v.setAttribute(n,i?"true":"")}catch(h){console.error("[zag-js > ariaHidden] cannot operate on ",v,h)}})};return f(o),u.clear(),fi++,()=>{p.forEach(m=>{let v=mo.get(m)-1,h=c.get(m)-1;mo.set(m,v),c.set(m,h),v||(Kr.has(m)||m.removeAttribute(n),Kr.delete(m)),h||m.removeAttribute(r)}),fi--,fi||(mo=new WeakMap,mo=new WeakMap,Kr=new WeakMap,qr={})}};var l1=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Sc=(e,t=l1(e),o="data-aria-hidden",r=!0)=>{if(t)return Rc(e,{parentNode:t,markerName:o,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:r})};var s1=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Yr(e,t={}){let{defer:o=!0}=t,r=o?s1:i=>i(),n=[];return n.push(r(()=>{let l=(typeof e=="function"?e():e).filter(Boolean);l.length!==0&&n.push(Sc(l))})),()=>{n.forEach(i=>i?.())}}var a1=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),c1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Oc=e=>{let t={},o;for(;o=c1.exec(e);)t[o[1]]=o[2];return t},p1=(e,t)=>{if(co(e)){if(co(t))return`${e};${t}`;e=Oc(e)}else co(t)&&(t=Oc(t));return Object.assign({},e??{},t??{})};function T(...e){let t={};for(let o of e){if(!o)continue;for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof o[n]=="function"){t[n]=ut(o[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=a1(t[n],o[n]);continue}if(n==="style"){t[n]=p1(t[n],o[n]);continue}t[n]=o[n]!==void 0?o[n]:t[n]}for(let n in o)t[n]===void 0&&(t[n]=o[n]);let r=Object.getOwnPropertySymbols(o);for(let n of r)t[n]=o[n]}return t}var ft=".",Dc="#",Ac=new WeakMap,Lc=new WeakMap;function gi(e){return e.join(ft)}function u1(e){return e.includes(ft)}function Fc(e){return e.startsWith(Dc)}function d1(e){return e.startsWith(ft)}function m1(e){return Fc(e)?e.slice(Dc.length):e}function hi(e,t){return e?`${e}${ft}${t}`:t}function f1(e){let t=new Map,o=new Map,r=(n,i)=>{t.set(n,i);let l=i.id;l&&(o.has(l)&&si(`[zag-js] Duplicate state id: "${l}"`),o.set(l,n));let a=i.states;if(a){zt(i.initial,()=>`[zag-js] Compound state "${n}" has child states but no "initial" property`),i.initial in a||si(`[zag-js] Compound state "${n}" has initial "${String(i.initial)}" which is not a child state`);for(let[c,p]of Object.entries(a)){if(!p)continue;let u=hi(n,c);r(u,p)}}};for(let[n,i]of Object.entries(e.states))i&&r(n,i);return{index:t,idIndex:o}}function fo(e){let t=Ac.get(e);if(t)return t;let{index:o,idIndex:r}=f1(e);return Ac.set(e,o),Lc.set(e,r),o}function g1(e,t){return fo(e),Lc.get(e)?.get(t)}function xi(e){return e?String(e).split(ft).filter(Boolean):[]}function Xr(e,t){if(!t)return[];let o=fo(e),r=xi(t),n=[],i=[];for(let l of r){i.push(l);let a=gi(i),c=o.get(a);if(!c)break;n.push({path:a,state:c})}return n}function _o(e,t){let o=fo(e),r=xi(t);if(!r.length)return t;let n=[];for(let a of r){n.push(a);let c=gi(n);if(!o.has(c))return t}let i=gi(n),l=o.get(i);for(;l?.initial;){let a=`${i}${ft}${l.initial}`,c=o.get(a);if(!c)break;i=a,l=c}return i}function Mc(e,t){return fo(e).has(t)}function bi(e,t,o){let r=String(t);if(Fc(r)){let n=m1(r),i=g1(e,n);return zt(i,()=>`[zag-js] Unknown state id: "${n}"`),_o(e,i)}if(d1(r)&&o){let n=hi(o,r.slice(1));return _o(e,n)}if(!u1(r)&&o){let n=xi(o);for(let i=n.length-1;i>=1;i--){let l=n.slice(0,i).join(ft),a=hi(l,r);if(Mc(e,a))return _o(e,a)}if(Mc(e,r))return _o(e,r)}return _o(e,r)}function Bc(e,t,o){let r=Xr(e,t);for(let i=r.length-1;i>=0;i--){let a=r[i]?.state.on?.[o];if(a)return{transitions:a,source:r[i]?.path}}return{transitions:e.on?.[o],source:void 0}}function Vc(e,t,o,r){let n=t?Xr(e,t):[],i=Xr(e,o),l=0;for(;l<n.length&&l<i.length&&n[l]?.path===i[l]?.path;)l+=1;let a=n.slice(l).reverse(),c=i.slice(l),p=n.at(-1)?.path===i.at(-1)?.path;return r&&p&&(a=n.slice().reverse(),c=i),{exiting:a,entering:c}}function Hc(e,t){return e?e===t||e.startsWith(`${t}${ft}`):!1}function _c(e,t,o){return Xr(e,t).some(r=>r.state.tags?.includes(o))}function h1(){return{and:(...e)=>function(o){return e.every(r=>o.guard(r))},or:(...e)=>function(o){return e.some(r=>o.guard(r))},not:e=>function(o){return!o.guard(e)}}}function $t(e){return fo(e),e}function Wc(){return{guards:h1(),createMachine:e=>$t(e),choose:e=>function({choose:o}){return o(e)?.actions}}}var gt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(gt||{}),Wo="__init__";function zc(e){let t=()=>e.getRootNode?.()??document,o=()=>Q(t());return{...e,getRootNode:t,getDoc:o,getWin:()=>o().defaultView??window,getActiveElement:()=>He(t()),isActiveElement:kt,getById:l=>t().getElementById(l)}}function Uc(e){let t={each(o){for(let r=0;r<e.frames?.length;r+=1){let n=e.frames[r];n&&o(n)}},addEventListener(o,r,n){return t.each(i=>{try{i.document.addEventListener(o,r,n)}catch{}}),()=>{try{t.removeEventListener(o,r,n)}catch{}}},removeEventListener(o,r,n){t.each(i=>{try{i.document.removeEventListener(o,r,n)}catch{}})}};return t}function Gc(e){let t=e.frameElement!=null?e.parent:null;return{addEventListener:(o,r,n)=>{try{t?.addEventListener(o,r,n)}catch{}return()=>{try{t?.removeEventListener(o,r,n)}catch{}}},removeEventListener:(o,r,n)=>{try{t?.removeEventListener(o,r,n)}catch{}}}}var $c="pointerdown.outside",jc="focus.outside";function x1(e){for(let t of e)if(J(t)&&Ae(t))return!0;return!1}var Yc=e=>"clientY"in e;function b1(e,t){if(!Yc(t)||!e)return!1;let o=e.getBoundingClientRect();return o.width===0||o.height===0?!1:o.top<=t.clientY&&t.clientY<=o.top+o.height&&o.left<=t.clientX&&t.clientX<=o.left+o.width}function v1(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Kc(e,t){if(!t||!Yc(e))return!1;let o=t.scrollHeight>t.clientHeight,r=o&&e.clientX>t.offsetLeft+t.clientWidth,n=t.scrollWidth>t.clientWidth,i=n&&e.clientY>t.offsetTop+t.clientHeight,l={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(o?16:0),height:t.clientHeight+(n?16:0)},a={x:e.clientX,y:e.clientY};return v1(l,a)?r||i:!1}function y1(e,t){let{exclude:o,onFocusOutside:r,onPointerDownOutside:n,onInteractOutside:i,defer:l,followControlledElements:a=!0}=t;if(!e)return;let c=Q(e),p=te(e),u=Uc(p),d=Gc(p);function g(w,M){if(!J(M)||!M.isConnected||Rt(e,M)||b1(e,w)||a&&wr(e,M))return!1;let N=c.querySelector(`[aria-controls="${e.id}"]`);if(N){let y=Nr(N);if(Kc(w,y))return!1}let _=Nr(e);return Kc(w,_)?!1:!o?.(M)}let f=new Set,m=tt(e?.getRootNode()),v=!1;function h(w){v=!0;let M=()=>{v=!1};c.addEventListener("pointerup",M,{once:!0}),p.addEventListener("pointerup",M,{once:!0});function N(_){let y=l&&!Kn()?K:k=>k(),O=_??w,L=O?.composedPath?.()??[O?.target];y(()=>{let k=m?L[0]:me(w);if(!(!e||!g(w,k))){if(n||i){let A=ut(n,i);e.addEventListener($c,A,{once:!0})}qc(e,$c,{bubbles:!1,cancelable:!0,detail:{originalEvent:O,contextmenu:Er(O),focusable:x1(L),target:k}})}})}w.pointerType==="touch"?(f.forEach(_=>_()),f.add(ye(c,"click",N,{once:!0})),f.add(d.addEventListener("click",N,{once:!0})),f.add(u.addEventListener("click",N,{once:!0}))):N()}let C=new Set,I=setTimeout(()=>{C.add(ye(c,"pointerdown",h,!0)),C.add(d.addEventListener("pointerdown",h,!0)),C.add(u.addEventListener("pointerdown",h,!0))},0);function E(w){if(v)return;(l?K:N=>N())(()=>{let N=w?.composedPath?.()??[w?.target],_=m?N[0]:me(w);if(!(!e||!g(w,_))){if(r||i){let y=ut(r,i);e.addEventListener(jc,y,{once:!0})}qc(e,jc,{bubbles:!1,cancelable:!0,detail:{originalEvent:w,contextmenu:!1,focusable:Ae(_),target:_}})}})}return Kn()||(C.add(ye(c,"focusin",E,!0)),C.add(d.addEventListener("focusin",E,!0)),C.add(u.addEventListener("focusin",E,!0))),()=>{clearTimeout(I),f.forEach(w=>w()),C.forEach(w=>w())}}function Xc(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(y1(i,t))})),()=>{n.forEach(i=>i?.())}}function qc(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,o);return e.dispatchEvent(n)}function Zc(e,t){let o=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ye(Q(e),"keydown",o,{capture:!0})}var Jc="layer:request-dismiss",ge={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){let t=this.indexOf(e),o=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<o},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){let o=this.indexOf(e);return o===-1?[]:this.layers.slice(o+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){let o=this.indexOf(e);if(!(o<=0))return this.layers.slice(0,o).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(r=>Rt(r.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>Rt(t,e))},add(e){let t=this.indexOf(e.node);t!==-1&&this.layers.splice(t,1),this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);if(t<0)return;this.layers[t].styleTargets?.forEach(r=>{let n=r();n&&C1(n)}),this.recentlyRemoved.add(e),ro(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(n=>ge.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers()},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{Qc(e,t,e.node),e.styleTargets?.forEach(o=>{let r=o();if(!r||r===e.node)return;Qc(e,t,r);let{zIndex:n}=Ge(e.node);r.style.setProperty("--z-index",n)})})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){let o=this.indexOf(e);if(o===-1)return;let r=this.layers[o];P1(e,Jc,n=>{r.requestDismiss?.(n),n.defaultPrevented||r?.dismiss()}),w1(e,Jc,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Qc(e,t,o){o.style.setProperty("--layer-index",`${t}`),o.removeAttribute("data-nested"),o.removeAttribute("data-has-nested"),ge.getParentLayerOfType(e.node,e.type)&&o.setAttribute("data-nested",e.type);let n=ge.countNestedLayersOfType(e.node,e.type);n>0&&o.setAttribute("data-has-nested",e.type),o.style.setProperty("--nested-layer-count",`${n}`)}function C1(e){e.style.removeProperty("--layer-index"),e.style.removeProperty("--nested-layer-count"),e.style.removeProperty("--z-index"),e.removeAttribute("data-nested"),e.removeAttribute("data-has-nested")}function w1(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});return e.dispatchEvent(n)}function P1(e,t,o){e.addEventListener(t,o,{once:!0})}var vi=new WeakMap,zo=new WeakMap;function E1(e){return ge.isBelowPointerBlockingLayer(e)?"none":"auto"}function ep(e){let t=E1(e);e.style.pointerEvents!==t&&(e.style.pointerEvents=t)}function I1(e){if(zo.has(e))return;let t=te(e);if(typeof t.MutationObserver>"u")return;let o=new t.MutationObserver(()=>{zo.has(e)&&ep(e)});o.observe(e,{attributes:!0,attributeFilter:["style"]}),zo.set(e,o)}function yi(){ge.layers.forEach(({node:e})=>{ep(e),I1(e)})}function tp(e){let t=zo.get(e);t&&(t.disconnect(),zo.delete(e)),e.style.pointerEvents=""}function op(e,t){let o=Q(e),r=[];return ge.hasPointerBlockingLayer()&&!o.body.hasAttribute("data-inert")&&(vi.set(o.body,o.body.style.pointerEvents),queueMicrotask(()=>{let n=o.body;n&&(n.style.pointerEvents="none",n.setAttribute("data-inert",""))})),t?.forEach(n=>{let[i,l]=xa(()=>{let a=n();return J(a)?a:null},{timeout:1e3});i.then(a=>r.push(Mt(a,{pointerEvents:"auto"}))),r.push(l)}),()=>{ge.hasPointerBlockingLayer()||(queueMicrotask(()=>{let n=o.body;if(!n)return;let i=vi.get(n);i!==void 0&&(n.style.pointerEvents=i,vi.delete(n)),n.removeAttribute("data-inert"),n.style.length===0&&n.removeAttribute("style")}),r.forEach(n=>n()))}}function T1(e,t){let{warnOnMissingNode:o=!0}=t;if(o&&!e){po("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:r,onRequestDismiss:n,pointerBlocking:i,exclude:l,debug:a,type:c="dialog",layerStyleTargets:p}=t,u={dismiss:r,node:e,type:c,pointerBlocking:i,requestDismiss:n,styleTargets:p};ge.add(u),yi();function d(h){let C=me(h.detail.originalEvent);ge.isBelowPointerBlockingLayer(e)||ge.isInBranch(C)||(t.onPointerDownOutside?.(h),t.onInteractOutside?.(h),!h.defaultPrevented&&(a&&console.log("onPointerDownOutside:",h.detail.originalEvent),r?.()))}function g(h){let C=me(h.detail.originalEvent);ge.isInBranch(C)||(t.onFocusOutside?.(h),t.onInteractOutside?.(h),!h.defaultPrevented&&(a&&console.log("onFocusOutside:",h.detail.originalEvent),r?.()))}function f(h){ge.isTopMost(e)&&(t.onEscapeKeyDown?.(h),!h.defaultPrevented&&r&&(h.preventDefault(),r()))}function m(h){if(!e)return!1;let C=typeof l=="function"?l():l,I=Array.isArray(C)?C:[C],E=t.persistentElements?.map(w=>w()).filter(J);return E&&I.push(...E),I.some(w=>Rt(w,h))||ge.isInNestedLayer(e,h)}let v=[i?op(e,t.persistentElements):void 0,Zc(e,f),Xc(e,{exclude:m,onFocusOutside:g,onPointerDownOutside:d,defer:t.defer})];return()=>{ge.remove(e),yi(),tp(e),v.forEach(h=>h?.())}}function go(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=fe(e)?e():e;n.push(T1(i,t))})),()=>{n.forEach(i=>i?.())}}var N1=Object.defineProperty,k1=(e,t,o)=>t in e?N1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oe=(e,t,o)=>k1(e,typeof t!="symbol"?t+"":t,o);var rp={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap(e,t){let o=e.indexOf(t);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},R1=[],ip=class{constructor(e,t){oe(this,"trapStack"),oe(this,"config"),oe(this,"doc"),oe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),oe(this,"portalContainers",new Set),oe(this,"listenerCleanups",[]),oe(this,"handleFocus",r=>{let n=me(r),i=this.findContainerIndex(n,r)>=0;if(i||So(n))i&&(this.state.mostRecentlyFocusedNode=n);else{r.stopImmediatePropagation();let l,a=!0;if(this.state.mostRecentlyFocusedNode)if(oo(this.state.mostRecentlyFocusedNode)>0){let c=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[c];if(p.length>0){let u=p.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<p.length&&(l=p[u+1],a=!1):u-1>=0&&(l=p[u-1],a=!1))}}else this.state.containerGroups.some(c=>c.tabbableNodes.some(p=>oo(p)>0))||(a=!1);else a=!1;a&&(l=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),l?this.tryFocus(l):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),oe(this,"handlePointerDown",r=>{let n=me(r);if(!(this.findContainerIndex(n,r)>=0)){if(Uo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Uo(this.config.allowOutsideClick,r)||r.preventDefault()}}),oe(this,"handleClick",r=>{let n=me(r);this.findContainerIndex(n,r)>=0||Uo(this.config.clickOutsideDeactivates,r)||Uo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),oe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;let n=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:n});if(!i)return;Ci(r)&&r.preventDefault(),this.tryFocus(i)}}),oe(this,"handleEscapeKey",r=>{A1(r)&&Uo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),oe(this,"_mutationObserver"),oe(this,"setupMutationObserver",()=>{let r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(n=>{n.some(a=>Array.from(a.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),n.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(c=>{if(c.nodeType!==Node.ELEMENT_NODE)return!1;let p=c;return Ys(p)?!0:p.id&&!this.state.containers.some(u=>u.contains(p))?Xs(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),oe(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),oe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Ae(r)){let n=He(this.doc);if(n&&this.findContainerIndex(n)>=0)r=n;else{let i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");if(r.isConnected||(r=this.getNodeForOption("fallbackFocus")),!r||!r.isConnected)throw new Error("Your focus-trap needs to have at least one focusable element");return r}),oe(this,"tryFocus",r=>{if(r!==!1&&r!==He(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,M1(r)&&r.select()}}),oe(this,"deactivate",r=>{if(!this.state.active)return this;let n={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),rp.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(n,"onDeactivate"),l=this.getOption(n,"onPostDeactivate"),a=this.getOption(n,"checkCanReturnFocus"),c=this.getOption(n,"returnFocus","returnFocusOnDeactivate");i?.();let p=()=>{np(()=>{if(c){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}l?.()})};if(c&&a){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(p,p),this}return p(),this}),oe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,n?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,n?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),oe(this,"getReturnFocusNode",r=>{let n=this.getNodeForOption("setReturnFocus",{params:[r]});return n||(n===!1?!1:r)}),oe(this,"getOption",(r,n,i)=>r&&r[n]!==void 0?r[n]:this.config[i||n]),oe(this,"getNodeForOption",(r,{hasFallback:n=!1,params:i=[]}={})=>{let l=this.config[r];if(typeof l=="function"&&(l=l(...i)),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=l;if(typeof l=="string"){try{a=this.doc.querySelector(l)}catch(c){throw new Error(`\`${r}\` appears to be an invalid selector; error="${c.message}"`)}if(!a&&!n)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),oe(this,"findNextNavNode",r=>{let{event:n,isBackward:i=!1}=r,l=r.target||me(n);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){let c=this.findContainerIndex(l,n),p=c>=0?this.state.containerGroups[c]:void 0;if(c<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Ae(l)&&!ct(l)&&!p?.nextTabbableNode(l,!1))&&(u=c),u>=0){let d=u===0?this.state.tabbableGroups.length-1:u-1,g=this.state.tabbableGroups[d];a=oo(l)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else Ci(n)||(a=p?.nextTabbableNode(l,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Ae(l)&&!ct(l)&&!p?.nextTabbableNode(l))&&(u=c),u>=0){let d=u===this.state.tabbableGroups.length-1?0:u+1,g=this.state.tabbableGroups[d];a=oo(l)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Ci(n)||(a=p?.nextTabbableNode(l))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||R1;let o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:S1,isKeyBackward:O1,...t};this.doc=o.document||Q(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{qs(e).forEach(o=>{this.addPortalContainer(o)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let o=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:n})=>r.contains(e)||o?.includes(r)||n.find(i=>i===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?wr(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=At(e,{getShadowRoot:this.config.getShadowRoot}),o=Tr(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],n=t[t.length-1],i=r,l=n,a=!1;for(let p=0;p<t.length;p++)if(oo(t[p])>0){a=!0;break}function c(p,u=!0){let d=t.indexOf(p);if(d>=0)return t[d+(u?1:-1)];let g=o.indexOf(p);if(!(g<0)){if(u){for(let f=g+1;f<o.length;f++)if(ct(o[f]))return o[f]}else for(let f=g-1;f>=0;f--)if(ct(o[f]))return o[f]}}return{container:e,tabbableNodes:t,focusableNodes:o,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:n,firstDomTabbableNode:i,lastDomTabbableNode:l,nextTabbableNode:c}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return rp.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?np(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ye(this.doc,"focusin",this.handleFocus,!0),ye(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ye(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ye(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ye(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ye(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=He(this.doc),t?.();let n=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return r?(r(this.state.containers.concat()).then(n,n),this):(n(),this)}},wi=e=>e?.type==="keydown",Ci=e=>wi(e)&&e?.key==="Tab",S1=e=>wi(e)&&e.key==="Tab"&&!e?.shiftKey,O1=e=>wi(e)&&e.key==="Tab"&&e?.shiftKey,Uo=(e,...t)=>typeof e=="function"?e(...t):e,A1=e=>!e.isComposing&&e.key==="Escape",np=e=>setTimeout(e,0),M1=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Zr(e,t={}){let o,r=K(()=>{let i=(Array.isArray(e)?e:[e]).map(a=>typeof a=="function"?a():a).filter(a=>a!=null);if(i.length===0)return;let l=i[0];o=new ip(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:l,...t,document:Q(l)});try{o.activate()}catch{}});return function(){o?.deactivate(),r()}}var lp="data-scroll-lock",Pi=new WeakMap;function D1(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function sp(e){let o=Ge(e)?.scrollbarGutter;return o==="stable"||o?.startsWith("stable ")===!0}function L1(e){let t=e.defaultView??window,{documentElement:o,body:r}=e,n=sp(o)||sp(r),i=t.innerWidth-o.clientWidth;r.setAttribute(lp,"");let l=()=>ha(o,"--scrollbar-width",`${i}px`),a=D1(o),c=()=>{let d={overflow:"hidden"};return!n&&i>0&&(d[a]=`${i}px`),Mt(r,d)},p=()=>{let{scrollX:d,scrollY:g,visualViewport:f}=t,m=f?.offsetLeft??0,v=f?.offsetTop??0,h={position:"fixed",overflow:"hidden",top:`${-(g-Math.floor(v))}px`,left:`${-(d-Math.floor(m))}px`,right:"0"};!n&&i>0&&(h[a]=`${i}px`);let C=Mt(r,h);return()=>{C?.(),t.scrollTo({left:d,top:g,behavior:"instant"})}},u=[l(),qn()?p():c()];return()=>{u.forEach(d=>d?.()),r.removeAttribute(lp)}}function Jr(e){let t=e??document,o=Pi.get(t);o||(o={count:0,cleanup:L1(t)},Pi.set(t,o)),o.count++;let r=o,n=!1;return()=>{n||(n=!0,r.count--,r.count===0&&(r.cleanup(),Pi.delete(t)))}}var Ei=$t({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:"close",...e.translations},positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=mt(o,r);n({value:r,triggerElement:i})}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:o}){e([()=>t("open")],()=>{o(["toggleVisibility"])})},entry:["checkRenderedElements"],on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","reposition"]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackDismissableElement","trackPositioning","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:o}){e.set("currentPlacement",t("positioning").placement);let r=pi(o);return Ut(()=>r??mt(o,e.get("triggerValue")),()=>di(o),{...t("positioning"),defer:!0,onComplete(l){e.set("currentPlacement",l.placement)}})},trackDismissableElement({send:e,prop:t,scope:o}){let r=()=>Gt(o),n=!0;return go(r,{type:"popover",pointerBlocking:t("modal"),exclude:[ui(o),...jr(o)].filter(Boolean),defer:!0,onEscapeKeyDown(i){t("onEscapeKeyDown")?.(i),!t("closeOnEscape")&&i.preventDefault()},onInteractOutside(i){t("onInteractOutside")?.(i),!i.defaultPrevented&&(n=!(i.detail.focusable||i.detail.contextmenu),t("closeOnInteractOutside")||i.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t,context:o}){return e("modal")||!e("portalled")?void 0:fa(()=>Gt(t),{triggerElement:mt(t,o.get("triggerValue")),defer:!0,getShadowRoot:!0,onFocus(n){n.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:o}){return e("modal")?Yr(()=>[Gt(t),mt(t,o.get("triggerValue"))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return Jr(t.getDoc())},trapFocus({prop:e,scope:t,context:o}){return e("modal")?Zr(()=>Gt(t),{preventScroll:!0,returnFocusOnDeactivate:!!e("restoreFocus"),initialFocus:()=>Oo({root:Gt(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),setReturnFocus:n=>{let i=e("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=mt(t,l);if(c)return c}let a=jr(t)[0];return a||n},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:o,context:r}){let n=pi(o);Ut(()=>n??mt(o,r.get("triggerValue")),()=>di(o),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(a){r.set("currentPlacement",a.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},checkRenderedElements({context:e,scope:t}){K(()=>{Object.assign(e.get("renderedElements"),{title:!!Ic(t),description:!!Tc(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||K(()=>{Oo({root:Gt(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:o,context:r}){let n=e.restoreFocus??e.previousEvent?.restoreFocus;n!=null&&!n||t("restoreFocus")&&K(()=>{let i=t("finalFocusEl")?.();if(i){i.focus({preventScroll:!0});return}mt(o,r.get("triggerValue"))?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function ap(e){return new Proxy({},{get(t,o){return o==="style"?r=>e({style:r}).style:e}})}function B1(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function re(e={}){let{name:t,strict:o=!0,hookName:r="useContext",providerName:n="Provider",errorMessage:i,defaultValue:l}=e,a=hs(l);a.displayName=t;function c(){let p=vs(a);if(!p&&o){let u=new Error(i??B1(r,n));throw u.name="ContextError",Wt(Error,"captureStackTrace")&&fe(Error.captureStackTrace)&&Error.captureStackTrace(u,c),u}return p}return[a.Provider,c,a]}var[Qr,ne]=re({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});function Pe(...e){return t=>{let o=[];for(let r of e)if(typeof r=="function"){let n=r(t);typeof n=="function"&&o.push(n)}else r&&(r.current=t);if(o.length)return()=>{for(let r of o)r()}}}function V1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Ii=e=>{let t=bs(P((o,r)=>{let{asChild:n,children:i,...l}=o;if(!n)return pr(e,{...l,ref:r},i);if(!xs(i))return null;let a=cr.only(i),c=V1(a);return gs(a,{...T(l,a.props),ref:r?Pe(r,c):c})}));return t.displayName=e.displayName||e.name,t},H1=()=>{let e=new Map;return new Proxy(Ii,{apply(t,o,r){return Ii(r[0])},get(t,o){let r=o;return e.has(r)||e.set(r,Ii(r)),e.get(r)}})},D=H1();function _1(){let e=globalThis.ReactDOM;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.ReactDOM. Load ReactDOM before @pollinations/ui.");return e}var W1=_1();var{createPortal:en,flushSync:Go}=W1;var tn=typeof globalThis.document<"u"?dr:Y;function $o(e){let t=e().value??e().defaultValue,o=e().isEqual??Object.is,[r]=ee(t),[n,i]=ee(r),l=e().value!==void 0,a=$(n);a.current=l?e().value:n;let c=$(a.current);tn(()=>{c.current=a.current},[n,e().value]);let p=d=>{let g=c.current,f=fe(d)?d(g):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:f,prev:g}),l||i(f),o(f,g)||e().onChange?.(f,g)};function u(){return l?e().value:n}return{initial:r,ref:a,get:u,set(d){(e().sync?Go:mc)(()=>p(d))},invoke(d,g){e().onChange?.(d,g)},hash(d){return e().hash?.(d)??String(d)}}}$o.cleanup=e=>{Y(()=>e,[])};$o.ref=e=>{let t=$(e);return{get:()=>t.current,set:o=>{t.current=o}}};function cp(e){let t=$(e);return{get(o){return t.current[o]},set(o,r){t.current[o]=r}}}var pp=(e,t)=>{let o=$(!1),r=$(!1);Y(()=>{if(o.current&&r.current)return t();r.current=!0},[...(e??[]).map(n=>typeof n=="function"?n():n)]),Y(()=>(o.current=!0,()=>{o.current=!1}),[])};function ht(e,t={}){let o=se(()=>{let{id:k,ids:A,getRootNode:S}=t;return zc({id:k,ids:A,getRootNode:S})},[t]),r=(...k)=>{e.debug&&console.log(...k)},n=e.props?.({props:dt(t),scope:o})??t,i=z1(n),l=e.context?.({prop:i,bindable:$o,scope:o,flush:up,getContext(){return c},getComputed(){return M},getRefs(){return v},getEvent(){return f()}}),a=dp(l),c={get(k){return a.current?.[k].ref.current},set(k,A){a.current?.[k].set(A)},initial(k){return a.current?.[k].initial},hash(k){let A=a.current?.[k].get();return a.current?.[k].hash(A)}},p=$(new Map),u=$(null),d=$(null),g=$({type:""}),f=()=>({...g.current,current(){return g.current},previous(){return d.current}}),m=()=>({...N,matches(...k){return k.some(A=>Hc(N.ref.current,A))},hasTag(k){return _c(e,N.ref.current,k)}}),v=cp(e.refs?.({prop:i,context:c})??{}),h=()=>({state:m(),context:c,event:f(),prop:i,send:L,action:C,guard:I,track:pp,refs:v,computed:M,flush:up,scope:o,choose:w}),C=k=>{let A=fe(k)?k(h()):k;if(!A)return;let S=A.map(W=>{let R=e.implementations?.actions?.[W];return R||po(`[zag-js] No implementation found for action "${JSON.stringify(W)}"`),R});for(let W of S)W?.(h())},I=k=>{if(fe(k))return k(h());let A=e.implementations?.guards?.[k];return A||po(`[zag-js] No implementation found for guard "${JSON.stringify(k)}"`),A?.(h())},E=k=>{let A=fe(k)?k(h()):k;if(!A)return;let S=A.map(R=>{let z=e.implementations?.effects?.[R];return z||po(`[zag-js] No implementation found for effect "${JSON.stringify(R)}"`),z}),W=[];for(let R of S){let z=R?.(h());z&&W.push(z)}return()=>W.forEach(R=>R?.())},w=k=>lc(k).find(A=>{let S=!A.guard;return co(A.guard)?S=!!I(A.guard):fe(A.guard)&&(S=A.guard(h())),S}),M=k=>{zt(e.computed,()=>"[zag-js] No computed object found on machine");let A=e.computed[k];return A({context:c,event:f(),prop:i,refs:v,scope:o,computed:M})},N=$o(()=>({defaultValue:bi(e,e.initialState({prop:i})),onChange(k,A){let{exiting:S,entering:W}=Vc(e,A,k,u.current?.reenter);if(S.forEach(R=>{p.current.get(R.path)?.(),p.current.delete(R.path)}),S.forEach(R=>{C(R.state?.exit)}),C(u.current?.actions),W.forEach(R=>{let z=E(R.state?.effects);if(z){let q=p.current.get(R.path);p.current.set(R.path,q?ut(q,z):z)}}),A===Wo){C(e.entry);let R=E(e.effects);if(R){let z=p.current.get(Wo);p.current.set(Wo,z?ut(z,R):R)}}W.forEach(R=>{C(R.state?.entry)})}})),_=$(void 0),y=$(gt.NotStarted);tn(()=>{queueMicrotask(()=>{let A=y.current===gt.Started;y.current=gt.Started,r(A?"rehydrating...":"initializing...");let S=_.current??N.initial;N.invoke(S,A?N.get():Wo)});let k=p.current;return()=>{let A=O();r("unmounting..."),_.current=A,y.current=gt.Stopped,k.forEach(S=>S?.()),p.current=new Map,u.current=null,queueMicrotask(()=>{C(e.exit),y.current=gt.Stopped})}},[]);let O=()=>"ref"in N?N.ref.current:N.get(),L=k=>{queueMicrotask(()=>{if(y.current!==gt.Started)return;d.current=g.current,g.current=k;let A=O(),{transitions:S,source:W}=Bc(e,A,k.type),R=w(S);if(!R)return;u.current=R;let z=bi(e,R.target??A,W);r("transition",k.type,R.target||A,`(${R.actions})`),z!==A?Go(()=>N.set(z)):R.reenter?N.invoke(A,A):C(R.actions??[])})};return e.watch?.(h()),{state:m(),send:L,context:c,prop:i,scope:o,refs:v,computed:M,event:f(),getStatus:()=>y.current}}function dp(e){let t=$(e);return t.current=e,t}function z1(e){let t=dp(e);return function(r){return t.current[r]}}function up(e){queueMicrotask(()=>{Go(()=>e())})}var xt=ap(e=>e);var Ti=P((e,t)=>{let o=T(ne().getAnchorProps(),e);return s(D.div,{...o,ref:t})});Ti.displayName="PopoverAnchor";var Ni=P((e,t)=>{let o=T(ne().getArrowProps(),e);return s(D.div,{...o,ref:t})});Ni.displayName="PopoverArrow";var ki=P((e,t)=>{let o=T(ne().getArrowTipProps(),e);return s(D.div,{...o,ref:t})});ki.displayName="PopoverArrowTip";var Ri=P((e,t)=>{let o=T(ne().getCloseTriggerProps(),e);return s(D.button,{...o,ref:t})});Ri.displayName="PopoverCloseTrigger";var[Le,he]=re({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var Si=P((e,t)=>{let o=ne(),r=he(),n=T(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});Si.displayName="PopoverContent";var mp=e=>e.children(ne());var Oi=P((e,t)=>{let o=T(ne().getDescriptionProps(),e);return s(D.div,{...o,ref:t})});Oi.displayName="PopoverDescription";var Ai=P((e,t)=>{let o=T(ne().getIndicatorProps(),e);return s(D.div,{...o,ref:t})});Ai.displayName="PopoverIndicator";var Mi=P((e,t)=>{let o=ne(),r=he(),n=T(o.getPositionerProps(),e);return r.unmounted?null:s(D.div,{...n,ref:t})});Mi.displayName="PopoverPositioner";var[Nb,Xe]=re({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var[Sb,ho]=re({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});var fp=e=>{let t=ue(),{getRootNode:o}=Xe(),{dir:r}=ho(),n={id:t,dir:r,getRootNode:o,...e},i=ht(Ei,n);return mi(i,xt)};var ie=()=>(e,t)=>t.reduce((o,r)=>{let[n,i]=o,l=r;return i[l]!==void 0&&(n[l]=i[l]),delete i[l],[n,i]},[{},{...e}]);var Fe=e=>ie()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function gp(e,t={}){let{sync:o=!1}=t,r=U1(e);return ur((...n)=>o?queueMicrotask(()=>r.current?.(...n)):r.current?.(...n),[o,r])}function U1(e){let t=$(e);return t.current=e,t}function Di(e,t){let{state:o,send:r,context:n}=e,i=o.matches("mounted","unmountSuspended");return{skip:!n.get("initial"),present:i,setNode(l){l&&r({type:"NODE.SET",node:l})},unmount(){r({type:"UNMOUNT"})}}}var Li=$t({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["cleanupNode"],watch({track:e,prop:t,send:o}){e([()=>t("present")],()=>{o({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();let o=t.get("node");if(!o)return;let r=te(o),n=new r.CustomEvent("exitcomplete",{bubbles:!1});o.dispatchEvent(n)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ge(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:o,prop:r})=>{let n=r("present");if(n)return o({type:"MOUNT",src:"presence.changed"});let i=t.get("node");if(!n&&i?.ownerDocument.visibilityState==="hidden")return o({type:"UNMOUNT",src:"visibilitychange"});K(()=>{if(r("present"))return;let l=on(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?o({type:"UNMOUNT",src:"presence.changed"}):o({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{K(()=>{e.set("prevAnimationName",on(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:o,prop:r})=>{let n=t.get("node");if(!n)return;let i=p=>{(p.composedPath?.()?.[0]??p.target)===n&&e.set("prevAnimationName",on(t.get("styles")))},l=p=>{let u=on(t.get("styles"));me(p)===n&&u===e.get("unmountAnimationName")&&!r("present")&&o({type:"UNMOUNT",src:"animationend"})},a=p=>{me(p)===n&&!r("present")&&o({type:"UNMOUNT",src:"animationcancel"})};n.addEventListener("animationstart",i),n.addEventListener("animationcancel",a),n.addEventListener("animationend",l);let c=Mt(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",l),ro(()=>c())}}}}});function on(e){return e?.animationName||"none"}var Ee=(e={})=>{let{lazyMount:t,unmountOnExit:o,present:r,skipAnimationOnMount:n=!1,...i}=e,l=$(!1),a={...i,present:r,onExitComplete:gp(e.onExitComplete)},c=ht(Li,a),p=Di(c,xt);p.present&&(l.current=!0);let u=!p.present&&!l.current&&t||o&&!p.present&&l.current,d=()=>({"data-state":p.skip&&n?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:d,present:p.present,unmounted:u}};var hp=e=>{let[t,{children:o,...r}]=Fe(e),n=fp(r);return s(Qr,{value:n,children:s(Le,{value:Ee(T({present:n.open},t)),children:o})})};var xp=e=>{let[t,{value:o,children:r}]=Fe(e);return s(Qr,{value:o,children:s(Le,{value:Ee(T({present:o.open},t)),children:r})})};var Fi=P((e,t)=>{let o=T(ne().getTitleProps(),e);return s(D.div,{...o,ref:t})});Fi.displayName="PopoverTitle";var $1=ie(),Bi=P((e,t)=>{let[o,r]=$1(e,["value"]),n=ne(),i=he(),l=n.getTriggerProps(o),a=T({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(D.button,{...a,ref:t})});Bi.displayName="PopoverTrigger";var bp=Object.defineProperty,bt=(e,t)=>{let o={};for(var r in e)bp(o,r,{get:e[r],enumerable:!0});return t||bp(o,Symbol.toStringTag,{value:"Module"}),o};var xo=bt({Anchor:()=>Ti,Arrow:()=>Ni,ArrowTip:()=>ki,CloseTrigger:()=>Ri,Content:()=>Si,Context:()=>mp,Description:()=>Oi,Indicator:()=>Ai,Positioner:()=>Mi,Root:()=>hp,RootProvider:()=>xp,Title:()=>Fi,Trigger:()=>Bi});var jt=e=>{let{children:t,disabled:o}=e,[r,n]=ee(e.container?.current),i=mr(K1,()=>!1,()=>!0),{getRootNode:l}=Xe();if(Y(()=>{n(()=>e.container?.current)},[e.container]),i||o)return s(Z,{children:t});let a=r??j1(l);return s(Z,{children:cr.map(t,c=>en(c,a))})},j1=e=>{let t=e?.(),o=t.getRootNode();return tt(o)?o:Q(t).body},K1=()=>()=>{};var q1="polli:rounded-lg polli:bg-surface-menu polli:shadow-lg",vt=({trigger:e,children:t,align:o="start",side:r="bottom",open:n,portalled:i=!0,onOpenChange:l,className:a,panelStyle:c})=>{let p=ue(),[u,d]=ee(!1),g=n!==void 0,f=g?n:u,m=v=>{g||d(v),l?.(v)};return b(xo.Root,{ids:{trigger:p},open:f,portalled:i,onOpenChange:v=>m(v.open),positioning:{placement:`${r}-${o}`,strategy:i?"absolute":"fixed"},children:[s(xo.Trigger,{asChild:!0,children:e(f)}),s(jt,{disabled:!i,children:s(xo.Positioner,{children:s(xo.Content,{"aria-labelledby":p,style:c,className:x("polli:z-[120] polli:overflow-hidden polli:focus:outline-none",q1,a),children:typeof t=="function"?t(()=>m(!1)):t})})})]})};var F={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function Y1(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 20h20"})]})}function X1(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"8",r:"4"}),s("path",{d:"M4 21a8 8 0 0 1 16 0"})]})}function Vi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M5 12h14M13 6l6 6-6 6"})})}function Z1(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 3h6"}),s("path",{d:"M10 3v6.5L4.5 18a2 2 0 0 0 1.7 3h11.6a2 2 0 0 0 1.7-3L14 9.5V3"}),s("path",{d:"M7 14h10"})]})}function J1(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 8V4H8"}),s("rect",{x:"4",y:"8",width:"16",height:"12",rx:"2"}),s("path",{d:"M2 14h2M20 14h2"}),s("path",{d:"M9 13v2M15 13v2"})]})}function Q1(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 4h5a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z"}),s("path",{d:"M20 4h-5a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h6z"})]})}function e0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 2 1.9 1.9M14.1 3.9 16 2"}),s("path",{d:"M9 7V6a3 3 0 0 1 6 0v1"}),s("path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a6 6 0 0 1 12 0v3c0 3.3-2.7 6-6 6Z"}),s("path",{d:"M12 20v-9M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M17.5 9C19.4 8.8 21 7.1 21 5M18 13h4M21 21c0-2.1-1.7-3.9-3.8-4"})]})}function Re(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,strokeWidth:2.5,...e,children:s("polyline",{points:"20 6 9 17 4 12"})})}function Kt(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),s("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function Hi(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("path",{d:"M12 7v5l3 2"})]})}function t0(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M20.32 4.37A19.8 19.8 0 0 0 15.36 2.83a.07.07 0 0 0-.08.04c-.21.38-.45.88-.62 1.27a18.27 18.27 0 0 0-5.52 0 12.84 12.84 0 0 0-.63-1.27.08.08 0 0 0-.08-.04A19.74 19.74 0 0 0 3.47 4.37a.07.07 0 0 0-.03.03C.31 9.07-.55 13.61-.13 18.1a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 6.08 3.07.08.08 0 0 0 .09-.03c.47-.64.88-1.31 1.24-2.02a.08.08 0 0 0-.04-.1 13.08 13.08 0 0 1-1.9-.91.08.08 0 0 1-.01-.13c.13-.1.25-.2.37-.29a.07.07 0 0 1 .08-.01 14.24 14.24 0 0 0 12.38 0 .07.07 0 0 1 .08.01c.12.1.25.2.38.3a.08.08 0 0 1-.01.12 12.22 12.22 0 0 1-1.9.9.08.08 0 0 0-.04.11c.36.7.77 1.38 1.23 2.02a.08.08 0 0 0 .1.03 19.84 19.84 0 0 0 6.08-3.07.08.08 0 0 0 .03-.05c.5-5.2-.84-9.7-3.77-13.71a.06.06 0 0 0-.03-.03ZM8.02 15.37c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.96 2.4-2.16 2.4Zm7.96 0c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.95 2.4-2.16 2.4Z"})})}function o0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"}),s("circle",{cx:"12",cy:"12",r:"4"}),s("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor",stroke:"none"})]})}function r0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64Z"})})}function n0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.34V9h3.42v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.32 7.43a2.07 2.07 0 1 1 0-4.13 2.07 2.07 0 0 1 0 4.13ZM7.1 20.45H3.54V9H7.1v11.45Z"})})}function i0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),s("polyline",{points:"7 10 12 15 17 10"}),s("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function l0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5"})})}function s0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M7 4.5v15l12-7.5z"})})}function a0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M6 4h4v16H6zM14 4h4v16h-4z"})})}function c0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M17.5 19H19a4 4 0 0 0 .4-8A7.5 7.5 0 0 0 5 9.5 5 5 0 0 0 6 19h1.5"}),s("path",{d:"m8.5 15.5 3.5-3.5 3.5 3.5M12 12v9"})]})}function rt(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M7 17 17 7M9 7h8v8"})})}function p0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 3 4 1.5L16 3v18l-4-1.5L8 21z"}),s("path",{d:"M8 3v18M16 3v18"})]})}function u0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),s("circle",{cx:"18",cy:"6",r:"3"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("path",{d:"M18 9a9 9 0 0 1-9 9"})]})}function d0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"6",cy:"6",r:"3"}),s("circle",{cx:"18",cy:"18",r:"3"}),s("path",{d:"M6 9v12M13 6h3a2 2 0 0 1 2 2v7"})]})}function m0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21.42 10.92a1 1 0 0 0-.02-1.84L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.57 3.91a2 2 0 0 0 1.66 0z"}),s("path",{d:"M22 10v6"}),s("path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5"})]})}function f0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 3l1.9 5.8a2 2 0 0 0 1.3 1.3L21 12l-5.8 1.9a2 2 0 0 0-1.3 1.3L12 21l-1.9-5.8a2 2 0 0 0-1.3-1.3L3 12l5.8-1.9a2 2 0 0 0 1.3-1.3z"})})}function g0(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M12 .5A11.5 11.5 0 0 0 8.36 22.9c.58.11.79-.25.79-.56v-2.16c-3.21.7-3.89-1.38-3.89-1.38-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.76 2.71 1.25 3.37.96.11-.75.4-1.25.74-1.54-2.56-.29-5.26-1.28-5.26-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.06 0 0 .97-.31 3.16 1.18a10.88 10.88 0 0 1 5.76 0c2.19-1.49 3.15-1.18 3.15-1.18.63 1.6.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.19c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5Z"})})}function rn(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),s("circle",{cx:"9",cy:"9",r:"2"}),s("path",{d:"m21 15-5-5L5 21"})]})}function h0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m21 16-9 5-9-5V8l9-5 9 5z"}),s("path",{d:"m3 8 9 5 9-5"}),s("path",{d:"M12 13v8"})]})}function x0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 18V5l12-2v13"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("circle",{cx:"18",cy:"16",r:"3"})]})}function b0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),s("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function v0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10 17l5-5-5-5"}),s("path",{d:"M15 12H3"}),s("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"})]})}function y0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function C0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),s("path",{d:"m3 7 9 7 9-7"})]})}function w0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"8",height:"16",rx:"1.5"}),s("rect",{x:"14",y:"4",width:"8",height:"16",rx:"1.5"}),s("path",{d:"M10 12h4"})]})}function P0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 7h16M4 12h16M4 17h16"})})}function E0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M5 4h12a1 1 0 0 1 1 1v14a1 1 0 0 0 1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1z"}),s("path",{d:"M18 8h2a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2"}),s("path",{d:"M7 8h7M7 12h7M7 16h4"})]})}function _i(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 5v14M5 12h14"})})}function I0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"4 8 8 12 4 16"}),s("line",{x1:"12",y1:"20",x2:"20",y2:"20"})]})}function Wi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l2.1 2.1a1 1 0 0 0 1.4 0l4-4a6 6 0 0 1-8 8l-8 8a2.8 2.8 0 0 1-4-4l8-8a6 6 0 0 1 8-8l-4 4Z"})})}function T0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("circle",{cx:"12",cy:"12",r:"5"}),s("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"})]})}function N0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 9h16M4 15h16M10 3 8 21M16 3l-2 18"})})}function k0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 18a8 8 0 1 1 16 0"}),s("path",{d:"M12 18l3.5-5"}),s("path",{d:"M7 18h10"}),s("path",{d:"M7.5 12.5 6 11"}),s("path",{d:"M16.5 12.5 18 11"})]})}function zi(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10.3 3.1 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.1a2 2 0 0 0-3.4 0Z"}),s("path",{d:"M12 9v4M12 17h.01"})]})}function R0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"3 17 9 11 13 15 21 7"}),s("polyline",{points:"15 7 21 7 21 13"})]})}function S0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"10",cy:"6",rx:"6",ry:"3"}),s("path",{d:"M4 6v8c0 1.7 2.7 3 6 3 1.2 0 2.4-.2 3.3-.5"}),s("path",{d:"M16 6v4"}),s("path",{d:"M4 10c0 1.7 2.7 3 6 3 1.1 0 2.1-.1 3-.4"}),s("path",{d:"M18 14v6"}),s("path",{d:"M15 17h6"})]})}function O0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 7a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v2H5a2 2 0 0 0-2 2V7Z"}),s("path",{d:"M3 11a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z"}),s("circle",{cx:"17",cy:"14",r:"1.25",fill:"currentColor"})]})}function A0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M6 3h12v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21Z"}),s("path",{d:"M9 8h6M9 12h6M9 16h3"})]})}function Ui(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})})}function Gi(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"4"}),s("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]})}function qt(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M18 6 6 18M6 6l12 12"})})}function $i(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 6h18"}),s("path",{d:"M8 6V4h8v2"}),s("path",{d:"m19 6-1 15H6L5 6"}),s("path",{d:"M10 11v6M14 11v6"})]})}function M0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function ji(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"6",width:"18",height:"15",rx:"3"}),s("path",{d:"M12 2v4M3 11H1v5h2M21 11h2v5h-2M8 17h8"}),s("circle",{cx:"9",cy:"12",r:"1"}),s("circle",{cx:"15",cy:"12",r:"1"})]})}function D0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"})]})}function L0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"}),s("path",{d:"M3 3l18 18"})]})}function F0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m22 8-6 4 6 4V8z"}),s("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]})}function B0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),s("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),s("path",{d:"M12 19v3"})]})}function V0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M11 5 6 9H2v6h4l5 4z"}),s("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),s("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]})}function H0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m3 11 18-5v12L3 14v-3z"}),s("path",{d:"m7 15 1.5 6H14l-2-7"})]})}function _0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M9 18h6M10 22h4M15.1 14c.2-1 .6-1.7 1.4-2.5A4.6 4.6 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.8.8 1.2 1.5 1.4 2.5"})})}function W0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),s("path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),s("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),s("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"})]})}function z0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"11",cy:"11",r:"7"}),s("path",{d:"m21 21-4.3-4.3"})]})}function U0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function G0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2v10"}),s("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function $0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z"}),s("path",{d:"M20 3v4"}),s("path",{d:"M22 5h-4"}),s("path",{d:"M4 17v2"}),s("path",{d:"M5 18H3"})]})}function j0({filled:e=!1,...t}){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,fill:e?"currentColor":"none",...t,children:s("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function K0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"})})}function q0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),s("path",{d:"M3 5v14a9 3 0 0 0 18 0V5"}),s("path",{d:"M3 12a9 3 0 0 0 18 0"})]})}function Y0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 10h20"})]})}function X0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M7 20h10"}),s("path",{d:"M10 20c5.5-2.5.8-6.4 3-10"}),s("path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z"}),s("path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z"})]})}function Z0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 20h9"}),s("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function J0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"7.5",cy:"15.5",r:"5.5"}),s("path",{d:"m21 2-9.6 9.6"}),s("path",{d:"m15.5 7.5 3 3L22 7l-3-3"})]})}function Q0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"10"}),s("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),s("path",{d:"M2 12h20"})]})}function eg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M19 12H5"}),s("path",{d:"m12 19-7-7 7-7"})]})}function tg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),s("path",{d:"M21 3v6h-6"})]})}function og(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"?":t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]??""}${t.at(-1)?.[0]??""}`.toUpperCase()}function Ki({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,inline:n=!1}){let i=n?"polli:h-6 polli:w-6":o!=null?"polli:h-11 polli:w-11":"polli:h-8 polli:w-8",l=x(i,n&&"polli:transition-transform polli:group-hover:scale-110 polli:group-hover:brightness-110 polli:motion-reduce:transition-none polli:motion-reduce:group-hover:scale-100"),a=t?s("img",{src:t,alt:"",className:x(l,"polli:shrink-0 polli:rounded-full polli:object-cover")}):s("span",{role:"img","aria-label":`${e} avatar`,className:x(l,"polli:flex polli:shrink-0 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-pale polli:text-xs polli:font-semibold polli:text-theme-text-strong"),children:og(e)});return r?s("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":"Open dashboard",title:"Open dashboard",className:"polli:shrink-0 polli:rounded-full polli:cursor-pointer polli:transition-transform polli:hover:scale-105 polli:hover:brightness-110 polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current polli:motion-reduce:transition-none polli:motion-reduce:hover:scale-100",children:a}):a}function vp({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,className:n}){return b("span",{className:x("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-surface-opaque polli:p-1 polli:pr-3",n),children:[s(Ki,{name:e,avatarUrl:t,dashboardHref:r,secondaryContent:o}),s(qi,{name:e,secondaryContent:o})]})}function yp({name:e,avatarUrl:t,href:o,className:r}){return b("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:x("polli:group polli:inline-flex polli:max-w-full polli:min-w-0 polli:items-center polli:gap-1.5 polli:rounded-full polli:bg-theme-bg-subtle polli:p-0.5 polli:pr-2.5 polli:align-middle polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current",r),children:[s(Ki,{name:e,avatarUrl:t,inline:!0}),s(qi,{name:e}),s(rt,{"aria-hidden":"true",className:"polli:-ml-0.5 polli:h-3 polli:w-3 polli:shrink-0 polli:text-theme-text-strong polli:opacity-65"})]})}function qi({name:e,secondaryContent:t,secondaryId:o}){return b("span",{className:"polli:flex polli:min-w-0 polli:flex-col polli:items-start polli:text-left",children:[s("span",{title:e,className:"polli:max-w-full polli:truncate polli:text-sm polli:font-medium polli:leading-5 polli:text-theme-text-strong",children:e}),t!=null&&s("span",{id:o,className:"polli:inline-flex polli:min-h-5 polli:items-center polli:whitespace-nowrap polli:text-xs polli:leading-4 polli:text-theme-text-base",children:t})]})}function Yi({name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r,children:n,className:i,menuClassName:l,side:a="bottom",menuLabel:c=`Account menu for ${e}`}){let p=ue(),u=s(Ki,{name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r});return b("div",{"data-theme":"accent",className:x("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-theme-bg-active polli:p-1 polli:pr-3 polli:text-theme-text-strong polli:transition-colors polli:hover:bg-theme-bg-hover",i),children:[o&&u,s(vt,{align:"end",side:a,className:x("polli:w-max polli:min-w-[var(--reference-width)] polli:p-1",l),trigger:d=>b("button",{type:"button","aria-label":c,"aria-describedby":r!=null?p:void 0,className:"polli-control polli:flex polli:min-w-0 polli:flex-1 polli:items-center polli:gap-2 polli:self-stretch polli:rounded-full polli:text-theme-text-strong",children:[!o&&u,s(qi,{name:e,secondaryContent:r,secondaryId:p}),s(de,{expanded:d,className:"polli:ml-auto polli:h-4 polli:w-4 polli:text-theme-text-strong"})]}),children:n})]})}var rg={display:"polli:font-heading polli:text-5xl polli:leading-none",title:"polli:font-heading polli:text-4xl polli:leading-none",section:"polli:font-subheading polli:text-2xl polli:leading-tight",subsection:"polli:font-subheading polli:text-xl polli:leading-tight",card:"polli:font-subheading polli:text-lg polli:leading-tight"},ng={body:"polli:text-base polli:leading-relaxed",sm:"polli:text-sm polli:leading-6",xs:"polli:text-xs polli:leading-normal",micro:"polli:text-micro polli:leading-normal"},ig={base:"polli:text-theme-text-base",strong:"polli:text-theme-text-strong",soft:"polli:text-theme-text-soft",muted:"polli:text-theme-text-muted"},lg={normal:"polli:font-normal",medium:"polli:font-medium",semibold:"polli:font-semibold",bold:"polli:font-bold"};function Xi(e,t){return x("polli:break-words polli:text-theme-text-strong",rg[e],t)}function sg({size:e,tone:t,weight:o,className:r}){return x("polli:break-words polli:font-body",ng[e],ig[t],lg[o],r)}function bo({as:e,size:t="section",className:o,children:r,...n}){return s(e||"h2",{...n,className:Xi(t,o),children:r})}function ce({as:e,size:t="body",tone:o="base",weight:r="normal",className:n,children:i,...l}){return s(e||"p",{...l,className:sg({size:t,tone:o,weight:r,className:n}),children:i})}var ag={info:"polli:bg-theme-bg-pale polli:text-theme-text-strong",advisory:"polli:bg-intent-warning-bg-light/45 polli:text-theme-text-base",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},Cp=({intent:e="info",title:t,className:o,children:r,...n})=>b("div",{...n,role:e==="danger"?"alert":"status",className:x("polli:rounded-xl polli:px-3 polli:py-2 polli:text-sm",e==="advisory"&&"polli:flex polli:items-start polli:gap-2",ag[e],o),children:[e==="advisory"&&s(zi,{className:"polli:mt-0.5 polli:h-4 polli:w-4 polli:shrink-0 polli:text-intent-warning-text"}),b("div",{className:"polli:min-w-0",children:[t&&(e==="advisory"?b(Z,{children:[s("strong",{className:"polli:font-semibold polli:text-theme-text-strong",children:t})," ","\u2014"," "]}):s(ce,{as:"div",size:"xs",tone:"strong",weight:"bold",className:"polli:mb-1 polli:uppercase polli:tracking-wide",children:t})),r]})]});var wp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.891 105.6" fill="currentColor">%0A <g transform="translate(-13.81 -16.241) scale(0.921)"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></g>%0A <g transform="translate(-68.454 -154.133) scale(4.051)"><path d="M82.117 39.523c-.152.172-.191 2.747-.172 9.192l.059 8.945h4.773l.059-9.039c.039-7.113 0-9.078-.191-9.21-.438-.266-4.278-.192-4.528.112m7.621.117c-.21.4-.265 16.895-.054 17.696.093.398.187.418 2.441.418 1.969 0 2.371-.059 2.465-.305.21-.535.133-17.43-.074-17.828-.192-.324-.422-.363-2.391-.363-1.965 0-2.195.039-2.387.383m7.774-.27c-.075.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m50.312.152c-.156.172-.21.88-.172 1.965l.055 1.68h4.777l.055-1.793c.04-1.316-.02-1.852-.191-1.965-.133-.074-1.164-.152-2.27-.152-1.512 0-2.101.078-2.254.265m76.512-.152c-.074.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m-86.539 1.527c-.059.172-.117 1.145-.117 2.192v1.887h-.84c-.973 0-1.07.136-1.07 1.601 0 1.184.21 1.45 1.183 1.45h.727v2.042c0 1.145.058 2.899.132 3.907l.118 1.87h1.832l.058.895.055.918h5.54l.058-1.316c.039-.934-.02-1.375-.192-1.469-.133-.098-.781-.172-1.449-.172h-1.187l.039-3.3.058-3.278 1.336-.098 1.336-.093v-2.86l-1.336-.097-1.336-.094-.058-2.156-.055-2.133h-2.352c-1.984 0-2.386.054-2.48.304m-88.414 4.215c-.078.055-.137 4.04-.137 8.848 0 8.14.02 8.75.344 8.883.172.097 1.3.133 2.484.097l2.14-.058v-5.13h3.532c2.695 0 3.535-.058 3.555-.245.02-.117.035-.535.054-.899.02-.668.02-.668 1.032-.722l.996-.059v-8.906l-.594-.113a7.4 7.4 0 0 0-1.05-.114c-.419 0-.458-.078-.458-.86v-.858H55.38l-.059.707c-.054.726-.054.726-.953.78l-.918.06v-1.547h-1.97c-1.085 0-2.042.058-2.097.136m9.031 6.235v3.336l-2.023.058c-1.11.035-2.063.02-2.102-.02-.039-.038-.074-1.562-.074-3.394v-3.3h4.2Zm9.32-5.473c-.054.875-.074.914-.629.875a5.6 5.6 0 0 0-.992.059l-.441.078v8.941l1.012.059.996.054.054.918.059.895 4.91-.04 4.906-.054.059-.918.059-.894h2.082v-4.461c0-4.328-.02-4.485-.383-4.598-.211-.074-.668-.094-1.012-.055-.594.055-.613.036-.707-.8l-.098-.86-4.906-.058-4.91-.04Zm6.914 5.492v3.336h-4.007v-6.676h4.007Zm22.864-6.254c-.075.055-.133 2.934-.133 6.387v6.273l2.351-.058 2.329-.055.058-6.351.035-6.332h-2.25c-1.242 0-2.332.058-2.39.136m6.972 6.196.059 6.351h4.773l.059-4.824.04-4.809h4.007l.039 4.809.059 4.824h4.773l.059-5.379.039-5.379-.996-.054-1.012-.059-.055-.914-.058-.898-3.094.039-3.094.058-.059.703-.058.727h-1.89v-1.527h-3.63Zm17-4.864.055 1.489 3.785.058 3.781.035-.058.918-.059.895-3.148.097-3.153.094-.019.762v.766l-.973.054c-.824.04-.996.133-1.09.477-.152.555-.152 1.773 0 2.879l.133.879h1.832l.059.894.058.918 2.922.055 2.903.058v-1.562l.918.055c.898.058.898.058.953.761l.058.727h3.61V46.922l-.574-.133c-.305-.074-.649-.074-.743-.02-.441.29-.785-.132-.785-.953v-.84h-10.523Zm7.602 7.399v.86h-3.629v-1.716h3.629Zm18.621-8.637c-.055.133-.074 2.992-.055 6.352l.055 6.101h4.777V45.074l-2.351-.058c-1.778-.04-2.367.02-2.426.191m9.168 0a5.3 5.3 0 0 0-.133.914c-.058.668-.058.668-1.07.727l-.992.054.039 4.426.054 4.422.997.059.992.058.058.895.055.898 4.93.055 4.906.039v-1.906h2.101v-8.961h-.742c-1.207 0-1.36-.137-1.36-1.07v-.84h-4.866c-3.746 0-4.91.058-4.969.23m6.973 6.16v3.336h-4.012v-6.676h4.012Zm7.179-6.234c-.054.113-.035 8.406.059 11.894l.02.727h2.367c1.988 0 2.386-.059 2.484-.305.059-.172.113-2.347.113-4.863v-4.574l1.97.054 1.948.059.094 4.766.098 4.77h4.773V46.98l-.957-.094-.953-.098-.094-.855-.097-.86-3.094-.058-3.113-.04v1.528h-1.91v-1.527h-1.798c-.992 0-1.851.078-1.91.156m18.321.075a5 5 0 0 0-.137.914c-.055.668-.055.668-1.05.727l-1.013.054v1.891c0 1.027.059 2 .118 2.172.074.23.379.305 1.03.305h.934l.06.8.058.82 2.73.06 2.711.058v1.695h-3.57c-1.989 0-3.707.074-3.84.172-.172.094-.23.535-.191 1.469l.058 1.316h10.313l.058-.898.055-.895.996-.058.992-.059.059-1.617c.074-2.367.035-2.48-1.11-2.48h-.937l-.055-.821-.058-.8-2.77-.094-2.77-.098v-1.715l3.516-.059c1.95-.02 3.61-.113 3.723-.207.133-.117.191-.726.152-1.527l-.074-1.355h-4.95c-3.8 0-4.984.058-5.038.23m19.902 0c-.04.133-.04.8.035 1.488l.117 1.239 3.684.058 3.668.035v1.91h-6.3v1.715h-2.102v4.176l1.011.059.992.054.06.918.054.914 2.906-.058 2.902-.055.059-.726c.055-.707.074-.707.894-.707.825 0 .844 0 .899.707l.059.726 1.87.055 1.852.058V52.32c0-4.215-.055-5.433-.226-5.453-.137-.02-.594-.039-1.012-.058-.766-.02-.766-.02-.863-.875l-.094-.86-5.176-.058c-4.05-.04-5.215 0-5.289.191m7.504 8.637v.879l-1.758-.059-1.773-.055-.059-.535c-.113-1.011 0-1.086 1.871-1.086h1.719Zm7.449-2.477v6.387h4.719l.113-2.156a67 67 0 0 0 0-8.293l-.113-2.328h-4.719Zm-22.137 2.27c-.152.172-.21.894-.171 2.133l.058 1.89 2.063.055 2.062.058-.058-2.156-.055-2.152-1.836-.059c-1.414-.039-1.89.02-2.063.23m0 0"/></g>%0A</svg>%0A';var Pp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 17.6409 119.9998 114.7498" fill="currentColor"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></svg>%0A';var Ep=e=>({WebkitMask:`url('${e}') center / contain no-repeat`,mask:`url('${e}') center / contain no-repeat`}),ug={mark:Ep(Pp),lockup:Ep(wp)};function vo({variant:e="mark",className:t}){return s("span",{"aria-hidden":"true",className:x("polli:block polli:shrink-0 polli:bg-current",t),style:ug[e]})}function nn({appName:e,href:t="/",size:o="md",className:r}){return b("a",{href:t,className:x("polli:inline-flex polli:min-w-0 polli:shrink-0 polli:items-center polli:text-theme-text-strong",o==="md"?"polli:gap-3":"polli:gap-2.5",r),children:[s(vo,{className:o==="md"?"polli:h-8 polli:w-8":"polli:h-7 polli:w-7"}),s("span",{className:x("polli:min-w-0 polli:truncate polli:font-subheading polli:font-medium polli:leading-none",o==="md"?"polli:text-2xl":"polli:text-xl"),children:e})]})}function Ip(e){return e===window?window.scrollY:e.scrollTop}function Tp({children:e,navLabel:t,appName:o,autoHide:r=!1,scrollTargetRef:n,brandHref:i,brandLabel:l="Pollinations",className:a,innerClassName:c,navClassName:p}){let[u,d]=ee(!1);return Y(()=>{if(!r||typeof window>"u"){d(!1);return}let g=n?.current??window,f=Ip(g),m=0,v=()=>{m||(m=window.requestAnimationFrame(()=>{m=0;let h=Ip(g),C=h-f;h<16?d(!1):C>8?d(!0):C<-8&&d(!1),f=h}))};return g.addEventListener("scroll",v,{passive:!0}),()=>{m&&window.cancelAnimationFrame(m),g.removeEventListener("scroll",v)}},[r,n]),s("header",{className:x("polli:sticky polli:top-0 polli:z-30 polli:bg-app-bg polli:py-4","polli:transition-transform polli:duration-200 polli:ease-out",r&&"polli:will-change-transform",u?"polli:-translate-y-full":"polli:translate-y-0",a),onFocusCapture:()=>d(!1),children:b("div",{className:x("polli:mx-auto polli:flex polli:w-full polli:max-w-5xl polli:flex-col polli:gap-4 polli:px-4 polli:sm:flex-row polli:sm:items-center polli:sm:justify-between polli:sm:px-6",c),children:[o?s(nn,{appName:o,href:i}):b("a",{href:i??"https://pollinations.ai",target:"_blank",rel:"noopener noreferrer",className:"polli:inline-flex polli:shrink-0 polli:items-center polli:text-theme-text-strong",children:[s("span",{className:"polli:sr-only",children:l}),s(vo,{variant:"lockup",className:"polli:h-7 polli:w-[220px] polli:max-w-full"})]}),e?s("nav",{"aria-label":t,className:x("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-2",p),children:e}):null]})})}var dg={panel:"polli:rounded-3xl polli:bg-surface-block polli:p-4 polli:sm:rounded-block polli:sm:p-7",card:"polli-surface-card polli:rounded-card polli:bg-surface-opaque polli:p-3.5 polli:sm:p-4","card-themed":"polli:rounded-card polli:bg-theme-bg-pale polli:p-3.5 polli:sm:p-4"};function yt({as:e,variant:t="card",className:o,children:r,...n}){return s(e||"div",{...n,className:x("polli:min-w-0",dg[t],o),children:r})}function Np({title:e,body:t,children:o,tone:r="theme",className:n}){return b(yt,{as:"section",variant:"panel",className:x("polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-8 polli:rounded-3xl polli:px-6 polli:py-9 polli:sm:gap-10 polli:sm:px-10 polli:sm:py-12",r==="dark"?"dark polli:bg-brand-dark":void 0,n),children:[b("div",{className:"polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5",children:[s(bo,{size:"section",className:"polli:text-3xl polli:sm:text-4xl",children:e}),s(ce,{className:"polli:text-theme-text-strong/75",children:t})]}),s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-3",children:o})]})}var mg={y:"polli:overflow-y-auto polli:overflow-x-hidden",x:"polli:overflow-x-auto polli:overflow-y-hidden",both:"polli:overflow-auto"};function fg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Ue=P(({axis:e="y",scrollbar:t="subtle",className:o,children:r,...n},i)=>{let l=$(null),a=ur(c=>{l.current=c,fg(i,c)},[i]);return Y(()=>{if(t==="native")return;let c=l.current;if(!c)return;let p=null,u=()=>{p!==null&&(window.clearTimeout(p),p=null)},d=()=>{c.dataset.scrollbarActive="true",u()},g=()=>{c.dataset.scrollbarActive="false",u()},f=()=>{u(),p=window.setTimeout(g,2e3)},m=()=>{d(),f()};return g(),c.addEventListener("scroll",m,{passive:!0}),c.addEventListener("wheel",m,{passive:!0}),c.addEventListener("touchstart",m,{passive:!0}),c.addEventListener("pointerdown",m),c.addEventListener("keydown",m),c.addEventListener("focusin",m),c.addEventListener("focusout",f),()=>{u(),c.removeEventListener("scroll",m),c.removeEventListener("wheel",m),c.removeEventListener("touchstart",m),c.removeEventListener("pointerdown",m),c.removeEventListener("keydown",m),c.removeEventListener("focusin",m),c.removeEventListener("focusout",f)}},[t]),s("div",{...n,ref:a,className:x(t==="subtle"&&"polli-scrollbar-subtle","polli:min-w-0 polli:max-w-full",mg[e],o),children:r})});Ue.displayName="ScrollArea";var Zi=P(({children:e,className:t,viewportClassName:o,showScrollButton:r=!1,onScrollToBottom:n,scrollButtonLabel:i="Scroll to latest message",...l},a)=>b("div",{className:x("polli:relative polli:min-h-0",t),children:[s(Ue,{...l,ref:a,className:x("polli:h-full polli:min-h-0",o),children:e}),r&&n&&s("button",{type:"button","aria-label":i,title:i,onClick:n,className:"polli-control polli:absolute polli:bottom-3 polli:left-1/2 polli:flex polli:size-9 polli:-translate-x-1/2 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-full polli:border polli:border-theme-border/60 polli:bg-surface-opaque polli:text-theme-text-strong polli:transition-transform polli:hover:translate-y-0.5",children:s(Vi,{className:"polli:size-4 polli:rotate-90"})})]}));Zi.displayName="ChatConversation";function kp({className:e,...t}){return s("div",{className:x("polli:flex polli:min-w-0 polli:flex-col polli:gap-5",e),...t})}function Rp({from:e,className:t,children:o,...r}){return s("article",{"data-role":e,className:x("polli:group/message polli:flex polli:w-fit polli:max-w-full polli:min-w-0 polli:flex-col polli:gap-3 polli:[overflow-wrap:anywhere] polli:rounded-xl polli:px-4 polli:py-3",e==="user"?"polli:ml-auto polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:mr-auto polli:bg-surface-opaque polli:text-theme-text-base",t),...r,children:o})}function Sp({from:e,label:t,icon:o,className:r,...n}){let i=t??(e==="user"?"You":e==="assistant"?"Agent":"System");return b("header",{className:x("polli:flex polli:items-center polli:gap-2",r),...n,children:[e==="assistant"&&(o??s("span",{className:"polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(ji,{className:"polli:size-3.5"})})),s(ce,{as:"span",size:"xs",tone:"muted",weight:"bold",className:"polli:uppercase polli:tracking-wide",children:i})]})}function Op({className:e,...t}){return s("div",{className:x("polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",e),...t})}function Ap({className:e,...t}){return s("footer",{className:x("polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",e),...t})}var jo=P(({className:e,error:t,rows:o=4,...r},n)=>s("textarea",{ref:n,rows:o,"data-error":t?"true":void 0,className:x("polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2","polli:min-h-20 polli:resize-y polli:font-body polli:text-base","polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",e),...r}));jo.displayName="Textarea";function Mp({className:e,...t}){return s("fieldset",{className:x("polli:m-0 polli:min-w-0 polli:p-0",e),...t})}var Ji=P(({className:e,...t},o)=>s(jo,{...t,ref:o,className:x("polli:resize-none",e)}));Ji.displayName="ChatPromptTextarea";function Dp({start:e,end:t,children:o,className:r,...n}){return s("div",{className:x("polli:flex polli:flex-wrap polli:items-end polli:gap-2",r),...n,children:o??b(Z,{children:[s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-2",children:e}),s("div",{className:"polli:ml-auto polli:flex polli:items-center polli:gap-2",children:t})]})})}var gg={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none",sm:"polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1",md:"polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2",lg:"polli:min-h-12 polli:px-6 polli:py-3 polli:text-base"},hg={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:px-2 polli:py-1 polli:text-xs",sm:"polli:px-4 polli:py-2 polli:text-sm",md:"polli:px-7 polli:py-3.5 polli:text-base",lg:"polli:px-8 polli:py-4 polli:text-lg"},xg={pill:"polli:rounded-full",raised:"polli:rounded-xl polli:border-r-[3px] polli:border-b-[3px] polli:border-solid polli:border-theme-text-strong/20 polli:hover:border-theme-text-strong/45"},bg="polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",Lp="polli:border polli:border-theme-text-soft polli:bg-theme-bg-active/30 polli:text-theme-text-strong polli:transition-colors polli:[.dark_&]:bg-transparent",vg={brand:`${Lp} polli:hover:bg-theme-bg-active/50 polli:[.dark_&]:hover:bg-theme-text-soft/10`,commit:`${Lp} polli:hover:border-theme-bg-active polli:hover:bg-theme-bg-active polli:focus-visible:border-theme-bg-active polli:focus-visible:bg-theme-bg-active polli:[.dark_&]:hover:bg-theme-bg-active polli:[.dark_&]:focus-visible:bg-theme-bg-active`,danger:"polli:border polli:border-intent-danger-text polli:bg-intent-danger-bg-light polli:text-intent-danger-text polli:hover:bg-intent-danger-bg-hover polli:focus-visible:bg-intent-danger-bg-hover polli:transition-colors polli:[.dark_&]:bg-transparent polli:[.dark_&]:hover:bg-intent-danger-bg-hover polli:[.dark_&]:focus-visible:bg-intent-danger-bg-hover",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text polli:hover:bg-intent-info-bg-hover polli:transition-colors",neutral:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong polli:transition-colors"},yg=({intent:e,appearance:t="pill",size:o,className:r,disabled:n,busy:i})=>{let l=e?vg[e]:bg,a=t==="raised"?hg:gg;return x("polli-control polli:inline-flex polli:items-center polli:justify-center polli:self-center polli:font-body polli:text-sm polli:font-medium polli:leading-normal polli:box-border polli:border polli:border-transparent",i?"polli:cursor-progress":n?"polli:opacity-50 polli:cursor-not-allowed":"polli:hover:filter polli:hover:brightness-105 polli:cursor-pointer",l,xg[t],a[o||"md"],r)};function Ze({as:e,children:t,icon:o,intent:r,appearance:n,size:i,className:l,disabled:a,...c}){let p=e||"button",u=p==="button",d=p==="a",g=c.type,f=c.onClick,m=c["aria-busy"],v=m===!0||m==="true";return b(p,{...c,"data-intent":r,...u?{type:g??"button",disabled:a}:{},...!u&&a?{"aria-disabled":!0,tabIndex:-1}:{},...d&&a?{href:void 0}:{},onClick:a?C=>{C.preventDefault(),C.stopPropagation()}:f,className:yg({intent:r,appearance:n,size:i,className:l,disabled:a,busy:v}),children:[o&&s("span",{"aria-hidden":"true",className:"polli:mr-2 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:v?s("span",{className:"polli:block polli:size-full polli:animate-spin polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent polli:motion-reduce:animate-none"}):o}),t]})}var Cg=288,ln=12,Je=({children:e,content:t,align:o="start",ariaLabel:r,clampToViewport:n=!0,className:i,maxWidth:l=Cg,onClick:a,stopClickPropagation:c=!0,style:p,tapEnabled:u=!1,triggerAs:d="button",displayContents:g=!1})=>{let[f,m]=ee(!1),[v,h]=ee({top:0,left:0,maxWidth:l}),C=$(null),I=$(!1),E=ue(),w=()=>{I.current=!1,m(!1)};Y(()=>{if(!f)return;let S=z=>{C.current?.contains(z.target)||(I.current=!1,m(!1))},W=z=>{z.key==="Escape"&&(I.current=!1,m(!1))},R=()=>{I.current=!1,m(!1)};return document.addEventListener("pointerdown",S),document.addEventListener("keydown",W),window.addEventListener("scroll",R,{capture:!0,passive:!0}),window.addEventListener("resize",R),()=>{document.removeEventListener("pointerdown",S),document.removeEventListener("keydown",W),window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",R)}},[f]);let M=()=>{if(C.current){let S=C.current.getBoundingClientRect(),W=Math.min(l,window.innerWidth-ln*2),R=o==="center"?S.left+S.width/2:S.left,z=o==="center"?"translateX(-50%)":void 0;n&&(R=Math.min(Math.max(S.left,ln),Math.max(ln,window.innerWidth-W-ln)),z=void 0),h({top:S.bottom+4,left:R,maxWidth:W,transform:z})}},N=x("polli-control polli:relative polli:cursor-help polli:text-left polli:inline-flex polli:items-center",i),_=g?"polli:contents":"polli:cursor-inherit",O=t?s("span",{id:E,role:"tooltip","aria-hidden":!f,style:{top:v.top,left:v.left,maxWidth:v.maxWidth,transform:v.transform},className:`${f?"polli:visible polli:opacity-100":"polli:invisible polli:opacity-0"} polli:fixed polli:w-max polli:px-2 polli:py-1 polli:bg-surface-menu polli:text-theme-text-base polli:font-normal polli:leading-snug polli:tracking-normal polli:normal-case polli:not-italic polli:text-xs polli:rounded-md polli:shadow-md polli:z-[130] polli:pointer-events-none polli:transition-opacity polli:whitespace-pre-line polli:break-words`,children:t}):null,L=O&&typeof document<"u"?en(O,C.current?.closest('[role="dialog"]')??document.body):O,k=b(Z,{children:[s("span",{className:_,children:e}),L]}),A={"aria-label":r,"aria-describedby":t&&f?E:void 0,className:N,onMouseEnter:()=>{M(),m(!0)},onMouseLeave:()=>{I.current||m(!1)},onClick:S=>{if(c&&S.stopPropagation(),a&&a(),!(!u||!t)){if(M(),I.current){w();return}I.current=!0,m(!0)}},onFocus:()=>{M(),m(!0)},onBlur:w,style:p};if(d==="span"){let W={...A,role:u&&t?"button":void 0,tabIndex:u&&t?0:void 0,onKeyDown:u&&t?R=>{if(!(!u||!t)&&!(R.key!=="Enter"&&R.key!==" ")){if(R.preventDefault(),M(),I.current){w();return}I.current=!0,m(!0)}}:void 0};return s("span",{ref:R=>{C.current=R},...W,children:k})}return s("button",{ref:S=>{C.current=S},type:"button","aria-label":r,"aria-describedby":t&&f?E:void 0,className:N,onMouseEnter:A.onMouseEnter,onMouseLeave:A.onMouseLeave,onClick:A.onClick,onFocus:A.onFocus,onBlur:A.onBlur,style:p,children:k})};function Ct({value:e,children:t,copiedTimeoutMs:o=2e3,tooltip:r="\u{1F4CB} Click to copy",tooltipAlign:n,tooltipClampToViewport:i,tooltipMaxWidth:l,copiedTooltip:a="\u2705 Copied!",tooltipClassName:c,className:p,variant:u="plain",intent:d,onCopied:g,onCopyError:f,...m}){let[v,h]=ee(!1),C=$(null);Y(()=>()=>{C.current&&clearTimeout(C.current)},[]);async function I(M){M.stopPropagation();try{let N=typeof e=="function"?await e():e;await navigator.clipboard.writeText(N),h(!0),g?.(),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>h(!1),o)}catch(N){f?.(N)}}let w=s(u==="button"?Ze:"button",{...m,...u==="button"&&d?{intent:d}:{},type:"button",onClick:I,className:x("polli-control",m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",typeof p=="function"?p(v):p),children:typeof t=="function"?t(v):t});return r===null?w:s(Je,{triggerAs:"span",content:v?a:r,align:n,clampToViewport:i,maxWidth:l,displayContents:!0,tapEnabled:!1,className:x(m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",c),children:w})}var Fp=({code:e,codeClassName:t,language:o,className:r,...n})=>{let i=o||"Code";return b("div",{...n,className:x("polli:min-w-0 polli:max-w-full polli:overflow-hidden polli:rounded-lg polli:border polli:border-theme-border polli:bg-theme-bg-pale",r),children:[b("div",{className:"polli:flex polli:min-h-9 polli:items-center polli:justify-between polli:gap-3 polli:bg-theme-bg-subtle polli:px-3 polli:py-1.5",children:[s("span",{className:"polli:truncate polli:font-mono polli:text-[11px] polli:font-medium polli:uppercase polli:tracking-wide polli:text-theme-text-muted",children:i}),s(Ct,{value:e,tooltip:null,"aria-label":"Copy code",className:"polli:flex polli:items-center polli:gap-1.5 polli:rounded-md polli:px-2 polli:py-1 polli:text-xs polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",children:l=>b(Z,{children:[l?s(Re,{className:"polli:size-3.5"}):s(Kt,{className:"polli:size-3.5"}),s("span",{children:l?"Copied":"Copy"})]})})]}),s("pre",{className:x("polli:m-0 polli:min-w-0 polli:whitespace-pre-wrap polli:break-words polli:[overflow-wrap:anywhere] polli:[tab-size:4] polli:p-3 polli:font-mono polli:text-xs polli:leading-6 polli:text-theme-text-strong",t),children:s("code",{children:e})})]})};var Bp=({label:e,expanded:t,onToggle:o,children:r,disabled:n=!1,wrapperClassName:i,triggerClassName:l,hoverClassName:a="polli:hover:bg-theme-bg-active",focusClassName:c,panelClassName:p="polli:border-t polli:border-theme-border polli:px-3 polli:pt-3 polli:pb-3",ariaLabel:u})=>b("div",{className:x("polli:rounded-lg polli:border polli:transition-all",i,n&&"polli:opacity-50"),children:[b("button",{type:"button","aria-expanded":t,"aria-label":u,disabled:n,onClick:o,className:x("polli-control polli:w-full polli:flex polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:transition-colors",t?"polli:rounded-t-lg":"polli:rounded-lg",l,!n&&a,c,n?"polli:cursor-not-allowed":"polli:cursor-pointer"),children:[s("div",{className:"polli:flex-1 polli:min-w-0",children:e}),s(de,{expanded:t,className:"polli:text-theme-text-soft"})]}),t&&s("div",{className:p,children:r})]});var wg=ke("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),wt=wg.build();var Qi=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,el=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,sn=e=>e.ids?.content??`dialog:${e.id}:content`,an=(e,t)=>{let o=e.ids?.trigger;return o!=null?fe(o)?o(t):o:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},cn=e=>e.ids?.title??`dialog:${e.id}:title`,pn=e=>e.ids?.description??`dialog:${e.id}:description`,tl=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Ko=e=>e.getById(sn(e)),Vp=e=>e.getById(Qi(e)),Hp=e=>e.getById(el(e)),ol=e=>e.getById(an(e)),_p=e=>e.getById(cn(e)),Wp=e=>e.getById(pn(e)),zp=e=>e.getById(tl(e)),un=e=>kr(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),rl=(e,t)=>t==null?ol(e)??un(e)[0]:e.getById(an(e,t));function nl(e,t){let{state:o,send:r,context:n,prop:i,scope:l}=e,a=i("aria-label"),c=o.matches("open"),p=n.get("triggerValue");return{open:c,setOpen(u){o.matches("open")!==u&&r({type:u?"OPEN":"CLOSE"})},triggerValue:p,setTriggerValue(u){r({type:"TRIGGER_VALUE.SET",value:u})},getTriggerProps(u={}){let{value:d}=u,g=d==null?!1:p===d;return t.button({...wt.trigger.attrs,dir:i("dir"),id:an(l,d),"data-ownedby":l.id,"data-value":d,"aria-haspopup":"dialog",type:"button","aria-expanded":d==null?c:c&&g,"data-state":c?"open":"closed","aria-controls":sn(l),"data-current":G(g),onClick(f){if(f.defaultPrevented)return;let m=c&&d!=null&&!g;r({type:m?"TRIGGER_VALUE.SET":"TOGGLE",value:d})}})},getBackdropProps(){return t.element({...wt.backdrop.attrs,dir:i("dir"),hidden:!c,id:el(l),"data-state":c?"open":"closed"})},getPositionerProps(){return t.element({...wt.positioner.attrs,dir:i("dir"),id:Qi(l),style:dt({pointerEvents:!c||!i("modal")?"none":void 0})})},getContentProps(){let u=n.get("rendered");return t.element({...wt.content.attrs,dir:i("dir"),role:i("role"),hidden:!c,id:sn(l),tabIndex:-1,"data-state":c?"open":"closed","aria-modal":i("modal"),"aria-label":a||void 0,"aria-labelledby":a||!u.title?void 0:cn(l),"aria-describedby":u.description?pn(l):void 0,style:dt({pointerEvents:i("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...wt.title.attrs,dir:i("dir"),id:cn(l)})},getDescriptionProps(){return t.element({...wt.description.attrs,dir:i("dir"),id:pn(l)})},getCloseTriggerProps(){return t.button({...wt.closeTrigger.attrs,dir:i("dir"),id:tl(l),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),r({type:"CLOSE"}))}})}}}var il=$t({props({props:e,scope:t}){let o=e.role==="alertdialog",r=o?()=>zp(t):void 0,n=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:n,trapFocus:n,preventScroll:n,closeOnInteractOutside:n&&!o,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=rl(o,r);n({value:r,triggerElement:i})}}))}},watch({track:e,action:t,prop:o}){e([()=>o("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:o}){return go(()=>Ko(e),{type:"dialog",defer:!0,pointerBlocking:o("modal"),layerStyleTargets:[()=>Hp(e),()=>Vp(e)],exclude:[ol(e),...un(e)].filter(Boolean),onInteractOutside(n){o("onInteractOutside")?.(n),o("closeOnInteractOutside")||n.preventDefault()},persistentElements:o("persistentElements"),onFocusOutside:o("onFocusOutside"),onPointerDownOutside:o("onPointerDownOutside"),onRequestDismiss:o("onRequestDismiss"),onEscapeKeyDown(n){o("onEscapeKeyDown")?.(n),o("closeOnEscape")||n.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Jr(e.getDoc())},trapFocus({scope:e,prop:t,context:o}){return t("trapFocus")?Zr(()=>Ko(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{let i=t("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=rl(e,l);if(c)return c}let a=un(e)[0];return a||n},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Yr(()=>[Ko(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||K(()=>{Oo({root:Ko(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){K(()=>{e.set("rendered",{title:!!_p(t),description:!!Wp(t)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:o}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:o})}}}});var[dn,xe]=re({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var[mn,Gp]=re({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),fn=e=>ie()(e,["lazyMount","unmountOnExit"]);var ll=P((e,t)=>{let o=xe(),r=Ee({...Gp(),present:o.open}),n=T(o.getBackdropProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});ll.displayName="DialogBackdrop";var sl=P((e,t)=>{let o=T(xe().getCloseTriggerProps(),e);return s(D.button,{...o,ref:t})});sl.displayName="DialogCloseTrigger";var al=P((e,t)=>{let o=xe(),r=he(),n=T(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});al.displayName="DialogContent";var $p=e=>e.children(xe());var cl=P((e,t)=>{let o=T(xe().getDescriptionProps(),e);return s(D.div,{...o,ref:t})});cl.displayName="DialogDescription";var pl=P((e,t)=>{let o=T(xe().getPositionerProps(),e);return he().unmounted?null:s(D.div,{...o,ref:t})});pl.displayName="DialogPositioner";var jp=e=>{let t=ue(),{getRootNode:o}=Xe(),{dir:r}=ho(),n={id:t,getRootNode:o,dir:r,...e},i=ht(il,n);return nl(i,xt)};var Kp=e=>{let[t,{children:o,...r}]=Fe(e),[n]=fn(t),i=jp(r);return s(dn,{value:i,children:s(mn,{value:n,children:s(Le,{value:Ee(T({present:i.open},t)),children:o})})})};var qp=e=>{let[t,{value:o,children:r}]=Fe(e),[n]=fn(t);return s(dn,{value:o,children:s(mn,{value:n,children:s(Le,{value:Ee(T({present:o.open},t)),children:r})})})};var ul=P((e,t)=>{let o=T(xe().getTitleProps(),e);return s(D.h2,{...o,ref:t})});ul.displayName="DialogTitle";var Eg=ie(),dl=P((e,t)=>{let[o,r]=Eg(e,["value"]),n=xe(),i=he(),l=n.getTriggerProps(o),a=T({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(D.button,{...a,ref:t})});dl.displayName="DialogTrigger";var Ie=bt({Backdrop:()=>ll,CloseTrigger:()=>sl,Content:()=>al,Context:()=>$p,Description:()=>cl,Positioner:()=>pl,Root:()=>Kp,RootProvider:()=>qp,Title:()=>ul,Trigger:()=>dl});var Ig={sm:"polli:max-w-md",md:"polli:max-w-xl",lg:"polli:max-w-[800px]",xl:"polli:max-w-6xl"},gn=({open:e,onOpenChange:t,trigger:o,triggerAsChild:r=!1,triggerClassName:n,title:i,ariaLabel:l,labelledBy:a,size:c="md",showBackdrop:p=!0,backdropBlur:u=!0,positionerClassName:d,contentClassName:g,children:f})=>{let m=$(null);return b(Ie.Root,{open:e,initialFocusEl:()=>m.current,onOpenChange:v=>t?.(v.open),children:[o&&s(Ie.Trigger,{asChild:r,className:n,children:o}),b(jt,{children:[p&&s(Ie.Backdrop,{className:x("polli:fixed polli:inset-0 polli:z-[calc(100_+_var(--layer-index,0)_*_20)] polli:bg-[#000]/50",u&&"polli:backdrop-blur-sm")}),s(Ie.Positioner,{className:x("polli:fixed polli:inset-0 polli:z-[calc(110_+_var(--layer-index,0)_*_20)] polli:flex polli:max-h-dvh polli:items-start polli:justify-center polli:overflow-hidden polli:p-4","polli-dialog-mobile-positioner",d),children:b(Ie.Content,{ref:m,"aria-label":l,"aria-labelledby":a,className:x("polli:my-auto polli:flex polli:h-auto polli:max-h-full polli:w-full polli:flex-col polli:overflow-y-auto polli:rounded-block polli:bg-surface-block polli:outline-none polli:focus:outline-none polli:focus-visible:outline-none","polli-dialog-mobile-page",Ig[c],g),children:[i&&s(qo,{title:i}),f]})})]})]})},ml=Ie.Title,fl=Ie.Description,qo=({title:e,description:t,children:o,inBody:r=!1,className:n,titleClassName:i,descriptionClassName:l,...a})=>b("div",{className:x(r?"polli:shrink-0 polli:pt-2 polli:pb-4":"polli:shrink-0 polli:px-(--polli-dialog-gutter) polli:pt-6 polli:pb-4",n),...a,children:[e&&s(ml,{className:x(Xi("section"),i),children:e}),t&&s(fl,{className:x("polli:mt-1 polli:font-body polli:text-sm polli:font-normal polli:leading-5 polli:text-theme-text-base",l),children:t}),o]});function hn({children:e,actions:t,footnote:o,bodyClassName:r,className:n,...i}){return b(Ue,{...i,className:x("polli:flex polli:min-h-0 polli:flex-1 polli:flex-col polli:overscroll-contain",n),children:[s("div",{className:x("polli:space-y-3 polli:px-(--polli-dialog-gutter) polli:py-4",r),children:e}),(t||o)&&b("div",{className:"polli-dialog-floating-controls polli:@container polli:pointer-events-none polli:sticky polli:bottom-0 polli:z-10",children:[t&&s(gl,{className:"polli:pointer-events-auto",children:t}),o&&s("div",{className:"polli:pointer-events-auto",children:o})]})]})}var gl=({children:e,className:t,...o})=>s("div",{className:x("polli:flex polli:shrink-0 polli:flex-wrap polli:items-center polli:justify-end polli:gap-3 polli:bg-transparent polli:px-(--polli-dialog-gutter) polli:pt-4 polli:pb-6","polli:[&>.polli-control]:min-h-12 polli:[&>.polli-control]:text-base polli:@max-xl:[&>.polli-control]:flex-auto polli:[&>.polli-control:only-child]:flex-auto",t),...o,children:e});var Tg={danger:s($i,{}),commit:s(Re,{}),info:s(Re,{}),neutral:s(Re,{})};function Yp({open:e,title:t,description:o,children:r,confirmLabel:n,intent:i="danger",confirmIcon:l,confirmDisabled:a=!1,cancelDisabled:c=!1,onConfirm:p,onCancel:u,size:d="md"}){let g=b(Z,{children:[s(Ze,{type:"button",intent:"neutral",icon:s(qt,{}),onClick:u,disabled:c,children:"Cancel"}),s(Ze,{type:"button",intent:i,icon:l??Tg[i],onClick:p,disabled:a,children:n})]});return s(gn,{open:e,onOpenChange:f=>!f&&u(),size:d,contentClassName:"polli:overflow-hidden",children:b(hn,{actions:g,children:[s(qo,{inBody:!0,title:t}),o&&s("p",{className:"polli:text-sm polli:leading-relaxed",children:o}),r]})})}var Ng={page:"polli:text-sm polli:tracking-widest polli:text-theme-text-soft",card:"polli:text-xs polli:tracking-wider polli:text-theme-text-soft",chrome:"polli:text-micro polli:tracking-widest polli:text-theme-text-muted"};function xn({as:e,size:t="card",className:o,children:r,...n}){return s(e||"span",{...n,className:x("polli:font-pixel polli:uppercase",Ng[t],o),children:r})}var kg={page:"polli:font-heading polli:text-4xl polli:leading-[1.08] polli:text-theme-text-strong polli:sm:text-5xl polli:lg:text-7xl",section:"polli:font-subheading polli:text-3xl polli:leading-tight polli:text-theme-text-strong polli:sm:text-4xl"},Rg={page:"polli:max-w-lg polli:text-base polli:leading-relaxed polli:text-theme-text-base polli:sm:text-lg",section:"polli:max-w-xl polli:leading-relaxed polli:text-theme-text-base"};function Xp({eyebrow:e,title:t,subtitle:o,action:r,variant:n="section",className:i}){let l=n==="page"?"h1":"h2";return b("header",{className:x("polli:flex polli:flex-wrap polli:items-end polli:justify-between polli:gap-6",i),children:[b("div",{className:"polli:flex polli:max-w-2xl polli:flex-col polli:gap-3",children:[e?s(xn,{size:"page",children:e}):null,s(l,{className:kg[n],children:t}),o&&s("p",{className:x(Rg[n],"polli:[&_strong]:text-theme-text-strong"),children:o})]}),r]})}function Zp({value:e,label:t,display:o,className:r,...n}){return s(Ct,{...n,value:e,tooltip:null,"aria-label":t,className:i=>x("polli-input-shell polli:flex polli:min-h-10 polli:w-full polli:cursor-pointer polli:items-center polli:gap-3 polli:rounded-lg polli:border polli:px-3 polli:py-2 polli:text-left polli:font-mono polli:text-xs polli:transition-colors",i?"polli:text-intent-success-text":"polli:text-theme-text-base polli:hover:text-theme-text-strong",r),children:i=>b(Z,{children:[s("span",{className:"polli:min-w-0 polli:flex-1 polli:select-all polli:break-all",children:i?"Copied":o??String(e)}),s("span",{"aria-hidden":"true",className:"polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:i?s(Re,{}):s(Kt,{})})]})})}var Sg=Object.defineProperty,Og=(e,t,o)=>t in e?Sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,U=(e,t,o)=>Og(e,typeof t!="symbol"?t+"":t,o);var vn={itemToValue(e){return typeof e=="string"?e:_r(e)&&Wt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:_r(e)&&Wt(e,"label")?e.label:vn.itemToValue(e)},isItemDisabled(e){return _r(e)&&Wt(e,"disabled")?!!e.disabled:!1}},yo=class Jp{constructor(t){U(this,"options",t),U(this,"items"),U(this,"indexMap",null),U(this,"copy",o=>new Jp({...this.options,items:o??[...this.items]})),U(this,"isEqual",o=>ao(this.items,o.items)),U(this,"setItems",o=>this.copy(o)),U(this,"getValues",(o=this.items)=>{let r=[];for(let n of o){let i=this.getItemValue(n);i!=null&&r.push(i)}return r}),U(this,"find",o=>{if(o==null)return null;let r=this.indexOf(o);return r!==-1?this.at(r):null}),U(this,"findMany",o=>{let r=[];for(let n of o){let i=this.find(n);i!=null&&r.push(i)}return r}),U(this,"at",o=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[o]??null;let r=0,n=this.group();for(let[,i]of n)for(let l of i){if(r===o)return l;r++}return null}),U(this,"sortFn",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return(n??0)-(i??0)}),U(this,"sort",o=>[...o].sort(this.sortFn.bind(this))),U(this,"getItemValue",o=>o==null?null:this.options.itemToValue?.(o)??vn.itemToValue(o)),U(this,"getItemDisabled",o=>o==null?!1:this.options.isItemDisabled?.(o)??vn.isItemDisabled(o)),U(this,"stringifyItem",o=>o==null?null:this.options.itemToString?.(o)??vn.itemToString(o)),U(this,"stringify",o=>o==null?null:this.stringifyItem(this.find(o))),U(this,"stringifyItems",(o,r=", ")=>{let n=[];for(let i of o){let l=this.stringifyItem(i);l!=null&&n.push(l)}return n.join(r)}),U(this,"stringifyMany",(o,r)=>this.stringifyItems(this.findMany(o),r)),U(this,"has",o=>this.indexOf(o)!==-1),U(this,"hasItem",o=>o==null?!1:this.has(this.getItemValue(o))),U(this,"group",()=>{let{groupBy:o,groupSort:r}=this.options;if(!o)return[["",[...this.items]]];let n=new Map;this.items.forEach((l,a)=>{let c=o(l,a);n.has(c)||n.set(c,[]),n.get(c).push(l)});let i=Array.from(n.entries());return r&&i.sort(([l],[a])=>{if(typeof r=="function")return r(l,a);if(Array.isArray(r)){let c=r.indexOf(l),p=r.indexOf(a);return c===-1?1:p===-1?-1:c-p}return r==="asc"?l.localeCompare(a):r==="desc"?a.localeCompare(l):0}),i}),U(this,"getNextValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),U(this,"getPreviousValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),U(this,"indexOf",o=>{if(o==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===o);if(!this.indexMap){this.indexMap=new Map;let r=0,n=this.group();for(let[,i]of n)for(let l of i){let a=this.getItemValue(l);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(o)??-1}),U(this,"getByText",(o,r)=>{let n=r!=null?this.indexOf(r):-1,i=o.length===1;for(let l=0;l<this.items.length;l++){let a=this.items[(n+l+1)%this.items.length];if(!(i&&this.getItemValue(a)===r)&&!this.getItemDisabled(a)&&Ag(this.stringifyItem(a),o))return a}}),U(this,"search",(o,r)=>{let{state:n,currentValue:i,timeout:l=350}=r,a=n.keysSoFar+o,p=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,u=this.getByText(p,i),d=this.getItemValue(u);function g(){clearTimeout(n.timer),n.timer=-1}function f(m){n.keysSoFar=m,g(),m!==""&&(n.timer=+setTimeout(()=>{f(""),g()},l))}return f(a),d}),U(this,"update",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy([...this.items.slice(0,n),r,...this.items.slice(n+1)])}),U(this,"upsert",(o,r,n="append")=>{let i=this.indexOf(o);return i===-1?(n==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),U(this,"insert",(o,...r)=>this.copy(Yo(this.items,o,...r))),U(this,"insertBefore",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Yo(this.items,n,...r))}),U(this,"insertAfter",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Yo(this.items,n+1,...r))}),U(this,"prepend",(...o)=>this.copy(Yo(this.items,0,...o))),U(this,"append",(...o)=>this.copy(Yo(this.items,this.items.length,...o))),U(this,"filter",o=>{let r=this.items.filter((n,i)=>o(this.stringifyItem(n),i,n));return this.copy(r)}),U(this,"remove",(...o)=>{let r=o.map(n=>typeof n=="string"?n:this.getItemValue(n));return this.copy(this.items.filter(n=>{let i=this.getItemValue(n);return i==null?!1:!r.includes(i)}))}),U(this,"move",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy(bn(this.items,[n],r))}),U(this,"moveBefore",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(bn(this.items,i,n))}),U(this,"moveAfter",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(bn(this.items,i,n+1))}),U(this,"reorder",(o,r)=>this.copy(bn(this.items,[o],r))),U(this,"compareValue",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return n<i?-1:n>i?1:0}),U(this,"range",(o,r)=>{let n=[],i=o;for(;i!=null;){if(this.find(i)&&n.push(i),i===r)return n;i=this.getNextValue(i)}return[]}),U(this,"getValueRange",(o,r)=>o&&r?this.compareValue(o,r)<=0?this.range(o,r):this.range(r,o):[]),U(this,"toString",()=>{let o="";for(let r of this.items){let n=this.getItemValue(r),i=this.stringifyItem(r),l=this.getItemDisabled(r),a=[n,i,l].filter(Boolean).join(":");o+=a+","}return o}),U(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},Ag=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Yo(e,t,...o){return[...e.slice(0,t),...o,...e.slice(t)]}function bn(e,t,o){t=[...t].sort((n,i)=>n-i);let r=t.map(n=>e[n]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return o=Math.max(0,o-t.filter(n=>n<o).length),[...e.slice(0,o),...r,...e.slice(o)]}function yn({values:e,collection:t,selectedItemMap:o}){let r=[];for(let n of e){let i=t.find(n)??o.get(n);i!=null&&r.push(i)}return r}function hl({selectedItemMap:e,values:t,selectedItems:o,collection:r}){let n=new Map(e);for(let l of o){let a=r.getItemValue(l);a!=null&&n.set(a,l)}let i=new Set(t);for(let l of n.keys())i.has(l)||n.delete(l);return n}function Xo({values:e,collection:t,selectedItemMap:o}){let r=yn({values:e,collection:t,selectedItemMap:o}),n=hl({selectedItemMap:o,values:e,selectedItems:r,collection:t});return{selectedItems:r,nextSelectedItemMap:n}}function xl({selectedItems:e,collection:t}){return hl({selectedItemMap:new Map,values:e.map(o=>t.getItemValue(o)).filter(Boolean),selectedItems:e,collection:t})}var bl=e=>new yo(e);var Cn=ke("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),Ce=Cn.build();var vl=e=>new yo(e);vl.empty=()=>new yo({items:[]});var Qp=e=>e.ids?.root??`combobox:${e.id}`,wn=e=>e.ids?.label??`combobox:${e.id}:label`,yl=e=>e.ids?.control??`combobox:${e.id}:control`,Zo=e=>e.ids?.input??`combobox:${e.id}:input`,Jo=e=>e.ids?.content??`combobox:${e.id}:content`,Cl=e=>e.ids?.positioner??`combobox:${e.id}:popper`,wl=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,Pl=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,eu=(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,El=(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,Il=(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,Pt=e=>e.getById(Jo(e)),Et=e=>e.getById(Zo(e)),Tl=e=>e.getById(Cl(e)),Nl=e=>e.getById(yl(e)),Yt=e=>e.getById(wl(e)),tu=e=>e.getById(Pl(e)),It=(e,t)=>{if(t==null)return null;let o=`[role=option][data-value="${CSS.escape(t)}"]`;return ga(Pt(e),o)},Qo=e=>{let t=Et(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),yr(t)},ou=e=>{let t=Yt(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};function kl(e,t){let{context:o,prop:r,state:n,send:i,scope:l,computed:a,event:c}=e,p=r("translations"),u=r("collection"),d=!!r("disabled"),g=a("isInteractive"),f=!!r("invalid"),m=!!r("required"),v=!!r("readOnly"),h=n.hasTag("open"),C=n.hasTag("focused"),I=r("composite"),E=o.get("highlightedValue"),w=o.get("currentPlacement"),M=w?Vo(w):void 0,N=Ho({...r("positioning"),placement:w});function _(y){let O=u.getItemDisabled(y.item),L=u.getItemValue(y.item);return zt(L,()=>`[zag-js] No value found for item ${JSON.stringify(y.item)}`),{value:L,disabled:!!(d||O),highlighted:E===L,selected:o.get("value").includes(L)}}return{focused:C,open:h,inputValue:o.get("inputValue"),highlightedValue:E,highlightedItem:o.get("highlightedItem"),value:o.get("value"),valueAsString:a("valueAsString"),hasSelectedItems:a("hasSelectedItems"),selectedItems:a("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){i({type:"SELECTED_ITEMS.SYNC"})},reposition(y={}){i({type:"POSITIONING.SET",options:y})},setHighlightValue(y){i({type:"HIGHLIGHTED_VALUE.SET",value:y})},clearHighlightValue(){i({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(y){i({type:"ITEM.SELECT",value:y})},setValue(y){i({type:"VALUE.SET",value:y})},setInputValue(y,O="script"){i({type:"INPUT_VALUE.SET",value:y,src:O})},clearValue(y){y!=null?i({type:"ITEM.CLEAR",value:y}):i({type:"VALUE.CLEAR"})},focus(){Et(l)?.focus()},setOpen(y,O="script"){n.hasTag("open")!==y&&i({type:y?"OPEN":"CLOSE",src:O})},getRootProps(){return t.element({...Ce.root.attrs,dir:r("dir"),id:Qp(l),"data-invalid":G(f),"data-readonly":G(v)})},getLabelProps(){return t.label({...Ce.label.attrs,dir:r("dir"),htmlFor:Zo(l),id:wn(l),"data-readonly":G(v),"data-disabled":G(d),"data-invalid":G(f),"data-required":G(m),"data-focus":G(C),onClick(y){I||(y.preventDefault(),Yt(l)?.focus({preventScroll:!0}))}})},getControlProps(){return t.element({...Ce.control.attrs,dir:r("dir"),id:yl(l),"data-state":h?"open":"closed","data-focus":G(C),"data-disabled":G(d),"data-invalid":G(f)})},getPositionerProps(){return t.element({...Ce.positioner.attrs,dir:r("dir"),id:Cl(l),style:N.floating})},getInputProps(){return t.input({...Ce.input.attrs,dir:r("dir"),"aria-invalid":et(f),"data-invalid":G(f),"data-autofocus":G(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:v,placeholder:r("placeholder"),id:Zo(l),type:"text",role:"combobox",defaultValue:o.get("inputValue"),"aria-autocomplete":a("autoComplete")?"both":"list","aria-controls":Jo(l),"aria-expanded":h,"data-state":h?"open":"closed","aria-activedescendant":E?Il(l,E):void 0,onClick(y){y.defaultPrevented||r("openOnClick")&&g&&i({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||i({type:"INPUT.FOCUS"})},onBlur(){d||i({type:"INPUT.BLUR"})},onChange(y){i({type:"INPUT.CHANGE",value:y.currentTarget.value,src:"input-change"})},onKeyDown(y){if(y.defaultPrevented||!g||y.ctrlKey||y.shiftKey||na(y))return;let O=r("openOnKeyPress"),L=y.ctrlKey||y.metaKey||y.shiftKey,k=!0,A={ArrowDown(R){!O&&!h||(i({type:R.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:k,src:"arrow-key"}),R.preventDefault())},ArrowUp(){!O&&!h||(i({type:y.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:k,src:"arrow-key"}),y.preventDefault())},Home(R){L||(i({type:"INPUT.HOME",keypress:k}),h&&R.preventDefault())},End(R){L||(i({type:"INPUT.END",keypress:k}),h&&R.preventDefault())},Enter(R){i({type:"INPUT.ENTER",keypress:k,src:"item-select"});let z=E!=null,q=r("alwaysSubmitOnEnter"),B=a("isCustomValue")&&!r("allowCustomValue");if(h&&!q&&(z||B)&&R.preventDefault(),E==null)return;let be=It(l,E);Us(be)&&r("navigate")?.({value:E,node:be,href:be.href})},Escape(){i({type:"INPUT.ESCAPE",keypress:k,src:"escape-key"}),y.preventDefault()}},S=Xn(y,{dir:r("dir")}),W=A[S];W?.(y)}})},getTriggerProps(y={}){return t.button({...Ce.trigger.attrs,dir:r("dir"),id:wl(l),"aria-haspopup":I?"listbox":"dialog",type:"button",tabIndex:y.focusable?void 0:-1,"aria-label":p.triggerLabel,"aria-expanded":h,"data-state":h?"open":"closed","aria-controls":h?Jo(l):void 0,disabled:d,"data-invalid":G(f),"data-focusable":G(y.focusable),"data-readonly":G(v),"data-disabled":G(d),onFocus(){y.focusable&&i({type:"INPUT.FOCUS",src:"trigger"})},onClick(O){O.defaultPrevented||g&&Ot(O)&&i({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(O){g&&O.pointerType!=="touch"&&Ot(O)&&(O.preventDefault(),queueMicrotask(()=>{Qo(l)}))},onKeyDown(O){if(O.defaultPrevented||I)return;let L={ArrowDown(){i({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){i({type:"INPUT.ARROW_UP",src:"arrow-key"})}},k=Xn(O,{dir:r("dir")}),A=L[k];A&&(A(O),O.preventDefault())}})},getContentProps(){return t.element({...Ce.content.attrs,dir:r("dir"),id:Jo(l),role:I?"listbox":"dialog",tabIndex:-1,hidden:!h,"data-state":h?"open":"closed","data-placement":w,"data-side":M,"aria-labelledby":wn(l),"aria-multiselectable":r("multiple")&&I?!0:void 0,"data-empty":G(u.size===0),onPointerDown(y){Ot(y)&&y.preventDefault()}})},getListProps(){return t.element({...Ce.list.attrs,role:I?void 0:"listbox","data-empty":G(u.size===0),"aria-labelledby":wn(l),"aria-multiselectable":r("multiple")&&!I?!0:void 0})},getClearTriggerProps(){return t.button({...Ce.clearTrigger.attrs,dir:r("dir"),id:Pl(l),type:"button",tabIndex:-1,disabled:d,"data-invalid":G(f),"aria-label":p.clearTriggerLabel,"aria-controls":Zo(l),hidden:!o.get("value").length,onPointerDown(y){Ot(y)&&y.preventDefault()},onClick(y){y.defaultPrevented||g&&i({type:"VALUE.CLEAR",src:"clear-trigger"})}})},getItemState:_,getItemProps(y){let O=_(y),L=O.value;return t.element({...Ce.item.attrs,dir:r("dir"),id:Il(l,L),role:"option",tabIndex:-1,"data-highlighted":G(O.highlighted),"data-state":O.selected?"checked":"unchecked","aria-selected":et(O.selected),"aria-disabled":et(O.disabled),"data-disabled":G(O.disabled),"data-value":O.value,onPointerMove(){O.disabled||O.highlighted||i({type:"ITEM.POINTER_MOVE",value:L})},onPointerLeave(){y.persistFocus||O.disabled||!c.previous()?.type.includes("POINTER")||i({type:"ITEM.POINTER_LEAVE",value:L})},onClick(k){ra(k)||oa(k)||Er(k)||O.disabled||i({type:"ITEM.CLICK",src:"item-select",value:L})}})},getItemTextProps(y){let O=_(y);return t.element({...Ce.itemText.attrs,dir:r("dir"),"data-state":O.selected?"checked":"unchecked","data-disabled":G(O.disabled),"data-highlighted":G(O.highlighted)})},getItemIndicatorProps(y){let O=_(y);return t.element({"aria-hidden":!0,...Ce.itemIndicator.attrs,dir:r("dir"),"data-state":O.selected?"checked":"unchecked",hidden:!O.selected})},getItemGroupProps(y){let{id:O}=y;return t.element({...Ce.itemGroup.attrs,dir:r("dir"),id:eu(l,O),"aria-labelledby":El(l,O),"data-empty":G(u.size===0),role:"group"})},getItemGroupLabelProps(y){let{htmlFor:O}=y;return t.element({...Ce.itemGroupLabel.attrs,dir:r("dir"),id:El(l,O),role:"presentation"})}}}function Mg(e){return!(e.metaKey||!St()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var Dg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lg(e,t,o){let r=o?me(o):null,n=Q(r),i=te(r),l=He(n);return e=e||l instanceof i.HTMLInputElement&&!Dg.has(l?.type)||l instanceof i.HTMLTextAreaElement||l instanceof i.HTMLElement&&l.isContentEditable,!(e&&t==="keyboard"&&o instanceof i.KeyboardEvent&&!Reflect.has(Fg,o.key))}var nt=null,Rl=new Set,Pn=new Map,Xt=!1,Sl=!1,iu=!1,Fg={Tab:!0,Escape:!0};function In(e,t){for(let o of Rl)o(e,t)}function En(e){Xt=!0,Mg(e)&&(nt="keyboard",In("keyboard",e))}function Be(e){nt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xt=!0,In("pointer",e))}function lu(e){ia(e)&&(Xt=!0,nt="virtual")}function su(e){let t=me(e);t===te(t)||t===Q(t)||iu||!e.isTrusted||(!Xt&&!Sl&&(nt="virtual",In("virtual",e)),Xt=!1,Sl=!1)}function au(){iu||(Xt=!1,Sl=!0)}function Bg(e){if(typeof window>"u"||Pn.get(te(e)))return;let t=te(e),o=Q(e),r=t.HTMLElement.prototype.focus;function n(){Xt=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:n})}catch{}o.addEventListener("keydown",En,!0),o.addEventListener("keyup",En,!0),o.addEventListener("click",lu,!0),t.addEventListener("focus",su,!0),t.addEventListener("blur",au,!1),typeof t.PointerEvent<"u"?(o.addEventListener("pointerdown",Be,!0),o.addEventListener("pointermove",Be,!0),o.addEventListener("pointerup",Be,!0)):(o.addEventListener("mousedown",Be,!0),o.addEventListener("mousemove",Be,!0),o.addEventListener("mouseup",Be,!0)),t.addEventListener("beforeunload",()=>{Vg(e)},{once:!0}),Pn.set(t,{focus:r})}var Vg=(e,t)=>{let o=te(e),r=Q(e);t&&r.removeEventListener("DOMContentLoaded",t);let n=Pn.get(o);if(n){try{Object.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,value:n.focus})}catch{}r.removeEventListener("keydown",En,!0),r.removeEventListener("keyup",En,!0),r.removeEventListener("click",lu,!0),o.removeEventListener("focus",su,!0),o.removeEventListener("blur",au,!1),typeof o.PointerEvent<"u"?(r.removeEventListener("pointerdown",Be,!0),r.removeEventListener("pointermove",Be,!0),r.removeEventListener("pointerup",Be,!0)):(r.removeEventListener("mousedown",Be,!0),r.removeEventListener("mousemove",Be,!0),r.removeEventListener("mouseup",Be,!0)),Pn.delete(o)}};function cu(){return nt}function pu(e){nt=e,In(e,null)}function nu(){return nt==="keyboard"||nt==="virtual"}function uu(e={}){let{isTextInput:t,autoFocus:o,onChange:r,root:n}=e;Bg(n),r?.({isFocusVisible:o||nu(),modality:nt});let i=(l,a)=>{Lg(!!t,l,a)&&r?.({isFocusVisible:nu(),modality:l})};return Rl.add(i),()=>{Rl.delete(i)}}var Tn="__live-region__",Ol="__live-region-debug__",Hg="position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;";function du(e={}){let{level:t="polite",document:o=document,root:r,delay:n=0,debug:i=!1}=e,l=o.defaultView??window,a=r??o.body;function c(){if(!i)return;let d=o.getElementById(Ol);return d||(d=o.createElement("div"),d.id=Ol,d.dataset.liveAnnouncerDebug="true",d.setAttribute("aria-hidden","true"),d.style.cssText=Hg,a.appendChild(d),d)}function p(d,g){o.getElementById(Tn)?.remove(),g=g??n;let m=o.createElement("span");m.id=Tn,m.dataset.liveAnnouncer="true";let v=t!=="assertive"?"status":"alert";m.setAttribute("aria-live",t),m.setAttribute("role",v),Object.assign(m.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),a.appendChild(m),l.setTimeout(()=>{if(!m.isConnected)return;m.textContent=d;let h=c();h&&(h.textContent=d)},g)}function u(){o.getElementById(Tn)?.remove(),o.getElementById(Ol)?.remove()}return{announce:p,destroy:u,toJSON(){return Tn}}}var{guards:_g,createMachine:Wg,choose:zg}=Wc(),{and:Te,not:Zt}=_g,Al=Wg({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){ma(t)},collection:vl.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open.suggesting":"closed.idle"},context({prop:e,bindable:t,getContext:o,getEvent:r}){let n=e("value")??e("defaultValue")??[],i=e("collection").findMany(n);return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ao,hash(l){return l.join(",")},onChange(l){let a=o(),c=e("collection"),p=a.get("selectedItemMap"),u=Xo({values:l,collection:c,selectedItemMap:p}),d=e("value")??l,g=d===l?u:Xo({values:d,collection:c,selectedItemMap:u.nextSelectedItemMap});a.set("selectedItemMap",g.nextSelectedItemMap),e("onValueChange")?.({value:l,items:u.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){let a=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:a})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue"),a=e("value")||e("defaultValue");if(!l.trim()&&!e("multiple")){let c=e("collection").stringifyMany(a);l=qe(e("selectionBehavior"),{preserve:l||c,replace:c,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(c){let p=r(),u=(p.previousEvent||p).src;e("onInputValueChange")?.({inputValue:c,reason:u})}}}),highlightedItem:t(()=>{let l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItemMap:t(()=>({defaultValue:xl({selectedItems:i,collection:e("collection")})}))}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,selectedItems:({context:e,prop:t})=>yn({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:o,action:r,send:n}){o([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),o([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),o([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue","announceHighlightedItem"])}),o([()=>t("open")],()=>{r(["toggleVisibility"])}),o([()=>t("collection").toString()],()=>{n({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:zg([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{closed:{tags:["closed"],initial:"idle",states:{idle:{tags:["idle"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"open.interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"open.suggesting"},{target:"open.interacting"}],"INPUT.CHANGE":[{guard:Te("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"open.suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Te("isCustomValue",Zt("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Te("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:Te("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}}}},open:{tags:["open","focused"],entry:["setInitialFocus"],effects:["trackFocusVisible","scrollToHighlightedItem","trackDismissableLayer","trackPlacement","trackLiveRegion"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"closed.focused",actions:["setFinalFocus"]},{target:"closed.idle"}],"INPUT.ENTER":[{guard:Te("isOpenControlled","isCustomValue",Zt("hasHighlightedItem"),Zt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Te("isCustomValue",Zt("hasHighlightedItem"),Zt("allowCustomValue")),target:"closed.focused",actions:["revertInputValue","invokeOnClose"]},{guard:Te("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"ITEM.CLICK":[{guard:Te("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Te("isOpenControlled","isCustomValue",Zt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Te("isCustomValue",Zt("allowCustomValue")),target:"closed.idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"closed.focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]},initial:"interacting",states:{interacting:{on:{CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Te("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Te("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.ESCAPE":[{guard:Te("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"closed.focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:Te("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]}}}}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{let o=e("openOnChange");return ac(o)?o:!!o?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackFocusVisible({scope:e}){return uu({root:e.getRootNode?.()})},trackDismissableLayer({send:e,prop:t,scope:o}){return t("disableLayer")?void 0:go(()=>Pt(o),{type:"listbox",defer:!0,exclude:()=>[Et(o),Yt(o),tu(o)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(n){n.preventDefault(),n.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackLiveRegion({refs:e,scope:t}){let o=du({level:"assertive",document:t.getDoc()});return e.set("liveRegion",o),()=>o.destroy()},trackPlacement({context:e,prop:t,scope:o}){let r=()=>Nl(o)||Yt(o),n=()=>Tl(o);return e.set("currentPlacement",t("positioning").placement),Ut(r,n,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:o}){let r=Et(o),n=[],i=c=>{if(cu()==="pointer")return;let u=e.get("highlightedValue");if(!u)return;let d=Pt(o),g=t("scrollToIndexFn");if(g){let v=t("collection").indexOf(u);g({index:v,immediate:c,getElement:()=>It(o,u)});return}let f=It(o,u),m=K(()=>{Qn(f,{rootEl:d,block:"nearest"})});n.push(m)},l=K(()=>{pu("virtual"),i(!0)});n.push(l);let a=da(r,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return n.push(a),()=>{n.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:o,event:r}){Ut(()=>Nl(o),()=>Tl(o),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(l){e.set("currentPlacement",l.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:o}=e,r=o("collection"),n=t.get("highlightedValue");if(!n||!r.has(n))return;let i=o("multiple")?ii(t.get("value"),n):[n];o("onSelect")?.({value:i,itemValue:n}),t.set("value",i);let l=qe(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",l)},scrollToHighlightedItem({context:e,prop:t,scope:o}){ro(()=>{let r=e.get("highlightedValue");if(r==null)return;let n=It(o,r),i=Pt(o),l=t("scrollToIndexFn");if(l){let a=t("collection").indexOf(r);l({index:a,immediate:!0,getElement:()=>It(o,r)});return}Qn(n,{rootEl:i,block:"nearest"})})},selectItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=n("multiple")?ii(t.get("value"),o.value):[o.value];n("onSelect")?.({value:i,itemValue:o.value}),t.set("value",i);let l=qe(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},clearItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=ni(t.get("value"),o.value);t.set("value",i);let l=qe(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},setInitialFocus({scope:e}){K(()=>{Qo(e)})},setFinalFocus({scope:e}){K(()=>{Yt(e)?.dataset.focusable==null?Qo(e):ou(e)})},syncInputValue({context:e,scope:t,event:o}){let r=Et(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{o.current().type!=="INPUT.CHANGE"&&yr(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:o}){let r=t("selectionBehavior"),n=qe(r,{replace:o("hasSelectedItems")?o("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",n)},setValue(e){let{context:t,flush:o,event:r,prop:n}=e;o(()=>{t.set("value",r.value);let i=qe(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){let{context:t,flush:o,prop:r}=e;o(()=>{t.set("value",[]);let n=qe(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",n)})},scrollContentToTop({prop:e,scope:t}){let o=e("scrollToIndexFn");if(o){let r=e("collection").firstValue;o({index:0,immediate:!0,getElement:()=>It(t,r)})}else{let r=Pt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:o}){let r=mu(t);e("onOpenChange")?.({open:!0,reason:r,value:o.get("value")})},invokeOnClose({prop:e,event:t,context:o}){let r=mu(t);e("onOpenChange")?.({open:!1,reason:r,value:o.get("value")})},highlightFirstItem({context:e,prop:t,scope:o}){(Pt(o)?queueMicrotask:K)(()=>{let n=t("collection").firstValue;n&&e.set("highlightedValue",n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:o}){(Pt(o)?queueMicrotask:K)(()=>{let n=t("collection").lastValue;n&&e.set("highlightedValue",n)})},highlightNextItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getNextValue(r),!o&&t("loopFocus")&&(o=n.firstValue)):o=n.firstValue,o&&e.set("highlightedValue",o)},highlightPrevItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getPreviousValue(r),!o&&t("loopFocus")&&(o=n.lastValue)):o=n.lastValue,o&&e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t}){K(()=>{let[o]=t("collection").sort(e.get("value"));o&&e.set("highlightedValue",o)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:o}){K(()=>{let r=null;o("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:o}){K(()=>{let r=t("collection"),n=null;o("hasSelectedItems")?n=r.sort(e.get("value"))[0]:n=r.lastValue,n&&e.set("highlightedValue",n)})},autofillInputValue({context:e,computed:t,prop:o,event:r,scope:n}){let i=Et(n),l=o("collection");if(!t("autoComplete")||!i||!r.keypress)return;let a=l.stringify(e.get("highlightedValue"));K(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:o}=e,r=o("collection"),n=t.get("value"),i=t.get("selectedItemMap"),l=Xo({values:n,collection:r,selectedItemMap:i});t.set("selectedItemMap",l.nextSelectedItemMap);let a=qe(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(n),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){let o=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",o)},announceHighlightedItem({context:e,prop:t,refs:o}){if(!Yn())return;let r=e.get("highlightedValue"),n=r?t("collection").stringifyItem(t("collection").find(r)):null;if(!n)return;let i=r?e.get("value").includes(r):!1;o.get("liveRegion")?.announce(i?`${n}, selected`:n)},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function mu(e){return(e.previousEvent||e).src}var fu=Cn.extendWith("empty");var[Nn,X]=re({name:"ComboboxContext",hookName:"useComboboxContext",providerName:"<ComboboxProvider />"});var Ml=P((e,t)=>{let o=T(X().getClearTriggerProps(),e);return s(D.button,{...o,ref:t})});Ml.displayName="ComboboxClearTrigger";var Dl=P((e,t)=>{let o=X(),r=he(),n=T(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});Dl.displayName="ComboboxContent";var Gg=fu.build(),Ll=P((e,t)=>X().collection.size!==0?null:s(D.div,{...Gg.empty.attrs,...e,role:"presentation",ref:t}));Ll.displayName="ComboboxEmpty";var gu=e=>e.children(X());var Fl=P((e,t)=>{let o=T(X().getControlProps(),e);return s(D.div,{...o,ref:t})});Fl.displayName="ComboboxControl";var[Co,le]=re({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Bl=P((e,t)=>{let o=T(X().getInputProps(),e),r=le();return s(D.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});Bl.displayName="ComboboxInput";var[hu,xu]=re({name:"ComboboxItemContext",hookName:"useComboboxItemContext",providerName:"<ComboboxItemProvider />"});var[bu,kn]=re({name:"ComboboxItemPropsContext",hookName:"useComboboxItemPropsContext",providerName:"<ComboboxItemPropsProvider />"});var $g=ie(),Vl=P((e,t)=>{let[o,r]=$g(e,["item","persistFocus"]),n=X(),i=T(n.getItemProps(o),r);return s(bu,{value:o,children:s(hu,{value:n.getItemState(o),children:s(D.div,{...i,ref:t})})})});Vl.displayName="ComboboxItem";var vu=e=>e.children(xu());var[yu,Cu]=re({name:"ComboboxItemGroupPropsContext",hookName:"useComboboxItemGroupPropsContext",providerName:"<ComboboxItemGroupPropsProvider />"});var jg=ie(),Hl=P((e,t)=>{let o=ue(),[r,n]=jg(e,["id"]),i={id:o,...r},l=T(X().getItemGroupProps(i),n);return s(yu,{value:i,children:s(D.div,{...l,ref:t})})});Hl.displayName="ComboboxItemGroup";var _l=P((e,t)=>{let o=X(),r=Cu(),n=T(o.getItemGroupLabelProps({htmlFor:r.id}),e);return s(D.div,{...n,ref:t})});_l.displayName="ComboboxItemGroupLabel";var Wl=P((e,t)=>{let o=X(),r=kn(),n=T(o.getItemIndicatorProps(r),e);return s(D.div,{...n,ref:t})});Wl.displayName="ComboboxItemIndicator";var zl=P((e,t)=>{let o=X(),r=kn(),n=T(o.getItemTextProps(r),e);return s(D.span,{...n,ref:t})});zl.displayName="ComboboxItemText";var Ul=P((e,t)=>{let o=T(X().getLabelProps(),e);return s(D.label,{...o,ref:t})});Ul.displayName="ComboboxLabel";var Gl=P((e,t)=>{let o=T(X().getListProps(),e);return s(D.div,{...o,ref:t})});Gl.displayName="ComboboxList";var $l=P((e,t)=>{let o=X(),r=he(),n=T(o.getPositionerProps(),e);return r.unmounted?null:s(D.div,{...n,ref:t})});$l.displayName="ComboboxPositioner";var wu=e=>{let t=ue(),{dir:o}=ho(),{getRootNode:r}=Xe(),n=le(),i={id:t,ids:{label:n?.ids.label,input:n?.ids.control},disabled:n?.disabled,readOnly:n?.readOnly,required:n?.required,invalid:n?.invalid,dir:o,getRootNode:r,...e},l=ht(Al,i);return kl(l,xt)};var Kg=(e,t)=>{let[o,r]=Fe(e),[n,i]=ie()(r,["allowCustomValue","alwaysSubmitOnEnter","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","disabled","disableLayer","form","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),l=wu(n),a=Ee(T({present:l.open},o)),c=T(l.getRootProps(),i);return s(Nn,{value:l,children:s(Le,{value:a,children:s(D.div,{...c,ref:t})})})},Pu=P(Kg);var qg=(e,t)=>{let[o,r]=Fe(e),[{value:n},i]=ie()(r,["value"]),l=Ee(T({present:n.open},o)),a=T(n.getRootProps(),i);return s(Nn,{value:n,children:s(Le,{value:l,children:s(D.div,{...a,ref:t})})})},Eu=P(qg);var Yg=ie(),jl=P((e,t)=>{let[o,r]=Yg(e,["focusable"]),n=T(X().getTriggerProps(o),r);return s(D.button,{...n,ref:t})});jl.displayName="ComboboxTrigger";var Se=bt({ClearTrigger:()=>Ml,Content:()=>Dl,Context:()=>gu,Control:()=>Fl,Empty:()=>Ll,Input:()=>Bl,Item:()=>Vl,ItemContext:()=>vu,ItemGroup:()=>Hl,ItemGroupLabel:()=>_l,ItemIndicator:()=>Wl,ItemText:()=>zl,Label:()=>Ul,List:()=>Gl,Positioner:()=>$l,Root:()=>Pu,RootProvider:()=>Eu,Trigger:()=>jl});var Rn=P(({className:e,error:t,hideNumberSteppers:o,...r},n)=>s("input",{ref:n,"data-error":t?"true":void 0,className:x("polli-input polli:px-3 polli:py-2 polli:border polli:rounded-lg","polli:font-body polli:text-base polli:font-normal polli:leading-6 polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",o&&"polli-input-number-clean",e),...r}));function Iu({label:e,value:t,highlighted:o=!1,className:r,...n}){return b("button",{type:"button","data-highlighted":o?"":void 0,className:x("polli-control polli:flex polli:h-7 polli:max-w-full polli:shrink-0 polli:items-center polli:gap-1 polli:rounded polli:px-1.5 polli:text-xs polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-active",r),...n,children:[b("span",{className:"polli:text-theme-text-muted",children:[e,":"]}),s("span",{className:"polli:truncate polli:text-theme-text-base",children:t}),s(de,{className:"polli:h-3 polli:w-3 polli:text-theme-text-muted"})]})}function Tu({value:e,options:t,onChange:o,emptyMessage:r="No options match.",align:n="start",open:i,onOpenChange:l,closeOnSelect:a,startContent:c,contentClassName:p,className:u,disabled:d,name:g,placeholder:f,required:m,...v}){let h=se(()=>{let M=e.trim().toLowerCase();return M===""?t:t.filter(N=>N.toLowerCase().includes(M))},[t,e]),C=se(()=>bl({items:h,itemToString:M=>M,itemToValue:M=>M}),[h]),I=t.length>0,E=!!c,w=$(null);return Y(()=>{w.current&&w.current.value!==e&&(w.current.value=e)}),b(Se.Root,{collection:C,inputValue:e,value:[],allowCustomValue:!0,openOnClick:I,openOnChange:()=>I,open:i,closeOnSelect:a,disabled:d,name:g,required:m,positioning:{placement:n==="end"?"bottom-end":"bottom-start",sameWidth:!0,strategy:"fixed"},onInputValueChange:M=>o(M.inputValue),onOpenChange:M=>l?.(M.open),children:[b(Se.Control,{className:x("polli:relative polli:w-full",E&&"polli-input-shell polli:flex polli:min-h-10 polli:flex-wrap polli:items-center polli:gap-2 polli:border polli:rounded-lg polli:px-2 polli:py-1"),children:[c,s(Se.Input,{asChild:!0,children:s(Rn,{ref:w,...v,name:g,placeholder:f,className:x(E?"polli:min-w-28 polli:flex-1 polli:px-1 polli:py-1":"polli:w-full polli:pr-10",u)})}),I&&!E&&s(Se.Trigger,{"aria-label":"Show options",className:"polli-control polli:absolute polli:right-0 polli:top-0 polli:flex polli:h-full polli:w-10 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-r-lg polli:text-theme-text-muted polli:hover:text-theme-text-strong",children:s(Se.Context,{children:M=>s(de,{expanded:M.open,className:"polli:h-4 polli:w-4 polli:transition-transform"})})})]}),s(Se.Positioner,{children:s(Se.Content,{className:x("polli:z-[120] polli:overflow-hidden polli:rounded-lg polli:bg-surface-menu polli:p-1 polli:shadow-lg polli:focus:outline-none",p),children:s(Ue,{className:"polli:max-h-64",children:b(Se.List,{className:"polli:flex polli:flex-col",children:[h.map(M=>s(Se.Item,{item:M,className:x("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-hover",e===M&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:s(Se.ItemText,{className:"polli:truncate polli:font-mono",children:M})},M)),h.length===0&&s(Se.Empty,{className:"polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft",children:r})]})})})})]})}function wo(e,t=globalThis.location?.origin){if(typeof e!="string"||!/^(https?:)?\/\//i.test(e))return!1;if(!t)return!0;try{return new URL(e,t).origin!==t}catch{return!1}}function Nu(e){let{size:t="md",appearance:o,external:r="href"in e?wo(e.href):!0,showIcon:n=!0,icon:i,className:l,children:a}=e,c=b(Z,{children:[i,s("span",{children:a}),r&&n?s(rt,{className:"polli:h-4 polli:w-4 polli:shrink-0 polli:opacity-60","aria-hidden":"true"}):null]});if("href"in e){let{href:I,target:E=r?"_blank":void 0,rel:w=E==="_blank"?"noopener noreferrer":void 0,size:M,appearance:N,external:_,showIcon:y,icon:O,className:L,children:k,...A}=e;return s(Ze,{as:"a",href:I,target:E,rel:w,size:t,appearance:o,className:x("polli:gap-2",l),...A,children:c})}let{type:p="button",size:u,appearance:d,external:g,showIcon:f,icon:m,className:v,children:h,...C}=e;return s(Ze,{as:"button",type:p,size:t,appearance:o,className:x("polli:gap-2",l),...C,children:c})}var Xg=ke("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),Oe=Xg.build();var ku=e=>e.children(le());var Kl=P((e,t)=>{let o=le(),r=T(o.getErrorTextProps(),e);return o?.invalid?s(D.span,{...r,ref:t}):null});Kl.displayName="FieldErrorText";var ql=P((e,t)=>{let o=T(le()?.getHelperTextProps(),e);return s(D.span,{...o,ref:t})});ql.displayName="FieldHelperText";var Yl=P((e,t)=>{let o=T(le()?.getInputProps(),e);return s(D.input,{...o,ref:t})});Yl.displayName="FieldInput";var Xl=e=>{let{value:t,children:o}=e,r=le();return s(Co,{value:se(()=>{if(!r)throw new Error("Field.Item must be used within Field.Root");let n=`field::${r.ids.control}::item::${t}`,i=`${n}::label`,l=()=>({...r.getInputProps(),id:n});return{...r,ids:{...r.ids,control:n,label:i},getLabelProps:()=>({...r.getLabelProps(),id:i,htmlFor:n}),getInputProps:()=>({...l(),...Oe.input.attrs}),getSelectProps:()=>({...l(),...Oe.select.attrs}),getTextareaProps:()=>({...l(),...Oe.textarea.attrs})}},[r,t]),children:o})};Xl.displayName="FieldItem";var Zl=P((e,t)=>{let o=T(le()?.getLabelProps(),e);return s(D.label,{...o,ref:t})});Zl.displayName="FieldLabel";var Jl=P(({fallback:e,...t},o)=>{let r=le();if(!r.required)return e;let n=T(r.getRequiredIndicatorProps(),t);return s(D.span,{...n,ref:o,children:t.children??"*"})});Jl.displayName="FieldRequiredIndicator";var[cI,Ru]=re({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var Su=typeof window<"u"?dr:Y;var Ou=(e={})=>{let t=Ru(),o=Xe(),{ids:r,target:n,disabled:i=!!t?.disabled,invalid:l=!1,readOnly:a=!1,required:c=!1}=e,[p,u]=ee(!1),[d,g]=ee(!1),f=ue(),m=e.id??f,v=$(null),h=r?.control??`field::${m}`,C=r?.errorText??`field::${m}::error-text`,I=r?.helperText??`field::${m}::helper-text`,E=r?.label??`field::${m}::label`;Su(()=>{let R=v.current;if(!R)return;let z=()=>{let B=o.getRootNode();u(!!B.getElementById(C)),g(!!B.getElementById(I))};z();let q=new(o.getWindow()).MutationObserver(z);return q.observe(R,{childList:!0,subtree:!0}),()=>q.disconnect()},[o,C,I]);let w=se(()=>{let R=[];return p&&l&&R.push(C),d&&R.push(I),R.join(" ")||void 0},[l,C,I,p,d]),M=se(()=>()=>({...Oe.root.attrs,id:h,ref:v,role:"group","data-disabled":G(i),"data-invalid":G(l),"data-readonly":G(a)}),[i,l,a,h]),N=n?`field::${m}::item::${n}`:void 0,_=se(()=>()=>({...Oe.label.attrs,id:E,"data-disabled":G(i),"data-invalid":G(l),"data-readonly":G(a),"data-required":G(c),htmlFor:N??m}),[i,l,a,c,m,E,N]),y=se(()=>()=>({"aria-describedby":w,"aria-invalid":et(l),"data-invalid":G(l),"data-required":G(c),"data-readonly":G(a),id:m,required:c,disabled:i,readOnly:a}),[w,l,c,a,m,i]),O=se(()=>()=>({...y(),...Oe.input.attrs}),[y]),L=se(()=>()=>({...y(),...Oe.textarea.attrs}),[y]),k=se(()=>()=>({...y(),...Oe.select.attrs}),[y]),A=se(()=>()=>({id:I,...Oe.helperText.attrs,"data-disabled":G(i)}),[i,I]),S=se(()=>()=>({id:C,...Oe.errorText.attrs,"aria-live":"polite"}),[C]),W=se(()=>()=>({"aria-hidden":!0,...Oe.requiredIndicator.attrs}),[]);return{ariaDescribedby:w,ids:{root:h,control:m,label:E,errorText:C,helperText:I},refs:{rootRef:v},disabled:i,invalid:l,readOnly:a,required:c,getLabelProps:_,getRootProps:M,getInputProps:O,getTextareaProps:L,getSelectProps:k,getHelperTextProps:A,getErrorTextProps:S,getRequiredIndicatorProps:W}};var Zg=ie(),Ql=P((e,t)=>{let[o,r]=Zg(e,["id","ids","disabled","invalid","readOnly","required","target"]),n=Ou(o),i=T(n.getRootProps(),r);return s(Co,{value:n,children:s(D.div,{...i,ref:Pe(t,n.refs.rootRef)})})});Ql.displayName="FieldRoot";var Jg=ie(),es=P((e,t)=>{let[{value:o},r]=Jg(e,["value"]),n=T(o.getRootProps(),r);return s(Co,{value:o,children:s(D.div,{...n,ref:t})})});es.displayName="FieldRootProvider";var ts=P((e,t)=>{let o=T(le()?.getSelectProps(),e);return s(D.select,{...o,ref:t})});ts.displayName="FieldSelect";var Au=e=>{if(!e)return;let t=Ge(e),o=te(e),r=Q(e),n=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",n),e.form?.addEventListener("reset",n);let i=Object.getPrototypeOf(e),l=Object.getOwnPropertyDescriptor(i,"value");l&&Object.defineProperty(e,"value",{...l,set(p){let u=l.get?.call(this);l.set?.call(this,p),n(),u!==p&&queueMicrotask(()=>{e.dispatchEvent(new o.InputEvent("input",{bubbles:!0}))})}});let a=new o.ResizeObserver(()=>{requestAnimationFrame(()=>n())});a.observe(e);let c=new o.MutationObserver(()=>n());return c.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",n),()=>{e.removeEventListener("input",n),e.form?.removeEventListener("reset",n),r.fonts?.removeEventListener("loadingdone",n),a.disconnect(),c.disconnect()}};var os=P((e,t)=>{let{autoresize:o,...r}=e,n=$(null),i=T(le()?.getTextareaProps(),{style:{resize:o?"none":void 0}},r);return Y(()=>{if(o)return Au(n.current)},[o]),s(D.textarea,{...i,ref:Pe(t,n)})});os.displayName="FieldTextarea";var it=bt({Context:()=>ku,ErrorText:()=>Kl,HelperText:()=>ql,Input:()=>Yl,Item:()=>Xl,Label:()=>Zl,RequiredIndicator:()=>Jl,Root:()=>Ql,RootProvider:()=>es,Select:()=>ts,Textarea:()=>os});function Mu({label:e,children:t,helper:o,action:r,error:n,alignLabelRow:i=!1,className:l,labelClassName:a,helperClassName:c,errorClassName:p}){return b(it.Root,{className:x("polli:flex polli:flex-col polli:gap-2 polli:font-body",l),invalid:!!n,children:[(e||r)&&b("div",{className:x("polli:flex polli:items-center polli:justify-between polli:gap-2",i&&"polli:min-h-8"),children:[e&&s(it.Label,{className:x("polli:text-sm polli:font-semibold polli:leading-5 polli:text-theme-text-strong",a),children:e}),r]}),t,n?s(it.ErrorText,{className:x("polli:text-xs polli:font-medium polli:leading-5 polli:text-intent-danger-text",p),children:n}):o?s(it.HelperText,{className:x("polli:text-xs polli:font-normal polli:leading-normal polli:text-theme-text-muted",c),children:o}):null]})}var rs=new WeakMap;function Du(e){let t=rs.get(e);if(!t){let r=n=>{n.dataTransfer?.types?.includes("Files")&&n.preventDefault()};t={consumers:0,preventFileNavigation:r},rs.set(e,t),e.addEventListener("dragover",r),e.addEventListener("drop",r)}t.consumers+=1;let o=!1;return()=>{o||(o=!0,t.consumers-=1,!(t.consumers>0)&&(e.removeEventListener("dragover",t.preventFileNavigation),e.removeEventListener("drop",t.preventFileNavigation),rs.delete(e)))}}function Qg(e,t){if(!t)return!0;let o=t.split(",").map(r=>r.trim()).filter(Boolean);return o.length===0?!0:o.some(r=>{if(r.startsWith("."))return e.name.toLowerCase().endsWith(r.toLowerCase());if(r.endsWith("/*")){let n=r.slice(0,r.length-1);return e.type.startsWith(n)}return e.type===r})}function Lu(e,t,{maxFiles:o,maxSizeBytes:r,accept:n}){let i=[],l=[],a=Math.max(0,o-t.length);for(let c of e)Qg(c,n)?c.size>r?l.push({file:c,reason:"size"}):a<=0?l.push({file:c,reason:"count"}):(i.push(c),a-=1):l.push({file:c,reason:"type"});return{accepted:i,rejected:l}}var e2={danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text"},t2={danger:"polli:hover:bg-intent-danger-bg-hover",info:"polli:hover:bg-intent-info-bg-hover"},o2={tile:"polli:bg-theme-bg-active polli:text-theme-text-soft",ghost:"polli:bg-transparent polli:text-theme-text-muted"},r2={tile:"polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",ghost:"polli:hover:bg-transparent polli:hover:text-theme-text-soft"},n2={sm:"polli:h-6 polli:w-6 polli:rounded",md:"polli:h-9 polli:w-9 polli:rounded-full"},er=P(({intent:e,variant:t="tile",pressed:o,title:r,tooltip:n,tooltipAlign:i,tooltipClampToViewport:l,children:a,className:c,size:p="sm",disabled:u=!1,...d},g)=>{let f=s("button",{...d,ref:g,type:"button",disabled:u,"aria-label":d["aria-label"]??r,"aria-pressed":o,"data-intent":e,className:x("polli-control polli:inline-flex polli:items-center polli:justify-center polli:transition-colors",u?"polli:cursor-not-allowed polli:opacity-50":"polli:cursor-pointer",n2[p],e?e2[e]:o2[t],!u&&(e?t2[e]:r2[t]),c),children:a}),m=n??r;return m?s(Je,{triggerAs:"span",content:m,align:i,clampToViewport:l,tapEnabled:!1,className:u?"polli:cursor-not-allowed":"polli:cursor-pointer",children:f}):f});er.displayName="IconButton";var i2=new Set(["image/gif","image/jpeg","image/png","image/webp"]),l2=64,s2=112,Bu={sm:"polli:h-16 polli:w-16",lg:"polli:h-28 polli:w-28"};function Fu(e){return i2.has(e.type)}function a2(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function c2(e){let t=new Set(e.map(r=>r.type.split("/")[0]).filter(Boolean));if(t.size!==1)return`${e.length} files attached`;let[o]=t;return`${e.length} ${o}${e.length===1?"":"s"} attached`}function p2({icon:e,size:t}){return s("div",{className:x("polli:flex polli:items-center polli:justify-center polli:rounded-xl polli:bg-theme-bg-active polli:text-theme-text-soft",Bu[t]),children:e})}function u2({file:e,placeholderIcon:t,size:o="sm"}){let r=$(null),[n,i]=ee(()=>Fu(e)),l=o==="lg"?s2:l2;return Y(()=>{if(!Fu(e)){i(!1);return}let a=!1;i(!0);async function c(){try{let p=await createImageBitmap(e);if(a){p.close();return}let u=r.current,d=u?.getContext("2d");if(!u||!d){p.close(),i(!1);return}u.width=l,u.height=l;let g=Math.max(l/p.width,l/p.height),f=p.width*g,m=p.height*g,v=(l-f)/2,h=(l-m)/2;d.clearRect(0,0,l,l),d.drawImage(p,v,h,f,m),p.close()}catch{a||i(!1)}}return c(),()=>{a=!0}},[e,l]),n?s("canvas",{ref:r,role:"img","aria-label":e.name,className:x("polli:rounded-xl",Bu[o]),width:l,height:l}):s(p2,{icon:t,size:o})}function Vu({value:e,onChange:t,onReject:o,maxFiles:r=4,maxSizeBytes:n=10*1024*1024,accept:i="image/*",icon:l=s(rn,{className:"polli:h-6 polli:w-6"}),label:a=b(Z,{children:["Drag images here or ",s("span",{className:"polli:underline",children:"browse"})]}),previewIcon:c=s(rn,{className:"polli:h-5 polli:w-5"}),variant:p="default",disabled:u=!1,className:d}){Y(()=>Du(document),[]);function g(N){if(u||N.length===0)return;let{accepted:_,rejected:y}=Lu(N,e,{maxFiles:r,maxSizeBytes:n,accept:i});_.length>0&&t([...e,..._]),y.length>0&&o?.(y)}let f=e.length>0,m=!u&&e.length<r,v=r===1,h=p!=="default",C=p==="inline",I=h?"sm":v?"lg":"sm",E=ue(),w=`${E}-add`;function M(N){g(Array.from(N.target.files??[])),N.target.value=""}return C&&!f?null:s("div",{className:x("polli:flex polli:flex-col polli:gap-2",d),children:s("fieldset",{disabled:u,className:x("polli:m-0",!C&&"polli:rounded-xl polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale","polli:text-sm",C?"polli:border-0 polli:bg-transparent polli:p-0 polli:text-left":h?"polli:min-h-16 polli:px-3 polli:py-2 polli:text-left":"polli:px-4 polli:py-4 polli:text-center","polli:text-theme-text-soft polli:transition-colors",u?"polli:opacity-50":"polli:hover:bg-theme-bg-hover"),onDragOver:N=>N.preventDefault(),onDrop:N=>{N.preventDefault(),!u&&g(Array.from(N.dataTransfer.files))},children:f?b("div",{className:x("polli:flex polli:gap-3",h?"polli:items-center":"polli:flex-col"),children:[h&&!C&&s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-muted",children:c2(e)}),b("ul",{className:x("polli:m-0 polli:gap-3 polli:p-0",h?x("polli:flex polli:min-w-0 polli:flex-1 polli:flex-wrap",C?"polli:justify-start":"polli:ml-auto polli:justify-end"):"polli:grid polli:grid-cols-[repeat(auto-fill,minmax(5rem,1fr))]",v&&!h&&"polli:flex polli:justify-center"),children:[e.map((N,_)=>b("li",{className:x("polli:relative polli:flex polli:min-w-0 polli:list-none polli:flex-col polli:items-center polli:gap-1",v&&"polli:max-w-full"),children:[s(u2,{file:N,placeholderIcon:c,size:I}),!h&&b(Z,{children:[s("span",{className:x("polli:max-w-full polli:truncate polli:text-xs polli:font-medium polli:text-theme-text-base",v?"polli:w-36":"polli:w-16"),children:N.name}),s("span",{className:"polli:text-micro polli:text-theme-text-muted",children:a2(N.size)})]}),!u&&s("div",{className:"polli:absolute polli:-top-2 polli:right-1",children:s(er,{intent:"danger",title:`Remove ${N.name}`,onClick:()=>t(e.filter((y,O)=>O!==_)),children:s(qt,{className:"polli:h-3 polli:w-3"})})})]},`${N.name}-${_}`)),!C&&!v&&m&&s("li",{className:"polli:flex polli:list-none",children:b("label",{htmlFor:w,className:x("polli-control polli:flex polli:cursor-pointer polli:flex-col polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-soft polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-strong",h?"polli:h-16 polli:w-16 polli:px-2 polli:py-1":"polli:min-h-20 polli:w-full polli:px-3 polli:py-2"),children:[s(_i,{className:"polli:h-5 polli:w-5"}),!h&&s("span",{className:"polli:text-xs polli:font-medium",children:"Add"}),s("input",{id:w,type:"file","aria-label":"Add files",accept:i,multiple:!0,disabled:u||!m,className:"polli:sr-only",onChange:M})]})})]}),Number.isFinite(r)&&r>1&&!h&&b("span",{className:"polli:text-xs polli:text-theme-text-muted",children:[e.length," / ",r," files"]})]}):b("label",{htmlFor:E,className:x("polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-lg",h?"polli:min-h-12 polli:flex-row polli:justify-start":"polli:min-h-32 polli:flex-col polli:justify-center",m?"polli:cursor-pointer":"polli:cursor-not-allowed"),children:[l,s("span",{children:a}),s("input",{id:E,type:"file",accept:i,multiple:r>1,disabled:u||!m,className:"polli:sr-only",onChange:M})]})})})}var Hu=({text:e,content:t,label:o="More info"})=>s(Je,{content:t??e,ariaLabel:o,className:"polli:ml-1",displayContents:!0,children:s("span",{className:"polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong",children:"i"})});var d2={icon:"polli:h-5 polli:w-5 polli:p-0 polli:text-xs",sm:"polli:h-5 polli:px-2 polli:text-xs",md:"polli:h-6 polli:px-2.5 polli:text-sm",lg:"polli:h-7 polli:px-3 polli:text-sm"},m2={news:"polli:bg-intent-news-bg-light polli:text-intent-news-text",new:"polli:bg-intent-new-bg-light polli:text-intent-new-text",free:"polli:bg-intent-free-bg-light polli:text-intent-free-text",alpha:"polli:bg-intent-alpha-bg-light polli:text-intent-alpha-text",neutral:"polli:bg-ink-100/80 polli:text-ink-900",success:"polli:bg-intent-success-bg-bright/15 polli:text-intent-success-text",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},tr=({intent:e,size:t="md",className:o,children:r,...n})=>{let i=e?m2[e]:"polli:bg-theme-bg-active polli:text-theme-text-strong";return s("span",{...n,className:x("polli:inline-flex polli:shrink-0 polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:font-medium polli:leading-none",d2[t],i,o),children:r})};var _u="polli:gap-1.5 polli:font-mono polli:font-normal polli:[&>svg]:size-3.5 polli:[&>svg]:shrink-0";function Wu({prefix:e,value:t,label:o="Copy key",className:r}){let n=`${e}\u2026`;return t?s(Ct,{value:t,tooltip:null,"aria-label":o,className:"polli:inline-flex polli:cursor-pointer polli:rounded-lg",children:i=>b(tr,{intent:i?"success":"neutral",className:x(_u,"polli:transition-colors",r),children:[i?s(Re,{"aria-hidden":"true"}):s(Kt,{"aria-hidden":"true"}),i?"Copied":n]})}):s(tr,{intent:"neutral",className:x(_u,r),children:n})}function zu({as:e,external:t,showIcon:o=!0,className:r,surfaceClassName:n,children:i,...l}){let a=e||"a",c=t??wo(l.href);return b(yt,{as:a,variant:"card",target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,...l,className:x("polli:relative polli:flex polli:h-full polli:flex-col polli:gap-2 polli:bg-surface-opaque/80 polli:p-5 polli:outline-none",o&&c&&"polli:pr-10","polli:transition-colors polli:hover:bg-surface-opaque/95","polli:focus-visible:ring-2 polli:focus-visible:ring-theme-border",r,n),children:[o&&c&&s(rt,{"aria-hidden":"true",className:"polli:absolute polli:top-4 polli:right-4 polli:h-3.5 polli:w-3.5 polli:text-theme-text-soft"}),i]})}var Uu=({icon:e,label:t,detail:o,children:r,className:n,...i})=>b("div",{...i,className:x("polli:flex polli:aspect-video polli:min-h-40 polli:flex-col polli:items-center polli:justify-center polli:gap-3 polli:rounded-lg polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale polli:p-6 polli:text-center",n),children:[e&&s("div",{className:"polli:flex polli:h-10 polli:w-10 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-base",children:e}),(t||o)&&b("div",{className:"polli:max-w-sm",children:[t&&s(ce,{as:"p",size:"sm",tone:"strong",weight:"semibold",children:t}),o&&s(ce,{as:"p",size:"sm",tone:"soft",className:"polli:mt-1",children:o})]}),r]});var Gu="polli-control polli:inline-flex polli:min-h-8 polli:min-w-[140px] polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-1.5 polli:text-xs polli:font-medium polli:transition-all polli:duration-200",$u="polli-control polli:flex polli:w-full polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:text-xs polli:transition-colors",ju="polli:flex polli:h-4 polli:w-4 polli:flex-shrink-0 polli:items-center polli:justify-center polli:rounded polli:border polli:border-theme-border polli:text-xs",Ku=({options:e,selected:t,onChange:o,placeholder:r,disabled:n,disabledText:i,disabledTooltip:l,align:a="start",label:c,ariaLabel:p,fullWidth:u=!1})=>{let d=t.length===0,g=h=>{t.includes(h)?o(t.filter(C=>C!==h)):o([...t,h])},f=()=>o([]),m=n?i:d?r:t.length===1?e.find(h=>h.value===t[0])?.label??"1 selected":`${t.length} selected`,v=c?s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-soft",children:c}):null;return n?b("div",{className:x("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(Je,{triggerAs:"span",content:l||"No items available",align:"center",className:x("polli:inline-flex polli:cursor-not-allowed",u&&"polli:min-w-0 polli:flex-1"),children:b("button",{type:"button",disabled:!0,"aria-label":p||c||r,className:x(Gu,u&&"polli:w-full polli:min-w-0","polli:cursor-not-allowed polli:bg-theme-bg-active polli:opacity-50"),children:[s("span",{className:"polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong",children:m}),s(de,{expanded:!1,className:"polli:h-3 polli:w-3 polli:text-theme-text-soft"})]})})]}):b("div",{className:x("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(vt,{align:a,className:"polli:w-[min(20rem,calc(100vw-2rem))]",trigger:h=>b("button",{type:"button","aria-label":p||c||r,className:x(Gu,u&&"polli:w-full polli:min-w-0",h?"polli:bg-theme-bg-hover":"polli:bg-theme-bg-active polli:hover:bg-theme-bg-hover"),children:[s("span",{className:x("polli:flex-1 polli:truncate polli:text-left",h?"polli:text-theme-text-strong":"polli:text-theme-text-base"),children:m}),s(de,{expanded:h,className:x("polli:h-3 polli:w-3 polli:transition-transform",h?"polli:text-theme-text-strong":"polli:text-theme-text-soft")})]}),children:b(Ue,{className:"polli:max-h-64",children:[b("button",{type:"button",onClick:f,"aria-pressed":d,className:x($u,d?"polli:bg-theme-bg-active polli:font-medium polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:x(ju,d&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:d&&"\u2713"}),r]}),e.map(h=>{let C=t.includes(h.value);return b("button",{type:"button",onClick:()=>g(h.value),"aria-pressed":C,className:x($u,C?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:x(ju,C&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:C&&"\u2713"}),s("span",{className:"polli:min-w-0 polli:[overflow-wrap:anywhere]",children:h.label})]},h.value)})]})})]})};var f2="polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:whitespace-nowrap polli:transition-colors",g2="polli:bg-theme-bg-active polli:text-theme-text-strong",h2="polli:text-ink-800 polli:hover:bg-surface-opaque/60 polli:hover:text-ink-950";function qu({as:e,active:t=!1,icon:o,className:r,children:n,...i}){return b(e||"button",{"aria-current":t?"page":void 0,className:x(f2,t?g2:h2,r),...i,children:[o?s(o,{className:"polli:h-4 polli:w-4 polli:shrink-0"}):null,n]})}function Po(e=new Date){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function lt(e,t){let o=new Date(e);return o.setUTCDate(o.getUTCDate()+t),o}function x2(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1))}function b2(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function v2(e){let t=e.getUTCDay()||7;return lt(Po(e),1-t)}function y2(e){let t=e.getUTCDay()||7,o=lt(Po(e),4-t),r=o.getUTCFullYear(),n=new Date(Date.UTC(r,0,1)),i=Math.ceil(((o.getTime()-n.getTime())/864e5+1)/7);return`${r}-W${String(i).padStart(2,"0")}`}function Yu(e){return e.toISOString().slice(0,10)}function C2(e){return e.toISOString().slice(0,13).replace("T"," ")}function w2(e){return e.toISOString().slice(0,7)}function st(e,t=new Date){return e==="day"?{granularity:e,period:Yu(Po(t))}:e==="week"?{granularity:e,period:y2(t)}:{granularity:e,period:w2(x2(t))}}function Xu(){return st("day")}function Tt(e){if(e.granularity==="day"){let n=new Date(`${e.period}T00:00:00.000Z`);return{start:n,end:lt(n,1)}}if(e.granularity==="week"){let[n,i]=e.period.split("-W"),l=Number(n),a=Number(i),c=new Date(Date.UTC(l,0,4)),p=lt(v2(c),(a-1)*7);return{start:p,end:lt(p,7)}}let[t,o]=e.period.split("-"),r=new Date(Date.UTC(Number(t),Number(o)-1,1));return{start:r,end:b2(r,1)}}function Zu(e){let{start:t,end:o}=Tt(e),r=[],n=new Date(t);if(e.granularity==="day"){for(;n<o;)r.push(`${C2(n)}:00:00`),n.setUTCHours(n.getUTCHours()+1);return r}for(;n<o;)r.push(Yu(n)),n.setUTCDate(n.getUTCDate()+1);return r}function Ju(e,t){return t==="day"?new Date(`${e.replace(" ","T")}.000Z`):new Date(`${e}T00:00:00.000Z`)}function or(e,t=new Date(0),o=Po()){let{start:r,end:n}=Tt(e);return n>t&&r<=o}var P2="polli-control polli:inline-flex polli:items-center polli:justify-center polli:rounded-full polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",E2={xs:"polli:px-2.5 polli:py-1 polli:text-xs",lg:"polli:px-5 polli:py-2 polli:text-lg",md:"polli:px-4 polli:py-1.5 polli:text-base",sm:"polli:px-3 polli:py-1.5 polli:text-sm"},ns={soft:{base:"",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",mixed:"polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"},ghost:{base:"polli:border polli:border-transparent",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",mixed:"polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"}},Qu={amber:{active:"polli:bg-paid-pale polli:text-paid-deep",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-paid-pale/60"},green:{active:"polli:bg-tier-pale polli:text-tier-deep",inactive:"polli:bg-transparent polli:text-tier-deep polli:hover:bg-tier-pale/60"}};function Sn({as:e,active:t,onClick:o,children:r,size:n="md",variant:i="soft",intent:l,detail:a,ariaLabel:c,disabled:p=!1,className:u,...d}){let g=e||"button",f=g==="button",m=l==="neutral"?ns.soft:l?{...Qu[l],mixed:Qu[l].active}:ns[i];return b(g,{...d,...f?{type:"button",disabled:p}:{},...!f&&p?{"aria-disabled":!0,tabIndex:-1}:{},...g==="a"&&p?{href:void 0}:{},onClick:p?h=>{h.preventDefault(),h.stopPropagation()}:o,...c!==void 0?{"aria-label":c}:{},...f?{"aria-pressed":t}:{"aria-current":t===!0?"page":void 0},className:x(P2,ns[i].base,t==="mixed"?m.mixed:t?m.active:m.inactive,p&&"polli:pointer-events-none polli:cursor-not-allowed polli:opacity-50",E2[n],u),children:[r,a!=null&&s("span",{className:"polli:ml-1 polli:font-normal polli:opacity-70",children:a})]})}var I2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],T2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ed="polli-control polli:rounded-full polli:px-2 polli:py-1 polli:text-xs polli:font-semibold polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-subtle";function Eo(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function N2(e){let t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)),o=t.getUTCDay()||7,r=lt(t,1-o);return Array.from({length:42},(n,i)=>lt(r,i))}function td(e,t){return e.getTime()===t.getTime()}function is(e){return Tt(e).start}function od(e){return`${e.granularity}:${e.period}`}function id(e,t="short"){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:t,year:"numeric"})}function ls(e){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"})}function k2(e,t){let o=lt(t,-1);return e.getUTCFullYear()===o.getUTCFullYear()&&e.getUTCMonth()===o.getUTCMonth()?`${e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short"})} ${e.getUTCDate()}-${o.getUTCDate()}, ${o.getUTCFullYear()}`:`${ls(e)} - ${ls(o)}`}function rd(e){let{start:t,end:o}=Tt(e);return e.granularity==="day"?ls(t):e.granularity==="week"?k2(t,o):id(t,"long")}function nd(e,t){if(t==="month"){let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return{start:r,end:Eo(r,12)}}let o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1));return{start:o,end:Eo(o,1)}}var ld=({value:e,onChange:t,minDate:o=new Date(0),maxDate:r,trigger:n,header:i})=>{let[l,a]=ee(!1),[c,p]=ee(()=>is(e)),[u,d]=ee(()=>is(e)),g=$(null),{granularity:f,period:m}=e;Y(()=>{let S=od({granularity:f,period:m});if(g.current===S){g.current=null;return}let W=is({granularity:f,period:m});d(W),p(W)},[f,m]);let v=se(()=>N2(c),[c]),h=Tt(e),C=Po(r),I=e.granularity==="month"?Eo(c,-12):Eo(c,-1),E=e.granularity==="month"?Eo(c,12):Eo(c,1),w=nd(I,e.granularity),M=nd(E,e.granularity),N=w.end<=o,_=M.start>C,y=rd(e),O=(S,W)=>{g.current=od(S),d(W),p(W),t(S)},L=S=>{O(st(S,u),u)},k=S=>{O(st(e.granularity,S),S),a(!1)},A=e.granularity==="month"?String(c.getUTCFullYear()):id(c,"long");return b("div",{className:n?"polli:contents":"polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",children:[!n&&s("div",{className:"polli:flex polli:flex-wrap polli:gap-1.5",children:["day","week","month"].map(S=>s(Sn,{active:e.granularity===S,onClick:()=>L(S),children:S[0].toUpperCase()+S.slice(1)},S))}),b(vt,{open:l,onOpenChange:a,className:"polli:w-[320px] polli:max-w-[calc(100vw-2rem)] polli:rounded-xl polli:border polli:border-divider polli:bg-surface-opaque polli:p-3.5 polli:shadow-lg",trigger:n??(S=>b("button",{type:"button","aria-label":`Select period, current ${y}`,className:x("polli-control polli:inline-flex polli:w-[320px] polli:max-w-full polli:items-center polli:justify-between polli:gap-2 polli:rounded-full polli:px-4 polli:py-1.5 polli:text-left polli:text-base polli:font-medium polli:leading-normal","polli:bg-theme-bg-active polli:text-theme-text-base","polli:transition-all polli:duration-200 polli:ease-out polli:hover:bg-theme-bg-hover",S&&"polli:bg-theme-bg-hover polli:text-theme-text-strong"),children:[s("span",{className:"polli:truncate",children:y}),s(de,{expanded:S})]})),children:[i,b("div",{className:"polli:mb-3 polli:flex polli:items-center polli:justify-between",children:[s("button",{type:"button","aria-label":"Previous",disabled:N,onClick:()=>p(I),className:x(ed,N&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:"<"}),s("div",{className:"polli:text-base polli:font-bold polli:text-theme-text-base",children:A}),s("button",{type:"button","aria-label":"Next",disabled:_,onClick:()=>p(E),className:x(ed,_&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:">"})]}),e.granularity==="month"?s("div",{className:"polli:grid polli:grid-cols-3 polli:gap-1.5",children:T2.map((S,W)=>{let R=new Date(Date.UTC(c.getUTCFullYear(),W,1)),z=or(st("month",R),o,C),q=R.toLocaleDateString("en-US",{timeZone:"UTC",month:"long",year:"numeric"}),B=R.getUTCFullYear()===h.start.getUTCFullYear()&&R.getUTCMonth()===h.start.getUTCMonth();return s("button",{type:"button","aria-label":q,"aria-pressed":B,disabled:!z,onClick:()=>k(R),className:x("polli-control polli:rounded-lg polli:px-3 polli:py-2 polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",B?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!z&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:S},S)})}):b(Z,{children:[s("div",{className:"polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted",children:I2.map(S=>s("div",{children:S},S))}),s("div",{className:"polli:grid polli:grid-cols-7 polli:gap-1",children:v.map(S=>{let W=S.getUTCMonth()===c.getUTCMonth(),R=or(st(e.granularity,S),o,C),z=e.granularity==="week"?`Select ${rd(st("week",S))}`:`Select ${S.toLocaleDateString("en-US",{timeZone:"UTC",weekday:"long",month:"long",day:"numeric",year:"numeric"})}`,q=e.granularity==="day"?td(S,h.start):S>=h.start&&S<h.end;return s("button",{type:"button","aria-label":z,"aria-pressed":q,disabled:!R,onClick:()=>k(S),className:x("polli-control polli:aspect-square polli:rounded-lg polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",!W&&"polli:text-theme-text-muted",td(S,C)&&"polli:ring-1 polli:ring-theme-border",q?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!R&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:S.getUTCDate()},S.toISOString())})})]})]})]})};var sd=({title:e,id:t,framed:o=!0,intro:r,action:n,actionClassName:i,panelClassName:l,titleClassName:a,children:c,className:p})=>{let u=b(Z,{children:[r&&s(ce,{as:"div",className:"polli:max-w-2xl",children:r}),c]}),d=b(Z,{children:[b("header",{className:"polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3",children:[s(bo,{as:"h2",size:"section",className:x("polli:text-left",a),children:e}),n&&s("div",{className:x("polli:shrink-0",i),children:n})]}),u]});return s("section",{id:t,className:x("polli:scroll-mt-10",p),children:o?s(yt,{variant:"panel",className:x("polli:flex polli:flex-col polli:gap-5",l),children:d}):s("div",{className:"polli:flex polli:flex-col polli:gap-4",children:d})})};var R2={stat:"polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",fact:"polli:text-sm polli:leading-6 polli:text-theme-text-soft"},ad=({label:e,value:t,detail:o,variant:r="stat",className:n,labelClassName:i,valueClassName:l,detailClassName:a})=>b("div",{className:x("polli:text-sm",n),children:[s(ce,{as:"div",size:"micro",tone:"soft",weight:"bold",className:x("polli:uppercase polli:tracking-wide",i),children:e}),s("div",{className:x("polli:mt-1 polli:break-words",R2[r],l),children:t}),o&&s(ce,{as:"div",size:"xs",tone:"soft",className:x("polli:mt-2",a),children:o})]});function On({as:e,external:t,showIcon:o=!0,size:r="inherit",tone:n="accent",className:i,children:l,...a}){let c=e||"a",p=t??wo(a.href);return b(c,{target:p&&e!=="button"?"_blank":void 0,rel:p&&e!=="button"?"noopener noreferrer":void 0,className:["polli-link",i].filter(Boolean).join(" "),"data-size":r,"data-tone":n,...a,children:[l,o&&p&&s(rt,{"aria-hidden":"true",className:"polli-link-external-icon"})]})}function S2(e){if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}function O2(e){let o=S2(e).split(/(https:\/\/[^\s"\\]+)/g),r=0;return o.map(n=>{let i=`${r}:${n}`;return r+=n.length,n.startsWith("https://")?s(On,{href:n,children:n},i):n})}function cd({value:e,error:t=!1}){return s("pre",{className:x("polli:max-h-72 polli:overflow-auto polli:whitespace-pre-wrap polli:break-words polli:rounded-lg polli:border polli:p-3 polli:text-xs polli:leading-relaxed",t?"polli:border-intent-danger-border/30 polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:border-theme-border/20 polli:bg-theme-bg-pale polli:text-theme-text-base"),children:O2(e)})}var A2={pending:"Pending",running:"Running","approval-requested":"Awaiting approval","approval-responded":"Responded",complete:"Completed",error:"Error",denied:"Denied"};function M2({status:e}){let t=e==="complete"||e==="approval-responded"?s(Re,{className:"polli:size-3"}):e==="error"||e==="denied"?s(qt,{className:"polli:size-3"}):s(Hi,{className:x("polli:size-3",e==="running"&&"polli:animate-pulse")});return b("span",{"data-status":e,className:x("polli:ml-auto polli:inline-flex polli:shrink-0 polli:items-center polli:gap-1 polli:rounded-full polli:px-2 polli:py-1 polli:text-[11px] polli:font-semibold",e==="complete"||e==="approval-responded"?"polli:bg-theme-bg-active polli:text-intent-success-text":e==="error"||e==="denied"?"polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:bg-intent-info-bg-light polli:text-intent-info-text"),children:[t,A2[e]]})}function pd({name:e,input:t,output:o,error:r,status:n=r===void 0?"complete":"error",defaultOpen:i=!1,className:l}){let a=r===void 0?o:r,[c,p]=ee(i);return b("div",{"data-tool-status":n,className:x("polli:overflow-hidden polli:rounded-xl polli:border polli:border-theme-border/35 polli:bg-surface-opaque",l),children:[b("button",{type:"button","aria-expanded":c,onClick:()=>p(u=>!u),className:"polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:px-3 polli:py-2.5 polli:text-left polli:hover:bg-theme-bg-hover/50",children:[s("span",{className:"polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(Wi,{className:"polli:size-3.5"})}),s("code",{className:"polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong",children:e}),s(M2,{status:n}),s(de,{expanded:c,className:"polli:size-4 polli:shrink-0 polli:text-theme-text-soft"})]}),c&&b("div",{className:"polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3",children:[t!==void 0&&b("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(ce,{size:"xs",tone:"muted",weight:"bold",children:"Parameters"}),s(cd,{value:t})]}),a!==void 0&&b("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(ce,{size:"xs",tone:"muted",weight:"bold",children:r===void 0?"Result":"Error"}),s(cd,{value:a,error:r!==void 0})]})]})]})}function ud(...e){return Hs(fr(...e))}function dd(e=!0){Y(()=>{if(!e)return;let t=document.body.style.overflow,o=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=t,document.documentElement.style.overflow=o}},[e])}var md=({className:e,children:t,role:o="group",...r})=>s("div",{...r,role:o,className:x("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-1.5",e),children:t});var D2={sm:{track:"polli:h-7 polli:w-[52px]",thumb:"polli:h-5 polli:w-5",travel:"polli:translate-x-6",icon:"polli:h-3.5 polli:w-3.5",ghostOff:"polli:right-2",ghostOn:"polli:left-2"},md:{track:"polli:h-9 polli:w-16",thumb:"polli:h-7 polli:w-7",travel:"polli:translate-x-7",icon:"polli:h-4 polli:w-4",ghostOff:"polli:right-[9px]",ghostOn:"polli:left-[9px]"},lg:{track:"polli:h-12 polli:w-[88px]",thumb:"polli:h-10 polli:w-10",travel:"polli:translate-x-10",icon:"polli:h-5 polli:w-5",ghostOff:"polli:right-[13px]",ghostOn:"polli:left-[13px]"}},L2={off:"polli:border-theme-text-strong/15 polli:bg-theme-bg-subtle polli:hover:border-theme-text-strong/30",on:"polli:border-tier-soft polli:bg-tier-soft",invalid:"polli:border-intent-danger-text polli:bg-intent-danger-bg-light",choice:"polli:border-theme-text-strong/10 polli:bg-surface-opaque"},F2={off:"polli:bg-theme-text-muted/60 polli:text-app-bg",on:"polli:bg-intent-success-text-on-bright",invalid:"polli:bg-intent-danger-text polli:text-app-bg",choice:"polli:bg-app-bg polli:text-theme-text-soft"},An=({checked:e,onChange:t,status:o,ariaLabel:r,disabled:n=!1,size:i="md",icons:l,className:a})=>{let c=D2[i],p=l?"choice":o??(e?"on":"off");return b("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r??(e?"Turn off toggle":"Turn on toggle"),onClick:()=>t(!e),disabled:n,className:x("polli-control polli:relative polli:inline-block polli:shrink-0 polli:cursor-pointer polli:rounded-full polli:border polli:transition-colors polli:disabled:cursor-not-allowed polli:disabled:opacity-60",c.track,L2[p],a),children:[l&&s("span",{"aria-hidden":"true",className:x("polli:absolute polli:top-1/2 polli:flex polli:-translate-y-1/2 polli:text-theme-text-strong/40 polli:[&>svg]:h-full polli:[&>svg]:w-full",c.icon,e?c.ghostOn:c.ghostOff),children:e?l.off:l.on}),s("span",{className:x("polli:absolute polli:top-1/2 polli:left-[3px] polli:flex polli:-translate-y-1/2 polli:items-center polli:justify-center polli:rounded-full polli:transition-[transform,background-color]",c.thumb,F2[p],e?c.travel:"polli:translate-x-0"),children:l&&s("span",{"aria-hidden":"true",className:x("polli:flex polli:[&>svg]:h-full polli:[&>svg]:w-full",c.icon),children:e?l.on:l.off})})]})};var Mn="polli-color-mode";function gd(){try{let e=localStorage.getItem(Mn);return e==="light"||e==="dark"?e:null}catch{return null}}function ss(){return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches===!0?"dark":"light"}var Io=gd()??ss(),rr=new Set;function as(){typeof document>"u"||(document.documentElement.classList.toggle("dark",Io==="dark"),B2())}function B2(){if(typeof document>"u")return;let e=getComputedStyle(document.documentElement).getPropertyValue("--polli-color-app-bg").trim();if(!e)return;let t=document.querySelector('meta[name="theme-color"]');t||(t=document.createElement("meta"),t.setAttribute("name","theme-color"),document.head.appendChild(t)),t.setAttribute("content",e)}function hd(){for(let e of rr)e()}function fd(e){if(e.key!==Mn)return;let t=gd()??ss();t!==Io&&(Io=t,as(),hd())}function V2(e){return rr.size===0&&typeof window<"u"&&(as(),window.addEventListener("storage",fd)),rr.add(e),()=>{rr.delete(e),rr.size===0&&typeof window<"u"&&window.removeEventListener("storage",fd)}}function H2(){return Io}function _2(){return"light"}function cs(e){if(e!==Io){Io=e,as();try{e===ss()?localStorage.removeItem(Mn):localStorage.setItem(Mn,e)}catch{}hd()}}function ps(){let e=mr(V2,H2,_2);return{mode:e,isDark:e==="dark",toggle:()=>cs(e==="dark"?"light":"dark")}}var xd=()=>{let{isDark:e,toggle:t}=ps();return s(An,{checked:e,onChange:t,ariaLabel:"Toggle dark mode",size:"sm",icons:{off:s(Gi,{}),on:s(Ui,{})}})};var bd=({open:e,onOpenChange:t,ariaLabel:o,children:r,side:n="left",contentClassName:i})=>{let l=$(null);return s(Ie.Root,{open:e,initialFocusEl:()=>l.current,onOpenChange:a=>t(a.open),children:b(jt,{children:[s(Ie.Backdrop,{className:"polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm"}),s(Ie.Positioner,{className:"polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden",children:s(Ie.Content,{ref:l,"aria-label":o,className:x("polli:pointer-events-auto polli:flex polli:h-dvh polli:w-[min(20rem,86vw)] polli:flex-col polli:overflow-hidden polli:border-theme-text-strong/10 polli:bg-app-bg polli:outline-none",n==="right"?"polli:ml-auto polli:border-l":"polli:border-r",i),children:r})})]})})};function vd({as:e,className:t,children:o,...r}){let n=e||"button";return s(n,{...n==="button"?{type:"button"}:void 0,...r,className:x("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:no-underline polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:focus-visible:bg-theme-bg-hover",t),children:o})}function yd({children:e}){return b("output",{className:"polli:flex polli:items-center polli:gap-2 polli:font-body polli:text-sm polli:text-theme-text-muted",children:[s("span",{"aria-hidden":"true",className:"polli:h-4 polli:w-4 polli:shrink-0 polli:animate-spin polli:motion-reduce:animate-none polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent"}),e]})}var us=e=>{if(typeof e=="number")return e;if(typeof e!="string"||e.trim()==="")return;let t=Number(e);return Number.isFinite(t)?t:void 0},Cd=e=>Math.min(100,Math.max(0,e)),W2=({progress:e,value:t,defaultValue:o,min:r,max:n})=>{if(typeof e=="number"&&Number.isFinite(e))return Cd(e);let i=us(t??o);if(i===void 0)return;let l=us(r)??0,a=us(n)??100;return a<=l?100:Cd((i-l)/(a-l)*100)},wd=P(({className:e,defaultValue:t,max:o,min:r,progress:n,style:i,value:l,...a},c)=>{let p=W2({progress:n,value:l,defaultValue:t,min:r,max:o}),u={...i,...p===void 0?null:{"--polli-slider-progress":`${p}%`}};return s("input",{ref:c,type:"range",min:r,max:o,value:l,defaultValue:t,style:u,className:x("polli-slider",e),...a})});var Pd={left:"polli:text-left",center:"polli:text-center",right:"polli:text-right"},z2={default:"",warning:"polli:bg-intent-warning-bg-light/65",danger:"polli:bg-intent-danger-bg-light/65"},Ed=({className:e,...t})=>s("table",{...t,className:x("polli:w-full polli:border-collapse polli:text-sm",e)}),Id=({className:e,...t})=>s("thead",{...t,className:x("polli:bg-transparent polli:text-micro polli:text-theme-text-muted",e)}),Td=({className:e,divider:t="themed",...o})=>s("tbody",{...o,className:x("polli:divide-y",t==="neutral"?"polli:divide-divider":"polli:divide-theme-border/65",e)}),Nd=({intent:e="default",className:t,...o})=>s("tr",{...o,className:x("polli:transition-colors polli:hover:bg-theme-bg-subtle",z2[e],t)}),kd=({align:e="left",active:t=!1,sortDirection:o,onSort:r,className:n,children:i,...l})=>{let a=b(Z,{children:[s("span",{children:i}),r&&s("span",{"aria-hidden":"true",className:"polli:inline-flex polli:w-3 polli:justify-center",children:t&&o?o==="asc"?"\u2191":"\u2193":""})]}),c=x("polli:px-3 polli:py-2 polli:font-bold polli:normal-case polli:tracking-wide",Pd[e],t&&"polli:text-theme-text-strong",r&&"polli:cursor-pointer polli:select-none polli:hover:text-theme-text-strong",n);return r?s("th",{...l,"aria-sort":t&&o?o==="asc"?"ascending":"descending":"none",className:c,children:s("button",{type:"button",onClick:r,className:x("polli-control polli:inline-flex polli:w-full polli:items-center polli:gap-1 polli:bg-transparent polli:p-0 polli:font-bold polli:text-inherit",e==="right"&&"polli:justify-end",e==="center"&&"polli:justify-center"),children:a})}):s("th",{...l,className:c,children:a})},Rd=({align:e="left",numeric:t=!1,muted:o=!1,className:r,...n})=>s("td",{...n,className:x("polli:px-3 polli:py-2 polli:align-middle",Pd[e],t&&"polli:tabular-nums",o&&"polli:text-theme-text-muted",r)});var Sd=({children:e,disabled:t=!1,expanded:o,onClick:r,className:n})=>b("button",{type:"button","aria-expanded":o,disabled:t,onClick:r,className:x("polli-control polli:inline-flex polli:items-center polli:gap-1.5 polli:rounded-sm polli:text-left polli:text-theme-text-strong polli:transition-colors",t?"polli:cursor-default polli:opacity-60":"polli:cursor-pointer polli:hover:text-theme-text-soft",n),children:[s(de,{expanded:o,className:"polli:text-theme-text-soft"}),e]});return Fd(U2);})();
|
|
1
|
+
"use strict";var PollinationsUI=(()=>{var Fn=Object.defineProperty;var Od=Object.getOwnPropertyDescriptor;var Ad=Object.getOwnPropertyNames;var Md=Object.prototype.hasOwnProperty;var Dd=(e,t)=>{for(var o in t)Fn(e,o,{get:t[o],enumerable:!0})},Ld=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ad(t))!Md.call(e,n)&&n!==o&&Fn(e,n,{get:()=>t[n],enumerable:!(r=Od(t,n))||r.enumerable});return e};var Fd=e=>Ld(Fn({},"__esModule",{value:!0}),e);var U2={};Dd(U2,{AccountIcon:()=>X1,AccountIdentity:()=>vp,AccountIdentityLink:()=>yp,AccountMenu:()=>Yi,Alert:()=>Cp,AppBrand:()=>nn,AppHeader:()=>Tp,AppIcon:()=>Y1,ArrowLeftIcon:()=>eg,ArrowRightIcon:()=>Vi,AudioIcon:()=>x0,BeakerIcon:()=>Z1,BookIcon:()=>Q1,BotIcon:()=>J1,BrandMark:()=>vo,BugIcon:()=>e0,Button:()=>Ze,ButtonGroup:()=>md,Callout:()=>Np,CardIcon:()=>Y0,ChatConversation:()=>Zi,ChatConversationContent:()=>kp,ChatIcon:()=>M0,ChatMessage:()=>Rp,ChatMessageActions:()=>Ap,ChatMessageContent:()=>Op,ChatMessageHeader:()=>Sp,ChatPromptInput:()=>Mp,ChatPromptInputFooter:()=>Dp,ChatPromptTextarea:()=>Ji,CheckIcon:()=>Re,ChevronIcon:()=>de,Chip:()=>tr,ClipboardIcon:()=>Kt,ClockIcon:()=>Hi,CloudUploadIcon:()=>c0,CodeBlock:()=>Fp,CodeIcon:()=>K0,Collapsible:()=>Bp,ColorModeToggle:()=>xd,ConfirmationDialog:()=>Yp,ContentHeader:()=>Xp,CopyButton:()=>Ct,CopyField:()=>Zp,CubeIcon:()=>h0,DatabaseIcon:()=>q0,Dialog:()=>gn,DialogBody:()=>hn,DialogDescription:()=>fl,DialogFooter:()=>gl,DialogHeader:()=>qo,DialogTitle:()=>ml,DiscordIcon:()=>t0,DownloadIcon:()=>i0,Drawer:()=>bd,Dropdown:()=>vt,DropdownItem:()=>vd,EarningsIcon:()=>S0,EditableCombobox:()=>Tu,EditableComboboxToken:()=>Iu,ExpandIcon:()=>l0,ExternalLinkButton:()=>Nu,ExternalLinkIcon:()=>rt,EyeIcon:()=>D0,EyeOffIcon:()=>L0,Eyebrow:()=>xn,Field:()=>it,FieldStack:()=>Mu,FileUpload:()=>Vu,GenApiIcon:()=>p0,GitBranchIcon:()=>u0,GitHubIcon:()=>g0,GitPullRequestIcon:()=>d0,GlobeIcon:()=>Q0,GraduationCapIcon:()=>m0,Heading:()=>bo,IconButton:()=>er,ImageIcon:()=>rn,InfoTip:()=>Hu,InlineLink:()=>On,Input:()=>Rn,InstagramIcon:()=>o0,KeyChip:()=>Wu,KeyIcon:()=>J0,LinkCard:()=>zu,LinkedInIcon:()=>n0,LoadingStatus:()=>yd,LockIcon:()=>b0,LogInIcon:()=>v0,LogOutIcon:()=>y0,MailIcon:()=>C0,McpIcon:()=>w0,MediaPlaceholder:()=>Uu,MegaphoneIcon:()=>H0,MenuIcon:()=>P0,MicIcon:()=>B0,MoonIcon:()=>Ui,MultiSelect:()=>Ku,NavItem:()=>qu,NewspaperIcon:()=>E0,PauseIcon:()=>a0,PencilIcon:()=>Z0,PeriodPicker:()=>ld,PlayIcon:()=>s0,PlusIcon:()=>_i,PowerIcon:()=>G0,ReasoningIcon:()=>_0,ReceiptIcon:()=>A0,RefreshIcon:()=>tg,RobotIcon:()=>ji,RocketIcon:()=>W0,ScrollArea:()=>Ue,SearchIcon:()=>z0,Section:()=>sd,SignOutIcon:()=>U0,Slider:()=>wd,SparkleIcon:()=>$0,SparklesIcon:()=>f0,SpeakerIcon:()=>V0,SproutIcon:()=>X0,StarIcon:()=>j0,StatCard:()=>ad,SunIcon:()=>Gi,Surface:()=>yt,Switch:()=>An,TabButton:()=>Sn,Table:()=>Ed,TableBody:()=>Td,TableCell:()=>Rd,TableDisclosureButton:()=>Sd,TableHead:()=>Id,TableHeaderCell:()=>kd,TableRow:()=>Nd,TargetIcon:()=>T0,TerminalIcon:()=>I0,Text:()=>ce,Textarea:()=>jo,TokensIcon:()=>N0,ToolCallDetails:()=>pd,ToolIcon:()=>Wi,Tooltip:()=>Je,TrashIcon:()=>$i,TrendUpIcon:()=>R0,UsageIcon:()=>k0,VideoIcon:()=>F0,WalletIcon:()=>O0,WarningIcon:()=>zi,XIcon:()=>qt,XSocialIcon:()=>r0,cn:()=>ud,currentPeriod:()=>Xu,getPeriodBucketKeys:()=>Zu,isPeriodSelectable:()=>or,periodBucketKeyToDate:()=>Ju,periodFromDate:()=>st,periodToWindow:()=>Tt,setColorMode:()=>cs,useColorMode:()=>ps,useScrollLock:()=>dd});function Bd(){let e=globalThis.React;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.React. Load React before @pollinations/ui.");return e}var Vd=Bd();var{Children:cr,Component:$2,Fragment:Y,Profiler:j2,PureComponent:K2,StrictMode:q2,Suspense:Y2,cache:X2,cloneElement:gs,createContext:hs,createElement:pr,createRef:Z2,forwardRef:P,isValidElement:xs,lazy:J2,memo:bs,startTransition:Q2,use:eh,useActionState:th,useCallback:ur,useContext:vs,useDebugValue:oh,useDeferredValue:rh,useEffect:X,useEffectEvent:nh,useId:ue,useImperativeHandle:ih,useInsertionEffect:lh,useLayoutEffect:dr,useMemo:se,useOptimistic:sh,useReducer:ah,useRef:$,useState:ee,useSyncExternalStore:mr,useTransition:ch,version:ph}=Vd;function ys(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=ys(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function fr(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=ys(e))&&(r&&(r+=" "),r+=t);return r}var Hd=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},_d=(e,t)=>({classGroupId:e,validator:t}),Is=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var Cs=[],Wd="arbitrary..",zd=e=>{let t=Gd(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ud(l);let a=l.split("-"),c=a[0]===""&&a.length>1?1:0;return Ts(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){let c=r[l],p=o[l];return c?p?Hd(p,c):c:p||Cs}return o[l]||Cs}}},Ts=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],i=o.nextPart.get(n);if(i){let p=Ts(e,t+1,i);if(p)return p}let l=o.validators;if(l===null)return;let a=t===0?e.join("-"):e.slice(t).join("-"),c=l.length;for(let p=0;p<c;p++){let u=l[p];if(u.validator(a))return u.classGroupId}},Ud=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Wd+r:void 0})(),Gd=e=>{let{theme:t,classGroups:o}=e;return $d(o,t)},$d=(e,t)=>{let o=Is();for(let r in e){let n=e[r];Wn(n,o,r,t)}return o},Wn=(e,t,o,r)=>{let n=e.length;for(let i=0;i<n;i++){let l=e[i];jd(l,t,o,r)}},jd=(e,t,o,r)=>{if(typeof e=="string"){Kd(e,t,o);return}if(typeof e=="function"){qd(e,t,o,r);return}Yd(e,t,o,r)},Kd=(e,t,o)=>{let r=e===""?t:Ns(t,e);r.classGroupId=o},qd=(e,t,o,r)=>{if(Xd(e)){Wn(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_d(o,e))},Yd=(e,t,o,r)=>{let n=Object.entries(e),i=n.length;for(let l=0;l<i;l++){let[a,c]=n[l];Wn(c,Ns(t,a),o,r)}},Ns=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let i=0;i<n;i++){let l=r[i],a=o.nextPart.get(l);a||(a=Is(),o.nextPart.set(l,a)),o=a}return o},Xd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(i,l)=>{o[i]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let l=o[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return n(i,l),l},set(i,l){i in o?o[i]=l:n(i,l)}}};var Jd=[],ws=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),Qd=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let i=[],l=0,a=0,c=0,p,u=n.length;for(let v=0;v<u;v++){let h=n[v];if(l===0&&a===0){if(h===":"){i.push(n.slice(c,v)),c=v+1;continue}if(h==="/"){p=v;continue}}h==="["?l++:h==="]"?l--:h==="("?a++:h===")"&&a--}let d=i.length===0?n:n.slice(c),g=d,f=!1;d.endsWith("!")?(g=d.slice(0,-1),f=!0):d.startsWith("!")&&(g=d.slice(1),f=!0);let m=p&&p>c?p-c:void 0;return ws(i,f,g,m)};if(t){let n=t+":",i=r;r=l=>l.startsWith(n)?i(l.slice(n.length)):ws(Jd,!1,l,void 0,!0)}if(o){let n=r;r=i=>o({className:i,parseClassName:n})}return r},em=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let i=0;i<o.length;i++){let l=o[i],a=l[0]==="[",c=t.has(l);a||c?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(l)):n.push(l)}return n.length>0&&(n.sort(),r.push(...n)),r}},tm=e=>({cache:Zd(e.cacheSize),parseClassName:Qd(e),sortModifiers:em(e),...zd(e)}),om=/\s+/,rm=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i}=t,l=[],a=e.trim().split(om),c="";for(let p=a.length-1;p>=0;p-=1){let u=a[p],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:v}=o(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!v,C=r(h?m.substring(0,v):m);if(!C){if(!h){c=u+(c.length>0?" "+c:c);continue}if(C=r(m),!C){c=u+(c.length>0?" "+c:c);continue}h=!1}let I=g.length===0?"":g.length===1?g[0]:i(g).join(":"),E=f?I+"!":I,w=E+C;if(l.indexOf(w)>-1)continue;l.push(w);let M=n(C,h);for(let N=0;N<M.length;++N){let _=M[N];l.push(E+_)}c=u+(c.length>0?" "+c:c)}return c},nm=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=ks(o))&&(n&&(n+=" "),n+=r);return n},ks=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ks(e[r]))&&(o&&(o+=" "),o+=t);return o},Hn=(e,...t)=>{let o,r,n,i,l=c=>{let p=t.reduce((u,d)=>d(u),e());return o=tm(p),r=o.cache.get,n=o.cache.set,i=a,a(c)},a=c=>{let p=r(c);if(p)return p;let u=rm(c,o);return n(c,u),u};return i=l,(...c)=>i(nm(...c))},im=[],ae=e=>{let t=o=>o[e]||im;return t.isThemeGetter=!0,t},Rs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ss=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lm=/^\d+\/\d+$/,sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,am=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,um=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>lm.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Bn=e=>e.endsWith("%")&&j(e.slice(0,-1)),Qe=e=>sm.test(e),dm=()=>!0,mm=e=>am.test(e)&&!cm.test(e),Os=()=>!1,fm=e=>pm.test(e),gm=e=>um.test(e),hm=e=>!V(e)&&!H(e),xm=e=>Qt(e,Ds,Os),V=e=>Rs.test(e),Nt=e=>Qt(e,Ls,mm),Vn=e=>Qt(e,wm,j),Ps=e=>Qt(e,As,Os),bm=e=>Qt(e,Ms,gm),gr=e=>Qt(e,Fs,fm),H=e=>Ss.test(e),To=e=>eo(e,Ls),vm=e=>eo(e,Pm),Es=e=>eo(e,As),ym=e=>eo(e,Ds),Cm=e=>eo(e,Ms),hr=e=>eo(e,Fs,!0),Qt=(e,t,o)=>{let r=Rs.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},eo=(e,t,o=!1)=>{let r=Ss.exec(e);return r?r[1]?t(r[1]):o:!1},As=e=>e==="position"||e==="percentage",Ms=e=>e==="image"||e==="url",Ds=e=>e==="length"||e==="size"||e==="bg-size",Ls=e=>e==="length",wm=e=>e==="number",Pm=e=>e==="family-name",Fs=e=>e==="shadow";var _n=()=>{let e=ae("color"),t=ae("font"),o=ae("text"),r=ae("font-weight"),n=ae("tracking"),i=ae("leading"),l=ae("breakpoint"),a=ae("container"),c=ae("spacing"),p=ae("radius"),u=ae("shadow"),d=ae("inset-shadow"),g=ae("text-shadow"),f=ae("drop-shadow"),m=ae("blur"),v=ae("perspective"),h=ae("aspect"),C=ae("ease"),I=ae("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...w(),H,V],N=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],y=()=>[H,V,c],O=()=>[Jt,"full","auto",...y()],L=()=>[at,"none","subgrid",H,V],k=()=>["auto",{span:["full",at,H,V]},at,H,V],A=()=>[at,"auto",H,V],S=()=>["auto","min","max","fr",H,V],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...y()],q=()=>[Jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],B=()=>[e,H,V],be=()=>[...w(),Es,Ps,{position:[H,V]}],nr=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ds=()=>["auto","cover","contain",ym,xm,{size:[H,V]}],Dn=()=>[Bn,To,Nt],ve=()=>["","none","full",p,H,V],Ne=()=>["",j,To,Nt],ir=()=>["solid","dashed","dotted","double"],ms=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[j,Bn,Es,Ps],fs=()=>["","none",m,H,V],lr=()=>["none",j,H,V],sr=()=>["none",j,H,V],Ln=()=>[j,H,V],ar=()=>[Jt,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[dm],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[hm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",j],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jt,V,H,h]}],container:["container"],columns:[{columns:[j,V,H,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",H,V]}],basis:[{basis:[Jt,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Jt,"auto","initial","none",V]}],grow:[{grow:["",j,H,V]}],shrink:[{shrink:["",j,H,V]}],order:[{order:[at,"first","last","none",H,V]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,To,Nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,H,Vn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bn,V]}],"font-family":[{font:[vm,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,H,V]}],"line-clamp":[{"line-clamp":[j,"none",H,Vn]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",H,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ir(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",H,Nt]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[j,"auto",H,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:nr()}],"bg-size":[{bg:ds()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,H,V],radial:["",H,V],conic:[at,H,V]},Cm,bm]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Dn()}],"gradient-via-pos":[{via:Dn()}],"gradient-to-pos":[{to:Dn()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:Ne()}],"border-w-x":[{"border-x":Ne()}],"border-w-y":[{"border-y":Ne()}],"border-w-s":[{"border-s":Ne()}],"border-w-e":[{"border-e":Ne()}],"border-w-t":[{"border-t":Ne()}],"border-w-r":[{"border-r":Ne()}],"border-w-b":[{"border-b":Ne()}],"border-w-l":[{"border-l":Ne()}],"divide-x":[{"divide-x":Ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ir(),"hidden","none"]}],"divide-style":[{divide:[...ir(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ir(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,H,V]}],"outline-w":[{outline:["",j,To,Nt]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",u,hr,gr]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",d,hr,gr]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[j,Nt]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":Ne()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",g,hr,gr]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[j,H,V]}],"mix-blend":[{"mix-blend":[...ms(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ms()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[H,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:nr()}],"mask-size":[{mask:ds()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,V]}],filter:[{filter:["","none",H,V]}],blur:[{blur:fs()}],brightness:[{brightness:[j,H,V]}],contrast:[{contrast:[j,H,V]}],"drop-shadow":[{"drop-shadow":["","none",f,hr,gr]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",j,H,V]}],"hue-rotate":[{"hue-rotate":[j,H,V]}],invert:[{invert:["",j,H,V]}],saturate:[{saturate:[j,H,V]}],sepia:[{sepia:["",j,H,V]}],"backdrop-filter":[{"backdrop-filter":["","none",H,V]}],"backdrop-blur":[{"backdrop-blur":fs()}],"backdrop-brightness":[{"backdrop-brightness":[j,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[j,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,H,V]}],"backdrop-invert":[{"backdrop-invert":["",j,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[j,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[j,H,V]}],"backdrop-sepia":[{"backdrop-sepia":["",j,H,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",H,V]}],ease:[{ease:["linear","initial",C,H,V]}],delay:[{delay:[j,H,V]}],animate:[{animate:["none",I,H,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,H,V]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:lr()}],"rotate-x":[{"rotate-x":lr()}],"rotate-y":[{"rotate-y":lr()}],"rotate-z":[{"rotate-z":lr()}],scale:[{scale:sr()}],"scale-x":[{"scale-x":sr()}],"scale-y":[{"scale-y":sr()}],"scale-z":[{"scale-z":sr()}],"scale-3d":["scale-3d"],skew:[{skew:Ln()}],"skew-x":[{"skew-x":Ln()}],"skew-y":[{"skew-y":Ln()}],transform:[{transform:[H,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ar()}],"translate-x":[{"translate-x":ar()}],"translate-y":[{"translate-y":ar()}],"translate-z":[{"translate-z":ar()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H,V]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[j,To,Nt,Vn]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Em=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:i={}})=>(No(e,"cacheSize",t),No(e,"prefix",o),No(e,"experimentalParseClassName",r),xr(e.theme,i.theme),xr(e.classGroups,i.classGroups),xr(e.conflictingClassGroups,i.conflictingClassGroups),xr(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),No(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),br(e.theme,n.theme),br(e.classGroups,n.classGroups),br(e.conflictingClassGroups,n.conflictingClassGroups),br(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Bs(e,n,"orderSensitiveModifiers"),e),No=(e,t,o)=>{o!==void 0&&(e[t]=o)},xr=(e,t)=>{if(t)for(let o in t)No(e,o,t[o])},br=(e,t)=>{if(t)for(let o in t)Bs(e,t,o)},Bs=(e,t,o)=>{let r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},Vs=(e,...t)=>typeof e=="function"?Hn(_n,e,...t):Hn(()=>Em(_n(),e),...t),Hs=Hn(_n);var Im=Vs({prefix:"polli"});function b(...e){return Im(fr(...e))}var Tm=pr;function s(e,t,o){let r=o===void 0?t:{...t??{},key:String(o)};return Tm(e,r)}var x=s;var de=({expanded:e,className:t})=>s("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 12 12",className:b("polli:shrink-0 polli:transition-transform polli:duration-200 polli:ease-out",e&&"polli:rotate-180",t),children:s("path",{d:"M3 4.5 6 7.5l3-3",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})});var ke=(e,t=[])=>({parts:(...o)=>{if(Nm(t))return ke(e,o);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...o)=>ke(e,[...t,...o]),omit:(...o)=>ke(e,t.filter(r=>!o.includes(r))),rename:o=>ke(o,t),keys:()=>t,build:()=>[...new Set(t)].reduce((o,r)=>Object.assign(o,{[r]:{selector:[`&[data-scope="${to(e)}"][data-part="${to(r)}"]`,`& [data-scope="${to(e)}"][data-part="${to(r)}"]`].join(", "),attrs:{"data-scope":to(e),"data-part":to(r)}}}),{})}),to=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Nm=e=>e.length===0;var km=ke("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Ve=km.build();var Rm=Object.defineProperty,Sm=(e,t,o)=>t in e?Rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,vr=(e,t,o)=>Sm(e,typeof t!="symbol"?t+"":t,o);function yr(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}var ko=()=>{},Ro=e=>typeof e=="object"&&e!==null;var G=e=>e?"":void 0,et=e=>e?"true":void 0;var Om=1,Am=9,Mm=11;var J=e=>Ro(e)&&e.nodeType===Om&&typeof e.nodeName=="string",So=e=>Ro(e)&&e.nodeType===Am,Dm=e=>Ro(e)&&e===e.window;var _s=e=>J(e)?e.localName||"":"#document";function Ws(e){return["html","body","#document"].includes(_s(e))}var zs=e=>Ro(e)&&e.nodeType!==void 0,tt=e=>zs(e)&&e.nodeType===Mm&&"host"in e,zn=e=>J(e)&&e.localName==="input",Us=e=>!!e?.matches("a[href]"),Gs=e=>J(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function kt(e){if(!e)return!1;let t=e.getRootNode();return He(t)===e}var Lm=/(textarea|select)/;function $s(e){if(e==null||!J(e))return!1;try{return zn(e)&&e.selectionStart!=null||Lm.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Rt(e,t){if(!e||!t||!J(e)||!zs(t))return!1;if(J(t)&&e===t||e.contains(t))return!0;let o=t.getRootNode?.();if(o&&tt(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Q(e){return So(e)?e:Dm(e)?e.document:e?.ownerDocument??document}function Fm(e){return Q(e).documentElement}function te(e){return tt(e)?te(e.host):So(e)?e.defaultView??window:J(e)?e.ownerDocument?.defaultView??window:window}function He(e){let t=e.activeElement;for(;t?.shadowRoot;){let o=t.shadowRoot.activeElement;if(!o||o===t)break;t=o}return t}function js(e){if(_s(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tt(e)&&e.host||Fm(e);return tt(t)?t.host:t}function Cr(e){let t;try{if(t=e.getRootNode({composed:!0}),So(t)||tt(t))return t}catch{}return e.ownerDocument??document}var Un=new WeakMap;function Ge(e){return Un.has(e)||Un.set(e,te(e).getComputedStyle(e)),Un.get(e)}var Gn=new Set(["menu","listbox","dialog","grid","tree","region","application"]),Bm=e=>Gn.has(e),Ks=e=>e.getAttribute("aria-controls")?.split(" ")||[];function wr(e,t){let o=new Set,r=Cr(e),n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=Ks(a);for(let p of c){if(!p||o.has(p))continue;o.add(p);let u=r.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";if(d&&Bm(d)&&!g&&(u===t||u.contains(t)||n(u)))return!0}}}return!1};return n(e)}function $n(e,t){let o=Cr(e),r=new Set,n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=Ks(a);for(let p of c){if(!p||r.has(p))continue;r.add(p);let u=o.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";d&&Gn.has(d)&&!g&&(t(u),n(u))}}}};n(e)}function qs(e){let t=new Set;return $n(e,o=>{e.contains(o)||t.add(o)}),Array.from(t)}function Vm(e){let t=e.getAttribute("role");return!!(t&&Gn.has(t))}function Hm(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function Ys(e){return Hm(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function Xs(e){if(!e.id)return!1;let t=Cr(e),o=CSS.escape(e.id),r=`[aria-controls~="${o}"][aria-expanded="true"], [aria-controls="${o}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&Vm(e))}var Pr=()=>typeof document<"u";function _m(){return navigator.userAgentData?.platform??navigator.platform}function Wm(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:o})=>`${t}/${o}`).join(" "):navigator.userAgent}var jn=e=>Pr()&&e.test(_m()),Zs=e=>Pr()&&e.test(Wm()),zm=e=>Pr()&&e.test(navigator.vendor),Kn=()=>Pr()&&!!navigator.maxTouchPoints,Um=()=>jn(/^iPhone/i),Gm=()=>jn(/^iPad/i)||St()&&navigator.maxTouchPoints>1,qn=()=>Um()||Gm(),Yn=()=>St()||qn(),St=()=>jn(/^Mac/i),Js=()=>Yn()&&zm(/apple/i),Qs=()=>Zs(/Firefox/i);var ea=()=>Zs(/Android/i);function $m(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function me(e){return $m(e)?.[0]??e.target}function oa(e){let t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let r=e.button===1,n=jm(e);return r||n}function ra(e){let t=e.currentTarget;if(!t)return!1;let o=t.localName;return e.altKey?o==="a"||o==="button"&&t.type==="submit"||o==="input"&&t.type==="submit":!1}function na(e){return qm(e).isComposing||e.keyCode===229}function jm(e){return St()?e.metaKey:e.ctrlKey}function ia(e){return e.pointerType===""&&e.isTrusted?!0:ea()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ot=e=>e.button===0,Er=e=>e.button===2||St()&&e.ctrlKey&&e.button===0;var Km={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},ta={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Xn(e,t={}){let{dir:o="ltr",orientation:r="horizontal"}=t,n=e.key;return n=Km[n]??n,o==="rtl"&&r==="horizontal"&&n in ta&&(n=ta[n]),n}function qm(e){return e.nativeEvent??e}var ye=(e,t,o,r)=>{let n=typeof e=="function"?e():e;return n?.addEventListener(t,o,r),()=>{n?.removeEventListener(t,o,r)}};var la=e=>J(e)&&e.tagName==="IFRAME",Ym=/^(audio|video|details)$/;function sa(e){let t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var Xm=e=>!Number.isNaN(sa(e)),Zm=e=>sa(e)<0;function Jm(e){return zn(e)&&e.type==="radio"}function Qm(e){if(!Jm(e)||!e.name||e.checked)return!0;let t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,o=e.form??e.ownerDocument,r=Array.from(o.querySelectorAll(t)).filter(i=>i.form===e.form&&Ae(i)),n=r.find(i=>i.checked);return n?n===e:r[0]===e}function ef(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;let o=t(e);return(o===!0?e.shadowRoot:o)||null}function aa(e,t,o){let r=[...e],n=[...e],i=new Set,l=new Map;e.forEach((c,p)=>l.set(c,p));let a=0;for(;a<n.length;){let c=n[a++];if(!c||i.has(c))continue;i.add(c);let p=ef(c,t);if(p){let u=Array.from(p.querySelectorAll(Ir)).filter(o),d=l.get(c);if(d!==void 0){let g=d+1;r.splice(g,0,...u),u.forEach((f,m)=>{l.set(f,g+m)});for(let f=g+u.length;f<r.length;f++)l.set(r[f],f)}else{let g=r.length;r.push(...u),u.forEach((f,m)=>{l.set(f,g+m)})}n.push(...u)}}return r}var Ir="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Tr=(e,t={})=>{if(!e)return[];let{includeContainer:o=!1,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Ir));(o==!0||o=="if-empty"&&n.length===0)&&J(e)&&Ae(e)&&n.unshift(e);let l=[];for(let a of n)if(Ae(a)){if(la(a)&&a.contentDocument){let c=a.contentDocument.body;l.push(...Tr(c,{getShadowRoot:r}));continue}l.push(a)}return r?aa(l,r,Ae):l};function Ae(e){return!J(e)||e.closest("[inert]")?!1:e.matches(Ir)&&Gs(e)}function At(e,t={}){if(!e)return[];let{includeContainer:o,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Ir));o&&ct(e)&&n.unshift(e);let i=[];for(let l of n)if(ct(l)){if(la(l)&&l.contentDocument){let a=l.contentDocument.body;i.push(...At(a,{getShadowRoot:r}));continue}i.push(l)}if(r){let l=aa(i,r,ct);return!l.length&&o?n:l}return!i.length&&o?n:i}function ct(e){return J(e)&&e.tabIndex>0?!0:!Ae(e)||Zm(e)?!1:Qm(e)}function Zn(e,t={}){let o=At(e,t),r=o[0]||null,n=o[o.length-1]||null;return[r,n]}function ca(e,t={}){let{current:o,getShadowRoot:r}=t,n=At(e,{getShadowRoot:r}),i=e?.ownerDocument||document,l=o??He(i);if(!l)return null;let a=n.indexOf(l);return n[a+1]||null}function oo(e){return e.tabIndex<0&&(Ym.test(e.localName)||$s(e))&&!Xm(e)?0:e.tabIndex}function Oo(e){let{root:t,getInitialEl:o,filter:r,enabled:n=!0}=e;if(!n)return;let i=null;if(i||(i=typeof o=="function"?o():o),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){let l=At(t);i=r?l.filter(r)[0]:l[0]}return i||t||void 0}var tf=class pa{constructor(){vr(this,"id",null),vr(this,"fn_cleanup"),vr(this,"cleanup",()=>{this.cancel()})}static create(){return new pa}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function K(e){let t=tf.create();return t.request(e),t.cleanup}function ro(e){let t=new Set;function o(r){let n=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(n))}return o(()=>o(e)),function(){t.forEach(n=>n())}}function ua(e,t,o){let r=K(()=>{e.removeEventListener(t,n,!0),o()}),n=()=>{r(),o()};return e.addEventListener(t,n,{once:!0,capture:!0}),r}function of(e,t){if(!e)return;let{attributes:o,callback:r}=t,n=e.ownerDocument.defaultView||window,i=new n.MutationObserver(l=>{for(let a of l)a.type==="attributes"&&a.attributeName&&o.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:o}),()=>i.disconnect()}function da(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(of(i,t))})),()=>{n.forEach(i=>i?.())}}function ma(e){let t=()=>{let o=te(e);e.dispatchEvent(new o.MouseEvent("click"))};Qs()?ua(e,"keyup",t):queueMicrotask(t)}function Nr(e){let t=js(e);return Ws(t)?Q(t).body:J(t)&&Jn(t)?t:Nr(t)}var rf=/auto|scroll|overlay|hidden|clip/,nf=new Set(["inline","contents"]);function Jn(e){let t=te(e),{overflow:o,overflowX:r,overflowY:n,display:i}=t.getComputedStyle(e);return rf.test(o+n+r)&&!nf.has(i)}function lf(e,t={}){let{triggerElement:o,onFocus:r,onFocusEnter:n,getShadowRoot:i}=t,l=e?.ownerDocument||document,a=l.body;function c(p){if(p.key!=="Tab")return;let u=null,[d,g]=Zn(e,{includeContainer:!0,getShadowRoot:i}),f=ca(a,{current:o,getShadowRoot:i}),m=!d&&!g;p.shiftKey&&kt(f)?(n?.(),u=g):p.shiftKey&&(kt(d)||m)?u=o:!p.shiftKey&&kt(o)?(n?.(),u=d):!p.shiftKey&&(kt(g)||m)&&(u=f),u&&(p.preventDefault(),typeof r=="function"?r(u):u.focus())}return ye(l,"keydown",c,!0)}function fa(e,t){let{defer:o,triggerElement:r,...n}=t,i=o?K:a=>a(),l=[];return l.push(i(()=>{let a=typeof e=="function"?e():e,c=typeof r=="function"?r():r;l.push(lf(a,{triggerElement:c,...n}))})),()=>{l.forEach(a=>a?.())}}function kr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function ga(e,t){return e?.querySelector(t)??null}function sf(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Qn(e,t){let{rootEl:o,...r}=t||{};!e||!o||!Jn(o)||!sf(o)||e.scrollIntoView(r)}function Mt(e,t){if(!e)return ko;let o=Object.keys(t).reduce((r,n)=>(r[n]=e.style.getPropertyValue(n),r),{});return af(o,t)?ko:(Object.assign(e.style,t),()=>{Object.assign(e.style,o),e.style.length===0&&e.removeAttribute("style")})}function ha(e,t,o){if(!e)return ko;let r=e.style.getPropertyValue(t);return r===o?ko:(e.style.setProperty(t,o),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")})}function af(e,t){return Object.keys(e).every(o=>e[o]===t[o])}function cf(e,t,o){let{signal:r}=t;return[new Promise((l,a)=>{let c=setTimeout(()=>{a(new Error(`Timeout of ${o}ms exceeded`))},o);r.addEventListener("abort",()=>{clearTimeout(c),a(new DOMException("Promise aborted","AbortError"))}),e.then(p=>{r.aborted||(clearTimeout(c),l(p))}).catch(p=>{r.aborted||(clearTimeout(c),a(p))})}),()=>t.abort()]}function xa(e,t){let{timeout:o,rootNode:r}=t,n=te(r),i=Q(r),l=new n.AbortController;return cf(new Promise(a=>{let c=e();if(c){a(c);return}let p=new n.MutationObserver(()=>{let u=e();u&&u.isConnected&&(p.disconnect(),a(u))});p.observe(i.body,{childList:!0,subtree:!0})}),l,o)}var ya=["top","right","bottom","left"];var no=Math.min,pt=Math.max;var pf={left:"right",right:"left",bottom:"top",top:"bottom"};function Sr(e,t,o){return pt(e,no(t,o))}function $e(e,t){return typeof e=="function"?e(t):e}function je(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function Or(e){return e==="x"?"y":"x"}function Ar(e){return e==="y"?"height":"width"}function _e(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Mr(e){return Or(_e(e))}function Ca(e,t,o){o===void 0&&(o=!1);let r=Dt(e),n=Mr(e),i=Ar(n),l=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ao(l)),[l,Ao(l)]}function wa(e){let t=Ao(e);return[Rr(e),t,Rr(t)]}function Rr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var ba=["left","right"],va=["right","left"],uf=["top","bottom"],df=["bottom","top"];function mf(e,t,o){switch(e){case"top":case"bottom":return o?t?va:ba:t?ba:va;case"left":case"right":return t?uf:df;default:return[]}}function Pa(e,t,o,r){let n=Dt(e),i=mf(je(e),o==="start",r);return n&&(i=i.map(l=>l+"-"+n),t&&(i=i.concat(i.map(Rr)))),i}function Ao(e){let t=je(e);return pf[t]+e.slice(t.length)}function ff(e){return{top:0,right:0,bottom:0,left:0,...e}}function ei(e){return typeof e!="number"?ff(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Ea(e,t,o){let{reference:r,floating:n}=e,i=_e(t),l=Mr(t),a=Ar(l),c=je(t),p=i==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2,f;switch(c){case"top":f={x:u,y:r.y-n.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-n.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Dt(t)){case"start":f[l]-=g*(o&&p?-1:1);break;case"end":f[l]+=g*(o&&p?-1:1);break}return f}async function Na(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=$e(t,e),m=ei(f),h=a[g?d==="floating"?"reference":"floating":d],C=Lt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(h)))==null||o?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:u,strategy:c})),I=d==="floating"?{x:r,y:n,width:l.floating.width,height:l.floating.height}:l.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},M=Lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:E,strategy:c}):I);return{top:(C.top-M.top+m.top)/w.y,bottom:(M.bottom-C.bottom+m.bottom)/w.y,left:(C.left-M.left+m.left)/w.x,right:(M.right-C.right+m.right)/w.x}}var gf=50,ka=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:l}=o,a=l.detectOverflow?l:{...l,detectOverflow:Na},c=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=Ea(p,r,c),g=r,f=0,m={};for(let v=0;v<i.length;v++){let h=i[v];if(!h)continue;let{name:C,fn:I}=h,{x:E,y:w,data:M,reset:N}=await I({x:u,y:d,initialPlacement:r,placement:g,strategy:n,middlewareData:m,rects:p,platform:a,elements:{reference:e,floating:t}});u=E??u,d=w??d,m[C]={...m[C],...M},N&&f<gf&&(f++,typeof N=="object"&&(N.placement&&(g=N.placement),N.rects&&(p=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:n}):N.rects),{x:u,y:d}=Ea(p,g,c)),v=-1)}return{x:u,y:d,placement:g,strategy:n,middlewareData:m}},Ra=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:l,elements:a,middlewareData:c}=t,{element:p,padding:u=0}=$e(e,t)||{};if(p==null)return{};let d=ei(u),g={x:o,y:r},f=Mr(n),m=Ar(f),v=await l.getDimensions(p),h=f==="y",C=h?"top":"left",I=h?"bottom":"right",E=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-g[f]-i.floating[m],M=g[f]-i.reference[f],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p)),_=N?N[E]:0;(!_||!await(l.isElement==null?void 0:l.isElement(N)))&&(_=a.floating[E]||i.floating[m]);let y=w/2-M/2,O=_/2-v[m]/2-1,L=no(d[C],O),k=no(d[I],O),A=L,S=_-v[m]-k,W=_/2-v[m]/2+y,R=Sr(A,W,S),z=!c.arrow&&Dt(n)!=null&&W!==R&&i.reference[m]/2-(W<A?L:k)-v[m]/2<0,q=z?W<A?W-A:W-S:0;return{[f]:g[f]+q,data:{[f]:R,centerOffset:W-R-q,...z&&{alignmentOffset:q}},reset:z}}});var Sa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:l,initialPlacement:a,platform:c,elements:p}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...h}=$e(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let C=je(n),I=_e(a),E=je(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(p.floating)),M=g||(E||!v?[Ao(a)]:wa(a)),N=m!=="none";!g&&N&&M.push(...Pa(a,v,m,w));let _=[a,...M],y=await c.detectOverflow(t,h),O=[],L=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&O.push(y[C]),d){let W=Ca(n,l,w);O.push(y[W[0]],y[W[1]])}if(L=[...L,{placement:n,overflows:O}],!O.every(W=>W<=0)){var k,A;let W=(((k=i.flip)==null?void 0:k.index)||0)+1,R=_[W];if(R&&(!(d==="alignment"?I!==_e(R):!1)||L.every(B=>_e(B.placement)===I?B.overflows[0]>0:!0)))return{data:{index:W,overflows:L},reset:{placement:R}};let z=(A=L.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:A.placement;if(!z)switch(f){case"bestFit":{var S;let q=(S=L.filter(B=>{if(N){let be=_e(B.placement);return be===I||be==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(be=>be>0).reduce((be,nr)=>be+nr,0)]).sort((B,be)=>B[1]-be[1])[0])==null?void 0:S[0];q&&(z=q);break}case"initialPlacement":z=a;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function Ia(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ta(e){return ya.some(t=>e[t]>=0)}var Oa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...i}=$e(e,t);switch(n){case"referenceHidden":{let l=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Ia(l,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ta(a)}}}case"escaped":{let l=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Ia(l,o.floating);return{data:{escapedOffsets:a,escaped:Ta(a)}}}default:return{}}}}};var Aa=new Set(["left","top"]);async function hf(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),l=je(o),a=Dt(o),c=_e(o)==="y",p=Aa.has(l)?-1:1,u=i&&c?-1:1,d=$e(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:g*p}:{x:g*p,y:f*u}}var Ma=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:l,middlewareData:a}=t,c=await hf(t,e);return l===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:l}}}}},Da=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:c={fn:C=>{let{x:I,y:E}=C;return{x:I,y:E}}},...p}=$e(e,t),u={x:o,y:r},d=await i.detectOverflow(t,p),g=_e(je(n)),f=Or(g),m=u[f],v=u[g];if(l){let C=f==="y"?"top":"left",I=f==="y"?"bottom":"right",E=m+d[C],w=m-d[I];m=Sr(E,m,w)}if(a){let C=g==="y"?"top":"left",I=g==="y"?"bottom":"right",E=v+d[C],w=v-d[I];v=Sr(E,v,w)}let h=c.fn({...t,[f]:m,[g]:v});return{...h,data:{x:h.x-o,y:h.y-r,enabled:{[f]:l,[g]:a}}}}}},La=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:c=!0,crossAxis:p=!0}=$e(e,t),u={x:o,y:r},d=_e(n),g=Or(d),f=u[g],m=u[d],v=$e(a,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let E=g==="y"?"height":"width",w=i.reference[g]-i.floating[E]+h.mainAxis,M=i.reference[g]+i.reference[E]-h.mainAxis;f<w?f=w:f>M&&(f=M)}if(p){var C,I;let E=g==="y"?"width":"height",w=Aa.has(je(n)),M=i.reference[d]-i.floating[E]+(w&&((C=l.offset)==null?void 0:C[d])||0)+(w?0:h.crossAxis),N=i.reference[d]+i.reference[E]+(w?0:((I=l.offset)==null?void 0:I[d])||0)-(w?h.crossAxis:0);m<M?m=M:m>N&&(m=N)}return{[g]:f,[d]:m}}}},Fa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:i,platform:l,elements:a}=t,{apply:c=()=>{},...p}=$e(e,t),u=await l.detectOverflow(t,p),d=je(n),g=Dt(n),f=_e(n)==="y",{width:m,height:v}=i.floating,h,C;d==="top"||d==="bottom"?(h=d,C=g===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(C=d,h=g==="end"?"top":"bottom");let I=v-u.top-u.bottom,E=m-u.left-u.right,w=no(v-u[h],I),M=no(m-u[C],E),N=!t.middlewareData.shift,_=w,y=M;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(y=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=I),N&&!g){let L=pt(u.left,0),k=pt(u.right,0),A=pt(u.top,0),S=pt(u.bottom,0);f?y=m-2*(L!==0||k!==0?L+k:pt(u.left,u.right)):_=v-2*(A!==0||S!==0?A+S:pt(u.top,u.bottom))}await c({...t,availableWidth:y,availableHeight:_});let O=await l.getDimensions(a.floating);return m!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};var Dr=Math.min,Ft=Math.max,Mo=Math.round,Do=Math.floor,We=e=>({x:e,y:e});function Lr(){return typeof window<"u"}function Vt(e){return Va(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Va(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Va(e){return Lr()?e instanceof Node||e instanceof we(e).Node:!1}function Me(e){return Lr()?e instanceof Element||e instanceof we(e).Element:!1}function Ke(e){return Lr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Ba(e){return!Lr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}function lo(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Ha(e){return/^(table|td|th)$/.test(Vt(e))}function Lo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var xf=/transform|translate|scale|rotate|perspective|filter/,bf=/paint|layout|strict|content/,Bt=e=>!!e&&e!=="none",ti;function Fr(e){let t=Me(e)?De(e):e;return Bt(t.transform)||Bt(t.translate)||Bt(t.scale)||Bt(t.rotate)||Bt(t.perspective)||!Br()&&(Bt(t.backdropFilter)||Bt(t.filter))||xf.test(t.willChange||"")||bf.test(t.contain||"")}function _a(e){let t=ot(e);for(;Ke(t)&&!Ht(t);){if(Fr(t))return t;if(Lo(t))return null;t=ot(t)}return null}function Br(){return ti==null&&(ti=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ti}function Ht(e){return/^(html|body|#document)$/.test(Vt(e))}function De(e){return we(e).getComputedStyle(e)}function Fo(e){return Me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ot(e){if(Vt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ba(e)&&e.host||ze(e);return Ba(t)?t.host:t}function Wa(e){let t=ot(e);return Ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&lo(t)?t:Wa(t)}function io(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Wa(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),l=we(n);if(i){let a=Vr(l);return t.concat(l,l.visualViewport||[],lo(n)?n:[],a&&o?io(a):[])}else return t.concat(n,io(n,[],o))}function Vr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $a(e){let t=De(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ke(e),i=n?e.offsetWidth:o,l=n?e.offsetHeight:r,a=Mo(o)!==i||Mo(r)!==l;return a&&(o=i,r=l),{width:o,height:r,$:a}}function ri(e){return Me(e)?e:e.contextElement}function so(e){let t=ri(e);if(!Ke(t))return We(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=$a(t),l=(i?Mo(o.width):o.width)/r,a=(i?Mo(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}var vf=We(0);function ja(e){let t=we(e);return!Br()||!t.visualViewport?vf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yf(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==we(e)?!1:t}function _t(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=ri(e),l=We(1);t&&(r?Me(r)&&(l=so(r)):l=so(e));let a=yf(i,o,r)?ja(i):We(0),c=(n.left+a.x)/l.x,p=(n.top+a.y)/l.y,u=n.width/l.x,d=n.height/l.y;if(i){let g=we(i),f=r&&Me(r)?we(r):r,m=g,v=Vr(m);for(;v&&r&&f!==m;){let h=so(v),C=v.getBoundingClientRect(),I=De(v),E=C.left+(v.clientLeft+parseFloat(I.paddingLeft))*h.x,w=C.top+(v.clientTop+parseFloat(I.paddingTop))*h.y;c*=h.x,p*=h.y,u*=h.x,d*=h.y,c+=E,p+=w,m=we(v),v=Vr(m)}}return Lt({width:u,height:d,x:c,y:p})}function Hr(e,t){let o=Fo(e).scrollLeft;return t?t.left+o:_t(ze(e)).left+o}function Ka(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Hr(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function Cf(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",l=ze(r),a=t?Lo(t.floating):!1;if(r===l||a&&i)return o;let c={scrollLeft:0,scrollTop:0},p=We(1),u=We(0),d=Ke(r);if((d||!d&&!i)&&((Vt(r)!=="body"||lo(l))&&(c=Fo(r)),d)){let f=_t(r);p=so(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}let g=l&&!d&&!i?Ka(l,c):We(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+u.x+g.x,y:o.y*p.y-c.scrollTop*p.y+u.y+g.y}}function wf(e){return Array.from(e.getClientRects())}function Pf(e){let t=ze(e),o=Fo(e),r=e.ownerDocument.body,n=Ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-o.scrollLeft+Hr(e),a=-o.scrollTop;return De(r).direction==="rtl"&&(l+=Ft(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:l,y:a}}var za=25;function Ef(e,t){let o=we(e),r=ze(e),n=o.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(n){i=n.width,l=n.height;let u=Br();(!u||u&&t==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}let p=Hr(r);if(p<=0){let u=r.ownerDocument,d=u.body,g=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-f);m<=za&&(i-=m)}else p<=za&&(i+=p);return{width:i,height:l,x:a,y:c}}function If(e,t){let o=_t(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=Ke(e)?so(e):We(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,c=n*i.x,p=r*i.y;return{width:l,height:a,x:c,y:p}}function Ua(e,t,o){let r;if(t==="viewport")r=Ef(e,o);else if(t==="document")r=Pf(ze(e));else if(Me(t))r=If(t,o);else{let n=ja(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lt(r)}function qa(e,t){let o=ot(e);return o===t||!Me(o)||Ht(o)?!1:De(o).position==="fixed"||qa(o,t)}function Tf(e,t){let o=t.get(e);if(o)return o;let r=io(e,[],!1).filter(a=>Me(a)&&Vt(a)!=="body"),n=null,i=De(e).position==="fixed",l=i?ot(e):e;for(;Me(l)&&!Ht(l);){let a=De(l),c=Fr(l);!c&&a.position==="fixed"&&(n=null),(i?!c&&!n:!c&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||lo(l)&&!c&&qa(e,l))?r=r.filter(u=>u!==l):n=a,l=ot(l)}return t.set(e,r),r}function Nf(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,l=[...o==="clippingAncestors"?Lo(t)?[]:Tf(t,this._c):[].concat(o),r],a=Ua(t,l[0],n),c=a.top,p=a.right,u=a.bottom,d=a.left;for(let g=1;g<l.length;g++){let f=Ua(t,l[g],n);c=Ft(f.top,c),p=Dr(f.right,p),u=Dr(f.bottom,u),d=Ft(f.left,d)}return{width:p-d,height:u-c,x:d,y:c}}function kf(e){let{width:t,height:o}=$a(e);return{width:t,height:o}}function Rf(e,t,o){let r=Ke(t),n=ze(t),i=o==="fixed",l=_t(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=We(0);function p(){c.x=Hr(n)}if(r||!r&&!i)if((Vt(t)!=="body"||lo(n))&&(a=Fo(t)),r){let f=_t(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else n&&p();i&&!r&&n&&p();let u=n&&!r&&!i?Ka(n,a):We(0),d=l.left+a.scrollLeft-c.x-u.x,g=l.top+a.scrollTop-c.y-u.y;return{x:d,y:g,width:l.width,height:l.height}}function oi(e){return De(e).position==="static"}function Ga(e,t){if(!Ke(e)||De(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ze(e)===o&&(o=o.ownerDocument.body),o}function Ya(e,t){let o=we(e);if(Lo(e))return o;if(!Ke(e)){let n=ot(e);for(;n&&!Ht(n);){if(Me(n)&&!oi(n))return n;n=ot(n)}return o}let r=Ga(e,t);for(;r&&Ha(r)&&oi(r);)r=Ga(r,t);return r&&Ht(r)&&oi(r)&&!Fr(r)?o:r||_a(e)||o}var Sf=async function(e){let t=this.getOffsetParent||Ya,o=this.getDimensions,r=await o(e.floating);return{reference:Rf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Of(e){return De(e).direction==="rtl"}var Af={convertOffsetParentRelativeRectToViewportRelativeRect:Cf,getDocumentElement:ze,getClippingRect:Nf,getOffsetParent:Ya,getElementRects:Sf,getClientRects:wf,getDimensions:kf,getScale:so,isElement:Me,isRTL:Of};function Xa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mf(e,t){let o=null,r,n=ze(e);function i(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function l(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();let p=e.getBoundingClientRect(),{left:u,top:d,width:g,height:f}=p;if(a||t(),!g||!f)return;let m=Do(d),v=Do(n.clientWidth-(u+g)),h=Do(n.clientHeight-(d+f)),C=Do(u),E={rootMargin:-m+"px "+-v+"px "+-h+"px "+-C+"px",threshold:Ft(0,Dr(1,c))||1},w=!0;function M(N){let _=N[0].intersectionRatio;if(_!==c){if(!w)return l();_?l(!1,_):r=setTimeout(()=>{l(!1,1e-7)},1e3)}_===1&&!Xa(p,e.getBoundingClientRect())&&l(),w=!1}try{o=new IntersectionObserver(M,{...E,root:n.ownerDocument})}catch{o=new IntersectionObserver(M,E)}o.observe(e)}return l(!0),i}function Za(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,p=ri(e),u=n||i?[...p?io(p):[],...t?io(t):[]]:[];u.forEach(C=>{n&&C.addEventListener("scroll",o,{passive:!0}),i&&C.addEventListener("resize",o)});let d=p&&a?Mf(p,o):null,g=-1,f=null;l&&(f=new ResizeObserver(C=>{let[I]=C;I&&I.target===p&&f&&t&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),p&&!c&&f.observe(p),t&&f.observe(t));let m,v=c?_t(e):null;c&&h();function h(){let C=_t(e);v&&!Xa(v,C)&&o(),v=C,m=requestAnimationFrame(h)}return o(),()=>{var C;u.forEach(I=>{n&&I.removeEventListener("scroll",o),i&&I.removeEventListener("resize",o)}),d?.(),(C=f)==null||C.disconnect(),f=null,c&&cancelAnimationFrame(m)}}var Ja=Ma;var Qa=Da,ec=Sa,tc=Fa,oc=Oa,rc=Ra;var nc=La,ic=(e,t,o)=>{let r=new Map,n={platform:Af,...o},i={...n.platform,_c:r};return ka(e,t,{...n,platform:i})};function lc(e){return e==null?[]:Array.isArray(e)?e:[e]}var Df=(e,t)=>e.indexOf(t)!==-1,Lf=(e,...t)=>e.concat(t),ni=(e,...t)=>e.filter(o=>!t.includes(o));var ii=(e,t)=>Df(e,t)?ni(e,t):Lf(e,t);var sc=e=>e?.constructor.name==="Array",Ff=(e,t)=>{if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ao(e[o],t[o]))return!1;return!0},ao=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(sc(e)&&sc(t))return Ff(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;let o=Object.keys(t??Object.create(null)),r=o.length;for(let n=0;n<r;n++)if(!Reflect.has(e,o[n]))return!1;for(let n=0;n<r;n++){let i=o[n];if(!ao(e[i],t[i]))return!1}return!0};var Bf=e=>Array.isArray(e),ac=e=>e===!0||e===!1,cc=e=>e!=null&&typeof e=="object",_r=e=>cc(e)&&!Bf(e);var co=e=>typeof e=="string",fe=e=>typeof e=="function",pc=e=>e==null,Wt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Vf=e=>Object.prototype.toString.call(e),uc=Function.prototype.toString,Hf=uc.call(Object),dc=e=>{if(!cc(e)||Vf(e)!="[object Object]"||zf(e))return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let o=Wt(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&uc.call(o)==Hf},_f=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Wf=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,zf=e=>_f(e)||Wf(e);var mc=e=>e(),li=()=>{},ut=(...e)=>(...t)=>{e.forEach(function(o){o?.(...t)})};function qe(e,t,...o){if(e in t){let n=t[e];return fe(n)?n(...o):n}let r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,qe),r}function dt(e){if(!dc(e)||e===void 0)return e;let t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),o={};for(let r of t){let n=e[r];n!==void 0&&(o[r]=dt(n))}return o}function po(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function si(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function zt(e,t){if(e==null)throw new Error(t())}function fc(e=0,t=0,o=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,o,r);let n={x:e,y:t,width:o,height:r,top:t,right:e+o,bottom:t+r,left:e};return{...n,toJSON:()=>n}}function Uf(e){if(!e)return fc();let{x:t,y:o,width:r,height:n}=e;return fc(t,o,r,n)}function gc(e,t){return{contextElement:J(e)?e:e?.contextElement,getBoundingClientRect:()=>{let o=e,r=t?.(o);return r||!o?Uf(r):o.getBoundingClientRect()}}}var Bo=e=>({variable:e,reference:`var(${e})`}),Ye={arrowSize:Bo("--arrow-size"),arrowSizeHalf:Bo("--arrow-size-half"),arrowBg:Bo("--arrow-background"),transformOrigin:Bo("--transform-origin"),arrowOffset:Bo("--arrow-offset")},Gf=e=>e==="top"||e==="bottom"?"y":"x";function hc(e,t){return{name:"transformOrigin",fn(o){let{elements:r,middlewareData:n,placement:i,rects:l,y:a}=o,c=i.split("-")[0],p=Gf(c),u=n.arrow?.x||0,d=n.arrow?.y||0,g=t?.clientWidth||0,f=t?.clientHeight||0,m=u+g/2,v=d+f/2,h=Math.abs(n.shift?.y||0),C=l.reference.height/2,I=f/2,E=e.offset?.mainAxis??e.gutter,w=typeof E=="number"?E+I:E??I,M=h>w,N={top:`${m}px calc(100% + ${w}px)`,bottom:`${m}px ${-w}px`,left:`calc(100% + ${w}px) ${v}px`,right:`${-w}px ${v}px`}[c],_=`${m}px ${l.reference.y+C-a}px`,y=!!e.overlap&&p==="y"&&M;return r.floating.style.setProperty(Ye.transformOrigin.variable,y?_:N),{data:{transformOrigin:y?_:N}}}}}var xc={name:"rects",fn({rects:e}){return{data:e}}},bc=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:o}){if(!o.arrow)return{};let{x:r,y:n}=o.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:n!=null?`${n}px`:"",[i]:`calc(100% + ${Ye.arrowOffset.reference})`}),{}}}};function vc(e){let[t,o]=e.split("-");return{side:t,align:o,hasAlign:o!=null}}function Vo(e){return e.split("-")[0]}var $f={strategy:"absolute",placement:"bottom",listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function yc(e,t){let o=e.devicePixelRatio||1;return Math.round(t*o)/o}function uo(e,t){return e!=null&&Math.abs(e-t)<.5}function Wr(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function jf(e,t,o){let r=e||t.createElement("div");return rc({element:r,padding:o.arrowPadding})}function Kf(e,t){if(!pc(t.offset??t.gutter))return Ja(({placement:o})=>{let r=(e?.clientHeight||0)/2,n=t.offset?.mainAxis??t.gutter,i=typeof n=="number"?n+r:n??r,{hasAlign:l}=vc(o),a=l?void 0:t.shift,c=t.offset?.crossAxis??a;return dt({crossAxis:c,mainAxis:i,alignmentAxis:t.shift})})}function qf(e){if(e.flip)return ec(()=>{let t=Wr(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function Yf(e){if(!(!e.slide&&!e.overlap))return Qa(()=>{let t=Wr(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:nc()}})}function Xf(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,o,r,n;return tc(()=>{let i=Wr(e.boundary);return{padding:e.overflowPadding,...i?{boundary:i}:void 0,apply({elements:l,rects:a,availableHeight:c,availableWidth:p}){let u=l.floating,d=Math.round(a.reference.width),g=Math.round(a.reference.height);p=Math.floor(p),c=Math.floor(c),uo(t,d)||(u.style.setProperty("--reference-width",`${d}px`),t=d),uo(o,g)||(u.style.setProperty("--reference-height",`${g}px`),o=g),uo(r,p)||(u.style.setProperty("--available-width",`${p}px`),r=p),uo(n,c)||(u.style.setProperty("--available-height",`${c}px`),n=c)}}})}function Zf(e){if(e.hideWhenDetached)return oc(()=>({strategy:"referenceHidden",boundary:Wr(e.boundary)??"clippingAncestors"}))}function Jf(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var Qf=["transform","visibility","pointer-events","--x","--y","--z-index","--reference-width","--reference-height","--available-width","--available-height","--transform-origin"],e1=["top","right","bottom","left"];function Cc(e,t){if(!e)return li;let o=new Map(t.map(r=>[r,e.style.getPropertyValue(r)]));return()=>{o.forEach((r,n)=>{r?e.style.setProperty(n,r):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute("style")}}function wc(e){return e==null?null:J(e)?e:typeof e=="object"&&e&&"contextElement"in e&&e.contextElement?e.contextElement:e}function t1(e,t,o={}){let r=()=>(typeof t=="function"?t():t)??null,n=()=>{let L=typeof e=="function"?e():e;return o.getAnchorElement?.()??L},i=()=>{let L=n();return!L&&!o.getAnchorRect?null:gc(L,o.getAnchorRect)},l=Object.assign({},$f,o),a=[],c=null,p,u;function d(L){p?.(),u?.(),c=L,p=l.restoreStyles?Cc(L,Qf):void 0;let k=L.querySelector("[data-part=arrow]");u=l.restoreStyles?Cc(k,e1):void 0,a=[Kf(k,l),qf(l),Yf(l),jf(k,L.ownerDocument,l),bc(k),hc({gutter:l.gutter,offset:l.offset,overlap:l.overlap},k),Xf(l),Zf(l),xc]}let{placement:g,strategy:f,onComplete:m,onPositioned:v}=l,h,C,I=!1,E,w,M=li,N=Jf(l.listeners);function _(){if(!l.listeners)return;let L=n(),k=i(),A=r();if(!k||!A)return;(wc(L)!==wc(E)||A!==w)&&(M(),E=L,w=A,M=Za(k,A,O,N))}async function y(){_();let L=r();if(!L)return;L!==c&&(d(L),I=!1);let k=i();if(!k)return;let A=await ic(k,L,{placement:g,middleware:a,strategy:f});m?.(A);let S=te(L),W=yc(S,A.x),R=yc(S,A.y);if(uo(h,W)||(L.style.setProperty("--x",`${W}px`),h=W),uo(C,R)||(L.style.setProperty("--y",`${R}px`),C=R),l.hideWhenDetached&&(A.middlewareData.hide?.referenceHidden?(L.style.setProperty("visibility","hidden"),L.style.setProperty("pointer-events","none")):(L.style.removeProperty("visibility"),L.style.removeProperty("pointer-events"))),!I){let z=L.firstElementChild;z&&(L.style.setProperty("--z-index",Ge(z).zIndex),I=!0)}}async function O(){o.updatePosition?(await o.updatePosition({updatePosition:y,floatingElement:r()}),v?.({placed:!0})):await y()}return O(),()=>{M(),u?.(),p?.(),v?.({placed:!1})}}function Ut(e,t,o={}){let{defer:r,...n}=o,i=r?K:a=>a(),l=[];return l.push(i(()=>{l.push(t1(e,t,n))})),()=>{l.forEach(a=>a?.())}}var o1={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Ho(e={}){let{placement:t,sameWidth:o,fitViewport:r,strategy:n="absolute"}=e;return{arrow:{position:"absolute",width:Ye.arrowSize.reference,height:Ye.arrowSize.reference,[Ye.arrowSizeHalf.variable]:`calc(${Ye.arrowSize.reference} / 2)`,[Ye.arrowOffset.variable]:`calc(${Ye.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?o1[t.split("-")[0]]:void 0,background:Ye.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:n,isolation:"isolate",minWidth:o?void 0:"max-content",width:o?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var ai=e=>e.ids?.anchor??`popover:${e.id}:anchor`,zr=(e,t)=>{let o=e.ids?.trigger;return o!=null?fe(o)?o(t):o:t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`},Ur=e=>e.ids?.content??`popover:${e.id}:content`,ci=e=>e.ids?.positioner??`popover:${e.id}:popper`,Pc=e=>e.ids?.arrow??`popover:${e.id}:arrow`,Gr=e=>e.ids?.title??`popover:${e.id}:title`,$r=e=>e.ids?.description??`popover:${e.id}:desc`,Ec=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,pi=e=>e.getById(ai(e)),ui=e=>e.getById(zr(e)),jr=e=>kr(e.getRootNode(),`[data-scope="popover"][data-part="trigger"][data-ownedby="${e.id}"]`),mt=(e,t)=>t==null?ui(e)??jr(e)[0]:e.getById(zr(e,t)),Gt=e=>e.getById(Ur(e)),di=e=>e.getById(ci(e)),Ic=e=>e.getById(Gr(e)),Tc=e=>e.getById($r(e));function mi(e,t){let{state:o,context:r,send:n,computed:i,prop:l,scope:a}=e,c=l("translations"),p=o.matches("open"),u=r.get("currentPlacement"),d=u?Vo(u):void 0,g=i("currentPortalled"),f=r.get("renderedElements"),m=r.get("triggerValue"),v=Ho({...l("positioning"),placement:u});return{portalled:g,open:p,setOpen(h){o.matches("open")!==h&&n({type:h?"OPEN":"CLOSE"})},triggerValue:m,setTriggerValue(h){n({type:"TRIGGER_VALUE.SET",value:h})},reposition(h={}){n({type:"POSITIONING.SET",options:h})},getArrowProps(){return t.element({id:Pc(a),...Ve.arrow.attrs,dir:l("dir"),style:v.arrow})},getArrowTipProps(){return t.element({...Ve.arrowTip.attrs,dir:l("dir"),style:v.arrowTip})},getAnchorProps(){return t.element({...Ve.anchor.attrs,dir:l("dir"),id:ai(a)})},getTriggerProps(h={}){let{value:C}=h,I=C==null?!1:m===C;return t.button({...Ve.trigger.attrs,dir:l("dir"),type:"button","data-placement":u,"data-side":d,id:zr(a,C),"data-ownedby":a.id,"data-value":C,"data-current":G(I),"aria-haspopup":"dialog","aria-expanded":C==null?p:p&&I,"data-state":p?"open":"closed","aria-controls":Ur(a),onPointerDown(E){Ot(E)&&Js()&&E.currentTarget.focus()},onClick(E){if(E.defaultPrevented)return;let w=p&&C!=null&&!I;n({type:w?"TRIGGER_VALUE.SET":"TOGGLE",value:C})},onBlur(E){n({type:"TRIGGER_BLUR",target:E.relatedTarget})}})},getIndicatorProps(){return t.element({...Ve.indicator.attrs,dir:l("dir"),"data-state":p?"open":"closed"})},getPositionerProps(){return t.element({id:ci(a),...Ve.positioner.attrs,dir:l("dir"),style:v.floating})},getContentProps(){return t.element({...Ve.content.attrs,dir:l("dir"),id:Ur(a),tabIndex:-1,role:"dialog","aria-modal":et(l("modal")),hidden:!p,"data-state":p?"open":"closed","data-expanded":G(p),"aria-labelledby":f.title?Gr(a):void 0,"aria-describedby":f.description?$r(a):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({...Ve.title.attrs,id:Gr(a),dir:l("dir")})},getDescriptionProps(){return t.element({...Ve.description.attrs,id:$r(a),dir:l("dir")})},getCloseTriggerProps(){return t.button({...Ve.closeTrigger.attrs,dir:l("dir"),id:Ec(a),type:"button","aria-label":c.closeTriggerLabel,onClick(h){h.defaultPrevented||(h.stopPropagation(),n({type:"CLOSE"}))}})}}}var mo=new WeakMap,Kr=new WeakMap,qr={},fi=0,kc=e=>e&&(e.host||kc(e.parentNode)),r1=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=kc(o);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),n1=new Set(["script","output","status","next-route-announcer"]),i1=e=>n1.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Rc=(e,t)=>{let{parentNode:o,markerName:r,controlAttribute:n,explicitBooleanValue:i,followControlledElements:l=!0}=t,a=r1(o,Array.isArray(e)?e:[e]);qr[r]||(qr[r]=new WeakMap);let c=qr[r],p=[],u=new Set,d=new Set(a),g=m=>{!m||u.has(m)||(u.add(m),g(m.parentNode))};a.forEach(m=>{g(m),l&&J(m)&&$n(m,v=>{g(v)})});let f=m=>{!m||d.has(m)||Array.prototype.forEach.call(m.children,v=>{if(u.has(v))f(v);else try{if(i1(v))return;let h=v.getAttribute(n),C=i?h==="true":h!==null&&h!=="false",I=(mo.get(v)||0)+1,E=(c.get(v)||0)+1;mo.set(v,I),c.set(v,E),p.push(v),I===1&&C&&Kr.set(v,!0),E===1&&v.setAttribute(r,""),C||v.setAttribute(n,i?"true":"")}catch(h){console.error("[zag-js > ariaHidden] cannot operate on ",v,h)}})};return f(o),u.clear(),fi++,()=>{p.forEach(m=>{let v=mo.get(m)-1,h=c.get(m)-1;mo.set(m,v),c.set(m,h),v||(Kr.has(m)||m.removeAttribute(n),Kr.delete(m)),h||m.removeAttribute(r)}),fi--,fi||(mo=new WeakMap,mo=new WeakMap,Kr=new WeakMap,qr={})}};var l1=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Sc=(e,t=l1(e),o="data-aria-hidden",r=!0)=>{if(t)return Rc(e,{parentNode:t,markerName:o,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:r})};var s1=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Yr(e,t={}){let{defer:o=!0}=t,r=o?s1:i=>i(),n=[];return n.push(r(()=>{let l=(typeof e=="function"?e():e).filter(Boolean);l.length!==0&&n.push(Sc(l))})),()=>{n.forEach(i=>i?.())}}var a1=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),c1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Oc=e=>{let t={},o;for(;o=c1.exec(e);)t[o[1]]=o[2];return t},p1=(e,t)=>{if(co(e)){if(co(t))return`${e};${t}`;e=Oc(e)}else co(t)&&(t=Oc(t));return Object.assign({},e??{},t??{})};function T(...e){let t={};for(let o of e){if(!o)continue;for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof o[n]=="function"){t[n]=ut(o[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=a1(t[n],o[n]);continue}if(n==="style"){t[n]=p1(t[n],o[n]);continue}t[n]=o[n]!==void 0?o[n]:t[n]}for(let n in o)t[n]===void 0&&(t[n]=o[n]);let r=Object.getOwnPropertySymbols(o);for(let n of r)t[n]=o[n]}return t}var ft=".",Dc="#",Ac=new WeakMap,Lc=new WeakMap;function gi(e){return e.join(ft)}function u1(e){return e.includes(ft)}function Fc(e){return e.startsWith(Dc)}function d1(e){return e.startsWith(ft)}function m1(e){return Fc(e)?e.slice(Dc.length):e}function hi(e,t){return e?`${e}${ft}${t}`:t}function f1(e){let t=new Map,o=new Map,r=(n,i)=>{t.set(n,i);let l=i.id;l&&(o.has(l)&&si(`[zag-js] Duplicate state id: "${l}"`),o.set(l,n));let a=i.states;if(a){zt(i.initial,()=>`[zag-js] Compound state "${n}" has child states but no "initial" property`),i.initial in a||si(`[zag-js] Compound state "${n}" has initial "${String(i.initial)}" which is not a child state`);for(let[c,p]of Object.entries(a)){if(!p)continue;let u=hi(n,c);r(u,p)}}};for(let[n,i]of Object.entries(e.states))i&&r(n,i);return{index:t,idIndex:o}}function fo(e){let t=Ac.get(e);if(t)return t;let{index:o,idIndex:r}=f1(e);return Ac.set(e,o),Lc.set(e,r),o}function g1(e,t){return fo(e),Lc.get(e)?.get(t)}function xi(e){return e?String(e).split(ft).filter(Boolean):[]}function Xr(e,t){if(!t)return[];let o=fo(e),r=xi(t),n=[],i=[];for(let l of r){i.push(l);let a=gi(i),c=o.get(a);if(!c)break;n.push({path:a,state:c})}return n}function _o(e,t){let o=fo(e),r=xi(t);if(!r.length)return t;let n=[];for(let a of r){n.push(a);let c=gi(n);if(!o.has(c))return t}let i=gi(n),l=o.get(i);for(;l?.initial;){let a=`${i}${ft}${l.initial}`,c=o.get(a);if(!c)break;i=a,l=c}return i}function Mc(e,t){return fo(e).has(t)}function bi(e,t,o){let r=String(t);if(Fc(r)){let n=m1(r),i=g1(e,n);return zt(i,()=>`[zag-js] Unknown state id: "${n}"`),_o(e,i)}if(d1(r)&&o){let n=hi(o,r.slice(1));return _o(e,n)}if(!u1(r)&&o){let n=xi(o);for(let i=n.length-1;i>=1;i--){let l=n.slice(0,i).join(ft),a=hi(l,r);if(Mc(e,a))return _o(e,a)}if(Mc(e,r))return _o(e,r)}return _o(e,r)}function Bc(e,t,o){let r=Xr(e,t);for(let i=r.length-1;i>=0;i--){let a=r[i]?.state.on?.[o];if(a)return{transitions:a,source:r[i]?.path}}return{transitions:e.on?.[o],source:void 0}}function Vc(e,t,o,r){let n=t?Xr(e,t):[],i=Xr(e,o),l=0;for(;l<n.length&&l<i.length&&n[l]?.path===i[l]?.path;)l+=1;let a=n.slice(l).reverse(),c=i.slice(l),p=n.at(-1)?.path===i.at(-1)?.path;return r&&p&&(a=n.slice().reverse(),c=i),{exiting:a,entering:c}}function Hc(e,t){return e?e===t||e.startsWith(`${t}${ft}`):!1}function _c(e,t,o){return Xr(e,t).some(r=>r.state.tags?.includes(o))}function h1(){return{and:(...e)=>function(o){return e.every(r=>o.guard(r))},or:(...e)=>function(o){return e.some(r=>o.guard(r))},not:e=>function(o){return!o.guard(e)}}}function $t(e){return fo(e),e}function Wc(){return{guards:h1(),createMachine:e=>$t(e),choose:e=>function({choose:o}){return o(e)?.actions}}}var gt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(gt||{}),Wo="__init__";function zc(e){let t=()=>e.getRootNode?.()??document,o=()=>Q(t());return{...e,getRootNode:t,getDoc:o,getWin:()=>o().defaultView??window,getActiveElement:()=>He(t()),isActiveElement:kt,getById:l=>t().getElementById(l)}}function Uc(e){let t={each(o){for(let r=0;r<e.frames?.length;r+=1){let n=e.frames[r];n&&o(n)}},addEventListener(o,r,n){return t.each(i=>{try{i.document.addEventListener(o,r,n)}catch{}}),()=>{try{t.removeEventListener(o,r,n)}catch{}}},removeEventListener(o,r,n){t.each(i=>{try{i.document.removeEventListener(o,r,n)}catch{}})}};return t}function Gc(e){let t=e.frameElement!=null?e.parent:null;return{addEventListener:(o,r,n)=>{try{t?.addEventListener(o,r,n)}catch{}return()=>{try{t?.removeEventListener(o,r,n)}catch{}}},removeEventListener:(o,r,n)=>{try{t?.removeEventListener(o,r,n)}catch{}}}}var $c="pointerdown.outside",jc="focus.outside";function x1(e){for(let t of e)if(J(t)&&Ae(t))return!0;return!1}var Yc=e=>"clientY"in e;function b1(e,t){if(!Yc(t)||!e)return!1;let o=e.getBoundingClientRect();return o.width===0||o.height===0?!1:o.top<=t.clientY&&t.clientY<=o.top+o.height&&o.left<=t.clientX&&t.clientX<=o.left+o.width}function v1(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Kc(e,t){if(!t||!Yc(e))return!1;let o=t.scrollHeight>t.clientHeight,r=o&&e.clientX>t.offsetLeft+t.clientWidth,n=t.scrollWidth>t.clientWidth,i=n&&e.clientY>t.offsetTop+t.clientHeight,l={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(o?16:0),height:t.clientHeight+(n?16:0)},a={x:e.clientX,y:e.clientY};return v1(l,a)?r||i:!1}function y1(e,t){let{exclude:o,onFocusOutside:r,onPointerDownOutside:n,onInteractOutside:i,defer:l,followControlledElements:a=!0}=t;if(!e)return;let c=Q(e),p=te(e),u=Uc(p),d=Gc(p);function g(w,M){if(!J(M)||!M.isConnected||Rt(e,M)||b1(e,w)||a&&wr(e,M))return!1;let N=c.querySelector(`[aria-controls="${e.id}"]`);if(N){let y=Nr(N);if(Kc(w,y))return!1}let _=Nr(e);return Kc(w,_)?!1:!o?.(M)}let f=new Set,m=tt(e?.getRootNode()),v=!1;function h(w){v=!0;let M=()=>{v=!1};c.addEventListener("pointerup",M,{once:!0}),p.addEventListener("pointerup",M,{once:!0});function N(_){let y=l&&!Kn()?K:k=>k(),O=_??w,L=O?.composedPath?.()??[O?.target];y(()=>{let k=m?L[0]:me(w);if(!(!e||!g(w,k))){if(n||i){let A=ut(n,i);e.addEventListener($c,A,{once:!0})}qc(e,$c,{bubbles:!1,cancelable:!0,detail:{originalEvent:O,contextmenu:Er(O),focusable:x1(L),target:k}})}})}w.pointerType==="touch"?(f.forEach(_=>_()),f.add(ye(c,"click",N,{once:!0})),f.add(d.addEventListener("click",N,{once:!0})),f.add(u.addEventListener("click",N,{once:!0}))):N()}let C=new Set,I=setTimeout(()=>{C.add(ye(c,"pointerdown",h,!0)),C.add(d.addEventListener("pointerdown",h,!0)),C.add(u.addEventListener("pointerdown",h,!0))},0);function E(w){if(v)return;(l?K:N=>N())(()=>{let N=w?.composedPath?.()??[w?.target],_=m?N[0]:me(w);if(!(!e||!g(w,_))){if(r||i){let y=ut(r,i);e.addEventListener(jc,y,{once:!0})}qc(e,jc,{bubbles:!1,cancelable:!0,detail:{originalEvent:w,contextmenu:!1,focusable:Ae(_),target:_}})}})}return Kn()||(C.add(ye(c,"focusin",E,!0)),C.add(d.addEventListener("focusin",E,!0)),C.add(u.addEventListener("focusin",E,!0))),()=>{clearTimeout(I),f.forEach(w=>w()),C.forEach(w=>w())}}function Xc(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(y1(i,t))})),()=>{n.forEach(i=>i?.())}}function qc(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,o);return e.dispatchEvent(n)}function Zc(e,t){let o=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ye(Q(e),"keydown",o,{capture:!0})}var Jc="layer:request-dismiss",ge={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){let t=this.indexOf(e),o=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<o},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){let o=this.indexOf(e);return o===-1?[]:this.layers.slice(o+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){let o=this.indexOf(e);if(!(o<=0))return this.layers.slice(0,o).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(r=>Rt(r.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>Rt(t,e))},add(e){let t=this.indexOf(e.node);t!==-1&&this.layers.splice(t,1),this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);if(t<0)return;this.layers[t].styleTargets?.forEach(r=>{let n=r();n&&C1(n)}),this.recentlyRemoved.add(e),ro(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(n=>ge.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers()},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{Qc(e,t,e.node),e.styleTargets?.forEach(o=>{let r=o();if(!r||r===e.node)return;Qc(e,t,r);let{zIndex:n}=Ge(e.node);r.style.setProperty("--z-index",n)})})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){let o=this.indexOf(e);if(o===-1)return;let r=this.layers[o];P1(e,Jc,n=>{r.requestDismiss?.(n),n.defaultPrevented||r?.dismiss()}),w1(e,Jc,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Qc(e,t,o){o.style.setProperty("--layer-index",`${t}`),o.removeAttribute("data-nested"),o.removeAttribute("data-has-nested"),ge.getParentLayerOfType(e.node,e.type)&&o.setAttribute("data-nested",e.type);let n=ge.countNestedLayersOfType(e.node,e.type);n>0&&o.setAttribute("data-has-nested",e.type),o.style.setProperty("--nested-layer-count",`${n}`)}function C1(e){e.style.removeProperty("--layer-index"),e.style.removeProperty("--nested-layer-count"),e.style.removeProperty("--z-index"),e.removeAttribute("data-nested"),e.removeAttribute("data-has-nested")}function w1(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});return e.dispatchEvent(n)}function P1(e,t,o){e.addEventListener(t,o,{once:!0})}var vi=new WeakMap,zo=new WeakMap;function E1(e){return ge.isBelowPointerBlockingLayer(e)?"none":"auto"}function ep(e){let t=E1(e);e.style.pointerEvents!==t&&(e.style.pointerEvents=t)}function I1(e){if(zo.has(e))return;let t=te(e);if(typeof t.MutationObserver>"u")return;let o=new t.MutationObserver(()=>{zo.has(e)&&ep(e)});o.observe(e,{attributes:!0,attributeFilter:["style"]}),zo.set(e,o)}function yi(){ge.layers.forEach(({node:e})=>{ep(e),I1(e)})}function tp(e){let t=zo.get(e);t&&(t.disconnect(),zo.delete(e)),e.style.pointerEvents=""}function op(e,t){let o=Q(e),r=[];return ge.hasPointerBlockingLayer()&&!o.body.hasAttribute("data-inert")&&(vi.set(o.body,o.body.style.pointerEvents),queueMicrotask(()=>{let n=o.body;n&&(n.style.pointerEvents="none",n.setAttribute("data-inert",""))})),t?.forEach(n=>{let[i,l]=xa(()=>{let a=n();return J(a)?a:null},{timeout:1e3});i.then(a=>r.push(Mt(a,{pointerEvents:"auto"}))),r.push(l)}),()=>{ge.hasPointerBlockingLayer()||(queueMicrotask(()=>{let n=o.body;if(!n)return;let i=vi.get(n);i!==void 0&&(n.style.pointerEvents=i,vi.delete(n)),n.removeAttribute("data-inert"),n.style.length===0&&n.removeAttribute("style")}),r.forEach(n=>n()))}}function T1(e,t){let{warnOnMissingNode:o=!0}=t;if(o&&!e){po("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:r,onRequestDismiss:n,pointerBlocking:i,exclude:l,debug:a,type:c="dialog",layerStyleTargets:p}=t,u={dismiss:r,node:e,type:c,pointerBlocking:i,requestDismiss:n,styleTargets:p};ge.add(u),yi();function d(h){let C=me(h.detail.originalEvent);ge.isBelowPointerBlockingLayer(e)||ge.isInBranch(C)||(t.onPointerDownOutside?.(h),t.onInteractOutside?.(h),!h.defaultPrevented&&(a&&console.log("onPointerDownOutside:",h.detail.originalEvent),r?.()))}function g(h){let C=me(h.detail.originalEvent);ge.isInBranch(C)||(t.onFocusOutside?.(h),t.onInteractOutside?.(h),!h.defaultPrevented&&(a&&console.log("onFocusOutside:",h.detail.originalEvent),r?.()))}function f(h){ge.isTopMost(e)&&(t.onEscapeKeyDown?.(h),!h.defaultPrevented&&r&&(h.preventDefault(),r()))}function m(h){if(!e)return!1;let C=typeof l=="function"?l():l,I=Array.isArray(C)?C:[C],E=t.persistentElements?.map(w=>w()).filter(J);return E&&I.push(...E),I.some(w=>Rt(w,h))||ge.isInNestedLayer(e,h)}let v=[i?op(e,t.persistentElements):void 0,Zc(e,f),Xc(e,{exclude:m,onFocusOutside:g,onPointerDownOutside:d,defer:t.defer})];return()=>{ge.remove(e),yi(),tp(e),v.forEach(h=>h?.())}}function go(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=fe(e)?e():e;n.push(T1(i,t))})),()=>{n.forEach(i=>i?.())}}var N1=Object.defineProperty,k1=(e,t,o)=>t in e?N1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oe=(e,t,o)=>k1(e,typeof t!="symbol"?t+"":t,o);var rp={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap(e,t){let o=e.indexOf(t);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},R1=[],ip=class{constructor(e,t){oe(this,"trapStack"),oe(this,"config"),oe(this,"doc"),oe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),oe(this,"portalContainers",new Set),oe(this,"listenerCleanups",[]),oe(this,"handleFocus",r=>{let n=me(r),i=this.findContainerIndex(n,r)>=0;if(i||So(n))i&&(this.state.mostRecentlyFocusedNode=n);else{r.stopImmediatePropagation();let l,a=!0;if(this.state.mostRecentlyFocusedNode)if(oo(this.state.mostRecentlyFocusedNode)>0){let c=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[c];if(p.length>0){let u=p.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<p.length&&(l=p[u+1],a=!1):u-1>=0&&(l=p[u-1],a=!1))}}else this.state.containerGroups.some(c=>c.tabbableNodes.some(p=>oo(p)>0))||(a=!1);else a=!1;a&&(l=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),l?this.tryFocus(l):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),oe(this,"handlePointerDown",r=>{let n=me(r);if(!(this.findContainerIndex(n,r)>=0)){if(Uo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Uo(this.config.allowOutsideClick,r)||r.preventDefault()}}),oe(this,"handleClick",r=>{let n=me(r);this.findContainerIndex(n,r)>=0||Uo(this.config.clickOutsideDeactivates,r)||Uo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),oe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;let n=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:n});if(!i)return;Ci(r)&&r.preventDefault(),this.tryFocus(i)}}),oe(this,"handleEscapeKey",r=>{A1(r)&&Uo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),oe(this,"_mutationObserver"),oe(this,"setupMutationObserver",()=>{let r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(n=>{n.some(a=>Array.from(a.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),n.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(c=>{if(c.nodeType!==Node.ELEMENT_NODE)return!1;let p=c;return Ys(p)?!0:p.id&&!this.state.containers.some(u=>u.contains(p))?Xs(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),oe(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),oe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Ae(r)){let n=He(this.doc);if(n&&this.findContainerIndex(n)>=0)r=n;else{let i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");if(r.isConnected||(r=this.getNodeForOption("fallbackFocus")),!r||!r.isConnected)throw new Error("Your focus-trap needs to have at least one focusable element");return r}),oe(this,"tryFocus",r=>{if(r!==!1&&r!==He(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,M1(r)&&r.select()}}),oe(this,"deactivate",r=>{if(!this.state.active)return this;let n={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),rp.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(n,"onDeactivate"),l=this.getOption(n,"onPostDeactivate"),a=this.getOption(n,"checkCanReturnFocus"),c=this.getOption(n,"returnFocus","returnFocusOnDeactivate");i?.();let p=()=>{np(()=>{if(c){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}l?.()})};if(c&&a){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(p,p),this}return p(),this}),oe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,n?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,n?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),oe(this,"getReturnFocusNode",r=>{let n=this.getNodeForOption("setReturnFocus",{params:[r]});return n||(n===!1?!1:r)}),oe(this,"getOption",(r,n,i)=>r&&r[n]!==void 0?r[n]:this.config[i||n]),oe(this,"getNodeForOption",(r,{hasFallback:n=!1,params:i=[]}={})=>{let l=this.config[r];if(typeof l=="function"&&(l=l(...i)),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=l;if(typeof l=="string"){try{a=this.doc.querySelector(l)}catch(c){throw new Error(`\`${r}\` appears to be an invalid selector; error="${c.message}"`)}if(!a&&!n)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),oe(this,"findNextNavNode",r=>{let{event:n,isBackward:i=!1}=r,l=r.target||me(n);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){let c=this.findContainerIndex(l,n),p=c>=0?this.state.containerGroups[c]:void 0;if(c<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Ae(l)&&!ct(l)&&!p?.nextTabbableNode(l,!1))&&(u=c),u>=0){let d=u===0?this.state.tabbableGroups.length-1:u-1,g=this.state.tabbableGroups[d];a=oo(l)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else Ci(n)||(a=p?.nextTabbableNode(l,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Ae(l)&&!ct(l)&&!p?.nextTabbableNode(l))&&(u=c),u>=0){let d=u===this.state.tabbableGroups.length-1?0:u+1,g=this.state.tabbableGroups[d];a=oo(l)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Ci(n)||(a=p?.nextTabbableNode(l))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||R1;let o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:S1,isKeyBackward:O1,...t};this.doc=o.document||Q(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{qs(e).forEach(o=>{this.addPortalContainer(o)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let o=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:n})=>r.contains(e)||o?.includes(r)||n.find(i=>i===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?wr(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=At(e,{getShadowRoot:this.config.getShadowRoot}),o=Tr(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],n=t[t.length-1],i=r,l=n,a=!1;for(let p=0;p<t.length;p++)if(oo(t[p])>0){a=!0;break}function c(p,u=!0){let d=t.indexOf(p);if(d>=0)return t[d+(u?1:-1)];let g=o.indexOf(p);if(!(g<0)){if(u){for(let f=g+1;f<o.length;f++)if(ct(o[f]))return o[f]}else for(let f=g-1;f>=0;f--)if(ct(o[f]))return o[f]}}return{container:e,tabbableNodes:t,focusableNodes:o,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:n,firstDomTabbableNode:i,lastDomTabbableNode:l,nextTabbableNode:c}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return rp.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?np(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ye(this.doc,"focusin",this.handleFocus,!0),ye(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ye(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ye(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ye(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ye(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=He(this.doc),t?.();let n=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return r?(r(this.state.containers.concat()).then(n,n),this):(n(),this)}},wi=e=>e?.type==="keydown",Ci=e=>wi(e)&&e?.key==="Tab",S1=e=>wi(e)&&e.key==="Tab"&&!e?.shiftKey,O1=e=>wi(e)&&e.key==="Tab"&&e?.shiftKey,Uo=(e,...t)=>typeof e=="function"?e(...t):e,A1=e=>!e.isComposing&&e.key==="Escape",np=e=>setTimeout(e,0),M1=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Zr(e,t={}){let o,r=K(()=>{let i=(Array.isArray(e)?e:[e]).map(a=>typeof a=="function"?a():a).filter(a=>a!=null);if(i.length===0)return;let l=i[0];o=new ip(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:l,...t,document:Q(l)});try{o.activate()}catch{}});return function(){o?.deactivate(),r()}}var lp="data-scroll-lock",Pi=new WeakMap;function D1(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function sp(e){let o=Ge(e)?.scrollbarGutter;return o==="stable"||o?.startsWith("stable ")===!0}function L1(e){let t=e.defaultView??window,{documentElement:o,body:r}=e,n=sp(o)||sp(r),i=t.innerWidth-o.clientWidth;r.setAttribute(lp,"");let l=()=>ha(o,"--scrollbar-width",`${i}px`),a=D1(o),c=()=>{let d={overflow:"hidden"};return!n&&i>0&&(d[a]=`${i}px`),Mt(r,d)},p=()=>{let{scrollX:d,scrollY:g,visualViewport:f}=t,m=f?.offsetLeft??0,v=f?.offsetTop??0,h={position:"fixed",overflow:"hidden",top:`${-(g-Math.floor(v))}px`,left:`${-(d-Math.floor(m))}px`,right:"0"};!n&&i>0&&(h[a]=`${i}px`);let C=Mt(r,h);return()=>{C?.(),t.scrollTo({left:d,top:g,behavior:"instant"})}},u=[l(),qn()?p():c()];return()=>{u.forEach(d=>d?.()),r.removeAttribute(lp)}}function Jr(e){let t=e??document,o=Pi.get(t);o||(o={count:0,cleanup:L1(t)},Pi.set(t,o)),o.count++;let r=o,n=!1;return()=>{n||(n=!0,r.count--,r.count===0&&(r.cleanup(),Pi.delete(t)))}}var Ei=$t({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:"close",...e.translations},positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=mt(o,r);n({value:r,triggerElement:i})}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:o}){e([()=>t("open")],()=>{o(["toggleVisibility"])})},entry:["checkRenderedElements"],on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","reposition"]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackDismissableElement","trackPositioning","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:o}){e.set("currentPlacement",t("positioning").placement);let r=pi(o);return Ut(()=>r??mt(o,e.get("triggerValue")),()=>di(o),{...t("positioning"),defer:!0,onComplete(l){e.set("currentPlacement",l.placement)}})},trackDismissableElement({send:e,prop:t,scope:o}){let r=()=>Gt(o),n=!0;return go(r,{type:"popover",pointerBlocking:t("modal"),exclude:[ui(o),...jr(o)].filter(Boolean),defer:!0,onEscapeKeyDown(i){t("onEscapeKeyDown")?.(i),!t("closeOnEscape")&&i.preventDefault()},onInteractOutside(i){t("onInteractOutside")?.(i),!i.defaultPrevented&&(n=!(i.detail.focusable||i.detail.contextmenu),t("closeOnInteractOutside")||i.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t,context:o}){return e("modal")||!e("portalled")?void 0:fa(()=>Gt(t),{triggerElement:mt(t,o.get("triggerValue")),defer:!0,getShadowRoot:!0,onFocus(n){n.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:o}){return e("modal")?Yr(()=>[Gt(t),mt(t,o.get("triggerValue"))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return Jr(t.getDoc())},trapFocus({prop:e,scope:t,context:o}){return e("modal")?Zr(()=>Gt(t),{preventScroll:!0,returnFocusOnDeactivate:!!e("restoreFocus"),initialFocus:()=>Oo({root:Gt(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),setReturnFocus:n=>{let i=e("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=mt(t,l);if(c)return c}let a=jr(t)[0];return a||n},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:o,context:r}){let n=pi(o);Ut(()=>n??mt(o,r.get("triggerValue")),()=>di(o),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(a){r.set("currentPlacement",a.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},checkRenderedElements({context:e,scope:t}){K(()=>{Object.assign(e.get("renderedElements"),{title:!!Ic(t),description:!!Tc(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||K(()=>{Oo({root:Gt(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:o,context:r}){let n=e.restoreFocus??e.previousEvent?.restoreFocus;n!=null&&!n||t("restoreFocus")&&K(()=>{let i=t("finalFocusEl")?.();if(i){i.focus({preventScroll:!0});return}mt(o,r.get("triggerValue"))?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function ap(e){return new Proxy({},{get(t,o){return o==="style"?r=>e({style:r}).style:e}})}function B1(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function re(e={}){let{name:t,strict:o=!0,hookName:r="useContext",providerName:n="Provider",errorMessage:i,defaultValue:l}=e,a=hs(l);a.displayName=t;function c(){let p=vs(a);if(!p&&o){let u=new Error(i??B1(r,n));throw u.name="ContextError",Wt(Error,"captureStackTrace")&&fe(Error.captureStackTrace)&&Error.captureStackTrace(u,c),u}return p}return[a.Provider,c,a]}var[Qr,ne]=re({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});function Pe(...e){return t=>{let o=[];for(let r of e)if(typeof r=="function"){let n=r(t);typeof n=="function"&&o.push(n)}else r&&(r.current=t);if(o.length)return()=>{for(let r of o)r()}}}function V1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Ii=e=>{let t=bs(P((o,r)=>{let{asChild:n,children:i,...l}=o;if(!n)return pr(e,{...l,ref:r},i);if(!xs(i))return null;let a=cr.only(i),c=V1(a);return gs(a,{...T(l,a.props),ref:r?Pe(r,c):c})}));return t.displayName=e.displayName||e.name,t},H1=()=>{let e=new Map;return new Proxy(Ii,{apply(t,o,r){return Ii(r[0])},get(t,o){let r=o;return e.has(r)||e.set(r,Ii(r)),e.get(r)}})},D=H1();function _1(){let e=globalThis.ReactDOM;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.ReactDOM. Load ReactDOM before @pollinations/ui.");return e}var W1=_1();var{createPortal:en,flushSync:Go}=W1;var tn=typeof globalThis.document<"u"?dr:X;function $o(e){let t=e().value??e().defaultValue,o=e().isEqual??Object.is,[r]=ee(t),[n,i]=ee(r),l=e().value!==void 0,a=$(n);a.current=l?e().value:n;let c=$(a.current);tn(()=>{c.current=a.current},[n,e().value]);let p=d=>{let g=c.current,f=fe(d)?d(g):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:f,prev:g}),l||i(f),o(f,g)||e().onChange?.(f,g)};function u(){return l?e().value:n}return{initial:r,ref:a,get:u,set(d){(e().sync?Go:mc)(()=>p(d))},invoke(d,g){e().onChange?.(d,g)},hash(d){return e().hash?.(d)??String(d)}}}$o.cleanup=e=>{X(()=>e,[])};$o.ref=e=>{let t=$(e);return{get:()=>t.current,set:o=>{t.current=o}}};function cp(e){let t=$(e);return{get(o){return t.current[o]},set(o,r){t.current[o]=r}}}var pp=(e,t)=>{let o=$(!1),r=$(!1);X(()=>{if(o.current&&r.current)return t();r.current=!0},[...(e??[]).map(n=>typeof n=="function"?n():n)]),X(()=>(o.current=!0,()=>{o.current=!1}),[])};function ht(e,t={}){let o=se(()=>{let{id:k,ids:A,getRootNode:S}=t;return zc({id:k,ids:A,getRootNode:S})},[t]),r=(...k)=>{e.debug&&console.log(...k)},n=e.props?.({props:dt(t),scope:o})??t,i=z1(n),l=e.context?.({prop:i,bindable:$o,scope:o,flush:up,getContext(){return c},getComputed(){return M},getRefs(){return v},getEvent(){return f()}}),a=dp(l),c={get(k){return a.current?.[k].ref.current},set(k,A){a.current?.[k].set(A)},initial(k){return a.current?.[k].initial},hash(k){let A=a.current?.[k].get();return a.current?.[k].hash(A)}},p=$(new Map),u=$(null),d=$(null),g=$({type:""}),f=()=>({...g.current,current(){return g.current},previous(){return d.current}}),m=()=>({...N,matches(...k){return k.some(A=>Hc(N.ref.current,A))},hasTag(k){return _c(e,N.ref.current,k)}}),v=cp(e.refs?.({prop:i,context:c})??{}),h=()=>({state:m(),context:c,event:f(),prop:i,send:L,action:C,guard:I,track:pp,refs:v,computed:M,flush:up,scope:o,choose:w}),C=k=>{let A=fe(k)?k(h()):k;if(!A)return;let S=A.map(W=>{let R=e.implementations?.actions?.[W];return R||po(`[zag-js] No implementation found for action "${JSON.stringify(W)}"`),R});for(let W of S)W?.(h())},I=k=>{if(fe(k))return k(h());let A=e.implementations?.guards?.[k];return A||po(`[zag-js] No implementation found for guard "${JSON.stringify(k)}"`),A?.(h())},E=k=>{let A=fe(k)?k(h()):k;if(!A)return;let S=A.map(R=>{let z=e.implementations?.effects?.[R];return z||po(`[zag-js] No implementation found for effect "${JSON.stringify(R)}"`),z}),W=[];for(let R of S){let z=R?.(h());z&&W.push(z)}return()=>W.forEach(R=>R?.())},w=k=>lc(k).find(A=>{let S=!A.guard;return co(A.guard)?S=!!I(A.guard):fe(A.guard)&&(S=A.guard(h())),S}),M=k=>{zt(e.computed,()=>"[zag-js] No computed object found on machine");let A=e.computed[k];return A({context:c,event:f(),prop:i,refs:v,scope:o,computed:M})},N=$o(()=>({defaultValue:bi(e,e.initialState({prop:i})),onChange(k,A){let{exiting:S,entering:W}=Vc(e,A,k,u.current?.reenter);if(S.forEach(R=>{p.current.get(R.path)?.(),p.current.delete(R.path)}),S.forEach(R=>{C(R.state?.exit)}),C(u.current?.actions),W.forEach(R=>{let z=E(R.state?.effects);if(z){let q=p.current.get(R.path);p.current.set(R.path,q?ut(q,z):z)}}),A===Wo){C(e.entry);let R=E(e.effects);if(R){let z=p.current.get(Wo);p.current.set(Wo,z?ut(z,R):R)}}W.forEach(R=>{C(R.state?.entry)})}})),_=$(void 0),y=$(gt.NotStarted);tn(()=>{queueMicrotask(()=>{let A=y.current===gt.Started;y.current=gt.Started,r(A?"rehydrating...":"initializing...");let S=_.current??N.initial;N.invoke(S,A?N.get():Wo)});let k=p.current;return()=>{let A=O();r("unmounting..."),_.current=A,y.current=gt.Stopped,k.forEach(S=>S?.()),p.current=new Map,u.current=null,queueMicrotask(()=>{C(e.exit),y.current=gt.Stopped})}},[]);let O=()=>"ref"in N?N.ref.current:N.get(),L=k=>{queueMicrotask(()=>{if(y.current!==gt.Started)return;d.current=g.current,g.current=k;let A=O(),{transitions:S,source:W}=Bc(e,A,k.type),R=w(S);if(!R)return;u.current=R;let z=bi(e,R.target??A,W);r("transition",k.type,R.target||A,`(${R.actions})`),z!==A?Go(()=>N.set(z)):R.reenter?N.invoke(A,A):C(R.actions??[])})};return e.watch?.(h()),{state:m(),send:L,context:c,prop:i,scope:o,refs:v,computed:M,event:f(),getStatus:()=>y.current}}function dp(e){let t=$(e);return t.current=e,t}function z1(e){let t=dp(e);return function(r){return t.current[r]}}function up(e){queueMicrotask(()=>{Go(()=>e())})}var xt=ap(e=>e);var Ti=P((e,t)=>{let o=T(ne().getAnchorProps(),e);return s(D.div,{...o,ref:t})});Ti.displayName="PopoverAnchor";var Ni=P((e,t)=>{let o=T(ne().getArrowProps(),e);return s(D.div,{...o,ref:t})});Ni.displayName="PopoverArrow";var ki=P((e,t)=>{let o=T(ne().getArrowTipProps(),e);return s(D.div,{...o,ref:t})});ki.displayName="PopoverArrowTip";var Ri=P((e,t)=>{let o=T(ne().getCloseTriggerProps(),e);return s(D.button,{...o,ref:t})});Ri.displayName="PopoverCloseTrigger";var[Le,he]=re({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var Si=P((e,t)=>{let o=ne(),r=he(),n=T(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});Si.displayName="PopoverContent";var mp=e=>e.children(ne());var Oi=P((e,t)=>{let o=T(ne().getDescriptionProps(),e);return s(D.div,{...o,ref:t})});Oi.displayName="PopoverDescription";var Ai=P((e,t)=>{let o=T(ne().getIndicatorProps(),e);return s(D.div,{...o,ref:t})});Ai.displayName="PopoverIndicator";var Mi=P((e,t)=>{let o=ne(),r=he(),n=T(o.getPositionerProps(),e);return r.unmounted?null:s(D.div,{...n,ref:t})});Mi.displayName="PopoverPositioner";var[Nb,Xe]=re({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var[Sb,ho]=re({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});var fp=e=>{let t=ue(),{getRootNode:o}=Xe(),{dir:r}=ho(),n={id:t,dir:r,getRootNode:o,...e},i=ht(Ei,n);return mi(i,xt)};var ie=()=>(e,t)=>t.reduce((o,r)=>{let[n,i]=o,l=r;return i[l]!==void 0&&(n[l]=i[l]),delete i[l],[n,i]},[{},{...e}]);var Fe=e=>ie()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function gp(e,t={}){let{sync:o=!1}=t,r=U1(e);return ur((...n)=>o?queueMicrotask(()=>r.current?.(...n)):r.current?.(...n),[o,r])}function U1(e){let t=$(e);return t.current=e,t}function Di(e,t){let{state:o,send:r,context:n}=e,i=o.matches("mounted","unmountSuspended");return{skip:!n.get("initial"),present:i,setNode(l){l&&r({type:"NODE.SET",node:l})},unmount(){r({type:"UNMOUNT"})}}}var Li=$t({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["cleanupNode"],watch({track:e,prop:t,send:o}){e([()=>t("present")],()=>{o({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();let o=t.get("node");if(!o)return;let r=te(o),n=new r.CustomEvent("exitcomplete",{bubbles:!1});o.dispatchEvent(n)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ge(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:o,prop:r})=>{let n=r("present");if(n)return o({type:"MOUNT",src:"presence.changed"});let i=t.get("node");if(!n&&i?.ownerDocument.visibilityState==="hidden")return o({type:"UNMOUNT",src:"visibilitychange"});K(()=>{if(r("present"))return;let l=on(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?o({type:"UNMOUNT",src:"presence.changed"}):o({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{K(()=>{e.set("prevAnimationName",on(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:o,prop:r})=>{let n=t.get("node");if(!n)return;let i=p=>{(p.composedPath?.()?.[0]??p.target)===n&&e.set("prevAnimationName",on(t.get("styles")))},l=p=>{let u=on(t.get("styles"));me(p)===n&&u===e.get("unmountAnimationName")&&!r("present")&&o({type:"UNMOUNT",src:"animationend"})},a=p=>{me(p)===n&&!r("present")&&o({type:"UNMOUNT",src:"animationcancel"})};n.addEventListener("animationstart",i),n.addEventListener("animationcancel",a),n.addEventListener("animationend",l);let c=Mt(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",l),ro(()=>c())}}}}});function on(e){return e?.animationName||"none"}var Ee=(e={})=>{let{lazyMount:t,unmountOnExit:o,present:r,skipAnimationOnMount:n=!1,...i}=e,l=$(!1),a={...i,present:r,onExitComplete:gp(e.onExitComplete)},c=ht(Li,a),p=Di(c,xt);p.present&&(l.current=!0);let u=!p.present&&!l.current&&t||o&&!p.present&&l.current,d=()=>({"data-state":p.skip&&n?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:d,present:p.present,unmounted:u}};var hp=e=>{let[t,{children:o,...r}]=Fe(e),n=fp(r);return s(Qr,{value:n,children:s(Le,{value:Ee(T({present:n.open},t)),children:o})})};var xp=e=>{let[t,{value:o,children:r}]=Fe(e);return s(Qr,{value:o,children:s(Le,{value:Ee(T({present:o.open},t)),children:r})})};var Fi=P((e,t)=>{let o=T(ne().getTitleProps(),e);return s(D.div,{...o,ref:t})});Fi.displayName="PopoverTitle";var $1=ie(),Bi=P((e,t)=>{let[o,r]=$1(e,["value"]),n=ne(),i=he(),l=n.getTriggerProps(o),a=T({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(D.button,{...a,ref:t})});Bi.displayName="PopoverTrigger";var bp=Object.defineProperty,bt=(e,t)=>{let o={};for(var r in e)bp(o,r,{get:e[r],enumerable:!0});return t||bp(o,Symbol.toStringTag,{value:"Module"}),o};var xo=bt({Anchor:()=>Ti,Arrow:()=>Ni,ArrowTip:()=>ki,CloseTrigger:()=>Ri,Content:()=>Si,Context:()=>mp,Description:()=>Oi,Indicator:()=>Ai,Positioner:()=>Mi,Root:()=>hp,RootProvider:()=>xp,Title:()=>Fi,Trigger:()=>Bi});var jt=e=>{let{children:t,disabled:o}=e,[r,n]=ee(e.container?.current),i=mr(K1,()=>!1,()=>!0),{getRootNode:l}=Xe();if(X(()=>{n(()=>e.container?.current)},[e.container]),i||o)return s(Y,{children:t});let a=r??j1(l);return s(Y,{children:cr.map(t,c=>en(c,a))})},j1=e=>{let t=e?.(),o=t.getRootNode();return tt(o)?o:Q(t).body},K1=()=>()=>{};var q1="polli:rounded-lg polli:bg-surface-menu polli:shadow-lg",vt=({trigger:e,children:t,align:o="start",side:r="bottom",open:n,portalled:i=!0,onOpenChange:l,className:a,panelStyle:c})=>{let p=ue(),[u,d]=ee(!1),g=n!==void 0,f=g?n:u,m=v=>{g||d(v),l?.(v)};return x(xo.Root,{ids:{trigger:p},open:f,portalled:i,onOpenChange:v=>m(v.open),positioning:{placement:`${r}-${o}`,strategy:i?"absolute":"fixed"},children:[s(xo.Trigger,{asChild:!0,children:e(f)}),s(jt,{disabled:!i,children:s(xo.Positioner,{children:s(xo.Content,{"aria-labelledby":p,style:c,className:b("polli:z-[120] polli:overflow-hidden polli:focus:outline-none",q1,a),children:typeof t=="function"?t(()=>m(!1)):t})})})]})};var F={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function Y1(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 20h20"})]})}function X1(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"8",r:"4"}),s("path",{d:"M4 21a8 8 0 0 1 16 0"})]})}function Vi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M5 12h14M13 6l6 6-6 6"})})}function Z1(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 3h6"}),s("path",{d:"M10 3v6.5L4.5 18a2 2 0 0 0 1.7 3h11.6a2 2 0 0 0 1.7-3L14 9.5V3"}),s("path",{d:"M7 14h10"})]})}function J1(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 8V4H8"}),s("rect",{x:"4",y:"8",width:"16",height:"12",rx:"2"}),s("path",{d:"M2 14h2M20 14h2"}),s("path",{d:"M9 13v2M15 13v2"})]})}function Q1(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 4h5a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z"}),s("path",{d:"M20 4h-5a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h6z"})]})}function e0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 2 1.9 1.9M14.1 3.9 16 2"}),s("path",{d:"M9 7V6a3 3 0 0 1 6 0v1"}),s("path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a6 6 0 0 1 12 0v3c0 3.3-2.7 6-6 6Z"}),s("path",{d:"M12 20v-9M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M17.5 9C19.4 8.8 21 7.1 21 5M18 13h4M21 21c0-2.1-1.7-3.9-3.8-4"})]})}function Re(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,strokeWidth:2.5,...e,children:s("polyline",{points:"20 6 9 17 4 12"})})}function Kt(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),s("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function Hi(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("path",{d:"M12 7v5l3 2"})]})}function t0(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M20.32 4.37A19.8 19.8 0 0 0 15.36 2.83a.07.07 0 0 0-.08.04c-.21.38-.45.88-.62 1.27a18.27 18.27 0 0 0-5.52 0 12.84 12.84 0 0 0-.63-1.27.08.08 0 0 0-.08-.04A19.74 19.74 0 0 0 3.47 4.37a.07.07 0 0 0-.03.03C.31 9.07-.55 13.61-.13 18.1a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 6.08 3.07.08.08 0 0 0 .09-.03c.47-.64.88-1.31 1.24-2.02a.08.08 0 0 0-.04-.1 13.08 13.08 0 0 1-1.9-.91.08.08 0 0 1-.01-.13c.13-.1.25-.2.37-.29a.07.07 0 0 1 .08-.01 14.24 14.24 0 0 0 12.38 0 .07.07 0 0 1 .08.01c.12.1.25.2.38.3a.08.08 0 0 1-.01.12 12.22 12.22 0 0 1-1.9.9.08.08 0 0 0-.04.11c.36.7.77 1.38 1.23 2.02a.08.08 0 0 0 .1.03 19.84 19.84 0 0 0 6.08-3.07.08.08 0 0 0 .03-.05c.5-5.2-.84-9.7-3.77-13.71a.06.06 0 0 0-.03-.03ZM8.02 15.37c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.96 2.4-2.16 2.4Zm7.96 0c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.95 2.4-2.16 2.4Z"})})}function o0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"}),s("circle",{cx:"12",cy:"12",r:"4"}),s("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor",stroke:"none"})]})}function r0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64Z"})})}function n0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.34V9h3.42v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.32 7.43a2.07 2.07 0 1 1 0-4.13 2.07 2.07 0 0 1 0 4.13ZM7.1 20.45H3.54V9H7.1v11.45Z"})})}function i0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),s("polyline",{points:"7 10 12 15 17 10"}),s("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function l0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5"})})}function s0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M7 4.5v15l12-7.5z"})})}function a0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M6 4h4v16H6zM14 4h4v16h-4z"})})}function c0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M17.5 19H19a4 4 0 0 0 .4-8A7.5 7.5 0 0 0 5 9.5 5 5 0 0 0 6 19h1.5"}),s("path",{d:"m8.5 15.5 3.5-3.5 3.5 3.5M12 12v9"})]})}function rt(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M7 17 17 7M9 7h8v8"})})}function p0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 3 4 1.5L16 3v18l-4-1.5L8 21z"}),s("path",{d:"M8 3v18M16 3v18"})]})}function u0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),s("circle",{cx:"18",cy:"6",r:"3"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("path",{d:"M18 9a9 9 0 0 1-9 9"})]})}function d0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"6",cy:"6",r:"3"}),s("circle",{cx:"18",cy:"18",r:"3"}),s("path",{d:"M6 9v12M13 6h3a2 2 0 0 1 2 2v7"})]})}function m0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21.42 10.92a1 1 0 0 0-.02-1.84L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.57 3.91a2 2 0 0 0 1.66 0z"}),s("path",{d:"M22 10v6"}),s("path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5"})]})}function f0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 3l1.9 5.8a2 2 0 0 0 1.3 1.3L21 12l-5.8 1.9a2 2 0 0 0-1.3 1.3L12 21l-1.9-5.8a2 2 0 0 0-1.3-1.3L3 12l5.8-1.9a2 2 0 0 0 1.3-1.3z"})})}function g0(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M12 .5A11.5 11.5 0 0 0 8.36 22.9c.58.11.79-.25.79-.56v-2.16c-3.21.7-3.89-1.38-3.89-1.38-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.76 2.71 1.25 3.37.96.11-.75.4-1.25.74-1.54-2.56-.29-5.26-1.28-5.26-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.06 0 0 .97-.31 3.16 1.18a10.88 10.88 0 0 1 5.76 0c2.19-1.49 3.15-1.18 3.15-1.18.63 1.6.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.19c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5Z"})})}function rn(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),s("circle",{cx:"9",cy:"9",r:"2"}),s("path",{d:"m21 15-5-5L5 21"})]})}function h0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m21 16-9 5-9-5V8l9-5 9 5z"}),s("path",{d:"m3 8 9 5 9-5"}),s("path",{d:"M12 13v8"})]})}function x0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 18V5l12-2v13"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("circle",{cx:"18",cy:"16",r:"3"})]})}function b0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),s("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function v0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10 17l5-5-5-5"}),s("path",{d:"M15 12H3"}),s("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"})]})}function y0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function C0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),s("path",{d:"m3 7 9 7 9-7"})]})}function w0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"8",height:"16",rx:"1.5"}),s("rect",{x:"14",y:"4",width:"8",height:"16",rx:"1.5"}),s("path",{d:"M10 12h4"})]})}function P0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 7h16M4 12h16M4 17h16"})})}function E0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M5 4h12a1 1 0 0 1 1 1v14a1 1 0 0 0 1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1z"}),s("path",{d:"M18 8h2a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2"}),s("path",{d:"M7 8h7M7 12h7M7 16h4"})]})}function _i(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 5v14M5 12h14"})})}function I0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"4 8 8 12 4 16"}),s("line",{x1:"12",y1:"20",x2:"20",y2:"20"})]})}function Wi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l2.1 2.1a1 1 0 0 0 1.4 0l4-4a6 6 0 0 1-8 8l-8 8a2.8 2.8 0 0 1-4-4l8-8a6 6 0 0 1 8-8l-4 4Z"})})}function T0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("circle",{cx:"12",cy:"12",r:"5"}),s("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"})]})}function N0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 9h16M4 15h16M10 3 8 21M16 3l-2 18"})})}function k0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 18a8 8 0 1 1 16 0"}),s("path",{d:"M12 18l3.5-5"}),s("path",{d:"M7 18h10"}),s("path",{d:"M7.5 12.5 6 11"}),s("path",{d:"M16.5 12.5 18 11"})]})}function zi(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10.3 3.1 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.1a2 2 0 0 0-3.4 0Z"}),s("path",{d:"M12 9v4M12 17h.01"})]})}function R0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"3 17 9 11 13 15 21 7"}),s("polyline",{points:"15 7 21 7 21 13"})]})}function S0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"10",cy:"6",rx:"6",ry:"3"}),s("path",{d:"M4 6v8c0 1.7 2.7 3 6 3 1.2 0 2.4-.2 3.3-.5"}),s("path",{d:"M16 6v4"}),s("path",{d:"M4 10c0 1.7 2.7 3 6 3 1.1 0 2.1-.1 3-.4"}),s("path",{d:"M18 14v6"}),s("path",{d:"M15 17h6"})]})}function O0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 7a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v2H5a2 2 0 0 0-2 2V7Z"}),s("path",{d:"M3 11a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z"}),s("circle",{cx:"17",cy:"14",r:"1.25",fill:"currentColor"})]})}function A0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M6 3h12v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21Z"}),s("path",{d:"M9 8h6M9 12h6M9 16h3"})]})}function Ui(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})})}function Gi(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"4"}),s("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]})}function qt(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M18 6 6 18M6 6l12 12"})})}function $i(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 6h18"}),s("path",{d:"M8 6V4h8v2"}),s("path",{d:"m19 6-1 15H6L5 6"}),s("path",{d:"M10 11v6M14 11v6"})]})}function M0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function ji(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"6",width:"18",height:"15",rx:"3"}),s("path",{d:"M12 2v4M3 11H1v5h2M21 11h2v5h-2M8 17h8"}),s("circle",{cx:"9",cy:"12",r:"1"}),s("circle",{cx:"15",cy:"12",r:"1"})]})}function D0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"})]})}function L0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"}),s("path",{d:"M3 3l18 18"})]})}function F0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m22 8-6 4 6 4V8z"}),s("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]})}function B0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),s("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),s("path",{d:"M12 19v3"})]})}function V0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M11 5 6 9H2v6h4l5 4z"}),s("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),s("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]})}function H0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m3 11 18-5v12L3 14v-3z"}),s("path",{d:"m7 15 1.5 6H14l-2-7"})]})}function _0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M9 18h6M10 22h4M15.1 14c.2-1 .6-1.7 1.4-2.5A4.6 4.6 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.8.8 1.2 1.5 1.4 2.5"})})}function W0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),s("path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),s("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),s("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"})]})}function z0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"11",cy:"11",r:"7"}),s("path",{d:"m21 21-4.3-4.3"})]})}function U0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function G0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2v10"}),s("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function $0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z"}),s("path",{d:"M20 3v4"}),s("path",{d:"M22 5h-4"}),s("path",{d:"M4 17v2"}),s("path",{d:"M5 18H3"})]})}function j0({filled:e=!1,...t}){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,fill:e?"currentColor":"none",...t,children:s("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function K0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"})})}function q0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),s("path",{d:"M3 5v14a9 3 0 0 0 18 0V5"}),s("path",{d:"M3 12a9 3 0 0 0 18 0"})]})}function Y0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 10h20"})]})}function X0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M7 20h10"}),s("path",{d:"M10 20c5.5-2.5.8-6.4 3-10"}),s("path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z"}),s("path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z"})]})}function Z0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 20h9"}),s("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function J0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"7.5",cy:"15.5",r:"5.5"}),s("path",{d:"m21 2-9.6 9.6"}),s("path",{d:"m15.5 7.5 3 3L22 7l-3-3"})]})}function Q0(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"10"}),s("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),s("path",{d:"M2 12h20"})]})}function eg(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M19 12H5"}),s("path",{d:"m12 19-7-7 7-7"})]})}function tg(e){return x("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),s("path",{d:"M21 3v6h-6"})]})}function og(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"?":t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]??""}${t.at(-1)?.[0]??""}`.toUpperCase()}function Ki({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,inline:n=!1}){let i=n?"polli:h-6 polli:w-6":o!=null?"polli:h-11 polli:w-11":"polli:h-8 polli:w-8",l=b(i,n&&"polli:transition-transform polli:group-hover:scale-110 polli:group-hover:brightness-110 polli:motion-reduce:transition-none polli:motion-reduce:group-hover:scale-100"),a=t?s("img",{src:t,alt:"",className:b(l,"polli:shrink-0 polli:rounded-full polli:object-cover")}):s("span",{role:"img","aria-label":`${e} avatar`,className:b(l,"polli:flex polli:shrink-0 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-pale polli:text-xs polli:font-semibold polli:text-theme-text-strong"),children:og(e)});return r?s("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":"Open dashboard",title:"Open dashboard",className:"polli:shrink-0 polli:rounded-full polli:cursor-pointer polli:transition-transform polli:hover:scale-105 polli:hover:brightness-110 polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current polli:motion-reduce:transition-none polli:motion-reduce:hover:scale-100",children:a}):a}function vp({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,className:n}){return x("span",{className:b("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-surface-opaque polli:p-1 polli:pr-3",n),children:[s(Ki,{name:e,avatarUrl:t,dashboardHref:r,secondaryContent:o}),s(qi,{name:e,secondaryContent:o})]})}function yp({name:e,avatarUrl:t,href:o,className:r}){return x("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:b("polli:group polli:inline-flex polli:max-w-full polli:min-w-0 polli:items-center polli:gap-1.5 polli:rounded-full polli:bg-theme-bg-subtle polli:p-0.5 polli:pr-2.5 polli:align-middle polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current",r),children:[s(Ki,{name:e,avatarUrl:t,inline:!0}),s(qi,{name:e}),s(rt,{"aria-hidden":"true",className:"polli:-ml-0.5 polli:h-3 polli:w-3 polli:shrink-0 polli:text-theme-text-strong polli:opacity-65"})]})}function qi({name:e,secondaryContent:t,secondaryId:o}){return x("span",{className:"polli:flex polli:min-w-0 polli:flex-col polli:items-start polli:text-left",children:[s("span",{title:e,className:"polli:max-w-full polli:truncate polli:text-sm polli:font-medium polli:leading-5 polli:text-theme-text-strong",children:e}),t!=null&&s("span",{id:o,className:"polli:inline-flex polli:min-h-5 polli:items-center polli:whitespace-nowrap polli:text-xs polli:leading-4 polli:text-theme-text-base",children:t})]})}function Yi({name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r,children:n,className:i,menuClassName:l,side:a="bottom",menuLabel:c=`Account menu for ${e}`}){let p=ue(),u=s(Ki,{name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r});return x("div",{"data-theme":"accent",className:b("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-theme-bg-active polli:p-1 polli:pr-3 polli:text-theme-text-strong polli:transition-colors polli:hover:bg-theme-bg-hover",i),children:[o&&u,s(vt,{align:"end",side:a,className:b("polli:w-max polli:min-w-[var(--reference-width)] polli:p-1",l),trigger:d=>x("button",{type:"button","aria-label":c,"aria-describedby":r!=null?p:void 0,className:"polli-control polli:flex polli:min-w-0 polli:flex-1 polli:items-center polli:gap-2 polli:self-stretch polli:rounded-full polli:text-theme-text-strong",children:[!o&&u,s(qi,{name:e,secondaryContent:r,secondaryId:p}),s(de,{expanded:d,className:"polli:ml-auto polli:h-4 polli:w-4 polli:text-theme-text-strong"})]}),children:n})]})}var rg={display:"polli:font-heading polli:text-5xl polli:leading-none",title:"polli:font-heading polli:text-4xl polli:leading-none",section:"polli:font-subheading polli:text-2xl polli:leading-tight",subsection:"polli:font-subheading polli:text-xl polli:leading-tight",card:"polli:font-subheading polli:text-lg polli:leading-tight"},ng={body:"polli:text-base polli:leading-relaxed",sm:"polli:text-sm polli:leading-6",xs:"polli:text-xs polli:leading-normal",micro:"polli:text-micro polli:leading-normal"},ig={base:"polli:text-theme-text-base",strong:"polli:text-theme-text-strong",soft:"polli:text-theme-text-soft",muted:"polli:text-theme-text-muted"},lg={normal:"polli:font-normal",medium:"polli:font-medium",semibold:"polli:font-semibold",bold:"polli:font-bold"};function Xi(e,t){return b("polli:break-words polli:text-theme-text-strong",rg[e],t)}function sg({size:e,tone:t,weight:o,className:r}){return b("polli:break-words polli:font-body",ng[e],ig[t],lg[o],r)}function bo({as:e,size:t="section",className:o,children:r,...n}){return s(e||"h2",{...n,className:Xi(t,o),children:r})}function ce({as:e,size:t="body",tone:o="base",weight:r="normal",className:n,children:i,...l}){return s(e||"p",{...l,className:sg({size:t,tone:o,weight:r,className:n}),children:i})}var ag={info:"polli:bg-theme-bg-pale polli:text-theme-text-strong",advisory:"polli:bg-intent-warning-bg-light/45 polli:text-theme-text-base",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},Cp=({intent:e="info",title:t,className:o,children:r,...n})=>x("div",{...n,role:e==="danger"?"alert":"status",className:b("polli:rounded-xl polli:px-3 polli:py-2 polli:text-sm",e==="advisory"&&"polli:flex polli:items-start polli:gap-2",ag[e],o),children:[e==="advisory"&&s(zi,{className:"polli:mt-0.5 polli:h-4 polli:w-4 polli:shrink-0 polli:text-intent-warning-text"}),x("div",{className:"polli:min-w-0",children:[t&&(e==="advisory"?x(Y,{children:[s("strong",{className:"polli:font-semibold polli:text-theme-text-strong",children:t})," ","\u2014"," "]}):s(ce,{as:"div",size:"xs",tone:"strong",weight:"bold",className:"polli:mb-1 polli:uppercase polli:tracking-wide",children:t})),r]})]});var wp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.891 105.6" fill="currentColor">%0A <g transform="translate(-13.81 -16.241) scale(0.921)"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></g>%0A <g transform="translate(-68.454 -154.133) scale(4.051)"><path d="M82.117 39.523c-.152.172-.191 2.747-.172 9.192l.059 8.945h4.773l.059-9.039c.039-7.113 0-9.078-.191-9.21-.438-.266-4.278-.192-4.528.112m7.621.117c-.21.4-.265 16.895-.054 17.696.093.398.187.418 2.441.418 1.969 0 2.371-.059 2.465-.305.21-.535.133-17.43-.074-17.828-.192-.324-.422-.363-2.391-.363-1.965 0-2.195.039-2.387.383m7.774-.27c-.075.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m50.312.152c-.156.172-.21.88-.172 1.965l.055 1.68h4.777l.055-1.793c.04-1.316-.02-1.852-.191-1.965-.133-.074-1.164-.152-2.27-.152-1.512 0-2.101.078-2.254.265m76.512-.152c-.074.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m-86.539 1.527c-.059.172-.117 1.145-.117 2.192v1.887h-.84c-.973 0-1.07.136-1.07 1.601 0 1.184.21 1.45 1.183 1.45h.727v2.042c0 1.145.058 2.899.132 3.907l.118 1.87h1.832l.058.895.055.918h5.54l.058-1.316c.039-.934-.02-1.375-.192-1.469-.133-.098-.781-.172-1.449-.172h-1.187l.039-3.3.058-3.278 1.336-.098 1.336-.093v-2.86l-1.336-.097-1.336-.094-.058-2.156-.055-2.133h-2.352c-1.984 0-2.386.054-2.48.304m-88.414 4.215c-.078.055-.137 4.04-.137 8.848 0 8.14.02 8.75.344 8.883.172.097 1.3.133 2.484.097l2.14-.058v-5.13h3.532c2.695 0 3.535-.058 3.555-.245.02-.117.035-.535.054-.899.02-.668.02-.668 1.032-.722l.996-.059v-8.906l-.594-.113a7.4 7.4 0 0 0-1.05-.114c-.419 0-.458-.078-.458-.86v-.858H55.38l-.059.707c-.054.726-.054.726-.953.78l-.918.06v-1.547h-1.97c-1.085 0-2.042.058-2.097.136m9.031 6.235v3.336l-2.023.058c-1.11.035-2.063.02-2.102-.02-.039-.038-.074-1.562-.074-3.394v-3.3h4.2Zm9.32-5.473c-.054.875-.074.914-.629.875a5.6 5.6 0 0 0-.992.059l-.441.078v8.941l1.012.059.996.054.054.918.059.895 4.91-.04 4.906-.054.059-.918.059-.894h2.082v-4.461c0-4.328-.02-4.485-.383-4.598-.211-.074-.668-.094-1.012-.055-.594.055-.613.036-.707-.8l-.098-.86-4.906-.058-4.91-.04Zm6.914 5.492v3.336h-4.007v-6.676h4.007Zm22.864-6.254c-.075.055-.133 2.934-.133 6.387v6.273l2.351-.058 2.329-.055.058-6.351.035-6.332h-2.25c-1.242 0-2.332.058-2.39.136m6.972 6.196.059 6.351h4.773l.059-4.824.04-4.809h4.007l.039 4.809.059 4.824h4.773l.059-5.379.039-5.379-.996-.054-1.012-.059-.055-.914-.058-.898-3.094.039-3.094.058-.059.703-.058.727h-1.89v-1.527h-3.63Zm17-4.864.055 1.489 3.785.058 3.781.035-.058.918-.059.895-3.148.097-3.153.094-.019.762v.766l-.973.054c-.824.04-.996.133-1.09.477-.152.555-.152 1.773 0 2.879l.133.879h1.832l.059.894.058.918 2.922.055 2.903.058v-1.562l.918.055c.898.058.898.058.953.761l.058.727h3.61V46.922l-.574-.133c-.305-.074-.649-.074-.743-.02-.441.29-.785-.132-.785-.953v-.84h-10.523Zm7.602 7.399v.86h-3.629v-1.716h3.629Zm18.621-8.637c-.055.133-.074 2.992-.055 6.352l.055 6.101h4.777V45.074l-2.351-.058c-1.778-.04-2.367.02-2.426.191m9.168 0a5.3 5.3 0 0 0-.133.914c-.058.668-.058.668-1.07.727l-.992.054.039 4.426.054 4.422.997.059.992.058.058.895.055.898 4.93.055 4.906.039v-1.906h2.101v-8.961h-.742c-1.207 0-1.36-.137-1.36-1.07v-.84h-4.866c-3.746 0-4.91.058-4.969.23m6.973 6.16v3.336h-4.012v-6.676h4.012Zm7.179-6.234c-.054.113-.035 8.406.059 11.894l.02.727h2.367c1.988 0 2.386-.059 2.484-.305.059-.172.113-2.347.113-4.863v-4.574l1.97.054 1.948.059.094 4.766.098 4.77h4.773V46.98l-.957-.094-.953-.098-.094-.855-.097-.86-3.094-.058-3.113-.04v1.528h-1.91v-1.527h-1.798c-.992 0-1.851.078-1.91.156m18.321.075a5 5 0 0 0-.137.914c-.055.668-.055.668-1.05.727l-1.013.054v1.891c0 1.027.059 2 .118 2.172.074.23.379.305 1.03.305h.934l.06.8.058.82 2.73.06 2.711.058v1.695h-3.57c-1.989 0-3.707.074-3.84.172-.172.094-.23.535-.191 1.469l.058 1.316h10.313l.058-.898.055-.895.996-.058.992-.059.059-1.617c.074-2.367.035-2.48-1.11-2.48h-.937l-.055-.821-.058-.8-2.77-.094-2.77-.098v-1.715l3.516-.059c1.95-.02 3.61-.113 3.723-.207.133-.117.191-.726.152-1.527l-.074-1.355h-4.95c-3.8 0-4.984.058-5.038.23m19.902 0c-.04.133-.04.8.035 1.488l.117 1.239 3.684.058 3.668.035v1.91h-6.3v1.715h-2.102v4.176l1.011.059.992.054.06.918.054.914 2.906-.058 2.902-.055.059-.726c.055-.707.074-.707.894-.707.825 0 .844 0 .899.707l.059.726 1.87.055 1.852.058V52.32c0-4.215-.055-5.433-.226-5.453-.137-.02-.594-.039-1.012-.058-.766-.02-.766-.02-.863-.875l-.094-.86-5.176-.058c-4.05-.04-5.215 0-5.289.191m7.504 8.637v.879l-1.758-.059-1.773-.055-.059-.535c-.113-1.011 0-1.086 1.871-1.086h1.719Zm7.449-2.477v6.387h4.719l.113-2.156a67 67 0 0 0 0-8.293l-.113-2.328h-4.719Zm-22.137 2.27c-.152.172-.21.894-.171 2.133l.058 1.89 2.063.055 2.062.058-.058-2.156-.055-2.152-1.836-.059c-1.414-.039-1.89.02-2.063.23m0 0"/></g>%0A</svg>%0A';var Pp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 17.6409 119.9998 114.7498" fill="currentColor"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></svg>%0A';var Ep=e=>({WebkitMask:`url('${e}') center / contain no-repeat`,mask:`url('${e}') center / contain no-repeat`}),ug={mark:Ep(Pp),lockup:Ep(wp)};function vo({variant:e="mark",className:t}){return s("span",{"aria-hidden":"true",className:b("polli:block polli:shrink-0 polli:bg-current",t),style:ug[e]})}function nn({appName:e,href:t="/",size:o="md",className:r}){return x("a",{href:t,className:b("polli:inline-flex polli:min-w-0 polli:shrink-0 polli:items-center polli:text-theme-text-strong",o==="md"?"polli:gap-3":"polli:gap-2.5",r),children:[s(vo,{className:o==="md"?"polli:h-8 polli:w-8":"polli:h-7 polli:w-7"}),s("span",{className:b("polli:min-w-0 polli:truncate polli:font-subheading polli:font-medium polli:leading-none",o==="md"?"polli:text-2xl":"polli:text-xl"),children:e})]})}function Ip(e){return e===window?window.scrollY:e.scrollTop}function Tp({children:e,navLabel:t,appName:o,autoHide:r=!1,scrollTargetRef:n,brandHref:i,brandLabel:l="Pollinations",className:a,innerClassName:c,navClassName:p}){let[u,d]=ee(!1);return X(()=>{if(!r||typeof window>"u"){d(!1);return}let g=n?.current??window,f=Ip(g),m=0,v=()=>{m||(m=window.requestAnimationFrame(()=>{m=0;let h=Ip(g),C=h-f;h<16?d(!1):C>8?d(!0):C<-8&&d(!1),f=h}))};return g.addEventListener("scroll",v,{passive:!0}),()=>{m&&window.cancelAnimationFrame(m),g.removeEventListener("scroll",v)}},[r,n]),s("header",{className:b("polli:sticky polli:top-0 polli:z-30 polli:bg-app-bg polli:py-4","polli:transition-transform polli:duration-200 polli:ease-out",r&&"polli:will-change-transform",u?"polli:-translate-y-full":"polli:translate-y-0",a),onFocusCapture:()=>d(!1),children:x("div",{className:b("polli:mx-auto polli:flex polli:w-full polli:max-w-5xl polli:flex-col polli:gap-4 polli:px-4 polli:sm:flex-row polli:sm:items-center polli:sm:justify-between polli:sm:px-6",c),children:[o?s(nn,{appName:o,href:i}):x("a",{href:i??"https://pollinations.ai",target:"_blank",rel:"noopener noreferrer",className:"polli:inline-flex polli:shrink-0 polli:items-center polli:text-theme-text-strong",children:[s("span",{className:"polli:sr-only",children:l}),s(vo,{variant:"lockup",className:"polli:h-7 polli:w-[220px] polli:max-w-full"})]}),e?s("nav",{"aria-label":t,className:b("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-2",p),children:e}):null]})})}var dg={panel:"polli:rounded-3xl polli:bg-surface-block polli:p-4 polli:sm:rounded-block polli:sm:p-7",card:"polli-surface-card polli:rounded-card polli:bg-surface-opaque polli:p-3.5 polli:sm:p-4","card-themed":"polli:rounded-card polli:bg-theme-bg-pale polli:p-3.5 polli:sm:p-4"};function yt({as:e,variant:t="card",className:o,children:r,...n}){return s(e||"div",{...n,className:b("polli:min-w-0",dg[t],o),children:r})}function Np({title:e,body:t,children:o,tone:r="theme",className:n}){return x(yt,{as:"section",variant:"panel",className:b("polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-8 polli:rounded-3xl polli:px-6 polli:py-9 polli:sm:gap-10 polli:sm:px-10 polli:sm:py-12",r==="dark"?"dark polli:bg-brand-dark":void 0,n),children:[x("div",{className:"polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5",children:[s(bo,{size:"section",className:"polli:text-3xl polli:sm:text-4xl",children:e}),s(ce,{className:"polli:text-theme-text-strong/75",children:t})]}),s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-3",children:o})]})}var mg={y:"polli:overflow-y-auto polli:overflow-x-hidden",x:"polli:overflow-x-auto polli:overflow-y-hidden",both:"polli:overflow-auto"};function fg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Ue=P(({axis:e="y",scrollbar:t="subtle",className:o,children:r,...n},i)=>{let l=$(null),a=ur(c=>{l.current=c,fg(i,c)},[i]);return X(()=>{if(t==="native")return;let c=l.current;if(!c)return;let p=null,u=()=>{p!==null&&(window.clearTimeout(p),p=null)},d=()=>{c.dataset.scrollbarActive="true",u()},g=()=>{c.dataset.scrollbarActive="false",u()},f=()=>{u(),p=window.setTimeout(g,2e3)},m=()=>{d(),f()};return g(),c.addEventListener("scroll",m,{passive:!0}),c.addEventListener("wheel",m,{passive:!0}),c.addEventListener("touchstart",m,{passive:!0}),c.addEventListener("pointerdown",m),c.addEventListener("keydown",m),c.addEventListener("focusin",m),c.addEventListener("focusout",f),()=>{u(),c.removeEventListener("scroll",m),c.removeEventListener("wheel",m),c.removeEventListener("touchstart",m),c.removeEventListener("pointerdown",m),c.removeEventListener("keydown",m),c.removeEventListener("focusin",m),c.removeEventListener("focusout",f)}},[t]),s("div",{...n,ref:a,className:b(t==="subtle"&&"polli-scrollbar-subtle","polli:min-w-0 polli:max-w-full",mg[e],o),children:r})});Ue.displayName="ScrollArea";var Zi=P(({children:e,className:t,viewportClassName:o,showScrollButton:r=!1,onScrollToBottom:n,scrollButtonLabel:i="Scroll to latest message",...l},a)=>x("div",{className:b("polli:relative polli:min-h-0",t),children:[s(Ue,{...l,ref:a,className:b("polli:h-full polli:min-h-0",o),children:e}),r&&n&&s("button",{type:"button","aria-label":i,title:i,onClick:n,className:"polli-control polli:absolute polli:bottom-3 polli:left-1/2 polli:flex polli:size-9 polli:-translate-x-1/2 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-full polli:border polli:border-theme-border/60 polli:bg-surface-opaque polli:text-theme-text-strong polli:transition-transform polli:hover:translate-y-0.5",children:s(Vi,{className:"polli:size-4 polli:rotate-90"})})]}));Zi.displayName="ChatConversation";function kp({className:e,...t}){return s("div",{className:b("polli:flex polli:min-w-0 polli:flex-col polli:gap-5",e),...t})}function Rp({from:e,className:t,children:o,...r}){return s("article",{"data-role":e,className:b("polli:group/message polli:flex polli:w-fit polli:max-w-full polli:min-w-0 polli:flex-col polli:gap-3 polli:[overflow-wrap:anywhere] polli:rounded-xl polli:px-4 polli:py-3",e==="user"?"polli:ml-auto polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:mr-auto polli:bg-surface-opaque polli:text-theme-text-base",t),...r,children:o})}function Sp({from:e,label:t,icon:o,className:r,...n}){let i=t??(e==="user"?"You":e==="assistant"?"Agent":"System");return x("header",{className:b("polli:flex polli:items-center polli:gap-2",r),...n,children:[e==="assistant"&&(o??s("span",{className:"polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(ji,{className:"polli:size-3.5"})})),s(ce,{as:"span",size:"xs",tone:"muted",weight:"bold",className:"polli:uppercase polli:tracking-wide",children:i})]})}function Op({className:e,...t}){return s("div",{className:b("polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",e),...t})}function Ap({className:e,...t}){return s("footer",{className:b("polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",e),...t})}var jo=P(({className:e,error:t,rows:o=4,...r},n)=>s("textarea",{ref:n,rows:o,"data-error":t?"true":void 0,className:b("polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2","polli:min-h-20 polli:resize-y polli:font-body polli:text-base","polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",e),...r}));jo.displayName="Textarea";function Mp({className:e,...t}){return s("fieldset",{className:b("polli:m-0 polli:min-w-0 polli:p-0",e),...t})}var Ji=P(({className:e,...t},o)=>s(jo,{...t,ref:o,className:b("polli:resize-none",e)}));Ji.displayName="ChatPromptTextarea";function Dp({start:e,end:t,children:o,className:r,...n}){return s("div",{className:b("polli:flex polli:flex-wrap polli:items-end polli:gap-2",r),...n,children:o??x(Y,{children:[s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-2",children:e}),s("div",{className:"polli:ml-auto polli:flex polli:items-center polli:gap-2",children:t})]})})}var gg={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none",sm:"polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1",md:"polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2",lg:"polli:min-h-12 polli:px-6 polli:py-3 polli:text-base"},hg={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:px-2 polli:py-1 polli:text-xs",sm:"polli:px-4 polli:py-2 polli:text-sm",md:"polli:px-7 polli:py-3.5 polli:text-base",lg:"polli:px-8 polli:py-4 polli:text-lg"},xg={pill:"polli:rounded-full",raised:"polli:rounded-xl polli:border-r-[3px] polli:border-b-[3px] polli:border-solid polli:border-theme-text-strong/20 polli:hover:border-theme-text-strong/45"},bg="polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",Lp="polli:border polli:border-theme-text-soft polli:bg-theme-bg-active/30 polli:text-theme-text-strong polli:transition-colors polli:[.dark_&]:bg-transparent",vg={brand:`${Lp} polli:hover:bg-theme-bg-active/50 polli:[.dark_&]:hover:bg-theme-text-soft/10`,commit:`${Lp} polli:hover:border-theme-bg-active polli:hover:bg-theme-bg-active polli:focus-visible:border-theme-bg-active polli:focus-visible:bg-theme-bg-active polli:[.dark_&]:hover:bg-theme-bg-active polli:[.dark_&]:focus-visible:bg-theme-bg-active`,danger:"polli:border polli:border-intent-danger-text polli:bg-intent-danger-bg-light polli:text-intent-danger-text polli:hover:bg-intent-danger-bg-hover polli:focus-visible:bg-intent-danger-bg-hover polli:transition-colors polli:[.dark_&]:bg-transparent polli:[.dark_&]:hover:bg-intent-danger-bg-hover polli:[.dark_&]:focus-visible:bg-intent-danger-bg-hover",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text polli:hover:bg-intent-info-bg-hover polli:transition-colors",neutral:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong polli:transition-colors"},yg=({intent:e,appearance:t="pill",size:o,className:r,disabled:n,busy:i})=>{let l=e?vg[e]:bg,a=t==="raised"?hg:gg;return b("polli-control polli:inline-flex polli:items-center polli:justify-center polli:self-center polli:font-body polli:text-sm polli:font-medium polli:leading-normal polli:box-border polli:border polli:border-transparent",i?"polli:cursor-progress":n?"polli:opacity-50 polli:cursor-not-allowed":"polli:hover:filter polli:hover:brightness-105 polli:cursor-pointer",l,xg[t],a[o||"md"],r)};function Ze({as:e,children:t,icon:o,intent:r,appearance:n,size:i,className:l,disabled:a,...c}){let p=e||"button",u=p==="button",d=p==="a",g=c.type,f=c.onClick,m=c["aria-busy"],v=m===!0||m==="true";return x(p,{...c,"data-intent":r,...u?{type:g??"button",disabled:a}:{},...!u&&a?{"aria-disabled":!0,tabIndex:-1}:{},...d&&a?{href:void 0}:{},onClick:a?C=>{C.preventDefault(),C.stopPropagation()}:f,className:yg({intent:r,appearance:n,size:i,className:l,disabled:a,busy:v}),children:[o&&s("span",{"aria-hidden":"true",className:"polli:mr-2 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:v?s("span",{className:"polli:block polli:size-full polli:animate-spin polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent polli:motion-reduce:animate-none"}):o}),t]})}var Cg=288,ln=12,Je=({children:e,content:t,align:o="start",ariaLabel:r,clampToViewport:n=!0,className:i,maxWidth:l=Cg,onClick:a,stopClickPropagation:c=!0,style:p,tapEnabled:u=!1,triggerAs:d="button",displayContents:g=!1})=>{let[f,m]=ee(!1),[v,h]=ee({top:0,left:0,maxWidth:l}),C=$(null),I=$(!1),E=ue(),w=()=>{I.current=!1,m(!1)};X(()=>{if(!f)return;let S=z=>{C.current?.contains(z.target)||(I.current=!1,m(!1))},W=z=>{z.key==="Escape"&&(I.current=!1,m(!1))},R=()=>{I.current=!1,m(!1)};return document.addEventListener("pointerdown",S),document.addEventListener("keydown",W),window.addEventListener("scroll",R,{capture:!0,passive:!0}),window.addEventListener("resize",R),()=>{document.removeEventListener("pointerdown",S),document.removeEventListener("keydown",W),window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",R)}},[f]);let M=()=>{if(C.current){let S=C.current.getBoundingClientRect(),W=Math.min(l,window.innerWidth-ln*2),R=o==="center"?S.left+S.width/2:S.left,z=o==="center"?"translateX(-50%)":void 0;n&&(R=Math.min(Math.max(S.left,ln),Math.max(ln,window.innerWidth-W-ln)),z=void 0),h({top:S.bottom+4,left:R,maxWidth:W,transform:z})}},N=b("polli-control polli:relative polli:cursor-help polli:text-left polli:inline-flex polli:items-center",i),_=g?"polli:contents":"polli:cursor-inherit",O=t?s("span",{id:E,role:"tooltip","aria-hidden":!f,style:{top:v.top,left:v.left,maxWidth:v.maxWidth,transform:v.transform},className:`${f?"polli:visible polli:opacity-100":"polli:invisible polli:opacity-0"} polli:fixed polli:w-max polli:px-2 polli:py-1 polli:bg-surface-menu polli:text-theme-text-base polli:font-normal polli:leading-snug polli:tracking-normal polli:normal-case polli:not-italic polli:text-xs polli:rounded-md polli:shadow-md polli:z-[130] polli:pointer-events-none polli:transition-opacity polli:whitespace-pre-line polli:break-words`,children:t}):null,L=O&&typeof document<"u"?en(O,C.current?.closest('[role="dialog"]')??document.body):O,k=x(Y,{children:[s("span",{className:_,children:e}),L]}),A={"aria-label":r,"aria-describedby":t&&f?E:void 0,className:N,onMouseEnter:()=>{M(),m(!0)},onMouseLeave:()=>{I.current||m(!1)},onClick:S=>{if(c&&S.stopPropagation(),a&&a(),!(!u||!t)){if(M(),I.current){w();return}I.current=!0,m(!0)}},onFocus:()=>{M(),m(!0)},onBlur:w,style:p};if(d==="span"){let W={...A,role:u&&t?"button":void 0,tabIndex:u&&t?0:void 0,onKeyDown:u&&t?R=>{if(!(!u||!t)&&!(R.key!=="Enter"&&R.key!==" ")){if(R.preventDefault(),M(),I.current){w();return}I.current=!0,m(!0)}}:void 0};return s("span",{ref:R=>{C.current=R},...W,children:k})}return s("button",{ref:S=>{C.current=S},type:"button","aria-label":r,"aria-describedby":t&&f?E:void 0,className:N,onMouseEnter:A.onMouseEnter,onMouseLeave:A.onMouseLeave,onClick:A.onClick,onFocus:A.onFocus,onBlur:A.onBlur,style:p,children:k})};function Ct({value:e,children:t,copiedTimeoutMs:o=2e3,tooltip:r="\u{1F4CB} Click to copy",tooltipAlign:n,tooltipClampToViewport:i,tooltipMaxWidth:l,copiedTooltip:a="\u2705 Copied!",tooltipClassName:c,className:p,variant:u="plain",intent:d,onCopied:g,onCopyError:f,...m}){let[v,h]=ee(!1),C=$(null);X(()=>()=>{C.current&&clearTimeout(C.current)},[]);async function I(M){M.stopPropagation();try{let N=typeof e=="function"?await e():e;await navigator.clipboard.writeText(N),h(!0),g?.(),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>h(!1),o)}catch(N){f?.(N)}}let w=s(u==="button"?Ze:"button",{...m,...u==="button"&&d?{intent:d}:{},type:"button",onClick:I,className:b("polli-control",m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",typeof p=="function"?p(v):p),children:typeof t=="function"?t(v):t});return r===null?w:s(Je,{triggerAs:"span",content:v?a:r,align:n,clampToViewport:i,maxWidth:l,displayContents:!0,tapEnabled:!1,className:b(m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",c),children:w})}var Fp=({code:e,codeClassName:t,language:o,className:r,...n})=>{let i=o||"Code";return x("div",{...n,className:b("polli:min-w-0 polli:max-w-full polli:overflow-hidden polli:rounded-lg polli:border polli:border-theme-border polli:bg-theme-bg-pale",r),children:[x("div",{className:"polli:flex polli:min-h-9 polli:items-center polli:justify-between polli:gap-3 polli:bg-theme-bg-subtle polli:px-3 polli:py-1.5",children:[s("span",{className:"polli:truncate polli:font-mono polli:text-[11px] polli:font-medium polli:uppercase polli:tracking-wide polli:text-theme-text-muted",children:i}),s(Ct,{value:e,tooltip:null,"aria-label":"Copy code",className:"polli:flex polli:items-center polli:gap-1.5 polli:rounded-md polli:px-2 polli:py-1 polli:text-xs polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",children:l=>x(Y,{children:[l?s(Re,{className:"polli:size-3.5"}):s(Kt,{className:"polli:size-3.5"}),s("span",{children:l?"Copied":"Copy"})]})})]}),s("pre",{className:b("polli:m-0 polli:min-w-0 polli:whitespace-pre-wrap polli:break-words polli:[overflow-wrap:anywhere] polli:[tab-size:4] polli:p-3 polli:font-mono polli:text-xs polli:leading-6 polli:text-theme-text-strong",t),children:s("code",{children:e})})]})};var Bp=({label:e,expanded:t,onToggle:o,children:r,disabled:n=!1,wrapperClassName:i,triggerClassName:l,hoverClassName:a="polli:hover:bg-theme-bg-active",focusClassName:c,panelClassName:p="polli:border-t polli:border-theme-border polli:px-3 polli:pt-3 polli:pb-3",ariaLabel:u})=>x("div",{className:b("polli:rounded-lg polli:border polli:transition-all",i,n&&"polli:opacity-50"),children:[x("button",{type:"button","aria-expanded":t,"aria-label":u,disabled:n,onClick:o,className:b("polli-control polli:w-full polli:flex polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:transition-colors",t?"polli:rounded-t-lg":"polli:rounded-lg",l,!n&&a,c,n?"polli:cursor-not-allowed":"polli:cursor-pointer"),children:[s("div",{className:"polli:flex-1 polli:min-w-0",children:e}),s(de,{expanded:t,className:"polli:text-theme-text-soft"})]}),t&&s("div",{className:p,children:r})]});var wg=ke("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),wt=wg.build();var Qi=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,el=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,sn=e=>e.ids?.content??`dialog:${e.id}:content`,an=(e,t)=>{let o=e.ids?.trigger;return o!=null?fe(o)?o(t):o:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},cn=e=>e.ids?.title??`dialog:${e.id}:title`,pn=e=>e.ids?.description??`dialog:${e.id}:description`,tl=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Ko=e=>e.getById(sn(e)),Vp=e=>e.getById(Qi(e)),Hp=e=>e.getById(el(e)),ol=e=>e.getById(an(e)),_p=e=>e.getById(cn(e)),Wp=e=>e.getById(pn(e)),zp=e=>e.getById(tl(e)),un=e=>kr(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),rl=(e,t)=>t==null?ol(e)??un(e)[0]:e.getById(an(e,t));function nl(e,t){let{state:o,send:r,context:n,prop:i,scope:l}=e,a=i("aria-label"),c=o.matches("open"),p=n.get("triggerValue");return{open:c,setOpen(u){o.matches("open")!==u&&r({type:u?"OPEN":"CLOSE"})},triggerValue:p,setTriggerValue(u){r({type:"TRIGGER_VALUE.SET",value:u})},getTriggerProps(u={}){let{value:d}=u,g=d==null?!1:p===d;return t.button({...wt.trigger.attrs,dir:i("dir"),id:an(l,d),"data-ownedby":l.id,"data-value":d,"aria-haspopup":"dialog",type:"button","aria-expanded":d==null?c:c&&g,"data-state":c?"open":"closed","aria-controls":sn(l),"data-current":G(g),onClick(f){if(f.defaultPrevented)return;let m=c&&d!=null&&!g;r({type:m?"TRIGGER_VALUE.SET":"TOGGLE",value:d})}})},getBackdropProps(){return t.element({...wt.backdrop.attrs,dir:i("dir"),hidden:!c,id:el(l),"data-state":c?"open":"closed"})},getPositionerProps(){return t.element({...wt.positioner.attrs,dir:i("dir"),id:Qi(l),style:dt({pointerEvents:!c||!i("modal")?"none":void 0})})},getContentProps(){let u=n.get("rendered");return t.element({...wt.content.attrs,dir:i("dir"),role:i("role"),hidden:!c,id:sn(l),tabIndex:-1,"data-state":c?"open":"closed","aria-modal":i("modal"),"aria-label":a||void 0,"aria-labelledby":a||!u.title?void 0:cn(l),"aria-describedby":u.description?pn(l):void 0,style:dt({pointerEvents:i("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...wt.title.attrs,dir:i("dir"),id:cn(l)})},getDescriptionProps(){return t.element({...wt.description.attrs,dir:i("dir"),id:pn(l)})},getCloseTriggerProps(){return t.button({...wt.closeTrigger.attrs,dir:i("dir"),id:tl(l),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),r({type:"CLOSE"}))}})}}}var il=$t({props({props:e,scope:t}){let o=e.role==="alertdialog",r=o?()=>zp(t):void 0,n=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:n,trapFocus:n,preventScroll:n,closeOnInteractOutside:n&&!o,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=rl(o,r);n({value:r,triggerElement:i})}}))}},watch({track:e,action:t,prop:o}){e([()=>o("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:o}){return go(()=>Ko(e),{type:"dialog",defer:!0,pointerBlocking:o("modal"),layerStyleTargets:[()=>Hp(e),()=>Vp(e)],exclude:[ol(e),...un(e)].filter(Boolean),onInteractOutside(n){o("onInteractOutside")?.(n),o("closeOnInteractOutside")||n.preventDefault()},persistentElements:o("persistentElements"),onFocusOutside:o("onFocusOutside"),onPointerDownOutside:o("onPointerDownOutside"),onRequestDismiss:o("onRequestDismiss"),onEscapeKeyDown(n){o("onEscapeKeyDown")?.(n),o("closeOnEscape")||n.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Jr(e.getDoc())},trapFocus({scope:e,prop:t,context:o}){return t("trapFocus")?Zr(()=>Ko(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{let i=t("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=rl(e,l);if(c)return c}let a=un(e)[0];return a||n},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Yr(()=>[Ko(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||K(()=>{Oo({root:Ko(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){K(()=>{e.set("rendered",{title:!!_p(t),description:!!Wp(t)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:o}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:o})}}}});var[dn,xe]=re({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var[mn,Gp]=re({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),fn=e=>ie()(e,["lazyMount","unmountOnExit"]);var ll=P((e,t)=>{let o=xe(),r=Ee({...Gp(),present:o.open}),n=T(o.getBackdropProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});ll.displayName="DialogBackdrop";var sl=P((e,t)=>{let o=T(xe().getCloseTriggerProps(),e);return s(D.button,{...o,ref:t})});sl.displayName="DialogCloseTrigger";var al=P((e,t)=>{let o=xe(),r=he(),n=T(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});al.displayName="DialogContent";var $p=e=>e.children(xe());var cl=P((e,t)=>{let o=T(xe().getDescriptionProps(),e);return s(D.div,{...o,ref:t})});cl.displayName="DialogDescription";var pl=P((e,t)=>{let o=T(xe().getPositionerProps(),e);return he().unmounted?null:s(D.div,{...o,ref:t})});pl.displayName="DialogPositioner";var jp=e=>{let t=ue(),{getRootNode:o}=Xe(),{dir:r}=ho(),n={id:t,getRootNode:o,dir:r,...e},i=ht(il,n);return nl(i,xt)};var Kp=e=>{let[t,{children:o,...r}]=Fe(e),[n]=fn(t),i=jp(r);return s(dn,{value:i,children:s(mn,{value:n,children:s(Le,{value:Ee(T({present:i.open},t)),children:o})})})};var qp=e=>{let[t,{value:o,children:r}]=Fe(e),[n]=fn(t);return s(dn,{value:o,children:s(mn,{value:n,children:s(Le,{value:Ee(T({present:o.open},t)),children:r})})})};var ul=P((e,t)=>{let o=T(xe().getTitleProps(),e);return s(D.h2,{...o,ref:t})});ul.displayName="DialogTitle";var Eg=ie(),dl=P((e,t)=>{let[o,r]=Eg(e,["value"]),n=xe(),i=he(),l=n.getTriggerProps(o),a=T({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(D.button,{...a,ref:t})});dl.displayName="DialogTrigger";var Ie=bt({Backdrop:()=>ll,CloseTrigger:()=>sl,Content:()=>al,Context:()=>$p,Description:()=>cl,Positioner:()=>pl,Root:()=>Kp,RootProvider:()=>qp,Title:()=>ul,Trigger:()=>dl});var Ig={sm:"polli:max-w-md",md:"polli:max-w-xl",lg:"polli:max-w-[800px]",xl:"polli:max-w-6xl"},gn=({open:e,onOpenChange:t,trigger:o,triggerAsChild:r=!1,triggerClassName:n,title:i,ariaLabel:l,labelledBy:a,size:c="md",showBackdrop:p=!0,backdropBlur:u=!0,positionerClassName:d,contentClassName:g,children:f})=>{let m=$(null);return x(Ie.Root,{open:e,initialFocusEl:()=>m.current,onOpenChange:v=>t?.(v.open),children:[o&&s(Ie.Trigger,{asChild:r,className:n,children:o}),x(jt,{children:[p&&s(Ie.Backdrop,{className:b("polli:fixed polli:inset-0 polli:z-[calc(100_+_var(--layer-index,0)_*_20)] polli:bg-[#000]/50",u&&"polli:backdrop-blur-sm")}),s(Ie.Positioner,{className:b("polli:fixed polli:inset-0 polli:z-[calc(110_+_var(--layer-index,0)_*_20)] polli:flex polli:max-h-dvh polli:items-start polli:justify-center polli:overflow-hidden polli:p-4","polli-dialog-mobile-positioner",d),children:x(Ie.Content,{ref:m,"aria-label":l,"aria-labelledby":a,className:b("polli:my-auto polli:flex polli:h-auto polli:max-h-full polli:w-full polli:flex-col polli:overflow-y-auto polli:rounded-block polli:bg-surface-block polli:outline-none polli:focus:outline-none polli:focus-visible:outline-none","polli-dialog-mobile-page",Ig[c],g),children:[i&&s(qo,{title:i}),f]})})]})]})},ml=Ie.Title,fl=Ie.Description,qo=({title:e,description:t,children:o,inBody:r=!1,className:n,titleClassName:i,descriptionClassName:l,...a})=>x("div",{className:b(r?"polli:shrink-0 polli:pt-2 polli:pb-4":"polli:shrink-0 polli:px-(--polli-dialog-gutter) polli:pt-6 polli:pb-4",n),...a,children:[e&&s(ml,{className:b(Xi("section"),i),children:e}),t&&s(fl,{className:b("polli:mt-1 polli:font-body polli:text-sm polli:font-normal polli:leading-5 polli:text-theme-text-base",l),children:t}),o]});function hn({children:e,actions:t,footnote:o,bodyClassName:r,className:n,...i}){return x(Ue,{...i,className:b("polli:flex polli:min-h-0 polli:flex-1 polli:flex-col polli:overscroll-contain",n),children:[s("div",{className:b("polli:space-y-3 polli:px-(--polli-dialog-gutter) polli:py-4",r),children:e}),(t||o)&&x("div",{className:"polli-dialog-floating-controls polli:@container polli:pointer-events-none polli:sticky polli:bottom-0 polli:z-10",children:[t&&s(gl,{className:"polli:pointer-events-auto",children:t}),o&&s("div",{className:"polli:pointer-events-auto",children:o})]})]})}var gl=({children:e,className:t,...o})=>s("div",{className:b("polli:flex polli:shrink-0 polli:flex-wrap polli:items-center polli:justify-end polli:gap-3 polli:bg-transparent polli:px-(--polli-dialog-gutter) polli:pt-4 polli:pb-6","polli:[&>.polli-control]:min-h-12 polli:[&>.polli-control]:text-base polli:@max-xl:[&>.polli-control]:flex-auto polli:[&>.polli-control:only-child]:flex-auto",t),...o,children:e});var Tg={danger:s($i,{}),commit:s(Re,{}),info:s(Re,{}),neutral:s(Re,{})};function Yp({open:e,title:t,description:o,children:r,confirmLabel:n,intent:i="danger",confirmIcon:l,confirmDisabled:a=!1,cancelDisabled:c=!1,onConfirm:p,onCancel:u,size:d="md"}){let g=x(Y,{children:[s(Ze,{type:"button",intent:"neutral",icon:s(qt,{}),onClick:u,disabled:c,children:"Cancel"}),s(Ze,{type:"button",intent:i,icon:l??Tg[i],onClick:p,disabled:a,children:n})]});return s(gn,{open:e,onOpenChange:f=>!f&&u(),size:d,contentClassName:"polli:overflow-hidden",children:x(hn,{actions:g,children:[s(qo,{inBody:!0,title:t}),o&&s("p",{className:"polli:text-sm polli:leading-relaxed",children:o}),r]})})}var Ng={page:"polli:text-sm polli:tracking-widest polli:text-theme-text-soft",card:"polli:text-xs polli:tracking-wider polli:text-theme-text-soft",chrome:"polli:text-micro polli:tracking-widest polli:text-theme-text-muted"};function xn({as:e,size:t="card",className:o,children:r,...n}){return s(e||"span",{...n,className:b("polli:font-pixel polli:uppercase",Ng[t],o),children:r})}var kg={page:"polli:font-heading polli:text-4xl polli:leading-[1.08] polli:text-theme-text-strong polli:sm:text-5xl polli:lg:text-7xl",section:"polli:font-subheading polli:text-3xl polli:leading-tight polli:text-theme-text-strong polli:sm:text-4xl"},Rg={page:"polli:max-w-lg polli:text-base polli:leading-relaxed polli:text-theme-text-base polli:sm:text-lg",section:"polli:max-w-xl polli:leading-relaxed polli:text-theme-text-base"};function Xp({eyebrow:e,title:t,subtitle:o,action:r,variant:n="section",className:i}){let l=n==="page"?"h1":"h2";return x("header",{className:b("polli:flex polli:flex-wrap polli:items-end polli:justify-between polli:gap-6",i),children:[x("div",{className:"polli:flex polli:max-w-2xl polli:flex-col polli:gap-3",children:[e?s(xn,{size:"page",children:e}):null,s(l,{className:kg[n],children:t}),o&&s("p",{className:b(Rg[n],"polli:[&_strong]:text-theme-text-strong"),children:o})]}),r]})}function Zp({value:e,label:t,display:o,className:r,...n}){return s(Ct,{...n,value:e,tooltip:null,"aria-label":t,className:i=>b("polli-input-shell polli:flex polli:min-h-10 polli:w-full polli:cursor-pointer polli:items-center polli:gap-3 polli:rounded-lg polli:border polli:px-3 polli:py-2 polli:text-left polli:font-mono polli:text-xs polli:transition-colors",i?"polli:text-intent-success-text":"polli:text-theme-text-base polli:hover:text-theme-text-strong",r),children:i=>x(Y,{children:[s("span",{className:"polli:min-w-0 polli:flex-1 polli:select-all polli:break-all",children:i?"Copied":o??String(e)}),s("span",{"aria-hidden":"true",className:"polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:i?s(Re,{}):s(Kt,{})})]})})}var Sg=Object.defineProperty,Og=(e,t,o)=>t in e?Sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,U=(e,t,o)=>Og(e,typeof t!="symbol"?t+"":t,o);var vn={itemToValue(e){return typeof e=="string"?e:_r(e)&&Wt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:_r(e)&&Wt(e,"label")?e.label:vn.itemToValue(e)},isItemDisabled(e){return _r(e)&&Wt(e,"disabled")?!!e.disabled:!1}},yo=class Jp{constructor(t){U(this,"options",t),U(this,"items"),U(this,"indexMap",null),U(this,"copy",o=>new Jp({...this.options,items:o??[...this.items]})),U(this,"isEqual",o=>ao(this.items,o.items)),U(this,"setItems",o=>this.copy(o)),U(this,"getValues",(o=this.items)=>{let r=[];for(let n of o){let i=this.getItemValue(n);i!=null&&r.push(i)}return r}),U(this,"find",o=>{if(o==null)return null;let r=this.indexOf(o);return r!==-1?this.at(r):null}),U(this,"findMany",o=>{let r=[];for(let n of o){let i=this.find(n);i!=null&&r.push(i)}return r}),U(this,"at",o=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[o]??null;let r=0,n=this.group();for(let[,i]of n)for(let l of i){if(r===o)return l;r++}return null}),U(this,"sortFn",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return(n??0)-(i??0)}),U(this,"sort",o=>[...o].sort(this.sortFn.bind(this))),U(this,"getItemValue",o=>o==null?null:this.options.itemToValue?.(o)??vn.itemToValue(o)),U(this,"getItemDisabled",o=>o==null?!1:this.options.isItemDisabled?.(o)??vn.isItemDisabled(o)),U(this,"stringifyItem",o=>o==null?null:this.options.itemToString?.(o)??vn.itemToString(o)),U(this,"stringify",o=>o==null?null:this.stringifyItem(this.find(o))),U(this,"stringifyItems",(o,r=", ")=>{let n=[];for(let i of o){let l=this.stringifyItem(i);l!=null&&n.push(l)}return n.join(r)}),U(this,"stringifyMany",(o,r)=>this.stringifyItems(this.findMany(o),r)),U(this,"has",o=>this.indexOf(o)!==-1),U(this,"hasItem",o=>o==null?!1:this.has(this.getItemValue(o))),U(this,"group",()=>{let{groupBy:o,groupSort:r}=this.options;if(!o)return[["",[...this.items]]];let n=new Map;this.items.forEach((l,a)=>{let c=o(l,a);n.has(c)||n.set(c,[]),n.get(c).push(l)});let i=Array.from(n.entries());return r&&i.sort(([l],[a])=>{if(typeof r=="function")return r(l,a);if(Array.isArray(r)){let c=r.indexOf(l),p=r.indexOf(a);return c===-1?1:p===-1?-1:c-p}return r==="asc"?l.localeCompare(a):r==="desc"?a.localeCompare(l):0}),i}),U(this,"getNextValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),U(this,"getPreviousValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),U(this,"indexOf",o=>{if(o==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===o);if(!this.indexMap){this.indexMap=new Map;let r=0,n=this.group();for(let[,i]of n)for(let l of i){let a=this.getItemValue(l);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(o)??-1}),U(this,"getByText",(o,r)=>{let n=r!=null?this.indexOf(r):-1,i=o.length===1;for(let l=0;l<this.items.length;l++){let a=this.items[(n+l+1)%this.items.length];if(!(i&&this.getItemValue(a)===r)&&!this.getItemDisabled(a)&&Ag(this.stringifyItem(a),o))return a}}),U(this,"search",(o,r)=>{let{state:n,currentValue:i,timeout:l=350}=r,a=n.keysSoFar+o,p=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,u=this.getByText(p,i),d=this.getItemValue(u);function g(){clearTimeout(n.timer),n.timer=-1}function f(m){n.keysSoFar=m,g(),m!==""&&(n.timer=+setTimeout(()=>{f(""),g()},l))}return f(a),d}),U(this,"update",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy([...this.items.slice(0,n),r,...this.items.slice(n+1)])}),U(this,"upsert",(o,r,n="append")=>{let i=this.indexOf(o);return i===-1?(n==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),U(this,"insert",(o,...r)=>this.copy(Yo(this.items,o,...r))),U(this,"insertBefore",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Yo(this.items,n,...r))}),U(this,"insertAfter",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Yo(this.items,n+1,...r))}),U(this,"prepend",(...o)=>this.copy(Yo(this.items,0,...o))),U(this,"append",(...o)=>this.copy(Yo(this.items,this.items.length,...o))),U(this,"filter",o=>{let r=this.items.filter((n,i)=>o(this.stringifyItem(n),i,n));return this.copy(r)}),U(this,"remove",(...o)=>{let r=o.map(n=>typeof n=="string"?n:this.getItemValue(n));return this.copy(this.items.filter(n=>{let i=this.getItemValue(n);return i==null?!1:!r.includes(i)}))}),U(this,"move",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy(bn(this.items,[n],r))}),U(this,"moveBefore",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(bn(this.items,i,n))}),U(this,"moveAfter",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(bn(this.items,i,n+1))}),U(this,"reorder",(o,r)=>this.copy(bn(this.items,[o],r))),U(this,"compareValue",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return n<i?-1:n>i?1:0}),U(this,"range",(o,r)=>{let n=[],i=o;for(;i!=null;){if(this.find(i)&&n.push(i),i===r)return n;i=this.getNextValue(i)}return[]}),U(this,"getValueRange",(o,r)=>o&&r?this.compareValue(o,r)<=0?this.range(o,r):this.range(r,o):[]),U(this,"toString",()=>{let o="";for(let r of this.items){let n=this.getItemValue(r),i=this.stringifyItem(r),l=this.getItemDisabled(r),a=[n,i,l].filter(Boolean).join(":");o+=a+","}return o}),U(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},Ag=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Yo(e,t,...o){return[...e.slice(0,t),...o,...e.slice(t)]}function bn(e,t,o){t=[...t].sort((n,i)=>n-i);let r=t.map(n=>e[n]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return o=Math.max(0,o-t.filter(n=>n<o).length),[...e.slice(0,o),...r,...e.slice(o)]}function yn({values:e,collection:t,selectedItemMap:o}){let r=[];for(let n of e){let i=t.find(n)??o.get(n);i!=null&&r.push(i)}return r}function hl({selectedItemMap:e,values:t,selectedItems:o,collection:r}){let n=new Map(e);for(let l of o){let a=r.getItemValue(l);a!=null&&n.set(a,l)}let i=new Set(t);for(let l of n.keys())i.has(l)||n.delete(l);return n}function Xo({values:e,collection:t,selectedItemMap:o}){let r=yn({values:e,collection:t,selectedItemMap:o}),n=hl({selectedItemMap:o,values:e,selectedItems:r,collection:t});return{selectedItems:r,nextSelectedItemMap:n}}function xl({selectedItems:e,collection:t}){return hl({selectedItemMap:new Map,values:e.map(o=>t.getItemValue(o)).filter(Boolean),selectedItems:e,collection:t})}var bl=e=>new yo(e);var Cn=ke("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),Ce=Cn.build();var vl=e=>new yo(e);vl.empty=()=>new yo({items:[]});var Qp=e=>e.ids?.root??`combobox:${e.id}`,wn=e=>e.ids?.label??`combobox:${e.id}:label`,yl=e=>e.ids?.control??`combobox:${e.id}:control`,Zo=e=>e.ids?.input??`combobox:${e.id}:input`,Jo=e=>e.ids?.content??`combobox:${e.id}:content`,Cl=e=>e.ids?.positioner??`combobox:${e.id}:popper`,wl=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,Pl=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,eu=(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,El=(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,Il=(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,Pt=e=>e.getById(Jo(e)),Et=e=>e.getById(Zo(e)),Tl=e=>e.getById(Cl(e)),Nl=e=>e.getById(yl(e)),Yt=e=>e.getById(wl(e)),tu=e=>e.getById(Pl(e)),It=(e,t)=>{if(t==null)return null;let o=`[role=option][data-value="${CSS.escape(t)}"]`;return ga(Pt(e),o)},Qo=e=>{let t=Et(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),yr(t)},ou=e=>{let t=Yt(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};function kl(e,t){let{context:o,prop:r,state:n,send:i,scope:l,computed:a,event:c}=e,p=r("translations"),u=r("collection"),d=!!r("disabled"),g=a("isInteractive"),f=!!r("invalid"),m=!!r("required"),v=!!r("readOnly"),h=n.hasTag("open"),C=n.hasTag("focused"),I=r("composite"),E=o.get("highlightedValue"),w=o.get("currentPlacement"),M=w?Vo(w):void 0,N=Ho({...r("positioning"),placement:w});function _(y){let O=u.getItemDisabled(y.item),L=u.getItemValue(y.item);return zt(L,()=>`[zag-js] No value found for item ${JSON.stringify(y.item)}`),{value:L,disabled:!!(d||O),highlighted:E===L,selected:o.get("value").includes(L)}}return{focused:C,open:h,inputValue:o.get("inputValue"),highlightedValue:E,highlightedItem:o.get("highlightedItem"),value:o.get("value"),valueAsString:a("valueAsString"),hasSelectedItems:a("hasSelectedItems"),selectedItems:a("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){i({type:"SELECTED_ITEMS.SYNC"})},reposition(y={}){i({type:"POSITIONING.SET",options:y})},setHighlightValue(y){i({type:"HIGHLIGHTED_VALUE.SET",value:y})},clearHighlightValue(){i({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(y){i({type:"ITEM.SELECT",value:y})},setValue(y){i({type:"VALUE.SET",value:y})},setInputValue(y,O="script"){i({type:"INPUT_VALUE.SET",value:y,src:O})},clearValue(y){y!=null?i({type:"ITEM.CLEAR",value:y}):i({type:"VALUE.CLEAR"})},focus(){Et(l)?.focus()},setOpen(y,O="script"){n.hasTag("open")!==y&&i({type:y?"OPEN":"CLOSE",src:O})},getRootProps(){return t.element({...Ce.root.attrs,dir:r("dir"),id:Qp(l),"data-invalid":G(f),"data-readonly":G(v)})},getLabelProps(){return t.label({...Ce.label.attrs,dir:r("dir"),htmlFor:Zo(l),id:wn(l),"data-readonly":G(v),"data-disabled":G(d),"data-invalid":G(f),"data-required":G(m),"data-focus":G(C),onClick(y){I||(y.preventDefault(),Yt(l)?.focus({preventScroll:!0}))}})},getControlProps(){return t.element({...Ce.control.attrs,dir:r("dir"),id:yl(l),"data-state":h?"open":"closed","data-focus":G(C),"data-disabled":G(d),"data-invalid":G(f)})},getPositionerProps(){return t.element({...Ce.positioner.attrs,dir:r("dir"),id:Cl(l),style:N.floating})},getInputProps(){return t.input({...Ce.input.attrs,dir:r("dir"),"aria-invalid":et(f),"data-invalid":G(f),"data-autofocus":G(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:v,placeholder:r("placeholder"),id:Zo(l),type:"text",role:"combobox",defaultValue:o.get("inputValue"),"aria-autocomplete":a("autoComplete")?"both":"list","aria-controls":Jo(l),"aria-expanded":h,"data-state":h?"open":"closed","aria-activedescendant":E?Il(l,E):void 0,onClick(y){y.defaultPrevented||r("openOnClick")&&g&&i({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||i({type:"INPUT.FOCUS"})},onBlur(){d||i({type:"INPUT.BLUR"})},onChange(y){i({type:"INPUT.CHANGE",value:y.currentTarget.value,src:"input-change"})},onKeyDown(y){if(y.defaultPrevented||!g||y.ctrlKey||y.shiftKey||na(y))return;let O=r("openOnKeyPress"),L=y.ctrlKey||y.metaKey||y.shiftKey,k=!0,A={ArrowDown(R){!O&&!h||(i({type:R.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:k,src:"arrow-key"}),R.preventDefault())},ArrowUp(){!O&&!h||(i({type:y.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:k,src:"arrow-key"}),y.preventDefault())},Home(R){L||(i({type:"INPUT.HOME",keypress:k}),h&&R.preventDefault())},End(R){L||(i({type:"INPUT.END",keypress:k}),h&&R.preventDefault())},Enter(R){i({type:"INPUT.ENTER",keypress:k,src:"item-select"});let z=E!=null,q=r("alwaysSubmitOnEnter"),B=a("isCustomValue")&&!r("allowCustomValue");if(h&&!q&&(z||B)&&R.preventDefault(),E==null)return;let be=It(l,E);Us(be)&&r("navigate")?.({value:E,node:be,href:be.href})},Escape(){i({type:"INPUT.ESCAPE",keypress:k,src:"escape-key"}),y.preventDefault()}},S=Xn(y,{dir:r("dir")}),W=A[S];W?.(y)}})},getTriggerProps(y={}){return t.button({...Ce.trigger.attrs,dir:r("dir"),id:wl(l),"aria-haspopup":I?"listbox":"dialog",type:"button",tabIndex:y.focusable?void 0:-1,"aria-label":p.triggerLabel,"aria-expanded":h,"data-state":h?"open":"closed","aria-controls":h?Jo(l):void 0,disabled:d,"data-invalid":G(f),"data-focusable":G(y.focusable),"data-readonly":G(v),"data-disabled":G(d),onFocus(){y.focusable&&i({type:"INPUT.FOCUS",src:"trigger"})},onClick(O){O.defaultPrevented||g&&Ot(O)&&i({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(O){g&&O.pointerType!=="touch"&&Ot(O)&&(O.preventDefault(),queueMicrotask(()=>{Qo(l)}))},onKeyDown(O){if(O.defaultPrevented||I)return;let L={ArrowDown(){i({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){i({type:"INPUT.ARROW_UP",src:"arrow-key"})}},k=Xn(O,{dir:r("dir")}),A=L[k];A&&(A(O),O.preventDefault())}})},getContentProps(){return t.element({...Ce.content.attrs,dir:r("dir"),id:Jo(l),role:I?"listbox":"dialog",tabIndex:-1,hidden:!h,"data-state":h?"open":"closed","data-placement":w,"data-side":M,"aria-labelledby":wn(l),"aria-multiselectable":r("multiple")&&I?!0:void 0,"data-empty":G(u.size===0),onPointerDown(y){Ot(y)&&y.preventDefault()}})},getListProps(){return t.element({...Ce.list.attrs,role:I?void 0:"listbox","data-empty":G(u.size===0),"aria-labelledby":wn(l),"aria-multiselectable":r("multiple")&&!I?!0:void 0})},getClearTriggerProps(){return t.button({...Ce.clearTrigger.attrs,dir:r("dir"),id:Pl(l),type:"button",tabIndex:-1,disabled:d,"data-invalid":G(f),"aria-label":p.clearTriggerLabel,"aria-controls":Zo(l),hidden:!o.get("value").length,onPointerDown(y){Ot(y)&&y.preventDefault()},onClick(y){y.defaultPrevented||g&&i({type:"VALUE.CLEAR",src:"clear-trigger"})}})},getItemState:_,getItemProps(y){let O=_(y),L=O.value;return t.element({...Ce.item.attrs,dir:r("dir"),id:Il(l,L),role:"option",tabIndex:-1,"data-highlighted":G(O.highlighted),"data-state":O.selected?"checked":"unchecked","aria-selected":et(O.selected),"aria-disabled":et(O.disabled),"data-disabled":G(O.disabled),"data-value":O.value,onPointerMove(){O.disabled||O.highlighted||i({type:"ITEM.POINTER_MOVE",value:L})},onPointerLeave(){y.persistFocus||O.disabled||!c.previous()?.type.includes("POINTER")||i({type:"ITEM.POINTER_LEAVE",value:L})},onClick(k){ra(k)||oa(k)||Er(k)||O.disabled||i({type:"ITEM.CLICK",src:"item-select",value:L})}})},getItemTextProps(y){let O=_(y);return t.element({...Ce.itemText.attrs,dir:r("dir"),"data-state":O.selected?"checked":"unchecked","data-disabled":G(O.disabled),"data-highlighted":G(O.highlighted)})},getItemIndicatorProps(y){let O=_(y);return t.element({"aria-hidden":!0,...Ce.itemIndicator.attrs,dir:r("dir"),"data-state":O.selected?"checked":"unchecked",hidden:!O.selected})},getItemGroupProps(y){let{id:O}=y;return t.element({...Ce.itemGroup.attrs,dir:r("dir"),id:eu(l,O),"aria-labelledby":El(l,O),"data-empty":G(u.size===0),role:"group"})},getItemGroupLabelProps(y){let{htmlFor:O}=y;return t.element({...Ce.itemGroupLabel.attrs,dir:r("dir"),id:El(l,O),role:"presentation"})}}}function Mg(e){return!(e.metaKey||!St()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var Dg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lg(e,t,o){let r=o?me(o):null,n=Q(r),i=te(r),l=He(n);return e=e||l instanceof i.HTMLInputElement&&!Dg.has(l?.type)||l instanceof i.HTMLTextAreaElement||l instanceof i.HTMLElement&&l.isContentEditable,!(e&&t==="keyboard"&&o instanceof i.KeyboardEvent&&!Reflect.has(Fg,o.key))}var nt=null,Rl=new Set,Pn=new Map,Xt=!1,Sl=!1,iu=!1,Fg={Tab:!0,Escape:!0};function In(e,t){for(let o of Rl)o(e,t)}function En(e){Xt=!0,Mg(e)&&(nt="keyboard",In("keyboard",e))}function Be(e){nt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xt=!0,In("pointer",e))}function lu(e){ia(e)&&(Xt=!0,nt="virtual")}function su(e){let t=me(e);t===te(t)||t===Q(t)||iu||!e.isTrusted||(!Xt&&!Sl&&(nt="virtual",In("virtual",e)),Xt=!1,Sl=!1)}function au(){iu||(Xt=!1,Sl=!0)}function Bg(e){if(typeof window>"u"||Pn.get(te(e)))return;let t=te(e),o=Q(e),r=t.HTMLElement.prototype.focus;function n(){Xt=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:n})}catch{}o.addEventListener("keydown",En,!0),o.addEventListener("keyup",En,!0),o.addEventListener("click",lu,!0),t.addEventListener("focus",su,!0),t.addEventListener("blur",au,!1),typeof t.PointerEvent<"u"?(o.addEventListener("pointerdown",Be,!0),o.addEventListener("pointermove",Be,!0),o.addEventListener("pointerup",Be,!0)):(o.addEventListener("mousedown",Be,!0),o.addEventListener("mousemove",Be,!0),o.addEventListener("mouseup",Be,!0)),t.addEventListener("beforeunload",()=>{Vg(e)},{once:!0}),Pn.set(t,{focus:r})}var Vg=(e,t)=>{let o=te(e),r=Q(e);t&&r.removeEventListener("DOMContentLoaded",t);let n=Pn.get(o);if(n){try{Object.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,value:n.focus})}catch{}r.removeEventListener("keydown",En,!0),r.removeEventListener("keyup",En,!0),r.removeEventListener("click",lu,!0),o.removeEventListener("focus",su,!0),o.removeEventListener("blur",au,!1),typeof o.PointerEvent<"u"?(r.removeEventListener("pointerdown",Be,!0),r.removeEventListener("pointermove",Be,!0),r.removeEventListener("pointerup",Be,!0)):(r.removeEventListener("mousedown",Be,!0),r.removeEventListener("mousemove",Be,!0),r.removeEventListener("mouseup",Be,!0)),Pn.delete(o)}};function cu(){return nt}function pu(e){nt=e,In(e,null)}function nu(){return nt==="keyboard"||nt==="virtual"}function uu(e={}){let{isTextInput:t,autoFocus:o,onChange:r,root:n}=e;Bg(n),r?.({isFocusVisible:o||nu(),modality:nt});let i=(l,a)=>{Lg(!!t,l,a)&&r?.({isFocusVisible:nu(),modality:l})};return Rl.add(i),()=>{Rl.delete(i)}}var Tn="__live-region__",Ol="__live-region-debug__",Hg="position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;";function du(e={}){let{level:t="polite",document:o=document,root:r,delay:n=0,debug:i=!1}=e,l=o.defaultView??window,a=r??o.body;function c(){if(!i)return;let d=o.getElementById(Ol);return d||(d=o.createElement("div"),d.id=Ol,d.dataset.liveAnnouncerDebug="true",d.setAttribute("aria-hidden","true"),d.style.cssText=Hg,a.appendChild(d),d)}function p(d,g){o.getElementById(Tn)?.remove(),g=g??n;let m=o.createElement("span");m.id=Tn,m.dataset.liveAnnouncer="true";let v=t!=="assertive"?"status":"alert";m.setAttribute("aria-live",t),m.setAttribute("role",v),Object.assign(m.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),a.appendChild(m),l.setTimeout(()=>{if(!m.isConnected)return;m.textContent=d;let h=c();h&&(h.textContent=d)},g)}function u(){o.getElementById(Tn)?.remove(),o.getElementById(Ol)?.remove()}return{announce:p,destroy:u,toJSON(){return Tn}}}var{guards:_g,createMachine:Wg,choose:zg}=Wc(),{and:Te,not:Zt}=_g,Al=Wg({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){ma(t)},collection:vl.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open.suggesting":"closed.idle"},context({prop:e,bindable:t,getContext:o,getEvent:r}){let n=e("value")??e("defaultValue")??[],i=e("collection").findMany(n);return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ao,hash(l){return l.join(",")},onChange(l){let a=o(),c=e("collection"),p=a.get("selectedItemMap"),u=Xo({values:l,collection:c,selectedItemMap:p}),d=e("value")??l,g=d===l?u:Xo({values:d,collection:c,selectedItemMap:u.nextSelectedItemMap});a.set("selectedItemMap",g.nextSelectedItemMap),e("onValueChange")?.({value:l,items:u.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){let a=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:a})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue"),a=e("value")||e("defaultValue");if(!l.trim()&&!e("multiple")){let c=e("collection").stringifyMany(a);l=qe(e("selectionBehavior"),{preserve:l||c,replace:c,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(c){let p=r(),u=(p.previousEvent||p).src;e("onInputValueChange")?.({inputValue:c,reason:u})}}}),highlightedItem:t(()=>{let l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItemMap:t(()=>({defaultValue:xl({selectedItems:i,collection:e("collection")})}))}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,selectedItems:({context:e,prop:t})=>yn({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:o,action:r,send:n}){o([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),o([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),o([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue","announceHighlightedItem"])}),o([()=>t("open")],()=>{r(["toggleVisibility"])}),o([()=>t("collection").toString()],()=>{n({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:zg([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{closed:{tags:["closed"],initial:"idle",states:{idle:{tags:["idle"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"open.interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"open.suggesting"},{target:"open.interacting"}],"INPUT.CHANGE":[{guard:Te("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"open.suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Te("isCustomValue",Zt("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Te("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:Te("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}}}},open:{tags:["open","focused"],entry:["setInitialFocus"],effects:["trackFocusVisible","scrollToHighlightedItem","trackDismissableLayer","trackPlacement","trackLiveRegion"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"closed.focused",actions:["setFinalFocus"]},{target:"closed.idle"}],"INPUT.ENTER":[{guard:Te("isOpenControlled","isCustomValue",Zt("hasHighlightedItem"),Zt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Te("isCustomValue",Zt("hasHighlightedItem"),Zt("allowCustomValue")),target:"closed.focused",actions:["revertInputValue","invokeOnClose"]},{guard:Te("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"ITEM.CLICK":[{guard:Te("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Te("isOpenControlled","isCustomValue",Zt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Te("isCustomValue",Zt("allowCustomValue")),target:"closed.idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"closed.focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]},initial:"interacting",states:{interacting:{on:{CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Te("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Te("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.ESCAPE":[{guard:Te("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"closed.focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:Te("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]}}}}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{let o=e("openOnChange");return ac(o)?o:!!o?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackFocusVisible({scope:e}){return uu({root:e.getRootNode?.()})},trackDismissableLayer({send:e,prop:t,scope:o}){return t("disableLayer")?void 0:go(()=>Pt(o),{type:"listbox",defer:!0,exclude:()=>[Et(o),Yt(o),tu(o)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(n){n.preventDefault(),n.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackLiveRegion({refs:e,scope:t}){let o=du({level:"assertive",document:t.getDoc()});return e.set("liveRegion",o),()=>o.destroy()},trackPlacement({context:e,prop:t,scope:o}){let r=()=>Nl(o)||Yt(o),n=()=>Tl(o);return e.set("currentPlacement",t("positioning").placement),Ut(r,n,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:o}){let r=Et(o),n=[],i=c=>{if(cu()==="pointer")return;let u=e.get("highlightedValue");if(!u)return;let d=Pt(o),g=t("scrollToIndexFn");if(g){let v=t("collection").indexOf(u);g({index:v,immediate:c,getElement:()=>It(o,u)});return}let f=It(o,u),m=K(()=>{Qn(f,{rootEl:d,block:"nearest"})});n.push(m)},l=K(()=>{pu("virtual"),i(!0)});n.push(l);let a=da(r,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return n.push(a),()=>{n.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:o,event:r}){Ut(()=>Nl(o),()=>Tl(o),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(l){e.set("currentPlacement",l.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:o}=e,r=o("collection"),n=t.get("highlightedValue");if(!n||!r.has(n))return;let i=o("multiple")?ii(t.get("value"),n):[n];o("onSelect")?.({value:i,itemValue:n}),t.set("value",i);let l=qe(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",l)},scrollToHighlightedItem({context:e,prop:t,scope:o}){ro(()=>{let r=e.get("highlightedValue");if(r==null)return;let n=It(o,r),i=Pt(o),l=t("scrollToIndexFn");if(l){let a=t("collection").indexOf(r);l({index:a,immediate:!0,getElement:()=>It(o,r)});return}Qn(n,{rootEl:i,block:"nearest"})})},selectItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=n("multiple")?ii(t.get("value"),o.value):[o.value];n("onSelect")?.({value:i,itemValue:o.value}),t.set("value",i);let l=qe(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},clearItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=ni(t.get("value"),o.value);t.set("value",i);let l=qe(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},setInitialFocus({scope:e}){K(()=>{Qo(e)})},setFinalFocus({scope:e}){K(()=>{Yt(e)?.dataset.focusable==null?Qo(e):ou(e)})},syncInputValue({context:e,scope:t,event:o}){let r=Et(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{o.current().type!=="INPUT.CHANGE"&&yr(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:o}){let r=t("selectionBehavior"),n=qe(r,{replace:o("hasSelectedItems")?o("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",n)},setValue(e){let{context:t,flush:o,event:r,prop:n}=e;o(()=>{t.set("value",r.value);let i=qe(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){let{context:t,flush:o,prop:r}=e;o(()=>{t.set("value",[]);let n=qe(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",n)})},scrollContentToTop({prop:e,scope:t}){let o=e("scrollToIndexFn");if(o){let r=e("collection").firstValue;o({index:0,immediate:!0,getElement:()=>It(t,r)})}else{let r=Pt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:o}){let r=mu(t);e("onOpenChange")?.({open:!0,reason:r,value:o.get("value")})},invokeOnClose({prop:e,event:t,context:o}){let r=mu(t);e("onOpenChange")?.({open:!1,reason:r,value:o.get("value")})},highlightFirstItem({context:e,prop:t,scope:o}){(Pt(o)?queueMicrotask:K)(()=>{let n=t("collection").firstValue;n&&e.set("highlightedValue",n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:o}){(Pt(o)?queueMicrotask:K)(()=>{let n=t("collection").lastValue;n&&e.set("highlightedValue",n)})},highlightNextItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getNextValue(r),!o&&t("loopFocus")&&(o=n.firstValue)):o=n.firstValue,o&&e.set("highlightedValue",o)},highlightPrevItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getPreviousValue(r),!o&&t("loopFocus")&&(o=n.lastValue)):o=n.lastValue,o&&e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t}){K(()=>{let[o]=t("collection").sort(e.get("value"));o&&e.set("highlightedValue",o)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:o}){K(()=>{let r=null;o("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:o}){K(()=>{let r=t("collection"),n=null;o("hasSelectedItems")?n=r.sort(e.get("value"))[0]:n=r.lastValue,n&&e.set("highlightedValue",n)})},autofillInputValue({context:e,computed:t,prop:o,event:r,scope:n}){let i=Et(n),l=o("collection");if(!t("autoComplete")||!i||!r.keypress)return;let a=l.stringify(e.get("highlightedValue"));K(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:o}=e,r=o("collection"),n=t.get("value"),i=t.get("selectedItemMap"),l=Xo({values:n,collection:r,selectedItemMap:i});t.set("selectedItemMap",l.nextSelectedItemMap);let a=qe(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(n),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){let o=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",o)},announceHighlightedItem({context:e,prop:t,refs:o}){if(!Yn())return;let r=e.get("highlightedValue"),n=r?t("collection").stringifyItem(t("collection").find(r)):null;if(!n)return;let i=r?e.get("value").includes(r):!1;o.get("liveRegion")?.announce(i?`${n}, selected`:n)},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function mu(e){return(e.previousEvent||e).src}var fu=Cn.extendWith("empty");var[Nn,Z]=re({name:"ComboboxContext",hookName:"useComboboxContext",providerName:"<ComboboxProvider />"});var Ml=P((e,t)=>{let o=T(Z().getClearTriggerProps(),e);return s(D.button,{...o,ref:t})});Ml.displayName="ComboboxClearTrigger";var Dl=P((e,t)=>{let o=Z(),r=he(),n=T(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});Dl.displayName="ComboboxContent";var Gg=fu.build(),Ll=P((e,t)=>Z().collection.size!==0?null:s(D.div,{...Gg.empty.attrs,...e,role:"presentation",ref:t}));Ll.displayName="ComboboxEmpty";var gu=e=>e.children(Z());var Fl=P((e,t)=>{let o=T(Z().getControlProps(),e);return s(D.div,{...o,ref:t})});Fl.displayName="ComboboxControl";var[Co,le]=re({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Bl=P((e,t)=>{let o=T(Z().getInputProps(),e),r=le();return s(D.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});Bl.displayName="ComboboxInput";var[hu,xu]=re({name:"ComboboxItemContext",hookName:"useComboboxItemContext",providerName:"<ComboboxItemProvider />"});var[bu,kn]=re({name:"ComboboxItemPropsContext",hookName:"useComboboxItemPropsContext",providerName:"<ComboboxItemPropsProvider />"});var $g=ie(),Vl=P((e,t)=>{let[o,r]=$g(e,["item","persistFocus"]),n=Z(),i=T(n.getItemProps(o),r);return s(bu,{value:o,children:s(hu,{value:n.getItemState(o),children:s(D.div,{...i,ref:t})})})});Vl.displayName="ComboboxItem";var vu=e=>e.children(xu());var[yu,Cu]=re({name:"ComboboxItemGroupPropsContext",hookName:"useComboboxItemGroupPropsContext",providerName:"<ComboboxItemGroupPropsProvider />"});var jg=ie(),Hl=P((e,t)=>{let o=ue(),[r,n]=jg(e,["id"]),i={id:o,...r},l=T(Z().getItemGroupProps(i),n);return s(yu,{value:i,children:s(D.div,{...l,ref:t})})});Hl.displayName="ComboboxItemGroup";var _l=P((e,t)=>{let o=Z(),r=Cu(),n=T(o.getItemGroupLabelProps({htmlFor:r.id}),e);return s(D.div,{...n,ref:t})});_l.displayName="ComboboxItemGroupLabel";var Wl=P((e,t)=>{let o=Z(),r=kn(),n=T(o.getItemIndicatorProps(r),e);return s(D.div,{...n,ref:t})});Wl.displayName="ComboboxItemIndicator";var zl=P((e,t)=>{let o=Z(),r=kn(),n=T(o.getItemTextProps(r),e);return s(D.span,{...n,ref:t})});zl.displayName="ComboboxItemText";var Ul=P((e,t)=>{let o=T(Z().getLabelProps(),e);return s(D.label,{...o,ref:t})});Ul.displayName="ComboboxLabel";var Gl=P((e,t)=>{let o=T(Z().getListProps(),e);return s(D.div,{...o,ref:t})});Gl.displayName="ComboboxList";var $l=P((e,t)=>{let o=Z(),r=he(),n=T(o.getPositionerProps(),e);return r.unmounted?null:s(D.div,{...n,ref:t})});$l.displayName="ComboboxPositioner";var wu=e=>{let t=ue(),{dir:o}=ho(),{getRootNode:r}=Xe(),n=le(),i={id:t,ids:{label:n?.ids.label,input:n?.ids.control},disabled:n?.disabled,readOnly:n?.readOnly,required:n?.required,invalid:n?.invalid,dir:o,getRootNode:r,...e},l=ht(Al,i);return kl(l,xt)};var Kg=(e,t)=>{let[o,r]=Fe(e),[n,i]=ie()(r,["allowCustomValue","alwaysSubmitOnEnter","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","disabled","disableLayer","form","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),l=wu(n),a=Ee(T({present:l.open},o)),c=T(l.getRootProps(),i);return s(Nn,{value:l,children:s(Le,{value:a,children:s(D.div,{...c,ref:t})})})},Pu=P(Kg);var qg=(e,t)=>{let[o,r]=Fe(e),[{value:n},i]=ie()(r,["value"]),l=Ee(T({present:n.open},o)),a=T(n.getRootProps(),i);return s(Nn,{value:n,children:s(Le,{value:l,children:s(D.div,{...a,ref:t})})})},Eu=P(qg);var Yg=ie(),jl=P((e,t)=>{let[o,r]=Yg(e,["focusable"]),n=T(Z().getTriggerProps(o),r);return s(D.button,{...n,ref:t})});jl.displayName="ComboboxTrigger";var Se=bt({ClearTrigger:()=>Ml,Content:()=>Dl,Context:()=>gu,Control:()=>Fl,Empty:()=>Ll,Input:()=>Bl,Item:()=>Vl,ItemContext:()=>vu,ItemGroup:()=>Hl,ItemGroupLabel:()=>_l,ItemIndicator:()=>Wl,ItemText:()=>zl,Label:()=>Ul,List:()=>Gl,Positioner:()=>$l,Root:()=>Pu,RootProvider:()=>Eu,Trigger:()=>jl});var Rn=P(({className:e,error:t,hideNumberSteppers:o,...r},n)=>s("input",{ref:n,"data-error":t?"true":void 0,className:b("polli-input polli:px-3 polli:py-2 polli:border polli:rounded-lg","polli:font-body polli:text-base polli:font-normal polli:leading-6 polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",o&&"polli-input-number-clean",e),...r}));function Iu({label:e,value:t,highlighted:o=!1,className:r,...n}){return x("button",{type:"button","data-highlighted":o?"":void 0,className:b("polli-control polli:flex polli:h-7 polli:max-w-full polli:shrink-0 polli:items-center polli:gap-1 polli:rounded polli:px-1.5 polli:text-xs polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-active",r),...n,children:[x("span",{className:"polli:text-theme-text-muted",children:[e,":"]}),s("span",{className:"polli:truncate polli:text-theme-text-base",children:t}),s(de,{className:"polli:h-3 polli:w-3 polli:text-theme-text-muted"})]})}function Tu({value:e,options:t,onChange:o,emptyMessage:r="No options match.",align:n="start",open:i,onOpenChange:l,closeOnSelect:a,startContent:c,contentClassName:p,className:u,disabled:d,name:g,placeholder:f,required:m,...v}){let h=se(()=>{let M=e.trim().toLowerCase();return M===""?t:t.filter(N=>N.toLowerCase().includes(M))},[t,e]),C=se(()=>bl({items:h,itemToString:M=>M,itemToValue:M=>M}),[h]),I=t.length>0,E=!!c,w=$(null);return X(()=>{w.current&&w.current.value!==e&&(w.current.value=e)}),x(Se.Root,{collection:C,inputValue:e,value:[],allowCustomValue:!0,openOnClick:I,openOnChange:()=>I,open:i,closeOnSelect:a,disabled:d,name:g,required:m,positioning:{placement:n==="end"?"bottom-end":"bottom-start",sameWidth:!0,strategy:"fixed"},onInputValueChange:M=>o(M.inputValue),onOpenChange:M=>l?.(M.open),children:[x(Se.Control,{className:b("polli:relative polli:w-full",E&&"polli-input-shell polli:flex polli:min-h-10 polli:flex-wrap polli:items-center polli:gap-2 polli:border polli:rounded-lg polli:px-2 polli:py-1"),children:[c,s(Se.Input,{asChild:!0,children:s(Rn,{ref:w,...v,name:g,placeholder:f,className:b(E?"polli:min-w-28 polli:flex-1 polli:px-1 polli:py-1":"polli:w-full polli:pr-10",u)})}),I&&!E&&s(Se.Trigger,{"aria-label":"Show options",className:"polli-control polli:absolute polli:right-0 polli:top-0 polli:flex polli:h-full polli:w-10 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-r-lg polli:text-theme-text-muted polli:hover:text-theme-text-strong",children:s(Se.Context,{children:M=>s(de,{expanded:M.open,className:"polli:h-4 polli:w-4 polli:transition-transform"})})})]}),s(Se.Positioner,{children:s(Se.Content,{className:b("polli:z-[120] polli:overflow-hidden polli:rounded-lg polli:bg-surface-menu polli:p-1 polli:shadow-lg polli:focus:outline-none",p),children:s(Ue,{className:"polli:max-h-64",children:x(Se.List,{className:"polli:flex polli:flex-col",children:[h.map(M=>s(Se.Item,{item:M,className:b("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-hover",e===M&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:s(Se.ItemText,{className:"polli:truncate polli:font-mono",children:M})},M)),h.length===0&&s(Se.Empty,{className:"polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft",children:r})]})})})})]})}function wo(e,t=globalThis.location?.origin){if(typeof e!="string"||!/^(https?:)?\/\//i.test(e))return!1;if(!t)return!0;try{return new URL(e,t).origin!==t}catch{return!1}}function Nu(e){let{size:t="md",appearance:o,external:r="href"in e?wo(e.href):!0,showIcon:n=!0,icon:i,className:l,children:a}=e,c=x(Y,{children:[i,s("span",{children:a}),r&&n?s(rt,{className:"polli:h-4 polli:w-4 polli:shrink-0 polli:opacity-60","aria-hidden":"true"}):null]});if("href"in e){let{href:I,target:E=r?"_blank":void 0,rel:w=E==="_blank"?"noopener noreferrer":void 0,size:M,appearance:N,external:_,showIcon:y,icon:O,className:L,children:k,...A}=e;return s(Ze,{as:"a",href:I,target:E,rel:w,size:t,appearance:o,className:b("polli:gap-2",l),...A,children:c})}let{type:p="button",size:u,appearance:d,external:g,showIcon:f,icon:m,className:v,children:h,...C}=e;return s(Ze,{as:"button",type:p,size:t,appearance:o,className:b("polli:gap-2",l),...C,children:c})}var Xg=ke("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),Oe=Xg.build();var ku=e=>e.children(le());var Kl=P((e,t)=>{let o=le(),r=T(o.getErrorTextProps(),e);return o?.invalid?s(D.span,{...r,ref:t}):null});Kl.displayName="FieldErrorText";var ql=P((e,t)=>{let o=T(le()?.getHelperTextProps(),e);return s(D.span,{...o,ref:t})});ql.displayName="FieldHelperText";var Yl=P((e,t)=>{let o=T(le()?.getInputProps(),e);return s(D.input,{...o,ref:t})});Yl.displayName="FieldInput";var Xl=e=>{let{value:t,children:o}=e,r=le();return s(Co,{value:se(()=>{if(!r)throw new Error("Field.Item must be used within Field.Root");let n=`field::${r.ids.control}::item::${t}`,i=`${n}::label`,l=()=>({...r.getInputProps(),id:n});return{...r,ids:{...r.ids,control:n,label:i},getLabelProps:()=>({...r.getLabelProps(),id:i,htmlFor:n}),getInputProps:()=>({...l(),...Oe.input.attrs}),getSelectProps:()=>({...l(),...Oe.select.attrs}),getTextareaProps:()=>({...l(),...Oe.textarea.attrs})}},[r,t]),children:o})};Xl.displayName="FieldItem";var Zl=P((e,t)=>{let o=T(le()?.getLabelProps(),e);return s(D.label,{...o,ref:t})});Zl.displayName="FieldLabel";var Jl=P(({fallback:e,...t},o)=>{let r=le();if(!r.required)return e;let n=T(r.getRequiredIndicatorProps(),t);return s(D.span,{...n,ref:o,children:t.children??"*"})});Jl.displayName="FieldRequiredIndicator";var[cI,Ru]=re({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var Su=typeof window<"u"?dr:X;var Ou=(e={})=>{let t=Ru(),o=Xe(),{ids:r,target:n,disabled:i=!!t?.disabled,invalid:l=!1,readOnly:a=!1,required:c=!1}=e,[p,u]=ee(!1),[d,g]=ee(!1),f=ue(),m=e.id??f,v=$(null),h=r?.control??`field::${m}`,C=r?.errorText??`field::${m}::error-text`,I=r?.helperText??`field::${m}::helper-text`,E=r?.label??`field::${m}::label`;Su(()=>{let R=v.current;if(!R)return;let z=()=>{let B=o.getRootNode();u(!!B.getElementById(C)),g(!!B.getElementById(I))};z();let q=new(o.getWindow()).MutationObserver(z);return q.observe(R,{childList:!0,subtree:!0}),()=>q.disconnect()},[o,C,I]);let w=se(()=>{let R=[];return p&&l&&R.push(C),d&&R.push(I),R.join(" ")||void 0},[l,C,I,p,d]),M=se(()=>()=>({...Oe.root.attrs,id:h,ref:v,role:"group","data-disabled":G(i),"data-invalid":G(l),"data-readonly":G(a)}),[i,l,a,h]),N=n?`field::${m}::item::${n}`:void 0,_=se(()=>()=>({...Oe.label.attrs,id:E,"data-disabled":G(i),"data-invalid":G(l),"data-readonly":G(a),"data-required":G(c),htmlFor:N??m}),[i,l,a,c,m,E,N]),y=se(()=>()=>({"aria-describedby":w,"aria-invalid":et(l),"data-invalid":G(l),"data-required":G(c),"data-readonly":G(a),id:m,required:c,disabled:i,readOnly:a}),[w,l,c,a,m,i]),O=se(()=>()=>({...y(),...Oe.input.attrs}),[y]),L=se(()=>()=>({...y(),...Oe.textarea.attrs}),[y]),k=se(()=>()=>({...y(),...Oe.select.attrs}),[y]),A=se(()=>()=>({id:I,...Oe.helperText.attrs,"data-disabled":G(i)}),[i,I]),S=se(()=>()=>({id:C,...Oe.errorText.attrs,"aria-live":"polite"}),[C]),W=se(()=>()=>({"aria-hidden":!0,...Oe.requiredIndicator.attrs}),[]);return{ariaDescribedby:w,ids:{root:h,control:m,label:E,errorText:C,helperText:I},refs:{rootRef:v},disabled:i,invalid:l,readOnly:a,required:c,getLabelProps:_,getRootProps:M,getInputProps:O,getTextareaProps:L,getSelectProps:k,getHelperTextProps:A,getErrorTextProps:S,getRequiredIndicatorProps:W}};var Zg=ie(),Ql=P((e,t)=>{let[o,r]=Zg(e,["id","ids","disabled","invalid","readOnly","required","target"]),n=Ou(o),i=T(n.getRootProps(),r);return s(Co,{value:n,children:s(D.div,{...i,ref:Pe(t,n.refs.rootRef)})})});Ql.displayName="FieldRoot";var Jg=ie(),es=P((e,t)=>{let[{value:o},r]=Jg(e,["value"]),n=T(o.getRootProps(),r);return s(Co,{value:o,children:s(D.div,{...n,ref:t})})});es.displayName="FieldRootProvider";var ts=P((e,t)=>{let o=T(le()?.getSelectProps(),e);return s(D.select,{...o,ref:t})});ts.displayName="FieldSelect";var Au=e=>{if(!e)return;let t=Ge(e),o=te(e),r=Q(e),n=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",n),e.form?.addEventListener("reset",n);let i=Object.getPrototypeOf(e),l=Object.getOwnPropertyDescriptor(i,"value");l&&Object.defineProperty(e,"value",{...l,set(p){let u=l.get?.call(this);l.set?.call(this,p),n(),u!==p&&queueMicrotask(()=>{e.dispatchEvent(new o.InputEvent("input",{bubbles:!0}))})}});let a=new o.ResizeObserver(()=>{requestAnimationFrame(()=>n())});a.observe(e);let c=new o.MutationObserver(()=>n());return c.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",n),()=>{e.removeEventListener("input",n),e.form?.removeEventListener("reset",n),r.fonts?.removeEventListener("loadingdone",n),a.disconnect(),c.disconnect()}};var os=P((e,t)=>{let{autoresize:o,...r}=e,n=$(null),i=T(le()?.getTextareaProps(),{style:{resize:o?"none":void 0}},r);return X(()=>{if(o)return Au(n.current)},[o]),s(D.textarea,{...i,ref:Pe(t,n)})});os.displayName="FieldTextarea";var it=bt({Context:()=>ku,ErrorText:()=>Kl,HelperText:()=>ql,Input:()=>Yl,Item:()=>Xl,Label:()=>Zl,RequiredIndicator:()=>Jl,Root:()=>Ql,RootProvider:()=>es,Select:()=>ts,Textarea:()=>os});function Mu({label:e,children:t,helper:o,action:r,error:n,alignLabelRow:i=!1,className:l,labelClassName:a,helperClassName:c,errorClassName:p}){return x(it.Root,{className:b("polli:flex polli:flex-col polli:gap-2 polli:font-body",l),invalid:!!n,children:[(e||r)&&x("div",{className:b("polli:flex polli:items-center polli:justify-between polli:gap-2",i&&"polli:min-h-8"),children:[e&&s(it.Label,{className:b("polli:text-sm polli:font-semibold polli:leading-5 polli:text-theme-text-strong",a),children:e}),r]}),t,n?s(it.ErrorText,{className:b("polli:text-xs polli:font-medium polli:leading-5 polli:text-intent-danger-text",p),children:n}):o?s(it.HelperText,{className:b("polli:text-xs polli:font-normal polli:leading-normal polli:text-theme-text-muted",c),children:o}):null]})}var rs=new WeakMap;function Du(e){let t=rs.get(e);if(!t){let r=n=>{n.dataTransfer?.types?.includes("Files")&&n.preventDefault()};t={consumers:0,preventFileNavigation:r},rs.set(e,t),e.addEventListener("dragover",r),e.addEventListener("drop",r)}t.consumers+=1;let o=!1;return()=>{o||(o=!0,t.consumers-=1,!(t.consumers>0)&&(e.removeEventListener("dragover",t.preventFileNavigation),e.removeEventListener("drop",t.preventFileNavigation),rs.delete(e)))}}function Qg(e,t){if(!t)return!0;let o=t.split(",").map(r=>r.trim()).filter(Boolean);return o.length===0?!0:o.some(r=>{if(r.startsWith("."))return e.name.toLowerCase().endsWith(r.toLowerCase());if(r.endsWith("/*")){let n=r.slice(0,r.length-1);return e.type.startsWith(n)}return e.type===r})}function Lu(e,t,{maxFiles:o,maxSizeBytes:r,accept:n}){let i=[],l=[],a=Math.max(0,o-t.length);for(let c of e)Qg(c,n)?c.size>r?l.push({file:c,reason:"size"}):a<=0?l.push({file:c,reason:"count"}):(i.push(c),a-=1):l.push({file:c,reason:"type"});return{accepted:i,rejected:l}}var e2={danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text"},t2={danger:"polli:hover:bg-intent-danger-bg-hover",info:"polli:hover:bg-intent-info-bg-hover"},o2={tile:"polli:bg-theme-bg-active polli:text-theme-text-soft",ghost:"polli:bg-transparent polli:text-theme-text-muted"},r2={tile:"polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",ghost:"polli:hover:bg-transparent polli:hover:text-theme-text-soft"},n2={sm:"polli:h-6 polli:w-6 polli:rounded",md:"polli:h-9 polli:w-9 polli:rounded-full"},er=P(({intent:e,variant:t="tile",pressed:o,title:r,tooltip:n,tooltipAlign:i,tooltipClampToViewport:l,children:a,className:c,size:p="sm",disabled:u=!1,...d},g)=>{let f=s("button",{...d,ref:g,type:"button",disabled:u,"aria-label":d["aria-label"]??r,"aria-pressed":o,"data-intent":e,className:b("polli-control polli:inline-flex polli:items-center polli:justify-center polli:transition-colors",u?"polli:cursor-not-allowed polli:opacity-50":"polli:cursor-pointer",n2[p],e?e2[e]:o2[t],!u&&(e?t2[e]:r2[t]),c),children:a}),m=n??r;return m?s(Je,{triggerAs:"span",content:m,align:i,clampToViewport:l,tapEnabled:!1,className:u?"polli:cursor-not-allowed":"polli:cursor-pointer",children:f}):f});er.displayName="IconButton";var i2=new Set(["image/gif","image/jpeg","image/png","image/webp"]),l2=64,s2=112,Bu={sm:"polli:h-16 polli:w-16",lg:"polli:h-28 polli:w-28"};function Fu(e){return i2.has(e.type)}function a2(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function c2(e){let t=new Set(e.map(r=>r.type.split("/")[0]).filter(Boolean));if(t.size!==1)return`${e.length} files attached`;let[o]=t;return`${e.length} ${o}${e.length===1?"":"s"} attached`}function p2({icon:e,size:t}){return s("div",{className:b("polli:flex polli:items-center polli:justify-center polli:rounded-xl polli:bg-theme-bg-active polli:text-theme-text-soft",Bu[t]),children:e})}function u2({file:e,placeholderIcon:t,size:o="sm"}){let r=$(null),[n,i]=ee(()=>Fu(e)),l=o==="lg"?s2:l2;return X(()=>{if(!Fu(e)){i(!1);return}let a=!1;i(!0);async function c(){try{let p=await createImageBitmap(e);if(a){p.close();return}let u=r.current,d=u?.getContext("2d");if(!u||!d){p.close(),i(!1);return}u.width=l,u.height=l;let g=Math.max(l/p.width,l/p.height),f=p.width*g,m=p.height*g,v=(l-f)/2,h=(l-m)/2;d.clearRect(0,0,l,l),d.drawImage(p,v,h,f,m),p.close()}catch{a||i(!1)}}return c(),()=>{a=!0}},[e,l]),n?s("canvas",{ref:r,role:"img","aria-label":e.name,className:b("polli:rounded-xl",Bu[o]),width:l,height:l}):s(p2,{icon:t,size:o})}function Vu({value:e,onChange:t,onReject:o,maxFiles:r=4,maxSizeBytes:n=10*1024*1024,accept:i="image/*",icon:l=s(rn,{className:"polli:h-6 polli:w-6"}),label:a=x(Y,{children:["Drag images here or ",s("span",{className:"polli:underline",children:"browse"})]}),previewIcon:c=s(rn,{className:"polli:h-5 polli:w-5"}),variant:p="default",disabled:u=!1,className:d}){X(()=>Du(document),[]);function g(N){if(u||N.length===0)return;let{accepted:_,rejected:y}=Lu(N,e,{maxFiles:r,maxSizeBytes:n,accept:i});_.length>0&&t([...e,..._]),y.length>0&&o?.(y)}let f=e.length>0,m=!u&&e.length<r,v=r===1,h=p!=="default",C=p==="inline",I=h?"sm":v?"lg":"sm",E=ue(),w=`${E}-add`;function M(N){g(Array.from(N.target.files??[])),N.target.value=""}return C&&!f?null:s("div",{className:b("polli:flex polli:flex-col polli:gap-2",d),children:s("fieldset",{disabled:u,className:b("polli:m-0",!C&&"polli:rounded-xl polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale","polli:text-sm",C?"polli:border-0 polli:bg-transparent polli:p-0 polli:text-left":h?"polli:min-h-16 polli:px-3 polli:py-2 polli:text-left":"polli:px-4 polli:py-4 polli:text-center","polli:text-theme-text-soft polli:transition-colors",u?"polli:opacity-50":"polli:hover:bg-theme-bg-hover"),onDragOver:N=>N.preventDefault(),onDrop:N=>{N.preventDefault(),!u&&g(Array.from(N.dataTransfer.files))},children:f?x("div",{className:b("polli:flex polli:gap-3",h?"polli:items-center":"polli:flex-col"),children:[h&&!C&&s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-muted",children:c2(e)}),x("ul",{className:b("polli:m-0 polli:gap-3 polli:p-0",h?b("polli:flex polli:min-w-0 polli:flex-1 polli:flex-wrap",C?"polli:justify-start":"polli:ml-auto polli:justify-end"):"polli:grid polli:grid-cols-[repeat(auto-fill,minmax(5rem,1fr))]",v&&!h&&"polli:flex polli:justify-center"),children:[e.map((N,_)=>x("li",{className:b("polli:relative polli:flex polli:min-w-0 polli:list-none polli:flex-col polli:items-center polli:gap-1",v&&"polli:max-w-full"),children:[s(u2,{file:N,placeholderIcon:c,size:I}),!h&&x(Y,{children:[s("span",{className:b("polli:max-w-full polli:truncate polli:text-xs polli:font-medium polli:text-theme-text-base",v?"polli:w-36":"polli:w-16"),children:N.name}),s("span",{className:"polli:text-micro polli:text-theme-text-muted",children:a2(N.size)})]}),!u&&s("div",{className:"polli:absolute polli:-top-2 polli:right-1",children:s(er,{intent:"danger",title:`Remove ${N.name}`,onClick:()=>t(e.filter((y,O)=>O!==_)),children:s(qt,{className:"polli:h-3 polli:w-3"})})})]},`${N.name}-${_}`)),!C&&!v&&m&&s("li",{className:"polli:flex polli:list-none",children:x("label",{htmlFor:w,className:b("polli-control polli:flex polli:cursor-pointer polli:flex-col polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-soft polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-strong",h?"polli:h-16 polli:w-16 polli:px-2 polli:py-1":"polli:min-h-20 polli:w-full polli:px-3 polli:py-2"),children:[s(_i,{className:"polli:h-5 polli:w-5"}),!h&&s("span",{className:"polli:text-xs polli:font-medium",children:"Add"}),s("input",{id:w,type:"file","aria-label":"Add files",accept:i,multiple:!0,disabled:u||!m,className:"polli:sr-only",onChange:M})]})})]}),Number.isFinite(r)&&r>1&&!h&&x("span",{className:"polli:text-xs polli:text-theme-text-muted",children:[e.length," / ",r," files"]})]}):x("label",{htmlFor:E,className:b("polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-lg",h?"polli:min-h-12 polli:flex-row polli:justify-start":"polli:min-h-32 polli:flex-col polli:justify-center",m?"polli:cursor-pointer":"polli:cursor-not-allowed"),children:[l,s("span",{children:a}),s("input",{id:E,type:"file",accept:i,multiple:r>1,disabled:u||!m,className:"polli:sr-only",onChange:M})]})})})}var Hu=({text:e,content:t,label:o="More info"})=>s(Je,{content:t??e,ariaLabel:o,className:"polli:ml-1",displayContents:!0,children:s("span",{className:"polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong",children:"i"})});var d2={icon:"polli:h-5 polli:w-5 polli:p-0 polli:text-xs",sm:"polli:h-5 polli:px-2 polli:text-xs",md:"polli:h-6 polli:px-2.5 polli:text-sm",lg:"polli:h-7 polli:px-3 polli:text-sm"},m2={news:"polli:bg-intent-news-bg-light polli:text-intent-news-text",new:"polli:bg-intent-new-bg-light polli:text-intent-new-text",free:"polli:bg-intent-free-bg-light polli:text-intent-free-text",alpha:"polli:bg-intent-alpha-bg-light polli:text-intent-alpha-text",neutral:"polli:bg-ink-100/80 polli:text-ink-900",success:"polli:bg-intent-success-bg-bright/15 polli:text-intent-success-text",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},tr=({intent:e,size:t="md",className:o,children:r,...n})=>{let i=e?m2[e]:"polli:bg-theme-bg-active polli:text-theme-text-strong";return s("span",{...n,className:b("polli:inline-flex polli:shrink-0 polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:font-medium polli:leading-none",d2[t],i,o),children:r})};var _u="polli:gap-1.5 polli:font-mono polli:font-normal polli:[&>svg]:size-3.5 polli:[&>svg]:shrink-0";function Wu({prefix:e,value:t,label:o="Copy key",className:r}){let n=`${e}\u2026`;return t?s(Ct,{value:t,tooltip:null,"aria-label":o,className:"polli:inline-flex polli:cursor-pointer polli:rounded-lg",children:i=>x(tr,{intent:i?"success":"neutral",className:b(_u,"polli:transition-colors",r),children:[i?s(Re,{"aria-hidden":"true"}):s(Kt,{"aria-hidden":"true"}),i?"Copied":n]})}):s(tr,{intent:"neutral",className:b(_u,r),children:n})}function zu({as:e,external:t,showIcon:o=!0,className:r,surfaceClassName:n,children:i,...l}){let a=e||"a",c=t??wo(l.href);return x(yt,{as:a,variant:"card",target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,...l,className:b("polli:relative polli:flex polli:h-full polli:flex-col polli:gap-2 polli:bg-surface-opaque/80 polli:p-5 polli:outline-none",o&&c&&"polli:pr-10","polli:transition-colors polli:hover:bg-surface-opaque/95","polli:focus-visible:ring-2 polli:focus-visible:ring-theme-border",r,n),children:[o&&c&&s(rt,{"aria-hidden":"true",className:"polli:absolute polli:top-4 polli:right-4 polli:h-3.5 polli:w-3.5 polli:text-theme-text-soft"}),i]})}var Uu=({icon:e,label:t,detail:o,children:r,className:n,...i})=>x("div",{...i,className:b("polli:flex polli:aspect-video polli:min-h-40 polli:flex-col polli:items-center polli:justify-center polli:gap-3 polli:rounded-lg polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale polli:p-6 polli:text-center",n),children:[e&&s("div",{className:"polli:flex polli:h-10 polli:w-10 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-base",children:e}),(t||o)&&x("div",{className:"polli:max-w-sm",children:[t&&s(ce,{as:"p",size:"sm",tone:"strong",weight:"semibold",children:t}),o&&s(ce,{as:"p",size:"sm",tone:"soft",className:"polli:mt-1",children:o})]}),r]});var Gu="polli-control polli:inline-flex polli:min-h-8 polli:min-w-[140px] polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-1.5 polli:text-xs polli:font-medium polli:transition-all polli:duration-200",$u="polli-control polli:flex polli:w-full polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:text-xs polli:transition-colors",ju="polli:flex polli:h-4 polli:w-4 polli:flex-shrink-0 polli:items-center polli:justify-center polli:rounded polli:border polli:border-theme-border polli:text-xs",Ku=({options:e,selected:t,onChange:o,placeholder:r,disabled:n,disabledText:i,disabledTooltip:l,align:a="start",label:c,ariaLabel:p,fullWidth:u=!1})=>{let d=t.length===0,g=h=>{t.includes(h)?o(t.filter(C=>C!==h)):o([...t,h])},f=()=>o([]),m=n?i:d?r:t.length===1?e.find(h=>h.value===t[0])?.label??"1 selected":`${t.length} selected`,v=c?s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-soft",children:c}):null;return n?x("div",{className:b("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(Je,{triggerAs:"span",content:l||"No items available",align:"center",className:b("polli:inline-flex polli:cursor-not-allowed",u&&"polli:min-w-0 polli:flex-1"),children:x("button",{type:"button",disabled:!0,"aria-label":p||c||r,className:b(Gu,u&&"polli:w-full polli:min-w-0","polli:cursor-not-allowed polli:bg-theme-bg-active polli:opacity-50"),children:[s("span",{className:"polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong",children:m}),s(de,{expanded:!1,className:"polli:h-3 polli:w-3 polli:text-theme-text-soft"})]})})]}):x("div",{className:b("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(vt,{align:a,className:"polli:w-[min(20rem,calc(100vw-2rem))]",trigger:h=>x("button",{type:"button","aria-label":p||c||r,className:b(Gu,u&&"polli:w-full polli:min-w-0",h?"polli:bg-theme-bg-hover":"polli:bg-theme-bg-active polli:hover:bg-theme-bg-hover"),children:[s("span",{className:b("polli:flex-1 polli:truncate polli:text-left",h?"polli:text-theme-text-strong":"polli:text-theme-text-base"),children:m}),s(de,{expanded:h,className:b("polli:h-3 polli:w-3 polli:transition-transform",h?"polli:text-theme-text-strong":"polli:text-theme-text-soft")})]}),children:x(Ue,{className:"polli:max-h-64",children:[x("button",{type:"button",onClick:f,"aria-pressed":d,className:b($u,d?"polli:bg-theme-bg-active polli:font-medium polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:b(ju,d&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:d&&"\u2713"}),r]}),e.map(h=>{let C=t.includes(h.value);return x("button",{type:"button",onClick:()=>g(h.value),"aria-pressed":C,className:b($u,C?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:b(ju,C&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:C&&"\u2713"}),s("span",{className:"polli:min-w-0 polli:[overflow-wrap:anywhere]",children:h.label})]},h.value)})]})})]})};var f2="polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:whitespace-nowrap polli:transition-colors",g2="polli:bg-theme-bg-active polli:text-theme-text-strong",h2="polli:text-ink-800 polli:hover:bg-surface-opaque/60 polli:hover:text-ink-950";function qu({as:e,active:t=!1,icon:o,className:r,children:n,...i}){return x(e||"button",{"aria-current":t?"page":void 0,className:b(f2,t?g2:h2,r),...i,children:[o?s(o,{className:"polli:h-4 polli:w-4 polli:shrink-0"}):null,n]})}function Po(e=new Date){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function lt(e,t){let o=new Date(e);return o.setUTCDate(o.getUTCDate()+t),o}function x2(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1))}function b2(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function v2(e){let t=e.getUTCDay()||7;return lt(Po(e),1-t)}function y2(e){let t=e.getUTCDay()||7,o=lt(Po(e),4-t),r=o.getUTCFullYear(),n=new Date(Date.UTC(r,0,1)),i=Math.ceil(((o.getTime()-n.getTime())/864e5+1)/7);return`${r}-W${String(i).padStart(2,"0")}`}function Yu(e){return e.toISOString().slice(0,10)}function C2(e){return e.toISOString().slice(0,13).replace("T"," ")}function w2(e){return e.toISOString().slice(0,7)}function st(e,t=new Date){return e==="day"?{granularity:e,period:Yu(Po(t))}:e==="week"?{granularity:e,period:y2(t)}:{granularity:e,period:w2(x2(t))}}function Xu(){return st("day")}function Tt(e){if(e.granularity==="day"){let n=new Date(`${e.period}T00:00:00.000Z`);return{start:n,end:lt(n,1)}}if(e.granularity==="week"){let[n,i]=e.period.split("-W"),l=Number(n),a=Number(i),c=new Date(Date.UTC(l,0,4)),p=lt(v2(c),(a-1)*7);return{start:p,end:lt(p,7)}}let[t,o]=e.period.split("-"),r=new Date(Date.UTC(Number(t),Number(o)-1,1));return{start:r,end:b2(r,1)}}function Zu(e){let{start:t,end:o}=Tt(e),r=[],n=new Date(t);if(e.granularity==="day"){for(;n<o;)r.push(`${C2(n)}:00:00`),n.setUTCHours(n.getUTCHours()+1);return r}for(;n<o;)r.push(Yu(n)),n.setUTCDate(n.getUTCDate()+1);return r}function Ju(e,t){return t==="day"?new Date(`${e.replace(" ","T")}.000Z`):new Date(`${e}T00:00:00.000Z`)}function or(e,t=new Date(0),o=Po()){let{start:r,end:n}=Tt(e);return n>t&&r<=o}var P2="polli-control polli:inline-flex polli:items-center polli:justify-center polli:rounded-full polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",E2={xs:"polli:px-2.5 polli:py-1 polli:text-xs",lg:"polli:px-5 polli:py-2 polli:text-lg",md:"polli:px-4 polli:py-1.5 polli:text-base",sm:"polli:px-3 polli:py-1.5 polli:text-sm"},ns={soft:{base:"",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",mixed:"polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"},ghost:{base:"polli:border polli:border-transparent",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",mixed:"polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"}},Qu={amber:{active:"polli:bg-paid-pale polli:text-paid-deep",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-paid-pale/60"},green:{active:"polli:bg-tier-pale polli:text-tier-deep",inactive:"polli:bg-transparent polli:text-tier-deep polli:hover:bg-tier-pale/60"}};function Sn({as:e,active:t,onClick:o,children:r,size:n="md",variant:i="soft",intent:l,detail:a,ariaLabel:c,disabled:p=!1,className:u,...d}){let g=e||"button",f=g==="button",m=l==="neutral"?ns.soft:l?{...Qu[l],mixed:Qu[l].active}:ns[i];return x(g,{...d,...f?{type:"button",disabled:p}:{},...!f&&p?{"aria-disabled":!0,tabIndex:-1}:{},...g==="a"&&p?{href:void 0}:{},onClick:p?h=>{h.preventDefault(),h.stopPropagation()}:o,...c!==void 0?{"aria-label":c}:{},...f?{"aria-pressed":t}:{"aria-current":t===!0?"page":void 0},className:b(P2,ns[i].base,t==="mixed"?m.mixed:t?m.active:m.inactive,p&&"polli:pointer-events-none polli:cursor-not-allowed polli:opacity-50",E2[n],u),children:[r,a!=null&&s("span",{className:"polli:ml-1 polli:font-normal polli:opacity-70",children:a})]})}var I2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],T2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ed="polli-control polli:rounded-full polli:px-2 polli:py-1 polli:text-xs polli:font-semibold polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-subtle";function Eo(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function N2(e){let t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)),o=t.getUTCDay()||7,r=lt(t,1-o);return Array.from({length:42},(n,i)=>lt(r,i))}function td(e,t){return e.getTime()===t.getTime()}function is(e){return Tt(e).start}function od(e){return`${e.granularity}:${e.period}`}function id(e,t="short"){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:t,year:"numeric"})}function ls(e){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"})}function k2(e,t){let o=lt(t,-1);return e.getUTCFullYear()===o.getUTCFullYear()&&e.getUTCMonth()===o.getUTCMonth()?`${e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short"})} ${e.getUTCDate()}-${o.getUTCDate()}, ${o.getUTCFullYear()}`:`${ls(e)} - ${ls(o)}`}function rd(e){let{start:t,end:o}=Tt(e);return e.granularity==="day"?ls(t):e.granularity==="week"?k2(t,o):id(t,"long")}function nd(e,t){if(t==="month"){let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return{start:r,end:Eo(r,12)}}let o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1));return{start:o,end:Eo(o,1)}}var ld=({value:e,onChange:t,minDate:o=new Date(0),maxDate:r,trigger:n,header:i})=>{let[l,a]=ee(!1),[c,p]=ee(()=>is(e)),[u,d]=ee(()=>is(e)),g=$(null),{granularity:f,period:m}=e;X(()=>{let S=od({granularity:f,period:m});if(g.current===S){g.current=null;return}let W=is({granularity:f,period:m});d(W),p(W)},[f,m]);let v=se(()=>N2(c),[c]),h=Tt(e),C=Po(r),I=e.granularity==="month"?Eo(c,-12):Eo(c,-1),E=e.granularity==="month"?Eo(c,12):Eo(c,1),w=nd(I,e.granularity),M=nd(E,e.granularity),N=w.end<=o,_=M.start>C,y=rd(e),O=(S,W)=>{g.current=od(S),d(W),p(W),t(S)},L=S=>{O(st(S,u),u)},k=S=>{O(st(e.granularity,S),S),a(!1)},A=e.granularity==="month"?String(c.getUTCFullYear()):id(c,"long");return x("div",{className:n?"polli:contents":"polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",children:[!n&&s("div",{className:"polli:flex polli:flex-wrap polli:gap-1.5",children:["day","week","month"].map(S=>s(Sn,{active:e.granularity===S,onClick:()=>L(S),children:S[0].toUpperCase()+S.slice(1)},S))}),x(vt,{open:l,onOpenChange:a,className:"polli:w-[320px] polli:max-w-[calc(100vw-2rem)] polli:rounded-xl polli:border polli:border-divider polli:bg-surface-opaque polli:p-3.5 polli:shadow-lg",trigger:n??(S=>x("button",{type:"button","aria-label":`Select period, current ${y}`,className:b("polli-control polli:inline-flex polli:w-[320px] polli:max-w-full polli:items-center polli:justify-between polli:gap-2 polli:rounded-full polli:px-4 polli:py-1.5 polli:text-left polli:text-base polli:font-medium polli:leading-normal","polli:bg-theme-bg-active polli:text-theme-text-base","polli:transition-all polli:duration-200 polli:ease-out polli:hover:bg-theme-bg-hover",S&&"polli:bg-theme-bg-hover polli:text-theme-text-strong"),children:[s("span",{className:"polli:truncate",children:y}),s(de,{expanded:S})]})),children:[i,x("div",{className:"polli:mb-3 polli:flex polli:items-center polli:justify-between",children:[s("button",{type:"button","aria-label":"Previous",disabled:N,onClick:()=>p(I),className:b(ed,N&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:"<"}),s("div",{className:"polli:text-base polli:font-bold polli:text-theme-text-base",children:A}),s("button",{type:"button","aria-label":"Next",disabled:_,onClick:()=>p(E),className:b(ed,_&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:">"})]}),e.granularity==="month"?s("div",{className:"polli:grid polli:grid-cols-3 polli:gap-1.5",children:T2.map((S,W)=>{let R=new Date(Date.UTC(c.getUTCFullYear(),W,1)),z=or(st("month",R),o,C),q=R.toLocaleDateString("en-US",{timeZone:"UTC",month:"long",year:"numeric"}),B=R.getUTCFullYear()===h.start.getUTCFullYear()&&R.getUTCMonth()===h.start.getUTCMonth();return s("button",{type:"button","aria-label":q,"aria-pressed":B,disabled:!z,onClick:()=>k(R),className:b("polli-control polli:rounded-lg polli:px-3 polli:py-2 polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",B?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!z&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:S},S)})}):x(Y,{children:[s("div",{className:"polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted",children:I2.map(S=>s("div",{children:S},S))}),s("div",{className:"polli:grid polli:grid-cols-7 polli:gap-1",children:v.map(S=>{let W=S.getUTCMonth()===c.getUTCMonth(),R=or(st(e.granularity,S),o,C),z=e.granularity==="week"?`Select ${rd(st("week",S))}`:`Select ${S.toLocaleDateString("en-US",{timeZone:"UTC",weekday:"long",month:"long",day:"numeric",year:"numeric"})}`,q=e.granularity==="day"?td(S,h.start):S>=h.start&&S<h.end;return s("button",{type:"button","aria-label":z,"aria-pressed":q,disabled:!R,onClick:()=>k(S),className:b("polli-control polli:aspect-square polli:rounded-lg polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",!W&&"polli:text-theme-text-muted",td(S,C)&&"polli:ring-1 polli:ring-theme-border",q?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!R&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:S.getUTCDate()},S.toISOString())})})]})]})]})};var sd=({title:e,id:t,framed:o=!0,intro:r,action:n,actionClassName:i,panelClassName:l,titleClassName:a,children:c,className:p})=>{let u=x(Y,{children:[r&&s(ce,{as:"div",className:"polli:max-w-2xl",children:r}),c]}),d=x(Y,{children:[x("header",{className:"polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3",children:[s(bo,{as:"h2",size:"section",className:b("polli:text-left",a),children:e}),n&&s("div",{className:b("polli:shrink-0",i),children:n})]}),u]});return s("section",{id:t,className:b("polli:scroll-mt-10",p),children:o?s(yt,{variant:"panel",className:b("polli:flex polli:flex-col polli:gap-5",l),children:d}):s("div",{className:"polli:flex polli:flex-col polli:gap-4",children:d})})};var R2={stat:"polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",fact:"polli:text-sm polli:leading-6 polli:text-theme-text-soft"},ad=({label:e,value:t,detail:o,variant:r="stat",className:n,labelClassName:i,valueClassName:l,detailClassName:a})=>x("div",{className:b("polli:text-sm",n),children:[s(ce,{as:"div",size:"micro",tone:"soft",weight:"bold",className:b("polli:uppercase polli:tracking-wide",i),children:e}),s("div",{className:b("polli:mt-1 polli:break-words",R2[r],l),children:t}),o&&s(ce,{as:"div",size:"xs",tone:"soft",className:b("polli:mt-2",a),children:o})]});function On({as:e,external:t,showIcon:o=!0,size:r="inherit",tone:n="accent",className:i,children:l,...a}){let c=e||"a",p=t??wo(a.href);return x(c,{target:p&&e!=="button"?"_blank":void 0,rel:p&&e!=="button"?"noopener noreferrer":void 0,className:["polli-link",i].filter(Boolean).join(" "),"data-size":r,"data-tone":n,...a,children:[l,o&&p&&s(rt,{"aria-hidden":"true",className:"polli-link-external-icon"})]})}function S2(e){if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}function O2(e){let o=S2(e).split(/(https:\/\/[^\s"\\]+)/g),r=0;return o.map((n,i)=>{let l=`${r}:${n}`;if(r+=n.length,!n.startsWith("https://"))return n;let a=n,c=o[i-1]?.endsWith('"')&&o[i+1]?.startsWith('"'),p=(a.match(/\)/g)?.length??0)-(a.match(/\(/g)?.length??0);for(;!c&&(/[.,!?;:]$/.test(a)||a.endsWith(")")&&p>0);)a.endsWith(")")&&p--,a=a.slice(0,-1);return x(Y,{children:[s(On,{href:a,children:a}),n.slice(a.length)]},l)})}function cd({value:e,error:t=!1}){return s("pre",{className:b("polli:max-h-72 polli:overflow-auto polli:whitespace-pre-wrap polli:break-words polli:rounded-lg polli:border polli:p-3 polli:text-xs polli:leading-relaxed",t?"polli:border-intent-danger-border/30 polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:border-theme-border/20 polli:bg-theme-bg-pale polli:text-theme-text-base"),children:O2(e)})}var A2={pending:"Pending",running:"Running","approval-requested":"Awaiting approval","approval-responded":"Responded",complete:"Completed",error:"Error",denied:"Denied"};function M2({status:e}){let t=e==="complete"||e==="approval-responded"?s(Re,{className:"polli:size-3"}):e==="error"||e==="denied"?s(qt,{className:"polli:size-3"}):s(Hi,{className:b("polli:size-3",e==="running"&&"polli:animate-pulse")});return x("span",{"data-status":e,className:b("polli:ml-auto polli:inline-flex polli:shrink-0 polli:items-center polli:gap-1 polli:rounded-full polli:px-2 polli:py-1 polli:text-[11px] polli:font-semibold",e==="complete"||e==="approval-responded"?"polli:bg-theme-bg-active polli:text-intent-success-text":e==="error"||e==="denied"?"polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:bg-intent-info-bg-light polli:text-intent-info-text"),children:[t,A2[e]]})}function pd({name:e,input:t,output:o,error:r,status:n=r===void 0?"complete":"error",defaultOpen:i=!1,className:l}){let a=r===void 0?o:r,[c,p]=ee(i);return x("div",{"data-tool-status":n,className:b("polli:overflow-hidden polli:rounded-xl polli:border polli:border-theme-border/35 polli:bg-surface-opaque",l),children:[x("button",{type:"button","aria-expanded":c,onClick:()=>p(u=>!u),className:"polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:px-3 polli:py-2.5 polli:text-left polli:hover:bg-theme-bg-hover/50",children:[s("span",{className:"polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(Wi,{className:"polli:size-3.5"})}),s("code",{className:"polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong",children:e}),s(M2,{status:n}),s(de,{expanded:c,className:"polli:size-4 polli:shrink-0 polli:text-theme-text-soft"})]}),c&&x("div",{className:"polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3",children:[t!==void 0&&x("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(ce,{size:"xs",tone:"muted",weight:"bold",children:"Parameters"}),s(cd,{value:t})]}),a!==void 0&&x("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(ce,{size:"xs",tone:"muted",weight:"bold",children:r===void 0?"Result":"Error"}),s(cd,{value:a,error:r!==void 0})]})]})]})}function ud(...e){return Hs(fr(...e))}function dd(e=!0){X(()=>{if(!e)return;let t=document.body.style.overflow,o=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=t,document.documentElement.style.overflow=o}},[e])}var md=({className:e,children:t,role:o="group",...r})=>s("div",{...r,role:o,className:b("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-1.5",e),children:t});var D2={sm:{track:"polli:h-7 polli:w-[52px]",thumb:"polli:h-5 polli:w-5",travel:"polli:translate-x-6",icon:"polli:h-3.5 polli:w-3.5",ghostOff:"polli:right-2",ghostOn:"polli:left-2"},md:{track:"polli:h-9 polli:w-16",thumb:"polli:h-7 polli:w-7",travel:"polli:translate-x-7",icon:"polli:h-4 polli:w-4",ghostOff:"polli:right-[9px]",ghostOn:"polli:left-[9px]"},lg:{track:"polli:h-12 polli:w-[88px]",thumb:"polli:h-10 polli:w-10",travel:"polli:translate-x-10",icon:"polli:h-5 polli:w-5",ghostOff:"polli:right-[13px]",ghostOn:"polli:left-[13px]"}},L2={off:"polli:border-theme-text-strong/15 polli:bg-theme-bg-subtle polli:hover:border-theme-text-strong/30",on:"polli:border-tier-soft polli:bg-tier-soft",invalid:"polli:border-intent-danger-text polli:bg-intent-danger-bg-light",choice:"polli:border-theme-text-strong/10 polli:bg-surface-opaque"},F2={off:"polli:bg-theme-text-muted/60 polli:text-app-bg",on:"polli:bg-intent-success-text-on-bright",invalid:"polli:bg-intent-danger-text polli:text-app-bg",choice:"polli:bg-app-bg polli:text-theme-text-soft"},An=({checked:e,onChange:t,status:o,ariaLabel:r,disabled:n=!1,size:i="md",icons:l,className:a})=>{let c=D2[i],p=l?"choice":o??(e?"on":"off");return x("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r??(e?"Turn off toggle":"Turn on toggle"),onClick:()=>t(!e),disabled:n,className:b("polli-control polli:relative polli:inline-block polli:shrink-0 polli:cursor-pointer polli:rounded-full polli:border polli:transition-colors polli:disabled:cursor-not-allowed polli:disabled:opacity-60",c.track,L2[p],a),children:[l&&s("span",{"aria-hidden":"true",className:b("polli:absolute polli:top-1/2 polli:flex polli:-translate-y-1/2 polli:text-theme-text-strong/40 polli:[&>svg]:h-full polli:[&>svg]:w-full",c.icon,e?c.ghostOn:c.ghostOff),children:e?l.off:l.on}),s("span",{className:b("polli:absolute polli:top-1/2 polli:left-[3px] polli:flex polli:-translate-y-1/2 polli:items-center polli:justify-center polli:rounded-full polli:transition-[transform,background-color]",c.thumb,F2[p],e?c.travel:"polli:translate-x-0"),children:l&&s("span",{"aria-hidden":"true",className:b("polli:flex polli:[&>svg]:h-full polli:[&>svg]:w-full",c.icon),children:e?l.on:l.off})})]})};var Mn="polli-color-mode";function gd(){try{let e=localStorage.getItem(Mn);return e==="light"||e==="dark"?e:null}catch{return null}}function ss(){return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches===!0?"dark":"light"}var Io=gd()??ss(),rr=new Set;function as(){typeof document>"u"||(document.documentElement.classList.toggle("dark",Io==="dark"),B2())}function B2(){if(typeof document>"u")return;let e=getComputedStyle(document.documentElement).getPropertyValue("--polli-color-app-bg").trim();if(!e)return;let t=document.querySelector('meta[name="theme-color"]');t||(t=document.createElement("meta"),t.setAttribute("name","theme-color"),document.head.appendChild(t)),t.setAttribute("content",e)}function hd(){for(let e of rr)e()}function fd(e){if(e.key!==Mn)return;let t=gd()??ss();t!==Io&&(Io=t,as(),hd())}function V2(e){return rr.size===0&&typeof window<"u"&&(as(),window.addEventListener("storage",fd)),rr.add(e),()=>{rr.delete(e),rr.size===0&&typeof window<"u"&&window.removeEventListener("storage",fd)}}function H2(){return Io}function _2(){return"light"}function cs(e){if(e!==Io){Io=e,as();try{e===ss()?localStorage.removeItem(Mn):localStorage.setItem(Mn,e)}catch{}hd()}}function ps(){let e=mr(V2,H2,_2);return{mode:e,isDark:e==="dark",toggle:()=>cs(e==="dark"?"light":"dark")}}var xd=()=>{let{isDark:e,toggle:t}=ps();return s(An,{checked:e,onChange:t,ariaLabel:"Toggle dark mode",size:"sm",icons:{off:s(Gi,{}),on:s(Ui,{})}})};var bd=({open:e,onOpenChange:t,ariaLabel:o,children:r,side:n="left",contentClassName:i})=>{let l=$(null);return s(Ie.Root,{open:e,initialFocusEl:()=>l.current,onOpenChange:a=>t(a.open),children:x(jt,{children:[s(Ie.Backdrop,{className:"polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm"}),s(Ie.Positioner,{className:"polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden",children:s(Ie.Content,{ref:l,"aria-label":o,className:b("polli:pointer-events-auto polli:flex polli:h-dvh polli:w-[min(20rem,86vw)] polli:flex-col polli:overflow-hidden polli:border-theme-text-strong/10 polli:bg-app-bg polli:outline-none",n==="right"?"polli:ml-auto polli:border-l":"polli:border-r",i),children:r})})]})})};function vd({as:e,className:t,children:o,...r}){let n=e||"button";return s(n,{...n==="button"?{type:"button"}:void 0,...r,className:b("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:no-underline polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:focus-visible:bg-theme-bg-hover",t),children:o})}function yd({children:e}){return x("output",{className:"polli:flex polli:items-center polli:gap-2 polli:font-body polli:text-sm polli:text-theme-text-muted",children:[s("span",{"aria-hidden":"true",className:"polli:h-4 polli:w-4 polli:shrink-0 polli:animate-spin polli:motion-reduce:animate-none polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent"}),e]})}var us=e=>{if(typeof e=="number")return e;if(typeof e!="string"||e.trim()==="")return;let t=Number(e);return Number.isFinite(t)?t:void 0},Cd=e=>Math.min(100,Math.max(0,e)),W2=({progress:e,value:t,defaultValue:o,min:r,max:n})=>{if(typeof e=="number"&&Number.isFinite(e))return Cd(e);let i=us(t??o);if(i===void 0)return;let l=us(r)??0,a=us(n)??100;return a<=l?100:Cd((i-l)/(a-l)*100)},wd=P(({className:e,defaultValue:t,max:o,min:r,progress:n,style:i,value:l,...a},c)=>{let p=W2({progress:n,value:l,defaultValue:t,min:r,max:o}),u={...i,...p===void 0?null:{"--polli-slider-progress":`${p}%`}};return s("input",{ref:c,type:"range",min:r,max:o,value:l,defaultValue:t,style:u,className:b("polli-slider",e),...a})});var Pd={left:"polli:text-left",center:"polli:text-center",right:"polli:text-right"},z2={default:"",warning:"polli:bg-intent-warning-bg-light/65",danger:"polli:bg-intent-danger-bg-light/65"},Ed=({className:e,...t})=>s("table",{...t,className:b("polli:w-full polli:border-collapse polli:text-sm",e)}),Id=({className:e,...t})=>s("thead",{...t,className:b("polli:bg-transparent polli:text-micro polli:text-theme-text-muted",e)}),Td=({className:e,divider:t="themed",...o})=>s("tbody",{...o,className:b("polli:divide-y",t==="neutral"?"polli:divide-divider":"polli:divide-theme-border/65",e)}),Nd=({intent:e="default",className:t,...o})=>s("tr",{...o,className:b("polli:transition-colors polli:hover:bg-theme-bg-subtle",z2[e],t)}),kd=({align:e="left",active:t=!1,sortDirection:o,onSort:r,className:n,children:i,...l})=>{let a=x(Y,{children:[s("span",{children:i}),r&&s("span",{"aria-hidden":"true",className:"polli:inline-flex polli:w-3 polli:justify-center",children:t&&o?o==="asc"?"\u2191":"\u2193":""})]}),c=b("polli:px-3 polli:py-2 polli:font-bold polli:normal-case polli:tracking-wide",Pd[e],t&&"polli:text-theme-text-strong",r&&"polli:cursor-pointer polli:select-none polli:hover:text-theme-text-strong",n);return r?s("th",{...l,"aria-sort":t&&o?o==="asc"?"ascending":"descending":"none",className:c,children:s("button",{type:"button",onClick:r,className:b("polli-control polli:inline-flex polli:w-full polli:items-center polli:gap-1 polli:bg-transparent polli:p-0 polli:font-bold polli:text-inherit",e==="right"&&"polli:justify-end",e==="center"&&"polli:justify-center"),children:a})}):s("th",{...l,className:c,children:a})},Rd=({align:e="left",numeric:t=!1,muted:o=!1,className:r,...n})=>s("td",{...n,className:b("polli:px-3 polli:py-2 polli:align-middle",Pd[e],t&&"polli:tabular-nums",o&&"polli:text-theme-text-muted",r)});var Sd=({children:e,disabled:t=!1,expanded:o,onClick:r,className:n})=>x("button",{type:"button","aria-expanded":o,disabled:t,onClick:r,className:b("polli-control polli:inline-flex polli:items-center polli:gap-1.5 polli:rounded-sm polli:text-left polli:text-theme-text-strong polli:transition-colors",t?"polli:cursor-default polli:opacity-60":"polli:cursor-pointer polli:hover:text-theme-text-soft",n),children:[s(de,{expanded:o,className:"polli:text-theme-text-soft"}),e]});return Fd(U2);})();
|
|
2
2
|
//# sourceMappingURL=index.browser.min.js.map
|