@boxcustodia/library 1.10.0 → 1.10.2

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.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),rn=require("react-dom"),g=require("react/jsx-runtime"),KL=require("react-dom/test-utils");require("react-dom/client");function Bv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=Bv(R),da=Bv(rn),WL=Bv(KL);function S1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=S1(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Vv(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=S1(e))&&(n&&(n+=" "),n+=t);return n}const HL=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},UL=(e,t)=>({classGroupId:e,validator:t}),_1=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),rf="-",Yx=[],zL="arbitrary..",GL=e=>{const t=XL(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return YL(s);const l=s.split(rf),c=l[0]===""&&l.length>1?1:0;return T1(l,c,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],d=r[s];return c?d?HL(d,c):c:d||Yx}return r[s]||Yx}}},T1=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const d=T1(e,t+1,i);if(d)return d}const s=r.validators;if(s===null)return;const l=t===0?e.join(rf):e.slice(t).join(rf),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(f.validator(l))return f.classGroupId}},YL=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?zL+n:void 0})(),XL=e=>{const{theme:t,classGroups:r}=e;return ZL(r,t)},ZL=(e,t)=>{const r=_1();for(const n in e){const o=e[n];Kv(o,r,n,t)}return r},Kv=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];QL(s,t,r,n)}},QL=(e,t,r,n)=>{if(typeof e=="string"){JL(e,t,r);return}if(typeof e=="function"){eF(e,t,r,n);return}tF(e,t,r,n)},JL=(e,t,r)=>{const n=e===""?t:$1(t,e);n.classGroupId=r},eF=(e,t,r,n)=>{if(rF(e)){Kv(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(UL(r,e))},tF=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[l,c]=o[s];Kv(c,$1(t,l),r,n)}},$1=(e,t)=>{let r=e;const n=t.split(rf),o=n.length;for(let i=0;i<o;i++){const s=n[i];let l=r.nextPart.get(s);l||(l=_1(),r.nextPart.set(s,l)),r=l}return r},rF=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,s)=>{r[i]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return o(i,s),s},set(i,s){i in r?r[i]=s:o(i,s)}}},Oh="!",Xx=":",oF=[],Zx=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),iF=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,l=0,c=0,d;const f=o.length;for(let y=0;y<f;y++){const C=o[y];if(s===0&&l===0){if(C===Xx){i.push(o.slice(c,y)),c=y+1;continue}if(C==="/"){d=y;continue}}C==="["?s++:C==="]"?s--:C==="("?l++:C===")"&&l--}const p=i.length===0?o:o.slice(c);let h=p,b=!1;p.endsWith(Oh)?(h=p.slice(0,-1),b=!0):p.startsWith(Oh)&&(h=p.slice(1),b=!0);const w=d&&d>c?d-c:void 0;return Zx(i,b,h,w)};if(t){const o=t+Xx,i=n;n=s=>s.startsWith(o)?i(s.slice(o.length)):Zx(oF,!1,s,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},aF=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const s=r[i],l=s[0]==="[",c=t.has(s);l||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},sF=e=>({cache:nF(e.cacheSize),parseClassName:iF(e),sortModifiers:aF(e),...GL(e)}),lF=/\s+/,uF=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],l=e.trim().split(lF);let c="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:y}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let C=!!y,x=n(C?w.substring(0,y):w);if(!x){if(!C){c=f+(c.length>0?" "+c:c);continue}if(x=n(w),!x){c=f+(c.length>0?" "+c:c);continue}C=!1}const P=h.length===0?"":h.length===1?h[0]:i(h).join(":"),S=b?P+Oh:P,D=S+x;if(s.indexOf(D)>-1)continue;s.push(D);const _=o(x,C);for(let T=0;T<_.length;++T){const A=_[T];s.push(S+A)}c=f+(c.length>0?" "+c:c)}return c},cF=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=A1(r))&&(o&&(o+=" "),o+=n);return o},A1=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=A1(e[n]))&&(r&&(r+=" "),r+=t);return r},Nh=(e,...t)=>{let r,n,o,i;const s=c=>{const d=t.reduce((f,p)=>p(f),e());return r=sF(d),n=r.cache.get,o=r.cache.set,i=l,l(c)},l=c=>{const d=n(c);if(d)return d;const f=uF(c,r);return o(c,f),f};return i=s,(...c)=>i(cF(...c))},dF=[],Bt=e=>{const t=r=>r[e]||dF;return t.isThemeGetter=!0,t},D1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fF=/^\d+\/\d+$/,pF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mF=/\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$/,hF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>fF.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),mo=e=>!!e&&Number.isInteger(Number(e)),Km=e=>e.endsWith("%")&&Be(e.slice(0,-1)),In=e=>pF.test(e),bF=()=>!0,yF=e=>mF.test(e)&&!hF.test(e),O1=()=>!1,xF=e=>vF.test(e),wF=e=>gF.test(e),EF=e=>!_e(e)&&!Te(e),CF=e=>fa(e,k1,O1),_e=e=>D1.test(e),Go=e=>fa(e,L1,yF),Wm=e=>fa(e,TF,Be),Qx=e=>fa(e,N1,O1),RF=e=>fa(e,I1,wF),Ed=e=>fa(e,F1,xF),Te=e=>M1.test(e),Ba=e=>pa(e,L1),PF=e=>pa(e,$F),Jx=e=>pa(e,N1),SF=e=>pa(e,k1),_F=e=>pa(e,I1),Cd=e=>pa(e,F1,!0),fa=(e,t,r)=>{const n=D1.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},pa=(e,t,r=!1)=>{const n=M1.exec(e);return n?n[1]?t(n[1]):r:!1},N1=e=>e==="position"||e==="percentage",I1=e=>e==="image"||e==="url",k1=e=>e==="length"||e==="size"||e==="bg-size",L1=e=>e==="length",TF=e=>e==="number",$F=e=>e==="family-name",F1=e=>e==="shadow",Ih=()=>{const e=Bt("color"),t=Bt("font"),r=Bt("text"),n=Bt("font-weight"),o=Bt("tracking"),i=Bt("leading"),s=Bt("breakpoint"),l=Bt("container"),c=Bt("spacing"),d=Bt("radius"),f=Bt("shadow"),p=Bt("inset-shadow"),h=Bt("text-shadow"),b=Bt("drop-shadow"),w=Bt("blur"),y=Bt("perspective"),C=Bt("aspect"),x=Bt("ease"),P=Bt("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...D(),Te,_e],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[Te,_e,c],U=()=>[ji,"full","auto",...M()],J=()=>[mo,"none","subgrid",Te,_e],N=()=>["auto",{span:["full",mo,Te,_e]},mo,Te,_e],W=()=>[mo,"auto",Te,_e],F=()=>["auto","min","max","fr",Te,_e],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...M()],q=()=>[ji,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],B=()=>[e,Te,_e],re=()=>[...D(),Jx,Qx,{position:[Te,_e]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",SF,CF,{size:[Te,_e]}],Y=()=>[Km,Ba,Go],X=()=>["","none","full",d,Te,_e],ce=()=>["",Be,Ba,Go],ue=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Be,Km,Jx,Qx],ve=()=>["","none",w,Te,_e],j=()=>["none",Be,Te,_e],ae=()=>["none",Be,Te,_e],oe=()=>[Be,Te,_e],Z=()=>[ji,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[In],breakpoint:[In],color:[bF],container:[In],"drop-shadow":[In],ease:["in","out","in-out"],font:[EF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[In],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[In],shadow:[In],spacing:["px",Be],text:[In],"text-shadow":[In],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ji,_e,Te,C]}],container:["container"],columns:[{columns:[Be,_e,Te,l]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:_()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[mo,"auto",Te,_e]}],basis:[{basis:[ji,"full","auto",l,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,ji,"auto","initial","none",_e]}],grow:[{grow:["",Be,Te,_e]}],shrink:[{shrink:["",Be,Te,_e]}],order:[{order:[mo,"first","last","none",Te,_e]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[l,"screen",...q()]}],"min-w":[{"min-w":[l,"screen","none",...q()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...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",r,Ba,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Te,Wm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Km,_e]}],"font-family":[{font:[PF,_e,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:[o,Te,_e]}],"line-clamp":[{"line-clamp":[Be,"none",Te,Wm]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",Te,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,_e]}],"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:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",Te,Go]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Be,"auto",Te,_e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,_e]}],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",Te,_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mo,Te,_e],radial:["",Te,_e],conic:[mo,Te,_e]},_F,RF]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"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:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,Te,_e]}],"outline-w":[{outline:["",Be,Ba,Go]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",f,Cd,Ed]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",p,Cd,Ed]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Be,Go]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",h,Cd,Ed]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Be,Te,_e]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"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":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"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":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"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":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"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":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"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":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"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":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Te,_e]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"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":D()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"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:re()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,_e]}],filter:[{filter:["","none",Te,_e]}],blur:[{blur:ve()}],brightness:[{brightness:[Be,Te,_e]}],contrast:[{contrast:[Be,Te,_e]}],"drop-shadow":[{"drop-shadow":["","none",b,Cd,Ed]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Be,Te,_e]}],"hue-rotate":[{"hue-rotate":[Be,Te,_e]}],invert:[{invert:["",Be,Te,_e]}],saturate:[{saturate:[Be,Te,_e]}],sepia:[{sepia:["",Be,Te,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,_e]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Be,Te,_e]}],"backdrop-contrast":[{"backdrop-contrast":[Be,Te,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,Te,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,Te,_e]}],"backdrop-invert":[{"backdrop-invert":["",Be,Te,_e]}],"backdrop-opacity":[{"backdrop-opacity":[Be,Te,_e]}],"backdrop-saturate":[{"backdrop-saturate":[Be,Te,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,Te,_e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",Te,_e]}],ease:[{ease:["linear","initial",x,Te,_e]}],delay:[{delay:[Be,Te,_e]}],animate:[{animate:["none",P,Te,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Te,_e]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[Te,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"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",Te,_e]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Te,_e]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Be,Ba,Go,Wm]}],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"]}},AF=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Au(e,"cacheSize",t),Au(e,"prefix",r),Au(e,"experimentalParseClassName",n),Rd(e.theme,i.theme),Rd(e.classGroups,i.classGroups),Rd(e.conflictingClassGroups,i.conflictingClassGroups),Rd(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Au(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Pd(e.theme,o.theme),Pd(e.classGroups,o.classGroups),Pd(e.conflictingClassGroups,o.conflictingClassGroups),Pd(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),q1(e,o,"orderSensitiveModifiers"),e),Au=(e,t,r)=>{r!==void 0&&(e[t]=r)},Rd=(e,t)=>{if(t)for(const r in t)Au(e,r,t[r])},Pd=(e,t)=>{if(t)for(const r in t)q1(e,t,r)},q1=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},j1=(e,...t)=>typeof e=="function"?Nh(Ih,e,...t):Nh(()=>AF(Ih(),e),...t),DF=Nh(Ih),B1=j1({});function le(...e){return B1(Vv(e))}function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function e0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gt(...e){return t=>{let r=!1;const n=e.map(o=>{const i=e0(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():e0(e[o],null)}}}}function Ve(...e){return v.useCallback(gt(...e),e)}function V1(e,t){const r=v.createContext(t),n=i=>{const{children:s,...l}=i,c=v.useMemo(()=>l,Object.values(l));return g.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(i){const s=v.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function wn(e,t=[]){let r=[];function n(i,s){const l=v.createContext(s),c=r.length;r=[...r,s];const d=p=>{const{scope:h,children:b,...w}=p,y=h?.[e]?.[c]||l,C=v.useMemo(()=>w,Object.values(w));return g.jsx(y.Provider,{value:C,children:b})};d.displayName=i+"Provider";function f(p,h){const b=h?.[e]?.[c]||l,w=v.useContext(b);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[d,f]}const o=()=>{const i=r.map(s=>v.createContext(s));return function(l){const c=l?.[e]||i;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[n,MF(o,...t)]}function MF(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((l,{useScope:c,scopeName:d})=>{const p=c(i)[`__scope${d}`];return{...l,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Kt=globalThis?.document?v.useLayoutEffect:()=>{},OF=v[" useId ".trim().toString()]||(()=>{}),NF=0;function _t(e){const[t,r]=v.useState(OF());return Kt(()=>{r(n=>n??String(NF++))},[e]),e||(t?`radix-${t}`:"")}var IF=v[" useInsertionEffect ".trim().toString()]||Kt;function ut({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=kF({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:o;{const f=v.useRef(e!==void 0);v.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,n])}const d=v.useCallback(f=>{if(l){const p=LF(f)?f(e):f;p!==e&&s.current?.(p)}else i(f)},[l,e,i,s]);return[c,d]}function kF({defaultProp:e,onChange:t}){const[r,n]=v.useState(e),o=v.useRef(r),i=v.useRef(t);return IF(()=>{i.current=t},[t]),v.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function LF(e){return typeof e=="function"}function FF(e){const t=qF(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(BF);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function qF(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=KF(o),l=VF(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jF=Symbol("radix.slottable");function BF(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jF}function VF(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function KF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var WF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K1=WF.reduce((e,t)=>{const r=FF(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HF(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>t.current?.(...r),[])}function W1(e,t=globalThis?.document){const r=Xt(e);v.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var UF="DismissableLayer",kh="dismissableLayer.update",zF="dismissableLayer.pointerDownOutside",GF="dismissableLayer.focusOutside",t0,H1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ma=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,d=v.useContext(H1),[f,p]=v.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=v.useState({}),w=Ve(t,A=>p(A)),y=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(C),P=f?y.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,D=P>=x,_=ZF(A=>{const M=A.target,U=[...d.branches].some(J=>J.contains(M));!D||U||(o?.(A),s?.(A),A.defaultPrevented||l?.())},h),T=QF(A=>{const M=A.target;[...d.branches].some(J=>J.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||l?.())},h);return W1(A=>{P===d.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),v.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(t0=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),r0(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=t0)}},[f,h,r,d]),v.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),r0())},[f,d]),v.useEffect(()=>{const A=()=>b({});return document.addEventListener(kh,A),()=>document.removeEventListener(kh,A)},[]),g.jsx(K1.div,{...c,ref:w,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,_.onPointerDownCapture)})});ma.displayName=UF;var YF="DismissableLayerBranch",XF=v.forwardRef((e,t)=>{const r=v.useContext(H1),n=v.useRef(null),o=Ve(t,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),g.jsx(K1.div,{...e,ref:o})});XF.displayName=YF;function ZF(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){U1(zF,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function QF(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!n.current&&U1(GF,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function r0(){const e=new CustomEvent(kh);document.dispatchEvent(e)}function U1(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?HF(o,i):o.dispatchEvent(i)}function JF(e){const t=eq(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(rq);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function eq(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=oq(o),l=nq(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tq=Symbol("radix.slottable");function rq(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tq}function nq(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function oq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var iq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aq=iq.reduce((e,t)=>{const r=JF(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Hm="focusScope.autoFocusOnMount",Um="focusScope.autoFocusOnUnmount",n0={bubbles:!1,cancelable:!0},sq="FocusScope",rc=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=v.useState(null),d=Xt(o),f=Xt(i),p=v.useRef(null),h=Ve(t,y=>c(y)),b=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let y=function(S){if(b.paused||!l)return;const D=S.target;l.contains(D)?p.current=D:yo(p.current,{select:!0})},C=function(S){if(b.paused||!l)return;const D=S.relatedTarget;D!==null&&(l.contains(D)||yo(p.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&yo(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",C);const P=new MutationObserver(x);return l&&P.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",C),P.disconnect()}}},[n,l,b.paused]),v.useEffect(()=>{if(l){i0.add(b);const y=document.activeElement;if(!l.contains(y)){const x=new CustomEvent(Hm,n0);l.addEventListener(Hm,d),l.dispatchEvent(x),x.defaultPrevented||(lq(pq(z1(l)),{select:!0}),document.activeElement===y&&yo(l))}return()=>{l.removeEventListener(Hm,d),setTimeout(()=>{const x=new CustomEvent(Um,n0);l.addEventListener(Um,f),l.dispatchEvent(x),x.defaultPrevented||yo(y??document.body,{select:!0}),l.removeEventListener(Um,f),i0.remove(b)},0)}}},[l,d,f,b]);const w=v.useCallback(y=>{if(!r&&!n||b.paused)return;const C=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(C&&x){const P=y.currentTarget,[S,D]=uq(P);S&&D?!y.shiftKey&&x===D?(y.preventDefault(),r&&yo(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&yo(D,{select:!0})):x===P&&y.preventDefault()}},[r,n,b.paused]);return g.jsx(aq.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});rc.displayName=sq;function lq(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yo(n,{select:t}),document.activeElement!==r)return}function uq(e){const t=z1(e),r=o0(t,e),n=o0(t.reverse(),e);return[r,n]}function z1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function o0(e,t){for(const r of e)if(!cq(r,{upTo:t}))return r}function cq(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dq(e){return e instanceof HTMLInputElement&&"select"in e}function yo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&dq(e)&&t&&e.select()}}var i0=fq();function fq(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=a0(e,t),e.unshift(t)},remove(t){e=a0(e,t),e[0]?.resume()}}}function a0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function pq(e){return e.filter(t=>t.tagName!=="A")}function mq(e){const t=hq(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(gq);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function hq(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=yq(o),l=bq(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vq=Symbol("radix.slottable");function gq(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vq}function bq(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function yq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wq=xq.reduce((e,t)=>{const r=mq(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Eq="Portal",ha=v.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=v.useState(!1);Kt(()=>i(!0),[]);const s=r||o&&globalThis?.document?.body;return s?rn.createPortal(g.jsx(wq.div,{...n,ref:t}),s):null});ha.displayName=Eq;function Cq(e,t){return v.useReducer((r,n)=>t[r][n]??r,e)}var Tr=e=>{const{present:t,children:r}=e,n=Rq(t),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Ve(n.ref,Pq(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};Tr.displayName="Presence";function Rq(e){const[t,r]=v.useState(),n=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[l,c]=Cq(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const d=Sd(n.current);i.current=l==="mounted"?d:"none"},[l]),Kt(()=>{const d=n.current,f=o.current;if(f!==e){const h=i.current,b=Sd(d);e?c("MOUNT"):b==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&h!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Kt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=b=>{const y=Sd(n.current).includes(CSS.escape(b.animationName));if(b.target===t&&y&&(c("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},h=b=>{b.target===t&&(i.current=Sd(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Sd(e){return e?.animationName||"none"}function Pq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function G1(e){const t=Sq(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(Tq);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Sq(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=Aq(o),l=$q(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _q=Symbol("radix.slottable");function Tq(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_q}function $q(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Aq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nc=Dq.reduce((e,t)=>{const r=G1(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zm=0;function Lf(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s0()),document.body.insertAdjacentElement("beforeend",e[1]??s0()),zm++,()=>{zm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zm--}},[])}function s0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var mn=function(){return mn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},mn.apply(this,arguments)};function Y1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Mq(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Gd="right-scroll-bar-position",Yd="width-before-scroll-bar",Oq="with-scroll-bars-hidden",Nq="--removed-body-scroll-bar-size";function Gm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Iq(e,t){var r=R.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var kq=typeof window<"u"?v.useLayoutEffect:v.useEffect,l0=new WeakMap;function Lq(e,t){var r=Iq(null,function(n){return e.forEach(function(o){return Gm(o,n)})});return kq(function(){var n=l0.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(l){i.has(l)||Gm(l,null)}),i.forEach(function(l){o.has(l)||Gm(l,s)})}l0.set(r,e)},[e]),r}function Fq(e){return e}function qq(e,t){t===void 0&&(t=Fq);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(i),s=r}var c=function(){var f=s;s=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function jq(e){e===void 0&&(e={});var t=qq(null);return t.options=mn({async:!0,ssr:!1},e),t}var X1=function(e){var t=e.sideCar,r=Y1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,mn({},r))};X1.isSideCarExport=!0;function Bq(e,t){return e.useMedium(t),X1}var Z1=jq(),Ym=function(){},Ff=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:Ym,onWheelCapture:Ym,onTouchMoveCapture:Ym}),o=n[0],i=n[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,b=e.noIsolation,w=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,P=e.gapMode,S=Y1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=h,_=Lq([r,t]),T=mn(mn({},S),o);return v.createElement(v.Fragment,null,f&&v.createElement(D,{sideCar:Z1,removeScrollBar:d,shards:p,noIsolation:b,inert:w,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:P}),s?v.cloneElement(v.Children.only(l),mn(mn({},T),{ref:_})):v.createElement(x,mn({},T,{className:c,ref:_}),l))});Ff.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ff.classNames={fullWidth:Yd,zeroRight:Gd};var Vq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vq();return t&&e.setAttribute("nonce",t),e}function Wq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Uq=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Kq())&&(Wq(t,r),Hq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zq=function(){var e=Uq();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Q1=function(){var e=zq(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Gq={left:0,top:0,right:0,gap:0},Xm=function(e){return parseInt(e||"",10)||0},Yq=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Xm(r),Xm(n),Xm(o)]},Xq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gq;var t=Yq(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Zq=Q1(),ta="data-scroll-locked",Qq=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),rn=require("react-dom"),g=require("react/jsx-runtime"),KL=require("react-dom/test-utils");require("react-dom/client");function Bv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=Bv(R),da=Bv(rn),WL=Bv(KL);function S1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=S1(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Vv(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=S1(e))&&(n&&(n+=" "),n+=t);return n}const HL=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},UL=(e,t)=>({classGroupId:e,validator:t}),_1=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),rf="-",Yx=[],zL="arbitrary..",GL=e=>{const t=XL(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return YL(s);const l=s.split(rf),c=l[0]===""&&l.length>1?1:0;return T1(l,c,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],d=r[s];return c?d?HL(d,c):c:d||Yx}return r[s]||Yx}}},T1=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const d=T1(e,t+1,i);if(d)return d}const s=r.validators;if(s===null)return;const l=t===0?e.join(rf):e.slice(t).join(rf),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(f.validator(l))return f.classGroupId}},YL=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?zL+n:void 0})(),XL=e=>{const{theme:t,classGroups:r}=e;return ZL(r,t)},ZL=(e,t)=>{const r=_1();for(const n in e){const o=e[n];Kv(o,r,n,t)}return r},Kv=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];QL(s,t,r,n)}},QL=(e,t,r,n)=>{if(typeof e=="string"){JL(e,t,r);return}if(typeof e=="function"){eF(e,t,r,n);return}tF(e,t,r,n)},JL=(e,t,r)=>{const n=e===""?t:$1(t,e);n.classGroupId=r},eF=(e,t,r,n)=>{if(rF(e)){Kv(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(UL(r,e))},tF=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[l,c]=o[s];Kv(c,$1(t,l),r,n)}},$1=(e,t)=>{let r=e;const n=t.split(rf),o=n.length;for(let i=0;i<o;i++){const s=n[i];let l=r.nextPart.get(s);l||(l=_1(),r.nextPart.set(s,l)),r=l}return r},rF=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,s)=>{r[i]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return o(i,s),s},set(i,s){i in r?r[i]=s:o(i,s)}}},Oh="!",Xx=":",oF=[],Zx=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),iF=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,l=0,c=0,d;const f=o.length;for(let y=0;y<f;y++){const C=o[y];if(s===0&&l===0){if(C===Xx){i.push(o.slice(c,y)),c=y+1;continue}if(C==="/"){d=y;continue}}C==="["?s++:C==="]"?s--:C==="("?l++:C===")"&&l--}const p=i.length===0?o:o.slice(c);let h=p,b=!1;p.endsWith(Oh)?(h=p.slice(0,-1),b=!0):p.startsWith(Oh)&&(h=p.slice(1),b=!0);const w=d&&d>c?d-c:void 0;return Zx(i,b,h,w)};if(t){const o=t+Xx,i=n;n=s=>s.startsWith(o)?i(s.slice(o.length)):Zx(oF,!1,s,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},aF=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const s=r[i],l=s[0]==="[",c=t.has(s);l||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},sF=e=>({cache:nF(e.cacheSize),parseClassName:iF(e),sortModifiers:aF(e),...GL(e)}),lF=/\s+/,uF=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],l=e.trim().split(lF);let c="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:y}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let C=!!y,x=n(C?w.substring(0,y):w);if(!x){if(!C){c=f+(c.length>0?" "+c:c);continue}if(x=n(w),!x){c=f+(c.length>0?" "+c:c);continue}C=!1}const P=h.length===0?"":h.length===1?h[0]:i(h).join(":"),S=b?P+Oh:P,D=S+x;if(s.indexOf(D)>-1)continue;s.push(D);const _=o(x,C);for(let T=0;T<_.length;++T){const A=_[T];s.push(S+A)}c=f+(c.length>0?" "+c:c)}return c},cF=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=A1(r))&&(o&&(o+=" "),o+=n);return o},A1=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=A1(e[n]))&&(r&&(r+=" "),r+=t);return r},Nh=(e,...t)=>{let r,n,o,i;const s=c=>{const d=t.reduce((f,p)=>p(f),e());return r=sF(d),n=r.cache.get,o=r.cache.set,i=l,l(c)},l=c=>{const d=n(c);if(d)return d;const f=uF(c,r);return o(c,f),f};return i=s,(...c)=>i(cF(...c))},dF=[],Bt=e=>{const t=r=>r[e]||dF;return t.isThemeGetter=!0,t},D1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fF=/^\d+\/\d+$/,pF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mF=/\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$/,hF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>fF.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),mo=e=>!!e&&Number.isInteger(Number(e)),Km=e=>e.endsWith("%")&&Be(e.slice(0,-1)),In=e=>pF.test(e),bF=()=>!0,yF=e=>mF.test(e)&&!hF.test(e),O1=()=>!1,xF=e=>vF.test(e),wF=e=>gF.test(e),EF=e=>!_e(e)&&!Te(e),CF=e=>fa(e,k1,O1),_e=e=>D1.test(e),Go=e=>fa(e,L1,yF),Wm=e=>fa(e,TF,Be),Qx=e=>fa(e,N1,O1),RF=e=>fa(e,I1,wF),Ed=e=>fa(e,F1,xF),Te=e=>M1.test(e),Ba=e=>pa(e,L1),PF=e=>pa(e,$F),Jx=e=>pa(e,N1),SF=e=>pa(e,k1),_F=e=>pa(e,I1),Cd=e=>pa(e,F1,!0),fa=(e,t,r)=>{const n=D1.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},pa=(e,t,r=!1)=>{const n=M1.exec(e);return n?n[1]?t(n[1]):r:!1},N1=e=>e==="position"||e==="percentage",I1=e=>e==="image"||e==="url",k1=e=>e==="length"||e==="size"||e==="bg-size",L1=e=>e==="length",TF=e=>e==="number",$F=e=>e==="family-name",F1=e=>e==="shadow",Ih=()=>{const e=Bt("color"),t=Bt("font"),r=Bt("text"),n=Bt("font-weight"),o=Bt("tracking"),i=Bt("leading"),s=Bt("breakpoint"),l=Bt("container"),c=Bt("spacing"),d=Bt("radius"),f=Bt("shadow"),p=Bt("inset-shadow"),h=Bt("text-shadow"),b=Bt("drop-shadow"),w=Bt("blur"),y=Bt("perspective"),C=Bt("aspect"),x=Bt("ease"),P=Bt("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...D(),Te,_e],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[Te,_e,c],U=()=>[ji,"full","auto",...M()],J=()=>[mo,"none","subgrid",Te,_e],N=()=>["auto",{span:["full",mo,Te,_e]},mo,Te,_e],W=()=>[mo,"auto",Te,_e],K=()=>["auto","min","max","fr",Te,_e],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...M()],F=()=>[ji,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],j=()=>[e,Te,_e],re=()=>[...D(),Jx,Qx,{position:[Te,_e]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",SF,CF,{size:[Te,_e]}],Y=()=>[Km,Ba,Go],X=()=>["","none","full",d,Te,_e],ce=()=>["",Be,Ba,Go],ue=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Be,Km,Jx,Qx],ve=()=>["","none",w,Te,_e],q=()=>["none",Be,Te,_e],ae=()=>["none",Be,Te,_e],oe=()=>[Be,Te,_e],Z=()=>[ji,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[In],breakpoint:[In],color:[bF],container:[In],"drop-shadow":[In],ease:["in","out","in-out"],font:[EF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[In],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[In],shadow:[In],spacing:["px",Be],text:[In],"text-shadow":[In],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ji,_e,Te,C]}],container:["container"],columns:[{columns:[Be,_e,Te,l]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:_()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[mo,"auto",Te,_e]}],basis:[{basis:[ji,"full","auto",l,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,ji,"auto","initial","none",_e]}],grow:[{grow:["",Be,Te,_e]}],shrink:[{shrink:["",Be,Te,_e]}],order:[{order:[mo,"first","last","none",Te,_e]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,Ba,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Te,Wm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Km,_e]}],"font-family":[{font:[PF,_e,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:[o,Te,_e]}],"line-clamp":[{"line-clamp":[Be,"none",Te,Wm]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",Te,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,_e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",Te,Go]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Be,"auto",Te,_e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,_e]}],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",Te,_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mo,Te,_e],radial:["",Te,_e],conic:[mo,Te,_e]},_F,RF]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,Te,_e]}],"outline-w":[{outline:["",Be,Ba,Go]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Cd,Ed]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",p,Cd,Ed]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Be,Go]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",h,Cd,Ed]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Be,Te,_e]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Te,_e]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":D()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,_e]}],filter:[{filter:["","none",Te,_e]}],blur:[{blur:ve()}],brightness:[{brightness:[Be,Te,_e]}],contrast:[{contrast:[Be,Te,_e]}],"drop-shadow":[{"drop-shadow":["","none",b,Cd,Ed]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Be,Te,_e]}],"hue-rotate":[{"hue-rotate":[Be,Te,_e]}],invert:[{invert:["",Be,Te,_e]}],saturate:[{saturate:[Be,Te,_e]}],sepia:[{sepia:["",Be,Te,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,_e]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Be,Te,_e]}],"backdrop-contrast":[{"backdrop-contrast":[Be,Te,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,Te,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,Te,_e]}],"backdrop-invert":[{"backdrop-invert":["",Be,Te,_e]}],"backdrop-opacity":[{"backdrop-opacity":[Be,Te,_e]}],"backdrop-saturate":[{"backdrop-saturate":[Be,Te,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,Te,_e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",Te,_e]}],ease:[{ease:["linear","initial",x,Te,_e]}],delay:[{delay:[Be,Te,_e]}],animate:[{animate:["none",P,Te,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Te,_e]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[Te,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",Te,_e]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Te,_e]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Be,Ba,Go,Wm]}],stroke:[{stroke:["none",...j()]}],"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"]}},AF=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Au(e,"cacheSize",t),Au(e,"prefix",r),Au(e,"experimentalParseClassName",n),Rd(e.theme,i.theme),Rd(e.classGroups,i.classGroups),Rd(e.conflictingClassGroups,i.conflictingClassGroups),Rd(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Au(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Pd(e.theme,o.theme),Pd(e.classGroups,o.classGroups),Pd(e.conflictingClassGroups,o.conflictingClassGroups),Pd(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),q1(e,o,"orderSensitiveModifiers"),e),Au=(e,t,r)=>{r!==void 0&&(e[t]=r)},Rd=(e,t)=>{if(t)for(const r in t)Au(e,r,t[r])},Pd=(e,t)=>{if(t)for(const r in t)q1(e,t,r)},q1=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},j1=(e,...t)=>typeof e=="function"?Nh(Ih,e,...t):Nh(()=>AF(Ih(),e),...t),DF=Nh(Ih),B1=j1({});function le(...e){return B1(Vv(e))}function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function e0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gt(...e){return t=>{let r=!1;const n=e.map(o=>{const i=e0(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():e0(e[o],null)}}}}function Ve(...e){return v.useCallback(gt(...e),e)}function V1(e,t){const r=v.createContext(t),n=i=>{const{children:s,...l}=i,c=v.useMemo(()=>l,Object.values(l));return g.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(i){const s=v.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function wn(e,t=[]){let r=[];function n(i,s){const l=v.createContext(s),c=r.length;r=[...r,s];const d=p=>{const{scope:h,children:b,...w}=p,y=h?.[e]?.[c]||l,C=v.useMemo(()=>w,Object.values(w));return g.jsx(y.Provider,{value:C,children:b})};d.displayName=i+"Provider";function f(p,h){const b=h?.[e]?.[c]||l,w=v.useContext(b);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[d,f]}const o=()=>{const i=r.map(s=>v.createContext(s));return function(l){const c=l?.[e]||i;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[n,MF(o,...t)]}function MF(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((l,{useScope:c,scopeName:d})=>{const p=c(i)[`__scope${d}`];return{...l,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Kt=globalThis?.document?v.useLayoutEffect:()=>{},OF=v[" useId ".trim().toString()]||(()=>{}),NF=0;function _t(e){const[t,r]=v.useState(OF());return Kt(()=>{r(n=>n??String(NF++))},[e]),e||(t?`radix-${t}`:"")}var IF=v[" useInsertionEffect ".trim().toString()]||Kt;function ut({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=kF({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:o;{const f=v.useRef(e!==void 0);v.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,n])}const d=v.useCallback(f=>{if(l){const p=LF(f)?f(e):f;p!==e&&s.current?.(p)}else i(f)},[l,e,i,s]);return[c,d]}function kF({defaultProp:e,onChange:t}){const[r,n]=v.useState(e),o=v.useRef(r),i=v.useRef(t);return IF(()=>{i.current=t},[t]),v.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function LF(e){return typeof e=="function"}function FF(e){const t=qF(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(BF);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function qF(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=KF(o),l=VF(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jF=Symbol("radix.slottable");function BF(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jF}function VF(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function KF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var WF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K1=WF.reduce((e,t)=>{const r=FF(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function HF(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>t.current?.(...r),[])}function W1(e,t=globalThis?.document){const r=Xt(e);v.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var UF="DismissableLayer",kh="dismissableLayer.update",zF="dismissableLayer.pointerDownOutside",GF="dismissableLayer.focusOutside",t0,H1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ma=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,d=v.useContext(H1),[f,p]=v.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=v.useState({}),w=Ve(t,A=>p(A)),y=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(C),P=f?y.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,D=P>=x,_=ZF(A=>{const M=A.target,U=[...d.branches].some(J=>J.contains(M));!D||U||(o?.(A),s?.(A),A.defaultPrevented||l?.())},h),T=QF(A=>{const M=A.target;[...d.branches].some(J=>J.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||l?.())},h);return W1(A=>{P===d.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),v.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(t0=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),r0(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=t0)}},[f,h,r,d]),v.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),r0())},[f,d]),v.useEffect(()=>{const A=()=>b({});return document.addEventListener(kh,A),()=>document.removeEventListener(kh,A)},[]),g.jsx(K1.div,{...c,ref:w,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,_.onPointerDownCapture)})});ma.displayName=UF;var YF="DismissableLayerBranch",XF=v.forwardRef((e,t)=>{const r=v.useContext(H1),n=v.useRef(null),o=Ve(t,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),g.jsx(K1.div,{...e,ref:o})});XF.displayName=YF;function ZF(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){U1(zF,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function QF(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!n.current&&U1(GF,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function r0(){const e=new CustomEvent(kh);document.dispatchEvent(e)}function U1(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?HF(o,i):o.dispatchEvent(i)}function JF(e){const t=eq(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(rq);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function eq(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=oq(o),l=nq(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tq=Symbol("radix.slottable");function rq(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tq}function nq(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function oq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var iq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aq=iq.reduce((e,t)=>{const r=JF(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Hm="focusScope.autoFocusOnMount",Um="focusScope.autoFocusOnUnmount",n0={bubbles:!1,cancelable:!0},sq="FocusScope",rc=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=v.useState(null),d=Xt(o),f=Xt(i),p=v.useRef(null),h=Ve(t,y=>c(y)),b=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let y=function(S){if(b.paused||!l)return;const D=S.target;l.contains(D)?p.current=D:yo(p.current,{select:!0})},C=function(S){if(b.paused||!l)return;const D=S.relatedTarget;D!==null&&(l.contains(D)||yo(p.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&yo(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",C);const P=new MutationObserver(x);return l&&P.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",C),P.disconnect()}}},[n,l,b.paused]),v.useEffect(()=>{if(l){i0.add(b);const y=document.activeElement;if(!l.contains(y)){const x=new CustomEvent(Hm,n0);l.addEventListener(Hm,d),l.dispatchEvent(x),x.defaultPrevented||(lq(pq(z1(l)),{select:!0}),document.activeElement===y&&yo(l))}return()=>{l.removeEventListener(Hm,d),setTimeout(()=>{const x=new CustomEvent(Um,n0);l.addEventListener(Um,f),l.dispatchEvent(x),x.defaultPrevented||yo(y??document.body,{select:!0}),l.removeEventListener(Um,f),i0.remove(b)},0)}}},[l,d,f,b]);const w=v.useCallback(y=>{if(!r&&!n||b.paused)return;const C=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(C&&x){const P=y.currentTarget,[S,D]=uq(P);S&&D?!y.shiftKey&&x===D?(y.preventDefault(),r&&yo(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&yo(D,{select:!0})):x===P&&y.preventDefault()}},[r,n,b.paused]);return g.jsx(aq.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});rc.displayName=sq;function lq(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yo(n,{select:t}),document.activeElement!==r)return}function uq(e){const t=z1(e),r=o0(t,e),n=o0(t.reverse(),e);return[r,n]}function z1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function o0(e,t){for(const r of e)if(!cq(r,{upTo:t}))return r}function cq(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dq(e){return e instanceof HTMLInputElement&&"select"in e}function yo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&dq(e)&&t&&e.select()}}var i0=fq();function fq(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=a0(e,t),e.unshift(t)},remove(t){e=a0(e,t),e[0]?.resume()}}}function a0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function pq(e){return e.filter(t=>t.tagName!=="A")}function mq(e){const t=hq(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(gq);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function hq(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=yq(o),l=bq(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vq=Symbol("radix.slottable");function gq(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vq}function bq(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function yq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wq=xq.reduce((e,t)=>{const r=mq(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Eq="Portal",ha=v.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=v.useState(!1);Kt(()=>i(!0),[]);const s=r||o&&globalThis?.document?.body;return s?rn.createPortal(g.jsx(wq.div,{...n,ref:t}),s):null});ha.displayName=Eq;function Cq(e,t){return v.useReducer((r,n)=>t[r][n]??r,e)}var Tr=e=>{const{present:t,children:r}=e,n=Rq(t),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Ve(n.ref,Pq(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};Tr.displayName="Presence";function Rq(e){const[t,r]=v.useState(),n=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[l,c]=Cq(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const d=Sd(n.current);i.current=l==="mounted"?d:"none"},[l]),Kt(()=>{const d=n.current,f=o.current;if(f!==e){const h=i.current,b=Sd(d);e?c("MOUNT"):b==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&h!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Kt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=b=>{const y=Sd(n.current).includes(CSS.escape(b.animationName));if(b.target===t&&y&&(c("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},h=b=>{b.target===t&&(i.current=Sd(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Sd(e){return e?.animationName||"none"}function Pq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function G1(e){const t=Sq(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(Tq);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Sq(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=Aq(o),l=$q(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _q=Symbol("radix.slottable");function Tq(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_q}function $q(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Aq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nc=Dq.reduce((e,t)=>{const r=G1(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zm=0;function Lf(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s0()),document.body.insertAdjacentElement("beforeend",e[1]??s0()),zm++,()=>{zm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zm--}},[])}function s0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var mn=function(){return mn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},mn.apply(this,arguments)};function Y1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Mq(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Gd="right-scroll-bar-position",Yd="width-before-scroll-bar",Oq="with-scroll-bars-hidden",Nq="--removed-body-scroll-bar-size";function Gm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Iq(e,t){var r=R.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var kq=typeof window<"u"?v.useLayoutEffect:v.useEffect,l0=new WeakMap;function Lq(e,t){var r=Iq(null,function(n){return e.forEach(function(o){return Gm(o,n)})});return kq(function(){var n=l0.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(l){i.has(l)||Gm(l,null)}),i.forEach(function(l){o.has(l)||Gm(l,s)})}l0.set(r,e)},[e]),r}function Fq(e){return e}function qq(e,t){t===void 0&&(t=Fq);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(i),s=r}var c=function(){var f=s;s=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function jq(e){e===void 0&&(e={});var t=qq(null);return t.options=mn({async:!0,ssr:!1},e),t}var X1=function(e){var t=e.sideCar,r=Y1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,mn({},r))};X1.isSideCarExport=!0;function Bq(e,t){return e.useMedium(t),X1}var Z1=jq(),Ym=function(){},Ff=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:Ym,onWheelCapture:Ym,onTouchMoveCapture:Ym}),o=n[0],i=n[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,b=e.noIsolation,w=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,P=e.gapMode,S=Y1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=h,_=Lq([r,t]),T=mn(mn({},S),o);return v.createElement(v.Fragment,null,f&&v.createElement(D,{sideCar:Z1,removeScrollBar:d,shards:p,noIsolation:b,inert:w,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:P}),s?v.cloneElement(v.Children.only(l),mn(mn({},T),{ref:_})):v.createElement(x,mn({},T,{className:c,ref:_}),l))});Ff.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ff.classNames={fullWidth:Yd,zeroRight:Gd};var Vq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vq();return t&&e.setAttribute("nonce",t),e}function Wq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Uq=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Kq())&&(Wq(t,r),Hq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zq=function(){var e=Uq();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Q1=function(){var e=zq(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Gq={left:0,top:0,right:0,gap:0},Xm=function(e){return parseInt(e||"",10)||0},Yq=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Xm(r),Xm(n),Xm(o)]},Xq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gq;var t=Yq(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Zq=Q1(),ta="data-scroll-locked",Qq=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),`
2
2
  .`.concat(Oq,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(l,"px ").concat(n,`;
@@ -42,26 +42,26 @@
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Rj="DialogDescriptionWarning",Pj=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bP(Rj).contentName}}.`;return v.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Sj=oP,_j=aP,Tj=lP,$j=uP,Aj=cP,Dj=fP,Mj=mP,yP=vP;const Oj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),p0=e=>{const t=Nj(e);return t.charAt(0).toUpperCase()+t.slice(1)},xP=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ij=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var kj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Lj=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},c)=>R.createElement("svg",{ref:c,...kj,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:xP("lucide",o),...!i&&!Ij(l)&&{"aria-hidden":"true"},...l},[...s.map(([d,f])=>R.createElement(d,f)),...Array.isArray(i)?i:[i]]));const Nt=(e,t)=>{const r=R.forwardRef(({className:n,...o},i)=>R.createElement(Lj,{ref:i,iconNode:t,className:xP(`lucide-${Oj(p0(e))}`,`lucide-${e}`,n),...o}));return r.displayName=p0(e),r};const Fj=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],qj=Nt("calendar",Fj);const jj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],of=Nt("check",jj);const Bj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wP=Nt("chevron-down",Bj);const Vj=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zv=Nt("chevron-left",Vj);const Kj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ic=Nt("chevron-right",Kj);const Wj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],EP=Nt("chevron-up",Wj);const Hj=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Uj=Nt("chevrons-left",Hj);const zj=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Gj=Nt("chevrons-right",zj);const Yj=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],af=Nt("chevrons-up-down",Yj);const Xj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Zj=Nt("circle-alert",Xj);const Qj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jj=Nt("circle-check",Qj);const e5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],t5=Nt("circle-x",e5);const r5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],n5=Nt("circle",r5);const o5=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],i5=Nt("cloud-upload",o5);const a5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],s5=Nt("eye-off",a5);const l5=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],u5=Nt("eye",l5);const c5=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],d5=Nt("folder-search",c5);const f5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sf=Nt("loader-circle",f5);const p5=[["path",{d:"M5 12h14",key:"1ays0h"}]],m5=Nt("minus",p5);const h5=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],v5=Nt("search",h5);const g5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jf=Nt("x",g5),Bf=({onClose:e,...t})=>g.jsx(Sj,{"data-slot":"dialog",...t,onOpenChange:r=>{!r&&e?.(),t?.onOpenChange?.(r)}}),Gv=({...e})=>g.jsx(_j,{"data-slot":"dialog-trigger",...e}),CP=({...e})=>g.jsx(Tj,{"data-slot":"dialog-portal",...e}),Fh=({...e})=>g.jsx(yP,{"data-slot":"dialog-close",...e}),RP=({className:e,...t})=>g.jsx($j,{"data-slot":"dialog-overlay",className:le("fixed inset-0 z-50 bg-black/80 data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0",e),...t}),Vf=({className:e,children:t,focus:r=!0,hideClose:n=!1,...o})=>g.jsxs(CP,{children:[g.jsx(RP,{}),g.jsxs(Aj,{"data-slot":"dialog-content",className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-10 rounded-md","data-[state='open']:animate-in data-[state='open']:fade-in-0 data-[state='open']:zoom-in-95 ","data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='closed']:zoom-out-95 ",e),onOpenAutoFocus:i=>{!r&&i.preventDefault(),o?.onOpenAutoFocus?.(i)},...o,children:[t,g.jsxs(yP,{className:le("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state='open']:bg-accent data-[state='open']:text-muted-foreground",{hidden:n}),children:[g.jsx(jf,{className:"w-4 h-4","data-slot":"dialog-close-icon"}),g.jsx("span",{className:"sr-only",children:"Cerrar"})]})]})]}),Yv=({className:e,...t})=>g.jsx("div",{className:le("flex flex-col space-y-1 text-center sm:text-left",e),"data-slot":"dialog-header",...t}),Xv=({className:e,...t})=>g.jsx("div",{"data-slot":"dialog-footer",className:le("flex flex-col-reverse sm:flex-row sm:justify-end gap-2",e),...t}),Zv=({className:e,...t})=>g.jsx(Dj,{"data-slot":"dialog-title",className:le("text-lg font-semibold leading-none tracking-tight",e),...t}),Qv=({className:e,...t})=>g.jsx(Mj,{"data-slot":"dialog-description",className:le("text-sm text-muted-foreground",e),...t}),b5=({trigger:e,title:t,description:r,children:n,footer:o,focus:i,triggerProps:s,headerProps:l,headerClassName:c,titleProps:d,titleClassName:f,descriptionProps:p,descriptionClassName:h,contentProps:b,contentClassName:w,footerProps:y,footerClassName:C,...x})=>g.jsxs(Bf,{...x,children:[g.jsx(Gv,{asChild:!0,...s,children:e}),g.jsxs(Vf,{className:w,focus:i,...b,children:[g.jsxs(Yv,{className:le("empty:hidden",c),...l,children:[t&&g.jsx(Zv,{className:f,...d,children:t}),r&&g.jsx(Qv,{className:h,...p,children:r})]}),n,o&&g.jsx(Xv,{className:C,...y,children:o})]})]}),PP={},SP=R.createContext({theme:PP}),_P=()=>R.useContext(SP),y5=({children:e,theme:t=PP})=>g.jsx(SP.Provider,{value:{theme:t},children:e}),ac=(e,t,r={})=>{const{theme:n}=_P(),o=n[e]||{};return{...r,...o,...t}};var x5=Symbol.for("react.lazy"),lf=v[" use ".trim().toString()];function w5(e){return typeof e=="object"&&e!==null&&"then"in e}function TP(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===x5&&"_payload"in e&&w5(e._payload)}function E5(e){const t=C5(e),r=v.forwardRef((n,o)=>{let{children:i,...s}=n;TP(i)&&typeof lf=="function"&&(i=lf(i._payload));const l=v.Children.toArray(i),c=l.find(S5);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var sc=E5("Slot");function C5(e){const t=v.forwardRef((r,n)=>{let{children:o,...i}=r;if(TP(o)&&typeof lf=="function"&&(o=lf(o._payload)),v.isValidElement(o)){const s=T5(o),l=_5(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $P=Symbol("radix.slottable");function R5(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$P,t}var P5=R5("Slottable");function S5(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$P}function _5(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function T5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu.apply(null,arguments)}function Jv(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qh(e,t){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},qh(e,t)}function eg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qh(e,t)}var Dd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Md={exports:{}},Od={exports:{}},et={};var m0;function $5(){if(m0)return et;m0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var T=_.$$typeof;switch(T){case t:switch(_=_.type,_){case c:case d:case n:case i:case o:case p:return _;default:switch(_=_&&_.$$typeof,_){case l:case f:case w:case b:case s:return _;default:return T}}case r:return T}}}function D(_){return S(_)===d}return et.AsyncMode=c,et.ConcurrentMode=d,et.ContextConsumer=l,et.ContextProvider=s,et.Element=t,et.ForwardRef=f,et.Fragment=n,et.Lazy=w,et.Memo=b,et.Portal=r,et.Profiler=i,et.StrictMode=o,et.Suspense=p,et.isAsyncMode=function(_){return D(_)||S(_)===c},et.isConcurrentMode=D,et.isContextConsumer=function(_){return S(_)===l},et.isContextProvider=function(_){return S(_)===s},et.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},et.isForwardRef=function(_){return S(_)===f},et.isFragment=function(_){return S(_)===n},et.isLazy=function(_){return S(_)===w},et.isMemo=function(_){return S(_)===b},et.isPortal=function(_){return S(_)===r},et.isProfiler=function(_){return S(_)===i},et.isStrictMode=function(_){return S(_)===o},et.isSuspense=function(_){return S(_)===p},et.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===d||_===i||_===o||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===b||_.$$typeof===s||_.$$typeof===l||_.$$typeof===f||_.$$typeof===C||_.$$typeof===x||_.$$typeof===P||_.$$typeof===y)},et.typeOf=S,et}var tt={};var h0;function A5(){return h0||(h0=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function S(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===d||Z===i||Z===o||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===w||Z.$$typeof===b||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===f||Z.$$typeof===C||Z.$$typeof===x||Z.$$typeof===P||Z.$$typeof===y)}function D(Z){if(typeof Z=="object"&&Z!==null){var we=Z.$$typeof;switch(we){case t:var De=Z.type;switch(De){case c:case d:case n:case i:case o:case p:return De;default:var Ue=De&&De.$$typeof;switch(Ue){case l:case f:case w:case b:case s:return Ue;default:return we}}case r:return we}}}var _=c,T=d,A=l,M=s,U=t,J=f,N=n,W=w,F=b,L=r,G=i,k=o,q=p,B=!1;function re(Z){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),K(Z)||D(Z)===c}function K(Z){return D(Z)===d}function ie(Z){return D(Z)===l}function Y(Z){return D(Z)===s}function X(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function ce(Z){return D(Z)===f}function ue(Z){return D(Z)===n}function pe(Z){return D(Z)===w}function te(Z){return D(Z)===b}function ve(Z){return D(Z)===r}function j(Z){return D(Z)===i}function ae(Z){return D(Z)===o}function oe(Z){return D(Z)===p}tt.AsyncMode=_,tt.ConcurrentMode=T,tt.ContextConsumer=A,tt.ContextProvider=M,tt.Element=U,tt.ForwardRef=J,tt.Fragment=N,tt.Lazy=W,tt.Memo=F,tt.Portal=L,tt.Profiler=G,tt.StrictMode=k,tt.Suspense=q,tt.isAsyncMode=re,tt.isConcurrentMode=K,tt.isContextConsumer=ie,tt.isContextProvider=Y,tt.isElement=X,tt.isForwardRef=ce,tt.isFragment=ue,tt.isLazy=pe,tt.isMemo=te,tt.isPortal=ve,tt.isProfiler=j,tt.isStrictMode=ae,tt.isSuspense=oe,tt.isValidElementType=S,tt.typeOf=D})()),tt}var v0;function DP(){return v0||(v0=1,process.env.NODE_ENV==="production"?Od.exports=$5():Od.exports=A5()),Od.exports}var Qm,g0;function D5(){if(g0)return Qm;g0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qm=o()?Object.assign:function(i,s){for(var l,c=n(i),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){d=e(l);for(var h=0;h<d.length;h++)r.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},Qm}var Jm,b0;function tg(){if(b0)return Jm;b0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jm=e,Jm}var eh,y0;function MP(){return y0||(y0=1,eh=Function.call.bind(Object.prototype.hasOwnProperty)),eh}var th,x0;function M5(){if(x0)return th;x0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tg(),r={},n=MP();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var h=Error((c||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=i[f](s,f,c,l,null,t)}catch(w){p=w}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=d?d():"";e("Failed "+l+" type: "+p.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},th=o,th}var rh,w0;function O5(){if(w0)return rh;w0=1;var e=DP(),t=D5(),r=tg(),n=MP(),o=M5(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return rh=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(K){var ie=K&&(d&&K[d]||K[f]);if(typeof ie=="function")return ie}var h="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:P(),arrayOf:S,element:D(),elementType:_(),instanceOf:T,node:J(),objectOf:M,oneOf:A,oneOfType:U,shape:W,exact:F};function w(K,ie){return K===ie?K!==0||1/K===1/ie:K!==K&&ie!==ie}function y(K,ie){this.message=K,this.data=ie&&typeof ie=="object"?ie:{},this.stack=""}y.prototype=Error.prototype;function C(K){if(process.env.NODE_ENV!=="production")var ie={},Y=0;function X(ue,pe,te,ve,j,ae,oe){if(ve=ve||h,ae=ae||te,oe!==r){if(c){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=ve+":"+te;!ie[we]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ae+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ie[we]=!0,Y++)}}return pe[te]==null?ue?pe[te]===null?new y("The "+j+" `"+ae+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new y("The "+j+" `"+ae+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:K(pe,te,ve,j,ae)}var ce=X.bind(null,!1);return ce.isRequired=X.bind(null,!0),ce}function x(K){function ie(Y,X,ce,ue,pe,te){var ve=Y[X],j=k(ve);if(j!==K){var ae=q(ve);return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ae+"` supplied to `"+ce+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return C(ie)}function P(){return C(s)}function S(K){function ie(Y,X,ce,ue,pe){if(typeof K!="function")return new y("Property `"+pe+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var te=Y[X];if(!Array.isArray(te)){var ve=k(te);return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ve+"` supplied to `"+ce+"`, expected an array."))}for(var j=0;j<te.length;j++){var ae=K(te,j,ce,ue,pe+"["+j+"]",r);if(ae instanceof Error)return ae}return null}return C(ie)}function D(){function K(ie,Y,X,ce,ue){var pe=ie[Y];if(!l(pe)){var te=k(pe);return new y("Invalid "+ce+" `"+ue+"` of type "+("`"+te+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return C(K)}function _(){function K(ie,Y,X,ce,ue){var pe=ie[Y];if(!e.isValidElementType(pe)){var te=k(pe);return new y("Invalid "+ce+" `"+ue+"` of type "+("`"+te+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return C(K)}function T(K){function ie(Y,X,ce,ue,pe){if(!(Y[X]instanceof K)){var te=K.name||h,ve=re(Y[X]);return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ve+"` supplied to `"+ce+"`, expected ")+("instance of `"+te+"`."))}return null}return C(ie)}function A(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function ie(Y,X,ce,ue,pe){for(var te=Y[X],ve=0;ve<K.length;ve++)if(w(te,K[ve]))return null;var j=JSON.stringify(K,function(oe,Z){var we=q(Z);return we==="symbol"?String(Z):Z});return new y("Invalid "+ue+" `"+pe+"` of value `"+String(te)+"` "+("supplied to `"+ce+"`, expected one of "+j+"."))}return C(ie)}function M(K){function ie(Y,X,ce,ue,pe){if(typeof K!="function")return new y("Property `"+pe+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var te=Y[X],ve=k(te);if(ve!=="object")return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ve+"` supplied to `"+ce+"`, expected an object."));for(var j in te)if(n(te,j)){var ae=K(te,j,ce,ue,pe+"."+j,r);if(ae instanceof Error)return ae}return null}return C(ie)}function U(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var ie=0;ie<K.length;ie++){var Y=K[ie];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(Y)+" at index "+ie+"."),s}function X(ce,ue,pe,te,ve){for(var j=[],ae=0;ae<K.length;ae++){var oe=K[ae],Z=oe(ce,ue,pe,te,ve,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&j.push(Z.data.expectedType)}var we=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new y("Invalid "+te+" `"+ve+"` supplied to "+("`"+pe+"`"+we+"."))}return C(X)}function J(){function K(ie,Y,X,ce,ue){return L(ie[Y])?null:new y("Invalid "+ce+" `"+ue+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return C(K)}function N(K,ie,Y,X,ce){return new y((K||"React class")+": "+ie+" type `"+Y+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function W(K){function ie(Y,X,ce,ue,pe){var te=Y[X],ve=k(te);if(ve!=="object")return new y("Invalid "+ue+" `"+pe+"` of type `"+ve+"` "+("supplied to `"+ce+"`, expected `object`."));for(var j in K){var ae=K[j];if(typeof ae!="function")return N(ce,ue,pe,j,q(ae));var oe=ae(te,j,ce,ue,pe+"."+j,r);if(oe)return oe}return null}return C(ie)}function F(K){function ie(Y,X,ce,ue,pe){var te=Y[X],ve=k(te);if(ve!=="object")return new y("Invalid "+ue+" `"+pe+"` of type `"+ve+"` "+("supplied to `"+ce+"`, expected `object`."));var j=t({},Y[X],K);for(var ae in j){var oe=K[ae];if(n(K,ae)&&typeof oe!="function")return N(ce,ue,pe,ae,q(oe));if(!oe)return new y("Invalid "+ue+" `"+pe+"` key `"+ae+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(Y[X],null," ")+`
46
- Valid keys: `+JSON.stringify(Object.keys(K),null," "));var Z=oe(te,ae,ce,ue,pe+"."+ae,r);if(Z)return Z}return null}return C(ie)}function L(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(L);if(K===null||l(K))return!0;var ie=p(K);if(ie){var Y=ie.call(K),X;if(ie!==K.entries){for(;!(X=Y.next()).done;)if(!L(X.value))return!1}else for(;!(X=Y.next()).done;){var ce=X.value;if(ce&&!L(ce[1]))return!1}}else return!1;return!0;default:return!1}}function G(K,ie){return K==="symbol"?!0:ie?ie["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ie instanceof Symbol:!1}function k(K){var ie=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":G(ie,K)?"symbol":ie}function q(K){if(typeof K>"u"||K===null)return""+K;var ie=k(K);if(ie==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return ie}function B(K){var ie=q(K);switch(ie){case"array":case"object":return"an "+ie;case"boolean":case"date":case"regexp":return"a "+ie;default:return ie}}function re(K){return!K.constructor||!K.constructor.name?h:K.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rh}var nh,E0;function N5(){if(E0)return nh;E0=1;var e=tg();function t(){}function r(){}return r.resetWarningCache=t,nh=function(){function n(s,l,c,d,f,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},nh}var C0;function I5(){if(C0)return Md.exports;if(C0=1,process.env.NODE_ENV!=="production"){var e=DP(),t=!0;Md.exports=O5()(e.isElement,t)}else Md.exports=N5()();return Md.exports}var k5=I5();const Ie=AP(k5);function L5(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function F5(e,t){e.classList?e.classList.add(t):L5(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function R0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function q5(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=R0(e.className,t):e.setAttribute("class",R0(e.className&&e.className.baseVal||"",t))}const P0={disabled:!1};var j5=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,B5=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.string,Ie.shape({enter:Ie.string,exit:Ie.string,active:Ie.string}),Ie.shape({enter:Ie.string,enterDone:Ie.string,enterActive:Ie.string,exit:Ie.string,exitDone:Ie.string,exitActive:Ie.string})]):null;const uf=R.createContext(null);var OP=function(t){return t.scrollTop},Du="unmounted",Zo="exited",Qo="entering",Yi="entered",jh="exiting",En=(function(e){eg(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,l=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?l?(c=Zo,i.appearStatus=Qo):c=Yi:n.unmountOnExit||n.mountOnEnter?c=Du:c=Zo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Du?{status:Zo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Qo&&s!==Yi&&(i=Qo):(s===Qo||s===Yi)&&(i=jh)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Qo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:rn.findDOMNode(this);s&&OP(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zo&&this.setState({status:Du})},r.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[rn.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),h=l?p.appear:p.enter;if(!o&&!s||P0.disabled){this.safeSetState({status:Yi},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Qo},function(){i.props.onEntering(d,f),i.onTransitionEnd(h,function(){i.safeSetState({status:Yi},function(){i.props.onEntered(d,f)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:rn.findDOMNode(this);if(!i||P0.disabled){this.safeSetState({status:Zo},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:jh},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Zo},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:rn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Du)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Jv(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return R.createElement(uf.Provider,{value:null},typeof s=="function"?s(o,l):R.cloneElement(R.Children.only(s),l))},t})(R.Component);En.contextType=uf;En.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ie.shape({current:typeof Element>"u"?Ie.any:function(e,t,r,n,o,i){var s=e[t];return Ie.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:Ie.oneOfType([Ie.func.isRequired,Ie.element.isRequired]).isRequired,in:Ie.bool,mountOnEnter:Ie.bool,unmountOnExit:Ie.bool,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,timeout:function(t){var r=j5;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:Ie.func,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}:{};function Wi(){}En.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wi,onEntering:Wi,onEntered:Wi,onExit:Wi,onExiting:Wi,onExited:Wi};En.UNMOUNTED=Du;En.EXITED=Zo;En.ENTERING=Qo;En.ENTERED=Yi;En.EXITING=jh;var V5=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return F5(t,n)})},oh=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return q5(t,n)})},Kf=(function(e){eg(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,c){var d=n.resolveArguments(l,c),f=d[0],p=d[1];n.removeClasses(f,"exit"),n.addClass(f,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,c)},n.onEntering=function(l,c){var d=n.resolveArguments(l,c),f=d[0],p=d[1],h=p?"appear":"enter";n.addClass(f,h,"active"),n.props.onEntering&&n.props.onEntering(l,c)},n.onEntered=function(l,c){var d=n.resolveArguments(l,c),f=d[0],p=d[1],h=p?"appear":"enter";n.removeClasses(f,h),n.addClass(f,h,"done"),n.props.onEntered&&n.props.onEntered(l,c)},n.onExit=function(l){var c=n.resolveArguments(l),d=c[0];n.removeClasses(d,"appear"),n.removeClasses(d,"enter"),n.addClass(d,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var c=n.resolveArguments(l),d=c[0];n.addClass(d,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var c=n.resolveArguments(l),d=c[0];n.removeClasses(d,"exit"),n.addClass(d,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,c){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,c]},n.getClassNames=function(l){var c=n.props.classNames,d=typeof c=="string",f=d&&c?c+"-":"",p=d?""+f+l:c[l],h=d?p+"-active":c[l+"Active"],b=d?p+"-done":c[l+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:b}},n}var r=t.prototype;return r.addClass=function(o,i,s){var l=this.getClassNames(i)[s+"ClassName"],c=this.getClassNames("enter"),d=c.doneClassName;i==="appear"&&s==="done"&&d&&(l+=" "+d),s==="active"&&o&&OP(o),l&&(this.appliedClasses[i][s]=l,V5(o,l))},r.removeClasses=function(o,i){var s=this.appliedClasses[i],l=s.base,c=s.active,d=s.done;this.appliedClasses[i]={},l&&oh(o,l),c&&oh(o,c),d&&oh(o,d)},r.render=function(){var o=this.props;o.classNames;var i=Jv(o,["classNames"]);return R.createElement(En,Vu({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(R.Component);Kf.defaultProps={classNames:""};Kf.propTypes=process.env.NODE_ENV!=="production"?Vu({},En.propTypes,{classNames:B5,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};function K5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rg(e,t){var r=function(i){return t&&R.isValidElement(i)?t(i):i},n=Object.create(null);return e&&R.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function W5(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,l={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var d=n[c][s];l[n[c][s]]=r(d)}l[c]=r(c)}for(s=0;s<o.length;s++)l[o[s]]=r(o[s]);return l}function ti(e,t,r){return r[t]!=null?r[t]:e.props[t]}function H5(e,t){return rg(e.children,function(r){return R.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ti(r,"appear",e),enter:ti(r,"enter",e),exit:ti(r,"exit",e)})})}function U5(e,t,r){var n=rg(e.children),o=W5(t,n);return Object.keys(o).forEach(function(i){var s=o[i];if(R.isValidElement(s)){var l=i in t,c=i in n,d=t[i],f=R.isValidElement(d)&&!d.props.in;c&&(!l||f)?o[i]=R.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:ti(s,"exit",e),enter:ti(s,"enter",e)}):!c&&l&&!f?o[i]=R.cloneElement(s,{in:!1}):c&&l&&R.isValidElement(d)&&(o[i]=R.cloneElement(s,{onExited:r.bind(null,s),in:d.props.in,exit:ti(s,"exit",e),enter:ti(s,"enter",e)}))}}),o}var z5=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},G5={component:"div",childFactory:function(t){return t}},ng=(function(e){eg(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=i.handleExited.bind(K5(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?H5(o,l):U5(o,s,l),firstRender:!1}},r.handleExited=function(o,i){var s=rg(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=Vu({},l.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=Jv(o,["component","childFactory"]),c=this.state.contextValue,d=z5(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?R.createElement(uf.Provider,{value:c},d):R.createElement(uf.Provider,{value:c},R.createElement(i,l,d))},t})(R.Component);ng.propTypes=process.env.NODE_ENV!=="production"?{component:Ie.any,children:Ie.node,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,childFactory:Ie.func}:{};ng.defaultProps=G5;const Bh=({loading:e,animate:t=!0,...r})=>{const n=R.useRef(null);return t?g.jsx(Kf,{unmountOnExit:!0,mountOnEnter:!0,timeout:200,in:e,classNames:"btn-loader",nodeRef:n,children:g.jsx(sf,{...r,ref:n,"data-testid":"btn-loader",className:le("animate-spin",r.className)})}):e?g.jsx(sf,{...r,"data-testid":"btn-loader",className:le("animate-spin",r.className)}):null},Y5=({loading:e})=>g.jsx("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"inherit",borderRadius:"inherit"},children:g.jsx(Bh,{loading:e,animate:!1})}),X5={display:"inline-flex",alignItems:"center",gap:"0.5rem"},NP=({asChild:e=!1,onClick:t,loading:r,showLoader:n=!0,icon:o,iconPosition:i="start",loaderReplace:s,style:l,...c})=>{const d=e?sc:"button",[f=!1,p]=ut({prop:r,defaultProp:!1}),h=async C=>{if(!t||f)return;const x=t(C);x instanceof Promise&&(n&&p(!0),await x.finally(()=>p(!1)))},b=C=>{if(C!==i)return null;const x=s?!1:f;return g.jsxs(g.Fragment,{children:[g.jsx(Bh,{loading:x&&!o,animate:!0}),o&&g.jsx(Bh,{loading:x,animate:!1}),o&&!x&&o]})},y=s&&(f&&n);return g.jsxs(d,{type:"button","data-slot":"button",...c,onClick:h,style:{...X5,position:y?"relative":void 0,...l},children:[b("start"),g.jsx(P5,{children:c.children}),b("end"),y&&g.jsx(Y5,{loading:!0})]})},S0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_0=Vv,eo=(e,t)=>r=>{var n;if(t?.variants==null)return _0(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(d=>{const f=r?.[d],p=i?.[d];if(f===null)return null;const h=S0(f)||S0(p);return o[d][h]}),l=r&&Object.entries(r).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:h,...b}=f;return Object.entries(b).every(w=>{let[y,C]=w;return Array.isArray(C)?C.includes({...i,...l}[y]):{...i,...l}[y]===C})?[...d,p,h]:d},[]);return _0(e,s,c,r?.class,r?.className)},Z5=eo(["inline-flex items-center justify-center gap-2","text-sm font-medium transition-all","ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","hover:brightness-105"],{variants:{variant:{default:"bg-primary text-primary-foreground",error:"bg-error text-error-foreground",success:"bg-success text-success-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:brightness-100 hover:bg-secondary/80",ghost:"hover:bg-accent hover:brightness-100 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"w-10 aspect-square"},shape:{rounded:"rounded-md",square:"rounded-none",circle:"rounded-full"}},defaultVariants:{variant:"default",size:"default",shape:"rounded"}}),tr=e=>{const{variant:t,size:r,shape:n,className:o,...i}=ac("Button",e);return g.jsx(NP,{...i,className:le(Z5({variant:t,size:r,shape:n}),o),"data-variant":t||"default"})},Q5=({title:e="¿Estás seguro?",description:t="Esta acción no se puede deshacer",trigger:r,onClose:n,onAction:o,variant:i="default",triggerProps:s,contentProps:l,headerProps:c,titleProps:d,descriptionProps:f,footerProps:p,closeProps:h,closeText:b="Cancelar",actionText:w="Aceptar",actionProps:y,asChild:C=!0,...x})=>g.jsxs(Bf,{...x,"data-slot":"alert-dialog",children:[r&&g.jsx(Gv,{asChild:C,...s,"data-slot":"alert-dialog-trigger",children:r}),g.jsxs(Vf,{...l,"data-slot":"alert-dialog-content",children:[g.jsxs(Yv,{...c,"data-slot":"alert-dialog-header",children:[g.jsx(Zv,{...d,"data-slot":"alert-dialog-title",children:e}),g.jsx(Qv,{...f,"data-slot":"alert-dialog-description",children:t})]}),g.jsxs(Xv,{...p,"data-slot":"alert-dialog-footer",children:[g.jsx(Fh,{asChild:!0,type:"button",variant:"secondary",...h,onClick:n??h?.onClick,"data-slot":"alert-dialog-close",children:g.jsx(tr,{"data-slot":"alert-dialog-close",children:b})}),g.jsx(Fh,{asChild:!0,type:"button",variant:i,...y,onClick:o??y?.onClick,"data-slot":"alert-dialog-action",children:g.jsx(tr,{"data-slot":"alert-dialog-action",children:w})})]})]})]});var T0=1,J5=.9,eB=.8,tB=.17,ih=.1,ah=.999,rB=.9999,nB=.99,oB=/[\\\/_+.#"@\[\(\{&]/,iB=/[\\\/_+.#"@\[\(\{&]/g,aB=/[\s-]/,IP=/[\s-]/g;function Vh(e,t,r,n,o,i,s){if(i===t.length)return o===e.length?T0:nB;var l=`${o},${i}`;if(s[l]!==void 0)return s[l];for(var c=n.charAt(i),d=r.indexOf(c,o),f=0,p,h,b,w;d>=0;)p=Vh(e,t,r,n,d+1,i+1,s),p>f&&(d===o?p*=T0:oB.test(e.charAt(d-1))?(p*=eB,b=e.slice(o,d-1).match(iB),b&&o>0&&(p*=Math.pow(ah,b.length))):aB.test(e.charAt(d-1))?(p*=J5,w=e.slice(o,d-1).match(IP),w&&o>0&&(p*=Math.pow(ah,w.length))):(p*=tB,o>0&&(p*=Math.pow(ah,d-o))),e.charAt(d)!==t.charAt(i)&&(p*=rB)),(p<ih&&r.charAt(d-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(d-1)!==n.charAt(i))&&(h=Vh(e,t,r,n,d+1,i+2,s),h*ih>p&&(p=h*ih)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[l]=f,f}function $0(e){return e.toLowerCase().replace(IP," ")}function sB(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Vh(e,t,$0(e),$0(t),0,0,{})}function Ro(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function lB({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=uB({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:n,l=Xt(r),c=v.useCallback(d=>{if(i){const p=typeof d=="function"?d(e):d;p!==e&&l(p)}else o(d)},[i,e,o,l]);return[s,c]}function uB({defaultProp:e,onChange:t}){const r=v.useState(e),[n]=r,o=v.useRef(n),i=Xt(t);return v.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}function cB(e){const t=dB(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(pB);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function dB(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=hB(o),l=mB(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fB=Symbol("radix.slottable");function pB(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fB}function mB(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function hB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zt=vB.reduce((e,t)=>{const r=cB(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gB(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}var bB="DismissableLayer",Kh="dismissableLayer.update",yB="dismissableLayer.pointerDownOutside",xB="dismissableLayer.focusOutside",A0,kP=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),LP=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,d=v.useContext(kP),[f,p]=v.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=v.useState({}),w=Ve(t,A=>p(A)),y=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(C),P=f?y.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,D=P>=x,_=CB(A=>{const M=A.target,U=[...d.branches].some(J=>J.contains(M));!D||U||(o?.(A),s?.(A),A.defaultPrevented||l?.())},h),T=RB(A=>{const M=A.target;[...d.branches].some(J=>J.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||l?.())},h);return W1(A=>{P===d.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),v.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(A0=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),D0(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=A0)}},[f,h,r,d]),v.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),D0())},[f,d]),v.useEffect(()=>{const A=()=>b({});return document.addEventListener(Kh,A),()=>document.removeEventListener(Kh,A)},[]),g.jsx(Zt.div,{...c,ref:w,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:Ro(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ro(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ro(e.onPointerDownCapture,_.onPointerDownCapture)})});LP.displayName=bB;var wB="DismissableLayerBranch",EB=v.forwardRef((e,t)=>{const r=v.useContext(kP),n=v.useRef(null),o=Ve(t,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),g.jsx(Zt.div,{...e,ref:o})});EB.displayName=wB;function CB(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){FP(yB,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function RB(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!n.current&&FP(xB,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function D0(){const e=new CustomEvent(Kh);document.dispatchEvent(e)}function FP(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?gB(o,i):o.dispatchEvent(i)}var sh="focusScope.autoFocusOnMount",lh="focusScope.autoFocusOnUnmount",M0={bubbles:!1,cancelable:!0},PB="FocusScope",qP=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=v.useState(null),d=Xt(o),f=Xt(i),p=v.useRef(null),h=Ve(t,y=>c(y)),b=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let y=function(S){if(b.paused||!l)return;const D=S.target;l.contains(D)?p.current=D:xo(p.current,{select:!0})},C=function(S){if(b.paused||!l)return;const D=S.relatedTarget;D!==null&&(l.contains(D)||xo(p.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&xo(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",C);const P=new MutationObserver(x);return l&&P.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",C),P.disconnect()}}},[n,l,b.paused]),v.useEffect(()=>{if(l){N0.add(b);const y=document.activeElement;if(!l.contains(y)){const x=new CustomEvent(sh,M0);l.addEventListener(sh,d),l.dispatchEvent(x),x.defaultPrevented||(SB(DB(jP(l)),{select:!0}),document.activeElement===y&&xo(l))}return()=>{l.removeEventListener(sh,d),setTimeout(()=>{const x=new CustomEvent(lh,M0);l.addEventListener(lh,f),l.dispatchEvent(x),x.defaultPrevented||xo(y??document.body,{select:!0}),l.removeEventListener(lh,f),N0.remove(b)},0)}}},[l,d,f,b]);const w=v.useCallback(y=>{if(!r&&!n||b.paused)return;const C=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(C&&x){const P=y.currentTarget,[S,D]=_B(P);S&&D?!y.shiftKey&&x===D?(y.preventDefault(),r&&xo(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&xo(D,{select:!0})):x===P&&y.preventDefault()}},[r,n,b.paused]);return g.jsx(Zt.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});qP.displayName=PB;function SB(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xo(n,{select:t}),document.activeElement!==r)return}function _B(e){const t=jP(e),r=O0(t,e),n=O0(t.reverse(),e);return[r,n]}function jP(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function O0(e,t){for(const r of e)if(!TB(r,{upTo:t}))return r}function TB(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $B(e){return e instanceof HTMLInputElement&&"select"in e}function xo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&$B(e)&&t&&e.select()}}var N0=AB();function AB(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=I0(e,t),e.unshift(t)},remove(t){e=I0(e,t),e[0]?.resume()}}}function I0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function DB(e){return e.filter(t=>t.tagName!=="A")}var MB="Portal",BP=v.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=v.useState(!1);Kt(()=>i(!0),[]);const s=r||o&&globalThis?.document?.body;return s?rn.createPortal(g.jsx(Zt.div,{...n,ref:t}),s):null});BP.displayName=MB;function OB(e,t){return v.useReducer((r,n)=>t[r][n]??r,e)}var Wf=e=>{const{present:t,children:r}=e,n=NB(t),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Ve(n.ref,IB(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};Wf.displayName="Presence";function NB(e){const[t,r]=v.useState(),n=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[l,c]=OB(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const d=Nd(n.current);i.current=l==="mounted"?d:"none"},[l]),Kt(()=>{const d=n.current,f=o.current;if(f!==e){const h=i.current,b=Nd(d);e?c("MOUNT"):b==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&h!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Kt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=b=>{const y=Nd(n.current).includes(b.animationName);if(b.target===t&&y&&(c("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},h=b=>{b.target===t&&(i.current=Nd(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function Nd(e){return e?.animationName||"none"}function IB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var uh=0;function kB(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??k0()),document.body.insertAdjacentElement("beforeend",e[1]??k0()),uh++,()=>{uh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),uh--}},[])}function k0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function LB(e){const t=FB(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(jB);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function FB(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=VB(o),l=BB(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qB=Symbol("radix.slottable");function jB(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qB}function BB(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function VB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var og="Dialog",[VP]=wn(og),[KB,sn]=VP(og),KP=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=v.useRef(null),c=v.useRef(null),[d=!1,f]=lB({prop:n,defaultProp:o,onChange:i});return g.jsx(KB,{scope:t,triggerRef:l,contentRef:c,contentId:_t(),titleId:_t(),descriptionId:_t(),open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};KP.displayName=og;var WP="DialogTrigger",WB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(WP,r),i=Ve(t,o.triggerRef);return g.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sg(o.open),...n,ref:i,onClick:Ro(e.onClick,o.onOpenToggle)})});WB.displayName=WP;var ig="DialogPortal",[HB,HP]=VP(ig,{forceMount:void 0}),UP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=sn(ig,t);return g.jsx(HB,{scope:t,forceMount:r,children:v.Children.map(n,s=>g.jsx(Wf,{present:r||i.open,children:g.jsx(BP,{asChild:!0,container:o,children:s})}))})};UP.displayName=ig;var cf="DialogOverlay",zP=v.forwardRef((e,t)=>{const r=HP(cf,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=sn(cf,e.__scopeDialog);return i.modal?g.jsx(Wf,{present:n||i.open,children:g.jsx(zB,{...o,ref:t})}):null});zP.displayName=cf;var UB=LB("DialogOverlay.RemoveScroll"),zB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(cf,r);return g.jsx(va,{as:UB,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(Zt.div,{"data-state":sg(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),li="DialogContent",GP=v.forwardRef((e,t)=>{const r=HP(li,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=sn(li,e.__scopeDialog);return g.jsx(Wf,{present:n||i.open,children:i.modal?g.jsx(GB,{...o,ref:t}):g.jsx(YB,{...o,ref:t})})});GP.displayName=li;var GB=v.forwardRef((e,t)=>{const r=sn(li,e.__scopeDialog),n=v.useRef(null),o=Ve(t,r.contentRef,n);return v.useEffect(()=>{const i=n.current;if(i)return oc(i)},[]),g.jsx(YP,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ro(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ro(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:Ro(e.onFocusOutside,i=>i.preventDefault())})}),YB=v.forwardRef((e,t)=>{const r=sn(li,e.__scopeDialog),n=v.useRef(!1),o=v.useRef(!1);return g.jsx(YP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;r.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),YP=v.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=sn(li,r),c=v.useRef(null),d=Ve(t,c);return kB(),g.jsxs(g.Fragment,{children:[g.jsx(qP,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(LP,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":sg(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(JB,{titleId:l.titleId}),g.jsx(t6,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ag="DialogTitle",XB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(ag,r);return g.jsx(Zt.h2,{id:o.titleId,...n,ref:t})});XB.displayName=ag;var XP="DialogDescription",ZB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(XP,r);return g.jsx(Zt.p,{id:o.descriptionId,...n,ref:t})});ZB.displayName=XP;var ZP="DialogClose",QB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(ZP,r);return g.jsx(Zt.button,{type:"button",...n,ref:t,onClick:Ro(e.onClick,()=>o.onOpenChange(!1))})});QB.displayName=ZP;function sg(e){return e?"open":"closed"}var QP="DialogTitleWarning",[die,JP]=V1(QP,{contentName:li,titleName:ag,docsSlug:"dialog"}),JB=({titleId:e})=>{const t=JP(QP),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Rj="DialogDescriptionWarning",Pj=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bP(Rj).contentName}}.`;return v.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Sj=oP,_j=aP,Tj=lP,$j=uP,Aj=cP,Dj=fP,Mj=mP,yP=vP;const Oj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),p0=e=>{const t=Nj(e);return t.charAt(0).toUpperCase()+t.slice(1)},xP=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ij=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var kj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Lj=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},c)=>R.createElement("svg",{ref:c,...kj,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:xP("lucide",o),...!i&&!Ij(l)&&{"aria-hidden":"true"},...l},[...s.map(([d,f])=>R.createElement(d,f)),...Array.isArray(i)?i:[i]]));const Nt=(e,t)=>{const r=R.forwardRef(({className:n,...o},i)=>R.createElement(Lj,{ref:i,iconNode:t,className:xP(`lucide-${Oj(p0(e))}`,`lucide-${e}`,n),...o}));return r.displayName=p0(e),r};const Fj=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],qj=Nt("calendar",Fj);const jj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],of=Nt("check",jj);const Bj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wP=Nt("chevron-down",Bj);const Vj=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zv=Nt("chevron-left",Vj);const Kj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ic=Nt("chevron-right",Kj);const Wj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],EP=Nt("chevron-up",Wj);const Hj=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Uj=Nt("chevrons-left",Hj);const zj=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Gj=Nt("chevrons-right",zj);const Yj=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],af=Nt("chevrons-up-down",Yj);const Xj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Zj=Nt("circle-alert",Xj);const Qj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jj=Nt("circle-check",Qj);const e5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],t5=Nt("circle-x",e5);const r5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],n5=Nt("circle",r5);const o5=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],i5=Nt("cloud-upload",o5);const a5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],s5=Nt("eye-off",a5);const l5=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],u5=Nt("eye",l5);const c5=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],d5=Nt("folder-search",c5);const f5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sf=Nt("loader-circle",f5);const p5=[["path",{d:"M5 12h14",key:"1ays0h"}]],m5=Nt("minus",p5);const h5=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],v5=Nt("search",h5);const g5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jf=Nt("x",g5),Bf=({onClose:e,...t})=>g.jsx(Sj,{"data-slot":"dialog",...t,onOpenChange:r=>{!r&&e?.(),t?.onOpenChange?.(r)}}),Gv=({...e})=>g.jsx(_j,{"data-slot":"dialog-trigger",...e}),CP=({...e})=>g.jsx(Tj,{"data-slot":"dialog-portal",...e}),Fh=({...e})=>g.jsx(yP,{"data-slot":"dialog-close",...e}),RP=({className:e,...t})=>g.jsx($j,{"data-slot":"dialog-overlay",className:le("fixed inset-0 z-50 bg-black/80 data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0",e),...t}),Vf=({className:e,children:t,focus:r=!0,hideClose:n=!1,...o})=>g.jsxs(CP,{children:[g.jsx(RP,{}),g.jsxs(Aj,{"data-slot":"dialog-content",className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-10 rounded-md","data-[state='open']:animate-in data-[state='open']:fade-in-0 data-[state='open']:zoom-in-95 ","data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='closed']:zoom-out-95 ",e),onOpenAutoFocus:i=>{!r&&i.preventDefault(),o?.onOpenAutoFocus?.(i)},...o,children:[t,g.jsxs(yP,{className:le("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state='open']:bg-accent data-[state='open']:text-muted-foreground",{hidden:n}),children:[g.jsx(jf,{className:"w-4 h-4","data-slot":"dialog-close-icon"}),g.jsx("span",{className:"sr-only",children:"Cerrar"})]})]})]}),Yv=({className:e,...t})=>g.jsx("div",{className:le("flex flex-col space-y-1 text-center sm:text-left",e),"data-slot":"dialog-header",...t}),Xv=({className:e,...t})=>g.jsx("div",{"data-slot":"dialog-footer",className:le("flex flex-col-reverse sm:flex-row sm:justify-end gap-2",e),...t}),Zv=({className:e,...t})=>g.jsx(Dj,{"data-slot":"dialog-title",className:le("text-lg font-semibold leading-none tracking-tight",e),...t}),Qv=({className:e,...t})=>g.jsx(Mj,{"data-slot":"dialog-description",className:le("text-sm text-muted-foreground",e),...t}),b5=({trigger:e,title:t,description:r,children:n,footer:o,focus:i,triggerProps:s,headerProps:l,headerClassName:c,titleProps:d,titleClassName:f,descriptionProps:p,descriptionClassName:h,contentProps:b,contentClassName:w,footerProps:y,footerClassName:C,...x})=>g.jsxs(Bf,{...x,children:[g.jsx(Gv,{asChild:!0,...s,children:e}),g.jsxs(Vf,{className:w,focus:i,...b,children:[g.jsxs(Yv,{className:le("empty:hidden",c),...l,children:[t&&g.jsx(Zv,{className:f,...d,children:t}),r&&g.jsx(Qv,{className:h,...p,children:r})]}),n,o&&g.jsx(Xv,{className:C,...y,children:o})]})]}),PP={},SP=R.createContext({theme:PP}),_P=()=>R.useContext(SP),y5=({children:e,theme:t=PP})=>g.jsx(SP.Provider,{value:{theme:t},children:e}),ac=(e,t,r={})=>{const{theme:n}=_P(),o=n[e]||{};return{...r,...o,...t}};var x5=Symbol.for("react.lazy"),lf=v[" use ".trim().toString()];function w5(e){return typeof e=="object"&&e!==null&&"then"in e}function TP(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===x5&&"_payload"in e&&w5(e._payload)}function E5(e){const t=C5(e),r=v.forwardRef((n,o)=>{let{children:i,...s}=n;TP(i)&&typeof lf=="function"&&(i=lf(i._payload));const l=v.Children.toArray(i),c=l.find(S5);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var sc=E5("Slot");function C5(e){const t=v.forwardRef((r,n)=>{let{children:o,...i}=r;if(TP(o)&&typeof lf=="function"&&(o=lf(o._payload)),v.isValidElement(o)){const s=T5(o),l=_5(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $P=Symbol("radix.slottable");function R5(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$P,t}var P5=R5("Slottable");function S5(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$P}function _5(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function T5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu.apply(null,arguments)}function Jv(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qh(e,t){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},qh(e,t)}function eg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qh(e,t)}var Dd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Md={exports:{}},Od={exports:{}},et={};var m0;function $5(){if(m0)return et;m0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var T=_.$$typeof;switch(T){case t:switch(_=_.type,_){case c:case d:case n:case i:case o:case p:return _;default:switch(_=_&&_.$$typeof,_){case l:case f:case w:case b:case s:return _;default:return T}}case r:return T}}}function D(_){return S(_)===d}return et.AsyncMode=c,et.ConcurrentMode=d,et.ContextConsumer=l,et.ContextProvider=s,et.Element=t,et.ForwardRef=f,et.Fragment=n,et.Lazy=w,et.Memo=b,et.Portal=r,et.Profiler=i,et.StrictMode=o,et.Suspense=p,et.isAsyncMode=function(_){return D(_)||S(_)===c},et.isConcurrentMode=D,et.isContextConsumer=function(_){return S(_)===l},et.isContextProvider=function(_){return S(_)===s},et.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},et.isForwardRef=function(_){return S(_)===f},et.isFragment=function(_){return S(_)===n},et.isLazy=function(_){return S(_)===w},et.isMemo=function(_){return S(_)===b},et.isPortal=function(_){return S(_)===r},et.isProfiler=function(_){return S(_)===i},et.isStrictMode=function(_){return S(_)===o},et.isSuspense=function(_){return S(_)===p},et.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===d||_===i||_===o||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===b||_.$$typeof===s||_.$$typeof===l||_.$$typeof===f||_.$$typeof===C||_.$$typeof===x||_.$$typeof===P||_.$$typeof===y)},et.typeOf=S,et}var tt={};var h0;function A5(){return h0||(h0=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function S(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===d||Z===i||Z===o||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===w||Z.$$typeof===b||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===f||Z.$$typeof===C||Z.$$typeof===x||Z.$$typeof===P||Z.$$typeof===y)}function D(Z){if(typeof Z=="object"&&Z!==null){var we=Z.$$typeof;switch(we){case t:var De=Z.type;switch(De){case c:case d:case n:case i:case o:case p:return De;default:var Ue=De&&De.$$typeof;switch(Ue){case l:case f:case w:case b:case s:return Ue;default:return we}}case r:return we}}}var _=c,T=d,A=l,M=s,U=t,J=f,N=n,W=w,K=b,L=r,G=i,k=o,F=p,j=!1;function re(Z){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(Z)||D(Z)===c}function V(Z){return D(Z)===d}function ie(Z){return D(Z)===l}function Y(Z){return D(Z)===s}function X(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function ce(Z){return D(Z)===f}function ue(Z){return D(Z)===n}function pe(Z){return D(Z)===w}function te(Z){return D(Z)===b}function ve(Z){return D(Z)===r}function q(Z){return D(Z)===i}function ae(Z){return D(Z)===o}function oe(Z){return D(Z)===p}tt.AsyncMode=_,tt.ConcurrentMode=T,tt.ContextConsumer=A,tt.ContextProvider=M,tt.Element=U,tt.ForwardRef=J,tt.Fragment=N,tt.Lazy=W,tt.Memo=K,tt.Portal=L,tt.Profiler=G,tt.StrictMode=k,tt.Suspense=F,tt.isAsyncMode=re,tt.isConcurrentMode=V,tt.isContextConsumer=ie,tt.isContextProvider=Y,tt.isElement=X,tt.isForwardRef=ce,tt.isFragment=ue,tt.isLazy=pe,tt.isMemo=te,tt.isPortal=ve,tt.isProfiler=q,tt.isStrictMode=ae,tt.isSuspense=oe,tt.isValidElementType=S,tt.typeOf=D})()),tt}var v0;function DP(){return v0||(v0=1,process.env.NODE_ENV==="production"?Od.exports=$5():Od.exports=A5()),Od.exports}var Qm,g0;function D5(){if(g0)return Qm;g0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qm=o()?Object.assign:function(i,s){for(var l,c=n(i),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){d=e(l);for(var h=0;h<d.length;h++)r.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},Qm}var Jm,b0;function tg(){if(b0)return Jm;b0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jm=e,Jm}var eh,y0;function MP(){return y0||(y0=1,eh=Function.call.bind(Object.prototype.hasOwnProperty)),eh}var th,x0;function M5(){if(x0)return th;x0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tg(),r={},n=MP();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var h=Error((c||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=i[f](s,f,c,l,null,t)}catch(w){p=w}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=d?d():"";e("Failed "+l+" type: "+p.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},th=o,th}var rh,w0;function O5(){if(w0)return rh;w0=1;var e=DP(),t=D5(),r=tg(),n=MP(),o=M5(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return rh=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(V){var ie=V&&(d&&V[d]||V[f]);if(typeof ie=="function")return ie}var h="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:P(),arrayOf:S,element:D(),elementType:_(),instanceOf:T,node:J(),objectOf:M,oneOf:A,oneOfType:U,shape:W,exact:K};function w(V,ie){return V===ie?V!==0||1/V===1/ie:V!==V&&ie!==ie}function y(V,ie){this.message=V,this.data=ie&&typeof ie=="object"?ie:{},this.stack=""}y.prototype=Error.prototype;function C(V){if(process.env.NODE_ENV!=="production")var ie={},Y=0;function X(ue,pe,te,ve,q,ae,oe){if(ve=ve||h,ae=ae||te,oe!==r){if(c){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=ve+":"+te;!ie[we]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ae+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ie[we]=!0,Y++)}}return pe[te]==null?ue?pe[te]===null?new y("The "+q+" `"+ae+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new y("The "+q+" `"+ae+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:V(pe,te,ve,q,ae)}var ce=X.bind(null,!1);return ce.isRequired=X.bind(null,!0),ce}function x(V){function ie(Y,X,ce,ue,pe,te){var ve=Y[X],q=k(ve);if(q!==V){var ae=F(ve);return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ae+"` supplied to `"+ce+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return C(ie)}function P(){return C(s)}function S(V){function ie(Y,X,ce,ue,pe){if(typeof V!="function")return new y("Property `"+pe+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var te=Y[X];if(!Array.isArray(te)){var ve=k(te);return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ve+"` supplied to `"+ce+"`, expected an array."))}for(var q=0;q<te.length;q++){var ae=V(te,q,ce,ue,pe+"["+q+"]",r);if(ae instanceof Error)return ae}return null}return C(ie)}function D(){function V(ie,Y,X,ce,ue){var pe=ie[Y];if(!l(pe)){var te=k(pe);return new y("Invalid "+ce+" `"+ue+"` of type "+("`"+te+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return C(V)}function _(){function V(ie,Y,X,ce,ue){var pe=ie[Y];if(!e.isValidElementType(pe)){var te=k(pe);return new y("Invalid "+ce+" `"+ue+"` of type "+("`"+te+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return C(V)}function T(V){function ie(Y,X,ce,ue,pe){if(!(Y[X]instanceof V)){var te=V.name||h,ve=re(Y[X]);return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ve+"` supplied to `"+ce+"`, expected ")+("instance of `"+te+"`."))}return null}return C(ie)}function A(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function ie(Y,X,ce,ue,pe){for(var te=Y[X],ve=0;ve<V.length;ve++)if(w(te,V[ve]))return null;var q=JSON.stringify(V,function(oe,Z){var we=F(Z);return we==="symbol"?String(Z):Z});return new y("Invalid "+ue+" `"+pe+"` of value `"+String(te)+"` "+("supplied to `"+ce+"`, expected one of "+q+"."))}return C(ie)}function M(V){function ie(Y,X,ce,ue,pe){if(typeof V!="function")return new y("Property `"+pe+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var te=Y[X],ve=k(te);if(ve!=="object")return new y("Invalid "+ue+" `"+pe+"` of type "+("`"+ve+"` supplied to `"+ce+"`, expected an object."));for(var q in te)if(n(te,q)){var ae=V(te,q,ce,ue,pe+"."+q,r);if(ae instanceof Error)return ae}return null}return C(ie)}function U(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var ie=0;ie<V.length;ie++){var Y=V[ie];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(Y)+" at index "+ie+"."),s}function X(ce,ue,pe,te,ve){for(var q=[],ae=0;ae<V.length;ae++){var oe=V[ae],Z=oe(ce,ue,pe,te,ve,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&q.push(Z.data.expectedType)}var we=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new y("Invalid "+te+" `"+ve+"` supplied to "+("`"+pe+"`"+we+"."))}return C(X)}function J(){function V(ie,Y,X,ce,ue){return L(ie[Y])?null:new y("Invalid "+ce+" `"+ue+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return C(V)}function N(V,ie,Y,X,ce){return new y((V||"React class")+": "+ie+" type `"+Y+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function W(V){function ie(Y,X,ce,ue,pe){var te=Y[X],ve=k(te);if(ve!=="object")return new y("Invalid "+ue+" `"+pe+"` of type `"+ve+"` "+("supplied to `"+ce+"`, expected `object`."));for(var q in V){var ae=V[q];if(typeof ae!="function")return N(ce,ue,pe,q,F(ae));var oe=ae(te,q,ce,ue,pe+"."+q,r);if(oe)return oe}return null}return C(ie)}function K(V){function ie(Y,X,ce,ue,pe){var te=Y[X],ve=k(te);if(ve!=="object")return new y("Invalid "+ue+" `"+pe+"` of type `"+ve+"` "+("supplied to `"+ce+"`, expected `object`."));var q=t({},Y[X],V);for(var ae in q){var oe=V[ae];if(n(V,ae)&&typeof oe!="function")return N(ce,ue,pe,ae,F(oe));if(!oe)return new y("Invalid "+ue+" `"+pe+"` key `"+ae+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(Y[X],null," ")+`
46
+ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var Z=oe(te,ae,ce,ue,pe+"."+ae,r);if(Z)return Z}return null}return C(ie)}function L(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(L);if(V===null||l(V))return!0;var ie=p(V);if(ie){var Y=ie.call(V),X;if(ie!==V.entries){for(;!(X=Y.next()).done;)if(!L(X.value))return!1}else for(;!(X=Y.next()).done;){var ce=X.value;if(ce&&!L(ce[1]))return!1}}else return!1;return!0;default:return!1}}function G(V,ie){return V==="symbol"?!0:ie?ie["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ie instanceof Symbol:!1}function k(V){var ie=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":G(ie,V)?"symbol":ie}function F(V){if(typeof V>"u"||V===null)return""+V;var ie=k(V);if(ie==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return ie}function j(V){var ie=F(V);switch(ie){case"array":case"object":return"an "+ie;case"boolean":case"date":case"regexp":return"a "+ie;default:return ie}}function re(V){return!V.constructor||!V.constructor.name?h:V.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rh}var nh,E0;function N5(){if(E0)return nh;E0=1;var e=tg();function t(){}function r(){}return r.resetWarningCache=t,nh=function(){function n(s,l,c,d,f,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},nh}var C0;function I5(){if(C0)return Md.exports;if(C0=1,process.env.NODE_ENV!=="production"){var e=DP(),t=!0;Md.exports=O5()(e.isElement,t)}else Md.exports=N5()();return Md.exports}var k5=I5();const Ie=AP(k5);function L5(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function F5(e,t){e.classList?e.classList.add(t):L5(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function R0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function q5(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=R0(e.className,t):e.setAttribute("class",R0(e.className&&e.className.baseVal||"",t))}const P0={disabled:!1};var j5=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,B5=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.string,Ie.shape({enter:Ie.string,exit:Ie.string,active:Ie.string}),Ie.shape({enter:Ie.string,enterDone:Ie.string,enterActive:Ie.string,exit:Ie.string,exitDone:Ie.string,exitActive:Ie.string})]):null;const uf=R.createContext(null);var OP=function(t){return t.scrollTop},Du="unmounted",Zo="exited",Qo="entering",Yi="entered",jh="exiting",En=(function(e){eg(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,l=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?l?(c=Zo,i.appearStatus=Qo):c=Yi:n.unmountOnExit||n.mountOnEnter?c=Du:c=Zo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Du?{status:Zo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Qo&&s!==Yi&&(i=Qo):(s===Qo||s===Yi)&&(i=jh)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Qo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:rn.findDOMNode(this);s&&OP(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zo&&this.setState({status:Du})},r.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[rn.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),h=l?p.appear:p.enter;if(!o&&!s||P0.disabled){this.safeSetState({status:Yi},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Qo},function(){i.props.onEntering(d,f),i.onTransitionEnd(h,function(){i.safeSetState({status:Yi},function(){i.props.onEntered(d,f)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:rn.findDOMNode(this);if(!i||P0.disabled){this.safeSetState({status:Zo},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:jh},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Zo},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:rn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Du)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Jv(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return R.createElement(uf.Provider,{value:null},typeof s=="function"?s(o,l):R.cloneElement(R.Children.only(s),l))},t})(R.Component);En.contextType=uf;En.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ie.shape({current:typeof Element>"u"?Ie.any:function(e,t,r,n,o,i){var s=e[t];return Ie.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:Ie.oneOfType([Ie.func.isRequired,Ie.element.isRequired]).isRequired,in:Ie.bool,mountOnEnter:Ie.bool,unmountOnExit:Ie.bool,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,timeout:function(t){var r=j5;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:Ie.func,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}:{};function Wi(){}En.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wi,onEntering:Wi,onEntered:Wi,onExit:Wi,onExiting:Wi,onExited:Wi};En.UNMOUNTED=Du;En.EXITED=Zo;En.ENTERING=Qo;En.ENTERED=Yi;En.EXITING=jh;var V5=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return F5(t,n)})},oh=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return q5(t,n)})},Kf=(function(e){eg(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,c){var d=n.resolveArguments(l,c),f=d[0],p=d[1];n.removeClasses(f,"exit"),n.addClass(f,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,c)},n.onEntering=function(l,c){var d=n.resolveArguments(l,c),f=d[0],p=d[1],h=p?"appear":"enter";n.addClass(f,h,"active"),n.props.onEntering&&n.props.onEntering(l,c)},n.onEntered=function(l,c){var d=n.resolveArguments(l,c),f=d[0],p=d[1],h=p?"appear":"enter";n.removeClasses(f,h),n.addClass(f,h,"done"),n.props.onEntered&&n.props.onEntered(l,c)},n.onExit=function(l){var c=n.resolveArguments(l),d=c[0];n.removeClasses(d,"appear"),n.removeClasses(d,"enter"),n.addClass(d,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var c=n.resolveArguments(l),d=c[0];n.addClass(d,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var c=n.resolveArguments(l),d=c[0];n.removeClasses(d,"exit"),n.addClass(d,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,c){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,c]},n.getClassNames=function(l){var c=n.props.classNames,d=typeof c=="string",f=d&&c?c+"-":"",p=d?""+f+l:c[l],h=d?p+"-active":c[l+"Active"],b=d?p+"-done":c[l+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:b}},n}var r=t.prototype;return r.addClass=function(o,i,s){var l=this.getClassNames(i)[s+"ClassName"],c=this.getClassNames("enter"),d=c.doneClassName;i==="appear"&&s==="done"&&d&&(l+=" "+d),s==="active"&&o&&OP(o),l&&(this.appliedClasses[i][s]=l,V5(o,l))},r.removeClasses=function(o,i){var s=this.appliedClasses[i],l=s.base,c=s.active,d=s.done;this.appliedClasses[i]={},l&&oh(o,l),c&&oh(o,c),d&&oh(o,d)},r.render=function(){var o=this.props;o.classNames;var i=Jv(o,["classNames"]);return R.createElement(En,Vu({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(R.Component);Kf.defaultProps={classNames:""};Kf.propTypes=process.env.NODE_ENV!=="production"?Vu({},En.propTypes,{classNames:B5,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};function K5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rg(e,t){var r=function(i){return t&&R.isValidElement(i)?t(i):i},n=Object.create(null);return e&&R.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function W5(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,l={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var d=n[c][s];l[n[c][s]]=r(d)}l[c]=r(c)}for(s=0;s<o.length;s++)l[o[s]]=r(o[s]);return l}function ti(e,t,r){return r[t]!=null?r[t]:e.props[t]}function H5(e,t){return rg(e.children,function(r){return R.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ti(r,"appear",e),enter:ti(r,"enter",e),exit:ti(r,"exit",e)})})}function U5(e,t,r){var n=rg(e.children),o=W5(t,n);return Object.keys(o).forEach(function(i){var s=o[i];if(R.isValidElement(s)){var l=i in t,c=i in n,d=t[i],f=R.isValidElement(d)&&!d.props.in;c&&(!l||f)?o[i]=R.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:ti(s,"exit",e),enter:ti(s,"enter",e)}):!c&&l&&!f?o[i]=R.cloneElement(s,{in:!1}):c&&l&&R.isValidElement(d)&&(o[i]=R.cloneElement(s,{onExited:r.bind(null,s),in:d.props.in,exit:ti(s,"exit",e),enter:ti(s,"enter",e)}))}}),o}var z5=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},G5={component:"div",childFactory:function(t){return t}},ng=(function(e){eg(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=i.handleExited.bind(K5(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?H5(o,l):U5(o,s,l),firstRender:!1}},r.handleExited=function(o,i){var s=rg(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=Vu({},l.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=Jv(o,["component","childFactory"]),c=this.state.contextValue,d=z5(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?R.createElement(uf.Provider,{value:c},d):R.createElement(uf.Provider,{value:c},R.createElement(i,l,d))},t})(R.Component);ng.propTypes=process.env.NODE_ENV!=="production"?{component:Ie.any,children:Ie.node,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,childFactory:Ie.func}:{};ng.defaultProps=G5;const Bh=({loading:e,animate:t=!0,...r})=>{const n=R.useRef(null);return t?g.jsx(Kf,{unmountOnExit:!0,mountOnEnter:!0,timeout:200,in:e,classNames:"btn-loader",nodeRef:n,children:g.jsx(sf,{...r,ref:n,"data-testid":"btn-loader",className:le("animate-spin",r.className)})}):e?g.jsx(sf,{...r,"data-testid":"btn-loader",className:le("animate-spin",r.className)}):null},Y5=({loading:e})=>g.jsx("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"inherit",borderRadius:"inherit"},children:g.jsx(Bh,{loading:e,animate:!1})}),X5={display:"inline-flex",alignItems:"center",gap:"0.5rem"},NP=({asChild:e=!1,onClick:t,loading:r,showLoader:n=!0,icon:o,iconPosition:i="start",loaderReplace:s,style:l,...c})=>{const d=e?sc:"button",[f=!1,p]=ut({prop:r,defaultProp:!1}),h=async C=>{if(!t||f)return;const x=t(C);x instanceof Promise&&(n&&p(!0),await x.finally(()=>p(!1)))},b=C=>{if(C!==i)return null;const x=s?!1:f;return g.jsxs(g.Fragment,{children:[g.jsx(Bh,{loading:x&&!o,animate:!0}),o&&g.jsx(Bh,{loading:x,animate:!1}),o&&!x&&o]})},y=s&&(f&&n);return g.jsxs(d,{type:"button","data-slot":"button",...c,onClick:h,style:{...X5,position:y?"relative":void 0,...l},children:[b("start"),g.jsx(P5,{children:c.children}),b("end"),y&&g.jsx(Y5,{loading:!0})]})},S0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_0=Vv,eo=(e,t)=>r=>{var n;if(t?.variants==null)return _0(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(d=>{const f=r?.[d],p=i?.[d];if(f===null)return null;const h=S0(f)||S0(p);return o[d][h]}),l=r&&Object.entries(r).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:h,...b}=f;return Object.entries(b).every(w=>{let[y,C]=w;return Array.isArray(C)?C.includes({...i,...l}[y]):{...i,...l}[y]===C})?[...d,p,h]:d},[]);return _0(e,s,c,r?.class,r?.className)},Z5=eo(["inline-flex items-center justify-center gap-2","text-sm font-medium transition-all","ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","hover:brightness-105"],{variants:{variant:{default:"bg-primary text-primary-foreground",error:"bg-error text-error-foreground",success:"bg-success text-success-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:brightness-100 hover:bg-secondary/80",ghost:"hover:bg-accent hover:brightness-100 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"w-10 aspect-square"},shape:{rounded:"rounded-md",square:"rounded-none",circle:"rounded-full"}},defaultVariants:{variant:"default",size:"default",shape:"rounded"}}),tr=e=>{const{variant:t,size:r,shape:n,className:o,...i}=ac("Button",e);return g.jsx(NP,{...i,className:le(Z5({variant:t,size:r,shape:n}),o),"data-variant":t||"default"})},Q5=({title:e="¿Estás seguro?",description:t="Esta acción no se puede deshacer",trigger:r,onClose:n,onAction:o,variant:i="default",triggerProps:s,contentProps:l,headerProps:c,titleProps:d,descriptionProps:f,footerProps:p,closeProps:h,closeText:b="Cancelar",actionText:w="Aceptar",actionProps:y,asChild:C=!0,...x})=>g.jsxs(Bf,{...x,"data-slot":"alert-dialog",children:[r&&g.jsx(Gv,{asChild:C,...s,"data-slot":"alert-dialog-trigger",children:r}),g.jsxs(Vf,{...l,"data-slot":"alert-dialog-content",children:[g.jsxs(Yv,{...c,"data-slot":"alert-dialog-header",children:[g.jsx(Zv,{...d,"data-slot":"alert-dialog-title",children:e}),g.jsx(Qv,{...f,"data-slot":"alert-dialog-description",children:t})]}),g.jsxs(Xv,{...p,"data-slot":"alert-dialog-footer",children:[g.jsx(Fh,{asChild:!0,type:"button",variant:"secondary",...h,onClick:n??h?.onClick,"data-slot":"alert-dialog-close",children:g.jsx(tr,{"data-slot":"alert-dialog-close",children:b})}),g.jsx(Fh,{asChild:!0,type:"button",variant:i,...y,onClick:o??y?.onClick,"data-slot":"alert-dialog-action",children:g.jsx(tr,{"data-slot":"alert-dialog-action",children:w})})]})]})]});var T0=1,J5=.9,eB=.8,tB=.17,ih=.1,ah=.999,rB=.9999,nB=.99,oB=/[\\\/_+.#"@\[\(\{&]/,iB=/[\\\/_+.#"@\[\(\{&]/g,aB=/[\s-]/,IP=/[\s-]/g;function Vh(e,t,r,n,o,i,s){if(i===t.length)return o===e.length?T0:nB;var l=`${o},${i}`;if(s[l]!==void 0)return s[l];for(var c=n.charAt(i),d=r.indexOf(c,o),f=0,p,h,b,w;d>=0;)p=Vh(e,t,r,n,d+1,i+1,s),p>f&&(d===o?p*=T0:oB.test(e.charAt(d-1))?(p*=eB,b=e.slice(o,d-1).match(iB),b&&o>0&&(p*=Math.pow(ah,b.length))):aB.test(e.charAt(d-1))?(p*=J5,w=e.slice(o,d-1).match(IP),w&&o>0&&(p*=Math.pow(ah,w.length))):(p*=tB,o>0&&(p*=Math.pow(ah,d-o))),e.charAt(d)!==t.charAt(i)&&(p*=rB)),(p<ih&&r.charAt(d-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(d-1)!==n.charAt(i))&&(h=Vh(e,t,r,n,d+1,i+2,s),h*ih>p&&(p=h*ih)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[l]=f,f}function $0(e){return e.toLowerCase().replace(IP," ")}function sB(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Vh(e,t,$0(e),$0(t),0,0,{})}function Ro(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function lB({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=uB({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:n,l=Xt(r),c=v.useCallback(d=>{if(i){const p=typeof d=="function"?d(e):d;p!==e&&l(p)}else o(d)},[i,e,o,l]);return[s,c]}function uB({defaultProp:e,onChange:t}){const r=v.useState(e),[n]=r,o=v.useRef(n),i=Xt(t);return v.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}function cB(e){const t=dB(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(pB);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function dB(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=hB(o),l=mB(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fB=Symbol("radix.slottable");function pB(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fB}function mB(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function hB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zt=vB.reduce((e,t)=>{const r=cB(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gB(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}var bB="DismissableLayer",Kh="dismissableLayer.update",yB="dismissableLayer.pointerDownOutside",xB="dismissableLayer.focusOutside",A0,kP=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),LP=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,d=v.useContext(kP),[f,p]=v.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=v.useState({}),w=Ve(t,A=>p(A)),y=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(C),P=f?y.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,D=P>=x,_=CB(A=>{const M=A.target,U=[...d.branches].some(J=>J.contains(M));!D||U||(o?.(A),s?.(A),A.defaultPrevented||l?.())},h),T=RB(A=>{const M=A.target;[...d.branches].some(J=>J.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||l?.())},h);return W1(A=>{P===d.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),v.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(A0=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),D0(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=A0)}},[f,h,r,d]),v.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),D0())},[f,d]),v.useEffect(()=>{const A=()=>b({});return document.addEventListener(Kh,A),()=>document.removeEventListener(Kh,A)},[]),g.jsx(Zt.div,{...c,ref:w,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:Ro(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ro(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ro(e.onPointerDownCapture,_.onPointerDownCapture)})});LP.displayName=bB;var wB="DismissableLayerBranch",EB=v.forwardRef((e,t)=>{const r=v.useContext(kP),n=v.useRef(null),o=Ve(t,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),g.jsx(Zt.div,{...e,ref:o})});EB.displayName=wB;function CB(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){FP(yB,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function RB(e,t=globalThis?.document){const r=Xt(e),n=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!n.current&&FP(xB,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function D0(){const e=new CustomEvent(Kh);document.dispatchEvent(e)}function FP(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?gB(o,i):o.dispatchEvent(i)}var sh="focusScope.autoFocusOnMount",lh="focusScope.autoFocusOnUnmount",M0={bubbles:!1,cancelable:!0},PB="FocusScope",qP=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=v.useState(null),d=Xt(o),f=Xt(i),p=v.useRef(null),h=Ve(t,y=>c(y)),b=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let y=function(S){if(b.paused||!l)return;const D=S.target;l.contains(D)?p.current=D:xo(p.current,{select:!0})},C=function(S){if(b.paused||!l)return;const D=S.relatedTarget;D!==null&&(l.contains(D)||xo(p.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&xo(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",C);const P=new MutationObserver(x);return l&&P.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",C),P.disconnect()}}},[n,l,b.paused]),v.useEffect(()=>{if(l){N0.add(b);const y=document.activeElement;if(!l.contains(y)){const x=new CustomEvent(sh,M0);l.addEventListener(sh,d),l.dispatchEvent(x),x.defaultPrevented||(SB(DB(jP(l)),{select:!0}),document.activeElement===y&&xo(l))}return()=>{l.removeEventListener(sh,d),setTimeout(()=>{const x=new CustomEvent(lh,M0);l.addEventListener(lh,f),l.dispatchEvent(x),x.defaultPrevented||xo(y??document.body,{select:!0}),l.removeEventListener(lh,f),N0.remove(b)},0)}}},[l,d,f,b]);const w=v.useCallback(y=>{if(!r&&!n||b.paused)return;const C=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(C&&x){const P=y.currentTarget,[S,D]=_B(P);S&&D?!y.shiftKey&&x===D?(y.preventDefault(),r&&xo(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&xo(D,{select:!0})):x===P&&y.preventDefault()}},[r,n,b.paused]);return g.jsx(Zt.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});qP.displayName=PB;function SB(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xo(n,{select:t}),document.activeElement!==r)return}function _B(e){const t=jP(e),r=O0(t,e),n=O0(t.reverse(),e);return[r,n]}function jP(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function O0(e,t){for(const r of e)if(!TB(r,{upTo:t}))return r}function TB(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $B(e){return e instanceof HTMLInputElement&&"select"in e}function xo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&$B(e)&&t&&e.select()}}var N0=AB();function AB(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=I0(e,t),e.unshift(t)},remove(t){e=I0(e,t),e[0]?.resume()}}}function I0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function DB(e){return e.filter(t=>t.tagName!=="A")}var MB="Portal",BP=v.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=v.useState(!1);Kt(()=>i(!0),[]);const s=r||o&&globalThis?.document?.body;return s?rn.createPortal(g.jsx(Zt.div,{...n,ref:t}),s):null});BP.displayName=MB;function OB(e,t){return v.useReducer((r,n)=>t[r][n]??r,e)}var Wf=e=>{const{present:t,children:r}=e,n=NB(t),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Ve(n.ref,IB(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};Wf.displayName="Presence";function NB(e){const[t,r]=v.useState(),n=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[l,c]=OB(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const d=Nd(n.current);i.current=l==="mounted"?d:"none"},[l]),Kt(()=>{const d=n.current,f=o.current;if(f!==e){const h=i.current,b=Nd(d);e?c("MOUNT"):b==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&h!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Kt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=b=>{const y=Nd(n.current).includes(b.animationName);if(b.target===t&&y&&(c("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},h=b=>{b.target===t&&(i.current=Nd(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function Nd(e){return e?.animationName||"none"}function IB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var uh=0;function kB(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??k0()),document.body.insertAdjacentElement("beforeend",e[1]??k0()),uh++,()=>{uh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),uh--}},[])}function k0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function LB(e){const t=FB(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(jB);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function FB(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=VB(o),l=BB(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qB=Symbol("radix.slottable");function jB(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qB}function BB(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function VB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var og="Dialog",[VP]=wn(og),[KB,sn]=VP(og),KP=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=v.useRef(null),c=v.useRef(null),[d=!1,f]=lB({prop:n,defaultProp:o,onChange:i});return g.jsx(KB,{scope:t,triggerRef:l,contentRef:c,contentId:_t(),titleId:_t(),descriptionId:_t(),open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};KP.displayName=og;var WP="DialogTrigger",WB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(WP,r),i=Ve(t,o.triggerRef);return g.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sg(o.open),...n,ref:i,onClick:Ro(e.onClick,o.onOpenToggle)})});WB.displayName=WP;var ig="DialogPortal",[HB,HP]=VP(ig,{forceMount:void 0}),UP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=sn(ig,t);return g.jsx(HB,{scope:t,forceMount:r,children:v.Children.map(n,s=>g.jsx(Wf,{present:r||i.open,children:g.jsx(BP,{asChild:!0,container:o,children:s})}))})};UP.displayName=ig;var cf="DialogOverlay",zP=v.forwardRef((e,t)=>{const r=HP(cf,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=sn(cf,e.__scopeDialog);return i.modal?g.jsx(Wf,{present:n||i.open,children:g.jsx(zB,{...o,ref:t})}):null});zP.displayName=cf;var UB=LB("DialogOverlay.RemoveScroll"),zB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(cf,r);return g.jsx(va,{as:UB,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(Zt.div,{"data-state":sg(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),li="DialogContent",GP=v.forwardRef((e,t)=>{const r=HP(li,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=sn(li,e.__scopeDialog);return g.jsx(Wf,{present:n||i.open,children:i.modal?g.jsx(GB,{...o,ref:t}):g.jsx(YB,{...o,ref:t})})});GP.displayName=li;var GB=v.forwardRef((e,t)=>{const r=sn(li,e.__scopeDialog),n=v.useRef(null),o=Ve(t,r.contentRef,n);return v.useEffect(()=>{const i=n.current;if(i)return oc(i)},[]),g.jsx(YP,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ro(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ro(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:Ro(e.onFocusOutside,i=>i.preventDefault())})}),YB=v.forwardRef((e,t)=>{const r=sn(li,e.__scopeDialog),n=v.useRef(!1),o=v.useRef(!1);return g.jsx(YP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;r.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),YP=v.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=sn(li,r),c=v.useRef(null),d=Ve(t,c);return kB(),g.jsxs(g.Fragment,{children:[g.jsx(qP,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(LP,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":sg(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(JB,{titleId:l.titleId}),g.jsx(t6,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ag="DialogTitle",XB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(ag,r);return g.jsx(Zt.h2,{id:o.titleId,...n,ref:t})});XB.displayName=ag;var XP="DialogDescription",ZB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(XP,r);return g.jsx(Zt.p,{id:o.descriptionId,...n,ref:t})});ZB.displayName=XP;var ZP="DialogClose",QB=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sn(ZP,r);return g.jsx(Zt.button,{type:"button",...n,ref:t,onClick:Ro(e.onClick,()=>o.onOpenChange(!1))})});QB.displayName=ZP;function sg(e){return e?"open":"closed"}var QP="DialogTitleWarning",[die,JP]=V1(QP,{contentName:li,titleName:ag,docsSlug:"dialog"}),JB=({titleId:e})=>{const t=JP(QP),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
47
47
 
48
48
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
49
49
 
50
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},e6="DialogDescriptionWarning",t6=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JP(e6).contentName}}.`;return v.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},r6=KP,n6=UP,o6=zP,i6=GP,Va='[cmdk-group=""]',ch='[cmdk-group-items=""]',a6='[cmdk-group-heading=""]',eS='[cmdk-item=""]',L0=`${eS}:not([aria-disabled="true"])`,Wh="cmdk-item-select",Xi="data-value",s6=(e,t,r)=>sB(e,t,r),tS=v.createContext(void 0),lc=()=>v.useContext(tS),rS=v.createContext(void 0),lg=()=>v.useContext(rS),nS=v.createContext(void 0),oS=v.forwardRef((e,t)=>{let r=Zi(()=>{var Y,X;return{search:"",value:(X=(Y=e.value)!=null?Y:e.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Zi(()=>new Set),o=Zi(()=>new Map),i=Zi(()=>new Map),s=Zi(()=>new Set),l=iS(e),{label:c,children:d,value:f,onValueChange:p,filter:h,shouldFilter:b,loop:w,disablePointerSelection:y=!1,vimBindings:C=!0,...x}=e,P=_t(),S=_t(),D=_t(),_=v.useRef(null),T=b6();ui(()=>{if(f!==void 0){let Y=f.trim();r.current.value=Y,A.emit()}},[f]),ui(()=>{T(6,F)},[]);let A=v.useMemo(()=>({subscribe:Y=>(s.current.add(Y),()=>s.current.delete(Y)),snapshot:()=>r.current,setState:(Y,X,ce)=>{var ue,pe,te,ve;if(!Object.is(r.current[Y],X)){if(r.current[Y]=X,Y==="search")W(),J(),T(1,N);else if(Y==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let j=document.getElementById(D);j?j.focus():(ue=document.getElementById(P))==null||ue.focus()}if(T(7,()=>{var j;r.current.selectedItemId=(j=L())==null?void 0:j.id,A.emit()}),ce||T(5,F),((pe=l.current)==null?void 0:pe.value)!==void 0){let j=X??"";(ve=(te=l.current).onValueChange)==null||ve.call(te,j);return}}A.emit()}},emit:()=>{s.current.forEach(Y=>Y())}}),[]),M=v.useMemo(()=>({value:(Y,X,ce)=>{var ue;X!==((ue=i.current.get(Y))==null?void 0:ue.value)&&(i.current.set(Y,{value:X,keywords:ce}),r.current.filtered.items.set(Y,U(X,ce)),T(2,()=>{J(),A.emit()}))},item:(Y,X)=>(n.current.add(Y),X&&(o.current.has(X)?o.current.get(X).add(Y):o.current.set(X,new Set([Y]))),T(3,()=>{W(),J(),r.current.value||N(),A.emit()}),()=>{i.current.delete(Y),n.current.delete(Y),r.current.filtered.items.delete(Y);let ce=L();T(4,()=>{W(),ce?.getAttribute("id")===Y&&N(),A.emit()})}),group:Y=>(o.current.has(Y)||o.current.set(Y,new Set),()=>{i.current.delete(Y),o.current.delete(Y)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:P,inputId:D,labelId:S,listInnerRef:_}),[]);function U(Y,X){var ce,ue;let pe=(ue=(ce=l.current)==null?void 0:ce.filter)!=null?ue:s6;return Y?pe(Y,r.current.search,X):0}function J(){if(!r.current.search||l.current.shouldFilter===!1)return;let Y=r.current.filtered.items,X=[];r.current.filtered.groups.forEach(ue=>{let pe=o.current.get(ue),te=0;pe.forEach(ve=>{let j=Y.get(ve);te=Math.max(j,te)}),X.push([ue,te])});let ce=_.current;G().sort((ue,pe)=>{var te,ve;let j=ue.getAttribute("id"),ae=pe.getAttribute("id");return((te=Y.get(ae))!=null?te:0)-((ve=Y.get(j))!=null?ve:0)}).forEach(ue=>{let pe=ue.closest(ch);pe?pe.appendChild(ue.parentElement===pe?ue:ue.closest(`${ch} > *`)):ce.appendChild(ue.parentElement===ce?ue:ue.closest(`${ch} > *`))}),X.sort((ue,pe)=>pe[1]-ue[1]).forEach(ue=>{var pe;let te=(pe=_.current)==null?void 0:pe.querySelector(`${Va}[${Xi}="${encodeURIComponent(ue[0])}"]`);te?.parentElement.appendChild(te)})}function N(){let Y=G().find(ce=>ce.getAttribute("aria-disabled")!=="true"),X=Y?.getAttribute(Xi);A.setState("value",X||void 0)}function W(){var Y,X,ce,ue;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let pe=0;for(let te of n.current){let ve=(X=(Y=i.current.get(te))==null?void 0:Y.value)!=null?X:"",j=(ue=(ce=i.current.get(te))==null?void 0:ce.keywords)!=null?ue:[],ae=U(ve,j);r.current.filtered.items.set(te,ae),ae>0&&pe++}for(let[te,ve]of o.current)for(let j of ve)if(r.current.filtered.items.get(j)>0){r.current.filtered.groups.add(te);break}r.current.filtered.count=pe}function F(){var Y,X,ce;let ue=L();ue&&(((Y=ue.parentElement)==null?void 0:Y.firstChild)===ue&&((ce=(X=ue.closest(Va))==null?void 0:X.querySelector(a6))==null||ce.scrollIntoView({block:"nearest"})),ue.scrollIntoView({block:"nearest"}))}function L(){var Y;return(Y=_.current)==null?void 0:Y.querySelector(`${eS}[aria-selected="true"]`)}function G(){var Y;return Array.from(((Y=_.current)==null?void 0:Y.querySelectorAll(L0))||[])}function k(Y){let X=G()[Y];X&&A.setState("value",X.getAttribute(Xi))}function q(Y){var X;let ce=L(),ue=G(),pe=ue.findIndex(ve=>ve===ce),te=ue[pe+Y];(X=l.current)!=null&&X.loop&&(te=pe+Y<0?ue[ue.length-1]:pe+Y===ue.length?ue[0]:ue[pe+Y]),te&&A.setState("value",te.getAttribute(Xi))}function B(Y){let X=L(),ce=X?.closest(Va),ue;for(;ce&&!ue;)ce=Y>0?v6(ce,Va):g6(ce,Va),ue=ce?.querySelector(L0);ue?A.setState("value",ue.getAttribute(Xi)):q(Y)}let re=()=>k(G().length-1),K=Y=>{Y.preventDefault(),Y.metaKey?re():Y.altKey?B(1):q(1)},ie=Y=>{Y.preventDefault(),Y.metaKey?k(0):Y.altKey?B(-1):q(-1)};return v.createElement(Zt.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:Y=>{var X;(X=x.onKeyDown)==null||X.call(x,Y);let ce=Y.nativeEvent.isComposing||Y.keyCode===229;if(!(Y.defaultPrevented||ce))switch(Y.key){case"n":case"j":{C&&Y.ctrlKey&&K(Y);break}case"ArrowDown":{K(Y);break}case"p":case"k":{C&&Y.ctrlKey&&ie(Y);break}case"ArrowUp":{ie(Y);break}case"Home":{Y.preventDefault(),k(0);break}case"End":{Y.preventDefault(),re();break}case"Enter":{Y.preventDefault();let ue=L();if(ue){let pe=new Event(Wh);ue.dispatchEvent(pe)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:M.inputId,id:M.labelId,style:x6},c),Hf(e,Y=>v.createElement(rS.Provider,{value:A},v.createElement(tS.Provider,{value:M},Y))))}),l6=v.forwardRef((e,t)=>{var r,n;let o=_t(),i=v.useRef(null),s=v.useContext(nS),l=lc(),c=iS(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s?.forceMount;ui(()=>{if(!d)return l.item(o,s?.id)},[d]);let f=aS(o,i,[e.value,e.children,i],e.keywords),p=lg(),h=So(T=>T.value&&T.value===f.current),b=So(T=>d||l.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);v.useEffect(()=>{let T=i.current;if(!(!T||e.disabled))return T.addEventListener(Wh,w),()=>T.removeEventListener(Wh,w)},[b,e.onSelect,e.disabled]);function w(){var T,A;y(),(A=(T=c.current).onSelect)==null||A.call(T,f.current)}function y(){p.setState("value",f.current,!0)}if(!b)return null;let{disabled:C,value:x,onSelect:P,forceMount:S,keywords:D,..._}=e;return v.createElement(Zt.div,{ref:gt(i,t),..._,id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!h,"data-disabled":!!C,"data-selected":!!h,onPointerMove:C||l.getDisablePointerSelection()?void 0:y,onClick:C?void 0:w},e.children)}),u6=v.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=_t(),l=v.useRef(null),c=v.useRef(null),d=_t(),f=lc(),p=So(b=>o||f.filter()===!1?!0:b.search?b.filtered.groups.has(s):!0);ui(()=>f.group(s),[]),aS(s,l,[e.value,e.heading,c]);let h=v.useMemo(()=>({id:s,forceMount:o}),[o]);return v.createElement(Zt.div,{ref:gt(l,t),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&v.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),Hf(e,b=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},v.createElement(nS.Provider,{value:h},b))))}),c6=v.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=v.useRef(null),i=So(s=>!s.search);return!r&&!i?null:v.createElement(Zt.div,{ref:gt(o,t),...n,"cmdk-separator":"",role:"separator"})}),d6=v.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,i=lg(),s=So(d=>d.search),l=So(d=>d.selectedItemId),c=lc();return v.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),v.createElement(Zt.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||i.setState("search",d.target.value),r?.(d.target.value)}})}),f6=v.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=v.useRef(null),s=v.useRef(null),l=So(d=>d.selectedItemId),c=lc();return v.useEffect(()=>{if(s.current&&i.current){let d=s.current,f=i.current,p,h=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let b=d.offsetHeight;f.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return h.observe(d),()=>{cancelAnimationFrame(p),h.unobserve(d)}}},[]),v.createElement(Zt.div,{ref:gt(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},Hf(e,d=>v.createElement("div",{ref:gt(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),p6=v.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...l}=e;return v.createElement(r6,{open:r,onOpenChange:n},v.createElement(n6,{container:s},v.createElement(o6,{"cmdk-overlay":"",className:o}),v.createElement(i6,{"aria-label":e.label,"cmdk-dialog":"",className:i},v.createElement(oS,{ref:t,...l}))))}),m6=v.forwardRef((e,t)=>So(r=>r.filtered.count===0)?v.createElement(Zt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),h6=v.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return v.createElement(Zt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Hf(e,s=>v.createElement("div",{"aria-hidden":!0},s)))}),yi=Object.assign(oS,{List:f6,Item:l6,Input:d6,Group:u6,Separator:c6,Dialog:p6,Empty:m6,Loading:h6});function v6(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function g6(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function iS(e){let t=v.useRef(e);return ui(()=>{t.current=e}),t}var ui=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Zi(e){let t=v.useRef();return t.current===void 0&&(t.current=e()),t}function So(e){let t=lg(),r=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,r,r)}function aS(e,t,r,n=[]){let o=v.useRef(),i=lc();return ui(()=>{var s;let l=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());i.value(e,l,c),(s=t.current)==null||s.setAttribute(Xi,l),o.current=l}),o}var b6=()=>{let[e,t]=v.useState(),r=Zi(()=>new Map);return ui(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function y6(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Hf({asChild:e,children:t},r){return e&&v.isValidElement(t)?v.cloneElement(y6(t),{ref:t.ref},r(t.props.children)):r(t)}var x6={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const uc=({className:e,...t})=>g.jsx(yi,{"data-slot":"auto-complete",className:le("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}),w6=({children:e,...t})=>g.jsx(Bf,{...t,"data-slot":"auto-complete-dialog",children:g.jsx(Vf,{className:"p-0 overflow-hidden shadow-lg","data-slot":"auto-complete-dialog-content",children:g.jsx(uc,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Uf=({className:e,...t})=>g.jsxs("div",{className:"flex items-center px-3 border-b","data-slot":"auto-complete-input-container",children:[g.jsx(v5,{className:"w-4 h-4 mr-2 opacity-50 shrink-0","data-slot":"auto-complete-input-icon"}),g.jsx(yi.Input,{"data-slot":"auto-complete-input",className:le("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),zf=({className:e,...t})=>g.jsx(yi.List,{"data-slot":"auto-complete-list",className:le("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),Gf=e=>g.jsx(yi.Empty,{className:"py-6 text-sm text-center","data-slot":"auto-complete-empty",...e}),sS=({className:e,...t})=>g.jsx(yi.Group,{"data-slot":"auto-complete-group",className:le("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}),E6=({className:e,...t})=>g.jsx(yi.Separator,{"data-slot":"auto-complete-separator",className:le("-mx-1 h-px bg-input",e),...t}),Ku=({className:e,...t})=>g.jsx(yi.Item,{"data-slot":"auto-complete-item",className:le("aria-selected:bg-accent aria-selected:text-accent-foreground","aria-disabled:pointer-events-none aria-disabled:opacity-50","relative flex gap-2 cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",e),...t}),lS=({className:e,...t})=>g.jsx("span",{"data-slot":"auto-complete-shortcut",className:le("ml-auto text-xs tracking-widest text-muted-foreground",e),...t}),C6=({items:e,placeholder:t="Buscar...",emptyMessage:r="No se encontraron resultados",onSelect:n,containerClassName:o,containerProps:i,inputClassName:s,inputProps:l,listClassName:c,listProps:d,itemClassName:f,itemProps:p,emptyClassName:h,emptyProps:b})=>g.jsxs(uc,{className:o,...i,children:[g.jsx(Uf,{placeholder:t,className:s,...l}),g.jsx(zf,{className:c,...d,children:e.map(w=>g.jsxs(Ku,{className:f,onSelect:()=>n?.(w.value,w),...p,children:[w.label,w.shortcut&&g.jsx(lS,{children:w.shortcut})]},w.value))}),g.jsx(Gf,{className:h,...b,children:r})]}),uS=e=>e.split(" ").map(t=>t.charAt(0)).join("");function R6(e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}const P6=({children:e,as:t="div",props:r})=>{let n;return typeof e=="string"?n=g.jsx(t,{children:e}):R.isValidElement(e)?n=e:typeof e=="function"?n=e(r):n=g.jsx(t,{children:e}),R.isValidElement(n)?n:g.jsx(t,{children:n})},cc=()=>{const e=R.createContext(null);return[()=>{const r=R.useContext(e);if(r===null)throw new Error("Context value is null");return r},e.Provider]},S6=e=>{e.preventDefault();const t=e.currentTarget.elements,r={};return Array.from(t).forEach(n=>{const o=n;o.name&&(r[o.name]=o.value)}),r};var fn={},Xd={exports:{}};Xd.exports;var F0;function cS(){return F0||(F0=1,(function(e){const r=(i=0)=>s=>`\x1B[${38+i};5;${s}m`,n=(i=0)=>(s,l,c)=>`\x1B[${38+i};2;${s};${l};${c}m`;function o(){const i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[l,c]of Object.entries(s)){for(const[d,f]of Object.entries(c))s[d]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},c[d]=s[d],i.set(f[0],f[1]);Object.defineProperty(s,l,{value:c,enumerable:!1})}return Object.defineProperty(s,"codes",{value:i,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=r(),s.color.ansi16m=n(),s.bgColor.ansi256=r(10),s.bgColor.ansi16m=n(10),Object.defineProperties(s,{rgbToAnsi256:{value:(l,c,d)=>l===c&&c===d?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(d/255*5),enumerable:!1},hexToRgb:{value:l=>{const c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(l.toString(16));if(!c)return[0,0,0];let{colorString:d}=c.groups;d.length===3&&(d=d.split("").map(p=>p+p).join(""));const f=Number.parseInt(d,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:l=>s.rgbToAnsi256(...s.hexToRgb(l)),enumerable:!1}}),s}Object.defineProperty(e,"exports",{enumerable:!0,get:o})})(Xd)),Xd.exports}var Yo={},q0;function Yf(){if(q0)return Yo;q0=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.printIteratorEntries=t,Yo.printIteratorValues=r,Yo.printListItems=n,Yo.printObjectProperties=o;const e=(i,s)=>{const l=Object.keys(i).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(c=>{Object.getOwnPropertyDescriptor(i,c).enumerable&&l.push(c)}),l};function t(i,s,l,c,d,f,p=": "){let h="",b=i.next();if(!b.done){h+=s.spacingOuter;const w=l+s.indent;for(;!b.done;){const y=f(b.value[0],s,w,c,d),C=f(b.value[1],s,w,c,d);h+=w+y+p+C,b=i.next(),b.done?s.min||(h+=","):h+=","+s.spacingInner}h+=s.spacingOuter+l}return h}function r(i,s,l,c,d,f){let p="",h=i.next();if(!h.done){p+=s.spacingOuter;const b=l+s.indent;for(;!h.done;)p+=b+f(h.value,s,b,c,d),h=i.next(),h.done?s.min||(p+=","):p+=","+s.spacingInner;p+=s.spacingOuter+l}return p}function n(i,s,l,c,d,f){let p="";if(i.length){p+=s.spacingOuter;const h=l+s.indent;for(let b=0;b<i.length;b++)p+=h,b in i&&(p+=f(i[b],s,h,c,d)),b<i.length-1?p+=","+s.spacingInner:s.min||(p+=",");p+=s.spacingOuter+l}return p}function o(i,s,l,c,d,f){let p="";const h=e(i,s.compareKeys);if(h.length){p+=s.spacingOuter;const b=l+s.indent;for(let w=0;w<h.length;w++){const y=h[w],C=f(y,s,b,c,d),x=f(i[y],s,b,c,d);p+=b+C+": "+x,w<h.length-1?p+=","+s.spacingInner:s.min||(p+=",")}p+=s.spacingOuter+l}return p}return Yo}var kn={},j0;function _6(){if(j0)return kn;j0=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.test=kn.serialize=kn.default=void 0;var e=Yf(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("jest.asymmetricMatcher"):1267621,o=" ",i=(d,f,p,h,b,w)=>{const y=d.toString();return y==="ArrayContaining"||y==="ArrayNotContaining"?++h>f.maxDepth?"["+y+"]":y+o+"["+(0,e.printListItems)(d.sample,f,p,h,b,w)+"]":y==="ObjectContaining"||y==="ObjectNotContaining"?++h>f.maxDepth?"["+y+"]":y+o+"{"+(0,e.printObjectProperties)(d.sample,f,p,h,b,w)+"}":y==="StringMatching"||y==="StringNotMatching"||y==="StringContaining"||y==="StringNotContaining"?y+o+w(d.sample,f,p,h,b):d.toAsymmetricMatcher()};kn.serialize=i;const s=d=>d&&d.$$typeof===n;kn.test=s;var c={serialize:i,test:s};return kn.default=c,kn}var Ln={},dh,B0;function T6(){return B0||(B0=1,dh=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}),dh}var V0;function $6(){if(V0)return Ln;V0=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.test=Ln.serialize=Ln.default=void 0;var e=r(T6()),t=r(cS());function r(c){return c&&c.__esModule?c:{default:c}}const n=c=>c.replace((0,e.default)(),d=>{switch(d){case t.default.red.close:case t.default.green.close:case t.default.cyan.close:case t.default.gray.close:case t.default.white.close:case t.default.yellow.close:case t.default.bgRed.close:case t.default.bgGreen.close:case t.default.bgYellow.close:case t.default.inverse.close:case t.default.dim.close:case t.default.bold.close:case t.default.reset.open:case t.default.reset.close:return"</>";case t.default.red.open:return"<red>";case t.default.green.open:return"<green>";case t.default.cyan.open:return"<cyan>";case t.default.gray.open:return"<gray>";case t.default.white.open:return"<white>";case t.default.yellow.open:return"<yellow>";case t.default.bgRed.open:return"<bgRed>";case t.default.bgGreen.open:return"<bgGreen>";case t.default.bgYellow.open:return"<bgYellow>";case t.default.inverse.open:return"<inverse>";case t.default.dim.open:return"<dim>";case t.default.bold.open:return"<bold>";default:return""}}),o=c=>typeof c=="string"&&!!c.match((0,e.default)());Ln.test=o;const i=(c,d,f,p,h,b)=>b(n(c),d,f,p,h);Ln.serialize=i;var l={serialize:i,test:o};return Ln.default=l,Ln}var Fn={},K0;function A6(){if(K0)return Fn;K0=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.test=Fn.serialize=Fn.default=void 0;var e=Yf();const t=" ",r=["DOMStringMap","NamedNodeMap"],n=/^(HTML\w*Collection|NodeList)$/,o=f=>r.indexOf(f)!==-1||n.test(f),i=f=>f&&f.constructor&&!!f.constructor.name&&o(f.constructor.name);Fn.test=i;const s=f=>f.constructor.name==="NamedNodeMap",l=(f,p,h,b,w,y)=>{const C=f.constructor.name;return++b>p.maxDepth?"["+C+"]":(p.min?"":C+t)+(r.indexOf(C)!==-1?"{"+(0,e.printObjectProperties)(s(f)?Array.from(f).reduce((x,P)=>(x[P.name]=P.value,x),{}):{...f},p,h,b,w,y)+"}":"["+(0,e.printListItems)(Array.from(f),p,h,b,w,y)+"]")};Fn.serialize=l;var d={serialize:l,test:i};return Fn.default=d,Fn}var qn={},sr={},Id={},W0;function D6(){if(W0)return Id;W0=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.default=e;function e(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}return Id}var H0;function ug(){if(H0)return sr;H0=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.printText=sr.printProps=sr.printElementAsLeaf=sr.printElement=sr.printComment=sr.printChildren=void 0;var e=t(D6());function t(c){return c&&c.__esModule?c:{default:c}}const r=(c,d,f,p,h,b,w)=>{const y=p+f.indent,C=f.colors;return c.map(x=>{const P=d[x];let S=w(P,f,y,h,b);return typeof P!="string"&&(S.indexOf(`
51
- `)!==-1&&(S=f.spacingOuter+y+S+f.spacingOuter+p),S="{"+S+"}"),f.spacingInner+p+C.prop.open+x+C.prop.close+"="+C.value.open+S+C.value.close}).join("")};sr.printProps=r;const n=(c,d,f,p,h,b)=>c.map(w=>d.spacingOuter+f+(typeof w=="string"?o(w,d):b(w,d,f,p,h))).join("");sr.printChildren=n;const o=(c,d)=>{const f=d.colors.content;return f.open+(0,e.default)(c)+f.close};sr.printText=o;const i=(c,d)=>{const f=d.colors.comment;return f.open+"<!--"+(0,e.default)(c)+"-->"+f.close};sr.printComment=i;const s=(c,d,f,p,h)=>{const b=p.colors.tag;return b.open+"<"+c+(d&&b.close+d+p.spacingOuter+h+b.open)+(f?">"+b.close+f+p.spacingOuter+h+b.open+"</"+c:(d&&!p.min?"":" ")+"/")+">"+b.close};sr.printElement=s;const l=(c,d)=>{const f=d.colors.tag;return f.open+"<"+c+f.close+" …"+f.open+" />"+f.close};return sr.printElementAsLeaf=l,sr}var U0;function M6(){if(U0)return qn;U0=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.test=qn.serialize=qn.default=void 0;var e=ug();const t=1,r=3,n=8,o=11,i=/^((HTML|SVG)\w*)?Element$/,s=y=>{try{return typeof y.hasAttribute=="function"&&y.hasAttribute("is")}catch{return!1}},l=y=>{const C=y.constructor.name,{nodeType:x,tagName:P}=y,S=typeof P=="string"&&P.includes("-")||s(y);return x===t&&(i.test(C)||S)||x===r&&C==="Text"||x===n&&C==="Comment"||x===o&&C==="DocumentFragment"},c=y=>{var C;return(y==null||(C=y.constructor)===null||C===void 0?void 0:C.name)&&l(y)};qn.test=c;function d(y){return y.nodeType===r}function f(y){return y.nodeType===n}function p(y){return y.nodeType===o}const h=(y,C,x,P,S,D)=>{if(d(y))return(0,e.printText)(y.data,C);if(f(y))return(0,e.printComment)(y.data,C);const _=p(y)?"DocumentFragment":y.tagName.toLowerCase();return++P>C.maxDepth?(0,e.printElementAsLeaf)(_,C):(0,e.printElement)(_,(0,e.printProps)(p(y)?[]:Array.from(y.attributes).map(T=>T.name).sort(),p(y)?{}:Array.from(y.attributes).reduce((T,A)=>(T[A.name]=A.value,T),{}),C,x+C.indent,P,S,D),(0,e.printChildren)(Array.prototype.slice.call(y.childNodes||y.children),C,x+C.indent,P,S,D),C,x)};qn.serialize=h;var w={serialize:h,test:c};return qn.default=w,qn}var jn={},z0;function O6(){if(z0)return jn;z0=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.test=jn.serialize=jn.default=void 0;var e=Yf();const t="@@__IMMUTABLE_ITERABLE__@@",r="@@__IMMUTABLE_LIST__@@",n="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",f=A=>"Immutable."+A,p=A=>"["+A+"]",h=" ",b="…",w=(A,M,U,J,N,W,F)=>++J>M.maxDepth?p(f(F)):f(F)+h+"{"+(0,e.printIteratorEntries)(A.entries(),M,U,J,N,W)+"}";function y(A){let M=0;return{next(){if(M<A._keys.length){const U=A._keys[M++];return{done:!1,value:[U,A.get(U)]}}return{done:!0,value:void 0}}}}const C=(A,M,U,J,N,W)=>{const F=f(A._name||"Record");return++J>M.maxDepth?p(F):F+h+"{"+(0,e.printIteratorEntries)(y(A),M,U,J,N,W)+"}"},x=(A,M,U,J,N,W)=>{const F=f("Seq");return++J>M.maxDepth?p(F):A[n]?F+h+"{"+(A._iter||A._object?(0,e.printIteratorEntries)(A.entries(),M,U,J,N,W):b)+"}":F+h+"["+(A._iter||A._array||A._collection||A._iterable?(0,e.printIteratorValues)(A.values(),M,U,J,N,W):b)+"]"},P=(A,M,U,J,N,W,F)=>++J>M.maxDepth?p(f(F)):f(F)+h+"["+(0,e.printIteratorValues)(A.values(),M,U,J,N,W)+"]",S=(A,M,U,J,N,W)=>A[o]?w(A,M,U,J,N,W,A[i]?"OrderedMap":"Map"):A[r]?P(A,M,U,J,N,W,"List"):A[c]?P(A,M,U,J,N,W,A[i]?"OrderedSet":"Set"):A[d]?P(A,M,U,J,N,W,"Stack"):A[l]?x(A,M,U,J,N,W):C(A,M,U,J,N,W);jn.serialize=S;const D=A=>A&&(A[t]===!0||A[s]===!0);jn.test=D;var T={serialize:S,test:D};return jn.default=T,jn}var Bn={},kd={exports:{}},at={};var G0;function N6(){if(G0)return at;G0=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,s=60110,l=60112,c=60113,d=60120,f=60115,p=60116,h=60121,b=60122,w=60117,y=60129,C=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;e=x("react.element"),t=x("react.portal"),r=x("react.fragment"),n=x("react.strict_mode"),o=x("react.profiler"),i=x("react.provider"),s=x("react.context"),l=x("react.forward_ref"),c=x("react.suspense"),d=x("react.suspense_list"),f=x("react.memo"),p=x("react.lazy"),h=x("react.block"),b=x("react.server.block"),w=x("react.fundamental"),y=x("react.debug_trace_mode"),C=x("react.legacy_hidden")}function P(F){if(typeof F=="object"&&F!==null){var L=F.$$typeof;switch(L){case e:switch(F=F.type,F){case r:case o:case n:case c:case d:return F;default:switch(F=F&&F.$$typeof,F){case s:case l:case p:case f:case i:return F;default:return L}}case t:return L}}}var S=i,D=e,_=l,T=r,A=p,M=f,U=t,J=o,N=n,W=c;return at.ContextConsumer=s,at.ContextProvider=S,at.Element=D,at.ForwardRef=_,at.Fragment=T,at.Lazy=A,at.Memo=M,at.Portal=U,at.Profiler=J,at.StrictMode=N,at.Suspense=W,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(F){return P(F)===s},at.isContextProvider=function(F){return P(F)===i},at.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===e},at.isForwardRef=function(F){return P(F)===l},at.isFragment=function(F){return P(F)===r},at.isLazy=function(F){return P(F)===p},at.isMemo=function(F){return P(F)===f},at.isPortal=function(F){return P(F)===t},at.isProfiler=function(F){return P(F)===o},at.isStrictMode=function(F){return P(F)===n},at.isSuspense=function(F){return P(F)===c},at.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===r||F===o||F===y||F===n||F===c||F===d||F===C||typeof F=="object"&&F!==null&&(F.$$typeof===p||F.$$typeof===f||F.$$typeof===i||F.$$typeof===s||F.$$typeof===l||F.$$typeof===w||F.$$typeof===h||F[0]===b)},at.typeOf=P,at}var st={};var Y0;function I6(){return Y0||(Y0=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,s=60110,l=60112,c=60113,d=60120,f=60115,p=60116,h=60121,b=60122,w=60117,y=60129,C=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;e=x("react.element"),t=x("react.portal"),r=x("react.fragment"),n=x("react.strict_mode"),o=x("react.profiler"),i=x("react.provider"),s=x("react.context"),l=x("react.forward_ref"),c=x("react.suspense"),d=x("react.suspense_list"),f=x("react.memo"),p=x("react.lazy"),h=x("react.block"),b=x("react.server.block"),w=x("react.fundamental"),x("react.scope"),x("react.opaque.id"),y=x("react.debug_trace_mode"),x("react.offscreen"),C=x("react.legacy_hidden")}var P=!1;function S(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===o||oe===y||oe===n||oe===c||oe===d||oe===C||P||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===f||oe.$$typeof===i||oe.$$typeof===s||oe.$$typeof===l||oe.$$typeof===w||oe.$$typeof===h||oe[0]===b))}function D(oe){if(typeof oe=="object"&&oe!==null){var Z=oe.$$typeof;switch(Z){case e:var we=oe.type;switch(we){case r:case o:case n:case c:case d:return we;default:var De=we&&we.$$typeof;switch(De){case s:case l:case p:case f:case i:return De;default:return Z}}case t:return Z}}}var _=s,T=i,A=e,M=l,U=r,J=p,N=f,W=t,F=o,L=n,G=c,k=!1,q=!1;function B(oe){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function re(oe){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(oe){return D(oe)===s}function ie(oe){return D(oe)===i}function Y(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function X(oe){return D(oe)===l}function ce(oe){return D(oe)===r}function ue(oe){return D(oe)===p}function pe(oe){return D(oe)===f}function te(oe){return D(oe)===t}function ve(oe){return D(oe)===o}function j(oe){return D(oe)===n}function ae(oe){return D(oe)===c}st.ContextConsumer=_,st.ContextProvider=T,st.Element=A,st.ForwardRef=M,st.Fragment=U,st.Lazy=J,st.Memo=N,st.Portal=W,st.Profiler=F,st.StrictMode=L,st.Suspense=G,st.isAsyncMode=B,st.isConcurrentMode=re,st.isContextConsumer=K,st.isContextProvider=ie,st.isElement=Y,st.isForwardRef=X,st.isFragment=ce,st.isLazy=ue,st.isMemo=pe,st.isPortal=te,st.isProfiler=ve,st.isStrictMode=j,st.isSuspense=ae,st.isValidElementType=S,st.typeOf=D})()),st}var X0;function k6(){return X0||(X0=1,process.env.NODE_ENV==="production"?kd.exports=N6():kd.exports=I6()),kd.exports}var Z0;function L6(){if(Z0)return Bn;Z0=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.test=Bn.serialize=Bn.default=void 0;var e=n(k6()),t=ug();function r(p){if(typeof WeakMap!="function")return null;var h=new WeakMap,b=new WeakMap;return(r=function(w){return w?b:h})(p)}function n(p,h){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=r(h);if(b&&b.has(p))return b.get(p);var w={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in p)if(C!=="default"&&Object.prototype.hasOwnProperty.call(p,C)){var x=y?Object.getOwnPropertyDescriptor(p,C):null;x&&(x.get||x.set)?Object.defineProperty(w,C,x):w[C]=p[C]}return w.default=p,b&&b.set(p,w),w}const o=(p,h=[])=>(Array.isArray(p)?p.forEach(b=>{o(b,h)}):p!=null&&p!==!1&&h.push(p),h),i=p=>{const h=p.type;if(typeof h=="string")return h;if(typeof h=="function")return h.displayName||h.name||"Unknown";if(e.isFragment(p))return"React.Fragment";if(e.isSuspense(p))return"React.Suspense";if(typeof h=="object"&&h!==null){if(e.isContextProvider(p))return"Context.Provider";if(e.isContextConsumer(p))return"Context.Consumer";if(e.isForwardRef(p)){if(h.displayName)return h.displayName;const b=h.render.displayName||h.render.name||"";return b!==""?"ForwardRef("+b+")":"ForwardRef"}if(e.isMemo(p)){const b=h.displayName||h.type.displayName||h.type.name||"";return b!==""?"Memo("+b+")":"Memo"}}return"UNDEFINED"},s=p=>{const{props:h}=p;return Object.keys(h).filter(b=>b!=="children"&&h[b]!==void 0).sort()},l=(p,h,b,w,y,C)=>++w>h.maxDepth?(0,t.printElementAsLeaf)(i(p),h):(0,t.printElement)(i(p),(0,t.printProps)(s(p),p.props,h,b+h.indent,w,y,C),(0,t.printChildren)(o(p.props.children),h,b+h.indent,w,y,C),h,b);Bn.serialize=l;const c=p=>p!=null&&e.isElement(p);Bn.test=c;var f={serialize:l,test:c};return Bn.default=f,Bn}var Vn={},Q0;function F6(){if(Q0)return Vn;Q0=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.test=Vn.serialize=Vn.default=void 0;var e=ug(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=d=>{const{props:f}=d;return f?Object.keys(f).filter(p=>f[p]!==void 0).sort():[]},i=(d,f,p,h,b,w)=>++h>f.maxDepth?(0,e.printElementAsLeaf)(d.type,f):(0,e.printElement)(d.type,d.props?(0,e.printProps)(o(d),d.props,f,p+f.indent,h,b,w):"",d.children?(0,e.printChildren)(d.children,f,p+f.indent,h,b,w):"",f,p);Vn.serialize=i;const s=d=>d&&d.$$typeof===n;Vn.test=s;var c={serialize:i,test:s};return Vn.default=c,Vn}var J0;function q6(){if(J0)return fn;J0=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=fn.DEFAULT_OPTIONS=void 0,fn.format=pe,fn.plugins=void 0;var e=d(cS()),t=Yf(),r=d(_6()),n=d($6()),o=d(A6()),i=d(M6()),s=d(O6()),l=d(L6()),c=d(F6());function d(j){return j&&j.__esModule?j:{default:j}}const f=Object.prototype.toString,p=Date.prototype.toISOString,h=Error.prototype.toString,b=RegExp.prototype.toString,w=j=>typeof j.constructor=="function"&&j.constructor.name||"Object",y=j=>typeof window<"u"&&j===window,C=/^Symbol\((.*)\)(.*)$/,x=/\n/gi;class P extends Error{constructor(ae,oe){super(ae),this.stack=oe,this.name=this.constructor.name}}function S(j){return j==="[object Array]"||j==="[object ArrayBuffer]"||j==="[object DataView]"||j==="[object Float32Array]"||j==="[object Float64Array]"||j==="[object Int8Array]"||j==="[object Int16Array]"||j==="[object Int32Array]"||j==="[object Uint8Array]"||j==="[object Uint8ClampedArray]"||j==="[object Uint16Array]"||j==="[object Uint32Array]"}function D(j){return Object.is(j,-0)?"-0":String(j)}function _(j){return`${j}n`}function T(j,ae){return ae?"[Function "+(j.name||"anonymous")+"]":"[Function]"}function A(j){return String(j).replace(C,"Symbol($1)")}function M(j){return"["+h.call(j)+"]"}function U(j,ae,oe,Z){if(j===!0||j===!1)return""+j;if(j===void 0)return"undefined";if(j===null)return"null";const we=typeof j;if(we==="number")return D(j);if(we==="bigint")return _(j);if(we==="string")return Z?'"'+j.replace(/"|\\/g,"\\$&")+'"':'"'+j+'"';if(we==="function")return T(j,ae);if(we==="symbol")return A(j);const De=f.call(j);return De==="[object WeakMap]"?"WeakMap {}":De==="[object WeakSet]"?"WeakSet {}":De==="[object Function]"||De==="[object GeneratorFunction]"?T(j,ae):De==="[object Symbol]"?A(j):De==="[object Date]"?isNaN(+j)?"Date { NaN }":p.call(j):De==="[object Error]"?M(j):De==="[object RegExp]"?oe?b.call(j).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(j):j instanceof Error?M(j):null}function J(j,ae,oe,Z,we,De){if(we.indexOf(j)!==-1)return"[Circular]";we=we.slice(),we.push(j);const Ue=++Z>ae.maxDepth,wt=ae.min;if(ae.callToJSON&&!Ue&&j.toJSON&&typeof j.toJSON=="function"&&!De)return L(j.toJSON(),ae,oe,Z,we,!0);const mt=f.call(j);return mt==="[object Arguments]"?Ue?"[Arguments]":(wt?"":"Arguments ")+"["+(0,t.printListItems)(j,ae,oe,Z,we,L)+"]":S(mt)?Ue?"["+j.constructor.name+"]":(wt||!ae.printBasicPrototype&&j.constructor.name==="Array"?"":j.constructor.name+" ")+"["+(0,t.printListItems)(j,ae,oe,Z,we,L)+"]":mt==="[object Map]"?Ue?"[Map]":"Map {"+(0,t.printIteratorEntries)(j.entries(),ae,oe,Z,we,L," => ")+"}":mt==="[object Set]"?Ue?"[Set]":"Set {"+(0,t.printIteratorValues)(j.values(),ae,oe,Z,we,L)+"}":Ue||y(j)?"["+w(j)+"]":(wt||!ae.printBasicPrototype&&w(j)==="Object"?"":w(j)+" ")+"{"+(0,t.printObjectProperties)(j,ae,oe,Z,we,L)+"}"}function N(j){return j.serialize!=null}function W(j,ae,oe,Z,we,De){let Ue;try{Ue=N(j)?j.serialize(ae,oe,Z,we,De,L):j.print(ae,wt=>L(wt,oe,Z,we,De),wt=>{const mt=Z+oe.indent;return mt+wt.replace(x,`
52
- `+mt)},{edgeSpacing:oe.spacingOuter,min:oe.min,spacing:oe.spacingInner},oe.colors)}catch(wt){throw new P(wt.message,wt.stack)}if(typeof Ue!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Ue}".`);return Ue}function F(j,ae){for(let oe=0;oe<j.length;oe++)try{if(j[oe].test(ae))return j[oe]}catch(Z){throw new P(Z.message,Z.stack)}return null}function L(j,ae,oe,Z,we,De){const Ue=F(ae.plugins,j);if(Ue!==null)return W(Ue,j,ae,oe,Z,we);const wt=U(j,ae.printFunctionName,ae.escapeRegex,ae.escapeString);return wt!==null?wt:J(j,ae,oe,Z,we,De)}const G={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},k=Object.keys(G),q={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:G};fn.DEFAULT_OPTIONS=q;function B(j){if(Object.keys(j).forEach(ae=>{if(!q.hasOwnProperty(ae))throw new Error(`pretty-format: Unknown option "${ae}".`)}),j.min&&j.indent!==void 0&&j.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(j.theme!==void 0){if(j.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof j.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof j.theme}".`)}}const re=j=>k.reduce((ae,oe)=>{const Z=j.theme&&j.theme[oe]!==void 0?j.theme[oe]:G[oe],we=Z&&e.default[Z];if(we&&typeof we.close=="string"&&typeof we.open=="string")ae[oe]=we;else throw new Error(`pretty-format: Option "theme" has a key "${oe}" whose value "${Z}" is undefined in ansi-styles.`);return ae},Object.create(null)),K=()=>k.reduce((j,ae)=>(j[ae]={close:"",open:""},j),Object.create(null)),ie=j=>j&&j.printFunctionName!==void 0?j.printFunctionName:q.printFunctionName,Y=j=>j&&j.escapeRegex!==void 0?j.escapeRegex:q.escapeRegex,X=j=>j&&j.escapeString!==void 0?j.escapeString:q.escapeString,ce=j=>{var ae;return{callToJSON:j&&j.callToJSON!==void 0?j.callToJSON:q.callToJSON,colors:j&&j.highlight?re(j):K(),compareKeys:j&&typeof j.compareKeys=="function"?j.compareKeys:q.compareKeys,escapeRegex:Y(j),escapeString:X(j),indent:j&&j.min?"":ue(j&&j.indent!==void 0?j.indent:q.indent),maxDepth:j&&j.maxDepth!==void 0?j.maxDepth:q.maxDepth,min:j&&j.min!==void 0?j.min:q.min,plugins:j&&j.plugins!==void 0?j.plugins:q.plugins,printBasicPrototype:(ae=j?.printBasicPrototype)!==null&&ae!==void 0?ae:!0,printFunctionName:ie(j),spacingInner:j&&j.min?" ":`
53
- `,spacingOuter:j&&j.min?"":`
54
- `}};function ue(j){return new Array(j+1).join(" ")}function pe(j,ae){if(ae&&(B(ae),ae.plugins)){const Z=F(ae.plugins,j);if(Z!==null)return W(Z,j,ce(ae),"",0,[])}const oe=U(j,ie(ae),Y(ae),X(ae));return oe!==null?oe:J(j,ce(ae),"",0,[])}const te={AsymmetricMatcher:r.default,ConvertAnsi:n.default,DOMCollection:o.default,DOMElement:i.default,Immutable:s.default,ReactElement:l.default,ReactTestComponent:c.default};fn.plugins=te;var ve=pe;return fn.default=ve,fn}var dS=q6(),j6=Object.prototype.toString;function B6(e){return typeof e=="function"||j6.call(e)==="[object Function]"}function V6(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var K6=Math.pow(2,53)-1;function W6(e){var t=V6(e);return Math.min(Math.max(t,0),K6)}function Qr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=W6(n.length),i=B6(r)?Object(new r(o)):new Array(o),s=0,l;s<o;)l=n[s],i[s]=l,s+=1;return i.length=o,i}function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function H6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fS(n.key),n)}}function z6(e,t,r){return t&&U6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G6(e,t,r){return t=fS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(e){var t=Y6(e,"string");return Wu(t)==="symbol"?t:String(t)}function Y6(e,t){if(Wu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X6=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];H6(this,e),G6(this,"items",void 0),this.items=t}return z6(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})();const Z6=typeof Set>"u"?Set:X6;function rr(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Q6={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},J6={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function e7(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=J6[t])!==null&&n!==void 0&&n.has(r))})}function pS(e,t){return e7(e,t)}function t7(e){var t=n7(e);if(t===null||t==="presentation"){var r=r7(e);if(t!=="presentation"||pS(e,r||""))return r}return t}function r7(e){var t=Q6[rr(e)];if(t!==void 0)return t;switch(rr(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!pS(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function n7(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function xt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function mS(e){return xt(e)&&rr(e)==="caption"}function Zd(e){return xt(e)&&rr(e)==="input"}function o7(e){return xt(e)&&rr(e)==="optgroup"}function i7(e){return xt(e)&&rr(e)==="select"}function a7(e){return xt(e)&&rr(e)==="table"}function s7(e){return xt(e)&&rr(e)==="textarea"}function l7(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function u7(e){return xt(e)&&rr(e)==="fieldset"}function c7(e){return xt(e)&&rr(e)==="legend"}function d7(e){return xt(e)&&rr(e)==="slot"}function f7(e){return xt(e)&&e.ownerSVGElement!==void 0}function p7(e){return xt(e)&&rr(e)==="svg"}function m7(e){return f7(e)&&rr(e)==="title"}function df(e,t){if(xt(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Un(e,t){return xt(e)?t.indexOf(t7(e))!==-1:!1}function h7(e){return e.trim().replace(/\s\s+/g," ")}function v7(e,t){if(!xt(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function g7(e){return Un(e,["button","combobox","listbox","textbox"])||hS(e,"range")}function hS(e,t){if(!xt(e))return!1;switch(t){case"range":return Un(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function ew(e,t){var r=Qr(e.querySelectorAll(t));return df(e,"aria-owns").forEach(function(n){r.push.apply(r,Qr(n.querySelectorAll(t)))}),r}function b7(e){return i7(e)?e.selectedOptions||ew(e,"[selected]"):ew(e,'[aria-selected="true"]')}function y7(e){return Un(e,["none","presentation"])}function x7(e){return mS(e)}function w7(e){return Un(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function E7(e){return!1}function C7(e){return Zd(e)||s7(e)?e.value:e.textContent||""}function tw(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function vS(e){var t=rr(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function gS(e){if(vS(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&xt(r)){var n=gS(r);n!==null&&(t=n)}}),t}function R7(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):gS(e)}function P7(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Qr(t);if(!vS(e))return null;var r=e.ownerDocument;return Qr(r.querySelectorAll("label")).filter(function(n){return R7(n)===e})}function S7(e){var t=e.assignedNodes();return t.length===0?Qr(e.childNodes):t}function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Z6,n=l7(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,l=s===void 0?t.getComputedStyle!==void 0:s,c=t.getComputedStyle,d=c===void 0?n.getComputedStyle.bind(n):c,f=t.hidden,p=f===void 0?!1:f;function h(x,P){var S="";if(xt(x)&&l){var D=d(x,"::before"),_=tw(D);S="".concat(_," ").concat(S)}var T=d7(x)?S7(x):Qr(x.childNodes).concat(df(x,"aria-owns"));if(T.forEach(function(U){var J=C(U,{isEmbeddedInLabel:P.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),N=xt(U)?d(U).getPropertyValue("display"):"inline",W=N!=="inline"?" ":"";S+="".concat(W).concat(J).concat(W)}),xt(x)&&l){var A=d(x,"::after"),M=tw(A);S="".concat(S," ").concat(M)}return S.trim()}function b(x,P){var S=x.getAttributeNode(P);return S!==null&&!r.has(S)&&S.value.trim()!==""?(r.add(S),S.value):null}function w(x){return xt(x)?b(x,"title"):null}function y(x){if(!xt(x))return null;if(u7(x)){r.add(x);for(var P=Qr(x.childNodes),S=0;S<P.length;S+=1){var D=P[S];if(c7(D))return C(D,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(a7(x)){r.add(x);for(var _=Qr(x.childNodes),T=0;T<_.length;T+=1){var A=_[T];if(mS(A))return C(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(p7(x)){r.add(x);for(var M=Qr(x.childNodes),U=0;U<M.length;U+=1){var J=M[U];if(m7(J))return J.textContent}return null}else if(rr(x)==="img"||rr(x)==="area"){var N=b(x,"alt");if(N!==null)return N}else if(o7(x)){var W=b(x,"label");if(W!==null)return W}if(Zd(x)&&(x.type==="button"||x.type==="submit"||x.type==="reset")){var F=b(x,"value");if(F!==null)return F;if(x.type==="submit")return"Submit";if(x.type==="reset")return"Reset"}var L=P7(x);if(L!==null&&L.length!==0)return r.add(x),Qr(L).map(function(B){return C(B,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(B){return B.length>0}).join(" ");if(Zd(x)&&x.type==="image"){var G=b(x,"alt");if(G!==null)return G;var k=b(x,"title");return k!==null?k:"Submit Query"}if(Un(x,["button"])){var q=h(x,{isEmbeddedInLabel:!1});if(q!=="")return q}return null}function C(x,P){if(r.has(x))return"";if(!p&&v7(x,d)&&!P.isReferenced)return r.add(x),"";var S=xt(x)?x.getAttributeNode("aria-labelledby"):null,D=S!==null&&!r.has(S)?df(x,"aria-labelledby"):[];if(i==="name"&&!P.isReferenced&&D.length>0)return r.add(S),D.map(function(N){return C(N,{isEmbeddedInLabel:P.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var _=P.recursion&&g7(x)&&i==="name";if(!_){var T=(xt(x)&&x.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return r.add(x),T;if(!y7(x)){var A=y(x);if(A!==null)return r.add(x),A}}if(Un(x,["menu"]))return r.add(x),"";if(_||P.isEmbeddedInLabel||P.isReferenced){if(Un(x,["combobox","listbox"])){r.add(x);var M=b7(x);return M.length===0?Zd(x)?x.value:"":Qr(M).map(function(N){return C(N,{isEmbeddedInLabel:P.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(hS(x,"range"))return r.add(x),x.hasAttribute("aria-valuetext")?x.getAttribute("aria-valuetext"):x.hasAttribute("aria-valuenow")?x.getAttribute("aria-valuenow"):x.getAttribute("value")||"";if(Un(x,["textbox"]))return r.add(x),C7(x)}if(w7(x)||xt(x)&&P.isReferenced||x7(x)||E7()){var U=h(x,{isEmbeddedInLabel:P.isEmbeddedInLabel});if(U!=="")return r.add(x),U}if(x.nodeType===x.TEXT_NODE)return r.add(x),x.textContent||"";if(P.recursion)return r.add(x),h(x,{isEmbeddedInLabel:P.isEmbeddedInLabel});var J=w(x);return J!==null?(r.add(x),J):(r.add(x),"")}return h7(C(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){_7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _7(e,t,r){return t=T7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T7(e){var t=$7(e,"string");return Hu(t)==="symbol"?t:String(t)}function $7(e,t){if(Hu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=df(e,"aria-describedby").map(function(o){return bS(o,nw(nw({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function A7(e){return Un(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return A7(e)?"":bS(e,t)}var Cr={},Ka={},Ld={},Wa={},ow;function D7(){if(ow)return Wa;ow=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.default=void 0;function e(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var s=r[n];return n=n+1,{done:!1,value:s}}else return{done:!0}}};return o}var t=e;return Wa.default=t,Wa}var iw;function dc(){if(iw)return Ld;iw=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=n;var e=t(D7());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r(o)}function n(o,i){return typeof Symbol=="function"&&r(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:e.default.bind(i)}),o}return Ld}var aw;function M7(){if(aw)return Ka;aw=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;var e=t(dc());function t(h){return h&&h.__esModule?h:{default:h}}function r(h,b){return i(h)||o(h,b)||l(h,b)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
50
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},e6="DialogDescriptionWarning",t6=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JP(e6).contentName}}.`;return v.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},r6=KP,n6=UP,o6=zP,i6=GP,Va='[cmdk-group=""]',ch='[cmdk-group-items=""]',a6='[cmdk-group-heading=""]',eS='[cmdk-item=""]',L0=`${eS}:not([aria-disabled="true"])`,Wh="cmdk-item-select",Xi="data-value",s6=(e,t,r)=>sB(e,t,r),tS=v.createContext(void 0),lc=()=>v.useContext(tS),rS=v.createContext(void 0),lg=()=>v.useContext(rS),nS=v.createContext(void 0),oS=v.forwardRef((e,t)=>{let r=Zi(()=>{var Y,X;return{search:"",value:(X=(Y=e.value)!=null?Y:e.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Zi(()=>new Set),o=Zi(()=>new Map),i=Zi(()=>new Map),s=Zi(()=>new Set),l=iS(e),{label:c,children:d,value:f,onValueChange:p,filter:h,shouldFilter:b,loop:w,disablePointerSelection:y=!1,vimBindings:C=!0,...x}=e,P=_t(),S=_t(),D=_t(),_=v.useRef(null),T=b6();ui(()=>{if(f!==void 0){let Y=f.trim();r.current.value=Y,A.emit()}},[f]),ui(()=>{T(6,K)},[]);let A=v.useMemo(()=>({subscribe:Y=>(s.current.add(Y),()=>s.current.delete(Y)),snapshot:()=>r.current,setState:(Y,X,ce)=>{var ue,pe,te,ve;if(!Object.is(r.current[Y],X)){if(r.current[Y]=X,Y==="search")W(),J(),T(1,N);else if(Y==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let q=document.getElementById(D);q?q.focus():(ue=document.getElementById(P))==null||ue.focus()}if(T(7,()=>{var q;r.current.selectedItemId=(q=L())==null?void 0:q.id,A.emit()}),ce||T(5,K),((pe=l.current)==null?void 0:pe.value)!==void 0){let q=X??"";(ve=(te=l.current).onValueChange)==null||ve.call(te,q);return}}A.emit()}},emit:()=>{s.current.forEach(Y=>Y())}}),[]),M=v.useMemo(()=>({value:(Y,X,ce)=>{var ue;X!==((ue=i.current.get(Y))==null?void 0:ue.value)&&(i.current.set(Y,{value:X,keywords:ce}),r.current.filtered.items.set(Y,U(X,ce)),T(2,()=>{J(),A.emit()}))},item:(Y,X)=>(n.current.add(Y),X&&(o.current.has(X)?o.current.get(X).add(Y):o.current.set(X,new Set([Y]))),T(3,()=>{W(),J(),r.current.value||N(),A.emit()}),()=>{i.current.delete(Y),n.current.delete(Y),r.current.filtered.items.delete(Y);let ce=L();T(4,()=>{W(),ce?.getAttribute("id")===Y&&N(),A.emit()})}),group:Y=>(o.current.has(Y)||o.current.set(Y,new Set),()=>{i.current.delete(Y),o.current.delete(Y)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:P,inputId:D,labelId:S,listInnerRef:_}),[]);function U(Y,X){var ce,ue;let pe=(ue=(ce=l.current)==null?void 0:ce.filter)!=null?ue:s6;return Y?pe(Y,r.current.search,X):0}function J(){if(!r.current.search||l.current.shouldFilter===!1)return;let Y=r.current.filtered.items,X=[];r.current.filtered.groups.forEach(ue=>{let pe=o.current.get(ue),te=0;pe.forEach(ve=>{let q=Y.get(ve);te=Math.max(q,te)}),X.push([ue,te])});let ce=_.current;G().sort((ue,pe)=>{var te,ve;let q=ue.getAttribute("id"),ae=pe.getAttribute("id");return((te=Y.get(ae))!=null?te:0)-((ve=Y.get(q))!=null?ve:0)}).forEach(ue=>{let pe=ue.closest(ch);pe?pe.appendChild(ue.parentElement===pe?ue:ue.closest(`${ch} > *`)):ce.appendChild(ue.parentElement===ce?ue:ue.closest(`${ch} > *`))}),X.sort((ue,pe)=>pe[1]-ue[1]).forEach(ue=>{var pe;let te=(pe=_.current)==null?void 0:pe.querySelector(`${Va}[${Xi}="${encodeURIComponent(ue[0])}"]`);te?.parentElement.appendChild(te)})}function N(){let Y=G().find(ce=>ce.getAttribute("aria-disabled")!=="true"),X=Y?.getAttribute(Xi);A.setState("value",X||void 0)}function W(){var Y,X,ce,ue;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let pe=0;for(let te of n.current){let ve=(X=(Y=i.current.get(te))==null?void 0:Y.value)!=null?X:"",q=(ue=(ce=i.current.get(te))==null?void 0:ce.keywords)!=null?ue:[],ae=U(ve,q);r.current.filtered.items.set(te,ae),ae>0&&pe++}for(let[te,ve]of o.current)for(let q of ve)if(r.current.filtered.items.get(q)>0){r.current.filtered.groups.add(te);break}r.current.filtered.count=pe}function K(){var Y,X,ce;let ue=L();ue&&(((Y=ue.parentElement)==null?void 0:Y.firstChild)===ue&&((ce=(X=ue.closest(Va))==null?void 0:X.querySelector(a6))==null||ce.scrollIntoView({block:"nearest"})),ue.scrollIntoView({block:"nearest"}))}function L(){var Y;return(Y=_.current)==null?void 0:Y.querySelector(`${eS}[aria-selected="true"]`)}function G(){var Y;return Array.from(((Y=_.current)==null?void 0:Y.querySelectorAll(L0))||[])}function k(Y){let X=G()[Y];X&&A.setState("value",X.getAttribute(Xi))}function F(Y){var X;let ce=L(),ue=G(),pe=ue.findIndex(ve=>ve===ce),te=ue[pe+Y];(X=l.current)!=null&&X.loop&&(te=pe+Y<0?ue[ue.length-1]:pe+Y===ue.length?ue[0]:ue[pe+Y]),te&&A.setState("value",te.getAttribute(Xi))}function j(Y){let X=L(),ce=X?.closest(Va),ue;for(;ce&&!ue;)ce=Y>0?v6(ce,Va):g6(ce,Va),ue=ce?.querySelector(L0);ue?A.setState("value",ue.getAttribute(Xi)):F(Y)}let re=()=>k(G().length-1),V=Y=>{Y.preventDefault(),Y.metaKey?re():Y.altKey?j(1):F(1)},ie=Y=>{Y.preventDefault(),Y.metaKey?k(0):Y.altKey?j(-1):F(-1)};return v.createElement(Zt.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:Y=>{var X;(X=x.onKeyDown)==null||X.call(x,Y);let ce=Y.nativeEvent.isComposing||Y.keyCode===229;if(!(Y.defaultPrevented||ce))switch(Y.key){case"n":case"j":{C&&Y.ctrlKey&&V(Y);break}case"ArrowDown":{V(Y);break}case"p":case"k":{C&&Y.ctrlKey&&ie(Y);break}case"ArrowUp":{ie(Y);break}case"Home":{Y.preventDefault(),k(0);break}case"End":{Y.preventDefault(),re();break}case"Enter":{Y.preventDefault();let ue=L();if(ue){let pe=new Event(Wh);ue.dispatchEvent(pe)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:M.inputId,id:M.labelId,style:x6},c),Hf(e,Y=>v.createElement(rS.Provider,{value:A},v.createElement(tS.Provider,{value:M},Y))))}),l6=v.forwardRef((e,t)=>{var r,n;let o=_t(),i=v.useRef(null),s=v.useContext(nS),l=lc(),c=iS(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s?.forceMount;ui(()=>{if(!d)return l.item(o,s?.id)},[d]);let f=aS(o,i,[e.value,e.children,i],e.keywords),p=lg(),h=So(T=>T.value&&T.value===f.current),b=So(T=>d||l.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);v.useEffect(()=>{let T=i.current;if(!(!T||e.disabled))return T.addEventListener(Wh,w),()=>T.removeEventListener(Wh,w)},[b,e.onSelect,e.disabled]);function w(){var T,A;y(),(A=(T=c.current).onSelect)==null||A.call(T,f.current)}function y(){p.setState("value",f.current,!0)}if(!b)return null;let{disabled:C,value:x,onSelect:P,forceMount:S,keywords:D,..._}=e;return v.createElement(Zt.div,{ref:gt(i,t),..._,id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!h,"data-disabled":!!C,"data-selected":!!h,onPointerMove:C||l.getDisablePointerSelection()?void 0:y,onClick:C?void 0:w},e.children)}),u6=v.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=_t(),l=v.useRef(null),c=v.useRef(null),d=_t(),f=lc(),p=So(b=>o||f.filter()===!1?!0:b.search?b.filtered.groups.has(s):!0);ui(()=>f.group(s),[]),aS(s,l,[e.value,e.heading,c]);let h=v.useMemo(()=>({id:s,forceMount:o}),[o]);return v.createElement(Zt.div,{ref:gt(l,t),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&v.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),Hf(e,b=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},v.createElement(nS.Provider,{value:h},b))))}),c6=v.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=v.useRef(null),i=So(s=>!s.search);return!r&&!i?null:v.createElement(Zt.div,{ref:gt(o,t),...n,"cmdk-separator":"",role:"separator"})}),d6=v.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,i=lg(),s=So(d=>d.search),l=So(d=>d.selectedItemId),c=lc();return v.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),v.createElement(Zt.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||i.setState("search",d.target.value),r?.(d.target.value)}})}),f6=v.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=v.useRef(null),s=v.useRef(null),l=So(d=>d.selectedItemId),c=lc();return v.useEffect(()=>{if(s.current&&i.current){let d=s.current,f=i.current,p,h=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let b=d.offsetHeight;f.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return h.observe(d),()=>{cancelAnimationFrame(p),h.unobserve(d)}}},[]),v.createElement(Zt.div,{ref:gt(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},Hf(e,d=>v.createElement("div",{ref:gt(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),p6=v.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...l}=e;return v.createElement(r6,{open:r,onOpenChange:n},v.createElement(n6,{container:s},v.createElement(o6,{"cmdk-overlay":"",className:o}),v.createElement(i6,{"aria-label":e.label,"cmdk-dialog":"",className:i},v.createElement(oS,{ref:t,...l}))))}),m6=v.forwardRef((e,t)=>So(r=>r.filtered.count===0)?v.createElement(Zt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),h6=v.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return v.createElement(Zt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Hf(e,s=>v.createElement("div",{"aria-hidden":!0},s)))}),yi=Object.assign(oS,{List:f6,Item:l6,Input:d6,Group:u6,Separator:c6,Dialog:p6,Empty:m6,Loading:h6});function v6(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function g6(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function iS(e){let t=v.useRef(e);return ui(()=>{t.current=e}),t}var ui=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Zi(e){let t=v.useRef();return t.current===void 0&&(t.current=e()),t}function So(e){let t=lg(),r=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,r,r)}function aS(e,t,r,n=[]){let o=v.useRef(),i=lc();return ui(()=>{var s;let l=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());i.value(e,l,c),(s=t.current)==null||s.setAttribute(Xi,l),o.current=l}),o}var b6=()=>{let[e,t]=v.useState(),r=Zi(()=>new Map);return ui(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function y6(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Hf({asChild:e,children:t},r){return e&&v.isValidElement(t)?v.cloneElement(y6(t),{ref:t.ref},r(t.props.children)):r(t)}var x6={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const uc=({className:e,...t})=>g.jsx(yi,{"data-slot":"auto-complete",className:le("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}),w6=({children:e,...t})=>g.jsx(Bf,{...t,"data-slot":"auto-complete-dialog",children:g.jsx(Vf,{className:"p-0 overflow-hidden shadow-lg","data-slot":"auto-complete-dialog-content",children:g.jsx(uc,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Uf=({className:e,...t})=>g.jsxs("div",{className:"flex items-center px-3 border-b","data-slot":"auto-complete-input-container",children:[g.jsx(v5,{className:"w-4 h-4 mr-2 opacity-50 shrink-0","data-slot":"auto-complete-input-icon"}),g.jsx(yi.Input,{"data-slot":"auto-complete-input",className:le("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),zf=({className:e,...t})=>g.jsx(yi.List,{"data-slot":"auto-complete-list",className:le("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),Gf=e=>g.jsx(yi.Empty,{className:"py-6 text-sm text-center","data-slot":"auto-complete-empty",...e}),sS=({className:e,...t})=>g.jsx(yi.Group,{"data-slot":"auto-complete-group",className:le("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}),E6=({className:e,...t})=>g.jsx(yi.Separator,{"data-slot":"auto-complete-separator",className:le("-mx-1 h-px bg-input",e),...t}),Ku=({className:e,...t})=>g.jsx(yi.Item,{"data-slot":"auto-complete-item",className:le("aria-selected:bg-accent aria-selected:text-accent-foreground","aria-disabled:pointer-events-none aria-disabled:opacity-50","relative flex gap-2 cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",e),...t}),lS=({className:e,...t})=>g.jsx("span",{"data-slot":"auto-complete-shortcut",className:le("ml-auto text-xs tracking-widest text-muted-foreground",e),...t}),C6=({items:e,placeholder:t="Buscar...",emptyMessage:r="No se encontraron resultados",onSelect:n,containerClassName:o,containerProps:i,inputClassName:s,inputProps:l,listClassName:c,listProps:d,itemClassName:f,itemProps:p,emptyClassName:h,emptyProps:b})=>g.jsxs(uc,{className:o,...i,children:[g.jsx(Uf,{placeholder:t,className:s,...l}),g.jsx(zf,{className:c,...d,children:e.map(w=>g.jsxs(Ku,{className:f,onSelect:()=>n?.(w.value,w),...p,children:[w.label,w.shortcut&&g.jsx(lS,{children:w.shortcut})]},w.value))}),g.jsx(Gf,{className:h,...b,children:r})]}),uS=e=>e.split(" ").map(t=>t.charAt(0)).join("");function R6(e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}const P6=({children:e,as:t="div",props:r})=>{let n;return typeof e=="string"?n=g.jsx(t,{children:e}):R.isValidElement(e)?n=e:typeof e=="function"?n=e(r):n=g.jsx(t,{children:e}),R.isValidElement(n)?n:g.jsx(t,{children:n})},cc=()=>{const e=R.createContext(null);return[()=>{const r=R.useContext(e);if(r===null)throw new Error("Context value is null");return r},e.Provider]},S6=e=>{e.preventDefault();const t=e.currentTarget.elements,r={};return Array.from(t).forEach(n=>{const o=n;o.name&&(r[o.name]=o.value)}),r};var fn={},Xd={exports:{}};Xd.exports;var F0;function cS(){return F0||(F0=1,(function(e){const r=(i=0)=>s=>`\x1B[${38+i};5;${s}m`,n=(i=0)=>(s,l,c)=>`\x1B[${38+i};2;${s};${l};${c}m`;function o(){const i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[l,c]of Object.entries(s)){for(const[d,f]of Object.entries(c))s[d]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},c[d]=s[d],i.set(f[0],f[1]);Object.defineProperty(s,l,{value:c,enumerable:!1})}return Object.defineProperty(s,"codes",{value:i,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=r(),s.color.ansi16m=n(),s.bgColor.ansi256=r(10),s.bgColor.ansi16m=n(10),Object.defineProperties(s,{rgbToAnsi256:{value:(l,c,d)=>l===c&&c===d?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(d/255*5),enumerable:!1},hexToRgb:{value:l=>{const c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(l.toString(16));if(!c)return[0,0,0];let{colorString:d}=c.groups;d.length===3&&(d=d.split("").map(p=>p+p).join(""));const f=Number.parseInt(d,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:l=>s.rgbToAnsi256(...s.hexToRgb(l)),enumerable:!1}}),s}Object.defineProperty(e,"exports",{enumerable:!0,get:o})})(Xd)),Xd.exports}var Yo={},q0;function Yf(){if(q0)return Yo;q0=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.printIteratorEntries=t,Yo.printIteratorValues=r,Yo.printListItems=n,Yo.printObjectProperties=o;const e=(i,s)=>{const l=Object.keys(i).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(c=>{Object.getOwnPropertyDescriptor(i,c).enumerable&&l.push(c)}),l};function t(i,s,l,c,d,f,p=": "){let h="",b=i.next();if(!b.done){h+=s.spacingOuter;const w=l+s.indent;for(;!b.done;){const y=f(b.value[0],s,w,c,d),C=f(b.value[1],s,w,c,d);h+=w+y+p+C,b=i.next(),b.done?s.min||(h+=","):h+=","+s.spacingInner}h+=s.spacingOuter+l}return h}function r(i,s,l,c,d,f){let p="",h=i.next();if(!h.done){p+=s.spacingOuter;const b=l+s.indent;for(;!h.done;)p+=b+f(h.value,s,b,c,d),h=i.next(),h.done?s.min||(p+=","):p+=","+s.spacingInner;p+=s.spacingOuter+l}return p}function n(i,s,l,c,d,f){let p="";if(i.length){p+=s.spacingOuter;const h=l+s.indent;for(let b=0;b<i.length;b++)p+=h,b in i&&(p+=f(i[b],s,h,c,d)),b<i.length-1?p+=","+s.spacingInner:s.min||(p+=",");p+=s.spacingOuter+l}return p}function o(i,s,l,c,d,f){let p="";const h=e(i,s.compareKeys);if(h.length){p+=s.spacingOuter;const b=l+s.indent;for(let w=0;w<h.length;w++){const y=h[w],C=f(y,s,b,c,d),x=f(i[y],s,b,c,d);p+=b+C+": "+x,w<h.length-1?p+=","+s.spacingInner:s.min||(p+=",")}p+=s.spacingOuter+l}return p}return Yo}var kn={},j0;function _6(){if(j0)return kn;j0=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.test=kn.serialize=kn.default=void 0;var e=Yf(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("jest.asymmetricMatcher"):1267621,o=" ",i=(d,f,p,h,b,w)=>{const y=d.toString();return y==="ArrayContaining"||y==="ArrayNotContaining"?++h>f.maxDepth?"["+y+"]":y+o+"["+(0,e.printListItems)(d.sample,f,p,h,b,w)+"]":y==="ObjectContaining"||y==="ObjectNotContaining"?++h>f.maxDepth?"["+y+"]":y+o+"{"+(0,e.printObjectProperties)(d.sample,f,p,h,b,w)+"}":y==="StringMatching"||y==="StringNotMatching"||y==="StringContaining"||y==="StringNotContaining"?y+o+w(d.sample,f,p,h,b):d.toAsymmetricMatcher()};kn.serialize=i;const s=d=>d&&d.$$typeof===n;kn.test=s;var c={serialize:i,test:s};return kn.default=c,kn}var Ln={},dh,B0;function T6(){return B0||(B0=1,dh=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}),dh}var V0;function $6(){if(V0)return Ln;V0=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.test=Ln.serialize=Ln.default=void 0;var e=r(T6()),t=r(cS());function r(c){return c&&c.__esModule?c:{default:c}}const n=c=>c.replace((0,e.default)(),d=>{switch(d){case t.default.red.close:case t.default.green.close:case t.default.cyan.close:case t.default.gray.close:case t.default.white.close:case t.default.yellow.close:case t.default.bgRed.close:case t.default.bgGreen.close:case t.default.bgYellow.close:case t.default.inverse.close:case t.default.dim.close:case t.default.bold.close:case t.default.reset.open:case t.default.reset.close:return"</>";case t.default.red.open:return"<red>";case t.default.green.open:return"<green>";case t.default.cyan.open:return"<cyan>";case t.default.gray.open:return"<gray>";case t.default.white.open:return"<white>";case t.default.yellow.open:return"<yellow>";case t.default.bgRed.open:return"<bgRed>";case t.default.bgGreen.open:return"<bgGreen>";case t.default.bgYellow.open:return"<bgYellow>";case t.default.inverse.open:return"<inverse>";case t.default.dim.open:return"<dim>";case t.default.bold.open:return"<bold>";default:return""}}),o=c=>typeof c=="string"&&!!c.match((0,e.default)());Ln.test=o;const i=(c,d,f,p,h,b)=>b(n(c),d,f,p,h);Ln.serialize=i;var l={serialize:i,test:o};return Ln.default=l,Ln}var Fn={},K0;function A6(){if(K0)return Fn;K0=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.test=Fn.serialize=Fn.default=void 0;var e=Yf();const t=" ",r=["DOMStringMap","NamedNodeMap"],n=/^(HTML\w*Collection|NodeList)$/,o=f=>r.indexOf(f)!==-1||n.test(f),i=f=>f&&f.constructor&&!!f.constructor.name&&o(f.constructor.name);Fn.test=i;const s=f=>f.constructor.name==="NamedNodeMap",l=(f,p,h,b,w,y)=>{const C=f.constructor.name;return++b>p.maxDepth?"["+C+"]":(p.min?"":C+t)+(r.indexOf(C)!==-1?"{"+(0,e.printObjectProperties)(s(f)?Array.from(f).reduce((x,P)=>(x[P.name]=P.value,x),{}):{...f},p,h,b,w,y)+"}":"["+(0,e.printListItems)(Array.from(f),p,h,b,w,y)+"]")};Fn.serialize=l;var d={serialize:l,test:i};return Fn.default=d,Fn}var qn={},sr={},Id={},W0;function D6(){if(W0)return Id;W0=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.default=e;function e(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}return Id}var H0;function ug(){if(H0)return sr;H0=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.printText=sr.printProps=sr.printElementAsLeaf=sr.printElement=sr.printComment=sr.printChildren=void 0;var e=t(D6());function t(c){return c&&c.__esModule?c:{default:c}}const r=(c,d,f,p,h,b,w)=>{const y=p+f.indent,C=f.colors;return c.map(x=>{const P=d[x];let S=w(P,f,y,h,b);return typeof P!="string"&&(S.indexOf(`
51
+ `)!==-1&&(S=f.spacingOuter+y+S+f.spacingOuter+p),S="{"+S+"}"),f.spacingInner+p+C.prop.open+x+C.prop.close+"="+C.value.open+S+C.value.close}).join("")};sr.printProps=r;const n=(c,d,f,p,h,b)=>c.map(w=>d.spacingOuter+f+(typeof w=="string"?o(w,d):b(w,d,f,p,h))).join("");sr.printChildren=n;const o=(c,d)=>{const f=d.colors.content;return f.open+(0,e.default)(c)+f.close};sr.printText=o;const i=(c,d)=>{const f=d.colors.comment;return f.open+"<!--"+(0,e.default)(c)+"-->"+f.close};sr.printComment=i;const s=(c,d,f,p,h)=>{const b=p.colors.tag;return b.open+"<"+c+(d&&b.close+d+p.spacingOuter+h+b.open)+(f?">"+b.close+f+p.spacingOuter+h+b.open+"</"+c:(d&&!p.min?"":" ")+"/")+">"+b.close};sr.printElement=s;const l=(c,d)=>{const f=d.colors.tag;return f.open+"<"+c+f.close+" …"+f.open+" />"+f.close};return sr.printElementAsLeaf=l,sr}var U0;function M6(){if(U0)return qn;U0=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.test=qn.serialize=qn.default=void 0;var e=ug();const t=1,r=3,n=8,o=11,i=/^((HTML|SVG)\w*)?Element$/,s=y=>{try{return typeof y.hasAttribute=="function"&&y.hasAttribute("is")}catch{return!1}},l=y=>{const C=y.constructor.name,{nodeType:x,tagName:P}=y,S=typeof P=="string"&&P.includes("-")||s(y);return x===t&&(i.test(C)||S)||x===r&&C==="Text"||x===n&&C==="Comment"||x===o&&C==="DocumentFragment"},c=y=>{var C;return(y==null||(C=y.constructor)===null||C===void 0?void 0:C.name)&&l(y)};qn.test=c;function d(y){return y.nodeType===r}function f(y){return y.nodeType===n}function p(y){return y.nodeType===o}const h=(y,C,x,P,S,D)=>{if(d(y))return(0,e.printText)(y.data,C);if(f(y))return(0,e.printComment)(y.data,C);const _=p(y)?"DocumentFragment":y.tagName.toLowerCase();return++P>C.maxDepth?(0,e.printElementAsLeaf)(_,C):(0,e.printElement)(_,(0,e.printProps)(p(y)?[]:Array.from(y.attributes).map(T=>T.name).sort(),p(y)?{}:Array.from(y.attributes).reduce((T,A)=>(T[A.name]=A.value,T),{}),C,x+C.indent,P,S,D),(0,e.printChildren)(Array.prototype.slice.call(y.childNodes||y.children),C,x+C.indent,P,S,D),C,x)};qn.serialize=h;var w={serialize:h,test:c};return qn.default=w,qn}var jn={},z0;function O6(){if(z0)return jn;z0=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.test=jn.serialize=jn.default=void 0;var e=Yf();const t="@@__IMMUTABLE_ITERABLE__@@",r="@@__IMMUTABLE_LIST__@@",n="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",f=A=>"Immutable."+A,p=A=>"["+A+"]",h=" ",b="…",w=(A,M,U,J,N,W,K)=>++J>M.maxDepth?p(f(K)):f(K)+h+"{"+(0,e.printIteratorEntries)(A.entries(),M,U,J,N,W)+"}";function y(A){let M=0;return{next(){if(M<A._keys.length){const U=A._keys[M++];return{done:!1,value:[U,A.get(U)]}}return{done:!0,value:void 0}}}}const C=(A,M,U,J,N,W)=>{const K=f(A._name||"Record");return++J>M.maxDepth?p(K):K+h+"{"+(0,e.printIteratorEntries)(y(A),M,U,J,N,W)+"}"},x=(A,M,U,J,N,W)=>{const K=f("Seq");return++J>M.maxDepth?p(K):A[n]?K+h+"{"+(A._iter||A._object?(0,e.printIteratorEntries)(A.entries(),M,U,J,N,W):b)+"}":K+h+"["+(A._iter||A._array||A._collection||A._iterable?(0,e.printIteratorValues)(A.values(),M,U,J,N,W):b)+"]"},P=(A,M,U,J,N,W,K)=>++J>M.maxDepth?p(f(K)):f(K)+h+"["+(0,e.printIteratorValues)(A.values(),M,U,J,N,W)+"]",S=(A,M,U,J,N,W)=>A[o]?w(A,M,U,J,N,W,A[i]?"OrderedMap":"Map"):A[r]?P(A,M,U,J,N,W,"List"):A[c]?P(A,M,U,J,N,W,A[i]?"OrderedSet":"Set"):A[d]?P(A,M,U,J,N,W,"Stack"):A[l]?x(A,M,U,J,N,W):C(A,M,U,J,N,W);jn.serialize=S;const D=A=>A&&(A[t]===!0||A[s]===!0);jn.test=D;var T={serialize:S,test:D};return jn.default=T,jn}var Bn={},kd={exports:{}},at={};var G0;function N6(){if(G0)return at;G0=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,s=60110,l=60112,c=60113,d=60120,f=60115,p=60116,h=60121,b=60122,w=60117,y=60129,C=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;e=x("react.element"),t=x("react.portal"),r=x("react.fragment"),n=x("react.strict_mode"),o=x("react.profiler"),i=x("react.provider"),s=x("react.context"),l=x("react.forward_ref"),c=x("react.suspense"),d=x("react.suspense_list"),f=x("react.memo"),p=x("react.lazy"),h=x("react.block"),b=x("react.server.block"),w=x("react.fundamental"),y=x("react.debug_trace_mode"),C=x("react.legacy_hidden")}function P(K){if(typeof K=="object"&&K!==null){var L=K.$$typeof;switch(L){case e:switch(K=K.type,K){case r:case o:case n:case c:case d:return K;default:switch(K=K&&K.$$typeof,K){case s:case l:case p:case f:case i:return K;default:return L}}case t:return L}}}var S=i,D=e,_=l,T=r,A=p,M=f,U=t,J=o,N=n,W=c;return at.ContextConsumer=s,at.ContextProvider=S,at.Element=D,at.ForwardRef=_,at.Fragment=T,at.Lazy=A,at.Memo=M,at.Portal=U,at.Profiler=J,at.StrictMode=N,at.Suspense=W,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(K){return P(K)===s},at.isContextProvider=function(K){return P(K)===i},at.isElement=function(K){return typeof K=="object"&&K!==null&&K.$$typeof===e},at.isForwardRef=function(K){return P(K)===l},at.isFragment=function(K){return P(K)===r},at.isLazy=function(K){return P(K)===p},at.isMemo=function(K){return P(K)===f},at.isPortal=function(K){return P(K)===t},at.isProfiler=function(K){return P(K)===o},at.isStrictMode=function(K){return P(K)===n},at.isSuspense=function(K){return P(K)===c},at.isValidElementType=function(K){return typeof K=="string"||typeof K=="function"||K===r||K===o||K===y||K===n||K===c||K===d||K===C||typeof K=="object"&&K!==null&&(K.$$typeof===p||K.$$typeof===f||K.$$typeof===i||K.$$typeof===s||K.$$typeof===l||K.$$typeof===w||K.$$typeof===h||K[0]===b)},at.typeOf=P,at}var st={};var Y0;function I6(){return Y0||(Y0=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,s=60110,l=60112,c=60113,d=60120,f=60115,p=60116,h=60121,b=60122,w=60117,y=60129,C=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;e=x("react.element"),t=x("react.portal"),r=x("react.fragment"),n=x("react.strict_mode"),o=x("react.profiler"),i=x("react.provider"),s=x("react.context"),l=x("react.forward_ref"),c=x("react.suspense"),d=x("react.suspense_list"),f=x("react.memo"),p=x("react.lazy"),h=x("react.block"),b=x("react.server.block"),w=x("react.fundamental"),x("react.scope"),x("react.opaque.id"),y=x("react.debug_trace_mode"),x("react.offscreen"),C=x("react.legacy_hidden")}var P=!1;function S(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===o||oe===y||oe===n||oe===c||oe===d||oe===C||P||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===f||oe.$$typeof===i||oe.$$typeof===s||oe.$$typeof===l||oe.$$typeof===w||oe.$$typeof===h||oe[0]===b))}function D(oe){if(typeof oe=="object"&&oe!==null){var Z=oe.$$typeof;switch(Z){case e:var we=oe.type;switch(we){case r:case o:case n:case c:case d:return we;default:var De=we&&we.$$typeof;switch(De){case s:case l:case p:case f:case i:return De;default:return Z}}case t:return Z}}}var _=s,T=i,A=e,M=l,U=r,J=p,N=f,W=t,K=o,L=n,G=c,k=!1,F=!1;function j(oe){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function re(oe){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(oe){return D(oe)===s}function ie(oe){return D(oe)===i}function Y(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function X(oe){return D(oe)===l}function ce(oe){return D(oe)===r}function ue(oe){return D(oe)===p}function pe(oe){return D(oe)===f}function te(oe){return D(oe)===t}function ve(oe){return D(oe)===o}function q(oe){return D(oe)===n}function ae(oe){return D(oe)===c}st.ContextConsumer=_,st.ContextProvider=T,st.Element=A,st.ForwardRef=M,st.Fragment=U,st.Lazy=J,st.Memo=N,st.Portal=W,st.Profiler=K,st.StrictMode=L,st.Suspense=G,st.isAsyncMode=j,st.isConcurrentMode=re,st.isContextConsumer=V,st.isContextProvider=ie,st.isElement=Y,st.isForwardRef=X,st.isFragment=ce,st.isLazy=ue,st.isMemo=pe,st.isPortal=te,st.isProfiler=ve,st.isStrictMode=q,st.isSuspense=ae,st.isValidElementType=S,st.typeOf=D})()),st}var X0;function k6(){return X0||(X0=1,process.env.NODE_ENV==="production"?kd.exports=N6():kd.exports=I6()),kd.exports}var Z0;function L6(){if(Z0)return Bn;Z0=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.test=Bn.serialize=Bn.default=void 0;var e=n(k6()),t=ug();function r(p){if(typeof WeakMap!="function")return null;var h=new WeakMap,b=new WeakMap;return(r=function(w){return w?b:h})(p)}function n(p,h){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=r(h);if(b&&b.has(p))return b.get(p);var w={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in p)if(C!=="default"&&Object.prototype.hasOwnProperty.call(p,C)){var x=y?Object.getOwnPropertyDescriptor(p,C):null;x&&(x.get||x.set)?Object.defineProperty(w,C,x):w[C]=p[C]}return w.default=p,b&&b.set(p,w),w}const o=(p,h=[])=>(Array.isArray(p)?p.forEach(b=>{o(b,h)}):p!=null&&p!==!1&&h.push(p),h),i=p=>{const h=p.type;if(typeof h=="string")return h;if(typeof h=="function")return h.displayName||h.name||"Unknown";if(e.isFragment(p))return"React.Fragment";if(e.isSuspense(p))return"React.Suspense";if(typeof h=="object"&&h!==null){if(e.isContextProvider(p))return"Context.Provider";if(e.isContextConsumer(p))return"Context.Consumer";if(e.isForwardRef(p)){if(h.displayName)return h.displayName;const b=h.render.displayName||h.render.name||"";return b!==""?"ForwardRef("+b+")":"ForwardRef"}if(e.isMemo(p)){const b=h.displayName||h.type.displayName||h.type.name||"";return b!==""?"Memo("+b+")":"Memo"}}return"UNDEFINED"},s=p=>{const{props:h}=p;return Object.keys(h).filter(b=>b!=="children"&&h[b]!==void 0).sort()},l=(p,h,b,w,y,C)=>++w>h.maxDepth?(0,t.printElementAsLeaf)(i(p),h):(0,t.printElement)(i(p),(0,t.printProps)(s(p),p.props,h,b+h.indent,w,y,C),(0,t.printChildren)(o(p.props.children),h,b+h.indent,w,y,C),h,b);Bn.serialize=l;const c=p=>p!=null&&e.isElement(p);Bn.test=c;var f={serialize:l,test:c};return Bn.default=f,Bn}var Vn={},Q0;function F6(){if(Q0)return Vn;Q0=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.test=Vn.serialize=Vn.default=void 0;var e=ug(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=d=>{const{props:f}=d;return f?Object.keys(f).filter(p=>f[p]!==void 0).sort():[]},i=(d,f,p,h,b,w)=>++h>f.maxDepth?(0,e.printElementAsLeaf)(d.type,f):(0,e.printElement)(d.type,d.props?(0,e.printProps)(o(d),d.props,f,p+f.indent,h,b,w):"",d.children?(0,e.printChildren)(d.children,f,p+f.indent,h,b,w):"",f,p);Vn.serialize=i;const s=d=>d&&d.$$typeof===n;Vn.test=s;var c={serialize:i,test:s};return Vn.default=c,Vn}var J0;function q6(){if(J0)return fn;J0=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=fn.DEFAULT_OPTIONS=void 0,fn.format=pe,fn.plugins=void 0;var e=d(cS()),t=Yf(),r=d(_6()),n=d($6()),o=d(A6()),i=d(M6()),s=d(O6()),l=d(L6()),c=d(F6());function d(q){return q&&q.__esModule?q:{default:q}}const f=Object.prototype.toString,p=Date.prototype.toISOString,h=Error.prototype.toString,b=RegExp.prototype.toString,w=q=>typeof q.constructor=="function"&&q.constructor.name||"Object",y=q=>typeof window<"u"&&q===window,C=/^Symbol\((.*)\)(.*)$/,x=/\n/gi;class P extends Error{constructor(ae,oe){super(ae),this.stack=oe,this.name=this.constructor.name}}function S(q){return q==="[object Array]"||q==="[object ArrayBuffer]"||q==="[object DataView]"||q==="[object Float32Array]"||q==="[object Float64Array]"||q==="[object Int8Array]"||q==="[object Int16Array]"||q==="[object Int32Array]"||q==="[object Uint8Array]"||q==="[object Uint8ClampedArray]"||q==="[object Uint16Array]"||q==="[object Uint32Array]"}function D(q){return Object.is(q,-0)?"-0":String(q)}function _(q){return`${q}n`}function T(q,ae){return ae?"[Function "+(q.name||"anonymous")+"]":"[Function]"}function A(q){return String(q).replace(C,"Symbol($1)")}function M(q){return"["+h.call(q)+"]"}function U(q,ae,oe,Z){if(q===!0||q===!1)return""+q;if(q===void 0)return"undefined";if(q===null)return"null";const we=typeof q;if(we==="number")return D(q);if(we==="bigint")return _(q);if(we==="string")return Z?'"'+q.replace(/"|\\/g,"\\$&")+'"':'"'+q+'"';if(we==="function")return T(q,ae);if(we==="symbol")return A(q);const De=f.call(q);return De==="[object WeakMap]"?"WeakMap {}":De==="[object WeakSet]"?"WeakSet {}":De==="[object Function]"||De==="[object GeneratorFunction]"?T(q,ae):De==="[object Symbol]"?A(q):De==="[object Date]"?isNaN(+q)?"Date { NaN }":p.call(q):De==="[object Error]"?M(q):De==="[object RegExp]"?oe?b.call(q).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(q):q instanceof Error?M(q):null}function J(q,ae,oe,Z,we,De){if(we.indexOf(q)!==-1)return"[Circular]";we=we.slice(),we.push(q);const Ue=++Z>ae.maxDepth,wt=ae.min;if(ae.callToJSON&&!Ue&&q.toJSON&&typeof q.toJSON=="function"&&!De)return L(q.toJSON(),ae,oe,Z,we,!0);const mt=f.call(q);return mt==="[object Arguments]"?Ue?"[Arguments]":(wt?"":"Arguments ")+"["+(0,t.printListItems)(q,ae,oe,Z,we,L)+"]":S(mt)?Ue?"["+q.constructor.name+"]":(wt||!ae.printBasicPrototype&&q.constructor.name==="Array"?"":q.constructor.name+" ")+"["+(0,t.printListItems)(q,ae,oe,Z,we,L)+"]":mt==="[object Map]"?Ue?"[Map]":"Map {"+(0,t.printIteratorEntries)(q.entries(),ae,oe,Z,we,L," => ")+"}":mt==="[object Set]"?Ue?"[Set]":"Set {"+(0,t.printIteratorValues)(q.values(),ae,oe,Z,we,L)+"}":Ue||y(q)?"["+w(q)+"]":(wt||!ae.printBasicPrototype&&w(q)==="Object"?"":w(q)+" ")+"{"+(0,t.printObjectProperties)(q,ae,oe,Z,we,L)+"}"}function N(q){return q.serialize!=null}function W(q,ae,oe,Z,we,De){let Ue;try{Ue=N(q)?q.serialize(ae,oe,Z,we,De,L):q.print(ae,wt=>L(wt,oe,Z,we,De),wt=>{const mt=Z+oe.indent;return mt+wt.replace(x,`
52
+ `+mt)},{edgeSpacing:oe.spacingOuter,min:oe.min,spacing:oe.spacingInner},oe.colors)}catch(wt){throw new P(wt.message,wt.stack)}if(typeof Ue!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Ue}".`);return Ue}function K(q,ae){for(let oe=0;oe<q.length;oe++)try{if(q[oe].test(ae))return q[oe]}catch(Z){throw new P(Z.message,Z.stack)}return null}function L(q,ae,oe,Z,we,De){const Ue=K(ae.plugins,q);if(Ue!==null)return W(Ue,q,ae,oe,Z,we);const wt=U(q,ae.printFunctionName,ae.escapeRegex,ae.escapeString);return wt!==null?wt:J(q,ae,oe,Z,we,De)}const G={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},k=Object.keys(G),F={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:G};fn.DEFAULT_OPTIONS=F;function j(q){if(Object.keys(q).forEach(ae=>{if(!F.hasOwnProperty(ae))throw new Error(`pretty-format: Unknown option "${ae}".`)}),q.min&&q.indent!==void 0&&q.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(q.theme!==void 0){if(q.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof q.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof q.theme}".`)}}const re=q=>k.reduce((ae,oe)=>{const Z=q.theme&&q.theme[oe]!==void 0?q.theme[oe]:G[oe],we=Z&&e.default[Z];if(we&&typeof we.close=="string"&&typeof we.open=="string")ae[oe]=we;else throw new Error(`pretty-format: Option "theme" has a key "${oe}" whose value "${Z}" is undefined in ansi-styles.`);return ae},Object.create(null)),V=()=>k.reduce((q,ae)=>(q[ae]={close:"",open:""},q),Object.create(null)),ie=q=>q&&q.printFunctionName!==void 0?q.printFunctionName:F.printFunctionName,Y=q=>q&&q.escapeRegex!==void 0?q.escapeRegex:F.escapeRegex,X=q=>q&&q.escapeString!==void 0?q.escapeString:F.escapeString,ce=q=>{var ae;return{callToJSON:q&&q.callToJSON!==void 0?q.callToJSON:F.callToJSON,colors:q&&q.highlight?re(q):V(),compareKeys:q&&typeof q.compareKeys=="function"?q.compareKeys:F.compareKeys,escapeRegex:Y(q),escapeString:X(q),indent:q&&q.min?"":ue(q&&q.indent!==void 0?q.indent:F.indent),maxDepth:q&&q.maxDepth!==void 0?q.maxDepth:F.maxDepth,min:q&&q.min!==void 0?q.min:F.min,plugins:q&&q.plugins!==void 0?q.plugins:F.plugins,printBasicPrototype:(ae=q?.printBasicPrototype)!==null&&ae!==void 0?ae:!0,printFunctionName:ie(q),spacingInner:q&&q.min?" ":`
53
+ `,spacingOuter:q&&q.min?"":`
54
+ `}};function ue(q){return new Array(q+1).join(" ")}function pe(q,ae){if(ae&&(j(ae),ae.plugins)){const Z=K(ae.plugins,q);if(Z!==null)return W(Z,q,ce(ae),"",0,[])}const oe=U(q,ie(ae),Y(ae),X(ae));return oe!==null?oe:J(q,ce(ae),"",0,[])}const te={AsymmetricMatcher:r.default,ConvertAnsi:n.default,DOMCollection:o.default,DOMElement:i.default,Immutable:s.default,ReactElement:l.default,ReactTestComponent:c.default};fn.plugins=te;var ve=pe;return fn.default=ve,fn}var dS=q6(),j6=Object.prototype.toString;function B6(e){return typeof e=="function"||j6.call(e)==="[object Function]"}function V6(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var K6=Math.pow(2,53)-1;function W6(e){var t=V6(e);return Math.min(Math.max(t,0),K6)}function Qr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=W6(n.length),i=B6(r)?Object(new r(o)):new Array(o),s=0,l;s<o;)l=n[s],i[s]=l,s+=1;return i.length=o,i}function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function H6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fS(n.key),n)}}function z6(e,t,r){return t&&U6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G6(e,t,r){return t=fS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(e){var t=Y6(e,"string");return Wu(t)==="symbol"?t:String(t)}function Y6(e,t){if(Wu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X6=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];H6(this,e),G6(this,"items",void 0),this.items=t}return z6(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})();const Z6=typeof Set>"u"?Set:X6;function rr(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Q6={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},J6={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function e7(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=J6[t])!==null&&n!==void 0&&n.has(r))})}function pS(e,t){return e7(e,t)}function t7(e){var t=n7(e);if(t===null||t==="presentation"){var r=r7(e);if(t!=="presentation"||pS(e,r||""))return r}return t}function r7(e){var t=Q6[rr(e)];if(t!==void 0)return t;switch(rr(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!pS(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function n7(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function xt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function mS(e){return xt(e)&&rr(e)==="caption"}function Zd(e){return xt(e)&&rr(e)==="input"}function o7(e){return xt(e)&&rr(e)==="optgroup"}function i7(e){return xt(e)&&rr(e)==="select"}function a7(e){return xt(e)&&rr(e)==="table"}function s7(e){return xt(e)&&rr(e)==="textarea"}function l7(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function u7(e){return xt(e)&&rr(e)==="fieldset"}function c7(e){return xt(e)&&rr(e)==="legend"}function d7(e){return xt(e)&&rr(e)==="slot"}function f7(e){return xt(e)&&e.ownerSVGElement!==void 0}function p7(e){return xt(e)&&rr(e)==="svg"}function m7(e){return f7(e)&&rr(e)==="title"}function df(e,t){if(xt(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Un(e,t){return xt(e)?t.indexOf(t7(e))!==-1:!1}function h7(e){return e.trim().replace(/\s\s+/g," ")}function v7(e,t){if(!xt(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function g7(e){return Un(e,["button","combobox","listbox","textbox"])||hS(e,"range")}function hS(e,t){if(!xt(e))return!1;switch(t){case"range":return Un(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function ew(e,t){var r=Qr(e.querySelectorAll(t));return df(e,"aria-owns").forEach(function(n){r.push.apply(r,Qr(n.querySelectorAll(t)))}),r}function b7(e){return i7(e)?e.selectedOptions||ew(e,"[selected]"):ew(e,'[aria-selected="true"]')}function y7(e){return Un(e,["none","presentation"])}function x7(e){return mS(e)}function w7(e){return Un(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function E7(e){return!1}function C7(e){return Zd(e)||s7(e)?e.value:e.textContent||""}function tw(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function vS(e){var t=rr(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function gS(e){if(vS(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&xt(r)){var n=gS(r);n!==null&&(t=n)}}),t}function R7(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):gS(e)}function P7(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Qr(t);if(!vS(e))return null;var r=e.ownerDocument;return Qr(r.querySelectorAll("label")).filter(function(n){return R7(n)===e})}function S7(e){var t=e.assignedNodes();return t.length===0?Qr(e.childNodes):t}function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Z6,n=l7(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,l=s===void 0?t.getComputedStyle!==void 0:s,c=t.getComputedStyle,d=c===void 0?n.getComputedStyle.bind(n):c,f=t.hidden,p=f===void 0?!1:f;function h(x,P){var S="";if(xt(x)&&l){var D=d(x,"::before"),_=tw(D);S="".concat(_," ").concat(S)}var T=d7(x)?S7(x):Qr(x.childNodes).concat(df(x,"aria-owns"));if(T.forEach(function(U){var J=C(U,{isEmbeddedInLabel:P.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),N=xt(U)?d(U).getPropertyValue("display"):"inline",W=N!=="inline"?" ":"";S+="".concat(W).concat(J).concat(W)}),xt(x)&&l){var A=d(x,"::after"),M=tw(A);S="".concat(S," ").concat(M)}return S.trim()}function b(x,P){var S=x.getAttributeNode(P);return S!==null&&!r.has(S)&&S.value.trim()!==""?(r.add(S),S.value):null}function w(x){return xt(x)?b(x,"title"):null}function y(x){if(!xt(x))return null;if(u7(x)){r.add(x);for(var P=Qr(x.childNodes),S=0;S<P.length;S+=1){var D=P[S];if(c7(D))return C(D,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(a7(x)){r.add(x);for(var _=Qr(x.childNodes),T=0;T<_.length;T+=1){var A=_[T];if(mS(A))return C(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(p7(x)){r.add(x);for(var M=Qr(x.childNodes),U=0;U<M.length;U+=1){var J=M[U];if(m7(J))return J.textContent}return null}else if(rr(x)==="img"||rr(x)==="area"){var N=b(x,"alt");if(N!==null)return N}else if(o7(x)){var W=b(x,"label");if(W!==null)return W}if(Zd(x)&&(x.type==="button"||x.type==="submit"||x.type==="reset")){var K=b(x,"value");if(K!==null)return K;if(x.type==="submit")return"Submit";if(x.type==="reset")return"Reset"}var L=P7(x);if(L!==null&&L.length!==0)return r.add(x),Qr(L).map(function(j){return C(j,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(j){return j.length>0}).join(" ");if(Zd(x)&&x.type==="image"){var G=b(x,"alt");if(G!==null)return G;var k=b(x,"title");return k!==null?k:"Submit Query"}if(Un(x,["button"])){var F=h(x,{isEmbeddedInLabel:!1});if(F!=="")return F}return null}function C(x,P){if(r.has(x))return"";if(!p&&v7(x,d)&&!P.isReferenced)return r.add(x),"";var S=xt(x)?x.getAttributeNode("aria-labelledby"):null,D=S!==null&&!r.has(S)?df(x,"aria-labelledby"):[];if(i==="name"&&!P.isReferenced&&D.length>0)return r.add(S),D.map(function(N){return C(N,{isEmbeddedInLabel:P.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var _=P.recursion&&g7(x)&&i==="name";if(!_){var T=(xt(x)&&x.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return r.add(x),T;if(!y7(x)){var A=y(x);if(A!==null)return r.add(x),A}}if(Un(x,["menu"]))return r.add(x),"";if(_||P.isEmbeddedInLabel||P.isReferenced){if(Un(x,["combobox","listbox"])){r.add(x);var M=b7(x);return M.length===0?Zd(x)?x.value:"":Qr(M).map(function(N){return C(N,{isEmbeddedInLabel:P.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(hS(x,"range"))return r.add(x),x.hasAttribute("aria-valuetext")?x.getAttribute("aria-valuetext"):x.hasAttribute("aria-valuenow")?x.getAttribute("aria-valuenow"):x.getAttribute("value")||"";if(Un(x,["textbox"]))return r.add(x),C7(x)}if(w7(x)||xt(x)&&P.isReferenced||x7(x)||E7()){var U=h(x,{isEmbeddedInLabel:P.isEmbeddedInLabel});if(U!=="")return r.add(x),U}if(x.nodeType===x.TEXT_NODE)return r.add(x),x.textContent||"";if(P.recursion)return r.add(x),h(x,{isEmbeddedInLabel:P.isEmbeddedInLabel});var J=w(x);return J!==null?(r.add(x),J):(r.add(x),"")}return h7(C(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){_7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _7(e,t,r){return t=T7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T7(e){var t=$7(e,"string");return Hu(t)==="symbol"?t:String(t)}function $7(e,t){if(Hu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=df(e,"aria-describedby").map(function(o){return bS(o,nw(nw({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function A7(e){return Un(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return A7(e)?"":bS(e,t)}var Cr={},Ka={},Ld={},Wa={},ow;function D7(){if(ow)return Wa;ow=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.default=void 0;function e(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var s=r[n];return n=n+1,{done:!1,value:s}}else return{done:!0}}};return o}var t=e;return Wa.default=t,Wa}var iw;function dc(){if(iw)return Ld;iw=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=n;var e=t(D7());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r(o)}function n(o,i){return typeof Symbol=="function"&&r(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:e.default.bind(i)}),o}return Ld}var aw;function M7(){if(aw)return Ka;aw=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;var e=t(dc());function t(h){return h&&h.__esModule?h:{default:h}}function r(h,b){return i(h)||o(h,b)||l(h,b)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
55
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(h,b){var w=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(w!=null){var y=[],C=!0,x=!1,P,S;try{for(w=w.call(h);!(C=(P=w.next()).done)&&(y.push(P.value),!(b&&y.length===b));C=!0);}catch(D){x=!0,S=D}finally{try{!C&&w.return!=null&&w.return()}finally{if(x)throw S}}return y}}function i(h){if(Array.isArray(h))return h}function s(h,b){var w=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!w){if(Array.isArray(h)||(w=l(h))||b){w&&(h=w);var y=0,C=function(){};return{s:C,n:function(){return y>=h.length?{done:!0}:{done:!1,value:h[y++]}},e:function(_){throw _},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
56
56
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,P=!1,S;return{s:function(){w=w.call(h)},n:function(){var _=w.next();return x=_.done,_},e:function(_){P=!0,S=_},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(P)throw S}}}}function l(h,b){if(h){if(typeof h=="string")return c(h,b);var w=Object.prototype.toString.call(h).slice(8,-1);if(w==="Object"&&h.constructor&&(w=h.constructor.name),w==="Map"||w==="Set")return Array.from(h);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(h,b)}}function c(h,b){(b==null||b>h.length)&&(b=h.length);for(var w=0,y=new Array(b);w<b;w++)y[w]=h[w];return y}var d=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],f={entries:function(){return d},forEach:function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=s(d),C;try{for(y.s();!(C=y.n()).done;){var x=r(C.value,2),P=x[0],S=x[1];b.call(w,S,P,d)}}catch(D){y.e(D)}finally{y.f()}},get:function(b){var w=d.find(function(y){return y[0]===b});return w&&w[1]},has:function(b){return!!f.get(b)},keys:function(){return d.map(function(b){var w=r(b,1),y=w[0];return y})},values:function(){return d.map(function(b){var w=r(b,2),y=w[1];return y})}},p=(0,e.default)(f,f.entries());return Ka.default=p,Ka}var Ha={},sw;function O7(){if(sw)return Ha;sw=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var e=t(dc());function t(h){return h&&h.__esModule?h:{default:h}}function r(h,b){return i(h)||o(h,b)||l(h,b)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(h,b){var w=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(w!=null){var y=[],C=!0,x=!1,P,S;try{for(w=w.call(h);!(C=(P=w.next()).done)&&(y.push(P.value),!(b&&y.length===b));C=!0);}catch(D){x=!0,S=D}finally{try{!C&&w.return!=null&&w.return()}finally{if(x)throw S}}return y}}function i(h){if(Array.isArray(h))return h}function s(h,b){var w=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!w){if(Array.isArray(h)||(w=l(h))||b){w&&(h=w);var y=0,C=function(){};return{s:C,n:function(){return y>=h.length?{done:!0}:{done:!1,value:h[y++]}},e:function(_){throw _},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,P=!1,S;return{s:function(){w=w.call(h)},n:function(){var _=w.next();return x=_.done,_},e:function(_){P=!0,S=_},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(P)throw S}}}}function l(h,b){if(h){if(typeof h=="string")return c(h,b);var w=Object.prototype.toString.call(h).slice(8,-1);if(w==="Object"&&h.constructor&&(w=h.constructor.name),w==="Map"||w==="Set")return Array.from(h);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(h,b)}}function c(h,b){(b==null||b>h.length)&&(b=h.length);for(var w=0,y=new Array(b);w<b;w++)y[w]=h[w];return y}var d=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],f={entries:function(){return d},forEach:function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=s(d),C;try{for(y.s();!(C=y.n()).done;){var x=r(C.value,2),P=x[0],S=x[1];b.call(w,S,P,d)}}catch(D){y.e(D)}finally{y.f()}},get:function(b){var w=d.find(function(y){return y[0]===b});return w&&w[1]},has:function(b){return!!f.get(b)},keys:function(){return d.map(function(b){var w=r(b,1),y=w[0];return y})},values:function(){return d.map(function(b){var w=r(b,2),y=w[1];return y})}},p=(0,e.default)(f,f.entries());return Ha.default=p,Ha}var Ua={},za={},Ga={},lw;function N7(){if(lw)return Ga;lw=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Ga.default=t,Ga}var Ya={},uw;function I7(){if(uw)return Ya;uw=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Ya.default=t,Ya}var Xa={},cw;function k7(){if(cw)return Xa;cw=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Xa.default=t,Xa}var Za={},dw;function L7(){if(dw)return Za;dw=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Za.default=t,Za}var Qa={},fw;function F7(){if(fw)return Qa;fw=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Qa.default=t,Qa}var Ja={},pw;function q7(){if(pw)return Ja;pw=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return Ja.default=t,Ja}var es={},mw;function j7(){if(mw)return es;mw=1,Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return es.default=t,es}var ts={},hw;function B7(){if(hw)return ts;hw=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return ts.default=t,ts}var rs={},vw;function V7(){if(vw)return rs;vw=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},t=e;return rs.default=t,rs}var ns={},gw;function K7(){if(gw)return ns;gw=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return ns.default=t,ns}var os={},bw;function W7(){if(bw)return os;bw=1,Object.defineProperty(os,"__esModule",{value:!0}),os.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return os.default=t,os}var is={},yw;function H7(){if(yw)return is;yw=1,Object.defineProperty(is,"__esModule",{value:!0}),is.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return is.default=t,is}var xw;function U7(){if(xw)return za;xw=1,Object.defineProperty(za,"__esModule",{value:!0}),za.default=void 0;var e=h(N7()),t=h(I7()),r=h(k7()),n=h(L7()),o=h(F7()),i=h(q7()),s=h(j7()),l=h(B7()),c=h(V7()),d=h(K7()),f=h(W7()),p=h(H7());function h(y){return y&&y.__esModule?y:{default:y}}var b=[["command",e.default],["composite",t.default],["input",r.default],["landmark",n.default],["range",o.default],["roletype",i.default],["section",s.default],["sectionhead",l.default],["select",c.default],["structure",d.default],["widget",f.default],["window",p.default]],w=b;return za.default=w,za}var as={},ss={},ww;function z7(){if(ww)return ss;ww=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ss.default=t,ss}var ls={},Ew;function G7(){if(Ew)return ls;Ew=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},t=e;return ls.default=t,ls}var us={},Cw;function Y7(){if(Cw)return us;Cw=1,Object.defineProperty(us,"__esModule",{value:!0}),us.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return us.default=t,us}var cs={},Rw;function X7(){if(Rw)return cs;Rw=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},t=e;return cs.default=t,cs}var ds={},Pw;function Z7(){if(Pw)return ds;Pw=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ds.default=t,ds}var fs={},Sw;function Q7(){if(Sw)return fs;Sw=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return fs.default=t,fs}var ps={},_w;function J7(){if(_w)return ps;_w=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return ps.default=t,ps}var ms={},Tw;function e9(){if(Tw)return ms;Tw=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ms.default=t,ms}var hs={},$w;function t9(){if($w)return hs;$w=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return hs.default=t,hs}var vs={},Aw;function r9(){if(Aw)return vs;Aw=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},t=e;return vs.default=t,vs}var gs={},Dw;function n9(){if(Dw)return gs;Dw=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return gs.default=t,gs}var bs={},Mw;function o9(){if(Mw)return bs;Mw=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},t=e;return bs.default=t,bs}var ys={},Ow;function i9(){if(Ow)return ys;Ow=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},t=e;return ys.default=t,ys}var xs={},Nw;function a9(){if(Nw)return xs;Nw=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return xs.default=t,xs}var ws={},Iw;function s9(){if(Iw)return ws;Iw=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ws.default=t,ws}var Es={},kw;function l9(){if(kw)return Es;kw=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Es.default=t,Es}var Cs={},Lw;function u9(){if(Lw)return Cs;Lw=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Cs.default=t,Cs}var Rs={},Fw;function c9(){if(Fw)return Rs;Fw=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},t=e;return Rs.default=t,Rs}var Ps={},qw;function d9(){if(qw)return Ps;qw=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Ps.default=t,Ps}var Ss={},jw;function f9(){if(jw)return Ss;jw=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Ss.default=t,Ss}var _s={},Bw;function p9(){if(Bw)return _s;Bw=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return _s.default=t,_s}var Ts={},Vw;function m9(){if(Vw)return Ts;Vw=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Ts.default=t,Ts}var $s={},Kw;function h9(){if(Kw)return $s;Kw=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return $s.default=t,$s}var As={},Ww;function v9(){if(Ww)return As;Ww=1,Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return As.default=t,As}var Ds={},Hw;function g9(){if(Hw)return Ds;Hw=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Ds.default=t,Ds}var Ms={},Uw;function b9(){if(Uw)return Ms;Uw=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},t=e;return Ms.default=t,Ms}var Os={},zw;function y9(){if(zw)return Os;zw=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},t=e;return Os.default=t,Os}var Ns={},Gw;function x9(){if(Gw)return Ns;Gw=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ns.default=t,Ns}var Is={},Yw;function w9(){if(Yw)return Is;Yw=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},t=e;return Is.default=t,Is}var ks={},Xw;function E9(){if(Xw)return ks;Xw=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ks.default=t,ks}var Ls={},Zw;function C9(){if(Zw)return Ls;Zw=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ls.default=t,Ls}var Fs={},Qw;function R9(){if(Qw)return Fs;Qw=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return Fs.default=t,Fs}var qs={},Jw;function P9(){if(Jw)return qs;Jw=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return qs.default=t,qs}var js={},eE;function S9(){if(eE)return js;eE=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return js.default=t,js}var Bs={},tE;function _9(){if(tE)return Bs;tE=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Bs.default=t,Bs}var Vs={},rE;function T9(){if(rE)return Vs;rE=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Vs.default=t,Vs}var Ks={},nE;function $9(){if(nE)return Ks;nE=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Ks.default=t,Ks}var Ws={},oE;function A9(){if(oE)return Ws;oE=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ws.default=t,Ws}var Hs={},iE;function D9(){if(iE)return Hs;iE=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Hs.default=t,Hs}var Us={},aE;function M9(){if(aE)return Us;aE=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Us.default=t,Us}var zs={},sE;function O9(){if(sE)return zs;sE=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return zs.default=t,zs}var Gs={},lE;function N9(){if(lE)return Gs;lE=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},t=e;return Gs.default=t,Gs}var Ys={},uE;function I9(){if(uE)return Ys;uE=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return Ys.default=t,Ys}var Xs={},cE;function k9(){if(cE)return Xs;cE=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},t=e;return Xs.default=t,Xs}var Zs={},dE;function L9(){if(dE)return Zs;dE=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},t=e;return Zs.default=t,Zs}var Qs={},fE;function F9(){if(fE)return Qs;fE=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},t=e;return Qs.default=t,Qs}var Js={},pE;function q9(){if(pE)return Js;pE=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Js.default=t,Js}var el={},mE;function j9(){if(mE)return el;mE=1,Object.defineProperty(el,"__esModule",{value:!0}),el.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return el.default=t,el}var tl={},hE;function B9(){if(hE)return tl;hE=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return tl.default=t,tl}var rl={},vE;function V9(){if(vE)return rl;vE=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},t=e;return rl.default=t,rl}var nl={},gE;function K9(){if(gE)return nl;gE=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return nl.default=t,nl}var ol={},bE;function W9(){if(bE)return ol;bE=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return ol.default=t,ol}var il={},yE;function H9(){if(yE)return il;yE=1,Object.defineProperty(il,"__esModule",{value:!0}),il.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},t=e;return il.default=t,il}var al={},xE;function U9(){if(xE)return al;xE=1,Object.defineProperty(al,"__esModule",{value:!0}),al.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},t=e;return al.default=t,al}var sl={},wE;function z9(){if(wE)return sl;wE=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return sl.default=t,sl}var ll={},EE;function G9(){if(EE)return ll;EE=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ll.default=t,ll}var ul={},CE;function Y9(){if(CE)return ul;CE=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},t=e;return ul.default=t,ul}var cl={},RE;function X9(){if(RE)return cl;RE=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return cl.default=t,cl}var dl={},PE;function Z9(){if(PE)return dl;PE=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},t=e;return dl.default=t,dl}var fl={},SE;function Q9(){if(SE)return fl;SE=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},t=e;return fl.default=t,fl}var pl={},_E;function J9(){if(_E)return pl;_E=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return pl.default=t,pl}var ml={},TE;function e8(){if(TE)return ml;TE=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},t=e;return ml.default=t,ml}var hl={},$E;function t8(){if($E)return hl;$E=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return hl.default=t,hl}var vl={},AE;function r8(){if(AE)return vl;AE=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},t=e;return vl.default=t,vl}var gl={},DE;function n8(){if(DE)return gl;DE=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},t=e;return gl.default=t,gl}var bl={},ME;function o8(){if(ME)return bl;ME=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return bl.default=t,bl}var yl={},OE;function i8(){if(OE)return yl;OE=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return yl.default=t,yl}var xl={},NE;function a8(){if(NE)return xl;NE=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return xl.default=t,xl}var wl={},IE;function s8(){if(IE)return wl;IE=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return wl.default=t,wl}var El={},kE;function l8(){if(kE)return El;kE=1,Object.defineProperty(El,"__esModule",{value:!0}),El.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},t=e;return El.default=t,El}var Cl={},LE;function u8(){if(LE)return Cl;LE=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},t=e;return Cl.default=t,Cl}var Rl={},FE;function c8(){if(FE)return Rl;FE=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Rl.default=t,Rl}var Pl={},qE;function d8(){if(qE)return Pl;qE=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},t=e;return Pl.default=t,Pl}var Sl={},jE;function f8(){if(jE)return Sl;jE=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Sl.default=t,Sl}var _l={},BE;function p8(){if(BE)return _l;BE=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return _l.default=t,_l}var Tl={},VE;function m8(){if(VE)return Tl;VE=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},t=e;return Tl.default=t,Tl}var $l={},KE;function h8(){if(KE)return $l;KE=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return $l.default=t,$l}var Al={},WE;function v8(){if(WE)return Al;WE=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},t=e;return Al.default=t,Al}var Dl={},HE;function g8(){if(HE)return Dl;HE=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},t=e;return Dl.default=t,Dl}var Ml={},UE;function b8(){if(UE)return Ml;UE=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ml.default=t,Ml}var Ol={},zE;function y8(){if(zE)return Ol;zE=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return Ol.default=t,Ol}var Nl={},GE;function x8(){if(GE)return Nl;GE=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},t=e;return Nl.default=t,Nl}var Il={},YE;function w8(){if(YE)return Il;YE=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},t=e;return Il.default=t,Il}var XE;function E8(){if(XE)return as;XE=1,Object.defineProperty(as,"__esModule",{value:!0}),as.default=void 0;var e=ye(z7()),t=ye(G7()),r=ye(Y7()),n=ye(X7()),o=ye(Z7()),i=ye(Q7()),s=ye(J7()),l=ye(e9()),c=ye(t9()),d=ye(r9()),f=ye(n9()),p=ye(o9()),h=ye(i9()),b=ye(a9()),w=ye(s9()),y=ye(l9()),C=ye(u9()),x=ye(c9()),P=ye(d9()),S=ye(f9()),D=ye(p9()),_=ye(m9()),T=ye(h9()),A=ye(v9()),M=ye(g9()),U=ye(b9()),J=ye(y9()),N=ye(x9()),W=ye(w9()),F=ye(E9()),L=ye(C9()),G=ye(R9()),k=ye(P9()),q=ye(S9()),B=ye(_9()),re=ye(T9()),K=ye($9()),ie=ye(A9()),Y=ye(D9()),X=ye(M9()),ce=ye(O9()),ue=ye(N9()),pe=ye(I9()),te=ye(k9()),ve=ye(L9()),j=ye(F9()),ae=ye(q9()),oe=ye(j9()),Z=ye(B9()),we=ye(V9()),De=ye(K9()),Ue=ye(W9()),wt=ye(H9()),mt=ye(U9()),Pa=ye(z9()),Ci=ye(G9()),H=ye(Y9()),ne=ye(X9()),de=ye(Z9()),Ee=ye(Q9()),xe=ye(J9()),be=ye(e8()),Ae=ye(t8()),Ke=ye(r8()),ze=ye(n8()),Ht=ye(o8()),ln=ye(i8()),cr=ye(a8()),ko=ye(s8()),Rn=ye(l8()),Pn=ye(u8()),Lo=ye(c8()),no=ye(d8()),Fo=ye(f8()),Ri=ye(p8()),Cp=ye(m8()),Rp=ye(h8()),Mc=ye(v8()),Oc=ye(g8()),Pp=ye(b8()),Sp=ye(y8()),_p=ye(x8()),Tp=ye(w8());function ye(Pi){return Pi&&Pi.__esModule?Pi:{default:Pi}}var $p=[["alert",e.default],["alertdialog",t.default],["application",r.default],["article",n.default],["banner",o.default],["blockquote",i.default],["button",s.default],["caption",l.default],["cell",c.default],["checkbox",d.default],["code",f.default],["columnheader",p.default],["combobox",h.default],["complementary",b.default],["contentinfo",w.default],["definition",y.default],["deletion",C.default],["dialog",x.default],["directory",P.default],["document",S.default],["emphasis",D.default],["feed",_.default],["figure",T.default],["form",A.default],["generic",M.default],["grid",U.default],["gridcell",J.default],["group",N.default],["heading",W.default],["img",F.default],["insertion",L.default],["link",G.default],["list",k.default],["listbox",q.default],["listitem",B.default],["log",re.default],["main",K.default],["mark",ie.default],["marquee",Y.default],["math",X.default],["menu",ce.default],["menubar",ue.default],["menuitem",pe.default],["menuitemcheckbox",te.default],["menuitemradio",ve.default],["meter",j.default],["navigation",ae.default],["none",oe.default],["note",Z.default],["option",we.default],["paragraph",De.default],["presentation",Ue.default],["progressbar",wt.default],["radio",mt.default],["radiogroup",Pa.default],["region",Ci.default],["row",H.default],["rowgroup",ne.default],["rowheader",de.default],["scrollbar",Ee.default],["search",xe.default],["searchbox",be.default],["separator",Ae.default],["slider",Ke.default],["spinbutton",ze.default],["status",Ht.default],["strong",ln.default],["subscript",cr.default],["superscript",ko.default],["switch",Rn.default],["tab",Pn.default],["table",Lo.default],["tablist",no.default],["tabpanel",Fo.default],["term",Ri.default],["textbox",Cp.default],["time",Rp.default],["timer",Mc.default],["toolbar",Oc.default],["tooltip",Pp.default],["tree",Sp.default],["treegrid",_p.default],["treeitem",Tp.default]],Ap=$p;return as.default=Ap,as}var kl={},Ll={},ZE;function C8(){if(ZE)return Ll;ZE=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ll.default=t,Ll}var Fl={},QE;function R8(){if(QE)return Fl;QE=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Fl.default=t,Fl}var ql={},JE;function P8(){if(JE)return ql;JE=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ql.default=t,ql}var jl={},eC;function S8(){if(eC)return jl;eC=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return jl.default=t,jl}var Bl={},tC;function _8(){if(tC)return Bl;tC=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return Bl.default=t,Bl}var Vl={},rC;function T8(){if(rC)return Vl;rC=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},t=e;return Vl.default=t,Vl}var Kl={},nC;function $8(){if(nC)return Kl;nC=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Kl.default=t,Kl}var Wl={},oC;function A8(){if(oC)return Wl;oC=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return Wl.default=t,Wl}var Hl={},iC;function D8(){if(iC)return Hl;iC=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Hl.default=t,Hl}var Ul={},aC;function M8(){if(aC)return Ul;aC=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ul.default=t,Ul}var zl={},sC;function O8(){if(sC)return zl;sC=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return zl.default=t,zl}var Gl={},lC;function N8(){if(lC)return Gl;lC=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},t=e;return Gl.default=t,Gl}var Yl={},uC;function I8(){if(uC)return Yl;uC=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Yl.default=t,Yl}var Xl={},cC;function k8(){if(cC)return Xl;cC=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Xl.default=t,Xl}var Zl={},dC;function L8(){if(dC)return Zl;dC=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Zl.default=t,Zl}var Ql={},fC;function F8(){if(fC)return Ql;fC=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},t=e;return Ql.default=t,Ql}var Jl={},pC;function q8(){if(pC)return Jl;pC=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Jl.default=t,Jl}var eu={},mC;function j8(){if(mC)return eu;mC=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return eu.default=t,eu}var tu={},hC;function B8(){if(hC)return tu;hC=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return tu.default=t,tu}var ru={},vC;function V8(){if(vC)return ru;vC=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ru.default=t,ru}var nu={},gC;function K8(){if(gC)return nu;gC=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return nu.default=t,nu}var ou={},bC;function W8(){if(bC)return ou;bC=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ou.default=t,ou}var iu={},yC;function H8(){if(yC)return iu;yC=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return iu.default=t,iu}var au={},xC;function U8(){if(xC)return au;xC=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return au.default=t,au}var su={},wC;function z8(){if(wC)return su;wC=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return su.default=t,su}var lu={},EC;function G8(){if(EC)return lu;EC=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return lu.default=t,lu}var uu={},CC;function Y8(){if(CC)return uu;CC=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return uu.default=t,uu}var cu={},RC;function X8(){if(RC)return cu;RC=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return cu.default=t,cu}var du={},PC;function Z8(){if(PC)return du;PC=1,Object.defineProperty(du,"__esModule",{value:!0}),du.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},t=e;return du.default=t,du}var fu={},SC;function Q8(){if(SC)return fu;SC=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},t=e;return fu.default=t,fu}var pu={},_C;function J8(){if(_C)return pu;_C=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return pu.default=t,pu}var mu={},TC;function eV(){if(TC)return mu;TC=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return mu.default=t,mu}var hu={},$C;function tV(){if($C)return hu;$C=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return hu.default=t,hu}var vu={},AC;function rV(){if(AC)return vu;AC=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return vu.default=t,vu}var gu={},DC;function nV(){if(DC)return gu;DC=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},t=e;return gu.default=t,gu}var bu={},MC;function oV(){if(MC)return bu;MC=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return bu.default=t,bu}var yu={},OC;function iV(){if(OC)return yu;OC=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},t=e;return yu.default=t,yu}var xu={},NC;function aV(){if(NC)return xu;NC=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},t=e;return xu.default=t,xu}var wu={},IC;function sV(){if(IC)return wu;IC=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return wu.default=t,wu}var kC;function lV(){if(kC)return kl;kC=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=void 0;var e=X(C8()),t=X(R8()),r=X(P8()),n=X(S8()),o=X(_8()),i=X(T8()),s=X($8()),l=X(A8()),c=X(D8()),d=X(M8()),f=X(O8()),p=X(N8()),h=X(I8()),b=X(k8()),w=X(L8()),y=X(F8()),C=X(q8()),x=X(j8()),P=X(B8()),S=X(V8()),D=X(K8()),_=X(W8()),T=X(H8()),A=X(U8()),M=X(z8()),U=X(G8()),J=X(Y8()),N=X(X8()),W=X(Z8()),F=X(Q8()),L=X(J8()),G=X(eV()),k=X(tV()),q=X(rV()),B=X(nV()),re=X(oV()),K=X(iV()),ie=X(aV()),Y=X(sV());function X(pe){return pe&&pe.__esModule?pe:{default:pe}}var ce=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",r.default],["doc-appendix",n.default],["doc-backlink",o.default],["doc-biblioentry",i.default],["doc-bibliography",s.default],["doc-biblioref",l.default],["doc-chapter",c.default],["doc-colophon",d.default],["doc-conclusion",f.default],["doc-cover",p.default],["doc-credit",h.default],["doc-credits",b.default],["doc-dedication",w.default],["doc-endnote",y.default],["doc-endnotes",C.default],["doc-epigraph",x.default],["doc-epilogue",P.default],["doc-errata",S.default],["doc-example",D.default],["doc-footnote",_.default],["doc-foreword",T.default],["doc-glossary",A.default],["doc-glossref",M.default],["doc-index",U.default],["doc-introduction",J.default],["doc-noteref",N.default],["doc-notice",W.default],["doc-pagebreak",F.default],["doc-pagelist",L.default],["doc-part",G.default],["doc-preface",k.default],["doc-prologue",q.default],["doc-pullquote",B.default],["doc-qna",re.default],["doc-subtitle",K.default],["doc-tip",ie.default],["doc-toc",Y.default]],ue=ce;return kl.default=ue,kl}var Eu={},Cu={},LC;function uV(){if(LC)return Cu;LC=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},t=e;return Cu.default=t,Cu}var Ru={},FC;function cV(){if(FC)return Ru;FC=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},t=e;return Ru.default=t,Ru}var Pu={},qC;function dV(){if(qC)return Pu;qC=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},t=e;return Pu.default=t,Pu}var jC;function fV(){if(jC)return Eu;jC=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=void 0;var e=n(uV()),t=n(cV()),r=n(dV());function n(s){return s&&s.__esModule?s:{default:s}}var o=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",r.default]],i=o;return Eu.default=i,Eu}var BC;function dg(){if(BC)return Ua;BC=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var e=i(U7()),t=i(E8()),r=i(lV()),n=i(fV()),o=i(dc());function i(x){return x&&x.__esModule?x:{default:x}}function s(x,P,S){return P in x?Object.defineProperty(x,P,{value:S,enumerable:!0,configurable:!0,writable:!0}):x[P]=S,x}function l(x,P){var S=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!S){if(Array.isArray(x)||(S=f(x))||P){S&&(x=S);var D=0,_=function(){};return{s:_,n:function(){return D>=x.length?{done:!0}:{done:!1,value:x[D++]}},e:function(J){throw J},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,P=!1,S;return{s:function(){w=w.call(h)},n:function(){var _=w.next();return x=_.done,_},e:function(_){P=!0,S=_},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(P)throw S}}}}function l(h,b){if(h){if(typeof h=="string")return c(h,b);var w=Object.prototype.toString.call(h).slice(8,-1);if(w==="Object"&&h.constructor&&(w=h.constructor.name),w==="Map"||w==="Set")return Array.from(h);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(h,b)}}function c(h,b){(b==null||b>h.length)&&(b=h.length);for(var w=0,y=new Array(b);w<b;w++)y[w]=h[w];return y}var d=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],f={entries:function(){return d},forEach:function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=s(d),C;try{for(y.s();!(C=y.n()).done;){var x=r(C.value,2),P=x[0],S=x[1];b.call(w,S,P,d)}}catch(D){y.e(D)}finally{y.f()}},get:function(b){var w=d.find(function(y){return y[0]===b});return w&&w[1]},has:function(b){return!!f.get(b)},keys:function(){return d.map(function(b){var w=r(b,1),y=w[0];return y})},values:function(){return d.map(function(b){var w=r(b,2),y=w[1];return y})}},p=(0,e.default)(f,f.entries());return Ha.default=p,Ha}var Ua={},za={},Ga={},lw;function N7(){if(lw)return Ga;lw=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Ga.default=t,Ga}var Ya={},uw;function I7(){if(uw)return Ya;uw=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Ya.default=t,Ya}var Xa={},cw;function k7(){if(cw)return Xa;cw=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Xa.default=t,Xa}var Za={},dw;function L7(){if(dw)return Za;dw=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Za.default=t,Za}var Qa={},fw;function F7(){if(fw)return Qa;fw=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Qa.default=t,Qa}var Ja={},pw;function q7(){if(pw)return Ja;pw=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return Ja.default=t,Ja}var es={},mw;function j7(){if(mw)return es;mw=1,Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return es.default=t,es}var ts={},hw;function B7(){if(hw)return ts;hw=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return ts.default=t,ts}var rs={},vw;function V7(){if(vw)return rs;vw=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},t=e;return rs.default=t,rs}var ns={},gw;function K7(){if(gw)return ns;gw=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return ns.default=t,ns}var os={},bw;function W7(){if(bw)return os;bw=1,Object.defineProperty(os,"__esModule",{value:!0}),os.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return os.default=t,os}var is={},yw;function H7(){if(yw)return is;yw=1,Object.defineProperty(is,"__esModule",{value:!0}),is.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return is.default=t,is}var xw;function U7(){if(xw)return za;xw=1,Object.defineProperty(za,"__esModule",{value:!0}),za.default=void 0;var e=h(N7()),t=h(I7()),r=h(k7()),n=h(L7()),o=h(F7()),i=h(q7()),s=h(j7()),l=h(B7()),c=h(V7()),d=h(K7()),f=h(W7()),p=h(H7());function h(y){return y&&y.__esModule?y:{default:y}}var b=[["command",e.default],["composite",t.default],["input",r.default],["landmark",n.default],["range",o.default],["roletype",i.default],["section",s.default],["sectionhead",l.default],["select",c.default],["structure",d.default],["widget",f.default],["window",p.default]],w=b;return za.default=w,za}var as={},ss={},ww;function z7(){if(ww)return ss;ww=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ss.default=t,ss}var ls={},Ew;function G7(){if(Ew)return ls;Ew=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},t=e;return ls.default=t,ls}var us={},Cw;function Y7(){if(Cw)return us;Cw=1,Object.defineProperty(us,"__esModule",{value:!0}),us.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return us.default=t,us}var cs={},Rw;function X7(){if(Rw)return cs;Rw=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},t=e;return cs.default=t,cs}var ds={},Pw;function Z7(){if(Pw)return ds;Pw=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ds.default=t,ds}var fs={},Sw;function Q7(){if(Sw)return fs;Sw=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return fs.default=t,fs}var ps={},_w;function J7(){if(_w)return ps;_w=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return ps.default=t,ps}var ms={},Tw;function e9(){if(Tw)return ms;Tw=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ms.default=t,ms}var hs={},$w;function t9(){if($w)return hs;$w=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return hs.default=t,hs}var vs={},Aw;function r9(){if(Aw)return vs;Aw=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},t=e;return vs.default=t,vs}var gs={},Dw;function n9(){if(Dw)return gs;Dw=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return gs.default=t,gs}var bs={},Mw;function o9(){if(Mw)return bs;Mw=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},t=e;return bs.default=t,bs}var ys={},Ow;function i9(){if(Ow)return ys;Ow=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},t=e;return ys.default=t,ys}var xs={},Nw;function a9(){if(Nw)return xs;Nw=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return xs.default=t,xs}var ws={},Iw;function s9(){if(Iw)return ws;Iw=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ws.default=t,ws}var Es={},kw;function l9(){if(kw)return Es;kw=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Es.default=t,Es}var Cs={},Lw;function u9(){if(Lw)return Cs;Lw=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Cs.default=t,Cs}var Rs={},Fw;function c9(){if(Fw)return Rs;Fw=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},t=e;return Rs.default=t,Rs}var Ps={},qw;function d9(){if(qw)return Ps;qw=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Ps.default=t,Ps}var Ss={},jw;function f9(){if(jw)return Ss;jw=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Ss.default=t,Ss}var _s={},Bw;function p9(){if(Bw)return _s;Bw=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return _s.default=t,_s}var Ts={},Vw;function m9(){if(Vw)return Ts;Vw=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Ts.default=t,Ts}var $s={},Kw;function h9(){if(Kw)return $s;Kw=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return $s.default=t,$s}var As={},Ww;function v9(){if(Ww)return As;Ww=1,Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return As.default=t,As}var Ds={},Hw;function g9(){if(Hw)return Ds;Hw=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Ds.default=t,Ds}var Ms={},Uw;function b9(){if(Uw)return Ms;Uw=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},t=e;return Ms.default=t,Ms}var Os={},zw;function y9(){if(zw)return Os;zw=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},t=e;return Os.default=t,Os}var Ns={},Gw;function x9(){if(Gw)return Ns;Gw=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ns.default=t,Ns}var Is={},Yw;function w9(){if(Yw)return Is;Yw=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},t=e;return Is.default=t,Is}var ks={},Xw;function E9(){if(Xw)return ks;Xw=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ks.default=t,ks}var Ls={},Zw;function C9(){if(Zw)return Ls;Zw=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ls.default=t,Ls}var Fs={},Qw;function R9(){if(Qw)return Fs;Qw=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return Fs.default=t,Fs}var qs={},Jw;function P9(){if(Jw)return qs;Jw=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return qs.default=t,qs}var js={},eE;function S9(){if(eE)return js;eE=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return js.default=t,js}var Bs={},tE;function _9(){if(tE)return Bs;tE=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Bs.default=t,Bs}var Vs={},rE;function T9(){if(rE)return Vs;rE=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Vs.default=t,Vs}var Ks={},nE;function $9(){if(nE)return Ks;nE=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Ks.default=t,Ks}var Ws={},oE;function A9(){if(oE)return Ws;oE=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ws.default=t,Ws}var Hs={},iE;function D9(){if(iE)return Hs;iE=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Hs.default=t,Hs}var Us={},aE;function M9(){if(aE)return Us;aE=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Us.default=t,Us}var zs={},sE;function O9(){if(sE)return zs;sE=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return zs.default=t,zs}var Gs={},lE;function N9(){if(lE)return Gs;lE=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},t=e;return Gs.default=t,Gs}var Ys={},uE;function I9(){if(uE)return Ys;uE=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return Ys.default=t,Ys}var Xs={},cE;function k9(){if(cE)return Xs;cE=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},t=e;return Xs.default=t,Xs}var Zs={},dE;function L9(){if(dE)return Zs;dE=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},t=e;return Zs.default=t,Zs}var Qs={},fE;function F9(){if(fE)return Qs;fE=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},t=e;return Qs.default=t,Qs}var Js={},pE;function q9(){if(pE)return Js;pE=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Js.default=t,Js}var el={},mE;function j9(){if(mE)return el;mE=1,Object.defineProperty(el,"__esModule",{value:!0}),el.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return el.default=t,el}var tl={},hE;function B9(){if(hE)return tl;hE=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return tl.default=t,tl}var rl={},vE;function V9(){if(vE)return rl;vE=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},t=e;return rl.default=t,rl}var nl={},gE;function K9(){if(gE)return nl;gE=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return nl.default=t,nl}var ol={},bE;function W9(){if(bE)return ol;bE=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return ol.default=t,ol}var il={},yE;function H9(){if(yE)return il;yE=1,Object.defineProperty(il,"__esModule",{value:!0}),il.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},t=e;return il.default=t,il}var al={},xE;function U9(){if(xE)return al;xE=1,Object.defineProperty(al,"__esModule",{value:!0}),al.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},t=e;return al.default=t,al}var sl={},wE;function z9(){if(wE)return sl;wE=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return sl.default=t,sl}var ll={},EE;function G9(){if(EE)return ll;EE=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ll.default=t,ll}var ul={},CE;function Y9(){if(CE)return ul;CE=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},t=e;return ul.default=t,ul}var cl={},RE;function X9(){if(RE)return cl;RE=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return cl.default=t,cl}var dl={},PE;function Z9(){if(PE)return dl;PE=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},t=e;return dl.default=t,dl}var fl={},SE;function Q9(){if(SE)return fl;SE=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},t=e;return fl.default=t,fl}var pl={},_E;function J9(){if(_E)return pl;_E=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return pl.default=t,pl}var ml={},TE;function e8(){if(TE)return ml;TE=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},t=e;return ml.default=t,ml}var hl={},$E;function t8(){if($E)return hl;$E=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return hl.default=t,hl}var vl={},AE;function r8(){if(AE)return vl;AE=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},t=e;return vl.default=t,vl}var gl={},DE;function n8(){if(DE)return gl;DE=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},t=e;return gl.default=t,gl}var bl={},ME;function o8(){if(ME)return bl;ME=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return bl.default=t,bl}var yl={},OE;function i8(){if(OE)return yl;OE=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return yl.default=t,yl}var xl={},NE;function a8(){if(NE)return xl;NE=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return xl.default=t,xl}var wl={},IE;function s8(){if(IE)return wl;IE=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return wl.default=t,wl}var El={},kE;function l8(){if(kE)return El;kE=1,Object.defineProperty(El,"__esModule",{value:!0}),El.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},t=e;return El.default=t,El}var Cl={},LE;function u8(){if(LE)return Cl;LE=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},t=e;return Cl.default=t,Cl}var Rl={},FE;function c8(){if(FE)return Rl;FE=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Rl.default=t,Rl}var Pl={},qE;function d8(){if(qE)return Pl;qE=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},t=e;return Pl.default=t,Pl}var Sl={},jE;function f8(){if(jE)return Sl;jE=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Sl.default=t,Sl}var _l={},BE;function p8(){if(BE)return _l;BE=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return _l.default=t,_l}var Tl={},VE;function m8(){if(VE)return Tl;VE=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},t=e;return Tl.default=t,Tl}var $l={},KE;function h8(){if(KE)return $l;KE=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return $l.default=t,$l}var Al={},WE;function v8(){if(WE)return Al;WE=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},t=e;return Al.default=t,Al}var Dl={},HE;function g8(){if(HE)return Dl;HE=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},t=e;return Dl.default=t,Dl}var Ml={},UE;function b8(){if(UE)return Ml;UE=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ml.default=t,Ml}var Ol={},zE;function y8(){if(zE)return Ol;zE=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return Ol.default=t,Ol}var Nl={},GE;function x8(){if(GE)return Nl;GE=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},t=e;return Nl.default=t,Nl}var Il={},YE;function w8(){if(YE)return Il;YE=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},t=e;return Il.default=t,Il}var XE;function E8(){if(XE)return as;XE=1,Object.defineProperty(as,"__esModule",{value:!0}),as.default=void 0;var e=ye(z7()),t=ye(G7()),r=ye(Y7()),n=ye(X7()),o=ye(Z7()),i=ye(Q7()),s=ye(J7()),l=ye(e9()),c=ye(t9()),d=ye(r9()),f=ye(n9()),p=ye(o9()),h=ye(i9()),b=ye(a9()),w=ye(s9()),y=ye(l9()),C=ye(u9()),x=ye(c9()),P=ye(d9()),S=ye(f9()),D=ye(p9()),_=ye(m9()),T=ye(h9()),A=ye(v9()),M=ye(g9()),U=ye(b9()),J=ye(y9()),N=ye(x9()),W=ye(w9()),K=ye(E9()),L=ye(C9()),G=ye(R9()),k=ye(P9()),F=ye(S9()),j=ye(_9()),re=ye(T9()),V=ye($9()),ie=ye(A9()),Y=ye(D9()),X=ye(M9()),ce=ye(O9()),ue=ye(N9()),pe=ye(I9()),te=ye(k9()),ve=ye(L9()),q=ye(F9()),ae=ye(q9()),oe=ye(j9()),Z=ye(B9()),we=ye(V9()),De=ye(K9()),Ue=ye(W9()),wt=ye(H9()),mt=ye(U9()),Pa=ye(z9()),Ci=ye(G9()),H=ye(Y9()),ne=ye(X9()),de=ye(Z9()),Ee=ye(Q9()),xe=ye(J9()),be=ye(e8()),Ae=ye(t8()),Ke=ye(r8()),ze=ye(n8()),Ht=ye(o8()),ln=ye(i8()),cr=ye(a8()),ko=ye(s8()),Rn=ye(l8()),Pn=ye(u8()),Lo=ye(c8()),no=ye(d8()),Fo=ye(f8()),Ri=ye(p8()),Cp=ye(m8()),Rp=ye(h8()),Mc=ye(v8()),Oc=ye(g8()),Pp=ye(b8()),Sp=ye(y8()),_p=ye(x8()),Tp=ye(w8());function ye(Pi){return Pi&&Pi.__esModule?Pi:{default:Pi}}var $p=[["alert",e.default],["alertdialog",t.default],["application",r.default],["article",n.default],["banner",o.default],["blockquote",i.default],["button",s.default],["caption",l.default],["cell",c.default],["checkbox",d.default],["code",f.default],["columnheader",p.default],["combobox",h.default],["complementary",b.default],["contentinfo",w.default],["definition",y.default],["deletion",C.default],["dialog",x.default],["directory",P.default],["document",S.default],["emphasis",D.default],["feed",_.default],["figure",T.default],["form",A.default],["generic",M.default],["grid",U.default],["gridcell",J.default],["group",N.default],["heading",W.default],["img",K.default],["insertion",L.default],["link",G.default],["list",k.default],["listbox",F.default],["listitem",j.default],["log",re.default],["main",V.default],["mark",ie.default],["marquee",Y.default],["math",X.default],["menu",ce.default],["menubar",ue.default],["menuitem",pe.default],["menuitemcheckbox",te.default],["menuitemradio",ve.default],["meter",q.default],["navigation",ae.default],["none",oe.default],["note",Z.default],["option",we.default],["paragraph",De.default],["presentation",Ue.default],["progressbar",wt.default],["radio",mt.default],["radiogroup",Pa.default],["region",Ci.default],["row",H.default],["rowgroup",ne.default],["rowheader",de.default],["scrollbar",Ee.default],["search",xe.default],["searchbox",be.default],["separator",Ae.default],["slider",Ke.default],["spinbutton",ze.default],["status",Ht.default],["strong",ln.default],["subscript",cr.default],["superscript",ko.default],["switch",Rn.default],["tab",Pn.default],["table",Lo.default],["tablist",no.default],["tabpanel",Fo.default],["term",Ri.default],["textbox",Cp.default],["time",Rp.default],["timer",Mc.default],["toolbar",Oc.default],["tooltip",Pp.default],["tree",Sp.default],["treegrid",_p.default],["treeitem",Tp.default]],Ap=$p;return as.default=Ap,as}var kl={},Ll={},ZE;function C8(){if(ZE)return Ll;ZE=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ll.default=t,Ll}var Fl={},QE;function R8(){if(QE)return Fl;QE=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Fl.default=t,Fl}var ql={},JE;function P8(){if(JE)return ql;JE=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ql.default=t,ql}var jl={},eC;function S8(){if(eC)return jl;eC=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return jl.default=t,jl}var Bl={},tC;function _8(){if(tC)return Bl;tC=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return Bl.default=t,Bl}var Vl={},rC;function T8(){if(rC)return Vl;rC=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},t=e;return Vl.default=t,Vl}var Kl={},nC;function $8(){if(nC)return Kl;nC=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Kl.default=t,Kl}var Wl={},oC;function A8(){if(oC)return Wl;oC=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return Wl.default=t,Wl}var Hl={},iC;function D8(){if(iC)return Hl;iC=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Hl.default=t,Hl}var Ul={},aC;function M8(){if(aC)return Ul;aC=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ul.default=t,Ul}var zl={},sC;function O8(){if(sC)return zl;sC=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return zl.default=t,zl}var Gl={},lC;function N8(){if(lC)return Gl;lC=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},t=e;return Gl.default=t,Gl}var Yl={},uC;function I8(){if(uC)return Yl;uC=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Yl.default=t,Yl}var Xl={},cC;function k8(){if(cC)return Xl;cC=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Xl.default=t,Xl}var Zl={},dC;function L8(){if(dC)return Zl;dC=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Zl.default=t,Zl}var Ql={},fC;function F8(){if(fC)return Ql;fC=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},t=e;return Ql.default=t,Ql}var Jl={},pC;function q8(){if(pC)return Jl;pC=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Jl.default=t,Jl}var eu={},mC;function j8(){if(mC)return eu;mC=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return eu.default=t,eu}var tu={},hC;function B8(){if(hC)return tu;hC=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return tu.default=t,tu}var ru={},vC;function V8(){if(vC)return ru;vC=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ru.default=t,ru}var nu={},gC;function K8(){if(gC)return nu;gC=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return nu.default=t,nu}var ou={},bC;function W8(){if(bC)return ou;bC=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ou.default=t,ou}var iu={},yC;function H8(){if(yC)return iu;yC=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return iu.default=t,iu}var au={},xC;function U8(){if(xC)return au;xC=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return au.default=t,au}var su={},wC;function z8(){if(wC)return su;wC=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return su.default=t,su}var lu={},EC;function G8(){if(EC)return lu;EC=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return lu.default=t,lu}var uu={},CC;function Y8(){if(CC)return uu;CC=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return uu.default=t,uu}var cu={},RC;function X8(){if(RC)return cu;RC=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return cu.default=t,cu}var du={},PC;function Z8(){if(PC)return du;PC=1,Object.defineProperty(du,"__esModule",{value:!0}),du.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},t=e;return du.default=t,du}var fu={},SC;function Q8(){if(SC)return fu;SC=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},t=e;return fu.default=t,fu}var pu={},_C;function J8(){if(_C)return pu;_C=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return pu.default=t,pu}var mu={},TC;function eV(){if(TC)return mu;TC=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return mu.default=t,mu}var hu={},$C;function tV(){if($C)return hu;$C=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return hu.default=t,hu}var vu={},AC;function rV(){if(AC)return vu;AC=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return vu.default=t,vu}var gu={},DC;function nV(){if(DC)return gu;DC=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},t=e;return gu.default=t,gu}var bu={},MC;function oV(){if(MC)return bu;MC=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return bu.default=t,bu}var yu={},OC;function iV(){if(OC)return yu;OC=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},t=e;return yu.default=t,yu}var xu={},NC;function aV(){if(NC)return xu;NC=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},t=e;return xu.default=t,xu}var wu={},IC;function sV(){if(IC)return wu;IC=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return wu.default=t,wu}var kC;function lV(){if(kC)return kl;kC=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=void 0;var e=X(C8()),t=X(R8()),r=X(P8()),n=X(S8()),o=X(_8()),i=X(T8()),s=X($8()),l=X(A8()),c=X(D8()),d=X(M8()),f=X(O8()),p=X(N8()),h=X(I8()),b=X(k8()),w=X(L8()),y=X(F8()),C=X(q8()),x=X(j8()),P=X(B8()),S=X(V8()),D=X(K8()),_=X(W8()),T=X(H8()),A=X(U8()),M=X(z8()),U=X(G8()),J=X(Y8()),N=X(X8()),W=X(Z8()),K=X(Q8()),L=X(J8()),G=X(eV()),k=X(tV()),F=X(rV()),j=X(nV()),re=X(oV()),V=X(iV()),ie=X(aV()),Y=X(sV());function X(pe){return pe&&pe.__esModule?pe:{default:pe}}var ce=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",r.default],["doc-appendix",n.default],["doc-backlink",o.default],["doc-biblioentry",i.default],["doc-bibliography",s.default],["doc-biblioref",l.default],["doc-chapter",c.default],["doc-colophon",d.default],["doc-conclusion",f.default],["doc-cover",p.default],["doc-credit",h.default],["doc-credits",b.default],["doc-dedication",w.default],["doc-endnote",y.default],["doc-endnotes",C.default],["doc-epigraph",x.default],["doc-epilogue",P.default],["doc-errata",S.default],["doc-example",D.default],["doc-footnote",_.default],["doc-foreword",T.default],["doc-glossary",A.default],["doc-glossref",M.default],["doc-index",U.default],["doc-introduction",J.default],["doc-noteref",N.default],["doc-notice",W.default],["doc-pagebreak",K.default],["doc-pagelist",L.default],["doc-part",G.default],["doc-preface",k.default],["doc-prologue",F.default],["doc-pullquote",j.default],["doc-qna",re.default],["doc-subtitle",V.default],["doc-tip",ie.default],["doc-toc",Y.default]],ue=ce;return kl.default=ue,kl}var Eu={},Cu={},LC;function uV(){if(LC)return Cu;LC=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},t=e;return Cu.default=t,Cu}var Ru={},FC;function cV(){if(FC)return Ru;FC=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},t=e;return Ru.default=t,Ru}var Pu={},qC;function dV(){if(qC)return Pu;qC=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},t=e;return Pu.default=t,Pu}var jC;function fV(){if(jC)return Eu;jC=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=void 0;var e=n(uV()),t=n(cV()),r=n(dV());function n(s){return s&&s.__esModule?s:{default:s}}var o=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",r.default]],i=o;return Eu.default=i,Eu}var BC;function dg(){if(BC)return Ua;BC=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var e=i(U7()),t=i(E8()),r=i(lV()),n=i(fV()),o=i(dc());function i(x){return x&&x.__esModule?x:{default:x}}function s(x,P,S){return P in x?Object.defineProperty(x,P,{value:S,enumerable:!0,configurable:!0,writable:!0}):x[P]=S,x}function l(x,P){var S=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!S){if(Array.isArray(x)||(S=f(x))||P){S&&(x=S);var D=0,_=function(){};return{s:_,n:function(){return D>=x.length?{done:!0}:{done:!1,value:x[D++]}},e:function(J){throw J},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
59
59
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,A=!1,M;return{s:function(){S=S.call(x)},n:function(){var J=S.next();return T=J.done,J},e:function(J){A=!0,M=J},f:function(){try{!T&&S.return!=null&&S.return()}finally{if(A)throw M}}}}function c(x,P){return b(x)||h(x,P)||f(x,P)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(x,P){if(x){if(typeof x=="string")return p(x,P);var S=Object.prototype.toString.call(x).slice(8,-1);if(S==="Object"&&x.constructor&&(S=x.constructor.name),S==="Map"||S==="Set")return Array.from(x);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return p(x,P)}}function p(x,P){(P==null||P>x.length)&&(P=x.length);for(var S=0,D=new Array(P);S<P;S++)D[S]=x[S];return D}function h(x,P){var S=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(S!=null){var D=[],_=!0,T=!1,A,M;try{for(S=S.call(x);!(_=(A=S.next()).done)&&(D.push(A.value),!(P&&D.length===P));_=!0);}catch(U){T=!0,M=U}finally{try{!_&&S.return!=null&&S.return()}finally{if(T)throw M}}return D}}function b(x){if(Array.isArray(x))return x}var w=[].concat(e.default,t.default,r.default,n.default);w.forEach(function(x){var P=c(x,2),S=P[1],D=l(S.superClass),_;try{for(D.s();!(_=D.n()).done;){var T=_.value,A=l(T),M;try{var U=function(){var N=M.value,W=w.find(function(q){var B=c(q,1),re=B[0];return re===N});if(W)for(var F=W[1],L=0,G=Object.keys(F.props);L<G.length;L++){var k=G[L];Object.prototype.hasOwnProperty.call(S.props,k)||Object.assign(S.props,s({},k,F.props[k]))}};for(A.s();!(M=A.n()).done;)U()}catch(J){A.e(J)}finally{A.f()}}}catch(J){D.e(J)}finally{D.f()}});var y={entries:function(){return w},forEach:function(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,D=l(w),_;try{for(D.s();!(_=D.n()).done;){var T=c(_.value,2),A=T[0],M=T[1];P.call(S,M,A,w)}}catch(U){D.e(U)}finally{D.f()}},get:function(P){var S=w.find(function(D){return D[0]===P});return S&&S[1]},has:function(P){return!!y.get(P)},keys:function(){return w.map(function(P){var S=c(P,1),D=S[0];return D})},values:function(){return w.map(function(P){var S=c(P,2),D=S[1];return D})}},C=(0,o.default)(y,y.entries());return Ua.default=C,Ua}var Su={},fh={},VC;function pV(){if(VC)return fh;VC=1;var e=Object.prototype.hasOwnProperty;function t(r,n){var o,i;if(r===n)return!0;if(r&&n&&(o=r.constructor)===n.constructor){if(o===Date)return r.getTime()===n.getTime();if(o===RegExp)return r.toString()===n.toString();if(o===Array){if((i=r.length)===n.length)for(;i--&&t(r[i],n[i]););return i===-1}if(!o||typeof r=="object"){i=0;for(o in r)if(e.call(r,o)&&++i&&!e.call(n,o)||!(o in n)||!t(r[o],n[o]))return!1;return Object.keys(n).length===i}}return r!==r&&n!==n}return fh.dequal=t,fh}var KC;function mV(){if(KC)return Su;KC=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.default=void 0;var e=pV(),t=n(dc()),r=n(dg());function n(_){return _&&_.__esModule?_:{default:_}}function o(_,T){return l(_)||s(_,T)||d(_,T)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(_,T){var A=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(A!=null){var M=[],U=!0,J=!1,N,W;try{for(A=A.call(_);!(U=(N=A.next()).done)&&(M.push(N.value),!(T&&M.length===T));U=!0);}catch(F){J=!0,W=F}finally{try{!U&&A.return!=null&&A.return()}finally{if(J)throw W}}return M}}function l(_){if(Array.isArray(_))return _}function c(_,T){var A=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!A){if(Array.isArray(_)||(A=d(_))||T){A&&(_=A);var M=0,U=function(){};return{s:U,n:function(){return M>=_.length?{done:!0}:{done:!1,value:_[M++]}},e:function(L){throw L},f:U}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,N=!1,W;return{s:function(){A=A.call(_)},n:function(){var L=A.next();return J=L.done,L},e:function(L){N=!0,W=L},f:function(){try{!J&&A.return!=null&&A.return()}finally{if(N)throw W}}}}function d(_,T){if(_){if(typeof _=="string")return f(_,T);var A=Object.prototype.toString.call(_).slice(8,-1);if(A==="Object"&&_.constructor&&(A=_.constructor.name),A==="Map"||A==="Set")return Array.from(_);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return f(_,T)}}function f(_,T){(T==null||T>_.length)&&(T=_.length);for(var A=0,M=new Array(T);A<T;A++)M[A]=_[A];return M}for(var p=[],h=r.default.keys(),b=0;b<h.length;b++){var w=h[b],y=r.default.get(w);if(y)for(var C=[].concat(y.baseConcepts,y.relatedConcepts),x=0;x<C.length;x++){var P=C[x];P.module==="HTML"&&(function(){var _=P.concept;if(_){var T=p.find(function(J){return(0,e.dequal)(J,_)}),A;T?A=T[1]:A=[];for(var M=!0,U=0;U<A.length;U++)if(A[U]===w){M=!1;break}M&&A.push(w),p.push([_,A])}})()}}var S={entries:function(){return p},forEach:function(T){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,M=c(p),U;try{for(M.s();!(U=M.n()).done;){var J=o(U.value,2),N=J[0],W=J[1];T.call(A,W,N,p)}}catch(F){M.e(F)}finally{M.f()}},get:function(T){var A=p.find(function(M){return T.name===M[0].name&&(0,e.dequal)(T.attributes,M[0].attributes)});return A&&A[1]},has:function(T){return!!S.get(T)},keys:function(){return p.map(function(T){var A=o(T,1),M=A[0];return M})},values:function(){return p.map(function(T){var A=o(T,2),M=A[1];return M})}},D=(0,t.default)(S,S.entries());return Su.default=D,Su}var _u={},WC;function hV(){if(WC)return _u;WC=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.default=void 0;var e=r(dc()),t=r(dg());function r(T){return T&&T.__esModule?T:{default:T}}function n(T,A){return s(T)||i(T,A)||c(T,A)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(T,A){var M=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(M!=null){var U=[],J=!0,N=!1,W,F;try{for(M=M.call(T);!(J=(W=M.next()).done)&&(U.push(W.value),!(A&&U.length===A));J=!0);}catch(L){N=!0,F=L}finally{try{!J&&M.return!=null&&M.return()}finally{if(N)throw F}}return U}}function s(T){if(Array.isArray(T))return T}function l(T,A){var M=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!M){if(Array.isArray(T)||(M=c(T))||A){M&&(T=M);var U=0,J=function(){};return{s:J,n:function(){return U>=T.length?{done:!0}:{done:!1,value:T[U++]}},e:function(G){throw G},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,W=!1,F;return{s:function(){M=M.call(T)},n:function(){var G=M.next();return N=G.done,G},e:function(G){W=!0,F=G},f:function(){try{!N&&M.return!=null&&M.return()}finally{if(W)throw F}}}}function c(T,A){if(T){if(typeof T=="string")return d(T,A);var M=Object.prototype.toString.call(T).slice(8,-1);if(M==="Object"&&T.constructor&&(M=T.constructor.name),M==="Map"||M==="Set")return Array.from(T);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return d(T,A)}}function d(T,A){(A==null||A>T.length)&&(A=T.length);for(var M=0,U=new Array(A);M<A;M++)U[M]=T[M];return U}for(var f=[],p=t.default.keys(),h=0;h<p.length;h++){var b=p[h],w=t.default.get(b),y=[];if(w){for(var C=[].concat(w.baseConcepts,w.relatedConcepts),x=0;x<C.length;x++){var P=C[x];if(P.module==="HTML"){var S=P.concept;S!=null&&y.push(S)}}y.length>0&&f.push([b,y])}}var D={entries:function(){return f},forEach:function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,U=l(f),J;try{for(U.s();!(J=U.n()).done;){var N=n(J.value,2),W=N[0],F=N[1];A.call(M,F,W,f)}}catch(L){U.e(L)}finally{U.f()}},get:function(A){var M=f.find(function(U){return U[0]===A});return M&&M[1]},has:function(A){return!!D.get(A)},keys:function(){return f.map(function(A){var M=n(A,1),U=M[0];return U})},values:function(){return f.map(function(A){var M=n(A,2),U=M[1];return U})}},_=(0,e.default)(D,D.entries());return _u.default=_,_u}var HC;function vV(){if(HC)return Cr;HC=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.roles=Cr.roleElements=Cr.elementRoles=Cr.dom=Cr.aria=void 0;var e=i(M7()),t=i(O7()),r=i(dg()),n=i(mV()),o=i(hV());function i(p){return p&&p.__esModule?p:{default:p}}var s=e.default;Cr.aria=s;var l=t.default;Cr.dom=l;var c=r.default;Cr.roles=c;var d=n.default;Cr.elementRoles=d;var f=o.default;return Cr.roleElements=f,Cr}var Fr=vV(),ph={exports:{}},UC;function gV(){return UC||(UC=1,(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function s(c,d){if(!i[c]){i[c]={};for(var f=0;f<c.length;f++)i[c][c.charAt(f)]=f}return i[c][d]}var l={compressToBase64:function(c){if(c==null)return"";var d=l._compress(c,6,function(f){return n.charAt(f)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(d){return s(n,c.charAt(d))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(d){return r(d+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(d){return c.charCodeAt(d)-32})},compressToUint8Array:function(c){for(var d=l.compress(c),f=new Uint8Array(d.length*2),p=0,h=d.length;p<h;p++){var b=d.charCodeAt(p);f[p*2]=b>>>8,f[p*2+1]=b%256}return f},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var d=new Array(c.length/2),f=0,p=d.length;f<p;f++)d[f]=c[f*2]*256+c[f*2+1];var h=[];return d.forEach(function(b){h.push(r(b))}),l.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(d){return o.charAt(d)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(d){return s(o,c.charAt(d))}))},compress:function(c){return l._compress(c,16,function(d){return r(d)})},_compress:function(c,d,f){if(c==null)return"";var p,h,b={},w={},y="",C="",x="",P=2,S=3,D=2,_=[],T=0,A=0,M;for(M=0;M<c.length;M+=1)if(y=c.charAt(M),Object.prototype.hasOwnProperty.call(b,y)||(b[y]=S++,w[y]=!0),C=x+y,Object.prototype.hasOwnProperty.call(b,C))x=C;else{if(Object.prototype.hasOwnProperty.call(w,x)){if(x.charCodeAt(0)<256){for(p=0;p<D;p++)T=T<<1,A==d-1?(A=0,_.push(f(T)),T=0):A++;for(h=x.charCodeAt(0),p=0;p<8;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}else{for(h=1,p=0;p<D;p++)T=T<<1|h,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=0;for(h=x.charCodeAt(0),p=0;p<16;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}P--,P==0&&(P=Math.pow(2,D),D++),delete w[x]}else for(h=b[x],p=0;p<D;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1;P--,P==0&&(P=Math.pow(2,D),D++),b[C]=S++,x=String(y)}if(x!==""){if(Object.prototype.hasOwnProperty.call(w,x)){if(x.charCodeAt(0)<256){for(p=0;p<D;p++)T=T<<1,A==d-1?(A=0,_.push(f(T)),T=0):A++;for(h=x.charCodeAt(0),p=0;p<8;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}else{for(h=1,p=0;p<D;p++)T=T<<1|h,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=0;for(h=x.charCodeAt(0),p=0;p<16;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}P--,P==0&&(P=Math.pow(2,D),D++),delete w[x]}else for(h=b[x],p=0;p<D;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1;P--,P==0&&(P=Math.pow(2,D),D++)}for(h=2,p=0;p<D;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1;for(;;)if(T=T<<1,A==d-1){_.push(f(T));break}else A++;return _.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(d){return c.charCodeAt(d)})},_decompress:function(c,d,f){var p=[],h=4,b=4,w=3,y="",C=[],x,P,S,D,_,T,A,M={val:f(0),position:d,index:1};for(x=0;x<3;x+=1)p[x]=x;for(S=0,_=Math.pow(2,2),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;switch(S){case 0:for(S=0,_=Math.pow(2,8),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;A=r(S);break;case 1:for(S=0,_=Math.pow(2,16),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;A=r(S);break;case 2:return""}for(p[3]=A,P=A,C.push(A);;){if(M.index>c)return"";for(S=0,_=Math.pow(2,w),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;switch(A=S){case 0:for(S=0,_=Math.pow(2,8),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;p[b++]=r(S),A=b-1,h--;break;case 1:for(S=0,_=Math.pow(2,16),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;p[b++]=r(S),A=b-1,h--;break;case 2:return C.join("")}if(h==0&&(h=Math.pow(2,w),w++),p[A])y=p[A];else if(A===b)y=P+P.charAt(0);else return null;C.push(y),p[b++]=P+y.charAt(0),h--,P=y,h==0&&(h=Math.pow(2,w),w++)}}};return l})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(ph)),ph.exports}var bV=gV();const yV=AP(bV);function xS(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}const xV=(e,t,r,n,o,i,s)=>{const l=n+r.indent,c=r.colors;return e.map(d=>{const f=t[d];let p=s(f,r,l,o,i);return typeof f!="string"&&(p.indexOf(`
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(x,P){if(x){if(typeof x=="string")return p(x,P);var S=Object.prototype.toString.call(x).slice(8,-1);if(S==="Object"&&x.constructor&&(S=x.constructor.name),S==="Map"||S==="Set")return Array.from(x);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return p(x,P)}}function p(x,P){(P==null||P>x.length)&&(P=x.length);for(var S=0,D=new Array(P);S<P;S++)D[S]=x[S];return D}function h(x,P){var S=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(S!=null){var D=[],_=!0,T=!1,A,M;try{for(S=S.call(x);!(_=(A=S.next()).done)&&(D.push(A.value),!(P&&D.length===P));_=!0);}catch(U){T=!0,M=U}finally{try{!_&&S.return!=null&&S.return()}finally{if(T)throw M}}return D}}function b(x){if(Array.isArray(x))return x}var w=[].concat(e.default,t.default,r.default,n.default);w.forEach(function(x){var P=c(x,2),S=P[1],D=l(S.superClass),_;try{for(D.s();!(_=D.n()).done;){var T=_.value,A=l(T),M;try{var U=function(){var N=M.value,W=w.find(function(F){var j=c(F,1),re=j[0];return re===N});if(W)for(var K=W[1],L=0,G=Object.keys(K.props);L<G.length;L++){var k=G[L];Object.prototype.hasOwnProperty.call(S.props,k)||Object.assign(S.props,s({},k,K.props[k]))}};for(A.s();!(M=A.n()).done;)U()}catch(J){A.e(J)}finally{A.f()}}}catch(J){D.e(J)}finally{D.f()}});var y={entries:function(){return w},forEach:function(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,D=l(w),_;try{for(D.s();!(_=D.n()).done;){var T=c(_.value,2),A=T[0],M=T[1];P.call(S,M,A,w)}}catch(U){D.e(U)}finally{D.f()}},get:function(P){var S=w.find(function(D){return D[0]===P});return S&&S[1]},has:function(P){return!!y.get(P)},keys:function(){return w.map(function(P){var S=c(P,1),D=S[0];return D})},values:function(){return w.map(function(P){var S=c(P,2),D=S[1];return D})}},C=(0,o.default)(y,y.entries());return Ua.default=C,Ua}var Su={},fh={},VC;function pV(){if(VC)return fh;VC=1;var e=Object.prototype.hasOwnProperty;function t(r,n){var o,i;if(r===n)return!0;if(r&&n&&(o=r.constructor)===n.constructor){if(o===Date)return r.getTime()===n.getTime();if(o===RegExp)return r.toString()===n.toString();if(o===Array){if((i=r.length)===n.length)for(;i--&&t(r[i],n[i]););return i===-1}if(!o||typeof r=="object"){i=0;for(o in r)if(e.call(r,o)&&++i&&!e.call(n,o)||!(o in n)||!t(r[o],n[o]))return!1;return Object.keys(n).length===i}}return r!==r&&n!==n}return fh.dequal=t,fh}var KC;function mV(){if(KC)return Su;KC=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.default=void 0;var e=pV(),t=n(dc()),r=n(dg());function n(_){return _&&_.__esModule?_:{default:_}}function o(_,T){return l(_)||s(_,T)||d(_,T)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(_,T){var A=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(A!=null){var M=[],U=!0,J=!1,N,W;try{for(A=A.call(_);!(U=(N=A.next()).done)&&(M.push(N.value),!(T&&M.length===T));U=!0);}catch(K){J=!0,W=K}finally{try{!U&&A.return!=null&&A.return()}finally{if(J)throw W}}return M}}function l(_){if(Array.isArray(_))return _}function c(_,T){var A=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!A){if(Array.isArray(_)||(A=d(_))||T){A&&(_=A);var M=0,U=function(){};return{s:U,n:function(){return M>=_.length?{done:!0}:{done:!1,value:_[M++]}},e:function(L){throw L},f:U}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,N=!1,W;return{s:function(){A=A.call(_)},n:function(){var L=A.next();return J=L.done,L},e:function(L){N=!0,W=L},f:function(){try{!J&&A.return!=null&&A.return()}finally{if(N)throw W}}}}function d(_,T){if(_){if(typeof _=="string")return f(_,T);var A=Object.prototype.toString.call(_).slice(8,-1);if(A==="Object"&&_.constructor&&(A=_.constructor.name),A==="Map"||A==="Set")return Array.from(_);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return f(_,T)}}function f(_,T){(T==null||T>_.length)&&(T=_.length);for(var A=0,M=new Array(T);A<T;A++)M[A]=_[A];return M}for(var p=[],h=r.default.keys(),b=0;b<h.length;b++){var w=h[b],y=r.default.get(w);if(y)for(var C=[].concat(y.baseConcepts,y.relatedConcepts),x=0;x<C.length;x++){var P=C[x];P.module==="HTML"&&(function(){var _=P.concept;if(_){var T=p.find(function(J){return(0,e.dequal)(J,_)}),A;T?A=T[1]:A=[];for(var M=!0,U=0;U<A.length;U++)if(A[U]===w){M=!1;break}M&&A.push(w),p.push([_,A])}})()}}var S={entries:function(){return p},forEach:function(T){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,M=c(p),U;try{for(M.s();!(U=M.n()).done;){var J=o(U.value,2),N=J[0],W=J[1];T.call(A,W,N,p)}}catch(K){M.e(K)}finally{M.f()}},get:function(T){var A=p.find(function(M){return T.name===M[0].name&&(0,e.dequal)(T.attributes,M[0].attributes)});return A&&A[1]},has:function(T){return!!S.get(T)},keys:function(){return p.map(function(T){var A=o(T,1),M=A[0];return M})},values:function(){return p.map(function(T){var A=o(T,2),M=A[1];return M})}},D=(0,t.default)(S,S.entries());return Su.default=D,Su}var _u={},WC;function hV(){if(WC)return _u;WC=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.default=void 0;var e=r(dc()),t=r(dg());function r(T){return T&&T.__esModule?T:{default:T}}function n(T,A){return s(T)||i(T,A)||c(T,A)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(T,A){var M=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(M!=null){var U=[],J=!0,N=!1,W,K;try{for(M=M.call(T);!(J=(W=M.next()).done)&&(U.push(W.value),!(A&&U.length===A));J=!0);}catch(L){N=!0,K=L}finally{try{!J&&M.return!=null&&M.return()}finally{if(N)throw K}}return U}}function s(T){if(Array.isArray(T))return T}function l(T,A){var M=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!M){if(Array.isArray(T)||(M=c(T))||A){M&&(T=M);var U=0,J=function(){};return{s:J,n:function(){return U>=T.length?{done:!0}:{done:!1,value:T[U++]}},e:function(G){throw G},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,W=!1,K;return{s:function(){M=M.call(T)},n:function(){var G=M.next();return N=G.done,G},e:function(G){W=!0,K=G},f:function(){try{!N&&M.return!=null&&M.return()}finally{if(W)throw K}}}}function c(T,A){if(T){if(typeof T=="string")return d(T,A);var M=Object.prototype.toString.call(T).slice(8,-1);if(M==="Object"&&T.constructor&&(M=T.constructor.name),M==="Map"||M==="Set")return Array.from(T);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return d(T,A)}}function d(T,A){(A==null||A>T.length)&&(A=T.length);for(var M=0,U=new Array(A);M<A;M++)U[M]=T[M];return U}for(var f=[],p=t.default.keys(),h=0;h<p.length;h++){var b=p[h],w=t.default.get(b),y=[];if(w){for(var C=[].concat(w.baseConcepts,w.relatedConcepts),x=0;x<C.length;x++){var P=C[x];if(P.module==="HTML"){var S=P.concept;S!=null&&y.push(S)}}y.length>0&&f.push([b,y])}}var D={entries:function(){return f},forEach:function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,U=l(f),J;try{for(U.s();!(J=U.n()).done;){var N=n(J.value,2),W=N[0],K=N[1];A.call(M,K,W,f)}}catch(L){U.e(L)}finally{U.f()}},get:function(A){var M=f.find(function(U){return U[0]===A});return M&&M[1]},has:function(A){return!!D.get(A)},keys:function(){return f.map(function(A){var M=n(A,1),U=M[0];return U})},values:function(){return f.map(function(A){var M=n(A,2),U=M[1];return U})}},_=(0,e.default)(D,D.entries());return _u.default=_,_u}var HC;function vV(){if(HC)return Cr;HC=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.roles=Cr.roleElements=Cr.elementRoles=Cr.dom=Cr.aria=void 0;var e=i(M7()),t=i(O7()),r=i(dg()),n=i(mV()),o=i(hV());function i(p){return p&&p.__esModule?p:{default:p}}var s=e.default;Cr.aria=s;var l=t.default;Cr.dom=l;var c=r.default;Cr.roles=c;var d=n.default;Cr.elementRoles=d;var f=o.default;return Cr.roleElements=f,Cr}var Fr=vV(),ph={exports:{}},UC;function gV(){return UC||(UC=1,(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function s(c,d){if(!i[c]){i[c]={};for(var f=0;f<c.length;f++)i[c][c.charAt(f)]=f}return i[c][d]}var l={compressToBase64:function(c){if(c==null)return"";var d=l._compress(c,6,function(f){return n.charAt(f)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(d){return s(n,c.charAt(d))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(d){return r(d+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(d){return c.charCodeAt(d)-32})},compressToUint8Array:function(c){for(var d=l.compress(c),f=new Uint8Array(d.length*2),p=0,h=d.length;p<h;p++){var b=d.charCodeAt(p);f[p*2]=b>>>8,f[p*2+1]=b%256}return f},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var d=new Array(c.length/2),f=0,p=d.length;f<p;f++)d[f]=c[f*2]*256+c[f*2+1];var h=[];return d.forEach(function(b){h.push(r(b))}),l.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(d){return o.charAt(d)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(d){return s(o,c.charAt(d))}))},compress:function(c){return l._compress(c,16,function(d){return r(d)})},_compress:function(c,d,f){if(c==null)return"";var p,h,b={},w={},y="",C="",x="",P=2,S=3,D=2,_=[],T=0,A=0,M;for(M=0;M<c.length;M+=1)if(y=c.charAt(M),Object.prototype.hasOwnProperty.call(b,y)||(b[y]=S++,w[y]=!0),C=x+y,Object.prototype.hasOwnProperty.call(b,C))x=C;else{if(Object.prototype.hasOwnProperty.call(w,x)){if(x.charCodeAt(0)<256){for(p=0;p<D;p++)T=T<<1,A==d-1?(A=0,_.push(f(T)),T=0):A++;for(h=x.charCodeAt(0),p=0;p<8;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}else{for(h=1,p=0;p<D;p++)T=T<<1|h,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=0;for(h=x.charCodeAt(0),p=0;p<16;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}P--,P==0&&(P=Math.pow(2,D),D++),delete w[x]}else for(h=b[x],p=0;p<D;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1;P--,P==0&&(P=Math.pow(2,D),D++),b[C]=S++,x=String(y)}if(x!==""){if(Object.prototype.hasOwnProperty.call(w,x)){if(x.charCodeAt(0)<256){for(p=0;p<D;p++)T=T<<1,A==d-1?(A=0,_.push(f(T)),T=0):A++;for(h=x.charCodeAt(0),p=0;p<8;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}else{for(h=1,p=0;p<D;p++)T=T<<1|h,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=0;for(h=x.charCodeAt(0),p=0;p<16;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1}P--,P==0&&(P=Math.pow(2,D),D++),delete w[x]}else for(h=b[x],p=0;p<D;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1;P--,P==0&&(P=Math.pow(2,D),D++)}for(h=2,p=0;p<D;p++)T=T<<1|h&1,A==d-1?(A=0,_.push(f(T)),T=0):A++,h=h>>1;for(;;)if(T=T<<1,A==d-1){_.push(f(T));break}else A++;return _.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(d){return c.charCodeAt(d)})},_decompress:function(c,d,f){var p=[],h=4,b=4,w=3,y="",C=[],x,P,S,D,_,T,A,M={val:f(0),position:d,index:1};for(x=0;x<3;x+=1)p[x]=x;for(S=0,_=Math.pow(2,2),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;switch(S){case 0:for(S=0,_=Math.pow(2,8),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;A=r(S);break;case 1:for(S=0,_=Math.pow(2,16),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;A=r(S);break;case 2:return""}for(p[3]=A,P=A,C.push(A);;){if(M.index>c)return"";for(S=0,_=Math.pow(2,w),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;switch(A=S){case 0:for(S=0,_=Math.pow(2,8),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;p[b++]=r(S),A=b-1,h--;break;case 1:for(S=0,_=Math.pow(2,16),T=1;T!=_;)D=M.val&M.position,M.position>>=1,M.position==0&&(M.position=d,M.val=f(M.index++)),S|=(D>0?1:0)*T,T<<=1;p[b++]=r(S),A=b-1,h--;break;case 2:return C.join("")}if(h==0&&(h=Math.pow(2,w),w++),p[A])y=p[A];else if(A===b)y=P+P.charAt(0);else return null;C.push(y),p[b++]=P+y.charAt(0),h--,P=y,h==0&&(h=Math.pow(2,w),w++)}}};return l})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(ph)),ph.exports}var bV=gV();const yV=AP(bV);function xS(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}const xV=(e,t,r,n,o,i,s)=>{const l=n+r.indent,c=r.colors;return e.map(d=>{const f=t[d];let p=s(f,r,l,o,i);return typeof f!="string"&&(p.indexOf(`
65
65
  `)!==-1&&(p=r.spacingOuter+l+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+c.prop.open+d+c.prop.close+"="+c.value.open+p+c.value.close}).join("")},wV=3,EV=(e,t,r,n,o,i)=>e.map(s=>{const l=typeof s=="string"?wS(s,t):i(s,t,r,n,o);return l===""&&typeof s=="object"&&s!==null&&s.nodeType!==wV?"":t.spacingOuter+r+l}).join(""),wS=(e,t)=>{const r=t.colors.content;return r.open+xS(e)+r.close},CV=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+xS(e)+"-->"+r.close},RV=(e,t,r,n,o)=>{const i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},PV=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},SV=1,ES=3,CS=8,RS=11,_V=/^((HTML|SVG)\w*)?Element$/,PS=e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},TV=e=>{const t=e.constructor.name,{nodeType:r}=e;return r===SV&&(_V.test(t)||PS(e))||r===ES&&t==="Text"||r===CS&&t==="Comment"||r===RS&&t==="DocumentFragment"};function $V(e){return e.nodeType===ES}function AV(e){return e.nodeType===CS}function mh(e){return e.nodeType===RS}function DV(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||PS(t))&&TV(t)},serialize:(t,r,n,o,i,s)=>{if($V(t))return wS(t.data,r);if(AV(t))return CV(t.data,r);const l=mh(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?PV(l,r):RV(l,xV(mh(t)?[]:Array.from(t.attributes).map(c=>c.name).sort(),mh(t)?{}:Array.from(t.attributes).reduce((c,d)=>(c[d.name]=d.value,c),{}),r,n+r.indent,o,i,s),EV(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,s),r,n)}}}let SS=null,fg=null,pg=null;try{const e=module&&module.require;fg=e.call(module,"fs").readFileSync,pg=e.call(module,"@babel/code-frame").codeFrameColumns,SS=e.call(module,"chalk")}catch{}function MV(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,s,l]=[o[0],parseInt(o[1],10),parseInt(o[2],10)];let c="";try{c=fg(i,"utf-8")}catch{return""}const d=pg(c,{start:{line:s,column:l}},{highlightCode:!0,linesBelow:0});return SS.dim(n)+`
66
66
  `+d+`
67
67
  `}function OV(){if(!fg||!pg)return"";const t=new Error().stack.split(`
@@ -91,7 +91,7 @@ Here are the matching elements:
91
91
  `+e.toString()+`
92
92
  `,t)}function lK(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const s=e(r,...o);if(!s.length)throw dt().getElementError(t(r,...o),r);return s}}function mf(e){return(t,r,n,o)=>aK(()=>e(t,r,n),{container:t,...o})}const ra=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];const l=e(n,...i),[{suggest:c=dt().throwSuggestions}={}]=i.slice(-1);if(l&&c){const d=Uh(l,r);if(d&&!t.endsWith(d.queryName))throw LS(d.toString(),n)}return l},Wr=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];const l=e(n,...i),[{suggest:c=dt().throwSuggestions}={}]=i.slice(-1);if(l.length&&c){const d=[...new Set(l.map(f=>{var p;return(p=Uh(f,r))==null?void 0:p.toString()}))];if(d.length===1&&!t.endsWith(Uh(l[0],r).queryName))throw LS(d[0],n)}return l};function wi(e,t,r){const n=ra(pf(e,t),e.name,"query"),o=lK(e,r),i=pf(o,t),s=ra(i,e.name,"get"),l=Wr(o,e.name.replace("query","get"),"getAll"),c=mf(Wr(o,e.name,"findAll")),d=mf(ra(i,e.name,"find"));return[n,l,s,c,d]}function uK(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Hh(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const cK=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:s}=r===void 0?{}:r;const l=n?Gn:ga,c=xi({collapseWhitespace:i,trim:o,normalizer:s});return uK(e).filter(f=>{let{node:p,textToMatch:h}=f;return l(h,p,t,c)}).map(f=>{let{node:p}=f;return p})},Uu=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,normalizer:l}=r===void 0?{}:r;to(e);const c=o?Gn:ga,d=xi({collapseWhitespace:i,trim:s,normalizer:l}),f=Array.from(e.querySelectorAll("*")).filter(p=>AS(p).length||p.hasAttribute("aria-labelledby")).reduce((p,h)=>{const b=DS(e,h,{selector:n});b.filter(y=>!!y.formControl).forEach(y=>{c(y.content,y.formControl,t,d)&&y.formControl&&p.push(y.formControl)});const w=b.filter(y=>!!y.content).map(y=>y.content);return c(w.join(" "),h,t,d)&&p.push(h),w.length>1&&w.forEach((y,C)=>{c(y,h,t,d)&&p.push(h);const x=[...w];x.splice(C,1),x.length>1&&c(x.join(" "),h,t,d)&&p.push(h)}),p},[]).concat(Zf("aria-label",e,t,{exact:o,normalizer:d}));return Array.from(new Set(f)).filter(p=>p.matches(n))},ci=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];const i=Uu(e,t,...n);if(!i.length){const s=cK(e,t,...n);if(s.length){const l=s.map(c=>dK(e,c)).filter(c=>!!c);throw l.length?dt().getElementError(l.map(c=>"Found a label with the text of: "+t+", however the element associated with this label (<"+c+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+c+" />, you can use aria-label or aria-labelledby instead.").join(`
93
93
 
94
- `),e):dt().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw dt().getElementError("Unable to find a label with the text of: "+t,e)}return i};function dK(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const FS=(e,t)=>"Found multiple elements with the text of: "+t,fK=ra(pf(Uu,FS),Uu.name,"query"),qS=pf(ci,FS),pK=mf(Wr(ci,ci.name,"findAll")),mK=mf(ra(qS,ci.name,"find")),hK=Wr(ci,ci.name,"getAll"),vK=ra(qS,ci.name,"get"),gK=Wr(Uu,Uu.name,"queryAll"),zh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return to(t[0]),Zf("placeholder",...t)},bK=(e,t)=>"Found multiple elements with the placeholder text of: "+t,yK=(e,t)=>"Unable to find an element with the placeholder text of: "+t,xK=Wr(zh,zh.name,"queryAll"),[wK,EK,CK,RK,PK]=wi(zh,bK,yK),Gh=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,ignore:l=dt().defaultIgnore,normalizer:c}=r===void 0?{}:r;to(e);const d=o?Gn:ga,f=xi({collapseWhitespace:i,trim:s,normalizer:c});let p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(h=>!l||!h.matches(l)).filter(h=>d(Xf(h),h,t,f))},SK=(e,t)=>"Found multiple elements with the text: "+t,_K=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:o,normalizer:i,selector:s}=r,c=xi({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),d=c!==t.toString(),f=(s??"*")!=="*";return"Unable to find an element with the text: "+(d?c+" (normalized from '"+t+"')":t)+(f?", which matches selector '"+s+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},TK=Wr(Gh,Gh.name,"queryAll"),[$K,AK,DK,MK,OK]=wi(Gh,SK,_K),Yh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;to(e);const l=n?Gn:ga,c=xi({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(d=>d.tagName==="SELECT"?Array.from(d.options).filter(p=>p.selected).some(p=>l(Xf(p),p,t,c)):l(d.value,d,t,c))},NK=(e,t)=>"Found multiple elements with the display value: "+t+".",IK=(e,t)=>"Unable to find an element with the display value: "+t+".",kK=Wr(Yh,Yh.name,"queryAll"),[LK,FK,qK,jK,BK]=wi(Yh,NK,IK),VK=/^(img|input|area|.+-.+)$/i,Xh=function(e,t,r){return r===void 0&&(r={}),to(e),Zf("alt",e,t,r).filter(n=>VK.test(n.tagName))},KK=(e,t)=>"Found multiple elements with the alt text: "+t,WK=(e,t)=>"Unable to find an element with the alt text: "+t,HK=Wr(Xh,Xh.name,"queryAll"),[UK,zK,GK,YK,XK]=wi(Xh,KK,WK),ZK=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},Zh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;to(e);const l=n?Gn:ga,c=xi({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(d=>l(d.getAttribute("title"),d,t,c)||ZK(d)&&l(Xf(d),d,t,c))},QK=(e,t)=>"Found multiple elements with the title: "+t+".",JK=(e,t)=>"Unable to find an element with the title: "+t+".",eW=Wr(Zh,Zh.name,"queryAll"),[tW,rW,nW,oW,iW]=wi(Zh,QK,JK),Qh=function(e,t,r){let{hidden:n=dt().defaultHidden,name:o,description:i,queryFallbacks:s=!1,selected:l,busy:c,checked:d,pressed:f,current:p,level:h,expanded:b,value:{now:w,min:y,max:C,text:x}={}}=r===void 0?{}:r;if(to(e),l!==void 0){var P;if(((P=Fr.roles.get(t))==null?void 0:P.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var S;if(((S=Fr.roles.get(t))==null?void 0:S.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(d!==void 0){var D;if(((D=Fr.roles.get(t))==null?void 0:D.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(f!==void 0){var _;if(((_=Fr.roles.get(t))==null?void 0:_.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var T;if(((T=Fr.roles.get(t))==null?void 0:T.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(w!==void 0){var A;if(((A=Fr.roles.get(t))==null?void 0:A.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(C!==void 0){var M;if(((M=Fr.roles.get(t))==null?void 0:M.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(y!==void 0){var U;if(((U=Fr.roles.get(t))==null?void 0:U.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(x!==void 0){var J;if(((J=Fr.roles.get(t))==null?void 0:J.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(b!==void 0){var N;if(((N=Fr.roles.get(t))==null?void 0:N.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const W=new WeakMap;function F(L){return W.has(L)||W.set(L,IS(L)),W.get(L)}return Array.from(e.querySelectorAll(aW(t))).filter(L=>{if(L.hasAttribute("role")){const q=L.getAttribute("role");if(s)return q.split(" ").filter(Boolean).some(re=>re===t);const[B]=q.split(" ");return B===t}return vg(L).some(q=>q===t)}).filter(L=>{if(l!==void 0)return l===zV(L);if(c!==void 0)return c===GV(L);if(d!==void 0)return d===YV(L);if(f!==void 0)return f===XV(L);if(p!==void 0)return p===ZV(L);if(b!==void 0)return b===QV(L);if(h!==void 0)return h===JV(L);if(w!==void 0||C!==void 0||y!==void 0||x!==void 0){let k=!0;if(w!==void 0&&k&&(k=w===eK(L)),C!==void 0&&k&&(k=C===tK(L)),y!==void 0&&k&&(k=y===rK(L)),x!==void 0){var G;k&&(k=Gn((G=nK(L))!=null?G:null,L,x,q=>q))}return k}return!0}).filter(L=>o===void 0?!0:Gn(cg(L,{computedStyleSupportsPseudoElements:dt().computedStyleSupportsPseudoElements}),L,o,G=>G)).filter(L=>i===void 0?!0:Gn(yS(L,{computedStyleSupportsPseudoElements:dt().computedStyleSupportsPseudoElements}),L,i,G=>G)).filter(L=>n===!1?hg(L,{isSubtreeInaccessible:F})===!1:!0)};function aW(e){var t;const r='*[role~="'+e+'"]',n=(t=Fr.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:s}=i;return s}));return[r].concat(Array.from(o)).join(",")}const jS=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},sW=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+jS(n)},lW=function(e,t,r){let{hidden:n=dt().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(dt()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+jS(o);let s="";Array.from(e.children).forEach(f=>{s+=UV(f,{hidden:n,includeDescription:i!==void 0})});let l;s.length===0?n===!1?l="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":l="There are no available roles.":l=(`
94
+ `),e):dt().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw dt().getElementError("Unable to find a label with the text of: "+t,e)}return i};function dK(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const FS=(e,t)=>"Found multiple elements with the text of: "+t,fK=ra(pf(Uu,FS),Uu.name,"query"),qS=pf(ci,FS),pK=mf(Wr(ci,ci.name,"findAll")),mK=mf(ra(qS,ci.name,"find")),hK=Wr(ci,ci.name,"getAll"),vK=ra(qS,ci.name,"get"),gK=Wr(Uu,Uu.name,"queryAll"),zh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return to(t[0]),Zf("placeholder",...t)},bK=(e,t)=>"Found multiple elements with the placeholder text of: "+t,yK=(e,t)=>"Unable to find an element with the placeholder text of: "+t,xK=Wr(zh,zh.name,"queryAll"),[wK,EK,CK,RK,PK]=wi(zh,bK,yK),Gh=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,ignore:l=dt().defaultIgnore,normalizer:c}=r===void 0?{}:r;to(e);const d=o?Gn:ga,f=xi({collapseWhitespace:i,trim:s,normalizer:c});let p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(h=>!l||!h.matches(l)).filter(h=>d(Xf(h),h,t,f))},SK=(e,t)=>"Found multiple elements with the text: "+t,_K=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:o,normalizer:i,selector:s}=r,c=xi({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),d=c!==t.toString(),f=(s??"*")!=="*";return"Unable to find an element with the text: "+(d?c+" (normalized from '"+t+"')":t)+(f?", which matches selector '"+s+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},TK=Wr(Gh,Gh.name,"queryAll"),[$K,AK,DK,MK,OK]=wi(Gh,SK,_K),Yh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;to(e);const l=n?Gn:ga,c=xi({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(d=>d.tagName==="SELECT"?Array.from(d.options).filter(p=>p.selected).some(p=>l(Xf(p),p,t,c)):l(d.value,d,t,c))},NK=(e,t)=>"Found multiple elements with the display value: "+t+".",IK=(e,t)=>"Unable to find an element with the display value: "+t+".",kK=Wr(Yh,Yh.name,"queryAll"),[LK,FK,qK,jK,BK]=wi(Yh,NK,IK),VK=/^(img|input|area|.+-.+)$/i,Xh=function(e,t,r){return r===void 0&&(r={}),to(e),Zf("alt",e,t,r).filter(n=>VK.test(n.tagName))},KK=(e,t)=>"Found multiple elements with the alt text: "+t,WK=(e,t)=>"Unable to find an element with the alt text: "+t,HK=Wr(Xh,Xh.name,"queryAll"),[UK,zK,GK,YK,XK]=wi(Xh,KK,WK),ZK=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},Zh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;to(e);const l=n?Gn:ga,c=xi({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(d=>l(d.getAttribute("title"),d,t,c)||ZK(d)&&l(Xf(d),d,t,c))},QK=(e,t)=>"Found multiple elements with the title: "+t+".",JK=(e,t)=>"Unable to find an element with the title: "+t+".",eW=Wr(Zh,Zh.name,"queryAll"),[tW,rW,nW,oW,iW]=wi(Zh,QK,JK),Qh=function(e,t,r){let{hidden:n=dt().defaultHidden,name:o,description:i,queryFallbacks:s=!1,selected:l,busy:c,checked:d,pressed:f,current:p,level:h,expanded:b,value:{now:w,min:y,max:C,text:x}={}}=r===void 0?{}:r;if(to(e),l!==void 0){var P;if(((P=Fr.roles.get(t))==null?void 0:P.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var S;if(((S=Fr.roles.get(t))==null?void 0:S.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(d!==void 0){var D;if(((D=Fr.roles.get(t))==null?void 0:D.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(f!==void 0){var _;if(((_=Fr.roles.get(t))==null?void 0:_.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var T;if(((T=Fr.roles.get(t))==null?void 0:T.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(w!==void 0){var A;if(((A=Fr.roles.get(t))==null?void 0:A.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(C!==void 0){var M;if(((M=Fr.roles.get(t))==null?void 0:M.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(y!==void 0){var U;if(((U=Fr.roles.get(t))==null?void 0:U.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(x!==void 0){var J;if(((J=Fr.roles.get(t))==null?void 0:J.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(b!==void 0){var N;if(((N=Fr.roles.get(t))==null?void 0:N.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const W=new WeakMap;function K(L){return W.has(L)||W.set(L,IS(L)),W.get(L)}return Array.from(e.querySelectorAll(aW(t))).filter(L=>{if(L.hasAttribute("role")){const F=L.getAttribute("role");if(s)return F.split(" ").filter(Boolean).some(re=>re===t);const[j]=F.split(" ");return j===t}return vg(L).some(F=>F===t)}).filter(L=>{if(l!==void 0)return l===zV(L);if(c!==void 0)return c===GV(L);if(d!==void 0)return d===YV(L);if(f!==void 0)return f===XV(L);if(p!==void 0)return p===ZV(L);if(b!==void 0)return b===QV(L);if(h!==void 0)return h===JV(L);if(w!==void 0||C!==void 0||y!==void 0||x!==void 0){let k=!0;if(w!==void 0&&k&&(k=w===eK(L)),C!==void 0&&k&&(k=C===tK(L)),y!==void 0&&k&&(k=y===rK(L)),x!==void 0){var G;k&&(k=Gn((G=nK(L))!=null?G:null,L,x,F=>F))}return k}return!0}).filter(L=>o===void 0?!0:Gn(cg(L,{computedStyleSupportsPseudoElements:dt().computedStyleSupportsPseudoElements}),L,o,G=>G)).filter(L=>i===void 0?!0:Gn(yS(L,{computedStyleSupportsPseudoElements:dt().computedStyleSupportsPseudoElements}),L,i,G=>G)).filter(L=>n===!1?hg(L,{isSubtreeInaccessible:K})===!1:!0)};function aW(e){var t;const r='*[role~="'+e+'"]',n=(t=Fr.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:s}=i;return s}));return[r].concat(Array.from(o)).join(",")}const jS=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},sW=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+jS(n)},lW=function(e,t,r){let{hidden:n=dt().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(dt()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+jS(o);let s="";Array.from(e.children).forEach(f=>{s+=UV(f,{hidden:n,includeDescription:i!==void 0})});let l;s.length===0?n===!1?l="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":l="There are no available roles.":l=(`
95
95
  Here are the `+(n===!1?"accessible":"available")+` roles:
96
96
 
97
97
  `+s.replace(/\n/g,`
@@ -104,9 +104,9 @@ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+c+
104
104
  `+l).trim()},uW=Wr(Qh,Qh.name,"queryAll"),[cW,dW,fW,pW,mW]=wi(Qh,sW,lW),gg=()=>dt().testIdAttribute,Jh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return to(t[0]),Zf(gg(),...t)},hW=(e,t)=>"Found multiple elements by: ["+gg()+'="'+t+'"]',vW=(e,t)=>"Unable to find an element by: ["+gg()+'="'+t+'"]',gW=Wr(Jh,Jh.name,"queryAll"),[bW,yW,xW,wW,EW]=wi(Jh,hW,vW);var ev=Object.freeze({__proto__:null,queryAllByLabelText:gK,queryByLabelText:fK,getAllByLabelText:hK,getByLabelText:vK,findAllByLabelText:pK,findByLabelText:mK,queryByPlaceholderText:wK,queryAllByPlaceholderText:xK,getByPlaceholderText:CK,getAllByPlaceholderText:EK,findAllByPlaceholderText:RK,findByPlaceholderText:PK,queryByText:$K,queryAllByText:TK,getByText:DK,getAllByText:AK,findAllByText:MK,findByText:OK,queryByDisplayValue:LK,queryAllByDisplayValue:kK,getByDisplayValue:qK,getAllByDisplayValue:FK,findAllByDisplayValue:jK,findByDisplayValue:BK,queryByAltText:UK,queryAllByAltText:HK,getByAltText:GK,getAllByAltText:zK,findAllByAltText:YK,findByAltText:XK,queryByTitle:tW,queryAllByTitle:eW,getByTitle:nW,getAllByTitle:rW,findAllByTitle:oW,findByTitle:iW,queryByRole:cW,queryAllByRole:uW,getAllByRole:dW,getByRole:fW,findAllByRole:pW,findByRole:mW,queryByTestId:bW,queryAllByTestId:gW,getByTestId:xW,getAllByTestId:yW,findAllByTestId:wW,findByTestId:EW});function CW(e,t,r){return t===void 0&&(t=ev),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{const i=t[o];return n[o]=i.bind(null,e),n},r)}const XC={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},ZC={doubleClick:"dblClick"};function di(e,t){return dt().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function vh(e,t,r,n){let{EventType:o="Event",defaultInit:i={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const s={...i,...r},{target:{value:l,files:c,...d}={}}=s;l!==void 0&&RW(t,l),c!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,d);const f=TS(t),p=f[o]||f.Event;let h;if(typeof p=="function")h=new p(e,s);else{h=f.document.createEvent(o);const{bubbles:w,cancelable:y,detail:C,...x}=s;h.initEvent(e,w,y,C),Object.keys(x).forEach(P=>{h[P]=x[P]})}return["dataTransfer","clipboardData"].forEach(w=>{const y=s[w];typeof y=="object"&&(typeof f.DataTransfer=="function"?Object.defineProperty(h,w,{value:Object.getOwnPropertyNames(y).reduce((C,x)=>(Object.defineProperty(C,x,{value:y[x]}),C),new f.DataTransfer)}):Object.defineProperty(h,w,{value:y}))}),h}Object.keys(XC).forEach(e=>{const{EventType:t,defaultInit:r}=XC[e],n=e.toLowerCase();vh[e]=(o,i)=>vh(n,o,i,{EventType:t,defaultInit:r}),di[e]=(o,i)=>di(o,vh[e](o,i))});function RW(e,t){const{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(ZC).forEach(e=>{const t=ZC[e];di[e]=function(){return di[t](...arguments)}});function PW(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
105
105
  `)}function SW(e){return yV.compressToEncodedURIComponent(PW(e))}function _W(e){return"https://testing-playground.com/#markup="+SW(e)}const TW=(e,t,r)=>Array.isArray(e)?e.forEach(n=>zC(n,t,r)):zC(e,t,r),$W=function(e){if(e===void 0&&(e=mg().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=_W(e.innerHTML);return console.log(`Open this URL in your browser
106
106
 
107
- `+t),t},QC={debug:TW,logTestingPlaygroundURL:$W};typeof document<"u"&&document.body?CW(document.body,ev,QC):Object.keys(ev).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),QC);const AW=typeof v.act=="function"?v.act:WL.act;function BS(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function Hn(e){BS().IS_REACT_ACT_ENVIRONMENT=e}function hf(){return BS().IS_REACT_ACT_ENVIRONMENT}function DW(e){return t=>{const r=hf();Hn(!0);try{let n=!1;const o=e(()=>{const i=t();return i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n=!0),i});if(n){const i=o;return{then:(s,l)=>{i.then(c=>{Hn(r),s(c)},c=>{Hn(r),l(c)})}}}else return Hn(r),o}catch(n){throw Hn(r),n}}}const zu=DW(AW),Rt=function(){return di(...arguments)};Object.keys(di).forEach(e=>{Rt[e]=function(){return di[e](...arguments)}});const MW=Rt.mouseEnter,OW=Rt.mouseLeave;Rt.mouseEnter=function(){return MW(...arguments),Rt.mouseOver(...arguments)};Rt.mouseLeave=function(){return OW(...arguments),Rt.mouseOut(...arguments)};const NW=Rt.pointerEnter,IW=Rt.pointerLeave;Rt.pointerEnter=function(){return NW(...arguments),Rt.pointerOver(...arguments)};Rt.pointerLeave=function(){return IW(...arguments),Rt.pointerOut(...arguments)};const kW=Rt.select;Rt.select=(e,t)=>{kW(e,t),e.focus(),Rt.keyUp(e,t)};const LW=Rt.blur,FW=Rt.focus;Rt.blur=function(){return Rt.focusOut(...arguments),LW(...arguments)};Rt.focus=function(){return Rt.focusIn(...arguments),FW(...arguments)};function qW(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}jV({unstable_advanceTimersWrapper:e=>zu(e),asyncWrapper:async e=>{const t=hf();Hn(!1);try{const r=await e();return await new Promise(n=>{setTimeout(()=>{n()},0),qW()&&jest.advanceTimersByTime(0)}),r}finally{Hn(t)}},eventWrapper:e=>{let t;return zu(()=>{t=e()}),t}});const jW=new Set,JC=[];function eR(){JC.forEach(e=>{let{root:t,container:r}=e;zu(()=>{t.unmount()}),r.parentNode===document.body&&document.body.removeChild(r)}),JC.length=0,jW.clear()}if((typeof process>"u"||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach=="function"?afterEach(()=>{eR()}):typeof teardown=="function"&&teardown(()=>{eR()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=hf();beforeAll(()=>{e=hf(),Hn(!0)}),afterAll(()=>{Hn(e)})}const BW=e=>zu(()=>e.click()),VW=(e,t)=>zu(()=>{Rt.change(e,{target:{value:t}})}),KW=eo("overflow-hidden pb-px aspect-square bg-muted grid place-items-center font-semibold",{variants:{variant:{circle:"rounded-full",square:"rounded"},size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{variant:"circle",size:"md"}}),WW=({variant:e,size:t,fallback:r,alt:n,src:o,className:i,imageProps:s,...l})=>{const[c,d]=R.useState(!o),f=R.useMemo(()=>uS(n),[n]);return R.useEffect(()=>{c&&d(!0)},[o,c]),g.jsx("div",{...l,"data-slot":"avatar",className:le(KW({variant:e,size:t}),i),children:c?g.jsx("span",{"data-slot":"avatar-fallback",children:r||f}):g.jsx("img",{...s,"data-slot":"avatar-image",alt:n,src:o,onError:p=>{d(!0),s?.onError?.(p)},className:le("object-cover w-full h-full text-transparent",s?.className)})})},HW=({src:e,...t})=>g.jsx("div",{...t,"data-slot":"background-image",className:le("w-full block bg-cover bg-center",t.className),style:{...t.style,backgroundImage:`url(${e})`}}),VS=6048e5,UW=864e5,zW=6e4,GW=36e5,YW=1e3,tR=Symbol.for("constructDateFrom");function ft(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&tR in e?e[tR](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ye(e,t){return ft(t||e,e)}function KS(e,t,r){const n=Ye(e,r?.in);return isNaN(t)?ft(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}function tv(e,t,r){const n=Ye(e,r?.in);if(isNaN(t))return ft(e,NaN);if(!t)return n;const o=n.getDate(),i=ft(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function XW(e,t){const r=Ye(e,t?.in).getDay();return r===0||r===6}let ZW={};function ba(){return ZW}function Yn(e,t){const r=ba(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Ye(e,t?.in),i=o.getDay(),s=(i<n?7:0)+i-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function sa(e,t){return Yn(e,{...t,weekStartsOn:1})}function WS(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=ft(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=sa(o),s=ft(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const l=sa(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function vf(e){const t=Ye(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Qf(e,...t){const r=ft.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Po(e,t){const r=Ye(e,t?.in);return r.setHours(0,0,0,0),r}function QW(e,t,r){const[n,o]=Qf(r?.in,e,t),i=Po(n),s=Po(o),l=+i-vf(i),c=+s-vf(s);return Math.round((l-c)/UW)}function JW(e,t){const r=WS(e,t),n=ft(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),sa(n)}function qd(e,t,r){return tv(e,t*12,r)}function eH(e){return ft(e,Date.now())}function ai(e,t,r){const[n,o]=Qf(r?.in,e,t);return+Po(n)==+Po(o)}function fi(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tH(e){return!(!fi(e)&&typeof e!="number"||isNaN(+Ye(e)))}function rH(e,t){const r=Ye(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function HS(e,t){const[r,n]=Qf(e,t.start,t.end);return{start:r,end:n}}function US(e,t){const{start:r,end:n}=HS(t?.in,e);let o=+r>+n;const i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(ft(r,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function nH(e,t){const r=Ye(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function zS(e,t){const{start:r,end:n}=HS(t?.in,e);let o=+r>+n;const i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let l=1;const c=[];for(;+s<=i;)c.push(ft(r,s)),s.setFullYear(s.getFullYear()+l);return o?c.reverse():c}function GS(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}function oH(e,t){const r=t?.weekStartsOn,n=Ye(e,t?.in),o=n.getDay(),i=(o<r?-7:0)+6-(o-r);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}const iH={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aH=(e,t,r)=>{let n;const o=iH[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function na(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const sH={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cH={date:na({formats:sH,defaultWidth:"full"}),time:na({formats:lH,defaultWidth:"full"}),dateTime:na({formats:uH,defaultWidth:"full"})},dH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fH=(e,t,r,n)=>dH[e];function hn(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const pH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vH={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yH=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xH={ordinalNumber:yH,era:hn({values:pH,defaultWidth:"wide"}),quarter:hn({values:mH,defaultWidth:"wide",argumentCallback:e=>e-1}),month:hn({values:hH,defaultWidth:"wide"}),day:hn({values:vH,defaultWidth:"wide"}),dayPeriod:hn({values:gH,defaultWidth:"wide",formattingValues:bH,defaultFormattingWidth:"wide"})};function vn(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?EH(l,p=>p.test(s)):wH(l,p=>p.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=r.valueCallback?r.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function wH(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function EH(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function YS(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const CH=/^(\d+)(th|st|nd|rd)?/i,RH=/\d+/i,PH={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},SH={any:[/^b/i,/^(a|c)/i]},_H={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},$H={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},AH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},DH={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MH={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},OH={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},NH={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},IH={ordinalNumber:YS({matchPattern:CH,parsePattern:RH,valueCallback:e=>parseInt(e,10)}),era:vn({matchPatterns:PH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:vn({matchPatterns:_H,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vn({matchPatterns:$H,defaultMatchWidth:"wide",parsePatterns:AH,defaultParseWidth:"any"}),day:vn({matchPatterns:DH,defaultMatchWidth:"wide",parsePatterns:MH,defaultParseWidth:"any"}),dayPeriod:vn({matchPatterns:OH,defaultMatchWidth:"any",parsePatterns:NH,defaultParseWidth:"any"})},XS={code:"en-US",formatDistance:aH,formatLong:cH,formatRelative:fH,localize:xH,match:IH,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kH(e,t){const r=Ye(e,t?.in);return QW(r,nH(r))+1}function ZS(e,t){const r=Ye(e,t?.in),n=+sa(r)-+JW(r);return Math.round(n/VS)+1}function bg(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=ba(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=ft(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);const l=Yn(s,t),c=ft(t?.in||e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const d=Yn(c,t);return+r>=+l?n+1:+r>=+d?n:n-1}function LH(e,t){const r=ba(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=bg(e,t),i=ft(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Yn(i,t)}function QS(e,t){const r=Ye(e,t?.in),n=+Yn(r,t)-+LH(r,t);return Math.round(n/VS)+1}function it(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const go={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return it(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):it(r+1,2)},d(e,t){return it(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return it(e.getHours()%12||12,t.length)},H(e,t){return it(e.getHours(),t.length)},m(e,t){return it(e.getMinutes(),t.length)},s(e,t){return it(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return it(o,t.length)}},Hi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rR={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return go.y(e,t)},Y:function(e,t,r,n){const o=bg(e,n),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return it(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):it(i,t.length)},R:function(e,t){const r=WS(e);return it(r,t.length)},u:function(e,t){const r=e.getFullYear();return it(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return it(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return it(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return go.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return it(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=QS(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):it(o,t.length)},I:function(e,t,r){const n=ZS(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):it(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):go.d(e,t)},D:function(e,t,r){const n=kH(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):it(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return it(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return it(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return it(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=Hi.noon:n===0?o=Hi.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=Hi.evening:n>=12?o=Hi.afternoon:n>=4?o=Hi.morning:o=Hi.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return go.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):go.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):it(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):it(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):go.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):go.s(e,t)},S:function(e,t){return go.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return oR(n);case"XXXX":case"XX":return Jo(n);case"XXXXX":case"XXX":default:return Jo(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return oR(n);case"xxxx":case"xx":return Jo(n);case"xxxxx":case"xxx":default:return Jo(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+nR(n,":");case"OOOO":default:return"GMT"+Jo(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+nR(n,":");case"zzzz":default:return"GMT"+Jo(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return it(n,t.length)},T:function(e,t,r){return it(+e,t.length)}};function nR(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+it(i,2)}function oR(e,t){return e%60===0?(e>0?"-":"+")+it(Math.abs(e)/60,2):Jo(e,t)}function Jo(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=it(Math.trunc(n/60),2),i=it(n%60,2);return r+o+t+i}const iR=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},FH=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return iR(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",iR(n,t)).replace("{{time}}",JS(o,t))},rv={p:JS,P:FH},qH=/^D+$/,jH=/^Y+$/,BH=["D","DD","YY","YYYY"];function e_(e){return qH.test(e)}function t_(e){return jH.test(e)}function nv(e,t,r){const n=VH(e,t,r);if(console.warn(n),BH.includes(e))throw new RangeError(n)}function VH(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const KH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HH=/^'([^]*?)'?$/,UH=/''/g,zH=/[a-zA-Z]/;function zt(e,t,r){const n=ba(),o=r?.locale??n.locale??XS,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=Ye(e,r?.in);if(!tH(l))throw new RangeError("Invalid time value");let c=t.match(WH).map(f=>{const p=f[0];if(p==="p"||p==="P"){const h=rv[p];return h(f,o.formatLong)}return f}).join("").match(KH).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const p=f[0];if(p==="'")return{isToken:!1,value:GH(f)};if(rR[p])return{isToken:!0,value:f};if(p.match(zH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(f=>{if(!f.isToken)return f.value;const p=f.value;(!r?.useAdditionalWeekYearTokens&&t_(p)||!r?.useAdditionalDayOfYearTokens&&e_(p))&&nv(p,t,String(e));const h=rR[p[0]];return h(l,p,o.localize,d)}).join("")}function GH(e){const t=e.match(HH);return t?t[1].replace(UH,"'"):e}function YH(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=ft(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}function XH(){return Object.assign({},ba())}function ZH(e,t){const r=Ye(e,t?.in).getDay();return r===0?7:r}function QH(e,t){return+Ye(e)<+Ye(t)}function JH(e,t){const r=eU(t)?new t(0):ft(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function eU(e){return typeof e=="function"&&e.prototype?.constructor===e}const tU=10;class r_{subPriority=0;validate(t,r){return!0}}class rU extends r_{constructor(t,r,n,o,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}}class nU extends r_{priority=tU;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>ft(r,n))}set(t,r){return r.timestampIsSet?t:ft(t,JH(t,this.context))}}class Qe{run(t,r,n,o){const i=this.parse(t,r,n,o);return i?{setter:new rU(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}}class oU extends Qe{priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Dt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},gn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Mt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ct(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function bn(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(o*GW+i*zW+s*YW),rest:t.slice(r[0].length)}}function n_(e){return Ct(Dt.anyDigitsSigned,e)}function Tt(e,t){switch(e){case 1:return Ct(Dt.singleDigit,t);case 2:return Ct(Dt.twoDigits,t);case 3:return Ct(Dt.threeDigits,t);case 4:return Ct(Dt.fourDigits,t);default:return Ct(new RegExp("^\\d{1,"+e+"}"),t)}}function gf(e,t){switch(e){case 1:return Ct(Dt.singleDigitSigned,t);case 2:return Ct(Dt.twoDigitsSigned,t);case 3:return Ct(Dt.threeDigitsSigned,t);case 4:return Ct(Dt.fourDigitsSigned,t);default:return Ct(new RegExp("^-?\\d{1,"+e+"}"),t)}}function yg(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function o_(e,t){const r=t>0,n=r?t:1-t;let o;if(n<=50)o=e||100;else{const i=n+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return r?o:1-o}function i_(e){return e%400===0||e%4===0&&e%100!==0}class iU extends Qe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){const o=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Mt(Tt(4,t),o);case"yo":return Mt(n.ordinalNumber(t,{unit:"year"}),o);default:return Mt(Tt(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){const o=t.getFullYear();if(n.isTwoDigitYear){const s=o_(n.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class aU extends Qe{priority=130;parse(t,r,n){const o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Mt(Tt(4,t),o);case"Yo":return Mt(n.ordinalNumber(t,{unit:"year"}),o);default:return Mt(Tt(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){const i=bg(t,o);if(n.isTwoDigitYear){const l=o_(n.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Yn(t,o)}const s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Yn(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class sU extends Qe{priority=130;parse(t,r){return gf(r==="R"?4:r.length,t)}set(t,r,n){const o=ft(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),sa(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class lU extends Qe{priority=130;parse(t,r){return gf(r==="u"?4:r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class uU extends Qe{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return Tt(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class cU extends Qe{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return Tt(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class dU extends Qe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){const o=i=>i-1;switch(r){case"M":return Mt(Ct(Dt.month,t),o);case"MM":return Mt(Tt(2,t),o);case"Mo":return Mt(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}class fU extends Qe{priority=110;parse(t,r,n){const o=i=>i-1;switch(r){case"L":return Mt(Ct(Dt.month,t),o);case"LL":return Mt(Tt(2,t),o);case"Lo":return Mt(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function pU(e,t,r){const n=Ye(e,r?.in),o=QS(n,r)-t;return n.setDate(n.getDate()-o*7),Ye(n,r?.in)}class mU extends Qe{priority=100;parse(t,r,n){switch(r){case"w":return Ct(Dt.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Yn(pU(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function hU(e,t,r){const n=Ye(e,r?.in),o=ZS(n,r)-t;return n.setDate(n.getDate()-o*7),n}class vU extends Qe{priority=100;parse(t,r,n){switch(r){case"I":return Ct(Dt.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return sa(hU(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const gU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=[31,29,31,30,31,30,31,31,30,31,30,31];class yU extends Qe{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return Ct(Dt.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Tt(r.length,t)}}validate(t,r){const n=t.getFullYear(),o=i_(n),i=t.getMonth();return o?r>=1&&r<=bU[i]:r>=1&&r<=gU[i]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class xU extends Qe{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return Ct(Dt.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Tt(r.length,t)}}validate(t,r){const n=t.getFullYear();return i_(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function xg(e,t,r){const n=ba(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Ye(e,r?.in),s=i.getDay(),c=(t%7+7)%7,d=7-o,f=t<0||t>6?t-(s+d)%7:(c+d)%7-(s+d)%7;return KS(i,f,r)}class wU extends Qe{priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xg(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class EU extends Qe{priority=90;parse(t,r,n,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Mt(Tt(r.length,t),i);case"eo":return Mt(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xg(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class CU extends Qe{priority=90;parse(t,r,n,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Mt(Tt(r.length,t),i);case"co":return Mt(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xg(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function RU(e,t,r){const n=Ye(e,r?.in),o=ZH(n,r),i=t-o;return KS(n,i,r)}class PU extends Qe{priority=90;parse(t,r,n){const o=i=>i===0?7:i;switch(r){case"i":case"ii":return Tt(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Mt(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Mt(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Mt(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Mt(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=RU(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class SU extends Qe{priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(yg(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class _U extends Qe{priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(yg(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class TU extends Qe{priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(yg(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class $U extends Qe{priority=70;parse(t,r,n){switch(r){case"h":return Ct(Dt.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){const o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class AU extends Qe{priority=70;parse(t,r,n){switch(r){case"H":return Ct(Dt.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class DU extends Qe{priority=70;parse(t,r,n){switch(r){case"K":return Ct(Dt.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class MU extends Qe{priority=70;parse(t,r,n){switch(r){case"k":return Ct(Dt.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){const o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class OU extends Qe{priority=60;parse(t,r,n){switch(r){case"m":return Ct(Dt.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]}class NU extends Qe{priority=50;parse(t,r,n){switch(r){case"s":return Ct(Dt.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]}class IU extends Qe{priority=30;parse(t,r){const n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return Mt(Tt(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]}class kU extends Qe{priority=10;parse(t,r){switch(r){case"X":return bn(gn.basicOptionalMinutes,t);case"XX":return bn(gn.basic,t);case"XXXX":return bn(gn.basicOptionalSeconds,t);case"XXXXX":return bn(gn.extendedOptionalSeconds,t);case"XXX":default:return bn(gn.extended,t)}}set(t,r,n){return r.timestampIsSet?t:ft(t,t.getTime()-vf(t)-n)}incompatibleTokens=["t","T","x"]}class LU extends Qe{priority=10;parse(t,r){switch(r){case"x":return bn(gn.basicOptionalMinutes,t);case"xx":return bn(gn.basic,t);case"xxxx":return bn(gn.basicOptionalSeconds,t);case"xxxxx":return bn(gn.extendedOptionalSeconds,t);case"xxx":default:return bn(gn.extended,t)}}set(t,r,n){return r.timestampIsSet?t:ft(t,t.getTime()-vf(t)-n)}incompatibleTokens=["t","T","X"]}class FU extends Qe{priority=40;parse(t){return n_(t)}set(t,r,n){return[ft(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class qU extends Qe{priority=20;parse(t){return n_(t)}set(t,r,n){return[ft(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}const jU={G:new oU,y:new iU,Y:new aU,R:new sU,u:new lU,Q:new uU,q:new cU,M:new dU,L:new fU,w:new mU,I:new vU,d:new yU,D:new xU,E:new wU,e:new EU,c:new CU,i:new PU,a:new SU,b:new _U,B:new TU,h:new $U,H:new AU,K:new DU,k:new MU,m:new OU,s:new NU,S:new IU,X:new kU,x:new LU,t:new FU,T:new qU},BU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KU=/^'([^]*?)'?$/,WU=/''/g,HU=/\S/,UU=/[a-zA-Z]/;function zU(e,t,r,n){const o=()=>ft(r,NaN),i=XH(),s=i.locale??XS,l=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d={firstWeekContainsDate:l,weekStartsOn:c,locale:s},f=[new nU(n?.in,r)],p=t.match(VU).map(C=>{const x=C[0];if(x in rv){const P=rv[x];return P(C,s.formatLong)}return C}).join("").match(BU),h=[];for(let C of p){t_(C)&&nv(C,t,e),e_(C)&&nv(C,t,e);const x=C[0],P=jU[x];if(P){const{incompatibleTokens:S}=P;if(Array.isArray(S)){const _=h.find(T=>S.includes(T.token)||T.token===x);if(_)throw new RangeError(`The format string mustn't contain \`${_.fullToken}\` and \`${C}\` at the same time`)}else if(P.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);h.push({token:x,fullToken:C});const D=P.run(e,C,s.match,d);if(!D)return o();f.push(D.setter),e=D.rest}else{if(x.match(UU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(C==="''"?C="'":x==="'"&&(C=GU(C)),e.indexOf(C)===0)e=e.slice(C.length);else return o()}}if(e.length>0&&HU.test(e))return o();const b=f.map(C=>C.priority).sort((C,x)=>x-C).filter((C,x,P)=>P.indexOf(C)===x).map(C=>f.filter(x=>x.priority===C).sort((x,P)=>P.subPriority-x.subPriority)).map(C=>C[0]);let w=Ye(r,n?.in);if(isNaN(+w))return o();const y={};for(const C of b){if(!C.validate(w,d))return o();const x=C.set(w,y,d);Array.isArray(x)?(w=x[0],Object.assign(y,x[1])):w=x}return w}function GU(e){return e.match(KU)[1].replace(WU,"'")}function YU(e,t,r){const[n,o]=Qf(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function XU(e,t){return ai(ft(e,e),eH(e))}function ZU(e,t,r){const n=+Ye(e,r?.in),[o,i]=[+Ye(t.start,r?.in),+Ye(t.end,r?.in)].sort((s,l)=>s-l);return n>=o&&n<=i}function QU(e,t,r){const n=Ye(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=ft(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=YH(s);return n.setMonth(t,Math.min(i,l)),n}function JU(e,t,r){const n=Ye(e,r?.in);return isNaN(+n)?ft(e,NaN):(n.setFullYear(t),n)}function a_(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}function gh(e){return Po(Date.now(),e)}const ez={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},tz=(e,t,r)=>{let n;const o=ez[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},rz={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},nz={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oz={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iz={date:na({formats:rz,defaultWidth:"full"}),time:na({formats:nz,defaultWidth:"full"}),dateTime:na({formats:oz,defaultWidth:"full"})},az={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},sz={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},lz=(e,t,r,n)=>t.getHours()!==1?sz[e]:az[e],uz={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},cz={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},dz={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},fz={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},pz={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},mz={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},hz=(e,t)=>Number(e)+"º",vz={ordinalNumber:hz,era:hn({values:uz,defaultWidth:"wide"}),quarter:hn({values:cz,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:hn({values:dz,defaultWidth:"wide"}),day:hn({values:fz,defaultWidth:"wide"}),dayPeriod:hn({values:pz,defaultWidth:"wide",formattingValues:mz,defaultFormattingWidth:"wide"})},gz=/^(\d+)(º)?/i,bz=/\d+/i,yz={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},xz={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},wz={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Ez={any:[/1/i,/2/i,/3/i,/4/i]},Cz={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Rz={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Pz={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Sz={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},_z={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Tz={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},$z={ordinalNumber:YS({matchPattern:gz,parsePattern:bz,valueCallback:function(e){return parseInt(e,10)}}),era:vn({matchPatterns:yz,defaultMatchWidth:"wide",parsePatterns:xz,defaultParseWidth:"any"}),quarter:vn({matchPatterns:wz,defaultMatchWidth:"wide",parsePatterns:Ez,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vn({matchPatterns:Cz,defaultMatchWidth:"wide",parsePatterns:Rz,defaultParseWidth:"any"}),day:vn({matchPatterns:Pz,defaultMatchWidth:"wide",parsePatterns:Sz,defaultParseWidth:"any"}),dayPeriod:vn({matchPatterns:_z,defaultMatchWidth:"any",parsePatterns:Tz,defaultParseWidth:"any"})},Az={code:"es",formatDistance:tz,formatLong:iz,formatRelative:lz,localize:vz,match:$z,options:{weekStartsOn:1,firstWeekContainsDate:1}};var Mu={exports:{}};var Dz=Mu.exports,aR;function Mz(){return aR||(aR=1,(function(e,t){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",p=1,h=2,b=4,w=1,y=2,C=1,x=2,P=4,S=8,D=16,_=32,T=64,A=128,M=256,U=512,J=30,N="...",W=800,F=16,L=1,G=2,k=3,q=1/0,B=9007199254740991,re=17976931348623157e292,K=NaN,ie=4294967295,Y=ie-1,X=ie>>>1,ce=[["ary",A],["bind",C],["bindKey",x],["curry",S],["curryRight",D],["flip",U],["partial",_],["partialRight",T],["rearg",M]],ue="[object Arguments]",pe="[object Array]",te="[object AsyncFunction]",ve="[object Boolean]",j="[object Date]",ae="[object DOMException]",oe="[object Error]",Z="[object Function]",we="[object GeneratorFunction]",De="[object Map]",Ue="[object Number]",wt="[object Null]",mt="[object Object]",Pa="[object Promise]",Ci="[object Proxy]",H="[object RegExp]",ne="[object Set]",de="[object String]",Ee="[object Symbol]",xe="[object Undefined]",be="[object WeakMap]",Ae="[object WeakSet]",Ke="[object ArrayBuffer]",ze="[object DataView]",Ht="[object Float32Array]",ln="[object Float64Array]",cr="[object Int8Array]",ko="[object Int16Array]",Rn="[object Int32Array]",Pn="[object Uint8Array]",Lo="[object Uint8ClampedArray]",no="[object Uint16Array]",Fo="[object Uint32Array]",Ri=/\b__p \+= '';/g,Cp=/\b(__p \+=) '' \+/g,Rp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mc=/&(?:amp|lt|gt|quot|#39);/g,Oc=/[&<>"']/g,Pp=RegExp(Mc.source),Sp=RegExp(Oc.source),_p=/<%-([\s\S]+?)%>/g,Tp=/<%([\s\S]+?)%>/g,ye=/<%=([\s\S]+?)%>/g,$p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ap=/^\w*$/,Pi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dp=/[\\^$.*+?()[\]{}|]/g,xO=RegExp(Dp.source),Mp=/^\s+/,wO=/\s/,EO=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,CO=/\{\n\/\* \[wrapped with (.+)\] \*/,RO=/,? & /,PO=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,SO=/[()=,{}\[\]\/\s]/,_O=/\\(\\)?/g,TO=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cb=/\w*$/,$O=/^[-+]0x[0-9a-f]+$/i,AO=/^0b[01]+$/i,DO=/^\[object .+?Constructor\]$/,MO=/^0o[0-7]+$/i,OO=/^(?:0|[1-9]\d*)$/,NO=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nc=/($^)/,IO=/['\n\r\u2028\u2029\\]/g,Ic="\\ud800-\\udfff",kO="\\u0300-\\u036f",LO="\\ufe20-\\ufe2f",FO="\\u20d0-\\u20ff",Rb=kO+LO+FO,Pb="\\u2700-\\u27bf",Sb="a-z\\xdf-\\xf6\\xf8-\\xff",qO="\\xac\\xb1\\xd7\\xf7",jO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",BO="\\u2000-\\u206f",VO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_b="A-Z\\xc0-\\xd6\\xd8-\\xde",Tb="\\ufe0e\\ufe0f",$b=qO+jO+BO+VO,Op="['’]",KO="["+Ic+"]",Ab="["+$b+"]",kc="["+Rb+"]",Db="\\d+",WO="["+Pb+"]",Mb="["+Sb+"]",Ob="[^"+Ic+$b+Db+Pb+Sb+_b+"]",Np="\\ud83c[\\udffb-\\udfff]",HO="(?:"+kc+"|"+Np+")",Nb="[^"+Ic+"]",Ip="(?:\\ud83c[\\udde6-\\uddff]){2}",kp="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+_b+"]",Ib="\\u200d",kb="(?:"+Mb+"|"+Ob+")",UO="(?:"+Si+"|"+Ob+")",Lb="(?:"+Op+"(?:d|ll|m|re|s|t|ve))?",Fb="(?:"+Op+"(?:D|LL|M|RE|S|T|VE))?",qb=HO+"?",jb="["+Tb+"]?",zO="(?:"+Ib+"(?:"+[Nb,Ip,kp].join("|")+")"+jb+qb+")*",GO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bb=jb+qb+zO,XO="(?:"+[WO,Ip,kp].join("|")+")"+Bb,ZO="(?:"+[Nb+kc+"?",kc,Ip,kp,KO].join("|")+")",QO=RegExp(Op,"g"),JO=RegExp(kc,"g"),Lp=RegExp(Np+"(?="+Np+")|"+ZO+Bb,"g"),eN=RegExp([Si+"?"+Mb+"+"+Lb+"(?="+[Ab,Si,"$"].join("|")+")",UO+"+"+Fb+"(?="+[Ab,Si+kb,"$"].join("|")+")",Si+"?"+kb+"+"+Lb,Si+"+"+Fb,YO,GO,Db,XO].join("|"),"g"),tN=RegExp("["+Ib+Ic+Rb+Tb+"]"),rN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oN=-1,ht={};ht[Ht]=ht[ln]=ht[cr]=ht[ko]=ht[Rn]=ht[Pn]=ht[Lo]=ht[no]=ht[Fo]=!0,ht[ue]=ht[pe]=ht[Ke]=ht[ve]=ht[ze]=ht[j]=ht[oe]=ht[Z]=ht[De]=ht[Ue]=ht[mt]=ht[H]=ht[ne]=ht[de]=ht[be]=!1;var pt={};pt[ue]=pt[pe]=pt[Ke]=pt[ze]=pt[ve]=pt[j]=pt[Ht]=pt[ln]=pt[cr]=pt[ko]=pt[Rn]=pt[De]=pt[Ue]=pt[mt]=pt[H]=pt[ne]=pt[de]=pt[Ee]=pt[Pn]=pt[Lo]=pt[no]=pt[Fo]=!0,pt[oe]=pt[Z]=pt[be]=!1;var iN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},aN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sN={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},lN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uN=parseFloat,cN=parseInt,Vb=typeof Dd=="object"&&Dd&&Dd.Object===Object&&Dd,dN=typeof self=="object"&&self&&self.Object===Object&&self,Gt=Vb||dN||Function("return this")(),Fp=t&&!t.nodeType&&t,qo=Fp&&!0&&e&&!e.nodeType&&e,Kb=qo&&qo.exports===Fp,qp=Kb&&Vb.process,Ar=(function(){try{var Q=qo&&qo.require&&qo.require("util").types;return Q||qp&&qp.binding&&qp.binding("util")}catch{}})(),Wb=Ar&&Ar.isArrayBuffer,Hb=Ar&&Ar.isDate,Ub=Ar&&Ar.isMap,zb=Ar&&Ar.isRegExp,Gb=Ar&&Ar.isSet,Yb=Ar&&Ar.isTypedArray;function gr(Q,fe,se){switch(se.length){case 0:return Q.call(fe);case 1:return Q.call(fe,se[0]);case 2:return Q.call(fe,se[0],se[1]);case 3:return Q.call(fe,se[0],se[1],se[2])}return Q.apply(fe,se)}function fN(Q,fe,se,Pe){for(var ke=-1,Xe=Q==null?0:Q.length;++ke<Xe;){var qt=Q[ke];fe(Pe,qt,se(qt),Q)}return Pe}function Dr(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length;++se<Pe&&fe(Q[se],se,Q)!==!1;);return Q}function pN(Q,fe){for(var se=Q==null?0:Q.length;se--&&fe(Q[se],se,Q)!==!1;);return Q}function Xb(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length;++se<Pe;)if(!fe(Q[se],se,Q))return!1;return!0}function oo(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length,ke=0,Xe=[];++se<Pe;){var qt=Q[se];fe(qt,se,Q)&&(Xe[ke++]=qt)}return Xe}function Lc(Q,fe){var se=Q==null?0:Q.length;return!!se&&_i(Q,fe,0)>-1}function jp(Q,fe,se){for(var Pe=-1,ke=Q==null?0:Q.length;++Pe<ke;)if(se(fe,Q[Pe]))return!0;return!1}function bt(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length,ke=Array(Pe);++se<Pe;)ke[se]=fe(Q[se],se,Q);return ke}function io(Q,fe){for(var se=-1,Pe=fe.length,ke=Q.length;++se<Pe;)Q[ke+se]=fe[se];return Q}function Bp(Q,fe,se,Pe){var ke=-1,Xe=Q==null?0:Q.length;for(Pe&&Xe&&(se=Q[++ke]);++ke<Xe;)se=fe(se,Q[ke],ke,Q);return se}function mN(Q,fe,se,Pe){var ke=Q==null?0:Q.length;for(Pe&&ke&&(se=Q[--ke]);ke--;)se=fe(se,Q[ke],ke,Q);return se}function Vp(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length;++se<Pe;)if(fe(Q[se],se,Q))return!0;return!1}var hN=Kp("length");function vN(Q){return Q.split("")}function gN(Q){return Q.match(PO)||[]}function Zb(Q,fe,se){var Pe;return se(Q,function(ke,Xe,qt){if(fe(ke,Xe,qt))return Pe=Xe,!1}),Pe}function Fc(Q,fe,se,Pe){for(var ke=Q.length,Xe=se+(Pe?1:-1);Pe?Xe--:++Xe<ke;)if(fe(Q[Xe],Xe,Q))return Xe;return-1}function _i(Q,fe,se){return fe===fe?$N(Q,fe,se):Fc(Q,Qb,se)}function bN(Q,fe,se,Pe){for(var ke=se-1,Xe=Q.length;++ke<Xe;)if(Pe(Q[ke],fe))return ke;return-1}function Qb(Q){return Q!==Q}function Jb(Q,fe){var se=Q==null?0:Q.length;return se?Hp(Q,fe)/se:K}function Kp(Q){return function(fe){return fe==null?r:fe[Q]}}function Wp(Q){return function(fe){return Q==null?r:Q[fe]}}function ey(Q,fe,se,Pe,ke){return ke(Q,function(Xe,qt,ct){se=Pe?(Pe=!1,Xe):fe(se,Xe,qt,ct)}),se}function yN(Q,fe){var se=Q.length;for(Q.sort(fe);se--;)Q[se]=Q[se].value;return Q}function Hp(Q,fe){for(var se,Pe=-1,ke=Q.length;++Pe<ke;){var Xe=fe(Q[Pe]);Xe!==r&&(se=se===r?Xe:se+Xe)}return se}function Up(Q,fe){for(var se=-1,Pe=Array(Q);++se<Q;)Pe[se]=fe(se);return Pe}function xN(Q,fe){return bt(fe,function(se){return[se,Q[se]]})}function ty(Q){return Q&&Q.slice(0,iy(Q)+1).replace(Mp,"")}function br(Q){return function(fe){return Q(fe)}}function zp(Q,fe){return bt(fe,function(se){return Q[se]})}function Sa(Q,fe){return Q.has(fe)}function ry(Q,fe){for(var se=-1,Pe=Q.length;++se<Pe&&_i(fe,Q[se],0)>-1;);return se}function ny(Q,fe){for(var se=Q.length;se--&&_i(fe,Q[se],0)>-1;);return se}function wN(Q,fe){for(var se=Q.length,Pe=0;se--;)Q[se]===fe&&++Pe;return Pe}var EN=Wp(iN),CN=Wp(aN);function RN(Q){return"\\"+lN[Q]}function PN(Q,fe){return Q==null?r:Q[fe]}function Ti(Q){return tN.test(Q)}function SN(Q){return rN.test(Q)}function _N(Q){for(var fe,se=[];!(fe=Q.next()).done;)se.push(fe.value);return se}function Gp(Q){var fe=-1,se=Array(Q.size);return Q.forEach(function(Pe,ke){se[++fe]=[ke,Pe]}),se}function oy(Q,fe){return function(se){return Q(fe(se))}}function ao(Q,fe){for(var se=-1,Pe=Q.length,ke=0,Xe=[];++se<Pe;){var qt=Q[se];(qt===fe||qt===f)&&(Q[se]=f,Xe[ke++]=se)}return Xe}function qc(Q){var fe=-1,se=Array(Q.size);return Q.forEach(function(Pe){se[++fe]=Pe}),se}function TN(Q){var fe=-1,se=Array(Q.size);return Q.forEach(function(Pe){se[++fe]=[Pe,Pe]}),se}function $N(Q,fe,se){for(var Pe=se-1,ke=Q.length;++Pe<ke;)if(Q[Pe]===fe)return Pe;return-1}function AN(Q,fe,se){for(var Pe=se+1;Pe--;)if(Q[Pe]===fe)return Pe;return Pe}function $i(Q){return Ti(Q)?MN(Q):hN(Q)}function Ur(Q){return Ti(Q)?ON(Q):vN(Q)}function iy(Q){for(var fe=Q.length;fe--&&wO.test(Q.charAt(fe)););return fe}var DN=Wp(sN);function MN(Q){for(var fe=Lp.lastIndex=0;Lp.test(Q);)++fe;return fe}function ON(Q){return Q.match(Lp)||[]}function NN(Q){return Q.match(eN)||[]}var IN=(function Q(fe){fe=fe==null?Gt:Ai.defaults(Gt.Object(),fe,Ai.pick(Gt,nN));var se=fe.Array,Pe=fe.Date,ke=fe.Error,Xe=fe.Function,qt=fe.Math,ct=fe.Object,Yp=fe.RegExp,kN=fe.String,Mr=fe.TypeError,jc=se.prototype,LN=Xe.prototype,Di=ct.prototype,Bc=fe["__core-js_shared__"],Vc=LN.toString,nt=Di.hasOwnProperty,FN=0,ay=(function(){var a=/[^.]+$/.exec(Bc&&Bc.keys&&Bc.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Kc=Di.toString,qN=Vc.call(ct),jN=Gt._,BN=Yp("^"+Vc.call(nt).replace(Dp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wc=Kb?fe.Buffer:r,so=fe.Symbol,Hc=fe.Uint8Array,sy=Wc?Wc.allocUnsafe:r,Uc=oy(ct.getPrototypeOf,ct),ly=ct.create,uy=Di.propertyIsEnumerable,zc=jc.splice,cy=so?so.isConcatSpreadable:r,_a=so?so.iterator:r,jo=so?so.toStringTag:r,Gc=(function(){try{var a=Ho(ct,"defineProperty");return a({},"",{}),a}catch{}})(),VN=fe.clearTimeout!==Gt.clearTimeout&&fe.clearTimeout,KN=Pe&&Pe.now!==Gt.Date.now&&Pe.now,WN=fe.setTimeout!==Gt.setTimeout&&fe.setTimeout,Yc=qt.ceil,Xc=qt.floor,Xp=ct.getOwnPropertySymbols,HN=Wc?Wc.isBuffer:r,dy=fe.isFinite,UN=jc.join,zN=oy(ct.keys,ct),jt=qt.max,Qt=qt.min,GN=Pe.now,YN=fe.parseInt,fy=qt.random,XN=jc.reverse,Zp=Ho(fe,"DataView"),Ta=Ho(fe,"Map"),Qp=Ho(fe,"Promise"),Mi=Ho(fe,"Set"),$a=Ho(fe,"WeakMap"),Aa=Ho(ct,"create"),Zc=$a&&new $a,Oi={},ZN=Uo(Zp),QN=Uo(Ta),JN=Uo(Qp),eI=Uo(Mi),tI=Uo($a),Qc=so?so.prototype:r,Da=Qc?Qc.valueOf:r,py=Qc?Qc.toString:r;function O(a){if(Pt(a)&&!Le(a)&&!(a instanceof He)){if(a instanceof Or)return a;if(nt.call(a,"__wrapped__"))return mx(a)}return new Or(a)}var Ni=(function(){function a(){}return function(u){if(!Et(u))return{};if(ly)return ly(u);a.prototype=u;var m=new a;return a.prototype=r,m}})();function Jc(){}function Or(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=r}O.templateSettings={escape:_p,evaluate:Tp,interpolate:ye,variable:"",imports:{_:O}},O.prototype=Jc.prototype,O.prototype.constructor=O,Or.prototype=Ni(Jc.prototype),Or.prototype.constructor=Or;function He(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function rI(){var a=new He(this.__wrapped__);return a.__actions__=dr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=dr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=dr(this.__views__),a}function nI(){if(this.__filtered__){var a=new He(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function oI(){var a=this.__wrapped__.value(),u=this.__dir__,m=Le(a),E=u<0,$=m?a.length:0,I=vk(0,$,this.__views__),V=I.start,z=I.end,ee=z-V,me=E?z:V-1,he=this.__iteratees__,ge=he.length,Re=0,$e=Qt(ee,this.__takeCount__);if(!m||!E&&$==ee&&$e==ee)return Ly(a,this.__actions__);var Oe=[];e:for(;ee--&&Re<$e;){me+=u;for(var qe=-1,Ne=a[me];++qe<ge;){var We=he[qe],Ge=We.iteratee,wr=We.type,ar=Ge(Ne);if(wr==G)Ne=ar;else if(!ar){if(wr==L)continue e;break e}}Oe[Re++]=Ne}return Oe}He.prototype=Ni(Jc.prototype),He.prototype.constructor=He;function Bo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var E=a[u];this.set(E[0],E[1])}}function iI(){this.__data__=Aa?Aa(null):{},this.size=0}function aI(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function sI(a){var u=this.__data__;if(Aa){var m=u[a];return m===c?r:m}return nt.call(u,a)?u[a]:r}function lI(a){var u=this.__data__;return Aa?u[a]!==r:nt.call(u,a)}function uI(a,u){var m=this.__data__;return this.size+=this.has(a)?0:1,m[a]=Aa&&u===r?c:u,this}Bo.prototype.clear=iI,Bo.prototype.delete=aI,Bo.prototype.get=sI,Bo.prototype.has=lI,Bo.prototype.set=uI;function Sn(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var E=a[u];this.set(E[0],E[1])}}function cI(){this.__data__=[],this.size=0}function dI(a){var u=this.__data__,m=ed(u,a);if(m<0)return!1;var E=u.length-1;return m==E?u.pop():zc.call(u,m,1),--this.size,!0}function fI(a){var u=this.__data__,m=ed(u,a);return m<0?r:u[m][1]}function pI(a){return ed(this.__data__,a)>-1}function mI(a,u){var m=this.__data__,E=ed(m,a);return E<0?(++this.size,m.push([a,u])):m[E][1]=u,this}Sn.prototype.clear=cI,Sn.prototype.delete=dI,Sn.prototype.get=fI,Sn.prototype.has=pI,Sn.prototype.set=mI;function _n(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var E=a[u];this.set(E[0],E[1])}}function hI(){this.size=0,this.__data__={hash:new Bo,map:new(Ta||Sn),string:new Bo}}function vI(a){var u=fd(this,a).delete(a);return this.size-=u?1:0,u}function gI(a){return fd(this,a).get(a)}function bI(a){return fd(this,a).has(a)}function yI(a,u){var m=fd(this,a),E=m.size;return m.set(a,u),this.size+=m.size==E?0:1,this}_n.prototype.clear=hI,_n.prototype.delete=vI,_n.prototype.get=gI,_n.prototype.has=bI,_n.prototype.set=yI;function Vo(a){var u=-1,m=a==null?0:a.length;for(this.__data__=new _n;++u<m;)this.add(a[u])}function xI(a){return this.__data__.set(a,c),this}function wI(a){return this.__data__.has(a)}Vo.prototype.add=Vo.prototype.push=xI,Vo.prototype.has=wI;function zr(a){var u=this.__data__=new Sn(a);this.size=u.size}function EI(){this.__data__=new Sn,this.size=0}function CI(a){var u=this.__data__,m=u.delete(a);return this.size=u.size,m}function RI(a){return this.__data__.get(a)}function PI(a){return this.__data__.has(a)}function SI(a,u){var m=this.__data__;if(m instanceof Sn){var E=m.__data__;if(!Ta||E.length<o-1)return E.push([a,u]),this.size=++m.size,this;m=this.__data__=new _n(E)}return m.set(a,u),this.size=m.size,this}zr.prototype.clear=EI,zr.prototype.delete=CI,zr.prototype.get=RI,zr.prototype.has=PI,zr.prototype.set=SI;function my(a,u){var m=Le(a),E=!m&&zo(a),$=!m&&!E&&po(a),I=!m&&!E&&!$&&Fi(a),V=m||E||$||I,z=V?Up(a.length,kN):[],ee=z.length;for(var me in a)(u||nt.call(a,me))&&!(V&&(me=="length"||$&&(me=="offset"||me=="parent")||I&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||Dn(me,ee)))&&z.push(me);return z}function hy(a){var u=a.length;return u?a[um(0,u-1)]:r}function _I(a,u){return pd(dr(a),Ko(u,0,a.length))}function TI(a){return pd(dr(a))}function Jp(a,u,m){(m!==r&&!Gr(a[u],m)||m===r&&!(u in a))&&Tn(a,u,m)}function Ma(a,u,m){var E=a[u];(!(nt.call(a,u)&&Gr(E,m))||m===r&&!(u in a))&&Tn(a,u,m)}function ed(a,u){for(var m=a.length;m--;)if(Gr(a[m][0],u))return m;return-1}function $I(a,u,m,E){return lo(a,function($,I,V){u(E,$,m($),V)}),E}function vy(a,u){return a&&cn(u,Ut(u),a)}function AI(a,u){return a&&cn(u,pr(u),a)}function Tn(a,u,m){u=="__proto__"&&Gc?Gc(a,u,{configurable:!0,enumerable:!0,value:m,writable:!0}):a[u]=m}function em(a,u){for(var m=-1,E=u.length,$=se(E),I=a==null;++m<E;)$[m]=I?r:Nm(a,u[m]);return $}function Ko(a,u,m){return a===a&&(m!==r&&(a=a<=m?a:m),u!==r&&(a=a>=u?a:u)),a}function Nr(a,u,m,E,$,I){var V,z=u&p,ee=u&h,me=u&b;if(m&&(V=$?m(a,E,$,I):m(a)),V!==r)return V;if(!Et(a))return a;var he=Le(a);if(he){if(V=bk(a),!z)return dr(a,V)}else{var ge=Jt(a),Re=ge==Z||ge==we;if(po(a))return jy(a,z);if(ge==mt||ge==ue||Re&&!$){if(V=ee||Re?{}:ix(a),!z)return ee?sk(a,AI(V,a)):ak(a,vy(V,a))}else{if(!pt[ge])return $?a:{};V=yk(a,ge,z)}}I||(I=new zr);var $e=I.get(a);if($e)return $e;I.set(a,V),Nx(a)?a.forEach(function(Ne){V.add(Nr(Ne,u,m,Ne,a,I))}):Mx(a)&&a.forEach(function(Ne,We){V.set(We,Nr(Ne,u,m,We,a,I))});var Oe=me?ee?xm:ym:ee?pr:Ut,qe=he?r:Oe(a);return Dr(qe||a,function(Ne,We){qe&&(We=Ne,Ne=a[We]),Ma(V,We,Nr(Ne,u,m,We,a,I))}),V}function DI(a){var u=Ut(a);return function(m){return gy(m,a,u)}}function gy(a,u,m){var E=m.length;if(a==null)return!E;for(a=ct(a);E--;){var $=m[E],I=u[$],V=a[$];if(V===r&&!($ in a)||!I(V))return!1}return!0}function by(a,u,m){if(typeof a!="function")throw new Mr(s);return qa(function(){a.apply(r,m)},u)}function Oa(a,u,m,E){var $=-1,I=Lc,V=!0,z=a.length,ee=[],me=u.length;if(!z)return ee;m&&(u=bt(u,br(m))),E?(I=jp,V=!1):u.length>=o&&(I=Sa,V=!1,u=new Vo(u));e:for(;++$<z;){var he=a[$],ge=m==null?he:m(he);if(he=E||he!==0?he:0,V&&ge===ge){for(var Re=me;Re--;)if(u[Re]===ge)continue e;ee.push(he)}else I(u,ge,E)||ee.push(he)}return ee}var lo=Hy(un),yy=Hy(rm,!0);function MI(a,u){var m=!0;return lo(a,function(E,$,I){return m=!!u(E,$,I),m}),m}function td(a,u,m){for(var E=-1,$=a.length;++E<$;){var I=a[E],V=u(I);if(V!=null&&(z===r?V===V&&!xr(V):m(V,z)))var z=V,ee=I}return ee}function OI(a,u,m,E){var $=a.length;for(m=Fe(m),m<0&&(m=-m>$?0:$+m),E=E===r||E>$?$:Fe(E),E<0&&(E+=$),E=m>E?0:kx(E);m<E;)a[m++]=u;return a}function xy(a,u){var m=[];return lo(a,function(E,$,I){u(E,$,I)&&m.push(E)}),m}function Yt(a,u,m,E,$){var I=-1,V=a.length;for(m||(m=wk),$||($=[]);++I<V;){var z=a[I];u>0&&m(z)?u>1?Yt(z,u-1,m,E,$):io($,z):E||($[$.length]=z)}return $}var tm=Uy(),wy=Uy(!0);function un(a,u){return a&&tm(a,u,Ut)}function rm(a,u){return a&&wy(a,u,Ut)}function rd(a,u){return oo(u,function(m){return Mn(a[m])})}function Wo(a,u){u=co(u,a);for(var m=0,E=u.length;a!=null&&m<E;)a=a[dn(u[m++])];return m&&m==E?a:r}function Ey(a,u,m){var E=u(a);return Le(a)?E:io(E,m(a))}function or(a){return a==null?a===r?xe:wt:jo&&jo in ct(a)?hk(a):Tk(a)}function nm(a,u){return a>u}function NI(a,u){return a!=null&&nt.call(a,u)}function II(a,u){return a!=null&&u in ct(a)}function kI(a,u,m){return a>=Qt(u,m)&&a<jt(u,m)}function om(a,u,m){for(var E=m?jp:Lc,$=a[0].length,I=a.length,V=I,z=se(I),ee=1/0,me=[];V--;){var he=a[V];V&&u&&(he=bt(he,br(u))),ee=Qt(he.length,ee),z[V]=!m&&(u||$>=120&&he.length>=120)?new Vo(V&&he):r}he=a[0];var ge=-1,Re=z[0];e:for(;++ge<$&&me.length<ee;){var $e=he[ge],Oe=u?u($e):$e;if($e=m||$e!==0?$e:0,!(Re?Sa(Re,Oe):E(me,Oe,m))){for(V=I;--V;){var qe=z[V];if(!(qe?Sa(qe,Oe):E(a[V],Oe,m)))continue e}Re&&Re.push(Oe),me.push($e)}}return me}function LI(a,u,m,E){return un(a,function($,I,V){u(E,m($),I,V)}),E}function Na(a,u,m){u=co(u,a),a=ux(a,u);var E=a==null?a:a[dn(kr(u))];return E==null?r:gr(E,a,m)}function Cy(a){return Pt(a)&&or(a)==ue}function FI(a){return Pt(a)&&or(a)==Ke}function qI(a){return Pt(a)&&or(a)==j}function Ia(a,u,m,E,$){return a===u?!0:a==null||u==null||!Pt(a)&&!Pt(u)?a!==a&&u!==u:jI(a,u,m,E,Ia,$)}function jI(a,u,m,E,$,I){var V=Le(a),z=Le(u),ee=V?pe:Jt(a),me=z?pe:Jt(u);ee=ee==ue?mt:ee,me=me==ue?mt:me;var he=ee==mt,ge=me==mt,Re=ee==me;if(Re&&po(a)){if(!po(u))return!1;V=!0,he=!1}if(Re&&!he)return I||(I=new zr),V||Fi(a)?rx(a,u,m,E,$,I):pk(a,u,ee,m,E,$,I);if(!(m&w)){var $e=he&&nt.call(a,"__wrapped__"),Oe=ge&&nt.call(u,"__wrapped__");if($e||Oe){var qe=$e?a.value():a,Ne=Oe?u.value():u;return I||(I=new zr),$(qe,Ne,m,E,I)}}return Re?(I||(I=new zr),mk(a,u,m,E,$,I)):!1}function BI(a){return Pt(a)&&Jt(a)==De}function im(a,u,m,E){var $=m.length,I=$,V=!E;if(a==null)return!I;for(a=ct(a);$--;){var z=m[$];if(V&&z[2]?z[1]!==a[z[0]]:!(z[0]in a))return!1}for(;++$<I;){z=m[$];var ee=z[0],me=a[ee],he=z[1];if(V&&z[2]){if(me===r&&!(ee in a))return!1}else{var ge=new zr;if(E)var Re=E(me,he,ee,a,u,ge);if(!(Re===r?Ia(he,me,w|y,E,ge):Re))return!1}}return!0}function Ry(a){if(!Et(a)||Ck(a))return!1;var u=Mn(a)?BN:DO;return u.test(Uo(a))}function VI(a){return Pt(a)&&or(a)==H}function KI(a){return Pt(a)&&Jt(a)==ne}function WI(a){return Pt(a)&&yd(a.length)&&!!ht[or(a)]}function Py(a){return typeof a=="function"?a:a==null?mr:typeof a=="object"?Le(a)?Ty(a[0],a[1]):_y(a):zx(a)}function am(a){if(!Fa(a))return zN(a);var u=[];for(var m in ct(a))nt.call(a,m)&&m!="constructor"&&u.push(m);return u}function HI(a){if(!Et(a))return _k(a);var u=Fa(a),m=[];for(var E in a)E=="constructor"&&(u||!nt.call(a,E))||m.push(E);return m}function sm(a,u){return a<u}function Sy(a,u){var m=-1,E=fr(a)?se(a.length):[];return lo(a,function($,I,V){E[++m]=u($,I,V)}),E}function _y(a){var u=Em(a);return u.length==1&&u[0][2]?sx(u[0][0],u[0][1]):function(m){return m===a||im(m,a,u)}}function Ty(a,u){return Rm(a)&&ax(u)?sx(dn(a),u):function(m){var E=Nm(m,a);return E===r&&E===u?Im(m,a):Ia(u,E,w|y)}}function nd(a,u,m,E,$){a!==u&&tm(u,function(I,V){if($||($=new zr),Et(I))UI(a,u,V,m,nd,E,$);else{var z=E?E(Sm(a,V),I,V+"",a,u,$):r;z===r&&(z=I),Jp(a,V,z)}},pr)}function UI(a,u,m,E,$,I,V){var z=Sm(a,m),ee=Sm(u,m),me=V.get(ee);if(me){Jp(a,m,me);return}var he=I?I(z,ee,m+"",a,u,V):r,ge=he===r;if(ge){var Re=Le(ee),$e=!Re&&po(ee),Oe=!Re&&!$e&&Fi(ee);he=ee,Re||$e||Oe?Le(z)?he=z:$t(z)?he=dr(z):$e?(ge=!1,he=jy(ee,!0)):Oe?(ge=!1,he=By(ee,!0)):he=[]:ja(ee)||zo(ee)?(he=z,zo(z)?he=Lx(z):(!Et(z)||Mn(z))&&(he=ix(ee))):ge=!1}ge&&(V.set(ee,he),$(he,ee,E,I,V),V.delete(ee)),Jp(a,m,he)}function $y(a,u){var m=a.length;if(m)return u+=u<0?m:0,Dn(u,m)?a[u]:r}function Ay(a,u,m){u.length?u=bt(u,function(I){return Le(I)?function(V){return Wo(V,I.length===1?I[0]:I)}:I}):u=[mr];var E=-1;u=bt(u,br(Me()));var $=Sy(a,function(I,V,z){var ee=bt(u,function(me){return me(I)});return{criteria:ee,index:++E,value:I}});return yN($,function(I,V){return ik(I,V,m)})}function zI(a,u){return Dy(a,u,function(m,E){return Im(a,E)})}function Dy(a,u,m){for(var E=-1,$=u.length,I={};++E<$;){var V=u[E],z=Wo(a,V);m(z,V)&&ka(I,co(V,a),z)}return I}function GI(a){return function(u){return Wo(u,a)}}function lm(a,u,m,E){var $=E?bN:_i,I=-1,V=u.length,z=a;for(a===u&&(u=dr(u)),m&&(z=bt(a,br(m)));++I<V;)for(var ee=0,me=u[I],he=m?m(me):me;(ee=$(z,he,ee,E))>-1;)z!==a&&zc.call(z,ee,1),zc.call(a,ee,1);return a}function My(a,u){for(var m=a?u.length:0,E=m-1;m--;){var $=u[m];if(m==E||$!==I){var I=$;Dn($)?zc.call(a,$,1):fm(a,$)}}return a}function um(a,u){return a+Xc(fy()*(u-a+1))}function YI(a,u,m,E){for(var $=-1,I=jt(Yc((u-a)/(m||1)),0),V=se(I);I--;)V[E?I:++$]=a,a+=m;return V}function cm(a,u){var m="";if(!a||u<1||u>B)return m;do u%2&&(m+=a),u=Xc(u/2),u&&(a+=a);while(u);return m}function je(a,u){return _m(lx(a,u,mr),a+"")}function XI(a){return hy(qi(a))}function ZI(a,u){var m=qi(a);return pd(m,Ko(u,0,m.length))}function ka(a,u,m,E){if(!Et(a))return a;u=co(u,a);for(var $=-1,I=u.length,V=I-1,z=a;z!=null&&++$<I;){var ee=dn(u[$]),me=m;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return a;if($!=V){var he=z[ee];me=E?E(he,ee,z):r,me===r&&(me=Et(he)?he:Dn(u[$+1])?[]:{})}Ma(z,ee,me),z=z[ee]}return a}var Oy=Zc?function(a,u){return Zc.set(a,u),a}:mr,QI=Gc?function(a,u){return Gc(a,"toString",{configurable:!0,enumerable:!1,value:Lm(u),writable:!0})}:mr;function JI(a){return pd(qi(a))}function Ir(a,u,m){var E=-1,$=a.length;u<0&&(u=-u>$?0:$+u),m=m>$?$:m,m<0&&(m+=$),$=u>m?0:m-u>>>0,u>>>=0;for(var I=se($);++E<$;)I[E]=a[E+u];return I}function ek(a,u){var m;return lo(a,function(E,$,I){return m=u(E,$,I),!m}),!!m}function od(a,u,m){var E=0,$=a==null?E:a.length;if(typeof u=="number"&&u===u&&$<=X){for(;E<$;){var I=E+$>>>1,V=a[I];V!==null&&!xr(V)&&(m?V<=u:V<u)?E=I+1:$=I}return $}return dm(a,u,mr,m)}function dm(a,u,m,E){var $=0,I=a==null?0:a.length;if(I===0)return 0;u=m(u);for(var V=u!==u,z=u===null,ee=xr(u),me=u===r;$<I;){var he=Xc(($+I)/2),ge=m(a[he]),Re=ge!==r,$e=ge===null,Oe=ge===ge,qe=xr(ge);if(V)var Ne=E||Oe;else me?Ne=Oe&&(E||Re):z?Ne=Oe&&Re&&(E||!$e):ee?Ne=Oe&&Re&&!$e&&(E||!qe):$e||qe?Ne=!1:Ne=E?ge<=u:ge<u;Ne?$=he+1:I=he}return Qt(I,Y)}function Ny(a,u){for(var m=-1,E=a.length,$=0,I=[];++m<E;){var V=a[m],z=u?u(V):V;if(!m||!Gr(z,ee)){var ee=z;I[$++]=V===0?0:V}}return I}function Iy(a){return typeof a=="number"?a:xr(a)?K:+a}function yr(a){if(typeof a=="string")return a;if(Le(a))return bt(a,yr)+"";if(xr(a))return py?py.call(a):"";var u=a+"";return u=="0"&&1/a==-q?"-0":u}function uo(a,u,m){var E=-1,$=Lc,I=a.length,V=!0,z=[],ee=z;if(m)V=!1,$=jp;else if(I>=o){var me=u?null:dk(a);if(me)return qc(me);V=!1,$=Sa,ee=new Vo}else ee=u?[]:z;e:for(;++E<I;){var he=a[E],ge=u?u(he):he;if(he=m||he!==0?he:0,V&&ge===ge){for(var Re=ee.length;Re--;)if(ee[Re]===ge)continue e;u&&ee.push(ge),z.push(he)}else $(ee,ge,m)||(ee!==z&&ee.push(ge),z.push(he))}return z}function fm(a,u){return u=co(u,a),a=ux(a,u),a==null||delete a[dn(kr(u))]}function ky(a,u,m,E){return ka(a,u,m(Wo(a,u)),E)}function id(a,u,m,E){for(var $=a.length,I=E?$:-1;(E?I--:++I<$)&&u(a[I],I,a););return m?Ir(a,E?0:I,E?I+1:$):Ir(a,E?I+1:0,E?$:I)}function Ly(a,u){var m=a;return m instanceof He&&(m=m.value()),Bp(u,function(E,$){return $.func.apply($.thisArg,io([E],$.args))},m)}function pm(a,u,m){var E=a.length;if(E<2)return E?uo(a[0]):[];for(var $=-1,I=se(E);++$<E;)for(var V=a[$],z=-1;++z<E;)z!=$&&(I[$]=Oa(I[$]||V,a[z],u,m));return uo(Yt(I,1),u,m)}function Fy(a,u,m){for(var E=-1,$=a.length,I=u.length,V={};++E<$;){var z=E<I?u[E]:r;m(V,a[E],z)}return V}function mm(a){return $t(a)?a:[]}function hm(a){return typeof a=="function"?a:mr}function co(a,u){return Le(a)?a:Rm(a,u)?[a]:px(Je(a))}var tk=je;function fo(a,u,m){var E=a.length;return m=m===r?E:m,!u&&m>=E?a:Ir(a,u,m)}var qy=VN||function(a){return Gt.clearTimeout(a)};function jy(a,u){if(u)return a.slice();var m=a.length,E=sy?sy(m):new a.constructor(m);return a.copy(E),E}function vm(a){var u=new a.constructor(a.byteLength);return new Hc(u).set(new Hc(a)),u}function rk(a,u){var m=u?vm(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function nk(a){var u=new a.constructor(a.source,Cb.exec(a));return u.lastIndex=a.lastIndex,u}function ok(a){return Da?ct(Da.call(a)):{}}function By(a,u){var m=u?vm(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Vy(a,u){if(a!==u){var m=a!==r,E=a===null,$=a===a,I=xr(a),V=u!==r,z=u===null,ee=u===u,me=xr(u);if(!z&&!me&&!I&&a>u||I&&V&&ee&&!z&&!me||E&&V&&ee||!m&&ee||!$)return 1;if(!E&&!I&&!me&&a<u||me&&m&&$&&!E&&!I||z&&m&&$||!V&&$||!ee)return-1}return 0}function ik(a,u,m){for(var E=-1,$=a.criteria,I=u.criteria,V=$.length,z=m.length;++E<V;){var ee=Vy($[E],I[E]);if(ee){if(E>=z)return ee;var me=m[E];return ee*(me=="desc"?-1:1)}}return a.index-u.index}function Ky(a,u,m,E){for(var $=-1,I=a.length,V=m.length,z=-1,ee=u.length,me=jt(I-V,0),he=se(ee+me),ge=!E;++z<ee;)he[z]=u[z];for(;++$<V;)(ge||$<I)&&(he[m[$]]=a[$]);for(;me--;)he[z++]=a[$++];return he}function Wy(a,u,m,E){for(var $=-1,I=a.length,V=-1,z=m.length,ee=-1,me=u.length,he=jt(I-z,0),ge=se(he+me),Re=!E;++$<he;)ge[$]=a[$];for(var $e=$;++ee<me;)ge[$e+ee]=u[ee];for(;++V<z;)(Re||$<I)&&(ge[$e+m[V]]=a[$++]);return ge}function dr(a,u){var m=-1,E=a.length;for(u||(u=se(E));++m<E;)u[m]=a[m];return u}function cn(a,u,m,E){var $=!m;m||(m={});for(var I=-1,V=u.length;++I<V;){var z=u[I],ee=E?E(m[z],a[z],z,m,a):r;ee===r&&(ee=a[z]),$?Tn(m,z,ee):Ma(m,z,ee)}return m}function ak(a,u){return cn(a,Cm(a),u)}function sk(a,u){return cn(a,nx(a),u)}function ad(a,u){return function(m,E){var $=Le(m)?fN:$I,I=u?u():{};return $(m,a,Me(E,2),I)}}function Ii(a){return je(function(u,m){var E=-1,$=m.length,I=$>1?m[$-1]:r,V=$>2?m[2]:r;for(I=a.length>3&&typeof I=="function"?($--,I):r,V&&ir(m[0],m[1],V)&&(I=$<3?r:I,$=1),u=ct(u);++E<$;){var z=m[E];z&&a(u,z,E,I)}return u})}function Hy(a,u){return function(m,E){if(m==null)return m;if(!fr(m))return a(m,E);for(var $=m.length,I=u?$:-1,V=ct(m);(u?I--:++I<$)&&E(V[I],I,V)!==!1;);return m}}function Uy(a){return function(u,m,E){for(var $=-1,I=ct(u),V=E(u),z=V.length;z--;){var ee=V[a?z:++$];if(m(I[ee],ee,I)===!1)break}return u}}function lk(a,u,m){var E=u&C,$=La(a);function I(){var V=this&&this!==Gt&&this instanceof I?$:a;return V.apply(E?m:this,arguments)}return I}function zy(a){return function(u){u=Je(u);var m=Ti(u)?Ur(u):r,E=m?m[0]:u.charAt(0),$=m?fo(m,1).join(""):u.slice(1);return E[a]()+$}}function ki(a){return function(u){return Bp(Hx(Wx(u).replace(QO,"")),a,"")}}function La(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var m=Ni(a.prototype),E=a.apply(m,u);return Et(E)?E:m}}function uk(a,u,m){var E=La(a);function $(){for(var I=arguments.length,V=se(I),z=I,ee=Li($);z--;)V[z]=arguments[z];var me=I<3&&V[0]!==ee&&V[I-1]!==ee?[]:ao(V,ee);if(I-=me.length,I<m)return Qy(a,u,sd,$.placeholder,r,V,me,r,r,m-I);var he=this&&this!==Gt&&this instanceof $?E:a;return gr(he,this,V)}return $}function Gy(a){return function(u,m,E){var $=ct(u);if(!fr(u)){var I=Me(m,3);u=Ut(u),m=function(z){return I($[z],z,$)}}var V=a(u,m,E);return V>-1?$[I?u[V]:V]:r}}function Yy(a){return An(function(u){var m=u.length,E=m,$=Or.prototype.thru;for(a&&u.reverse();E--;){var I=u[E];if(typeof I!="function")throw new Mr(s);if($&&!V&&dd(I)=="wrapper")var V=new Or([],!0)}for(E=V?E:m;++E<m;){I=u[E];var z=dd(I),ee=z=="wrapper"?wm(I):r;ee&&Pm(ee[0])&&ee[1]==(A|S|_|M)&&!ee[4].length&&ee[9]==1?V=V[dd(ee[0])].apply(V,ee[3]):V=I.length==1&&Pm(I)?V[z]():V.thru(I)}return function(){var me=arguments,he=me[0];if(V&&me.length==1&&Le(he))return V.plant(he).value();for(var ge=0,Re=m?u[ge].apply(this,me):he;++ge<m;)Re=u[ge].call(this,Re);return Re}})}function sd(a,u,m,E,$,I,V,z,ee,me){var he=u&A,ge=u&C,Re=u&x,$e=u&(S|D),Oe=u&U,qe=Re?r:La(a);function Ne(){for(var We=arguments.length,Ge=se(We),wr=We;wr--;)Ge[wr]=arguments[wr];if($e)var ar=Li(Ne),Er=wN(Ge,ar);if(E&&(Ge=Ky(Ge,E,$,$e)),I&&(Ge=Wy(Ge,I,V,$e)),We-=Er,$e&&We<me){var At=ao(Ge,ar);return Qy(a,u,sd,Ne.placeholder,m,Ge,At,z,ee,me-We)}var Yr=ge?m:this,Nn=Re?Yr[a]:a;return We=Ge.length,z?Ge=$k(Ge,z):Oe&&We>1&&Ge.reverse(),he&&ee<We&&(Ge.length=ee),this&&this!==Gt&&this instanceof Ne&&(Nn=qe||La(Nn)),Nn.apply(Yr,Ge)}return Ne}function Xy(a,u){return function(m,E){return LI(m,a,u(E),{})}}function ld(a,u){return function(m,E){var $;if(m===r&&E===r)return u;if(m!==r&&($=m),E!==r){if($===r)return E;typeof m=="string"||typeof E=="string"?(m=yr(m),E=yr(E)):(m=Iy(m),E=Iy(E)),$=a(m,E)}return $}}function gm(a){return An(function(u){return u=bt(u,br(Me())),je(function(m){var E=this;return a(u,function($){return gr($,E,m)})})})}function ud(a,u){u=u===r?" ":yr(u);var m=u.length;if(m<2)return m?cm(u,a):u;var E=cm(u,Yc(a/$i(u)));return Ti(u)?fo(Ur(E),0,a).join(""):E.slice(0,a)}function ck(a,u,m,E){var $=u&C,I=La(a);function V(){for(var z=-1,ee=arguments.length,me=-1,he=E.length,ge=se(he+ee),Re=this&&this!==Gt&&this instanceof V?I:a;++me<he;)ge[me]=E[me];for(;ee--;)ge[me++]=arguments[++z];return gr(Re,$?m:this,ge)}return V}function Zy(a){return function(u,m,E){return E&&typeof E!="number"&&ir(u,m,E)&&(m=E=r),u=On(u),m===r?(m=u,u=0):m=On(m),E=E===r?u<m?1:-1:On(E),YI(u,m,E,a)}}function cd(a){return function(u,m){return typeof u=="string"&&typeof m=="string"||(u=Lr(u),m=Lr(m)),a(u,m)}}function Qy(a,u,m,E,$,I,V,z,ee,me){var he=u&S,ge=he?V:r,Re=he?r:V,$e=he?I:r,Oe=he?r:I;u|=he?_:T,u&=~(he?T:_),u&P||(u&=-4);var qe=[a,u,$,$e,ge,Oe,Re,z,ee,me],Ne=m.apply(r,qe);return Pm(a)&&cx(Ne,qe),Ne.placeholder=E,dx(Ne,a,u)}function bm(a){var u=qt[a];return function(m,E){if(m=Lr(m),E=E==null?0:Qt(Fe(E),292),E&&dy(m)){var $=(Je(m)+"e").split("e"),I=u($[0]+"e"+(+$[1]+E));return $=(Je(I)+"e").split("e"),+($[0]+"e"+(+$[1]-E))}return u(m)}}var dk=Mi&&1/qc(new Mi([,-0]))[1]==q?function(a){return new Mi(a)}:jm;function Jy(a){return function(u){var m=Jt(u);return m==De?Gp(u):m==ne?TN(u):xN(u,a(u))}}function $n(a,u,m,E,$,I,V,z){var ee=u&x;if(!ee&&typeof a!="function")throw new Mr(s);var me=E?E.length:0;if(me||(u&=-97,E=$=r),V=V===r?V:jt(Fe(V),0),z=z===r?z:Fe(z),me-=$?$.length:0,u&T){var he=E,ge=$;E=$=r}var Re=ee?r:wm(a),$e=[a,u,m,E,$,he,ge,I,V,z];if(Re&&Sk($e,Re),a=$e[0],u=$e[1],m=$e[2],E=$e[3],$=$e[4],z=$e[9]=$e[9]===r?ee?0:a.length:jt($e[9]-me,0),!z&&u&(S|D)&&(u&=-25),!u||u==C)var Oe=lk(a,u,m);else u==S||u==D?Oe=uk(a,u,z):(u==_||u==(C|_))&&!$.length?Oe=ck(a,u,m,E):Oe=sd.apply(r,$e);var qe=Re?Oy:cx;return dx(qe(Oe,$e),a,u)}function ex(a,u,m,E){return a===r||Gr(a,Di[m])&&!nt.call(E,m)?u:a}function tx(a,u,m,E,$,I){return Et(a)&&Et(u)&&(I.set(u,a),nd(a,u,r,tx,I),I.delete(u)),a}function fk(a){return ja(a)?r:a}function rx(a,u,m,E,$,I){var V=m&w,z=a.length,ee=u.length;if(z!=ee&&!(V&&ee>z))return!1;var me=I.get(a),he=I.get(u);if(me&&he)return me==u&&he==a;var ge=-1,Re=!0,$e=m&y?new Vo:r;for(I.set(a,u),I.set(u,a);++ge<z;){var Oe=a[ge],qe=u[ge];if(E)var Ne=V?E(qe,Oe,ge,u,a,I):E(Oe,qe,ge,a,u,I);if(Ne!==r){if(Ne)continue;Re=!1;break}if($e){if(!Vp(u,function(We,Ge){if(!Sa($e,Ge)&&(Oe===We||$(Oe,We,m,E,I)))return $e.push(Ge)})){Re=!1;break}}else if(!(Oe===qe||$(Oe,qe,m,E,I))){Re=!1;break}}return I.delete(a),I.delete(u),Re}function pk(a,u,m,E,$,I,V){switch(m){case ze:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case Ke:return!(a.byteLength!=u.byteLength||!I(new Hc(a),new Hc(u)));case ve:case j:case Ue:return Gr(+a,+u);case oe:return a.name==u.name&&a.message==u.message;case H:case de:return a==u+"";case De:var z=Gp;case ne:var ee=E&w;if(z||(z=qc),a.size!=u.size&&!ee)return!1;var me=V.get(a);if(me)return me==u;E|=y,V.set(a,u);var he=rx(z(a),z(u),E,$,I,V);return V.delete(a),he;case Ee:if(Da)return Da.call(a)==Da.call(u)}return!1}function mk(a,u,m,E,$,I){var V=m&w,z=ym(a),ee=z.length,me=ym(u),he=me.length;if(ee!=he&&!V)return!1;for(var ge=ee;ge--;){var Re=z[ge];if(!(V?Re in u:nt.call(u,Re)))return!1}var $e=I.get(a),Oe=I.get(u);if($e&&Oe)return $e==u&&Oe==a;var qe=!0;I.set(a,u),I.set(u,a);for(var Ne=V;++ge<ee;){Re=z[ge];var We=a[Re],Ge=u[Re];if(E)var wr=V?E(Ge,We,Re,u,a,I):E(We,Ge,Re,a,u,I);if(!(wr===r?We===Ge||$(We,Ge,m,E,I):wr)){qe=!1;break}Ne||(Ne=Re=="constructor")}if(qe&&!Ne){var ar=a.constructor,Er=u.constructor;ar!=Er&&"constructor"in a&&"constructor"in u&&!(typeof ar=="function"&&ar instanceof ar&&typeof Er=="function"&&Er instanceof Er)&&(qe=!1)}return I.delete(a),I.delete(u),qe}function An(a){return _m(lx(a,r,gx),a+"")}function ym(a){return Ey(a,Ut,Cm)}function xm(a){return Ey(a,pr,nx)}var wm=Zc?function(a){return Zc.get(a)}:jm;function dd(a){for(var u=a.name+"",m=Oi[u],E=nt.call(Oi,u)?m.length:0;E--;){var $=m[E],I=$.func;if(I==null||I==a)return $.name}return u}function Li(a){var u=nt.call(O,"placeholder")?O:a;return u.placeholder}function Me(){var a=O.iteratee||Fm;return a=a===Fm?Py:a,arguments.length?a(arguments[0],arguments[1]):a}function fd(a,u){var m=a.__data__;return Ek(u)?m[typeof u=="string"?"string":"hash"]:m.map}function Em(a){for(var u=Ut(a),m=u.length;m--;){var E=u[m],$=a[E];u[m]=[E,$,ax($)]}return u}function Ho(a,u){var m=PN(a,u);return Ry(m)?m:r}function hk(a){var u=nt.call(a,jo),m=a[jo];try{a[jo]=r;var E=!0}catch{}var $=Kc.call(a);return E&&(u?a[jo]=m:delete a[jo]),$}var Cm=Xp?function(a){return a==null?[]:(a=ct(a),oo(Xp(a),function(u){return uy.call(a,u)}))}:Bm,nx=Xp?function(a){for(var u=[];a;)io(u,Cm(a)),a=Uc(a);return u}:Bm,Jt=or;(Zp&&Jt(new Zp(new ArrayBuffer(1)))!=ze||Ta&&Jt(new Ta)!=De||Qp&&Jt(Qp.resolve())!=Pa||Mi&&Jt(new Mi)!=ne||$a&&Jt(new $a)!=be)&&(Jt=function(a){var u=or(a),m=u==mt?a.constructor:r,E=m?Uo(m):"";if(E)switch(E){case ZN:return ze;case QN:return De;case JN:return Pa;case eI:return ne;case tI:return be}return u});function vk(a,u,m){for(var E=-1,$=m.length;++E<$;){var I=m[E],V=I.size;switch(I.type){case"drop":a+=V;break;case"dropRight":u-=V;break;case"take":u=Qt(u,a+V);break;case"takeRight":a=jt(a,u-V);break}}return{start:a,end:u}}function gk(a){var u=a.match(CO);return u?u[1].split(RO):[]}function ox(a,u,m){u=co(u,a);for(var E=-1,$=u.length,I=!1;++E<$;){var V=dn(u[E]);if(!(I=a!=null&&m(a,V)))break;a=a[V]}return I||++E!=$?I:($=a==null?0:a.length,!!$&&yd($)&&Dn(V,$)&&(Le(a)||zo(a)))}function bk(a){var u=a.length,m=new a.constructor(u);return u&&typeof a[0]=="string"&&nt.call(a,"index")&&(m.index=a.index,m.input=a.input),m}function ix(a){return typeof a.constructor=="function"&&!Fa(a)?Ni(Uc(a)):{}}function yk(a,u,m){var E=a.constructor;switch(u){case Ke:return vm(a);case ve:case j:return new E(+a);case ze:return rk(a,m);case Ht:case ln:case cr:case ko:case Rn:case Pn:case Lo:case no:case Fo:return By(a,m);case De:return new E;case Ue:case de:return new E(a);case H:return nk(a);case ne:return new E;case Ee:return ok(a)}}function xk(a,u){var m=u.length;if(!m)return a;var E=m-1;return u[E]=(m>1?"& ":"")+u[E],u=u.join(m>2?", ":" "),a.replace(EO,`{
107
+ `+t),t},QC={debug:TW,logTestingPlaygroundURL:$W};typeof document<"u"&&document.body?CW(document.body,ev,QC):Object.keys(ev).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),QC);const AW=typeof v.act=="function"?v.act:WL.act;function BS(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function Hn(e){BS().IS_REACT_ACT_ENVIRONMENT=e}function hf(){return BS().IS_REACT_ACT_ENVIRONMENT}function DW(e){return t=>{const r=hf();Hn(!0);try{let n=!1;const o=e(()=>{const i=t();return i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n=!0),i});if(n){const i=o;return{then:(s,l)=>{i.then(c=>{Hn(r),s(c)},c=>{Hn(r),l(c)})}}}else return Hn(r),o}catch(n){throw Hn(r),n}}}const zu=DW(AW),Rt=function(){return di(...arguments)};Object.keys(di).forEach(e=>{Rt[e]=function(){return di[e](...arguments)}});const MW=Rt.mouseEnter,OW=Rt.mouseLeave;Rt.mouseEnter=function(){return MW(...arguments),Rt.mouseOver(...arguments)};Rt.mouseLeave=function(){return OW(...arguments),Rt.mouseOut(...arguments)};const NW=Rt.pointerEnter,IW=Rt.pointerLeave;Rt.pointerEnter=function(){return NW(...arguments),Rt.pointerOver(...arguments)};Rt.pointerLeave=function(){return IW(...arguments),Rt.pointerOut(...arguments)};const kW=Rt.select;Rt.select=(e,t)=>{kW(e,t),e.focus(),Rt.keyUp(e,t)};const LW=Rt.blur,FW=Rt.focus;Rt.blur=function(){return Rt.focusOut(...arguments),LW(...arguments)};Rt.focus=function(){return Rt.focusIn(...arguments),FW(...arguments)};function qW(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}jV({unstable_advanceTimersWrapper:e=>zu(e),asyncWrapper:async e=>{const t=hf();Hn(!1);try{const r=await e();return await new Promise(n=>{setTimeout(()=>{n()},0),qW()&&jest.advanceTimersByTime(0)}),r}finally{Hn(t)}},eventWrapper:e=>{let t;return zu(()=>{t=e()}),t}});const jW=new Set,JC=[];function eR(){JC.forEach(e=>{let{root:t,container:r}=e;zu(()=>{t.unmount()}),r.parentNode===document.body&&document.body.removeChild(r)}),JC.length=0,jW.clear()}if((typeof process>"u"||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach=="function"?afterEach(()=>{eR()}):typeof teardown=="function"&&teardown(()=>{eR()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=hf();beforeAll(()=>{e=hf(),Hn(!0)}),afterAll(()=>{Hn(e)})}const BW=e=>zu(()=>e.click()),VW=(e,t)=>zu(()=>{Rt.change(e,{target:{value:t}})}),KW=eo("overflow-hidden pb-px aspect-square bg-muted grid place-items-center font-semibold",{variants:{variant:{circle:"rounded-full",square:"rounded"},size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{variant:"circle",size:"md"}}),WW=({variant:e,size:t,fallback:r,alt:n,src:o,className:i,imageProps:s,...l})=>{const[c,d]=R.useState(!o),f=R.useMemo(()=>uS(n),[n]);return R.useEffect(()=>{c&&d(!0)},[o,c]),g.jsx("div",{...l,"data-slot":"avatar",className:le(KW({variant:e,size:t}),i),children:c?g.jsx("span",{"data-slot":"avatar-fallback",children:r||f}):g.jsx("img",{...s,"data-slot":"avatar-image",alt:n,src:o,onError:p=>{d(!0),s?.onError?.(p)},className:le("object-cover w-full h-full text-transparent",s?.className)})})},HW=({src:e,...t})=>g.jsx("div",{...t,"data-slot":"background-image",className:le("w-full block bg-cover bg-center",t.className),style:{...t.style,backgroundImage:`url(${e})`}}),VS=6048e5,UW=864e5,zW=6e4,GW=36e5,YW=1e3,tR=Symbol.for("constructDateFrom");function ft(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&tR in e?e[tR](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ye(e,t){return ft(t||e,e)}function KS(e,t,r){const n=Ye(e,r?.in);return isNaN(t)?ft(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}function tv(e,t,r){const n=Ye(e,r?.in);if(isNaN(t))return ft(e,NaN);if(!t)return n;const o=n.getDate(),i=ft(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function XW(e,t){const r=Ye(e,t?.in).getDay();return r===0||r===6}let ZW={};function ba(){return ZW}function Yn(e,t){const r=ba(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Ye(e,t?.in),i=o.getDay(),s=(i<n?7:0)+i-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function sa(e,t){return Yn(e,{...t,weekStartsOn:1})}function WS(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=ft(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=sa(o),s=ft(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const l=sa(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function vf(e){const t=Ye(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Qf(e,...t){const r=ft.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Po(e,t){const r=Ye(e,t?.in);return r.setHours(0,0,0,0),r}function QW(e,t,r){const[n,o]=Qf(r?.in,e,t),i=Po(n),s=Po(o),l=+i-vf(i),c=+s-vf(s);return Math.round((l-c)/UW)}function JW(e,t){const r=WS(e,t),n=ft(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),sa(n)}function qd(e,t,r){return tv(e,t*12,r)}function eH(e){return ft(e,Date.now())}function ai(e,t,r){const[n,o]=Qf(r?.in,e,t);return+Po(n)==+Po(o)}function fi(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tH(e){return!(!fi(e)&&typeof e!="number"||isNaN(+Ye(e)))}function rH(e,t){const r=Ye(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function HS(e,t){const[r,n]=Qf(e,t.start,t.end);return{start:r,end:n}}function US(e,t){const{start:r,end:n}=HS(t?.in,e);let o=+r>+n;const i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(ft(r,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function nH(e,t){const r=Ye(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function zS(e,t){const{start:r,end:n}=HS(t?.in,e);let o=+r>+n;const i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let l=1;const c=[];for(;+s<=i;)c.push(ft(r,s)),s.setFullYear(s.getFullYear()+l);return o?c.reverse():c}function GS(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}function oH(e,t){const r=t?.weekStartsOn,n=Ye(e,t?.in),o=n.getDay(),i=(o<r?-7:0)+6-(o-r);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}const iH={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aH=(e,t,r)=>{let n;const o=iH[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function na(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const sH={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cH={date:na({formats:sH,defaultWidth:"full"}),time:na({formats:lH,defaultWidth:"full"}),dateTime:na({formats:uH,defaultWidth:"full"})},dH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fH=(e,t,r,n)=>dH[e];function hn(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const pH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vH={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yH=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xH={ordinalNumber:yH,era:hn({values:pH,defaultWidth:"wide"}),quarter:hn({values:mH,defaultWidth:"wide",argumentCallback:e=>e-1}),month:hn({values:hH,defaultWidth:"wide"}),day:hn({values:vH,defaultWidth:"wide"}),dayPeriod:hn({values:gH,defaultWidth:"wide",formattingValues:bH,defaultFormattingWidth:"wide"})};function vn(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?EH(l,p=>p.test(s)):wH(l,p=>p.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=r.valueCallback?r.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function wH(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function EH(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function YS(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const CH=/^(\d+)(th|st|nd|rd)?/i,RH=/\d+/i,PH={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},SH={any:[/^b/i,/^(a|c)/i]},_H={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},$H={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},AH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},DH={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MH={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},OH={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},NH={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},IH={ordinalNumber:YS({matchPattern:CH,parsePattern:RH,valueCallback:e=>parseInt(e,10)}),era:vn({matchPatterns:PH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:vn({matchPatterns:_H,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vn({matchPatterns:$H,defaultMatchWidth:"wide",parsePatterns:AH,defaultParseWidth:"any"}),day:vn({matchPatterns:DH,defaultMatchWidth:"wide",parsePatterns:MH,defaultParseWidth:"any"}),dayPeriod:vn({matchPatterns:OH,defaultMatchWidth:"any",parsePatterns:NH,defaultParseWidth:"any"})},XS={code:"en-US",formatDistance:aH,formatLong:cH,formatRelative:fH,localize:xH,match:IH,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kH(e,t){const r=Ye(e,t?.in);return QW(r,nH(r))+1}function ZS(e,t){const r=Ye(e,t?.in),n=+sa(r)-+JW(r);return Math.round(n/VS)+1}function bg(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=ba(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=ft(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);const l=Yn(s,t),c=ft(t?.in||e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const d=Yn(c,t);return+r>=+l?n+1:+r>=+d?n:n-1}function LH(e,t){const r=ba(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=bg(e,t),i=ft(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Yn(i,t)}function QS(e,t){const r=Ye(e,t?.in),n=+Yn(r,t)-+LH(r,t);return Math.round(n/VS)+1}function it(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const go={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return it(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):it(r+1,2)},d(e,t){return it(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return it(e.getHours()%12||12,t.length)},H(e,t){return it(e.getHours(),t.length)},m(e,t){return it(e.getMinutes(),t.length)},s(e,t){return it(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return it(o,t.length)}},Hi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rR={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return go.y(e,t)},Y:function(e,t,r,n){const o=bg(e,n),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return it(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):it(i,t.length)},R:function(e,t){const r=WS(e);return it(r,t.length)},u:function(e,t){const r=e.getFullYear();return it(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return it(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return it(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return go.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return it(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=QS(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):it(o,t.length)},I:function(e,t,r){const n=ZS(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):it(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):go.d(e,t)},D:function(e,t,r){const n=kH(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):it(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return it(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return it(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return it(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=Hi.noon:n===0?o=Hi.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=Hi.evening:n>=12?o=Hi.afternoon:n>=4?o=Hi.morning:o=Hi.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return go.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):go.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):it(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):it(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):go.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):go.s(e,t)},S:function(e,t){return go.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return oR(n);case"XXXX":case"XX":return Jo(n);case"XXXXX":case"XXX":default:return Jo(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return oR(n);case"xxxx":case"xx":return Jo(n);case"xxxxx":case"xxx":default:return Jo(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+nR(n,":");case"OOOO":default:return"GMT"+Jo(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+nR(n,":");case"zzzz":default:return"GMT"+Jo(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return it(n,t.length)},T:function(e,t,r){return it(+e,t.length)}};function nR(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+it(i,2)}function oR(e,t){return e%60===0?(e>0?"-":"+")+it(Math.abs(e)/60,2):Jo(e,t)}function Jo(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=it(Math.trunc(n/60),2),i=it(n%60,2);return r+o+t+i}const iR=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},FH=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return iR(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",iR(n,t)).replace("{{time}}",JS(o,t))},rv={p:JS,P:FH},qH=/^D+$/,jH=/^Y+$/,BH=["D","DD","YY","YYYY"];function e_(e){return qH.test(e)}function t_(e){return jH.test(e)}function nv(e,t,r){const n=VH(e,t,r);if(console.warn(n),BH.includes(e))throw new RangeError(n)}function VH(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const KH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HH=/^'([^]*?)'?$/,UH=/''/g,zH=/[a-zA-Z]/;function zt(e,t,r){const n=ba(),o=r?.locale??n.locale??XS,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=Ye(e,r?.in);if(!tH(l))throw new RangeError("Invalid time value");let c=t.match(WH).map(f=>{const p=f[0];if(p==="p"||p==="P"){const h=rv[p];return h(f,o.formatLong)}return f}).join("").match(KH).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const p=f[0];if(p==="'")return{isToken:!1,value:GH(f)};if(rR[p])return{isToken:!0,value:f};if(p.match(zH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(f=>{if(!f.isToken)return f.value;const p=f.value;(!r?.useAdditionalWeekYearTokens&&t_(p)||!r?.useAdditionalDayOfYearTokens&&e_(p))&&nv(p,t,String(e));const h=rR[p[0]];return h(l,p,o.localize,d)}).join("")}function GH(e){const t=e.match(HH);return t?t[1].replace(UH,"'"):e}function YH(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=ft(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}function XH(){return Object.assign({},ba())}function ZH(e,t){const r=Ye(e,t?.in).getDay();return r===0?7:r}function QH(e,t){return+Ye(e)<+Ye(t)}function JH(e,t){const r=eU(t)?new t(0):ft(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function eU(e){return typeof e=="function"&&e.prototype?.constructor===e}const tU=10;class r_{subPriority=0;validate(t,r){return!0}}class rU extends r_{constructor(t,r,n,o,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}}class nU extends r_{priority=tU;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>ft(r,n))}set(t,r){return r.timestampIsSet?t:ft(t,JH(t,this.context))}}class Qe{run(t,r,n,o){const i=this.parse(t,r,n,o);return i?{setter:new rU(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}}class oU extends Qe{priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Dt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},gn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Mt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ct(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function bn(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(o*GW+i*zW+s*YW),rest:t.slice(r[0].length)}}function n_(e){return Ct(Dt.anyDigitsSigned,e)}function Tt(e,t){switch(e){case 1:return Ct(Dt.singleDigit,t);case 2:return Ct(Dt.twoDigits,t);case 3:return Ct(Dt.threeDigits,t);case 4:return Ct(Dt.fourDigits,t);default:return Ct(new RegExp("^\\d{1,"+e+"}"),t)}}function gf(e,t){switch(e){case 1:return Ct(Dt.singleDigitSigned,t);case 2:return Ct(Dt.twoDigitsSigned,t);case 3:return Ct(Dt.threeDigitsSigned,t);case 4:return Ct(Dt.fourDigitsSigned,t);default:return Ct(new RegExp("^-?\\d{1,"+e+"}"),t)}}function yg(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function o_(e,t){const r=t>0,n=r?t:1-t;let o;if(n<=50)o=e||100;else{const i=n+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return r?o:1-o}function i_(e){return e%400===0||e%4===0&&e%100!==0}class iU extends Qe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){const o=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Mt(Tt(4,t),o);case"yo":return Mt(n.ordinalNumber(t,{unit:"year"}),o);default:return Mt(Tt(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){const o=t.getFullYear();if(n.isTwoDigitYear){const s=o_(n.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class aU extends Qe{priority=130;parse(t,r,n){const o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Mt(Tt(4,t),o);case"Yo":return Mt(n.ordinalNumber(t,{unit:"year"}),o);default:return Mt(Tt(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){const i=bg(t,o);if(n.isTwoDigitYear){const l=o_(n.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Yn(t,o)}const s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Yn(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class sU extends Qe{priority=130;parse(t,r){return gf(r==="R"?4:r.length,t)}set(t,r,n){const o=ft(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),sa(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class lU extends Qe{priority=130;parse(t,r){return gf(r==="u"?4:r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class uU extends Qe{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return Tt(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class cU extends Qe{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return Tt(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class dU extends Qe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){const o=i=>i-1;switch(r){case"M":return Mt(Ct(Dt.month,t),o);case"MM":return Mt(Tt(2,t),o);case"Mo":return Mt(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}class fU extends Qe{priority=110;parse(t,r,n){const o=i=>i-1;switch(r){case"L":return Mt(Ct(Dt.month,t),o);case"LL":return Mt(Tt(2,t),o);case"Lo":return Mt(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function pU(e,t,r){const n=Ye(e,r?.in),o=QS(n,r)-t;return n.setDate(n.getDate()-o*7),Ye(n,r?.in)}class mU extends Qe{priority=100;parse(t,r,n){switch(r){case"w":return Ct(Dt.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Yn(pU(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function hU(e,t,r){const n=Ye(e,r?.in),o=ZS(n,r)-t;return n.setDate(n.getDate()-o*7),n}class vU extends Qe{priority=100;parse(t,r,n){switch(r){case"I":return Ct(Dt.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return sa(hU(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const gU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=[31,29,31,30,31,30,31,31,30,31,30,31];class yU extends Qe{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return Ct(Dt.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Tt(r.length,t)}}validate(t,r){const n=t.getFullYear(),o=i_(n),i=t.getMonth();return o?r>=1&&r<=bU[i]:r>=1&&r<=gU[i]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class xU extends Qe{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return Ct(Dt.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Tt(r.length,t)}}validate(t,r){const n=t.getFullYear();return i_(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function xg(e,t,r){const n=ba(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Ye(e,r?.in),s=i.getDay(),c=(t%7+7)%7,d=7-o,f=t<0||t>6?t-(s+d)%7:(c+d)%7-(s+d)%7;return KS(i,f,r)}class wU extends Qe{priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xg(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class EU extends Qe{priority=90;parse(t,r,n,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Mt(Tt(r.length,t),i);case"eo":return Mt(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xg(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class CU extends Qe{priority=90;parse(t,r,n,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Mt(Tt(r.length,t),i);case"co":return Mt(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xg(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function RU(e,t,r){const n=Ye(e,r?.in),o=ZH(n,r),i=t-o;return KS(n,i,r)}class PU extends Qe{priority=90;parse(t,r,n){const o=i=>i===0?7:i;switch(r){case"i":case"ii":return Tt(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Mt(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Mt(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Mt(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Mt(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=RU(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class SU extends Qe{priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(yg(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class _U extends Qe{priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(yg(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class TU extends Qe{priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(yg(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class $U extends Qe{priority=70;parse(t,r,n){switch(r){case"h":return Ct(Dt.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){const o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class AU extends Qe{priority=70;parse(t,r,n){switch(r){case"H":return Ct(Dt.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class DU extends Qe{priority=70;parse(t,r,n){switch(r){case"K":return Ct(Dt.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class MU extends Qe{priority=70;parse(t,r,n){switch(r){case"k":return Ct(Dt.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Tt(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){const o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class OU extends Qe{priority=60;parse(t,r,n){switch(r){case"m":return Ct(Dt.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]}class NU extends Qe{priority=50;parse(t,r,n){switch(r){case"s":return Ct(Dt.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Tt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]}class IU extends Qe{priority=30;parse(t,r){const n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return Mt(Tt(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]}class kU extends Qe{priority=10;parse(t,r){switch(r){case"X":return bn(gn.basicOptionalMinutes,t);case"XX":return bn(gn.basic,t);case"XXXX":return bn(gn.basicOptionalSeconds,t);case"XXXXX":return bn(gn.extendedOptionalSeconds,t);case"XXX":default:return bn(gn.extended,t)}}set(t,r,n){return r.timestampIsSet?t:ft(t,t.getTime()-vf(t)-n)}incompatibleTokens=["t","T","x"]}class LU extends Qe{priority=10;parse(t,r){switch(r){case"x":return bn(gn.basicOptionalMinutes,t);case"xx":return bn(gn.basic,t);case"xxxx":return bn(gn.basicOptionalSeconds,t);case"xxxxx":return bn(gn.extendedOptionalSeconds,t);case"xxx":default:return bn(gn.extended,t)}}set(t,r,n){return r.timestampIsSet?t:ft(t,t.getTime()-vf(t)-n)}incompatibleTokens=["t","T","X"]}class FU extends Qe{priority=40;parse(t){return n_(t)}set(t,r,n){return[ft(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class qU extends Qe{priority=20;parse(t){return n_(t)}set(t,r,n){return[ft(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}const jU={G:new oU,y:new iU,Y:new aU,R:new sU,u:new lU,Q:new uU,q:new cU,M:new dU,L:new fU,w:new mU,I:new vU,d:new yU,D:new xU,E:new wU,e:new EU,c:new CU,i:new PU,a:new SU,b:new _U,B:new TU,h:new $U,H:new AU,K:new DU,k:new MU,m:new OU,s:new NU,S:new IU,X:new kU,x:new LU,t:new FU,T:new qU},BU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KU=/^'([^]*?)'?$/,WU=/''/g,HU=/\S/,UU=/[a-zA-Z]/;function zU(e,t,r,n){const o=()=>ft(r,NaN),i=XH(),s=i.locale??XS,l=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d={firstWeekContainsDate:l,weekStartsOn:c,locale:s},f=[new nU(n?.in,r)],p=t.match(VU).map(C=>{const x=C[0];if(x in rv){const P=rv[x];return P(C,s.formatLong)}return C}).join("").match(BU),h=[];for(let C of p){t_(C)&&nv(C,t,e),e_(C)&&nv(C,t,e);const x=C[0],P=jU[x];if(P){const{incompatibleTokens:S}=P;if(Array.isArray(S)){const _=h.find(T=>S.includes(T.token)||T.token===x);if(_)throw new RangeError(`The format string mustn't contain \`${_.fullToken}\` and \`${C}\` at the same time`)}else if(P.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);h.push({token:x,fullToken:C});const D=P.run(e,C,s.match,d);if(!D)return o();f.push(D.setter),e=D.rest}else{if(x.match(UU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(C==="''"?C="'":x==="'"&&(C=GU(C)),e.indexOf(C)===0)e=e.slice(C.length);else return o()}}if(e.length>0&&HU.test(e))return o();const b=f.map(C=>C.priority).sort((C,x)=>x-C).filter((C,x,P)=>P.indexOf(C)===x).map(C=>f.filter(x=>x.priority===C).sort((x,P)=>P.subPriority-x.subPriority)).map(C=>C[0]);let w=Ye(r,n?.in);if(isNaN(+w))return o();const y={};for(const C of b){if(!C.validate(w,d))return o();const x=C.set(w,y,d);Array.isArray(x)?(w=x[0],Object.assign(y,x[1])):w=x}return w}function GU(e){return e.match(KU)[1].replace(WU,"'")}function YU(e,t,r){const[n,o]=Qf(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function XU(e,t){return ai(ft(e,e),eH(e))}function ZU(e,t,r){const n=+Ye(e,r?.in),[o,i]=[+Ye(t.start,r?.in),+Ye(t.end,r?.in)].sort((s,l)=>s-l);return n>=o&&n<=i}function QU(e,t,r){const n=Ye(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=ft(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=YH(s);return n.setMonth(t,Math.min(i,l)),n}function JU(e,t,r){const n=Ye(e,r?.in);return isNaN(+n)?ft(e,NaN):(n.setFullYear(t),n)}function a_(e,t){const r=Ye(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}function gh(e){return Po(Date.now(),e)}const ez={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},tz=(e,t,r)=>{let n;const o=ez[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},rz={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},nz={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oz={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iz={date:na({formats:rz,defaultWidth:"full"}),time:na({formats:nz,defaultWidth:"full"}),dateTime:na({formats:oz,defaultWidth:"full"})},az={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},sz={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},lz=(e,t,r,n)=>t.getHours()!==1?sz[e]:az[e],uz={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},cz={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},dz={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},fz={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},pz={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},mz={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},hz=(e,t)=>Number(e)+"º",vz={ordinalNumber:hz,era:hn({values:uz,defaultWidth:"wide"}),quarter:hn({values:cz,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:hn({values:dz,defaultWidth:"wide"}),day:hn({values:fz,defaultWidth:"wide"}),dayPeriod:hn({values:pz,defaultWidth:"wide",formattingValues:mz,defaultFormattingWidth:"wide"})},gz=/^(\d+)(º)?/i,bz=/\d+/i,yz={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},xz={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},wz={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Ez={any:[/1/i,/2/i,/3/i,/4/i]},Cz={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Rz={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Pz={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Sz={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},_z={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Tz={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},$z={ordinalNumber:YS({matchPattern:gz,parsePattern:bz,valueCallback:function(e){return parseInt(e,10)}}),era:vn({matchPatterns:yz,defaultMatchWidth:"wide",parsePatterns:xz,defaultParseWidth:"any"}),quarter:vn({matchPatterns:wz,defaultMatchWidth:"wide",parsePatterns:Ez,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vn({matchPatterns:Cz,defaultMatchWidth:"wide",parsePatterns:Rz,defaultParseWidth:"any"}),day:vn({matchPatterns:Pz,defaultMatchWidth:"wide",parsePatterns:Sz,defaultParseWidth:"any"}),dayPeriod:vn({matchPatterns:_z,defaultMatchWidth:"any",parsePatterns:Tz,defaultParseWidth:"any"})},Az={code:"es",formatDistance:tz,formatLong:iz,formatRelative:lz,localize:vz,match:$z,options:{weekStartsOn:1,firstWeekContainsDate:1}};var Mu={exports:{}};var Dz=Mu.exports,aR;function Mz(){return aR||(aR=1,(function(e,t){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",p=1,h=2,b=4,w=1,y=2,C=1,x=2,P=4,S=8,D=16,_=32,T=64,A=128,M=256,U=512,J=30,N="...",W=800,K=16,L=1,G=2,k=3,F=1/0,j=9007199254740991,re=17976931348623157e292,V=NaN,ie=4294967295,Y=ie-1,X=ie>>>1,ce=[["ary",A],["bind",C],["bindKey",x],["curry",S],["curryRight",D],["flip",U],["partial",_],["partialRight",T],["rearg",M]],ue="[object Arguments]",pe="[object Array]",te="[object AsyncFunction]",ve="[object Boolean]",q="[object Date]",ae="[object DOMException]",oe="[object Error]",Z="[object Function]",we="[object GeneratorFunction]",De="[object Map]",Ue="[object Number]",wt="[object Null]",mt="[object Object]",Pa="[object Promise]",Ci="[object Proxy]",H="[object RegExp]",ne="[object Set]",de="[object String]",Ee="[object Symbol]",xe="[object Undefined]",be="[object WeakMap]",Ae="[object WeakSet]",Ke="[object ArrayBuffer]",ze="[object DataView]",Ht="[object Float32Array]",ln="[object Float64Array]",cr="[object Int8Array]",ko="[object Int16Array]",Rn="[object Int32Array]",Pn="[object Uint8Array]",Lo="[object Uint8ClampedArray]",no="[object Uint16Array]",Fo="[object Uint32Array]",Ri=/\b__p \+= '';/g,Cp=/\b(__p \+=) '' \+/g,Rp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mc=/&(?:amp|lt|gt|quot|#39);/g,Oc=/[&<>"']/g,Pp=RegExp(Mc.source),Sp=RegExp(Oc.source),_p=/<%-([\s\S]+?)%>/g,Tp=/<%([\s\S]+?)%>/g,ye=/<%=([\s\S]+?)%>/g,$p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ap=/^\w*$/,Pi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dp=/[\\^$.*+?()[\]{}|]/g,xO=RegExp(Dp.source),Mp=/^\s+/,wO=/\s/,EO=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,CO=/\{\n\/\* \[wrapped with (.+)\] \*/,RO=/,? & /,PO=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,SO=/[()=,{}\[\]\/\s]/,_O=/\\(\\)?/g,TO=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cb=/\w*$/,$O=/^[-+]0x[0-9a-f]+$/i,AO=/^0b[01]+$/i,DO=/^\[object .+?Constructor\]$/,MO=/^0o[0-7]+$/i,OO=/^(?:0|[1-9]\d*)$/,NO=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nc=/($^)/,IO=/['\n\r\u2028\u2029\\]/g,Ic="\\ud800-\\udfff",kO="\\u0300-\\u036f",LO="\\ufe20-\\ufe2f",FO="\\u20d0-\\u20ff",Rb=kO+LO+FO,Pb="\\u2700-\\u27bf",Sb="a-z\\xdf-\\xf6\\xf8-\\xff",qO="\\xac\\xb1\\xd7\\xf7",jO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",BO="\\u2000-\\u206f",VO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_b="A-Z\\xc0-\\xd6\\xd8-\\xde",Tb="\\ufe0e\\ufe0f",$b=qO+jO+BO+VO,Op="['’]",KO="["+Ic+"]",Ab="["+$b+"]",kc="["+Rb+"]",Db="\\d+",WO="["+Pb+"]",Mb="["+Sb+"]",Ob="[^"+Ic+$b+Db+Pb+Sb+_b+"]",Np="\\ud83c[\\udffb-\\udfff]",HO="(?:"+kc+"|"+Np+")",Nb="[^"+Ic+"]",Ip="(?:\\ud83c[\\udde6-\\uddff]){2}",kp="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+_b+"]",Ib="\\u200d",kb="(?:"+Mb+"|"+Ob+")",UO="(?:"+Si+"|"+Ob+")",Lb="(?:"+Op+"(?:d|ll|m|re|s|t|ve))?",Fb="(?:"+Op+"(?:D|LL|M|RE|S|T|VE))?",qb=HO+"?",jb="["+Tb+"]?",zO="(?:"+Ib+"(?:"+[Nb,Ip,kp].join("|")+")"+jb+qb+")*",GO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bb=jb+qb+zO,XO="(?:"+[WO,Ip,kp].join("|")+")"+Bb,ZO="(?:"+[Nb+kc+"?",kc,Ip,kp,KO].join("|")+")",QO=RegExp(Op,"g"),JO=RegExp(kc,"g"),Lp=RegExp(Np+"(?="+Np+")|"+ZO+Bb,"g"),eN=RegExp([Si+"?"+Mb+"+"+Lb+"(?="+[Ab,Si,"$"].join("|")+")",UO+"+"+Fb+"(?="+[Ab,Si+kb,"$"].join("|")+")",Si+"?"+kb+"+"+Lb,Si+"+"+Fb,YO,GO,Db,XO].join("|"),"g"),tN=RegExp("["+Ib+Ic+Rb+Tb+"]"),rN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oN=-1,ht={};ht[Ht]=ht[ln]=ht[cr]=ht[ko]=ht[Rn]=ht[Pn]=ht[Lo]=ht[no]=ht[Fo]=!0,ht[ue]=ht[pe]=ht[Ke]=ht[ve]=ht[ze]=ht[q]=ht[oe]=ht[Z]=ht[De]=ht[Ue]=ht[mt]=ht[H]=ht[ne]=ht[de]=ht[be]=!1;var pt={};pt[ue]=pt[pe]=pt[Ke]=pt[ze]=pt[ve]=pt[q]=pt[Ht]=pt[ln]=pt[cr]=pt[ko]=pt[Rn]=pt[De]=pt[Ue]=pt[mt]=pt[H]=pt[ne]=pt[de]=pt[Ee]=pt[Pn]=pt[Lo]=pt[no]=pt[Fo]=!0,pt[oe]=pt[Z]=pt[be]=!1;var iN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},aN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sN={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},lN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uN=parseFloat,cN=parseInt,Vb=typeof Dd=="object"&&Dd&&Dd.Object===Object&&Dd,dN=typeof self=="object"&&self&&self.Object===Object&&self,Gt=Vb||dN||Function("return this")(),Fp=t&&!t.nodeType&&t,qo=Fp&&!0&&e&&!e.nodeType&&e,Kb=qo&&qo.exports===Fp,qp=Kb&&Vb.process,Ar=(function(){try{var Q=qo&&qo.require&&qo.require("util").types;return Q||qp&&qp.binding&&qp.binding("util")}catch{}})(),Wb=Ar&&Ar.isArrayBuffer,Hb=Ar&&Ar.isDate,Ub=Ar&&Ar.isMap,zb=Ar&&Ar.isRegExp,Gb=Ar&&Ar.isSet,Yb=Ar&&Ar.isTypedArray;function gr(Q,fe,se){switch(se.length){case 0:return Q.call(fe);case 1:return Q.call(fe,se[0]);case 2:return Q.call(fe,se[0],se[1]);case 3:return Q.call(fe,se[0],se[1],se[2])}return Q.apply(fe,se)}function fN(Q,fe,se,Pe){for(var ke=-1,Xe=Q==null?0:Q.length;++ke<Xe;){var qt=Q[ke];fe(Pe,qt,se(qt),Q)}return Pe}function Dr(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length;++se<Pe&&fe(Q[se],se,Q)!==!1;);return Q}function pN(Q,fe){for(var se=Q==null?0:Q.length;se--&&fe(Q[se],se,Q)!==!1;);return Q}function Xb(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length;++se<Pe;)if(!fe(Q[se],se,Q))return!1;return!0}function oo(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length,ke=0,Xe=[];++se<Pe;){var qt=Q[se];fe(qt,se,Q)&&(Xe[ke++]=qt)}return Xe}function Lc(Q,fe){var se=Q==null?0:Q.length;return!!se&&_i(Q,fe,0)>-1}function jp(Q,fe,se){for(var Pe=-1,ke=Q==null?0:Q.length;++Pe<ke;)if(se(fe,Q[Pe]))return!0;return!1}function bt(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length,ke=Array(Pe);++se<Pe;)ke[se]=fe(Q[se],se,Q);return ke}function io(Q,fe){for(var se=-1,Pe=fe.length,ke=Q.length;++se<Pe;)Q[ke+se]=fe[se];return Q}function Bp(Q,fe,se,Pe){var ke=-1,Xe=Q==null?0:Q.length;for(Pe&&Xe&&(se=Q[++ke]);++ke<Xe;)se=fe(se,Q[ke],ke,Q);return se}function mN(Q,fe,se,Pe){var ke=Q==null?0:Q.length;for(Pe&&ke&&(se=Q[--ke]);ke--;)se=fe(se,Q[ke],ke,Q);return se}function Vp(Q,fe){for(var se=-1,Pe=Q==null?0:Q.length;++se<Pe;)if(fe(Q[se],se,Q))return!0;return!1}var hN=Kp("length");function vN(Q){return Q.split("")}function gN(Q){return Q.match(PO)||[]}function Zb(Q,fe,se){var Pe;return se(Q,function(ke,Xe,qt){if(fe(ke,Xe,qt))return Pe=Xe,!1}),Pe}function Fc(Q,fe,se,Pe){for(var ke=Q.length,Xe=se+(Pe?1:-1);Pe?Xe--:++Xe<ke;)if(fe(Q[Xe],Xe,Q))return Xe;return-1}function _i(Q,fe,se){return fe===fe?$N(Q,fe,se):Fc(Q,Qb,se)}function bN(Q,fe,se,Pe){for(var ke=se-1,Xe=Q.length;++ke<Xe;)if(Pe(Q[ke],fe))return ke;return-1}function Qb(Q){return Q!==Q}function Jb(Q,fe){var se=Q==null?0:Q.length;return se?Hp(Q,fe)/se:V}function Kp(Q){return function(fe){return fe==null?r:fe[Q]}}function Wp(Q){return function(fe){return Q==null?r:Q[fe]}}function ey(Q,fe,se,Pe,ke){return ke(Q,function(Xe,qt,ct){se=Pe?(Pe=!1,Xe):fe(se,Xe,qt,ct)}),se}function yN(Q,fe){var se=Q.length;for(Q.sort(fe);se--;)Q[se]=Q[se].value;return Q}function Hp(Q,fe){for(var se,Pe=-1,ke=Q.length;++Pe<ke;){var Xe=fe(Q[Pe]);Xe!==r&&(se=se===r?Xe:se+Xe)}return se}function Up(Q,fe){for(var se=-1,Pe=Array(Q);++se<Q;)Pe[se]=fe(se);return Pe}function xN(Q,fe){return bt(fe,function(se){return[se,Q[se]]})}function ty(Q){return Q&&Q.slice(0,iy(Q)+1).replace(Mp,"")}function br(Q){return function(fe){return Q(fe)}}function zp(Q,fe){return bt(fe,function(se){return Q[se]})}function Sa(Q,fe){return Q.has(fe)}function ry(Q,fe){for(var se=-1,Pe=Q.length;++se<Pe&&_i(fe,Q[se],0)>-1;);return se}function ny(Q,fe){for(var se=Q.length;se--&&_i(fe,Q[se],0)>-1;);return se}function wN(Q,fe){for(var se=Q.length,Pe=0;se--;)Q[se]===fe&&++Pe;return Pe}var EN=Wp(iN),CN=Wp(aN);function RN(Q){return"\\"+lN[Q]}function PN(Q,fe){return Q==null?r:Q[fe]}function Ti(Q){return tN.test(Q)}function SN(Q){return rN.test(Q)}function _N(Q){for(var fe,se=[];!(fe=Q.next()).done;)se.push(fe.value);return se}function Gp(Q){var fe=-1,se=Array(Q.size);return Q.forEach(function(Pe,ke){se[++fe]=[ke,Pe]}),se}function oy(Q,fe){return function(se){return Q(fe(se))}}function ao(Q,fe){for(var se=-1,Pe=Q.length,ke=0,Xe=[];++se<Pe;){var qt=Q[se];(qt===fe||qt===f)&&(Q[se]=f,Xe[ke++]=se)}return Xe}function qc(Q){var fe=-1,se=Array(Q.size);return Q.forEach(function(Pe){se[++fe]=Pe}),se}function TN(Q){var fe=-1,se=Array(Q.size);return Q.forEach(function(Pe){se[++fe]=[Pe,Pe]}),se}function $N(Q,fe,se){for(var Pe=se-1,ke=Q.length;++Pe<ke;)if(Q[Pe]===fe)return Pe;return-1}function AN(Q,fe,se){for(var Pe=se+1;Pe--;)if(Q[Pe]===fe)return Pe;return Pe}function $i(Q){return Ti(Q)?MN(Q):hN(Q)}function Ur(Q){return Ti(Q)?ON(Q):vN(Q)}function iy(Q){for(var fe=Q.length;fe--&&wO.test(Q.charAt(fe)););return fe}var DN=Wp(sN);function MN(Q){for(var fe=Lp.lastIndex=0;Lp.test(Q);)++fe;return fe}function ON(Q){return Q.match(Lp)||[]}function NN(Q){return Q.match(eN)||[]}var IN=(function Q(fe){fe=fe==null?Gt:Ai.defaults(Gt.Object(),fe,Ai.pick(Gt,nN));var se=fe.Array,Pe=fe.Date,ke=fe.Error,Xe=fe.Function,qt=fe.Math,ct=fe.Object,Yp=fe.RegExp,kN=fe.String,Mr=fe.TypeError,jc=se.prototype,LN=Xe.prototype,Di=ct.prototype,Bc=fe["__core-js_shared__"],Vc=LN.toString,nt=Di.hasOwnProperty,FN=0,ay=(function(){var a=/[^.]+$/.exec(Bc&&Bc.keys&&Bc.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Kc=Di.toString,qN=Vc.call(ct),jN=Gt._,BN=Yp("^"+Vc.call(nt).replace(Dp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wc=Kb?fe.Buffer:r,so=fe.Symbol,Hc=fe.Uint8Array,sy=Wc?Wc.allocUnsafe:r,Uc=oy(ct.getPrototypeOf,ct),ly=ct.create,uy=Di.propertyIsEnumerable,zc=jc.splice,cy=so?so.isConcatSpreadable:r,_a=so?so.iterator:r,jo=so?so.toStringTag:r,Gc=(function(){try{var a=Ho(ct,"defineProperty");return a({},"",{}),a}catch{}})(),VN=fe.clearTimeout!==Gt.clearTimeout&&fe.clearTimeout,KN=Pe&&Pe.now!==Gt.Date.now&&Pe.now,WN=fe.setTimeout!==Gt.setTimeout&&fe.setTimeout,Yc=qt.ceil,Xc=qt.floor,Xp=ct.getOwnPropertySymbols,HN=Wc?Wc.isBuffer:r,dy=fe.isFinite,UN=jc.join,zN=oy(ct.keys,ct),jt=qt.max,Qt=qt.min,GN=Pe.now,YN=fe.parseInt,fy=qt.random,XN=jc.reverse,Zp=Ho(fe,"DataView"),Ta=Ho(fe,"Map"),Qp=Ho(fe,"Promise"),Mi=Ho(fe,"Set"),$a=Ho(fe,"WeakMap"),Aa=Ho(ct,"create"),Zc=$a&&new $a,Oi={},ZN=Uo(Zp),QN=Uo(Ta),JN=Uo(Qp),eI=Uo(Mi),tI=Uo($a),Qc=so?so.prototype:r,Da=Qc?Qc.valueOf:r,py=Qc?Qc.toString:r;function O(a){if(Pt(a)&&!Le(a)&&!(a instanceof He)){if(a instanceof Or)return a;if(nt.call(a,"__wrapped__"))return mx(a)}return new Or(a)}var Ni=(function(){function a(){}return function(u){if(!Et(u))return{};if(ly)return ly(u);a.prototype=u;var m=new a;return a.prototype=r,m}})();function Jc(){}function Or(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=r}O.templateSettings={escape:_p,evaluate:Tp,interpolate:ye,variable:"",imports:{_:O}},O.prototype=Jc.prototype,O.prototype.constructor=O,Or.prototype=Ni(Jc.prototype),Or.prototype.constructor=Or;function He(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function rI(){var a=new He(this.__wrapped__);return a.__actions__=dr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=dr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=dr(this.__views__),a}function nI(){if(this.__filtered__){var a=new He(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function oI(){var a=this.__wrapped__.value(),u=this.__dir__,m=Le(a),E=u<0,$=m?a.length:0,I=vk(0,$,this.__views__),B=I.start,z=I.end,ee=z-B,me=E?z:B-1,he=this.__iteratees__,ge=he.length,Re=0,$e=Qt(ee,this.__takeCount__);if(!m||!E&&$==ee&&$e==ee)return Ly(a,this.__actions__);var Oe=[];e:for(;ee--&&Re<$e;){me+=u;for(var qe=-1,Ne=a[me];++qe<ge;){var We=he[qe],Ge=We.iteratee,wr=We.type,ar=Ge(Ne);if(wr==G)Ne=ar;else if(!ar){if(wr==L)continue e;break e}}Oe[Re++]=Ne}return Oe}He.prototype=Ni(Jc.prototype),He.prototype.constructor=He;function Bo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var E=a[u];this.set(E[0],E[1])}}function iI(){this.__data__=Aa?Aa(null):{},this.size=0}function aI(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function sI(a){var u=this.__data__;if(Aa){var m=u[a];return m===c?r:m}return nt.call(u,a)?u[a]:r}function lI(a){var u=this.__data__;return Aa?u[a]!==r:nt.call(u,a)}function uI(a,u){var m=this.__data__;return this.size+=this.has(a)?0:1,m[a]=Aa&&u===r?c:u,this}Bo.prototype.clear=iI,Bo.prototype.delete=aI,Bo.prototype.get=sI,Bo.prototype.has=lI,Bo.prototype.set=uI;function Sn(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var E=a[u];this.set(E[0],E[1])}}function cI(){this.__data__=[],this.size=0}function dI(a){var u=this.__data__,m=ed(u,a);if(m<0)return!1;var E=u.length-1;return m==E?u.pop():zc.call(u,m,1),--this.size,!0}function fI(a){var u=this.__data__,m=ed(u,a);return m<0?r:u[m][1]}function pI(a){return ed(this.__data__,a)>-1}function mI(a,u){var m=this.__data__,E=ed(m,a);return E<0?(++this.size,m.push([a,u])):m[E][1]=u,this}Sn.prototype.clear=cI,Sn.prototype.delete=dI,Sn.prototype.get=fI,Sn.prototype.has=pI,Sn.prototype.set=mI;function _n(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var E=a[u];this.set(E[0],E[1])}}function hI(){this.size=0,this.__data__={hash:new Bo,map:new(Ta||Sn),string:new Bo}}function vI(a){var u=fd(this,a).delete(a);return this.size-=u?1:0,u}function gI(a){return fd(this,a).get(a)}function bI(a){return fd(this,a).has(a)}function yI(a,u){var m=fd(this,a),E=m.size;return m.set(a,u),this.size+=m.size==E?0:1,this}_n.prototype.clear=hI,_n.prototype.delete=vI,_n.prototype.get=gI,_n.prototype.has=bI,_n.prototype.set=yI;function Vo(a){var u=-1,m=a==null?0:a.length;for(this.__data__=new _n;++u<m;)this.add(a[u])}function xI(a){return this.__data__.set(a,c),this}function wI(a){return this.__data__.has(a)}Vo.prototype.add=Vo.prototype.push=xI,Vo.prototype.has=wI;function zr(a){var u=this.__data__=new Sn(a);this.size=u.size}function EI(){this.__data__=new Sn,this.size=0}function CI(a){var u=this.__data__,m=u.delete(a);return this.size=u.size,m}function RI(a){return this.__data__.get(a)}function PI(a){return this.__data__.has(a)}function SI(a,u){var m=this.__data__;if(m instanceof Sn){var E=m.__data__;if(!Ta||E.length<o-1)return E.push([a,u]),this.size=++m.size,this;m=this.__data__=new _n(E)}return m.set(a,u),this.size=m.size,this}zr.prototype.clear=EI,zr.prototype.delete=CI,zr.prototype.get=RI,zr.prototype.has=PI,zr.prototype.set=SI;function my(a,u){var m=Le(a),E=!m&&zo(a),$=!m&&!E&&po(a),I=!m&&!E&&!$&&Fi(a),B=m||E||$||I,z=B?Up(a.length,kN):[],ee=z.length;for(var me in a)(u||nt.call(a,me))&&!(B&&(me=="length"||$&&(me=="offset"||me=="parent")||I&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||Dn(me,ee)))&&z.push(me);return z}function hy(a){var u=a.length;return u?a[um(0,u-1)]:r}function _I(a,u){return pd(dr(a),Ko(u,0,a.length))}function TI(a){return pd(dr(a))}function Jp(a,u,m){(m!==r&&!Gr(a[u],m)||m===r&&!(u in a))&&Tn(a,u,m)}function Ma(a,u,m){var E=a[u];(!(nt.call(a,u)&&Gr(E,m))||m===r&&!(u in a))&&Tn(a,u,m)}function ed(a,u){for(var m=a.length;m--;)if(Gr(a[m][0],u))return m;return-1}function $I(a,u,m,E){return lo(a,function($,I,B){u(E,$,m($),B)}),E}function vy(a,u){return a&&cn(u,Ut(u),a)}function AI(a,u){return a&&cn(u,pr(u),a)}function Tn(a,u,m){u=="__proto__"&&Gc?Gc(a,u,{configurable:!0,enumerable:!0,value:m,writable:!0}):a[u]=m}function em(a,u){for(var m=-1,E=u.length,$=se(E),I=a==null;++m<E;)$[m]=I?r:Nm(a,u[m]);return $}function Ko(a,u,m){return a===a&&(m!==r&&(a=a<=m?a:m),u!==r&&(a=a>=u?a:u)),a}function Nr(a,u,m,E,$,I){var B,z=u&p,ee=u&h,me=u&b;if(m&&(B=$?m(a,E,$,I):m(a)),B!==r)return B;if(!Et(a))return a;var he=Le(a);if(he){if(B=bk(a),!z)return dr(a,B)}else{var ge=Jt(a),Re=ge==Z||ge==we;if(po(a))return jy(a,z);if(ge==mt||ge==ue||Re&&!$){if(B=ee||Re?{}:ix(a),!z)return ee?sk(a,AI(B,a)):ak(a,vy(B,a))}else{if(!pt[ge])return $?a:{};B=yk(a,ge,z)}}I||(I=new zr);var $e=I.get(a);if($e)return $e;I.set(a,B),Nx(a)?a.forEach(function(Ne){B.add(Nr(Ne,u,m,Ne,a,I))}):Mx(a)&&a.forEach(function(Ne,We){B.set(We,Nr(Ne,u,m,We,a,I))});var Oe=me?ee?xm:ym:ee?pr:Ut,qe=he?r:Oe(a);return Dr(qe||a,function(Ne,We){qe&&(We=Ne,Ne=a[We]),Ma(B,We,Nr(Ne,u,m,We,a,I))}),B}function DI(a){var u=Ut(a);return function(m){return gy(m,a,u)}}function gy(a,u,m){var E=m.length;if(a==null)return!E;for(a=ct(a);E--;){var $=m[E],I=u[$],B=a[$];if(B===r&&!($ in a)||!I(B))return!1}return!0}function by(a,u,m){if(typeof a!="function")throw new Mr(s);return qa(function(){a.apply(r,m)},u)}function Oa(a,u,m,E){var $=-1,I=Lc,B=!0,z=a.length,ee=[],me=u.length;if(!z)return ee;m&&(u=bt(u,br(m))),E?(I=jp,B=!1):u.length>=o&&(I=Sa,B=!1,u=new Vo(u));e:for(;++$<z;){var he=a[$],ge=m==null?he:m(he);if(he=E||he!==0?he:0,B&&ge===ge){for(var Re=me;Re--;)if(u[Re]===ge)continue e;ee.push(he)}else I(u,ge,E)||ee.push(he)}return ee}var lo=Hy(un),yy=Hy(rm,!0);function MI(a,u){var m=!0;return lo(a,function(E,$,I){return m=!!u(E,$,I),m}),m}function td(a,u,m){for(var E=-1,$=a.length;++E<$;){var I=a[E],B=u(I);if(B!=null&&(z===r?B===B&&!xr(B):m(B,z)))var z=B,ee=I}return ee}function OI(a,u,m,E){var $=a.length;for(m=Fe(m),m<0&&(m=-m>$?0:$+m),E=E===r||E>$?$:Fe(E),E<0&&(E+=$),E=m>E?0:kx(E);m<E;)a[m++]=u;return a}function xy(a,u){var m=[];return lo(a,function(E,$,I){u(E,$,I)&&m.push(E)}),m}function Yt(a,u,m,E,$){var I=-1,B=a.length;for(m||(m=wk),$||($=[]);++I<B;){var z=a[I];u>0&&m(z)?u>1?Yt(z,u-1,m,E,$):io($,z):E||($[$.length]=z)}return $}var tm=Uy(),wy=Uy(!0);function un(a,u){return a&&tm(a,u,Ut)}function rm(a,u){return a&&wy(a,u,Ut)}function rd(a,u){return oo(u,function(m){return Mn(a[m])})}function Wo(a,u){u=co(u,a);for(var m=0,E=u.length;a!=null&&m<E;)a=a[dn(u[m++])];return m&&m==E?a:r}function Ey(a,u,m){var E=u(a);return Le(a)?E:io(E,m(a))}function or(a){return a==null?a===r?xe:wt:jo&&jo in ct(a)?hk(a):Tk(a)}function nm(a,u){return a>u}function NI(a,u){return a!=null&&nt.call(a,u)}function II(a,u){return a!=null&&u in ct(a)}function kI(a,u,m){return a>=Qt(u,m)&&a<jt(u,m)}function om(a,u,m){for(var E=m?jp:Lc,$=a[0].length,I=a.length,B=I,z=se(I),ee=1/0,me=[];B--;){var he=a[B];B&&u&&(he=bt(he,br(u))),ee=Qt(he.length,ee),z[B]=!m&&(u||$>=120&&he.length>=120)?new Vo(B&&he):r}he=a[0];var ge=-1,Re=z[0];e:for(;++ge<$&&me.length<ee;){var $e=he[ge],Oe=u?u($e):$e;if($e=m||$e!==0?$e:0,!(Re?Sa(Re,Oe):E(me,Oe,m))){for(B=I;--B;){var qe=z[B];if(!(qe?Sa(qe,Oe):E(a[B],Oe,m)))continue e}Re&&Re.push(Oe),me.push($e)}}return me}function LI(a,u,m,E){return un(a,function($,I,B){u(E,m($),I,B)}),E}function Na(a,u,m){u=co(u,a),a=ux(a,u);var E=a==null?a:a[dn(kr(u))];return E==null?r:gr(E,a,m)}function Cy(a){return Pt(a)&&or(a)==ue}function FI(a){return Pt(a)&&or(a)==Ke}function qI(a){return Pt(a)&&or(a)==q}function Ia(a,u,m,E,$){return a===u?!0:a==null||u==null||!Pt(a)&&!Pt(u)?a!==a&&u!==u:jI(a,u,m,E,Ia,$)}function jI(a,u,m,E,$,I){var B=Le(a),z=Le(u),ee=B?pe:Jt(a),me=z?pe:Jt(u);ee=ee==ue?mt:ee,me=me==ue?mt:me;var he=ee==mt,ge=me==mt,Re=ee==me;if(Re&&po(a)){if(!po(u))return!1;B=!0,he=!1}if(Re&&!he)return I||(I=new zr),B||Fi(a)?rx(a,u,m,E,$,I):pk(a,u,ee,m,E,$,I);if(!(m&w)){var $e=he&&nt.call(a,"__wrapped__"),Oe=ge&&nt.call(u,"__wrapped__");if($e||Oe){var qe=$e?a.value():a,Ne=Oe?u.value():u;return I||(I=new zr),$(qe,Ne,m,E,I)}}return Re?(I||(I=new zr),mk(a,u,m,E,$,I)):!1}function BI(a){return Pt(a)&&Jt(a)==De}function im(a,u,m,E){var $=m.length,I=$,B=!E;if(a==null)return!I;for(a=ct(a);$--;){var z=m[$];if(B&&z[2]?z[1]!==a[z[0]]:!(z[0]in a))return!1}for(;++$<I;){z=m[$];var ee=z[0],me=a[ee],he=z[1];if(B&&z[2]){if(me===r&&!(ee in a))return!1}else{var ge=new zr;if(E)var Re=E(me,he,ee,a,u,ge);if(!(Re===r?Ia(he,me,w|y,E,ge):Re))return!1}}return!0}function Ry(a){if(!Et(a)||Ck(a))return!1;var u=Mn(a)?BN:DO;return u.test(Uo(a))}function VI(a){return Pt(a)&&or(a)==H}function KI(a){return Pt(a)&&Jt(a)==ne}function WI(a){return Pt(a)&&yd(a.length)&&!!ht[or(a)]}function Py(a){return typeof a=="function"?a:a==null?mr:typeof a=="object"?Le(a)?Ty(a[0],a[1]):_y(a):zx(a)}function am(a){if(!Fa(a))return zN(a);var u=[];for(var m in ct(a))nt.call(a,m)&&m!="constructor"&&u.push(m);return u}function HI(a){if(!Et(a))return _k(a);var u=Fa(a),m=[];for(var E in a)E=="constructor"&&(u||!nt.call(a,E))||m.push(E);return m}function sm(a,u){return a<u}function Sy(a,u){var m=-1,E=fr(a)?se(a.length):[];return lo(a,function($,I,B){E[++m]=u($,I,B)}),E}function _y(a){var u=Em(a);return u.length==1&&u[0][2]?sx(u[0][0],u[0][1]):function(m){return m===a||im(m,a,u)}}function Ty(a,u){return Rm(a)&&ax(u)?sx(dn(a),u):function(m){var E=Nm(m,a);return E===r&&E===u?Im(m,a):Ia(u,E,w|y)}}function nd(a,u,m,E,$){a!==u&&tm(u,function(I,B){if($||($=new zr),Et(I))UI(a,u,B,m,nd,E,$);else{var z=E?E(Sm(a,B),I,B+"",a,u,$):r;z===r&&(z=I),Jp(a,B,z)}},pr)}function UI(a,u,m,E,$,I,B){var z=Sm(a,m),ee=Sm(u,m),me=B.get(ee);if(me){Jp(a,m,me);return}var he=I?I(z,ee,m+"",a,u,B):r,ge=he===r;if(ge){var Re=Le(ee),$e=!Re&&po(ee),Oe=!Re&&!$e&&Fi(ee);he=ee,Re||$e||Oe?Le(z)?he=z:$t(z)?he=dr(z):$e?(ge=!1,he=jy(ee,!0)):Oe?(ge=!1,he=By(ee,!0)):he=[]:ja(ee)||zo(ee)?(he=z,zo(z)?he=Lx(z):(!Et(z)||Mn(z))&&(he=ix(ee))):ge=!1}ge&&(B.set(ee,he),$(he,ee,E,I,B),B.delete(ee)),Jp(a,m,he)}function $y(a,u){var m=a.length;if(m)return u+=u<0?m:0,Dn(u,m)?a[u]:r}function Ay(a,u,m){u.length?u=bt(u,function(I){return Le(I)?function(B){return Wo(B,I.length===1?I[0]:I)}:I}):u=[mr];var E=-1;u=bt(u,br(Me()));var $=Sy(a,function(I,B,z){var ee=bt(u,function(me){return me(I)});return{criteria:ee,index:++E,value:I}});return yN($,function(I,B){return ik(I,B,m)})}function zI(a,u){return Dy(a,u,function(m,E){return Im(a,E)})}function Dy(a,u,m){for(var E=-1,$=u.length,I={};++E<$;){var B=u[E],z=Wo(a,B);m(z,B)&&ka(I,co(B,a),z)}return I}function GI(a){return function(u){return Wo(u,a)}}function lm(a,u,m,E){var $=E?bN:_i,I=-1,B=u.length,z=a;for(a===u&&(u=dr(u)),m&&(z=bt(a,br(m)));++I<B;)for(var ee=0,me=u[I],he=m?m(me):me;(ee=$(z,he,ee,E))>-1;)z!==a&&zc.call(z,ee,1),zc.call(a,ee,1);return a}function My(a,u){for(var m=a?u.length:0,E=m-1;m--;){var $=u[m];if(m==E||$!==I){var I=$;Dn($)?zc.call(a,$,1):fm(a,$)}}return a}function um(a,u){return a+Xc(fy()*(u-a+1))}function YI(a,u,m,E){for(var $=-1,I=jt(Yc((u-a)/(m||1)),0),B=se(I);I--;)B[E?I:++$]=a,a+=m;return B}function cm(a,u){var m="";if(!a||u<1||u>j)return m;do u%2&&(m+=a),u=Xc(u/2),u&&(a+=a);while(u);return m}function je(a,u){return _m(lx(a,u,mr),a+"")}function XI(a){return hy(qi(a))}function ZI(a,u){var m=qi(a);return pd(m,Ko(u,0,m.length))}function ka(a,u,m,E){if(!Et(a))return a;u=co(u,a);for(var $=-1,I=u.length,B=I-1,z=a;z!=null&&++$<I;){var ee=dn(u[$]),me=m;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return a;if($!=B){var he=z[ee];me=E?E(he,ee,z):r,me===r&&(me=Et(he)?he:Dn(u[$+1])?[]:{})}Ma(z,ee,me),z=z[ee]}return a}var Oy=Zc?function(a,u){return Zc.set(a,u),a}:mr,QI=Gc?function(a,u){return Gc(a,"toString",{configurable:!0,enumerable:!1,value:Lm(u),writable:!0})}:mr;function JI(a){return pd(qi(a))}function Ir(a,u,m){var E=-1,$=a.length;u<0&&(u=-u>$?0:$+u),m=m>$?$:m,m<0&&(m+=$),$=u>m?0:m-u>>>0,u>>>=0;for(var I=se($);++E<$;)I[E]=a[E+u];return I}function ek(a,u){var m;return lo(a,function(E,$,I){return m=u(E,$,I),!m}),!!m}function od(a,u,m){var E=0,$=a==null?E:a.length;if(typeof u=="number"&&u===u&&$<=X){for(;E<$;){var I=E+$>>>1,B=a[I];B!==null&&!xr(B)&&(m?B<=u:B<u)?E=I+1:$=I}return $}return dm(a,u,mr,m)}function dm(a,u,m,E){var $=0,I=a==null?0:a.length;if(I===0)return 0;u=m(u);for(var B=u!==u,z=u===null,ee=xr(u),me=u===r;$<I;){var he=Xc(($+I)/2),ge=m(a[he]),Re=ge!==r,$e=ge===null,Oe=ge===ge,qe=xr(ge);if(B)var Ne=E||Oe;else me?Ne=Oe&&(E||Re):z?Ne=Oe&&Re&&(E||!$e):ee?Ne=Oe&&Re&&!$e&&(E||!qe):$e||qe?Ne=!1:Ne=E?ge<=u:ge<u;Ne?$=he+1:I=he}return Qt(I,Y)}function Ny(a,u){for(var m=-1,E=a.length,$=0,I=[];++m<E;){var B=a[m],z=u?u(B):B;if(!m||!Gr(z,ee)){var ee=z;I[$++]=B===0?0:B}}return I}function Iy(a){return typeof a=="number"?a:xr(a)?V:+a}function yr(a){if(typeof a=="string")return a;if(Le(a))return bt(a,yr)+"";if(xr(a))return py?py.call(a):"";var u=a+"";return u=="0"&&1/a==-F?"-0":u}function uo(a,u,m){var E=-1,$=Lc,I=a.length,B=!0,z=[],ee=z;if(m)B=!1,$=jp;else if(I>=o){var me=u?null:dk(a);if(me)return qc(me);B=!1,$=Sa,ee=new Vo}else ee=u?[]:z;e:for(;++E<I;){var he=a[E],ge=u?u(he):he;if(he=m||he!==0?he:0,B&&ge===ge){for(var Re=ee.length;Re--;)if(ee[Re]===ge)continue e;u&&ee.push(ge),z.push(he)}else $(ee,ge,m)||(ee!==z&&ee.push(ge),z.push(he))}return z}function fm(a,u){return u=co(u,a),a=ux(a,u),a==null||delete a[dn(kr(u))]}function ky(a,u,m,E){return ka(a,u,m(Wo(a,u)),E)}function id(a,u,m,E){for(var $=a.length,I=E?$:-1;(E?I--:++I<$)&&u(a[I],I,a););return m?Ir(a,E?0:I,E?I+1:$):Ir(a,E?I+1:0,E?$:I)}function Ly(a,u){var m=a;return m instanceof He&&(m=m.value()),Bp(u,function(E,$){return $.func.apply($.thisArg,io([E],$.args))},m)}function pm(a,u,m){var E=a.length;if(E<2)return E?uo(a[0]):[];for(var $=-1,I=se(E);++$<E;)for(var B=a[$],z=-1;++z<E;)z!=$&&(I[$]=Oa(I[$]||B,a[z],u,m));return uo(Yt(I,1),u,m)}function Fy(a,u,m){for(var E=-1,$=a.length,I=u.length,B={};++E<$;){var z=E<I?u[E]:r;m(B,a[E],z)}return B}function mm(a){return $t(a)?a:[]}function hm(a){return typeof a=="function"?a:mr}function co(a,u){return Le(a)?a:Rm(a,u)?[a]:px(Je(a))}var tk=je;function fo(a,u,m){var E=a.length;return m=m===r?E:m,!u&&m>=E?a:Ir(a,u,m)}var qy=VN||function(a){return Gt.clearTimeout(a)};function jy(a,u){if(u)return a.slice();var m=a.length,E=sy?sy(m):new a.constructor(m);return a.copy(E),E}function vm(a){var u=new a.constructor(a.byteLength);return new Hc(u).set(new Hc(a)),u}function rk(a,u){var m=u?vm(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function nk(a){var u=new a.constructor(a.source,Cb.exec(a));return u.lastIndex=a.lastIndex,u}function ok(a){return Da?ct(Da.call(a)):{}}function By(a,u){var m=u?vm(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Vy(a,u){if(a!==u){var m=a!==r,E=a===null,$=a===a,I=xr(a),B=u!==r,z=u===null,ee=u===u,me=xr(u);if(!z&&!me&&!I&&a>u||I&&B&&ee&&!z&&!me||E&&B&&ee||!m&&ee||!$)return 1;if(!E&&!I&&!me&&a<u||me&&m&&$&&!E&&!I||z&&m&&$||!B&&$||!ee)return-1}return 0}function ik(a,u,m){for(var E=-1,$=a.criteria,I=u.criteria,B=$.length,z=m.length;++E<B;){var ee=Vy($[E],I[E]);if(ee){if(E>=z)return ee;var me=m[E];return ee*(me=="desc"?-1:1)}}return a.index-u.index}function Ky(a,u,m,E){for(var $=-1,I=a.length,B=m.length,z=-1,ee=u.length,me=jt(I-B,0),he=se(ee+me),ge=!E;++z<ee;)he[z]=u[z];for(;++$<B;)(ge||$<I)&&(he[m[$]]=a[$]);for(;me--;)he[z++]=a[$++];return he}function Wy(a,u,m,E){for(var $=-1,I=a.length,B=-1,z=m.length,ee=-1,me=u.length,he=jt(I-z,0),ge=se(he+me),Re=!E;++$<he;)ge[$]=a[$];for(var $e=$;++ee<me;)ge[$e+ee]=u[ee];for(;++B<z;)(Re||$<I)&&(ge[$e+m[B]]=a[$++]);return ge}function dr(a,u){var m=-1,E=a.length;for(u||(u=se(E));++m<E;)u[m]=a[m];return u}function cn(a,u,m,E){var $=!m;m||(m={});for(var I=-1,B=u.length;++I<B;){var z=u[I],ee=E?E(m[z],a[z],z,m,a):r;ee===r&&(ee=a[z]),$?Tn(m,z,ee):Ma(m,z,ee)}return m}function ak(a,u){return cn(a,Cm(a),u)}function sk(a,u){return cn(a,nx(a),u)}function ad(a,u){return function(m,E){var $=Le(m)?fN:$I,I=u?u():{};return $(m,a,Me(E,2),I)}}function Ii(a){return je(function(u,m){var E=-1,$=m.length,I=$>1?m[$-1]:r,B=$>2?m[2]:r;for(I=a.length>3&&typeof I=="function"?($--,I):r,B&&ir(m[0],m[1],B)&&(I=$<3?r:I,$=1),u=ct(u);++E<$;){var z=m[E];z&&a(u,z,E,I)}return u})}function Hy(a,u){return function(m,E){if(m==null)return m;if(!fr(m))return a(m,E);for(var $=m.length,I=u?$:-1,B=ct(m);(u?I--:++I<$)&&E(B[I],I,B)!==!1;);return m}}function Uy(a){return function(u,m,E){for(var $=-1,I=ct(u),B=E(u),z=B.length;z--;){var ee=B[a?z:++$];if(m(I[ee],ee,I)===!1)break}return u}}function lk(a,u,m){var E=u&C,$=La(a);function I(){var B=this&&this!==Gt&&this instanceof I?$:a;return B.apply(E?m:this,arguments)}return I}function zy(a){return function(u){u=Je(u);var m=Ti(u)?Ur(u):r,E=m?m[0]:u.charAt(0),$=m?fo(m,1).join(""):u.slice(1);return E[a]()+$}}function ki(a){return function(u){return Bp(Hx(Wx(u).replace(QO,"")),a,"")}}function La(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var m=Ni(a.prototype),E=a.apply(m,u);return Et(E)?E:m}}function uk(a,u,m){var E=La(a);function $(){for(var I=arguments.length,B=se(I),z=I,ee=Li($);z--;)B[z]=arguments[z];var me=I<3&&B[0]!==ee&&B[I-1]!==ee?[]:ao(B,ee);if(I-=me.length,I<m)return Qy(a,u,sd,$.placeholder,r,B,me,r,r,m-I);var he=this&&this!==Gt&&this instanceof $?E:a;return gr(he,this,B)}return $}function Gy(a){return function(u,m,E){var $=ct(u);if(!fr(u)){var I=Me(m,3);u=Ut(u),m=function(z){return I($[z],z,$)}}var B=a(u,m,E);return B>-1?$[I?u[B]:B]:r}}function Yy(a){return An(function(u){var m=u.length,E=m,$=Or.prototype.thru;for(a&&u.reverse();E--;){var I=u[E];if(typeof I!="function")throw new Mr(s);if($&&!B&&dd(I)=="wrapper")var B=new Or([],!0)}for(E=B?E:m;++E<m;){I=u[E];var z=dd(I),ee=z=="wrapper"?wm(I):r;ee&&Pm(ee[0])&&ee[1]==(A|S|_|M)&&!ee[4].length&&ee[9]==1?B=B[dd(ee[0])].apply(B,ee[3]):B=I.length==1&&Pm(I)?B[z]():B.thru(I)}return function(){var me=arguments,he=me[0];if(B&&me.length==1&&Le(he))return B.plant(he).value();for(var ge=0,Re=m?u[ge].apply(this,me):he;++ge<m;)Re=u[ge].call(this,Re);return Re}})}function sd(a,u,m,E,$,I,B,z,ee,me){var he=u&A,ge=u&C,Re=u&x,$e=u&(S|D),Oe=u&U,qe=Re?r:La(a);function Ne(){for(var We=arguments.length,Ge=se(We),wr=We;wr--;)Ge[wr]=arguments[wr];if($e)var ar=Li(Ne),Er=wN(Ge,ar);if(E&&(Ge=Ky(Ge,E,$,$e)),I&&(Ge=Wy(Ge,I,B,$e)),We-=Er,$e&&We<me){var At=ao(Ge,ar);return Qy(a,u,sd,Ne.placeholder,m,Ge,At,z,ee,me-We)}var Yr=ge?m:this,Nn=Re?Yr[a]:a;return We=Ge.length,z?Ge=$k(Ge,z):Oe&&We>1&&Ge.reverse(),he&&ee<We&&(Ge.length=ee),this&&this!==Gt&&this instanceof Ne&&(Nn=qe||La(Nn)),Nn.apply(Yr,Ge)}return Ne}function Xy(a,u){return function(m,E){return LI(m,a,u(E),{})}}function ld(a,u){return function(m,E){var $;if(m===r&&E===r)return u;if(m!==r&&($=m),E!==r){if($===r)return E;typeof m=="string"||typeof E=="string"?(m=yr(m),E=yr(E)):(m=Iy(m),E=Iy(E)),$=a(m,E)}return $}}function gm(a){return An(function(u){return u=bt(u,br(Me())),je(function(m){var E=this;return a(u,function($){return gr($,E,m)})})})}function ud(a,u){u=u===r?" ":yr(u);var m=u.length;if(m<2)return m?cm(u,a):u;var E=cm(u,Yc(a/$i(u)));return Ti(u)?fo(Ur(E),0,a).join(""):E.slice(0,a)}function ck(a,u,m,E){var $=u&C,I=La(a);function B(){for(var z=-1,ee=arguments.length,me=-1,he=E.length,ge=se(he+ee),Re=this&&this!==Gt&&this instanceof B?I:a;++me<he;)ge[me]=E[me];for(;ee--;)ge[me++]=arguments[++z];return gr(Re,$?m:this,ge)}return B}function Zy(a){return function(u,m,E){return E&&typeof E!="number"&&ir(u,m,E)&&(m=E=r),u=On(u),m===r?(m=u,u=0):m=On(m),E=E===r?u<m?1:-1:On(E),YI(u,m,E,a)}}function cd(a){return function(u,m){return typeof u=="string"&&typeof m=="string"||(u=Lr(u),m=Lr(m)),a(u,m)}}function Qy(a,u,m,E,$,I,B,z,ee,me){var he=u&S,ge=he?B:r,Re=he?r:B,$e=he?I:r,Oe=he?r:I;u|=he?_:T,u&=~(he?T:_),u&P||(u&=-4);var qe=[a,u,$,$e,ge,Oe,Re,z,ee,me],Ne=m.apply(r,qe);return Pm(a)&&cx(Ne,qe),Ne.placeholder=E,dx(Ne,a,u)}function bm(a){var u=qt[a];return function(m,E){if(m=Lr(m),E=E==null?0:Qt(Fe(E),292),E&&dy(m)){var $=(Je(m)+"e").split("e"),I=u($[0]+"e"+(+$[1]+E));return $=(Je(I)+"e").split("e"),+($[0]+"e"+(+$[1]-E))}return u(m)}}var dk=Mi&&1/qc(new Mi([,-0]))[1]==F?function(a){return new Mi(a)}:jm;function Jy(a){return function(u){var m=Jt(u);return m==De?Gp(u):m==ne?TN(u):xN(u,a(u))}}function $n(a,u,m,E,$,I,B,z){var ee=u&x;if(!ee&&typeof a!="function")throw new Mr(s);var me=E?E.length:0;if(me||(u&=-97,E=$=r),B=B===r?B:jt(Fe(B),0),z=z===r?z:Fe(z),me-=$?$.length:0,u&T){var he=E,ge=$;E=$=r}var Re=ee?r:wm(a),$e=[a,u,m,E,$,he,ge,I,B,z];if(Re&&Sk($e,Re),a=$e[0],u=$e[1],m=$e[2],E=$e[3],$=$e[4],z=$e[9]=$e[9]===r?ee?0:a.length:jt($e[9]-me,0),!z&&u&(S|D)&&(u&=-25),!u||u==C)var Oe=lk(a,u,m);else u==S||u==D?Oe=uk(a,u,z):(u==_||u==(C|_))&&!$.length?Oe=ck(a,u,m,E):Oe=sd.apply(r,$e);var qe=Re?Oy:cx;return dx(qe(Oe,$e),a,u)}function ex(a,u,m,E){return a===r||Gr(a,Di[m])&&!nt.call(E,m)?u:a}function tx(a,u,m,E,$,I){return Et(a)&&Et(u)&&(I.set(u,a),nd(a,u,r,tx,I),I.delete(u)),a}function fk(a){return ja(a)?r:a}function rx(a,u,m,E,$,I){var B=m&w,z=a.length,ee=u.length;if(z!=ee&&!(B&&ee>z))return!1;var me=I.get(a),he=I.get(u);if(me&&he)return me==u&&he==a;var ge=-1,Re=!0,$e=m&y?new Vo:r;for(I.set(a,u),I.set(u,a);++ge<z;){var Oe=a[ge],qe=u[ge];if(E)var Ne=B?E(qe,Oe,ge,u,a,I):E(Oe,qe,ge,a,u,I);if(Ne!==r){if(Ne)continue;Re=!1;break}if($e){if(!Vp(u,function(We,Ge){if(!Sa($e,Ge)&&(Oe===We||$(Oe,We,m,E,I)))return $e.push(Ge)})){Re=!1;break}}else if(!(Oe===qe||$(Oe,qe,m,E,I))){Re=!1;break}}return I.delete(a),I.delete(u),Re}function pk(a,u,m,E,$,I,B){switch(m){case ze:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case Ke:return!(a.byteLength!=u.byteLength||!I(new Hc(a),new Hc(u)));case ve:case q:case Ue:return Gr(+a,+u);case oe:return a.name==u.name&&a.message==u.message;case H:case de:return a==u+"";case De:var z=Gp;case ne:var ee=E&w;if(z||(z=qc),a.size!=u.size&&!ee)return!1;var me=B.get(a);if(me)return me==u;E|=y,B.set(a,u);var he=rx(z(a),z(u),E,$,I,B);return B.delete(a),he;case Ee:if(Da)return Da.call(a)==Da.call(u)}return!1}function mk(a,u,m,E,$,I){var B=m&w,z=ym(a),ee=z.length,me=ym(u),he=me.length;if(ee!=he&&!B)return!1;for(var ge=ee;ge--;){var Re=z[ge];if(!(B?Re in u:nt.call(u,Re)))return!1}var $e=I.get(a),Oe=I.get(u);if($e&&Oe)return $e==u&&Oe==a;var qe=!0;I.set(a,u),I.set(u,a);for(var Ne=B;++ge<ee;){Re=z[ge];var We=a[Re],Ge=u[Re];if(E)var wr=B?E(Ge,We,Re,u,a,I):E(We,Ge,Re,a,u,I);if(!(wr===r?We===Ge||$(We,Ge,m,E,I):wr)){qe=!1;break}Ne||(Ne=Re=="constructor")}if(qe&&!Ne){var ar=a.constructor,Er=u.constructor;ar!=Er&&"constructor"in a&&"constructor"in u&&!(typeof ar=="function"&&ar instanceof ar&&typeof Er=="function"&&Er instanceof Er)&&(qe=!1)}return I.delete(a),I.delete(u),qe}function An(a){return _m(lx(a,r,gx),a+"")}function ym(a){return Ey(a,Ut,Cm)}function xm(a){return Ey(a,pr,nx)}var wm=Zc?function(a){return Zc.get(a)}:jm;function dd(a){for(var u=a.name+"",m=Oi[u],E=nt.call(Oi,u)?m.length:0;E--;){var $=m[E],I=$.func;if(I==null||I==a)return $.name}return u}function Li(a){var u=nt.call(O,"placeholder")?O:a;return u.placeholder}function Me(){var a=O.iteratee||Fm;return a=a===Fm?Py:a,arguments.length?a(arguments[0],arguments[1]):a}function fd(a,u){var m=a.__data__;return Ek(u)?m[typeof u=="string"?"string":"hash"]:m.map}function Em(a){for(var u=Ut(a),m=u.length;m--;){var E=u[m],$=a[E];u[m]=[E,$,ax($)]}return u}function Ho(a,u){var m=PN(a,u);return Ry(m)?m:r}function hk(a){var u=nt.call(a,jo),m=a[jo];try{a[jo]=r;var E=!0}catch{}var $=Kc.call(a);return E&&(u?a[jo]=m:delete a[jo]),$}var Cm=Xp?function(a){return a==null?[]:(a=ct(a),oo(Xp(a),function(u){return uy.call(a,u)}))}:Bm,nx=Xp?function(a){for(var u=[];a;)io(u,Cm(a)),a=Uc(a);return u}:Bm,Jt=or;(Zp&&Jt(new Zp(new ArrayBuffer(1)))!=ze||Ta&&Jt(new Ta)!=De||Qp&&Jt(Qp.resolve())!=Pa||Mi&&Jt(new Mi)!=ne||$a&&Jt(new $a)!=be)&&(Jt=function(a){var u=or(a),m=u==mt?a.constructor:r,E=m?Uo(m):"";if(E)switch(E){case ZN:return ze;case QN:return De;case JN:return Pa;case eI:return ne;case tI:return be}return u});function vk(a,u,m){for(var E=-1,$=m.length;++E<$;){var I=m[E],B=I.size;switch(I.type){case"drop":a+=B;break;case"dropRight":u-=B;break;case"take":u=Qt(u,a+B);break;case"takeRight":a=jt(a,u-B);break}}return{start:a,end:u}}function gk(a){var u=a.match(CO);return u?u[1].split(RO):[]}function ox(a,u,m){u=co(u,a);for(var E=-1,$=u.length,I=!1;++E<$;){var B=dn(u[E]);if(!(I=a!=null&&m(a,B)))break;a=a[B]}return I||++E!=$?I:($=a==null?0:a.length,!!$&&yd($)&&Dn(B,$)&&(Le(a)||zo(a)))}function bk(a){var u=a.length,m=new a.constructor(u);return u&&typeof a[0]=="string"&&nt.call(a,"index")&&(m.index=a.index,m.input=a.input),m}function ix(a){return typeof a.constructor=="function"&&!Fa(a)?Ni(Uc(a)):{}}function yk(a,u,m){var E=a.constructor;switch(u){case Ke:return vm(a);case ve:case q:return new E(+a);case ze:return rk(a,m);case Ht:case ln:case cr:case ko:case Rn:case Pn:case Lo:case no:case Fo:return By(a,m);case De:return new E;case Ue:case de:return new E(a);case H:return nk(a);case ne:return new E;case Ee:return ok(a)}}function xk(a,u){var m=u.length;if(!m)return a;var E=m-1;return u[E]=(m>1?"& ":"")+u[E],u=u.join(m>2?", ":" "),a.replace(EO,`{
108
108
  /* [wrapped with `+u+`] */
109
- `)}function wk(a){return Le(a)||zo(a)||!!(cy&&a&&a[cy])}function Dn(a,u){var m=typeof a;return u=u??B,!!u&&(m=="number"||m!="symbol"&&OO.test(a))&&a>-1&&a%1==0&&a<u}function ir(a,u,m){if(!Et(m))return!1;var E=typeof u;return(E=="number"?fr(m)&&Dn(u,m.length):E=="string"&&u in m)?Gr(m[u],a):!1}function Rm(a,u){if(Le(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||xr(a)?!0:Ap.test(a)||!$p.test(a)||u!=null&&a in ct(u)}function Ek(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function Pm(a){var u=dd(a),m=O[u];if(typeof m!="function"||!(u in He.prototype))return!1;if(a===m)return!0;var E=wm(m);return!!E&&a===E[0]}function Ck(a){return!!ay&&ay in a}var Rk=Bc?Mn:Vm;function Fa(a){var u=a&&a.constructor,m=typeof u=="function"&&u.prototype||Di;return a===m}function ax(a){return a===a&&!Et(a)}function sx(a,u){return function(m){return m==null?!1:m[a]===u&&(u!==r||a in ct(m))}}function Pk(a){var u=gd(a,function(E){return m.size===d&&m.clear(),E}),m=u.cache;return u}function Sk(a,u){var m=a[1],E=u[1],$=m|E,I=$<(C|x|A),V=E==A&&m==S||E==A&&m==M&&a[7].length<=u[8]||E==(A|M)&&u[7].length<=u[8]&&m==S;if(!(I||V))return a;E&C&&(a[2]=u[2],$|=m&C?0:P);var z=u[3];if(z){var ee=a[3];a[3]=ee?Ky(ee,z,u[4]):z,a[4]=ee?ao(a[3],f):u[4]}return z=u[5],z&&(ee=a[5],a[5]=ee?Wy(ee,z,u[6]):z,a[6]=ee?ao(a[5],f):u[6]),z=u[7],z&&(a[7]=z),E&A&&(a[8]=a[8]==null?u[8]:Qt(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=$,a}function _k(a){var u=[];if(a!=null)for(var m in ct(a))u.push(m);return u}function Tk(a){return Kc.call(a)}function lx(a,u,m){return u=jt(u===r?a.length-1:u,0),function(){for(var E=arguments,$=-1,I=jt(E.length-u,0),V=se(I);++$<I;)V[$]=E[u+$];$=-1;for(var z=se(u+1);++$<u;)z[$]=E[$];return z[u]=m(V),gr(a,this,z)}}function ux(a,u){return u.length<2?a:Wo(a,Ir(u,0,-1))}function $k(a,u){for(var m=a.length,E=Qt(u.length,m),$=dr(a);E--;){var I=u[E];a[E]=Dn(I,m)?$[I]:r}return a}function Sm(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var cx=fx(Oy),qa=WN||function(a,u){return Gt.setTimeout(a,u)},_m=fx(QI);function dx(a,u,m){var E=u+"";return _m(a,xk(E,Ak(gk(E),m)))}function fx(a){var u=0,m=0;return function(){var E=GN(),$=F-(E-m);if(m=E,$>0){if(++u>=W)return arguments[0]}else u=0;return a.apply(r,arguments)}}function pd(a,u){var m=-1,E=a.length,$=E-1;for(u=u===r?E:u;++m<u;){var I=um(m,$),V=a[I];a[I]=a[m],a[m]=V}return a.length=u,a}var px=Pk(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(Pi,function(m,E,$,I){u.push($?I.replace(_O,"$1"):E||m)}),u});function dn(a){if(typeof a=="string"||xr(a))return a;var u=a+"";return u=="0"&&1/a==-q?"-0":u}function Uo(a){if(a!=null){try{return Vc.call(a)}catch{}try{return a+""}catch{}}return""}function Ak(a,u){return Dr(ce,function(m){var E="_."+m[0];u&m[1]&&!Lc(a,E)&&a.push(E)}),a.sort()}function mx(a){if(a instanceof He)return a.clone();var u=new Or(a.__wrapped__,a.__chain__);return u.__actions__=dr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function Dk(a,u,m){(m?ir(a,u,m):u===r)?u=1:u=jt(Fe(u),0);var E=a==null?0:a.length;if(!E||u<1)return[];for(var $=0,I=0,V=se(Yc(E/u));$<E;)V[I++]=Ir(a,$,$+=u);return V}function Mk(a){for(var u=-1,m=a==null?0:a.length,E=0,$=[];++u<m;){var I=a[u];I&&($[E++]=I)}return $}function Ok(){var a=arguments.length;if(!a)return[];for(var u=se(a-1),m=arguments[0],E=a;E--;)u[E-1]=arguments[E];return io(Le(m)?dr(m):[m],Yt(u,1))}var Nk=je(function(a,u){return $t(a)?Oa(a,Yt(u,1,$t,!0)):[]}),Ik=je(function(a,u){var m=kr(u);return $t(m)&&(m=r),$t(a)?Oa(a,Yt(u,1,$t,!0),Me(m,2)):[]}),kk=je(function(a,u){var m=kr(u);return $t(m)&&(m=r),$t(a)?Oa(a,Yt(u,1,$t,!0),r,m):[]});function Lk(a,u,m){var E=a==null?0:a.length;return E?(u=m||u===r?1:Fe(u),Ir(a,u<0?0:u,E)):[]}function Fk(a,u,m){var E=a==null?0:a.length;return E?(u=m||u===r?1:Fe(u),u=E-u,Ir(a,0,u<0?0:u)):[]}function qk(a,u){return a&&a.length?id(a,Me(u,3),!0,!0):[]}function jk(a,u){return a&&a.length?id(a,Me(u,3),!0):[]}function Bk(a,u,m,E){var $=a==null?0:a.length;return $?(m&&typeof m!="number"&&ir(a,u,m)&&(m=0,E=$),OI(a,u,m,E)):[]}function hx(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=m==null?0:Fe(m);return $<0&&($=jt(E+$,0)),Fc(a,Me(u,3),$)}function vx(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=E-1;return m!==r&&($=Fe(m),$=m<0?jt(E+$,0):Qt($,E-1)),Fc(a,Me(u,3),$,!0)}function gx(a){var u=a==null?0:a.length;return u?Yt(a,1):[]}function Vk(a){var u=a==null?0:a.length;return u?Yt(a,q):[]}function Kk(a,u){var m=a==null?0:a.length;return m?(u=u===r?1:Fe(u),Yt(a,u)):[]}function Wk(a){for(var u=-1,m=a==null?0:a.length,E={};++u<m;){var $=a[u];E[$[0]]=$[1]}return E}function bx(a){return a&&a.length?a[0]:r}function Hk(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=m==null?0:Fe(m);return $<0&&($=jt(E+$,0)),_i(a,u,$)}function Uk(a){var u=a==null?0:a.length;return u?Ir(a,0,-1):[]}var zk=je(function(a){var u=bt(a,mm);return u.length&&u[0]===a[0]?om(u):[]}),Gk=je(function(a){var u=kr(a),m=bt(a,mm);return u===kr(m)?u=r:m.pop(),m.length&&m[0]===a[0]?om(m,Me(u,2)):[]}),Yk=je(function(a){var u=kr(a),m=bt(a,mm);return u=typeof u=="function"?u:r,u&&m.pop(),m.length&&m[0]===a[0]?om(m,r,u):[]});function Xk(a,u){return a==null?"":UN.call(a,u)}function kr(a){var u=a==null?0:a.length;return u?a[u-1]:r}function Zk(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=E;return m!==r&&($=Fe(m),$=$<0?jt(E+$,0):Qt($,E-1)),u===u?AN(a,u,$):Fc(a,Qb,$,!0)}function Qk(a,u){return a&&a.length?$y(a,Fe(u)):r}var Jk=je(yx);function yx(a,u){return a&&a.length&&u&&u.length?lm(a,u):a}function e4(a,u,m){return a&&a.length&&u&&u.length?lm(a,u,Me(m,2)):a}function t4(a,u,m){return a&&a.length&&u&&u.length?lm(a,u,r,m):a}var r4=An(function(a,u){var m=a==null?0:a.length,E=em(a,u);return My(a,bt(u,function($){return Dn($,m)?+$:$}).sort(Vy)),E});function n4(a,u){var m=[];if(!(a&&a.length))return m;var E=-1,$=[],I=a.length;for(u=Me(u,3);++E<I;){var V=a[E];u(V,E,a)&&(m.push(V),$.push(E))}return My(a,$),m}function Tm(a){return a==null?a:XN.call(a)}function o4(a,u,m){var E=a==null?0:a.length;return E?(m&&typeof m!="number"&&ir(a,u,m)?(u=0,m=E):(u=u==null?0:Fe(u),m=m===r?E:Fe(m)),Ir(a,u,m)):[]}function i4(a,u){return od(a,u)}function a4(a,u,m){return dm(a,u,Me(m,2))}function s4(a,u){var m=a==null?0:a.length;if(m){var E=od(a,u);if(E<m&&Gr(a[E],u))return E}return-1}function l4(a,u){return od(a,u,!0)}function u4(a,u,m){return dm(a,u,Me(m,2),!0)}function c4(a,u){var m=a==null?0:a.length;if(m){var E=od(a,u,!0)-1;if(Gr(a[E],u))return E}return-1}function d4(a){return a&&a.length?Ny(a):[]}function f4(a,u){return a&&a.length?Ny(a,Me(u,2)):[]}function p4(a){var u=a==null?0:a.length;return u?Ir(a,1,u):[]}function m4(a,u,m){return a&&a.length?(u=m||u===r?1:Fe(u),Ir(a,0,u<0?0:u)):[]}function h4(a,u,m){var E=a==null?0:a.length;return E?(u=m||u===r?1:Fe(u),u=E-u,Ir(a,u<0?0:u,E)):[]}function v4(a,u){return a&&a.length?id(a,Me(u,3),!1,!0):[]}function g4(a,u){return a&&a.length?id(a,Me(u,3)):[]}var b4=je(function(a){return uo(Yt(a,1,$t,!0))}),y4=je(function(a){var u=kr(a);return $t(u)&&(u=r),uo(Yt(a,1,$t,!0),Me(u,2))}),x4=je(function(a){var u=kr(a);return u=typeof u=="function"?u:r,uo(Yt(a,1,$t,!0),r,u)});function w4(a){return a&&a.length?uo(a):[]}function E4(a,u){return a&&a.length?uo(a,Me(u,2)):[]}function C4(a,u){return u=typeof u=="function"?u:r,a&&a.length?uo(a,r,u):[]}function $m(a){if(!(a&&a.length))return[];var u=0;return a=oo(a,function(m){if($t(m))return u=jt(m.length,u),!0}),Up(u,function(m){return bt(a,Kp(m))})}function xx(a,u){if(!(a&&a.length))return[];var m=$m(a);return u==null?m:bt(m,function(E){return gr(u,r,E)})}var R4=je(function(a,u){return $t(a)?Oa(a,u):[]}),P4=je(function(a){return pm(oo(a,$t))}),S4=je(function(a){var u=kr(a);return $t(u)&&(u=r),pm(oo(a,$t),Me(u,2))}),_4=je(function(a){var u=kr(a);return u=typeof u=="function"?u:r,pm(oo(a,$t),r,u)}),T4=je($m);function $4(a,u){return Fy(a||[],u||[],Ma)}function A4(a,u){return Fy(a||[],u||[],ka)}var D4=je(function(a){var u=a.length,m=u>1?a[u-1]:r;return m=typeof m=="function"?(a.pop(),m):r,xx(a,m)});function wx(a){var u=O(a);return u.__chain__=!0,u}function M4(a,u){return u(a),a}function md(a,u){return u(a)}var O4=An(function(a){var u=a.length,m=u?a[0]:0,E=this.__wrapped__,$=function(I){return em(I,a)};return u>1||this.__actions__.length||!(E instanceof He)||!Dn(m)?this.thru($):(E=E.slice(m,+m+(u?1:0)),E.__actions__.push({func:md,args:[$],thisArg:r}),new Or(E,this.__chain__).thru(function(I){return u&&!I.length&&I.push(r),I}))});function N4(){return wx(this)}function I4(){return new Or(this.value(),this.__chain__)}function k4(){this.__values__===r&&(this.__values__=Ix(this.value()));var a=this.__index__>=this.__values__.length,u=a?r:this.__values__[this.__index__++];return{done:a,value:u}}function L4(){return this}function F4(a){for(var u,m=this;m instanceof Jc;){var E=mx(m);E.__index__=0,E.__values__=r,u?$.__wrapped__=E:u=E;var $=E;m=m.__wrapped__}return $.__wrapped__=a,u}function q4(){var a=this.__wrapped__;if(a instanceof He){var u=a;return this.__actions__.length&&(u=new He(this)),u=u.reverse(),u.__actions__.push({func:md,args:[Tm],thisArg:r}),new Or(u,this.__chain__)}return this.thru(Tm)}function j4(){return Ly(this.__wrapped__,this.__actions__)}var B4=ad(function(a,u,m){nt.call(a,m)?++a[m]:Tn(a,m,1)});function V4(a,u,m){var E=Le(a)?Xb:MI;return m&&ir(a,u,m)&&(u=r),E(a,Me(u,3))}function K4(a,u){var m=Le(a)?oo:xy;return m(a,Me(u,3))}var W4=Gy(hx),H4=Gy(vx);function U4(a,u){return Yt(hd(a,u),1)}function z4(a,u){return Yt(hd(a,u),q)}function G4(a,u,m){return m=m===r?1:Fe(m),Yt(hd(a,u),m)}function Ex(a,u){var m=Le(a)?Dr:lo;return m(a,Me(u,3))}function Cx(a,u){var m=Le(a)?pN:yy;return m(a,Me(u,3))}var Y4=ad(function(a,u,m){nt.call(a,m)?a[m].push(u):Tn(a,m,[u])});function X4(a,u,m,E){a=fr(a)?a:qi(a),m=m&&!E?Fe(m):0;var $=a.length;return m<0&&(m=jt($+m,0)),xd(a)?m<=$&&a.indexOf(u,m)>-1:!!$&&_i(a,u,m)>-1}var Z4=je(function(a,u,m){var E=-1,$=typeof u=="function",I=fr(a)?se(a.length):[];return lo(a,function(V){I[++E]=$?gr(u,V,m):Na(V,u,m)}),I}),Q4=ad(function(a,u,m){Tn(a,m,u)});function hd(a,u){var m=Le(a)?bt:Sy;return m(a,Me(u,3))}function J4(a,u,m,E){return a==null?[]:(Le(u)||(u=u==null?[]:[u]),m=E?r:m,Le(m)||(m=m==null?[]:[m]),Ay(a,u,m))}var e3=ad(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function t3(a,u,m){var E=Le(a)?Bp:ey,$=arguments.length<3;return E(a,Me(u,4),m,$,lo)}function r3(a,u,m){var E=Le(a)?mN:ey,$=arguments.length<3;return E(a,Me(u,4),m,$,yy)}function n3(a,u){var m=Le(a)?oo:xy;return m(a,bd(Me(u,3)))}function o3(a){var u=Le(a)?hy:XI;return u(a)}function i3(a,u,m){(m?ir(a,u,m):u===r)?u=1:u=Fe(u);var E=Le(a)?_I:ZI;return E(a,u)}function a3(a){var u=Le(a)?TI:JI;return u(a)}function s3(a){if(a==null)return 0;if(fr(a))return xd(a)?$i(a):a.length;var u=Jt(a);return u==De||u==ne?a.size:am(a).length}function l3(a,u,m){var E=Le(a)?Vp:ek;return m&&ir(a,u,m)&&(u=r),E(a,Me(u,3))}var u3=je(function(a,u){if(a==null)return[];var m=u.length;return m>1&&ir(a,u[0],u[1])?u=[]:m>2&&ir(u[0],u[1],u[2])&&(u=[u[0]]),Ay(a,Yt(u,1),[])}),vd=KN||function(){return Gt.Date.now()};function c3(a,u){if(typeof u!="function")throw new Mr(s);return a=Fe(a),function(){if(--a<1)return u.apply(this,arguments)}}function Rx(a,u,m){return u=m?r:u,u=a&&u==null?a.length:u,$n(a,A,r,r,r,r,u)}function Px(a,u){var m;if(typeof u!="function")throw new Mr(s);return a=Fe(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=r),m}}var Am=je(function(a,u,m){var E=C;if(m.length){var $=ao(m,Li(Am));E|=_}return $n(a,E,u,m,$)}),Sx=je(function(a,u,m){var E=C|x;if(m.length){var $=ao(m,Li(Sx));E|=_}return $n(u,E,a,m,$)});function _x(a,u,m){u=m?r:u;var E=$n(a,S,r,r,r,r,r,u);return E.placeholder=_x.placeholder,E}function Tx(a,u,m){u=m?r:u;var E=$n(a,D,r,r,r,r,r,u);return E.placeholder=Tx.placeholder,E}function $x(a,u,m){var E,$,I,V,z,ee,me=0,he=!1,ge=!1,Re=!0;if(typeof a!="function")throw new Mr(s);u=Lr(u)||0,Et(m)&&(he=!!m.leading,ge="maxWait"in m,I=ge?jt(Lr(m.maxWait)||0,u):I,Re="trailing"in m?!!m.trailing:Re);function $e(At){var Yr=E,Nn=$;return E=$=r,me=At,V=a.apply(Nn,Yr),V}function Oe(At){return me=At,z=qa(We,u),he?$e(At):V}function qe(At){var Yr=At-ee,Nn=At-me,Gx=u-Yr;return ge?Qt(Gx,I-Nn):Gx}function Ne(At){var Yr=At-ee,Nn=At-me;return ee===r||Yr>=u||Yr<0||ge&&Nn>=I}function We(){var At=vd();if(Ne(At))return Ge(At);z=qa(We,qe(At))}function Ge(At){return z=r,Re&&E?$e(At):(E=$=r,V)}function wr(){z!==r&&qy(z),me=0,E=ee=$=z=r}function ar(){return z===r?V:Ge(vd())}function Er(){var At=vd(),Yr=Ne(At);if(E=arguments,$=this,ee=At,Yr){if(z===r)return Oe(ee);if(ge)return qy(z),z=qa(We,u),$e(ee)}return z===r&&(z=qa(We,u)),V}return Er.cancel=wr,Er.flush=ar,Er}var d3=je(function(a,u){return by(a,1,u)}),f3=je(function(a,u,m){return by(a,Lr(u)||0,m)});function p3(a){return $n(a,U)}function gd(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Mr(s);var m=function(){var E=arguments,$=u?u.apply(this,E):E[0],I=m.cache;if(I.has($))return I.get($);var V=a.apply(this,E);return m.cache=I.set($,V)||I,V};return m.cache=new(gd.Cache||_n),m}gd.Cache=_n;function bd(a){if(typeof a!="function")throw new Mr(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function m3(a){return Px(2,a)}var h3=tk(function(a,u){u=u.length==1&&Le(u[0])?bt(u[0],br(Me())):bt(Yt(u,1),br(Me()));var m=u.length;return je(function(E){for(var $=-1,I=Qt(E.length,m);++$<I;)E[$]=u[$].call(this,E[$]);return gr(a,this,E)})}),Dm=je(function(a,u){var m=ao(u,Li(Dm));return $n(a,_,r,u,m)}),Ax=je(function(a,u){var m=ao(u,Li(Ax));return $n(a,T,r,u,m)}),v3=An(function(a,u){return $n(a,M,r,r,r,u)});function g3(a,u){if(typeof a!="function")throw new Mr(s);return u=u===r?u:Fe(u),je(a,u)}function b3(a,u){if(typeof a!="function")throw new Mr(s);return u=u==null?0:jt(Fe(u),0),je(function(m){var E=m[u],$=fo(m,0,u);return E&&io($,E),gr(a,this,$)})}function y3(a,u,m){var E=!0,$=!0;if(typeof a!="function")throw new Mr(s);return Et(m)&&(E="leading"in m?!!m.leading:E,$="trailing"in m?!!m.trailing:$),$x(a,u,{leading:E,maxWait:u,trailing:$})}function x3(a){return Rx(a,1)}function w3(a,u){return Dm(hm(u),a)}function E3(){if(!arguments.length)return[];var a=arguments[0];return Le(a)?a:[a]}function C3(a){return Nr(a,b)}function R3(a,u){return u=typeof u=="function"?u:r,Nr(a,b,u)}function P3(a){return Nr(a,p|b)}function S3(a,u){return u=typeof u=="function"?u:r,Nr(a,p|b,u)}function _3(a,u){return u==null||gy(a,u,Ut(u))}function Gr(a,u){return a===u||a!==a&&u!==u}var T3=cd(nm),$3=cd(function(a,u){return a>=u}),zo=Cy((function(){return arguments})())?Cy:function(a){return Pt(a)&&nt.call(a,"callee")&&!uy.call(a,"callee")},Le=se.isArray,A3=Wb?br(Wb):FI;function fr(a){return a!=null&&yd(a.length)&&!Mn(a)}function $t(a){return Pt(a)&&fr(a)}function D3(a){return a===!0||a===!1||Pt(a)&&or(a)==ve}var po=HN||Vm,M3=Hb?br(Hb):qI;function O3(a){return Pt(a)&&a.nodeType===1&&!ja(a)}function N3(a){if(a==null)return!0;if(fr(a)&&(Le(a)||typeof a=="string"||typeof a.splice=="function"||po(a)||Fi(a)||zo(a)))return!a.length;var u=Jt(a);if(u==De||u==ne)return!a.size;if(Fa(a))return!am(a).length;for(var m in a)if(nt.call(a,m))return!1;return!0}function I3(a,u){return Ia(a,u)}function k3(a,u,m){m=typeof m=="function"?m:r;var E=m?m(a,u):r;return E===r?Ia(a,u,r,m):!!E}function Mm(a){if(!Pt(a))return!1;var u=or(a);return u==oe||u==ae||typeof a.message=="string"&&typeof a.name=="string"&&!ja(a)}function L3(a){return typeof a=="number"&&dy(a)}function Mn(a){if(!Et(a))return!1;var u=or(a);return u==Z||u==we||u==te||u==Ci}function Dx(a){return typeof a=="number"&&a==Fe(a)}function yd(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=B}function Et(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function Pt(a){return a!=null&&typeof a=="object"}var Mx=Ub?br(Ub):BI;function F3(a,u){return a===u||im(a,u,Em(u))}function q3(a,u,m){return m=typeof m=="function"?m:r,im(a,u,Em(u),m)}function j3(a){return Ox(a)&&a!=+a}function B3(a){if(Rk(a))throw new ke(i);return Ry(a)}function V3(a){return a===null}function K3(a){return a==null}function Ox(a){return typeof a=="number"||Pt(a)&&or(a)==Ue}function ja(a){if(!Pt(a)||or(a)!=mt)return!1;var u=Uc(a);if(u===null)return!0;var m=nt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&Vc.call(m)==qN}var Om=zb?br(zb):VI;function W3(a){return Dx(a)&&a>=-B&&a<=B}var Nx=Gb?br(Gb):KI;function xd(a){return typeof a=="string"||!Le(a)&&Pt(a)&&or(a)==de}function xr(a){return typeof a=="symbol"||Pt(a)&&or(a)==Ee}var Fi=Yb?br(Yb):WI;function H3(a){return a===r}function U3(a){return Pt(a)&&Jt(a)==be}function z3(a){return Pt(a)&&or(a)==Ae}var G3=cd(sm),Y3=cd(function(a,u){return a<=u});function Ix(a){if(!a)return[];if(fr(a))return xd(a)?Ur(a):dr(a);if(_a&&a[_a])return _N(a[_a]());var u=Jt(a),m=u==De?Gp:u==ne?qc:qi;return m(a)}function On(a){if(!a)return a===0?a:0;if(a=Lr(a),a===q||a===-q){var u=a<0?-1:1;return u*re}return a===a?a:0}function Fe(a){var u=On(a),m=u%1;return u===u?m?u-m:u:0}function kx(a){return a?Ko(Fe(a),0,ie):0}function Lr(a){if(typeof a=="number")return a;if(xr(a))return K;if(Et(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=Et(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=ty(a);var m=AO.test(a);return m||MO.test(a)?cN(a.slice(2),m?2:8):$O.test(a)?K:+a}function Lx(a){return cn(a,pr(a))}function X3(a){return a?Ko(Fe(a),-B,B):a===0?a:0}function Je(a){return a==null?"":yr(a)}var Z3=Ii(function(a,u){if(Fa(u)||fr(u)){cn(u,Ut(u),a);return}for(var m in u)nt.call(u,m)&&Ma(a,m,u[m])}),Fx=Ii(function(a,u){cn(u,pr(u),a)}),wd=Ii(function(a,u,m,E){cn(u,pr(u),a,E)}),Q3=Ii(function(a,u,m,E){cn(u,Ut(u),a,E)}),J3=An(em);function e2(a,u){var m=Ni(a);return u==null?m:vy(m,u)}var t2=je(function(a,u){a=ct(a);var m=-1,E=u.length,$=E>2?u[2]:r;for($&&ir(u[0],u[1],$)&&(E=1);++m<E;)for(var I=u[m],V=pr(I),z=-1,ee=V.length;++z<ee;){var me=V[z],he=a[me];(he===r||Gr(he,Di[me])&&!nt.call(a,me))&&(a[me]=I[me])}return a}),r2=je(function(a){return a.push(r,tx),gr(qx,r,a)});function n2(a,u){return Zb(a,Me(u,3),un)}function o2(a,u){return Zb(a,Me(u,3),rm)}function i2(a,u){return a==null?a:tm(a,Me(u,3),pr)}function a2(a,u){return a==null?a:wy(a,Me(u,3),pr)}function s2(a,u){return a&&un(a,Me(u,3))}function l2(a,u){return a&&rm(a,Me(u,3))}function u2(a){return a==null?[]:rd(a,Ut(a))}function c2(a){return a==null?[]:rd(a,pr(a))}function Nm(a,u,m){var E=a==null?r:Wo(a,u);return E===r?m:E}function d2(a,u){return a!=null&&ox(a,u,NI)}function Im(a,u){return a!=null&&ox(a,u,II)}var f2=Xy(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=Kc.call(u)),a[u]=m},Lm(mr)),p2=Xy(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=Kc.call(u)),nt.call(a,u)?a[u].push(m):a[u]=[m]},Me),m2=je(Na);function Ut(a){return fr(a)?my(a):am(a)}function pr(a){return fr(a)?my(a,!0):HI(a)}function h2(a,u){var m={};return u=Me(u,3),un(a,function(E,$,I){Tn(m,u(E,$,I),E)}),m}function v2(a,u){var m={};return u=Me(u,3),un(a,function(E,$,I){Tn(m,$,u(E,$,I))}),m}var g2=Ii(function(a,u,m){nd(a,u,m)}),qx=Ii(function(a,u,m,E){nd(a,u,m,E)}),b2=An(function(a,u){var m={};if(a==null)return m;var E=!1;u=bt(u,function(I){return I=co(I,a),E||(E=I.length>1),I}),cn(a,xm(a),m),E&&(m=Nr(m,p|h|b,fk));for(var $=u.length;$--;)fm(m,u[$]);return m});function y2(a,u){return jx(a,bd(Me(u)))}var x2=An(function(a,u){return a==null?{}:zI(a,u)});function jx(a,u){if(a==null)return{};var m=bt(xm(a),function(E){return[E]});return u=Me(u),Dy(a,m,function(E,$){return u(E,$[0])})}function w2(a,u,m){u=co(u,a);var E=-1,$=u.length;for($||($=1,a=r);++E<$;){var I=a==null?r:a[dn(u[E])];I===r&&(E=$,I=m),a=Mn(I)?I.call(a):I}return a}function E2(a,u,m){return a==null?a:ka(a,u,m)}function C2(a,u,m,E){return E=typeof E=="function"?E:r,a==null?a:ka(a,u,m,E)}var Bx=Jy(Ut),Vx=Jy(pr);function R2(a,u,m){var E=Le(a),$=E||po(a)||Fi(a);if(u=Me(u,4),m==null){var I=a&&a.constructor;$?m=E?new I:[]:Et(a)?m=Mn(I)?Ni(Uc(a)):{}:m={}}return($?Dr:un)(a,function(V,z,ee){return u(m,V,z,ee)}),m}function P2(a,u){return a==null?!0:fm(a,u)}function S2(a,u,m){return a==null?a:ky(a,u,hm(m))}function _2(a,u,m,E){return E=typeof E=="function"?E:r,a==null?a:ky(a,u,hm(m),E)}function qi(a){return a==null?[]:zp(a,Ut(a))}function T2(a){return a==null?[]:zp(a,pr(a))}function $2(a,u,m){return m===r&&(m=u,u=r),m!==r&&(m=Lr(m),m=m===m?m:0),u!==r&&(u=Lr(u),u=u===u?u:0),Ko(Lr(a),u,m)}function A2(a,u,m){return u=On(u),m===r?(m=u,u=0):m=On(m),a=Lr(a),kI(a,u,m)}function D2(a,u,m){if(m&&typeof m!="boolean"&&ir(a,u,m)&&(u=m=r),m===r&&(typeof u=="boolean"?(m=u,u=r):typeof a=="boolean"&&(m=a,a=r)),a===r&&u===r?(a=0,u=1):(a=On(a),u===r?(u=a,a=0):u=On(u)),a>u){var E=a;a=u,u=E}if(m||a%1||u%1){var $=fy();return Qt(a+$*(u-a+uN("1e-"+(($+"").length-1))),u)}return um(a,u)}var M2=ki(function(a,u,m){return u=u.toLowerCase(),a+(m?Kx(u):u)});function Kx(a){return km(Je(a).toLowerCase())}function Wx(a){return a=Je(a),a&&a.replace(NO,EN).replace(JO,"")}function O2(a,u,m){a=Je(a),u=yr(u);var E=a.length;m=m===r?E:Ko(Fe(m),0,E);var $=m;return m-=u.length,m>=0&&a.slice(m,$)==u}function N2(a){return a=Je(a),a&&Sp.test(a)?a.replace(Oc,CN):a}function I2(a){return a=Je(a),a&&xO.test(a)?a.replace(Dp,"\\$&"):a}var k2=ki(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),L2=ki(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),F2=zy("toLowerCase");function q2(a,u,m){a=Je(a),u=Fe(u);var E=u?$i(a):0;if(!u||E>=u)return a;var $=(u-E)/2;return ud(Xc($),m)+a+ud(Yc($),m)}function j2(a,u,m){a=Je(a),u=Fe(u);var E=u?$i(a):0;return u&&E<u?a+ud(u-E,m):a}function B2(a,u,m){a=Je(a),u=Fe(u);var E=u?$i(a):0;return u&&E<u?ud(u-E,m)+a:a}function V2(a,u,m){return m||u==null?u=0:u&&(u=+u),YN(Je(a).replace(Mp,""),u||0)}function K2(a,u,m){return(m?ir(a,u,m):u===r)?u=1:u=Fe(u),cm(Je(a),u)}function W2(){var a=arguments,u=Je(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var H2=ki(function(a,u,m){return a+(m?"_":"")+u.toLowerCase()});function U2(a,u,m){return m&&typeof m!="number"&&ir(a,u,m)&&(u=m=r),m=m===r?ie:m>>>0,m?(a=Je(a),a&&(typeof u=="string"||u!=null&&!Om(u))&&(u=yr(u),!u&&Ti(a))?fo(Ur(a),0,m):a.split(u,m)):[]}var z2=ki(function(a,u,m){return a+(m?" ":"")+km(u)});function G2(a,u,m){return a=Je(a),m=m==null?0:Ko(Fe(m),0,a.length),u=yr(u),a.slice(m,m+u.length)==u}function Y2(a,u,m){var E=O.templateSettings;m&&ir(a,u,m)&&(u=r),a=Je(a),u=wd({},u,E,ex);var $=wd({},u.imports,E.imports,ex),I=Ut($),V=zp($,I),z,ee,me=0,he=u.interpolate||Nc,ge="__p += '",Re=Yp((u.escape||Nc).source+"|"+he.source+"|"+(he===ye?TO:Nc).source+"|"+(u.evaluate||Nc).source+"|$","g"),$e="//# sourceURL="+(nt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oN+"]")+`
109
+ `)}function wk(a){return Le(a)||zo(a)||!!(cy&&a&&a[cy])}function Dn(a,u){var m=typeof a;return u=u??j,!!u&&(m=="number"||m!="symbol"&&OO.test(a))&&a>-1&&a%1==0&&a<u}function ir(a,u,m){if(!Et(m))return!1;var E=typeof u;return(E=="number"?fr(m)&&Dn(u,m.length):E=="string"&&u in m)?Gr(m[u],a):!1}function Rm(a,u){if(Le(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||xr(a)?!0:Ap.test(a)||!$p.test(a)||u!=null&&a in ct(u)}function Ek(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function Pm(a){var u=dd(a),m=O[u];if(typeof m!="function"||!(u in He.prototype))return!1;if(a===m)return!0;var E=wm(m);return!!E&&a===E[0]}function Ck(a){return!!ay&&ay in a}var Rk=Bc?Mn:Vm;function Fa(a){var u=a&&a.constructor,m=typeof u=="function"&&u.prototype||Di;return a===m}function ax(a){return a===a&&!Et(a)}function sx(a,u){return function(m){return m==null?!1:m[a]===u&&(u!==r||a in ct(m))}}function Pk(a){var u=gd(a,function(E){return m.size===d&&m.clear(),E}),m=u.cache;return u}function Sk(a,u){var m=a[1],E=u[1],$=m|E,I=$<(C|x|A),B=E==A&&m==S||E==A&&m==M&&a[7].length<=u[8]||E==(A|M)&&u[7].length<=u[8]&&m==S;if(!(I||B))return a;E&C&&(a[2]=u[2],$|=m&C?0:P);var z=u[3];if(z){var ee=a[3];a[3]=ee?Ky(ee,z,u[4]):z,a[4]=ee?ao(a[3],f):u[4]}return z=u[5],z&&(ee=a[5],a[5]=ee?Wy(ee,z,u[6]):z,a[6]=ee?ao(a[5],f):u[6]),z=u[7],z&&(a[7]=z),E&A&&(a[8]=a[8]==null?u[8]:Qt(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=$,a}function _k(a){var u=[];if(a!=null)for(var m in ct(a))u.push(m);return u}function Tk(a){return Kc.call(a)}function lx(a,u,m){return u=jt(u===r?a.length-1:u,0),function(){for(var E=arguments,$=-1,I=jt(E.length-u,0),B=se(I);++$<I;)B[$]=E[u+$];$=-1;for(var z=se(u+1);++$<u;)z[$]=E[$];return z[u]=m(B),gr(a,this,z)}}function ux(a,u){return u.length<2?a:Wo(a,Ir(u,0,-1))}function $k(a,u){for(var m=a.length,E=Qt(u.length,m),$=dr(a);E--;){var I=u[E];a[E]=Dn(I,m)?$[I]:r}return a}function Sm(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var cx=fx(Oy),qa=WN||function(a,u){return Gt.setTimeout(a,u)},_m=fx(QI);function dx(a,u,m){var E=u+"";return _m(a,xk(E,Ak(gk(E),m)))}function fx(a){var u=0,m=0;return function(){var E=GN(),$=K-(E-m);if(m=E,$>0){if(++u>=W)return arguments[0]}else u=0;return a.apply(r,arguments)}}function pd(a,u){var m=-1,E=a.length,$=E-1;for(u=u===r?E:u;++m<u;){var I=um(m,$),B=a[I];a[I]=a[m],a[m]=B}return a.length=u,a}var px=Pk(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(Pi,function(m,E,$,I){u.push($?I.replace(_O,"$1"):E||m)}),u});function dn(a){if(typeof a=="string"||xr(a))return a;var u=a+"";return u=="0"&&1/a==-F?"-0":u}function Uo(a){if(a!=null){try{return Vc.call(a)}catch{}try{return a+""}catch{}}return""}function Ak(a,u){return Dr(ce,function(m){var E="_."+m[0];u&m[1]&&!Lc(a,E)&&a.push(E)}),a.sort()}function mx(a){if(a instanceof He)return a.clone();var u=new Or(a.__wrapped__,a.__chain__);return u.__actions__=dr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function Dk(a,u,m){(m?ir(a,u,m):u===r)?u=1:u=jt(Fe(u),0);var E=a==null?0:a.length;if(!E||u<1)return[];for(var $=0,I=0,B=se(Yc(E/u));$<E;)B[I++]=Ir(a,$,$+=u);return B}function Mk(a){for(var u=-1,m=a==null?0:a.length,E=0,$=[];++u<m;){var I=a[u];I&&($[E++]=I)}return $}function Ok(){var a=arguments.length;if(!a)return[];for(var u=se(a-1),m=arguments[0],E=a;E--;)u[E-1]=arguments[E];return io(Le(m)?dr(m):[m],Yt(u,1))}var Nk=je(function(a,u){return $t(a)?Oa(a,Yt(u,1,$t,!0)):[]}),Ik=je(function(a,u){var m=kr(u);return $t(m)&&(m=r),$t(a)?Oa(a,Yt(u,1,$t,!0),Me(m,2)):[]}),kk=je(function(a,u){var m=kr(u);return $t(m)&&(m=r),$t(a)?Oa(a,Yt(u,1,$t,!0),r,m):[]});function Lk(a,u,m){var E=a==null?0:a.length;return E?(u=m||u===r?1:Fe(u),Ir(a,u<0?0:u,E)):[]}function Fk(a,u,m){var E=a==null?0:a.length;return E?(u=m||u===r?1:Fe(u),u=E-u,Ir(a,0,u<0?0:u)):[]}function qk(a,u){return a&&a.length?id(a,Me(u,3),!0,!0):[]}function jk(a,u){return a&&a.length?id(a,Me(u,3),!0):[]}function Bk(a,u,m,E){var $=a==null?0:a.length;return $?(m&&typeof m!="number"&&ir(a,u,m)&&(m=0,E=$),OI(a,u,m,E)):[]}function hx(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=m==null?0:Fe(m);return $<0&&($=jt(E+$,0)),Fc(a,Me(u,3),$)}function vx(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=E-1;return m!==r&&($=Fe(m),$=m<0?jt(E+$,0):Qt($,E-1)),Fc(a,Me(u,3),$,!0)}function gx(a){var u=a==null?0:a.length;return u?Yt(a,1):[]}function Vk(a){var u=a==null?0:a.length;return u?Yt(a,F):[]}function Kk(a,u){var m=a==null?0:a.length;return m?(u=u===r?1:Fe(u),Yt(a,u)):[]}function Wk(a){for(var u=-1,m=a==null?0:a.length,E={};++u<m;){var $=a[u];E[$[0]]=$[1]}return E}function bx(a){return a&&a.length?a[0]:r}function Hk(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=m==null?0:Fe(m);return $<0&&($=jt(E+$,0)),_i(a,u,$)}function Uk(a){var u=a==null?0:a.length;return u?Ir(a,0,-1):[]}var zk=je(function(a){var u=bt(a,mm);return u.length&&u[0]===a[0]?om(u):[]}),Gk=je(function(a){var u=kr(a),m=bt(a,mm);return u===kr(m)?u=r:m.pop(),m.length&&m[0]===a[0]?om(m,Me(u,2)):[]}),Yk=je(function(a){var u=kr(a),m=bt(a,mm);return u=typeof u=="function"?u:r,u&&m.pop(),m.length&&m[0]===a[0]?om(m,r,u):[]});function Xk(a,u){return a==null?"":UN.call(a,u)}function kr(a){var u=a==null?0:a.length;return u?a[u-1]:r}function Zk(a,u,m){var E=a==null?0:a.length;if(!E)return-1;var $=E;return m!==r&&($=Fe(m),$=$<0?jt(E+$,0):Qt($,E-1)),u===u?AN(a,u,$):Fc(a,Qb,$,!0)}function Qk(a,u){return a&&a.length?$y(a,Fe(u)):r}var Jk=je(yx);function yx(a,u){return a&&a.length&&u&&u.length?lm(a,u):a}function e4(a,u,m){return a&&a.length&&u&&u.length?lm(a,u,Me(m,2)):a}function t4(a,u,m){return a&&a.length&&u&&u.length?lm(a,u,r,m):a}var r4=An(function(a,u){var m=a==null?0:a.length,E=em(a,u);return My(a,bt(u,function($){return Dn($,m)?+$:$}).sort(Vy)),E});function n4(a,u){var m=[];if(!(a&&a.length))return m;var E=-1,$=[],I=a.length;for(u=Me(u,3);++E<I;){var B=a[E];u(B,E,a)&&(m.push(B),$.push(E))}return My(a,$),m}function Tm(a){return a==null?a:XN.call(a)}function o4(a,u,m){var E=a==null?0:a.length;return E?(m&&typeof m!="number"&&ir(a,u,m)?(u=0,m=E):(u=u==null?0:Fe(u),m=m===r?E:Fe(m)),Ir(a,u,m)):[]}function i4(a,u){return od(a,u)}function a4(a,u,m){return dm(a,u,Me(m,2))}function s4(a,u){var m=a==null?0:a.length;if(m){var E=od(a,u);if(E<m&&Gr(a[E],u))return E}return-1}function l4(a,u){return od(a,u,!0)}function u4(a,u,m){return dm(a,u,Me(m,2),!0)}function c4(a,u){var m=a==null?0:a.length;if(m){var E=od(a,u,!0)-1;if(Gr(a[E],u))return E}return-1}function d4(a){return a&&a.length?Ny(a):[]}function f4(a,u){return a&&a.length?Ny(a,Me(u,2)):[]}function p4(a){var u=a==null?0:a.length;return u?Ir(a,1,u):[]}function m4(a,u,m){return a&&a.length?(u=m||u===r?1:Fe(u),Ir(a,0,u<0?0:u)):[]}function h4(a,u,m){var E=a==null?0:a.length;return E?(u=m||u===r?1:Fe(u),u=E-u,Ir(a,u<0?0:u,E)):[]}function v4(a,u){return a&&a.length?id(a,Me(u,3),!1,!0):[]}function g4(a,u){return a&&a.length?id(a,Me(u,3)):[]}var b4=je(function(a){return uo(Yt(a,1,$t,!0))}),y4=je(function(a){var u=kr(a);return $t(u)&&(u=r),uo(Yt(a,1,$t,!0),Me(u,2))}),x4=je(function(a){var u=kr(a);return u=typeof u=="function"?u:r,uo(Yt(a,1,$t,!0),r,u)});function w4(a){return a&&a.length?uo(a):[]}function E4(a,u){return a&&a.length?uo(a,Me(u,2)):[]}function C4(a,u){return u=typeof u=="function"?u:r,a&&a.length?uo(a,r,u):[]}function $m(a){if(!(a&&a.length))return[];var u=0;return a=oo(a,function(m){if($t(m))return u=jt(m.length,u),!0}),Up(u,function(m){return bt(a,Kp(m))})}function xx(a,u){if(!(a&&a.length))return[];var m=$m(a);return u==null?m:bt(m,function(E){return gr(u,r,E)})}var R4=je(function(a,u){return $t(a)?Oa(a,u):[]}),P4=je(function(a){return pm(oo(a,$t))}),S4=je(function(a){var u=kr(a);return $t(u)&&(u=r),pm(oo(a,$t),Me(u,2))}),_4=je(function(a){var u=kr(a);return u=typeof u=="function"?u:r,pm(oo(a,$t),r,u)}),T4=je($m);function $4(a,u){return Fy(a||[],u||[],Ma)}function A4(a,u){return Fy(a||[],u||[],ka)}var D4=je(function(a){var u=a.length,m=u>1?a[u-1]:r;return m=typeof m=="function"?(a.pop(),m):r,xx(a,m)});function wx(a){var u=O(a);return u.__chain__=!0,u}function M4(a,u){return u(a),a}function md(a,u){return u(a)}var O4=An(function(a){var u=a.length,m=u?a[0]:0,E=this.__wrapped__,$=function(I){return em(I,a)};return u>1||this.__actions__.length||!(E instanceof He)||!Dn(m)?this.thru($):(E=E.slice(m,+m+(u?1:0)),E.__actions__.push({func:md,args:[$],thisArg:r}),new Or(E,this.__chain__).thru(function(I){return u&&!I.length&&I.push(r),I}))});function N4(){return wx(this)}function I4(){return new Or(this.value(),this.__chain__)}function k4(){this.__values__===r&&(this.__values__=Ix(this.value()));var a=this.__index__>=this.__values__.length,u=a?r:this.__values__[this.__index__++];return{done:a,value:u}}function L4(){return this}function F4(a){for(var u,m=this;m instanceof Jc;){var E=mx(m);E.__index__=0,E.__values__=r,u?$.__wrapped__=E:u=E;var $=E;m=m.__wrapped__}return $.__wrapped__=a,u}function q4(){var a=this.__wrapped__;if(a instanceof He){var u=a;return this.__actions__.length&&(u=new He(this)),u=u.reverse(),u.__actions__.push({func:md,args:[Tm],thisArg:r}),new Or(u,this.__chain__)}return this.thru(Tm)}function j4(){return Ly(this.__wrapped__,this.__actions__)}var B4=ad(function(a,u,m){nt.call(a,m)?++a[m]:Tn(a,m,1)});function V4(a,u,m){var E=Le(a)?Xb:MI;return m&&ir(a,u,m)&&(u=r),E(a,Me(u,3))}function K4(a,u){var m=Le(a)?oo:xy;return m(a,Me(u,3))}var W4=Gy(hx),H4=Gy(vx);function U4(a,u){return Yt(hd(a,u),1)}function z4(a,u){return Yt(hd(a,u),F)}function G4(a,u,m){return m=m===r?1:Fe(m),Yt(hd(a,u),m)}function Ex(a,u){var m=Le(a)?Dr:lo;return m(a,Me(u,3))}function Cx(a,u){var m=Le(a)?pN:yy;return m(a,Me(u,3))}var Y4=ad(function(a,u,m){nt.call(a,m)?a[m].push(u):Tn(a,m,[u])});function X4(a,u,m,E){a=fr(a)?a:qi(a),m=m&&!E?Fe(m):0;var $=a.length;return m<0&&(m=jt($+m,0)),xd(a)?m<=$&&a.indexOf(u,m)>-1:!!$&&_i(a,u,m)>-1}var Z4=je(function(a,u,m){var E=-1,$=typeof u=="function",I=fr(a)?se(a.length):[];return lo(a,function(B){I[++E]=$?gr(u,B,m):Na(B,u,m)}),I}),Q4=ad(function(a,u,m){Tn(a,m,u)});function hd(a,u){var m=Le(a)?bt:Sy;return m(a,Me(u,3))}function J4(a,u,m,E){return a==null?[]:(Le(u)||(u=u==null?[]:[u]),m=E?r:m,Le(m)||(m=m==null?[]:[m]),Ay(a,u,m))}var e3=ad(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function t3(a,u,m){var E=Le(a)?Bp:ey,$=arguments.length<3;return E(a,Me(u,4),m,$,lo)}function r3(a,u,m){var E=Le(a)?mN:ey,$=arguments.length<3;return E(a,Me(u,4),m,$,yy)}function n3(a,u){var m=Le(a)?oo:xy;return m(a,bd(Me(u,3)))}function o3(a){var u=Le(a)?hy:XI;return u(a)}function i3(a,u,m){(m?ir(a,u,m):u===r)?u=1:u=Fe(u);var E=Le(a)?_I:ZI;return E(a,u)}function a3(a){var u=Le(a)?TI:JI;return u(a)}function s3(a){if(a==null)return 0;if(fr(a))return xd(a)?$i(a):a.length;var u=Jt(a);return u==De||u==ne?a.size:am(a).length}function l3(a,u,m){var E=Le(a)?Vp:ek;return m&&ir(a,u,m)&&(u=r),E(a,Me(u,3))}var u3=je(function(a,u){if(a==null)return[];var m=u.length;return m>1&&ir(a,u[0],u[1])?u=[]:m>2&&ir(u[0],u[1],u[2])&&(u=[u[0]]),Ay(a,Yt(u,1),[])}),vd=KN||function(){return Gt.Date.now()};function c3(a,u){if(typeof u!="function")throw new Mr(s);return a=Fe(a),function(){if(--a<1)return u.apply(this,arguments)}}function Rx(a,u,m){return u=m?r:u,u=a&&u==null?a.length:u,$n(a,A,r,r,r,r,u)}function Px(a,u){var m;if(typeof u!="function")throw new Mr(s);return a=Fe(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=r),m}}var Am=je(function(a,u,m){var E=C;if(m.length){var $=ao(m,Li(Am));E|=_}return $n(a,E,u,m,$)}),Sx=je(function(a,u,m){var E=C|x;if(m.length){var $=ao(m,Li(Sx));E|=_}return $n(u,E,a,m,$)});function _x(a,u,m){u=m?r:u;var E=$n(a,S,r,r,r,r,r,u);return E.placeholder=_x.placeholder,E}function Tx(a,u,m){u=m?r:u;var E=$n(a,D,r,r,r,r,r,u);return E.placeholder=Tx.placeholder,E}function $x(a,u,m){var E,$,I,B,z,ee,me=0,he=!1,ge=!1,Re=!0;if(typeof a!="function")throw new Mr(s);u=Lr(u)||0,Et(m)&&(he=!!m.leading,ge="maxWait"in m,I=ge?jt(Lr(m.maxWait)||0,u):I,Re="trailing"in m?!!m.trailing:Re);function $e(At){var Yr=E,Nn=$;return E=$=r,me=At,B=a.apply(Nn,Yr),B}function Oe(At){return me=At,z=qa(We,u),he?$e(At):B}function qe(At){var Yr=At-ee,Nn=At-me,Gx=u-Yr;return ge?Qt(Gx,I-Nn):Gx}function Ne(At){var Yr=At-ee,Nn=At-me;return ee===r||Yr>=u||Yr<0||ge&&Nn>=I}function We(){var At=vd();if(Ne(At))return Ge(At);z=qa(We,qe(At))}function Ge(At){return z=r,Re&&E?$e(At):(E=$=r,B)}function wr(){z!==r&&qy(z),me=0,E=ee=$=z=r}function ar(){return z===r?B:Ge(vd())}function Er(){var At=vd(),Yr=Ne(At);if(E=arguments,$=this,ee=At,Yr){if(z===r)return Oe(ee);if(ge)return qy(z),z=qa(We,u),$e(ee)}return z===r&&(z=qa(We,u)),B}return Er.cancel=wr,Er.flush=ar,Er}var d3=je(function(a,u){return by(a,1,u)}),f3=je(function(a,u,m){return by(a,Lr(u)||0,m)});function p3(a){return $n(a,U)}function gd(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Mr(s);var m=function(){var E=arguments,$=u?u.apply(this,E):E[0],I=m.cache;if(I.has($))return I.get($);var B=a.apply(this,E);return m.cache=I.set($,B)||I,B};return m.cache=new(gd.Cache||_n),m}gd.Cache=_n;function bd(a){if(typeof a!="function")throw new Mr(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function m3(a){return Px(2,a)}var h3=tk(function(a,u){u=u.length==1&&Le(u[0])?bt(u[0],br(Me())):bt(Yt(u,1),br(Me()));var m=u.length;return je(function(E){for(var $=-1,I=Qt(E.length,m);++$<I;)E[$]=u[$].call(this,E[$]);return gr(a,this,E)})}),Dm=je(function(a,u){var m=ao(u,Li(Dm));return $n(a,_,r,u,m)}),Ax=je(function(a,u){var m=ao(u,Li(Ax));return $n(a,T,r,u,m)}),v3=An(function(a,u){return $n(a,M,r,r,r,u)});function g3(a,u){if(typeof a!="function")throw new Mr(s);return u=u===r?u:Fe(u),je(a,u)}function b3(a,u){if(typeof a!="function")throw new Mr(s);return u=u==null?0:jt(Fe(u),0),je(function(m){var E=m[u],$=fo(m,0,u);return E&&io($,E),gr(a,this,$)})}function y3(a,u,m){var E=!0,$=!0;if(typeof a!="function")throw new Mr(s);return Et(m)&&(E="leading"in m?!!m.leading:E,$="trailing"in m?!!m.trailing:$),$x(a,u,{leading:E,maxWait:u,trailing:$})}function x3(a){return Rx(a,1)}function w3(a,u){return Dm(hm(u),a)}function E3(){if(!arguments.length)return[];var a=arguments[0];return Le(a)?a:[a]}function C3(a){return Nr(a,b)}function R3(a,u){return u=typeof u=="function"?u:r,Nr(a,b,u)}function P3(a){return Nr(a,p|b)}function S3(a,u){return u=typeof u=="function"?u:r,Nr(a,p|b,u)}function _3(a,u){return u==null||gy(a,u,Ut(u))}function Gr(a,u){return a===u||a!==a&&u!==u}var T3=cd(nm),$3=cd(function(a,u){return a>=u}),zo=Cy((function(){return arguments})())?Cy:function(a){return Pt(a)&&nt.call(a,"callee")&&!uy.call(a,"callee")},Le=se.isArray,A3=Wb?br(Wb):FI;function fr(a){return a!=null&&yd(a.length)&&!Mn(a)}function $t(a){return Pt(a)&&fr(a)}function D3(a){return a===!0||a===!1||Pt(a)&&or(a)==ve}var po=HN||Vm,M3=Hb?br(Hb):qI;function O3(a){return Pt(a)&&a.nodeType===1&&!ja(a)}function N3(a){if(a==null)return!0;if(fr(a)&&(Le(a)||typeof a=="string"||typeof a.splice=="function"||po(a)||Fi(a)||zo(a)))return!a.length;var u=Jt(a);if(u==De||u==ne)return!a.size;if(Fa(a))return!am(a).length;for(var m in a)if(nt.call(a,m))return!1;return!0}function I3(a,u){return Ia(a,u)}function k3(a,u,m){m=typeof m=="function"?m:r;var E=m?m(a,u):r;return E===r?Ia(a,u,r,m):!!E}function Mm(a){if(!Pt(a))return!1;var u=or(a);return u==oe||u==ae||typeof a.message=="string"&&typeof a.name=="string"&&!ja(a)}function L3(a){return typeof a=="number"&&dy(a)}function Mn(a){if(!Et(a))return!1;var u=or(a);return u==Z||u==we||u==te||u==Ci}function Dx(a){return typeof a=="number"&&a==Fe(a)}function yd(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=j}function Et(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function Pt(a){return a!=null&&typeof a=="object"}var Mx=Ub?br(Ub):BI;function F3(a,u){return a===u||im(a,u,Em(u))}function q3(a,u,m){return m=typeof m=="function"?m:r,im(a,u,Em(u),m)}function j3(a){return Ox(a)&&a!=+a}function B3(a){if(Rk(a))throw new ke(i);return Ry(a)}function V3(a){return a===null}function K3(a){return a==null}function Ox(a){return typeof a=="number"||Pt(a)&&or(a)==Ue}function ja(a){if(!Pt(a)||or(a)!=mt)return!1;var u=Uc(a);if(u===null)return!0;var m=nt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&Vc.call(m)==qN}var Om=zb?br(zb):VI;function W3(a){return Dx(a)&&a>=-j&&a<=j}var Nx=Gb?br(Gb):KI;function xd(a){return typeof a=="string"||!Le(a)&&Pt(a)&&or(a)==de}function xr(a){return typeof a=="symbol"||Pt(a)&&or(a)==Ee}var Fi=Yb?br(Yb):WI;function H3(a){return a===r}function U3(a){return Pt(a)&&Jt(a)==be}function z3(a){return Pt(a)&&or(a)==Ae}var G3=cd(sm),Y3=cd(function(a,u){return a<=u});function Ix(a){if(!a)return[];if(fr(a))return xd(a)?Ur(a):dr(a);if(_a&&a[_a])return _N(a[_a]());var u=Jt(a),m=u==De?Gp:u==ne?qc:qi;return m(a)}function On(a){if(!a)return a===0?a:0;if(a=Lr(a),a===F||a===-F){var u=a<0?-1:1;return u*re}return a===a?a:0}function Fe(a){var u=On(a),m=u%1;return u===u?m?u-m:u:0}function kx(a){return a?Ko(Fe(a),0,ie):0}function Lr(a){if(typeof a=="number")return a;if(xr(a))return V;if(Et(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=Et(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=ty(a);var m=AO.test(a);return m||MO.test(a)?cN(a.slice(2),m?2:8):$O.test(a)?V:+a}function Lx(a){return cn(a,pr(a))}function X3(a){return a?Ko(Fe(a),-j,j):a===0?a:0}function Je(a){return a==null?"":yr(a)}var Z3=Ii(function(a,u){if(Fa(u)||fr(u)){cn(u,Ut(u),a);return}for(var m in u)nt.call(u,m)&&Ma(a,m,u[m])}),Fx=Ii(function(a,u){cn(u,pr(u),a)}),wd=Ii(function(a,u,m,E){cn(u,pr(u),a,E)}),Q3=Ii(function(a,u,m,E){cn(u,Ut(u),a,E)}),J3=An(em);function e2(a,u){var m=Ni(a);return u==null?m:vy(m,u)}var t2=je(function(a,u){a=ct(a);var m=-1,E=u.length,$=E>2?u[2]:r;for($&&ir(u[0],u[1],$)&&(E=1);++m<E;)for(var I=u[m],B=pr(I),z=-1,ee=B.length;++z<ee;){var me=B[z],he=a[me];(he===r||Gr(he,Di[me])&&!nt.call(a,me))&&(a[me]=I[me])}return a}),r2=je(function(a){return a.push(r,tx),gr(qx,r,a)});function n2(a,u){return Zb(a,Me(u,3),un)}function o2(a,u){return Zb(a,Me(u,3),rm)}function i2(a,u){return a==null?a:tm(a,Me(u,3),pr)}function a2(a,u){return a==null?a:wy(a,Me(u,3),pr)}function s2(a,u){return a&&un(a,Me(u,3))}function l2(a,u){return a&&rm(a,Me(u,3))}function u2(a){return a==null?[]:rd(a,Ut(a))}function c2(a){return a==null?[]:rd(a,pr(a))}function Nm(a,u,m){var E=a==null?r:Wo(a,u);return E===r?m:E}function d2(a,u){return a!=null&&ox(a,u,NI)}function Im(a,u){return a!=null&&ox(a,u,II)}var f2=Xy(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=Kc.call(u)),a[u]=m},Lm(mr)),p2=Xy(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=Kc.call(u)),nt.call(a,u)?a[u].push(m):a[u]=[m]},Me),m2=je(Na);function Ut(a){return fr(a)?my(a):am(a)}function pr(a){return fr(a)?my(a,!0):HI(a)}function h2(a,u){var m={};return u=Me(u,3),un(a,function(E,$,I){Tn(m,u(E,$,I),E)}),m}function v2(a,u){var m={};return u=Me(u,3),un(a,function(E,$,I){Tn(m,$,u(E,$,I))}),m}var g2=Ii(function(a,u,m){nd(a,u,m)}),qx=Ii(function(a,u,m,E){nd(a,u,m,E)}),b2=An(function(a,u){var m={};if(a==null)return m;var E=!1;u=bt(u,function(I){return I=co(I,a),E||(E=I.length>1),I}),cn(a,xm(a),m),E&&(m=Nr(m,p|h|b,fk));for(var $=u.length;$--;)fm(m,u[$]);return m});function y2(a,u){return jx(a,bd(Me(u)))}var x2=An(function(a,u){return a==null?{}:zI(a,u)});function jx(a,u){if(a==null)return{};var m=bt(xm(a),function(E){return[E]});return u=Me(u),Dy(a,m,function(E,$){return u(E,$[0])})}function w2(a,u,m){u=co(u,a);var E=-1,$=u.length;for($||($=1,a=r);++E<$;){var I=a==null?r:a[dn(u[E])];I===r&&(E=$,I=m),a=Mn(I)?I.call(a):I}return a}function E2(a,u,m){return a==null?a:ka(a,u,m)}function C2(a,u,m,E){return E=typeof E=="function"?E:r,a==null?a:ka(a,u,m,E)}var Bx=Jy(Ut),Vx=Jy(pr);function R2(a,u,m){var E=Le(a),$=E||po(a)||Fi(a);if(u=Me(u,4),m==null){var I=a&&a.constructor;$?m=E?new I:[]:Et(a)?m=Mn(I)?Ni(Uc(a)):{}:m={}}return($?Dr:un)(a,function(B,z,ee){return u(m,B,z,ee)}),m}function P2(a,u){return a==null?!0:fm(a,u)}function S2(a,u,m){return a==null?a:ky(a,u,hm(m))}function _2(a,u,m,E){return E=typeof E=="function"?E:r,a==null?a:ky(a,u,hm(m),E)}function qi(a){return a==null?[]:zp(a,Ut(a))}function T2(a){return a==null?[]:zp(a,pr(a))}function $2(a,u,m){return m===r&&(m=u,u=r),m!==r&&(m=Lr(m),m=m===m?m:0),u!==r&&(u=Lr(u),u=u===u?u:0),Ko(Lr(a),u,m)}function A2(a,u,m){return u=On(u),m===r?(m=u,u=0):m=On(m),a=Lr(a),kI(a,u,m)}function D2(a,u,m){if(m&&typeof m!="boolean"&&ir(a,u,m)&&(u=m=r),m===r&&(typeof u=="boolean"?(m=u,u=r):typeof a=="boolean"&&(m=a,a=r)),a===r&&u===r?(a=0,u=1):(a=On(a),u===r?(u=a,a=0):u=On(u)),a>u){var E=a;a=u,u=E}if(m||a%1||u%1){var $=fy();return Qt(a+$*(u-a+uN("1e-"+(($+"").length-1))),u)}return um(a,u)}var M2=ki(function(a,u,m){return u=u.toLowerCase(),a+(m?Kx(u):u)});function Kx(a){return km(Je(a).toLowerCase())}function Wx(a){return a=Je(a),a&&a.replace(NO,EN).replace(JO,"")}function O2(a,u,m){a=Je(a),u=yr(u);var E=a.length;m=m===r?E:Ko(Fe(m),0,E);var $=m;return m-=u.length,m>=0&&a.slice(m,$)==u}function N2(a){return a=Je(a),a&&Sp.test(a)?a.replace(Oc,CN):a}function I2(a){return a=Je(a),a&&xO.test(a)?a.replace(Dp,"\\$&"):a}var k2=ki(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),L2=ki(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),F2=zy("toLowerCase");function q2(a,u,m){a=Je(a),u=Fe(u);var E=u?$i(a):0;if(!u||E>=u)return a;var $=(u-E)/2;return ud(Xc($),m)+a+ud(Yc($),m)}function j2(a,u,m){a=Je(a),u=Fe(u);var E=u?$i(a):0;return u&&E<u?a+ud(u-E,m):a}function B2(a,u,m){a=Je(a),u=Fe(u);var E=u?$i(a):0;return u&&E<u?ud(u-E,m)+a:a}function V2(a,u,m){return m||u==null?u=0:u&&(u=+u),YN(Je(a).replace(Mp,""),u||0)}function K2(a,u,m){return(m?ir(a,u,m):u===r)?u=1:u=Fe(u),cm(Je(a),u)}function W2(){var a=arguments,u=Je(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var H2=ki(function(a,u,m){return a+(m?"_":"")+u.toLowerCase()});function U2(a,u,m){return m&&typeof m!="number"&&ir(a,u,m)&&(u=m=r),m=m===r?ie:m>>>0,m?(a=Je(a),a&&(typeof u=="string"||u!=null&&!Om(u))&&(u=yr(u),!u&&Ti(a))?fo(Ur(a),0,m):a.split(u,m)):[]}var z2=ki(function(a,u,m){return a+(m?" ":"")+km(u)});function G2(a,u,m){return a=Je(a),m=m==null?0:Ko(Fe(m),0,a.length),u=yr(u),a.slice(m,m+u.length)==u}function Y2(a,u,m){var E=O.templateSettings;m&&ir(a,u,m)&&(u=r),a=Je(a),u=wd({},u,E,ex);var $=wd({},u.imports,E.imports,ex),I=Ut($),B=zp($,I),z,ee,me=0,he=u.interpolate||Nc,ge="__p += '",Re=Yp((u.escape||Nc).source+"|"+he.source+"|"+(he===ye?TO:Nc).source+"|"+(u.evaluate||Nc).source+"|$","g"),$e="//# sourceURL="+(nt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oN+"]")+`
110
110
  `;a.replace(Re,function(Ne,We,Ge,wr,ar,Er){return Ge||(Ge=wr),ge+=a.slice(me,Er).replace(IO,RN),We&&(z=!0,ge+=`' +
111
111
  __e(`+We+`) +
112
112
  '`),ar&&(ee=!0,ge+=`';
@@ -123,10 +123,10 @@ __p += '`),Ge&&(ge+=`' +
123
123
  function print() { __p += __j.call(arguments, '') }
124
124
  `:`;
125
125
  `)+ge+`return __p
126
- }`;var qe=Ux(function(){return Xe(I,$e+"return "+ge).apply(r,V)});if(qe.source=ge,Mm(qe))throw qe;return qe}function X2(a){return Je(a).toLowerCase()}function Z2(a){return Je(a).toUpperCase()}function Q2(a,u,m){if(a=Je(a),a&&(m||u===r))return ty(a);if(!a||!(u=yr(u)))return a;var E=Ur(a),$=Ur(u),I=ry(E,$),V=ny(E,$)+1;return fo(E,I,V).join("")}function J2(a,u,m){if(a=Je(a),a&&(m||u===r))return a.slice(0,iy(a)+1);if(!a||!(u=yr(u)))return a;var E=Ur(a),$=ny(E,Ur(u))+1;return fo(E,0,$).join("")}function eL(a,u,m){if(a=Je(a),a&&(m||u===r))return a.replace(Mp,"");if(!a||!(u=yr(u)))return a;var E=Ur(a),$=ry(E,Ur(u));return fo(E,$).join("")}function tL(a,u){var m=J,E=N;if(Et(u)){var $="separator"in u?u.separator:$;m="length"in u?Fe(u.length):m,E="omission"in u?yr(u.omission):E}a=Je(a);var I=a.length;if(Ti(a)){var V=Ur(a);I=V.length}if(m>=I)return a;var z=m-$i(E);if(z<1)return E;var ee=V?fo(V,0,z).join(""):a.slice(0,z);if($===r)return ee+E;if(V&&(z+=ee.length-z),Om($)){if(a.slice(z).search($)){var me,he=ee;for($.global||($=Yp($.source,Je(Cb.exec($))+"g")),$.lastIndex=0;me=$.exec(he);)var ge=me.index;ee=ee.slice(0,ge===r?z:ge)}}else if(a.indexOf(yr($),z)!=z){var Re=ee.lastIndexOf($);Re>-1&&(ee=ee.slice(0,Re))}return ee+E}function rL(a){return a=Je(a),a&&Pp.test(a)?a.replace(Mc,DN):a}var nL=ki(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),km=zy("toUpperCase");function Hx(a,u,m){return a=Je(a),u=m?r:u,u===r?SN(a)?NN(a):gN(a):a.match(u)||[]}var Ux=je(function(a,u){try{return gr(a,r,u)}catch(m){return Mm(m)?m:new ke(m)}}),oL=An(function(a,u){return Dr(u,function(m){m=dn(m),Tn(a,m,Am(a[m],a))}),a});function iL(a){var u=a==null?0:a.length,m=Me();return a=u?bt(a,function(E){if(typeof E[1]!="function")throw new Mr(s);return[m(E[0]),E[1]]}):[],je(function(E){for(var $=-1;++$<u;){var I=a[$];if(gr(I[0],this,E))return gr(I[1],this,E)}})}function aL(a){return DI(Nr(a,p))}function Lm(a){return function(){return a}}function sL(a,u){return a==null||a!==a?u:a}var lL=Yy(),uL=Yy(!0);function mr(a){return a}function Fm(a){return Py(typeof a=="function"?a:Nr(a,p))}function cL(a){return _y(Nr(a,p))}function dL(a,u){return Ty(a,Nr(u,p))}var fL=je(function(a,u){return function(m){return Na(m,a,u)}}),pL=je(function(a,u){return function(m){return Na(a,m,u)}});function qm(a,u,m){var E=Ut(u),$=rd(u,E);m==null&&!(Et(u)&&($.length||!E.length))&&(m=u,u=a,a=this,$=rd(u,Ut(u)));var I=!(Et(m)&&"chain"in m)||!!m.chain,V=Mn(a);return Dr($,function(z){var ee=u[z];a[z]=ee,V&&(a.prototype[z]=function(){var me=this.__chain__;if(I||me){var he=a(this.__wrapped__),ge=he.__actions__=dr(this.__actions__);return ge.push({func:ee,args:arguments,thisArg:a}),he.__chain__=me,he}return ee.apply(a,io([this.value()],arguments))})}),a}function mL(){return Gt._===this&&(Gt._=jN),this}function jm(){}function hL(a){return a=Fe(a),je(function(u){return $y(u,a)})}var vL=gm(bt),gL=gm(Xb),bL=gm(Vp);function zx(a){return Rm(a)?Kp(dn(a)):GI(a)}function yL(a){return function(u){return a==null?r:Wo(a,u)}}var xL=Zy(),wL=Zy(!0);function Bm(){return[]}function Vm(){return!1}function EL(){return{}}function CL(){return""}function RL(){return!0}function PL(a,u){if(a=Fe(a),a<1||a>B)return[];var m=ie,E=Qt(a,ie);u=Me(u),a-=ie;for(var $=Up(E,u);++m<a;)u(m);return $}function SL(a){return Le(a)?bt(a,dn):xr(a)?[a]:dr(px(Je(a)))}function _L(a){var u=++FN;return Je(a)+u}var TL=ld(function(a,u){return a+u},0),$L=bm("ceil"),AL=ld(function(a,u){return a/u},1),DL=bm("floor");function ML(a){return a&&a.length?td(a,mr,nm):r}function OL(a,u){return a&&a.length?td(a,Me(u,2),nm):r}function NL(a){return Jb(a,mr)}function IL(a,u){return Jb(a,Me(u,2))}function kL(a){return a&&a.length?td(a,mr,sm):r}function LL(a,u){return a&&a.length?td(a,Me(u,2),sm):r}var FL=ld(function(a,u){return a*u},1),qL=bm("round"),jL=ld(function(a,u){return a-u},0);function BL(a){return a&&a.length?Hp(a,mr):0}function VL(a,u){return a&&a.length?Hp(a,Me(u,2)):0}return O.after=c3,O.ary=Rx,O.assign=Z3,O.assignIn=Fx,O.assignInWith=wd,O.assignWith=Q3,O.at=J3,O.before=Px,O.bind=Am,O.bindAll=oL,O.bindKey=Sx,O.castArray=E3,O.chain=wx,O.chunk=Dk,O.compact=Mk,O.concat=Ok,O.cond=iL,O.conforms=aL,O.constant=Lm,O.countBy=B4,O.create=e2,O.curry=_x,O.curryRight=Tx,O.debounce=$x,O.defaults=t2,O.defaultsDeep=r2,O.defer=d3,O.delay=f3,O.difference=Nk,O.differenceBy=Ik,O.differenceWith=kk,O.drop=Lk,O.dropRight=Fk,O.dropRightWhile=qk,O.dropWhile=jk,O.fill=Bk,O.filter=K4,O.flatMap=U4,O.flatMapDeep=z4,O.flatMapDepth=G4,O.flatten=gx,O.flattenDeep=Vk,O.flattenDepth=Kk,O.flip=p3,O.flow=lL,O.flowRight=uL,O.fromPairs=Wk,O.functions=u2,O.functionsIn=c2,O.groupBy=Y4,O.initial=Uk,O.intersection=zk,O.intersectionBy=Gk,O.intersectionWith=Yk,O.invert=f2,O.invertBy=p2,O.invokeMap=Z4,O.iteratee=Fm,O.keyBy=Q4,O.keys=Ut,O.keysIn=pr,O.map=hd,O.mapKeys=h2,O.mapValues=v2,O.matches=cL,O.matchesProperty=dL,O.memoize=gd,O.merge=g2,O.mergeWith=qx,O.method=fL,O.methodOf=pL,O.mixin=qm,O.negate=bd,O.nthArg=hL,O.omit=b2,O.omitBy=y2,O.once=m3,O.orderBy=J4,O.over=vL,O.overArgs=h3,O.overEvery=gL,O.overSome=bL,O.partial=Dm,O.partialRight=Ax,O.partition=e3,O.pick=x2,O.pickBy=jx,O.property=zx,O.propertyOf=yL,O.pull=Jk,O.pullAll=yx,O.pullAllBy=e4,O.pullAllWith=t4,O.pullAt=r4,O.range=xL,O.rangeRight=wL,O.rearg=v3,O.reject=n3,O.remove=n4,O.rest=g3,O.reverse=Tm,O.sampleSize=i3,O.set=E2,O.setWith=C2,O.shuffle=a3,O.slice=o4,O.sortBy=u3,O.sortedUniq=d4,O.sortedUniqBy=f4,O.split=U2,O.spread=b3,O.tail=p4,O.take=m4,O.takeRight=h4,O.takeRightWhile=v4,O.takeWhile=g4,O.tap=M4,O.throttle=y3,O.thru=md,O.toArray=Ix,O.toPairs=Bx,O.toPairsIn=Vx,O.toPath=SL,O.toPlainObject=Lx,O.transform=R2,O.unary=x3,O.union=b4,O.unionBy=y4,O.unionWith=x4,O.uniq=w4,O.uniqBy=E4,O.uniqWith=C4,O.unset=P2,O.unzip=$m,O.unzipWith=xx,O.update=S2,O.updateWith=_2,O.values=qi,O.valuesIn=T2,O.without=R4,O.words=Hx,O.wrap=w3,O.xor=P4,O.xorBy=S4,O.xorWith=_4,O.zip=T4,O.zipObject=$4,O.zipObjectDeep=A4,O.zipWith=D4,O.entries=Bx,O.entriesIn=Vx,O.extend=Fx,O.extendWith=wd,qm(O,O),O.add=TL,O.attempt=Ux,O.camelCase=M2,O.capitalize=Kx,O.ceil=$L,O.clamp=$2,O.clone=C3,O.cloneDeep=P3,O.cloneDeepWith=S3,O.cloneWith=R3,O.conformsTo=_3,O.deburr=Wx,O.defaultTo=sL,O.divide=AL,O.endsWith=O2,O.eq=Gr,O.escape=N2,O.escapeRegExp=I2,O.every=V4,O.find=W4,O.findIndex=hx,O.findKey=n2,O.findLast=H4,O.findLastIndex=vx,O.findLastKey=o2,O.floor=DL,O.forEach=Ex,O.forEachRight=Cx,O.forIn=i2,O.forInRight=a2,O.forOwn=s2,O.forOwnRight=l2,O.get=Nm,O.gt=T3,O.gte=$3,O.has=d2,O.hasIn=Im,O.head=bx,O.identity=mr,O.includes=X4,O.indexOf=Hk,O.inRange=A2,O.invoke=m2,O.isArguments=zo,O.isArray=Le,O.isArrayBuffer=A3,O.isArrayLike=fr,O.isArrayLikeObject=$t,O.isBoolean=D3,O.isBuffer=po,O.isDate=M3,O.isElement=O3,O.isEmpty=N3,O.isEqual=I3,O.isEqualWith=k3,O.isError=Mm,O.isFinite=L3,O.isFunction=Mn,O.isInteger=Dx,O.isLength=yd,O.isMap=Mx,O.isMatch=F3,O.isMatchWith=q3,O.isNaN=j3,O.isNative=B3,O.isNil=K3,O.isNull=V3,O.isNumber=Ox,O.isObject=Et,O.isObjectLike=Pt,O.isPlainObject=ja,O.isRegExp=Om,O.isSafeInteger=W3,O.isSet=Nx,O.isString=xd,O.isSymbol=xr,O.isTypedArray=Fi,O.isUndefined=H3,O.isWeakMap=U3,O.isWeakSet=z3,O.join=Xk,O.kebabCase=k2,O.last=kr,O.lastIndexOf=Zk,O.lowerCase=L2,O.lowerFirst=F2,O.lt=G3,O.lte=Y3,O.max=ML,O.maxBy=OL,O.mean=NL,O.meanBy=IL,O.min=kL,O.minBy=LL,O.stubArray=Bm,O.stubFalse=Vm,O.stubObject=EL,O.stubString=CL,O.stubTrue=RL,O.multiply=FL,O.nth=Qk,O.noConflict=mL,O.noop=jm,O.now=vd,O.pad=q2,O.padEnd=j2,O.padStart=B2,O.parseInt=V2,O.random=D2,O.reduce=t3,O.reduceRight=r3,O.repeat=K2,O.replace=W2,O.result=w2,O.round=qL,O.runInContext=Q,O.sample=o3,O.size=s3,O.snakeCase=H2,O.some=l3,O.sortedIndex=i4,O.sortedIndexBy=a4,O.sortedIndexOf=s4,O.sortedLastIndex=l4,O.sortedLastIndexBy=u4,O.sortedLastIndexOf=c4,O.startCase=z2,O.startsWith=G2,O.subtract=jL,O.sum=BL,O.sumBy=VL,O.template=Y2,O.times=PL,O.toFinite=On,O.toInteger=Fe,O.toLength=kx,O.toLower=X2,O.toNumber=Lr,O.toSafeInteger=X3,O.toString=Je,O.toUpper=Z2,O.trim=Q2,O.trimEnd=J2,O.trimStart=eL,O.truncate=tL,O.unescape=rL,O.uniqueId=_L,O.upperCase=nL,O.upperFirst=km,O.each=Ex,O.eachRight=Cx,O.first=bx,qm(O,(function(){var a={};return un(O,function(u,m){nt.call(O.prototype,m)||(a[m]=u)}),a})(),{chain:!1}),O.VERSION=n,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){O[a].placeholder=O}),Dr(["drop","take"],function(a,u){He.prototype[a]=function(m){m=m===r?1:jt(Fe(m),0);var E=this.__filtered__&&!u?new He(this):this.clone();return E.__filtered__?E.__takeCount__=Qt(m,E.__takeCount__):E.__views__.push({size:Qt(m,ie),type:a+(E.__dir__<0?"Right":"")}),E},He.prototype[a+"Right"]=function(m){return this.reverse()[a](m).reverse()}}),Dr(["filter","map","takeWhile"],function(a,u){var m=u+1,E=m==L||m==k;He.prototype[a]=function($){var I=this.clone();return I.__iteratees__.push({iteratee:Me($,3),type:m}),I.__filtered__=I.__filtered__||E,I}}),Dr(["head","last"],function(a,u){var m="take"+(u?"Right":"");He.prototype[a]=function(){return this[m](1).value()[0]}}),Dr(["initial","tail"],function(a,u){var m="drop"+(u?"":"Right");He.prototype[a]=function(){return this.__filtered__?new He(this):this[m](1)}}),He.prototype.compact=function(){return this.filter(mr)},He.prototype.find=function(a){return this.filter(a).head()},He.prototype.findLast=function(a){return this.reverse().find(a)},He.prototype.invokeMap=je(function(a,u){return typeof a=="function"?new He(this):this.map(function(m){return Na(m,a,u)})}),He.prototype.reject=function(a){return this.filter(bd(Me(a)))},He.prototype.slice=function(a,u){a=Fe(a);var m=this;return m.__filtered__&&(a>0||u<0)?new He(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==r&&(u=Fe(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},He.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},He.prototype.toArray=function(){return this.take(ie)},un(He.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),$=O[E?"take"+(u=="last"?"Right":""):u],I=E||/^find/.test(u);$&&(O.prototype[u]=function(){var V=this.__wrapped__,z=E?[1]:arguments,ee=V instanceof He,me=z[0],he=ee||Le(V),ge=function(We){var Ge=$.apply(O,io([We],z));return E&&Re?Ge[0]:Ge};he&&m&&typeof me=="function"&&me.length!=1&&(ee=he=!1);var Re=this.__chain__,$e=!!this.__actions__.length,Oe=I&&!Re,qe=ee&&!$e;if(!I&&he){V=qe?V:new He(this);var Ne=a.apply(V,z);return Ne.__actions__.push({func:md,args:[ge],thisArg:r}),new Or(Ne,Re)}return Oe&&qe?a.apply(this,z):(Ne=this.thru(ge),Oe?E?Ne.value()[0]:Ne.value():Ne)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(a){var u=jc[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);O.prototype[a]=function(){var $=arguments;if(E&&!this.__chain__){var I=this.value();return u.apply(Le(I)?I:[],$)}return this[m](function(V){return u.apply(Le(V)?V:[],$)})}}),un(He.prototype,function(a,u){var m=O[u];if(m){var E=m.name+"";nt.call(Oi,E)||(Oi[E]=[]),Oi[E].push({name:u,func:m})}}),Oi[sd(r,x).name]=[{name:"wrapper",func:r}],He.prototype.clone=rI,He.prototype.reverse=nI,He.prototype.value=oI,O.prototype.at=O4,O.prototype.chain=N4,O.prototype.commit=I4,O.prototype.next=k4,O.prototype.plant=F4,O.prototype.reverse=q4,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=j4,O.prototype.first=O.prototype.head,_a&&(O.prototype[_a]=L4),O}),Ai=IN();qo?((qo.exports=Ai)._=Ai,Fp._=Ai):Gt._=Ai}).call(Dz)})(Mu,Mu.exports)),Mu.exports}var lt=Mz();const Oz=({view:e,setView:t,value:r,previousMonth:n,nextMonth:o,previousYear:i,nextYear:s,previousDecade:l,nextDecade:c,goBackProps:d,goNextProps:f,changeViewProps:p})=>{const h=e==="month",b=e==="year",w=e==="decade",y=()=>{if(w)return l();if(b)return i();n()},C=()=>{if(w)return c();if(b)return s();o()},x=()=>{if(h)return t("year");if(b)return t("decade")},P=()=>w?S():b?zt(r,"yyyy"):zt(r,"MMMM yyyy",{locale:Az}),S=()=>{if(!r)return"";const _=zS({start:a_(r),end:GS(r)}),T=lt.first(_),A=lt.last(_);return`${zt(T,"yyyy")} - ${zt(A,"yyyy")}`},D=R.useMemo(P,[r,e]);return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex items-center justify-between","data-slot":"calendar-navigation",children:[g.jsxs(tr,{onClick:y,size:"icon",variant:"ghost",className:"border w-6 opacity-50 hover:opacity-100","data-slot":"calendar-navigation-back",...d,children:[g.jsx(zv,{className:"h-4 w-4","data-slot":"calendar-navigation-back-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a anterior"})]}),g.jsx("button",{onClick:x,disabled:w,...p,type:"button",className:le("font-semibold pb-px text-gray-900 text-lg text-blue-bell select-none min-w-[60%] capitalize",p?.className),"data-slot":"calendar-navigation-label",children:D}),g.jsxs(tr,{onClick:C,size:"icon",variant:"ghost",className:"border w-6 opacity-50 hover:opacity-100","data-slot":"calendar-navigation-next",...f,children:[g.jsx(ic,{className:"h-4 w-4","data-slot":"calendar-navigation-next-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a siguiente"})]})]})})};function Fu(e){return!!(e&&typeof e=="object"&&"start"in e&&"end"in e)}function Nz(e,t){return{selectMultipleDate:o=>{if(!e)return t([o]);const i=lt.findIndex(e,l=>ai(l,o));if(i===-1)return t([...e,o]);const s=[...e.slice(0,i),...e.slice(i+1)];t(s)},isMultipleSelected:o=>lt.isArray(e)&&e.some(i=>ai(i,o))}}function Iz(e,t,r){const n=c=>{if(e?.start){const{start:f,end:p}=e;if(QH(c,f)||f&&p){t({start:c,end:void 0});return}if(o(f,c))return;t({start:f,end:c})}else t({start:c,end:void 0})},o=(c,d)=>!r||!c||!d?!1:US({start:Po(c),end:d}).some(h=>r(h));return{selectRangeDate:n,isInRange:c=>{if(!Fu(e)||!e)return!1;const{start:d,end:f}=e;return d&&!f?ai(c,d):!d||!f?!1:ZU(c,{start:Po(d),end:Po(f)})},isFirstDayFromRange:c=>!e||!Fu(e)||!e.start?!1:ai(c,e.start),isLastDayFromRange:c=>!e||!Fu(e)||!e.end?!1:ai(c,e.end)}}function kz(e,t){return{selectSingleDate:o=>{t(o)},isSingleSelected:o=>fi(e)&&ai(o,e)}}const s_=R.createContext({defaultStartDate:new Date,mode:"single",isSingleMode:!1,isRangeMode:!1,selected:null,selectDate:()=>{},isSelected:()=>!1,isFirstDayFromRange:()=>!1,isLastDayFromRange:()=>!1,isInRange:()=>!1});function Lz(e){const{mode:t,value:r,defaultValue:n,onChange:o,disabled:i}=e,s=t==="single",l=t==="range",c=t==="multiple",[d=null,f]=ut({prop:r,onChange:o,defaultProp:n}),{selectSingleDate:p,isSingleSelected:h}=kz(fi(d)?d:void 0,f),{selectRangeDate:b,isInRange:w,...y}=Iz(Fu(d)?d:void 0,f,i),{selectMultipleDate:C,isMultipleSelected:x}=Nz(lt.isArray(d)?d:void 0,f),P=_=>{if(s)return p(_);if(l)return b(_);if(c)return C(_)},S=_=>s?h(_):l?w(_):c?x(_):!1;return{defaultStartDate:fi(d)?d:lt.isArray(d)?d[0]:Fu(d)&&d.start?d.start:new Date,isSingleMode:s,isRangeMode:l,selected:d,isSelected:S,selectDate:P,isInRange:w,mode:t,...y}}const Fz=({day:e,navigationDate:t,className:r,...n})=>{const{isSelected:o,mode:i,selected:s,isRangeMode:l,selectDate:c,isFirstDayFromRange:d,isLastDayFromRange:f}=R.useContext(s_),p=R.useMemo(()=>o(e),[e,s]),h=!p&&!YU(e,t),b=!p&&XW(e);return g.jsx("button",{...n,onClick:()=>c(e),type:"button","data-slot":"calendar-day","data-state-mode":i,"data-state-today":XU(e)||void 0,"data-state-selected":p||void 0,"data-state-different-month":h||void 0,"data-state-weekend":b||void 0,"data-state-range-mode":l||void 0,"data-state-first-day":d(e)||void 0,"data-state-last-day":f(e)||void 0,"data-state-in-range":l&&p||void 0,className:le("mx-auto flex pt-px rounded-md items-center justify-center w-full aspect-square hover:bg-accent","data-[state-today]:text-error","data-[state-selected]:bg-primary data-[state-selected]:!text-primary-foreground data-[state-selected]:hover:bg-primary/80","data-[state-different-month]:opacity-50 data-[state-weekend=true]:opacity-50","data-[state-in-range]:not-data-[state-first-day]:not-data-[state-last-day]:rounded-none","data-[state-first-day]:rounded-l-full","data-[state-last-day]:rounded-r-full",r),children:g.jsx("time",{dateTime:zt(e,"yyyy-MM-dd"),children:zt(e,"d")})})},qz=({value:e,onChange:t})=>{const r=()=>zS({start:a_(e),end:GS(e)}),n=i=>{const s=JU(e,parseInt(zt(i,"yyyy")));t(s)},o=R.useMemo(r,[e]);return g.jsx("div",{className:"grid grid-cols-3 grow","data-slot":"calendar-decade-view",children:o.map((i,s)=>g.jsx(tr,{onClick:()=>n(i),className:"h-full rounded-none",type:"button",variant:"ghost","data-slot":"calendar-decade-view-year",children:zt(i,"yyyy")},s))})},ov=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],l_=["Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"],jz=e=>g.jsx("div",{...e,className:le("grid grid-cols-7 font-semibold mt-2 text-xs leading-6 text-center py-1 bg-blue-bell/40 select-none",e.className),"data-slot":"calendar-week-days",children:l_.map(t=>g.jsx("abbr",{"aria-label":t,"data-slot":"calendar-week-day",children:lt.at(t,0)},t))}),Bz=({navigationDate:e,disabled:t,weekDaysClassName:r,weekDaysProps:n,dayClassName:o,dayProps:i})=>{const s=()=>US({start:Yn(e,{weekStartsOn:1}),end:oH(rH(e),{weekStartsOn:1})}),l=R.useMemo(s,[e]);return g.jsxs(g.Fragment,{children:[g.jsx(jz,{className:r,...n}),g.jsx("div",{className:"grid grid-cols-7 mt-2 text-sm","data-slot":"calendar-month-view",children:l.map((c,d)=>g.jsx(Fz,{day:c,className:o,...i,navigationDate:e,disabled:t?.(c)},d))})]})},Vz=({value:e,onChange:t})=>{const r=n=>{const o=QU(e,n);t(o)};return g.jsx("div",{className:"grid grid-cols-3 grow","data-slot":"calendar-year-view",children:ov.map(n=>g.jsx(tr,{type:"button",className:"h-full rounded",onClick:()=>r(ov.indexOf(n)),variant:"ghost","data-slot":"calendar-year-view-month",children:g.jsx("abbr",{"aria-label":`${n} ${zt(e,"yyyy")}`,children:n})},n))})};function Kz(e=gh()){const[t,r]=R.useState({month:zt(e||gh(),"MM"),year:zt(e||gh(),"yyyy")}),n=R.useMemo(()=>zU(`${t.month}-${t.year}`,"MM-yyyy",new Date),[t]),o=h=>{r({...t,month:zt(h,"MM")})},i=h=>{r({...t,year:zt(h,"yyyy")})};return{navigationDate:n,setMonth:o,setYear:i,previousMonth:()=>{const h=tv(n,-1);r({month:zt(h,"MM"),year:zt(h,"yyyy")})},nextMonth:()=>{const h=tv(n,1);r({month:zt(h,"MM"),year:zt(h,"yyyy")})},previousYear:()=>{const h=qd(n,-1);i(h)},nextYear:()=>{const h=qd(n,1);i(h)},previousDecade:()=>{const h=qd(n,-10);i(h)},nextDecade:()=>{const h=qd(n,10);i(h)}}}const u_=e=>{const{disabled:t,initialView:r="month",view:n,onChangeView:o,initialDate:i,goBackProps:s,goNextProps:l,changeViewProps:c}=e,d=Lz(e),{defaultStartDate:f}=d,{navigationDate:p,setMonth:h,setYear:b,...w}=Kz(i||f),[y=r,C]=ut({prop:n,onChange:x=>o?.(x,p),defaultProp:r});return g.jsx(s_.Provider,{value:d,children:g.jsxs("div",{"data-slot":"calendar",className:le("w-60 min-h-64 flex flex-col border rounded-md p-2",e.className),children:[g.jsx(Oz,{view:y,setView:C,value:p,goBackProps:s,goNextProps:l,changeViewProps:c,...w}),y==="month"&&g.jsx(Bz,{...e.monthViewProps,navigationDate:p,disabled:t}),y==="year"&&g.jsx(Vz,{value:p,onChange:x=>{h(x),C("month")}}),y==="decade"&&g.jsx(qz,{value:p,onChange:x=>{b(x),C("year")}})]})})},Wz=({className:e,...t})=>g.jsx("div",{className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t,"data-slot":"card"}),Hz=({className:e,...t})=>g.jsx("div",{className:le("flex flex-col space-y-1 p-6",e),...t,"data-slot":"card-header"}),Uz=({className:e,...t})=>g.jsx("h3",{className:le("text-2xl font-semibold leading-none tracking-tight",e),...t,"data-slot":"card-title"}),zz=({className:e,...t})=>g.jsx("p",{className:le("text-sm text-muted-foreground",e),...t,"data-slot":"card-description"}),Gz=({className:e,...t})=>g.jsx("div",{className:le("p-6 pt-0",e),...t,"data-slot":"card-content"}),Yz=({className:e,...t})=>g.jsx("div",{className:le("flex items-center p-6 pt-0",e),...t,"data-slot":"card-footer"}),Xz=({className:e,...t})=>g.jsx("div",{className:le("flex items-center justify-center",e),...t,"data-slot":"center"}),pc=({className:e,...t})=>g.jsx("label",{className:le("text-sm font-medium select-none leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),"data-slot":"label",...t}),iv=({when:e,...t})=>g.jsx(Tr,{present:e,children:g.jsx(sc,{...t,"data-state":e?"open":"closed","data-slot":"show"})}),Zz=({checked:e,onChange:t,defaultChecked:r=!1,indeterminate:n,defaultIndeterminate:o=!1,onIndeterminateChange:i,className:s,size:l=16,children:c,containerClassName:d,containerProps:f,...p})=>{const h=R.useId(),b=R.useRef(null),[w,y]=ut({defaultProp:r,prop:e,onChange:t}),[C,x]=ut({defaultProp:o,prop:n,onChange:i});R.useEffect(()=>{b.current&&(b.current.indeterminate=C)},[C]);const P=_=>{_.stopPropagation(),!p.disabled&&(C?(x(!1),y(!0)):y(T=>!T))},S=C?"indeterminate":w?"checked":"unchecked",D=p.id??h;return g.jsxs("div",{...f,className:le("flex gap-x-2 items-center",d),"data-slot":"checkbox",children:[g.jsxs("button",{disabled:p.disabled,onClick:P,"data-state":S,type:"button",style:{width:l,height:l},className:le("peer aspect-square flex gap-2 shrink-0 rounded-(--radius-checkbox) border border-(--color-checkbox) ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-colors","data-[state=checked]:bg-(--color-checkbox) data-[state=checked]:text-primary-foreground data-[state=checked]:border-transparent","data-[state=indeterminate]:bg-(--color-checkbox) data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-transparent","data-[state=unchecked]:bg-background data-[state=unchecked]:text-muted-foreground data-[state=unchecked]:border-input",s),"data-slot":"checkbox-trigger",children:[g.jsx(iv,{when:C,children:g.jsx(m5,{className:le("pt-[2px] w-full h-full opacity-0","open:fade-in-0 open:zoom-in-50 open:opacity-100 open:duration-200","closed:fade-out-0 closed:zoom-out-50 closed:opacity-0")})}),g.jsx(iv,{when:!C&&!!w,children:g.jsx(of,{className:le("pt-[2px] w-full h-full opacity-0","open:fade-in-0 open:zoom-in-50 open:opacity-100 open:duration-200","closed:fade-out-0 closed:zoom-out-50 closed:opacity-0")})}),g.jsx("input",{...p,ref:b,id:D,tabIndex:-1,checked:w,onChange:_=>y(_.currentTarget.checked),type:"checkbox",className:"sr-only","aria-hidden":!0})]}),c&&g.jsx(pc,{htmlFor:D,"data-slot":"checkbox-label",children:c})]})};function Qz({items:e=[],valueKey:t="value",labelKey:r="label",placeholder:n="Seleccionar",searchPlaceholder:o="Buscar...",emptyMessage:i="No se encontraron resultado",searchProps:s,className:l,triggerProps:c,itemProps:d,itemClassName:f,contentProps:p,contentClassName:h,value:b,onChange:w,defaultValue:y,renderOption:C=S=>S?.[r],commandProps:x,...P}){const[S,D]=ut({prop:P.open,onChange:P.onOpenChange,defaultProp:P.defaultOpen||!1}),[_,T]=ut({prop:b,onChange:J=>{if(!w)return;const N=e.find(W=>W[t]===J);w?.(N?.[t],N)},defaultProp:y}),[A,M]=ut({prop:P?.search,defaultProp:P?.searchDefaultValue||"",onChange:P?.onSearchChange}),U=v.useMemo(()=>e.find(J=>J[t]===_),[_]);return g.jsxs(Sc,{open:S,onOpenChange:D,"data-slot":"combobox",children:[g.jsx(_c,{asChild:!0,"data-slot":"combobox-trigger",children:g.jsxs(tr,{...P,...c,variant:"outline",role:"combobox","aria-expanded":S,className:le("font-normal w-full items-center justify-between border-input px-3 hover:bg-background",l),children:[g.jsx("span",{className:"truncate",children:U?C(U):n}),g.jsx(af,{className:"ml-2 h-4 w-4 shrink-0 opacity-50","data-slot":"combobox-trigger-icon"})]})}),g.jsx(Tc,{...p,className:le("p-1",h),asChild:!0,matchTriggerWidth:!0,"data-slot":"combobox-content",children:g.jsxs(uc,{...x,children:[g.jsx(Uf,{value:A,onValueChange:M,placeholder:o,autoFocus:!0,"data-slot":"combobox-input",...s}),g.jsx(Gf,{"data-slot":"combobox-empty",children:i}),g.jsx(zf,{"data-slot":"combobox-list",children:e.map(J=>R.createElement(Ku,{className:f,"data-slot":"combobox-item",...d,key:J[t],value:J[t],onSelect:()=>{const N=J[t];T(N===_?"":N),D(!1)}},C(J)))})]})})]})}const Jz="dd/MM/yyyy",Tu=e=>fi(e)?zt(e,Jz):"",eG=e=>{const t=e.trim();if(!t)return null;const r=/^(\d{1,2})\/(\d{1,2})\/(\d{1,4})$/.exec(t);if(!r)return null;const[,n,o,i]=r,s=Number(n),l=Number(o),c=i;let d=Number(c);if(Number.isNaN(s)||Number.isNaN(l)||Number.isNaN(d)||(c.length<=2&&(d=2e3+d),s<1||s>31||l<1||l>12))return null;const f=new Date(d,l-1,s);return f.getFullYear()!==d||f.getMonth()!==l-1||f.getDate()!==s?null:f},tG=(e,t)=>{const r=(t.lastKey==="Backspace"||t.lastKey==="Delete")&&e.length<t.previousValue.length,n=e.includes("/"),o=e.trim().endsWith("/");if((e.match(/\//g)??[]).length>=2){const C=e.split("/"),x=(C[0]??"").replace(/\D/g,"").slice(0,2),P=(C[1]??"").replace(/\D/g,"").slice(0,2),S=(C[2]??"").replace(/\D/g,"").slice(0,4);return!x&&!P&&!S?"":`${x}/${P}/${S}`}const s=e.replace(/\D/g,"").slice(0,8);if(!s)return"";if(s.length<=2){let C=s;if(s.length===1&&(n||o)&&!r){let x=Number(C);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>31&&(x=31),C=x.toString().padStart(2,"0"),C+="/"}else if(s.length===2&&!r){let x=Number(C);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>31&&(x=31),C=x.toString().padStart(2,"0"),C+="/"}return C}const l=s.slice(0,2);let c=Number(l);Number.isNaN(c)&&(c=1),c<1&&(c=1),c>31&&(c=31);const d=c.toString().padStart(2,"0"),f=s.slice(2,4),p=s.slice(4);let h="";if(f.length===0)h="";else if(f.length===1&&p.length===0){const C=o&&!r&&f.length===1;if(f==="0"||f==="1")if(C){let x=Number(f);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>12&&(x=12),h=x.toString().padStart(2,"0")}else h=f;else{let x=Number(f);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>12&&(x=12),h=x.toString().padStart(2,"0")}}else{let C=Number(f);Number.isNaN(C)&&(C=1),C<1&&(C=1),C>12&&(C=12),h=C.toString().padStart(2,"0")}const b=`${d}/${h}`,w=!p&&h.length===2&&!r;return p?`${b}/${p}`:w?`${b}/`:b},rG=e=>{const{date:t,onDateChange:r,disabledDate:n}=e,[o,i]=R.useState(""),s=R.useRef(null),l=R.useRef("");R.useEffect(()=>{const w=Tu(t??null);i(w),l.current=w},[t]);const c=()=>{const w=o.trim();if(!w){r(null),i(""),l.current="";return}const y=eG(w);if(!y){r(null),i(""),l.current="";return}if(n?.(y)){const x=Tu(t??null);i(x),l.current=x;return}r(y);const C=Tu(y);i(C),l.current=C};return{inputValue:o,handleChange:w=>{const y=w.target.value,C={lastKey:s.current,previousValue:l.current},x=tG(y,C);i(x),l.current=x},handleBlur:()=>{c()},handleKeyDown:w=>{if(s.current=w.key,w.key==="Enter"){w.preventDefault(),c();return}if(w.key==="Escape"){w.preventDefault();const y=Tu(t??null);i(y),l.current=y}},clear:()=>{r(null),i(""),l.current=""},setFromExternalDate:w=>{r(w);const y=Tu(w??null);i(y),l.current=y}}},nG=(e={})=>{const{disabled:t}=e,[r,n]=R.useState(!1),o=R.useRef(null),i=R.useCallback(s=>{if(!t){if(s.key===" "||s.key==="Spacebar"){s.preventDefault(),n(!0);return}s.key==="Escape"&&(n(!1),requestAnimationFrame(()=>{o.current?.focus()}))}},[t]);return{open:r,setOpen:n,handleInputKeyDown:i,inputRef:o}},oG=e=>{const{placeholder:t,value:r,onChange:n,defaultValue:o,className:i,disabledDate:s,renderFooter:l,disabled:c,hideFooter:d,onBlur:f,...p}=e,[h,b]=ut({prop:r,onChange:F=>n?.(F??null),defaultProp:o??null}),{inputValue:w,handleChange:y,handleBlur:C,handleKeyDown:x,clear:P,setFromExternalDate:S}=rG({date:h??null,onDateChange:F=>b(F),disabledDate:s}),{open:D,setOpen:_,handleInputKeyDown:T,inputRef:A}=nG({disabled:c}),M=F=>{x(F),T(F)},U=()=>{S(null),P()},J=()=>{const F=new Date;s?.(F)||S(F)},N=()=>g.jsxs("span",{className:"flex w-full p-1 justify-between",children:[g.jsx(tr,{variant:"ghost",onClick:U,children:"Borrar"}),g.jsx(tr,{variant:"ghost",onClick:J,disabled:s?.(new Date),children:"Hoy"})]}),W=()=>d?null:l?l({mode:"single",value:h,clear:U,selectToday:J,setValue:F=>{const L=F&&fi(F)?F:null;b(L),S(L)}}):N();return g.jsxs(Sc,{"data-slot":"date-picker",open:D,onOpenChange:_,children:[g.jsxs("div",{className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 items-center text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",!h&&"text-muted-foreground",i,"field-error"),onClick:F=>{F.target===F.currentTarget&&A.current?.focus()},children:[g.jsx("input",{type:"text",value:w,onChange:y,onBlur:F=>{C(),f?.(F)},onKeyDown:M,placeholder:t??"DD/MM/YYYY",disabled:c,className:"flex-1 min-w-0 bg-transparent outline-none text-start truncate pt-px","aria-label":t,ref:A,...p}),g.jsx(_c,{asChild:!0,"data-slot":"date-picker-trigger",children:g.jsxs("button",{type:"button",disabled:c,className:"flex shrink-0 items-center justify-center text-muted-foreground hover:text-foreground p-1",children:[g.jsx(qj,{"data-slot":"date-picker-icon"}),g.jsx("span",{className:"sr-only",children:"Seleccionar fecha"})]})})]}),g.jsxs(Tc,{className:"w-auto p-0",align:"start","data-slot":"date-picker-content",children:[g.jsx(u_,{className:"border-none",mode:"single",value:h,onChange:F=>{if(!fi(F)){S(null);return}s?.(F)||(S(F),_(!1))},disabled:s}),g.jsx("div",{className:"p-2","data-slot":"date-picker-footer",children:W()})]})]})},c_=e=>{const{className:t,orientation:r="horizontal"}=e;return g.jsx("hr",{...e,"aria-orientation":r,className:le("shrink-0 bg-input",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),"data-slot":"divider"})},iG=({onDrop:e,onError:t,allowedExtensions:r=[],maxFileSize:n=5*1024*1024,maxFiles:o=1/0})=>{const[i,s]=R.useState(!1),l=R.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),c=R.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s(!0)},[]),d=R.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s(!1)},[]),f=h=>{const[b=[],w=[],y=[]]=h.reduce(([C,x,P],S)=>r.length>0&&!r.includes(S.type)?(C.push(S),P.push({file:S,errorMessage:"Extensión no permitida",errorCode:"INVALID_EXTENSION"}),[C,x,P]):S.size>n?(C.push(S),P.push({file:S,errorMessage:"Archivo demasiado grande",errorCode:"FILE_TOO_LARGE"}),[C,x,P]):o&&o<x.length+1?(C.push(S),P.push({file:S,errorMessage:"Límite de archivos excedido",errorCode:"MAX_FILES_EXCEEDED"}),[C,x,P]):(x.push(S),[C,x,P]),[[],[],[]]);return y.length>0&&t&&t(y),[b,w,y]},p=R.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s(!1);const b=Array.from(h.dataTransfer.files),[w=[],y=[]]=f(b);e(y,w)},[r,n,o,e,t]);return{isDragActive:i,validateFiles:f,dropzoneProps:{onDragOver:l,onDragEnter:c,onDragLeave:d,onDrop:p}}},d_=R.createContext(null),wg=()=>{const e=R.useContext(d_);if(!e)throw new Error("useUploadContext must be used within a UploadContextProvider");return e},f_=({onFileAdd:e,onFileRemove:t,onChangeFiles:r,files:n,maxFiles:o=1,allowedExtensions:i=[],maxFileSize:s=5*1024*1024,multiple:l,children:c,onError:d,...f})=>{const[p=[],h]=ut({defaultProp:[],prop:n,onChange:r}),[b,w]=R.useState([]),{isDragActive:y,validateFiles:C,dropzoneProps:x}=iG({onDrop:(D,_)=>{h([...p,...D]),w(T=>[...T,..._]),e?.(D)},allowedExtensions:i,maxFileSize:s,maxFiles:o,onError:d}),P=D=>{const[_=[],T=[]]=C(D);if(o===1||!l){h(T.slice(0,1)),w([..._,...T.slice(1)]),e?.(T.slice(0,1));return}const A=o-p.length;if(A<=0){w(J=>[...J,...T]),e?.([]);return}const M=T.slice(0,A),U=T.slice(A);h([...p,...M]),w(J=>[...J,..._,...U]),e?.(M)},S=(D,_)=>{_==="accepted"?h(p.filter((T,A)=>A!==D)):w(T=>T.filter((A,M)=>M!==D)),t?.(D,_)};return g.jsx(d_.Provider,{value:{files:p,rejectedFiles:b,handleFileAdd:P,handleFileRemove:S,inputProps:{accept:i.join(","),multiple:l},isDragActive:y,dropzoneProps:x},children:g.jsx("div",{...f,"data-slot":"upload",children:c})})},p_=({asChild:e,...t})=>{const{handleFileAdd:r,inputProps:n,dropzoneProps:o,isDragActive:i}=wg(),s=R.useRef(null),l=e?sc:"button";return g.jsxs(g.Fragment,{children:[g.jsx(l,{"data-slot":"upload-trigger",...t,...o,"data-drag-active":i||!1,onClick:c=>{t.onClick?.(c),s.current?.click()}}),g.jsx("input",{type:"file",className:"hidden","data-slot":"upload-input",...n,ref:s,onChange:c=>r(Array.from(c.target.files||[]))})]})},m_=({className:e,...t})=>g.jsx("div",{...t,className:le("mt-2 space-y-2",e),"data-slot":"upload-content"}),h_=({files:e,handleFileRemove:t,fileType:r,children:n,renderFile:o,...i})=>e.length===0?null:g.jsxs("div",{className:"mt-2 space-y-2",...i,"data-slot":"upload-files-list",children:[n,e.map((s,l)=>o?o(s,()=>t(l,r)):g.jsx(b_,{file:s,onRemove:()=>t(l,r)},s.name))]}),v_=e=>{const{files:t,handleFileRemove:r}=wg();return g.jsx(h_,{"data-slot":"upload-accepted-files",files:t,handleFileRemove:r,fileType:"accepted",...e})},g_=e=>{const{rejectedFiles:t,handleFileRemove:r}=wg();return g.jsx(h_,{"data-slot":"upload-rejected-files",files:t,handleFileRemove:r,fileType:"rejected",...e})},b_=({file:e,onRemove:t,className:r,renderIcon:n,...o})=>g.jsxs("div",{className:le("flex items-center gap-2 mb-2",r),...o,"data-slot":"upload-item",children:[n?.(e),e.name,g.jsx(tr,{variant:"ghost",size:"icon",type:"button",className:"h-6 w-6",onClick:t,"data-slot":"upload-item-remove",children:g.jsx(jf,{"data-slot":"upload-item-remove-icon"})})]}),aG=({onFileAdd:e,onFileRemove:t,onChangeFiles:r=()=>{},files:n,maxFiles:o=1,allowedExtensions:i=[],maxFileSize:s=5*1024*1024,multiple:l,renderAcceptedFile:c,renderRejectedFile:d,showRejected:f=!1,className:p,icon:h=i5,iconSize:b=40,onError:w,...y})=>{const C=R.useMemo(()=>i.map(x=>x.split("/")?.[1]).join(", "),[i]);return g.jsxs(f_,{onFileAdd:e,onFileRemove:t,files:n,onChangeFiles:r,maxFiles:o,allowedExtensions:i,maxFileSize:s,multiple:l?!0:void 0,className:le("w-full",p),onError:w,...y,children:[g.jsx(p_,{asChild:!0,children:g.jsxs("div",{className:le("w-full min-h-[150px] border-2 border-dashed rounded-lg border-muted p-4","hover:bg-muted/50 data-[drag-active=true]:border-primary data-[drag-active=true]:bg-primary/10","transition-colors flex flex-col items-center justify-center gap-4","pointer-events-auto"),children:[g.jsx(h,{className:"text-muted-foreground pointer-events-none",style:{width:b,height:b}}),g.jsxs("div",{className:"text-center text-muted-foreground pointer-events-none",children:[g.jsx("p",{children:"Arrastra y suelta archivos aquí o haz clic para seleccionar"}),i.length>0&&g.jsxs("p",{className:"text-sm",children:["Tipos permitidos: ",C]}),g.jsxs("p",{className:"text-sm",children:["Tamaño máximo: ",Math.floor(s/1024/1024),"MB"]})]})]})}),g.jsxs(m_,{children:[g.jsx(v_,{renderFile:c}),f&&g.jsx(g_,{renderFile:d})]})]})},It={JPEG:"image/jpeg",JPG:"image/jpg",PNG:"image/png",GIF:"image/gif",WEBP:"image/webp",SVG:"image/svg+xml",PDF:"application/pdf",DOC:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",XLS:"application/vnd.ms-excel",XLSX:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PPT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",TXT:"text/plain",CSV:"text/csv",ZIP:"application/zip",RAR:"application/x-rar-compressed",MP3:"audio/mpeg",WAV:"audio/wav",MP4:"video/mp4",WEBM:"video/webm",JSON:"application/json",XML:"application/xml"},sG={IMAGES:[It.JPEG,It.JPG,It.PNG,It.GIF,It.WEBP,It.SVG],DOCUMENTS:[It.PDF,It.DOC,It.DOCX,It.XLS,It.XLSX,It.PPT,It.PPTX],COMPRESSED:[It.ZIP,It.RAR],AUDIO:[It.MP3,It.WAV],VIDEO:[It.MP4,It.WEBM]},lG=eo([],{variants:{size:{sm:"text-[14px]",md:"text-[16px]",lg:"text-[18px]",xl:"text-[20px]","2xl":"text-[24px]","3xl":"text-[28px]","4xl":"text-[32px]","5xl":"text-[36px]","6xl":"text-[40px]"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{size:"xl",weight:"semibold"}}),y_=({className:e,size:t,weight:r,as:n,...o})=>{const i=n||"h2";return g.jsx(i,{className:le(lG({size:t,weight:r}),e),...o,"data-slot":"heading","data-size":t,"data-weight":r})},uG=({icon:e=g.jsx(d5,{className:"w-12 h-12"}),title:t="No hay resultados",description:r,className:n,children:o,...i})=>g.jsxs("div",{className:le("flex flex-col gap-2 justify-center items-center",n),"data-slot":"empty-state",...i,children:[g.jsx("div",{className:"text-muted-foreground","data-slot":"empty-state-icon",children:e}),g.jsx(y_,{className:"empty:hidden","data-slot":"empty-state-title",children:t}),g.jsx("p",{className:"py-1 text-sm text-center text-muted-foreground empty:hidden","data-slot":"empty-state-description",children:r}),o]}),cG=({label:e,labelClassName:t,labelProps:r,error:n,errorClassName:o,errorProps:i,children:s,className:l,...c})=>g.jsxs("div",{...c,className:le("flex flex-col gap-1",l),"data-slot":"field",children:[g.jsx(pc,{className:le("empty:hidden",t),...r,"data-slot":"field-label",children:e}),s,g.jsx("p",{"data-slot":"field-error",className:le("text-sm font-medium text-error empty:hidden",o),...i,children:n})]});var mc=e=>e.type==="checkbox",ri=e=>e instanceof Date,vr=e=>e==null;const x_=e=>typeof e=="object";var Ft=e=>!vr(e)&&!Array.isArray(e)&&x_(e)&&!ri(e),w_=e=>Ft(e)&&e.target?mc(e.target)?e.target.checked:e.target.value:e,dG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,E_=(e,t)=>e.has(dG(t)),fG=e=>{const t=e.constructor&&e.constructor.prototype;return Ft(t)&&t.hasOwnProperty("isPrototypeOf")},Eg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Eg&&(e instanceof Blob||n))&&(r||Ft(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!fG(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Vt(e[o]));else return e;return t}var Jf=e=>/^\w*$/.test(e),St=e=>e===void 0,Cg=e=>Array.isArray(e)?e.filter(Boolean):[],Rg=e=>Cg(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,r)=>{if(!t||!Ft(e))return r;const n=(Jf(t)?[t]:Rg(t)).reduce((o,i)=>vr(o)?o:o[i],e);return St(n)||n===e?St(e[t])?r:e[t]:n},Rr=e=>typeof e=="boolean",ot=(e,t,r)=>{let n=-1;const o=Jf(t)?[t]:Rg(t),i=o.length,s=i-1;for(;++n<i;){const l=o[n];let c=r;if(n!==s){const d=e[l];c=Ft(d)||Array.isArray(d)?d:isNaN(+o[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const bf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Jr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Kn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Pg=R.createContext(null);Pg.displayName="HookFormContext";const hc=()=>R.useContext(Pg),pG=e=>{const{children:t,...r}=e;return R.createElement(Pg.Provider,{value:r},t)};var C_=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Jr.all&&(t._proxyFormState[s]=!n||Jr.all),r&&(r[s]=!0),e[s]}});return o};const Sg=typeof window<"u"?R.useLayoutEffect:R.useEffect;function mG(e){const t=hc(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[s,l]=R.useState(r._formState),c=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Sg(()=>r._subscribe({name:o,formState:c.current,exact:i,callback:d=>{!n&&l({...r._formState,...d})}}),[o,n,i]),R.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),R.useMemo(()=>C_(s,r,c.current,!1),[s,r])}var Sr=e=>typeof e=="string",av=(e,t,r,n,o)=>Sr(e)?(n&&t.watch.add(e),Ce(r,e,o)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),Ce(r,i))):(n&&(t.watchAll=!0),r),sv=e=>vr(e)||!x_(e);function en(e,t,r=new WeakSet){if(sv(e)||sv(t))return Object.is(e,t);if(ri(e)&&ri(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const i of n){const s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const l=t[i];if(ri(s)&&ri(l)||Ft(s)&&Ft(l)||Array.isArray(s)&&Array.isArray(l)?!en(s,l,r):!Object.is(s,l))return!1}}return!0}function hG(e){const t=hc(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},c=R.useRef(o),d=R.useRef(l),f=R.useRef(void 0),p=R.useRef(r),h=R.useRef(n);d.current=l;const[b,w]=R.useState(()=>{const D=r._getWatch(n,c.current);return d.current?d.current(D):D}),y=R.useCallback(D=>{const _=av(n,r._names,D||r._formValues,!1,c.current);return d.current?d.current(_):_},[r._formValues,r._names,n]),C=R.useCallback(D=>{if(!i){const _=av(n,r._names,D||r._formValues,!1,c.current);if(d.current){const T=d.current(_);en(T,f.current)||(w(T),f.current=T)}else w(_)}},[r._formValues,r._names,i,n]);Sg(()=>((p.current!==r||!en(h.current,n))&&(p.current=r,h.current=n,C()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:D=>{C(D.values)}})),[r,s,n,C]),R.useEffect(()=>r._removeUnmounted());const x=p.current!==r,P=h.current,S=R.useMemo(()=>{if(i)return null;const D=!x&&!en(P,n);return x||D?y():null},[i,x,n,P,y]);return S!==null?S:b}function vG(e){const t=hc(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i,defaultValue:s,exact:l=!0}=e,c=E_(o._names.array,r),d=R.useMemo(()=>Ce(o._formValues,r,Ce(o._defaultValues,r,s)),[o,r,s]),f=hG({control:o,name:r,defaultValue:d,exact:l}),p=mG({control:o,name:r,exact:l}),h=R.useRef(e),b=R.useRef(void 0),w=R.useRef(o.register(r,{...e.rules,value:f,...Rr(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const y=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ce(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ce(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ce(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ce(p.validatingFields,r)},error:{enumerable:!0,get:()=>Ce(p.errors,r)}}),[p,r]),C=R.useCallback(D=>w.current.onChange({target:{value:w_(D),name:r},type:bf.CHANGE}),[r]),x=R.useCallback(()=>w.current.onBlur({target:{value:Ce(o._formValues,r),name:r},type:bf.BLUR}),[r,o._formValues]),P=R.useCallback(D=>{const _=Ce(o._fields,r);_&&D&&(_._f.ref={focus:()=>D.focus&&D.focus(),select:()=>D.select&&D.select(),setCustomValidity:T=>D.setCustomValidity(T),reportValidity:()=>D.reportValidity()})},[o._fields,r]),S=R.useMemo(()=>({name:r,value:f,...Rr(n)||p.disabled?{disabled:p.disabled||n}:{},onChange:C,onBlur:x,ref:P}),[r,n,p.disabled,C,x,P,f]);return R.useEffect(()=>{const D=o._options.shouldUnregister||i,_=b.current;_&&_!==r&&!c&&o.unregister(_),o.register(r,{...h.current.rules,...Rr(h.current.disabled)?{disabled:h.current.disabled}:{}});const T=(A,M)=>{const U=Ce(o._fields,A);U&&U._f&&(U._f.mount=M)};if(T(r,!0),D){const A=Vt(Ce(o._options.defaultValues,r,h.current.defaultValue));ot(o._defaultValues,r,A),St(Ce(o._formValues,r))&&ot(o._formValues,r,A)}return!c&&o.register(r),b.current=r,()=>{(c?D&&!o._state.action:D)?o.unregister(r):T(r,!1)}},[r,o,c,i]),R.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),R.useMemo(()=>({field:S,formState:p,fieldState:y}),[S,p,y])}const gG=e=>e.render(vG(e));var _g=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},qu=e=>Array.isArray(e)?e:[e],sR=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function R_(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],i=t[n];if(o&&Ft(o)&&i){const s=R_(o,i);Ft(s)&&(r[n]=s)}else e[n]&&(r[n]=i)}return r}var lr=e=>Ft(e)&&!Object.keys(e).length,Tg=e=>e.type==="file",tn=e=>typeof e=="function",yf=e=>{if(!Eg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},P_=e=>e.type==="select-multiple",$g=e=>e.type==="radio",bG=e=>$g(e)||mc(e),bh=e=>yf(e)&&e.isConnected;function yG(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=St(e)?n++:e[t[n++]];return e}function xG(e){for(const t in e)if(e.hasOwnProperty(t)&&!St(e[t]))return!1;return!0}function kt(e,t){const r=Array.isArray(t)?t:Jf(t)?[t]:Rg(t),n=r.length===1?e:yG(e,r),o=r.length-1,i=r[o];return n&&delete n[i],o!==0&&(Ft(n)&&lr(n)||Array.isArray(n)&&xG(n))&&kt(e,r.slice(0,-1)),e}var wG=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function S_(e){return Array.isArray(e)||Ft(e)&&!wG(e)}function lv(e,t={}){for(const r in e){const n=e[r];S_(n)?(t[r]=Array.isArray(n)?[]:{},lv(n,t[r])):St(n)||(t[r]=!0)}return t}function Qi(e,t,r){r||(r=lv(t));for(const n in e){const o=e[n];if(S_(o))St(t)||sv(r[n])?r[n]=lv(o,Array.isArray(o)?[]:{}):Qi(o,vr(t)?{}:t[n],r[n]);else{const i=t[n];r[n]=!en(o,i)}}return r}const lR={value:!1,isValid:!1},uR={value:!0,isValid:!0};var __=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!St(e[0].attributes.value)?St(e[0].value)||e[0].value===""?uR:{value:e[0].value,isValid:!0}:uR:lR}return lR},T_=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>St(e)?e:t?e===""?NaN:e&&+e:r&&Sr(e)?new Date(e):n?n(e):e;const cR={isValid:!1,value:null};var $_=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,cR):cR;function dR(e){const t=e.ref;return Tg(t)?t.files:$g(t)?$_(e.refs).value:P_(t)?[...t.selectedOptions].map(({value:r})=>r):mc(t)?__(e.refs).value:T_(St(t.value)?e.ref.value:t.value,e)}var EG=(e,t,r,n)=>{const o={};for(const i of e){const s=Ce(t,i);s&&ot(o,i,s._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},xf=e=>e instanceof RegExp,$u=e=>St(e)?e:xf(e)?e.source:Ft(e)?xf(e.value)?e.value.source:e.value:e,fR=e=>({isOnSubmit:!e||e===Jr.onSubmit,isOnBlur:e===Jr.onBlur,isOnChange:e===Jr.onChange,isOnAll:e===Jr.all,isOnTouch:e===Jr.onTouched});const pR="AsyncFunction";var CG=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===pR||Ft(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===pR)),RG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),mR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const ju=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const i=Ce(e,o);if(i){const{_f:s,...l}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(ju(l,t))break}else if(Ft(l)&&ju(l,t))break}}};function hR(e,t,r){const n=Ce(e,r);if(n||Jf(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const i=o.join("."),s=Ce(t,i),l=Ce(e,i);if(s&&!Array.isArray(s)&&r!==i)return{name:r};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};o.pop()}return{name:r}}var PG=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return lr(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!n||Jr.all))},SG=(e,t,r)=>!e||!t||e===t||qu(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),_G=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,TG=(e,t)=>!Cg(Ce(e,t)).length&&kt(e,t),$G=(e,t,r)=>{const n=qu(Ce(e,r));return ot(n,"root",t[r]),ot(e,r,n),e};function vR(e,t,r="validate"){if(Sr(e)||Array.isArray(e)&&e.every(Sr)||Rr(e)&&!e)return{type:r,message:Sr(e)?e:"",ref:t}}var Ui=e=>Ft(e)&&!xf(e)?e:{value:e,message:""},gR=async(e,t,r,n,o,i)=>{const{ref:s,refs:l,required:c,maxLength:d,minLength:f,min:p,max:h,pattern:b,validate:w,name:y,valueAsNumber:C,mount:x}=e._f,P=Ce(r,y);if(!x||t.has(y))return{};const S=l?l[0]:s,D=W=>{o&&S.reportValidity&&(S.setCustomValidity(Rr(W)?"":W||""),S.reportValidity())},_={},T=$g(s),A=mc(s),M=T||A,U=(C||Tg(s))&&St(s.value)&&St(P)||yf(s)&&s.value===""||P===""||Array.isArray(P)&&!P.length,J=_g.bind(null,y,n,_),N=(W,F,L,G=Kn.maxLength,k=Kn.minLength)=>{const q=W?F:L;_[y]={type:W?G:k,message:q,ref:s,...J(W?G:k,q)}};if(i?!Array.isArray(P)||!P.length:c&&(!M&&(U||vr(P))||Rr(P)&&!P||A&&!__(l).isValid||T&&!$_(l).isValid)){const{value:W,message:F}=Sr(c)?{value:!!c,message:c}:Ui(c);if(W&&(_[y]={type:Kn.required,message:F,ref:S,...J(Kn.required,F)},!n))return D(F),_}if(!U&&(!vr(p)||!vr(h))){let W,F;const L=Ui(h),G=Ui(p);if(!vr(P)&&!isNaN(P)){const k=s.valueAsNumber||P&&+P;vr(L.value)||(W=k>L.value),vr(G.value)||(F=k<G.value)}else{const k=s.valueAsDate||new Date(P),q=K=>new Date(new Date().toDateString()+" "+K),B=s.type=="time",re=s.type=="week";Sr(L.value)&&P&&(W=B?q(P)>q(L.value):re?P>L.value:k>new Date(L.value)),Sr(G.value)&&P&&(F=B?q(P)<q(G.value):re?P<G.value:k<new Date(G.value))}if((W||F)&&(N(!!W,L.message,G.message,Kn.max,Kn.min),!n))return D(_[y].message),_}if((d||f)&&!U&&(Sr(P)||i&&Array.isArray(P))){const W=Ui(d),F=Ui(f),L=!vr(W.value)&&P.length>+W.value,G=!vr(F.value)&&P.length<+F.value;if((L||G)&&(N(L,W.message,F.message),!n))return D(_[y].message),_}if(b&&!U&&Sr(P)){const{value:W,message:F}=Ui(b);if(xf(W)&&!P.match(W)&&(_[y]={type:Kn.pattern,message:F,ref:s,...J(Kn.pattern,F)},!n))return D(F),_}if(w){if(tn(w)){const W=await w(P,r),F=vR(W,S);if(F&&(_[y]={...F,...J(Kn.validate,F.message)},!n))return D(F.message),_}else if(Ft(w)){let W={};for(const F in w){if(!lr(W)&&!n)break;const L=vR(await w[F](P,r),S,F);L&&(W={...L,...J(F,L.message)},D(L.message),n&&(_[y]=W))}if(!lr(W)&&(_[y]={ref:S,...W},!n))return _}}return D(!0),_};const AG={mode:Jr.onSubmit,reValidateMode:Jr.onChange,shouldFocusError:!0};function DG(e={}){let t={...AG,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Ft(t.defaultValues)||Ft(t.values)?Vt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Vt(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...f};const h={array:sR(),state:sR()},b=t.criteriaMode===Jr.all,w=H=>ne=>{clearTimeout(d),d=setTimeout(H,ne)},y=async H=>{if(!t.disabled&&(f.isValid||p.isValid||H)){const ne=t.resolver?lr((await A()).errors):await U(n,!0);ne!==r.isValid&&h.state.next({isValid:ne})}},C=(H,ne)=>{!t.disabled&&(f.isValidating||f.validatingFields||p.isValidating||p.validatingFields)&&((H||Array.from(l.mount)).forEach(de=>{de&&(ne?ot(r.validatingFields,de,ne):kt(r.validatingFields,de))}),h.state.next({validatingFields:r.validatingFields,isValidating:!lr(r.validatingFields)}))},x=(H,ne=[],de,Ee,xe=!0,be=!0)=>{if(Ee&&de&&!t.disabled){if(s.action=!0,be&&Array.isArray(Ce(n,H))){const Ae=de(Ce(n,H),Ee.argA,Ee.argB);xe&&ot(n,H,Ae)}if(be&&Array.isArray(Ce(r.errors,H))){const Ae=de(Ce(r.errors,H),Ee.argA,Ee.argB);xe&&ot(r.errors,H,Ae),TG(r.errors,H)}if((f.touchedFields||p.touchedFields)&&be&&Array.isArray(Ce(r.touchedFields,H))){const Ae=de(Ce(r.touchedFields,H),Ee.argA,Ee.argB);xe&&ot(r.touchedFields,H,Ae)}(f.dirtyFields||p.dirtyFields)&&(r.dirtyFields=Qi(o,i)),h.state.next({name:H,isDirty:N(H,ne),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ot(i,H,ne)},P=(H,ne)=>{ot(r.errors,H,ne),h.state.next({errors:r.errors})},S=H=>{r.errors=H,h.state.next({errors:r.errors,isValid:!1})},D=(H,ne,de,Ee)=>{const xe=Ce(n,H);if(xe){const be=Ce(i,H,St(de)?Ce(o,H):de);St(be)||Ee&&Ee.defaultChecked||ne?ot(i,H,ne?be:dR(xe._f)):L(H,be),s.mount&&!s.action&&y()}},_=(H,ne,de,Ee,xe)=>{let be=!1,Ae=!1;const Ke={name:H};if(!t.disabled){if(!de||Ee){(f.isDirty||p.isDirty)&&(Ae=r.isDirty,r.isDirty=Ke.isDirty=N(),be=Ae!==Ke.isDirty);const ze=en(Ce(o,H),ne);Ae=!!Ce(r.dirtyFields,H),ze?kt(r.dirtyFields,H):ot(r.dirtyFields,H,!0),Ke.dirtyFields=r.dirtyFields,be=be||(f.dirtyFields||p.dirtyFields)&&Ae!==!ze}if(de){const ze=Ce(r.touchedFields,H);ze||(ot(r.touchedFields,H,de),Ke.touchedFields=r.touchedFields,be=be||(f.touchedFields||p.touchedFields)&&ze!==de)}be&&xe&&h.state.next(Ke)}return be?Ke:{}},T=(H,ne,de,Ee)=>{const xe=Ce(r.errors,H),be=(f.isValid||p.isValid)&&Rr(ne)&&r.isValid!==ne;if(t.delayError&&de?(c=w(()=>P(H,de)),c(t.delayError)):(clearTimeout(d),c=null,de?ot(r.errors,H,de):kt(r.errors,H)),(de?!en(xe,de):xe)||!lr(Ee)||be){const Ae={...Ee,...be&&Rr(ne)?{isValid:ne}:{},errors:r.errors,name:H};r={...r,...Ae},h.state.next(Ae)}},A=async H=>{C(H,!0);const ne=await t.resolver(i,t.context,EG(H||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return C(H),ne},M=async H=>{const{errors:ne}=await A(H);if(H)for(const de of H){const Ee=Ce(ne,de);Ee?ot(r.errors,de,Ee):kt(r.errors,de)}else r.errors=ne;return ne},U=async(H,ne,de={valid:!0})=>{for(const Ee in H){const xe=H[Ee];if(xe){const{_f:be,...Ae}=xe;if(be){const Ke=l.array.has(be.name),ze=xe._f&&CG(xe._f);ze&&f.validatingFields&&C([be.name],!0);const Ht=await gR(xe,l.disabled,i,b,t.shouldUseNativeValidation&&!ne,Ke);if(ze&&f.validatingFields&&C([be.name]),Ht[be.name]&&(de.valid=!1,ne))break;!ne&&(Ce(Ht,be.name)?Ke?$G(r.errors,Ht,be.name):ot(r.errors,be.name,Ht[be.name]):kt(r.errors,be.name))}!lr(Ae)&&await U(Ae,ne,de)}}return de.valid},J=()=>{for(const H of l.unMount){const ne=Ce(n,H);ne&&(ne._f.refs?ne._f.refs.every(de=>!bh(de)):!bh(ne._f.ref))&&te(H)}l.unMount=new Set},N=(H,ne)=>!t.disabled&&(H&&ne&&ot(i,H,ne),!en(K(),o)),W=(H,ne,de)=>av(H,l,{...s.mount?i:St(ne)?o:Sr(H)?{[H]:ne}:ne},de,ne),F=H=>Cg(Ce(s.mount?i:o,H,t.shouldUnregister?Ce(o,H,[]):[])),L=(H,ne,de={})=>{const Ee=Ce(n,H);let xe=ne;if(Ee){const be=Ee._f;be&&(!be.disabled&&ot(i,H,T_(ne,be)),xe=yf(be.ref)&&vr(ne)?"":ne,P_(be.ref)?[...be.ref.options].forEach(Ae=>Ae.selected=xe.includes(Ae.value)):be.refs?mc(be.ref)?be.refs.forEach(Ae=>{(!Ae.defaultChecked||!Ae.disabled)&&(Array.isArray(xe)?Ae.checked=!!xe.find(Ke=>Ke===Ae.value):Ae.checked=xe===Ae.value||!!xe)}):be.refs.forEach(Ae=>Ae.checked=Ae.value===xe):Tg(be.ref)?be.ref.value="":(be.ref.value=xe,be.ref.type||h.state.next({name:H,values:Vt(i)})))}(de.shouldDirty||de.shouldTouch)&&_(H,xe,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&re(H)},G=(H,ne,de)=>{for(const Ee in ne){if(!ne.hasOwnProperty(Ee))return;const xe=ne[Ee],be=H+"."+Ee,Ae=Ce(n,be);(l.array.has(H)||Ft(xe)||Ae&&!Ae._f)&&!ri(xe)?G(be,xe,de):L(be,xe,de)}},k=(H,ne,de={})=>{const Ee=Ce(n,H),xe=l.array.has(H),be=Vt(ne);ot(i,H,be),xe?(h.array.next({name:H,values:Vt(i)}),(f.isDirty||f.dirtyFields||p.isDirty||p.dirtyFields)&&de.shouldDirty&&h.state.next({name:H,dirtyFields:Qi(o,i),isDirty:N(H,be)})):Ee&&!Ee._f&&!vr(be)?G(H,be,de):L(H,be,de),mR(H,l)&&h.state.next({...r,name:H}),h.state.next({name:s.mount?H:void 0,values:Vt(i)})},q=async H=>{s.mount=!0;const ne=H.target;let de=ne.name,Ee=!0;const xe=Ce(n,de),be=ze=>{Ee=Number.isNaN(ze)||ri(ze)&&isNaN(ze.getTime())||en(ze,Ce(i,de,ze))},Ae=fR(t.mode),Ke=fR(t.reValidateMode);if(xe){let ze,Ht;const ln=ne.type?dR(xe._f):w_(H),cr=H.type===bf.BLUR||H.type===bf.FOCUS_OUT,ko=!RG(xe._f)&&!t.resolver&&!Ce(r.errors,de)&&!xe._f.deps||_G(cr,Ce(r.touchedFields,de),r.isSubmitted,Ke,Ae),Rn=mR(de,l,cr);ot(i,de,ln),cr?(!ne||!ne.readOnly)&&(xe._f.onBlur&&xe._f.onBlur(H),c&&c(0)):xe._f.onChange&&xe._f.onChange(H);const Pn=_(de,ln,cr),Lo=!lr(Pn)||Rn;if(!cr&&h.state.next({name:de,type:H.type,values:Vt(i)}),ko)return(f.isValid||p.isValid)&&(t.mode==="onBlur"?cr&&y():cr||y()),Lo&&h.state.next({name:de,...Rn?{}:Pn});if(!cr&&Rn&&h.state.next({...r}),t.resolver){const{errors:no}=await A([de]);if(be(ln),Ee){const Fo=hR(r.errors,n,de),Ri=hR(no,n,Fo.name||de);ze=Ri.error,de=Ri.name,Ht=lr(no)}}else C([de],!0),ze=(await gR(xe,l.disabled,i,b,t.shouldUseNativeValidation))[de],C([de]),be(ln),Ee&&(ze?Ht=!1:(f.isValid||p.isValid)&&(Ht=await U(n,!0)));Ee&&(xe._f.deps&&(!Array.isArray(xe._f.deps)||xe._f.deps.length>0)&&re(xe._f.deps),T(de,Ht,ze,Pn))}},B=(H,ne)=>{if(Ce(r.errors,ne)&&H.focus)return H.focus(),1},re=async(H,ne={})=>{let de,Ee;const xe=qu(H);if(t.resolver){const be=await M(St(H)?H:xe);de=lr(be),Ee=H?!xe.some(Ae=>Ce(be,Ae)):de}else H?(Ee=(await Promise.all(xe.map(async be=>{const Ae=Ce(n,be);return await U(Ae&&Ae._f?{[be]:Ae}:Ae)}))).every(Boolean),!(!Ee&&!r.isValid)&&y()):Ee=de=await U(n);return h.state.next({...!Sr(H)||(f.isValid||p.isValid)&&de!==r.isValid?{}:{name:H},...t.resolver||!H?{isValid:de}:{},errors:r.errors}),ne.shouldFocus&&!Ee&&ju(n,B,H?xe:l.mount),Ee},K=(H,ne)=>{let de={...s.mount?i:o};return ne&&(de=R_(ne.dirtyFields?r.dirtyFields:r.touchedFields,de)),St(H)?de:Sr(H)?Ce(de,H):H.map(Ee=>Ce(de,Ee))},ie=(H,ne)=>({invalid:!!Ce((ne||r).errors,H),isDirty:!!Ce((ne||r).dirtyFields,H),error:Ce((ne||r).errors,H),isValidating:!!Ce(r.validatingFields,H),isTouched:!!Ce((ne||r).touchedFields,H)}),Y=H=>{H&&qu(H).forEach(ne=>kt(r.errors,ne)),h.state.next({errors:H?r.errors:{}})},X=(H,ne,de)=>{const Ee=(Ce(n,H,{_f:{}})._f||{}).ref,xe=Ce(r.errors,H)||{},{ref:be,message:Ae,type:Ke,...ze}=xe;ot(r.errors,H,{...ze,...ne,ref:Ee}),h.state.next({name:H,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&Ee&&Ee.focus&&Ee.focus()},ce=(H,ne)=>tn(H)?h.state.subscribe({next:de=>"values"in de&&H(W(void 0,ne),de)}):W(H,ne,!0),ue=H=>h.state.subscribe({next:ne=>{SG(H.name,ne.name,H.exact)&&PG(ne,H.formState||f,mt,H.reRenderRoot)&&H.callback({values:{...i},...r,...ne,defaultValues:o})}}).unsubscribe,pe=H=>(s.mount=!0,p={...p,...H.formState},ue({...H,formState:p})),te=(H,ne={})=>{for(const de of H?qu(H):l.mount)l.mount.delete(de),l.array.delete(de),ne.keepValue||(kt(n,de),kt(i,de)),!ne.keepError&&kt(r.errors,de),!ne.keepDirty&&kt(r.dirtyFields,de),!ne.keepTouched&&kt(r.touchedFields,de),!ne.keepIsValidating&&kt(r.validatingFields,de),!t.shouldUnregister&&!ne.keepDefaultValue&&kt(o,de);h.state.next({values:Vt(i)}),h.state.next({...r,...ne.keepDirty?{isDirty:N()}:{}}),!ne.keepIsValid&&y()},ve=({disabled:H,name:ne})=>{(Rr(H)&&s.mount||H||l.disabled.has(ne))&&(H?l.disabled.add(ne):l.disabled.delete(ne))},j=(H,ne={})=>{let de=Ce(n,H);const Ee=Rr(ne.disabled)||Rr(t.disabled);return ot(n,H,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:H}},name:H,mount:!0,...ne}}),l.mount.add(H),de?ve({disabled:Rr(ne.disabled)?ne.disabled:t.disabled,name:H}):D(H,!0,ne.value),{...Ee?{disabled:ne.disabled||t.disabled}:{},...t.progressive?{required:!!ne.required,min:$u(ne.min),max:$u(ne.max),minLength:$u(ne.minLength),maxLength:$u(ne.maxLength),pattern:$u(ne.pattern)}:{},name:H,onChange:q,onBlur:q,ref:xe=>{if(xe){j(H,ne),de=Ce(n,H);const be=St(xe.value)&&xe.querySelectorAll&&xe.querySelectorAll("input,select,textarea")[0]||xe,Ae=bG(be),Ke=de._f.refs||[];if(Ae?Ke.find(ze=>ze===be):be===de._f.ref)return;ot(n,H,{_f:{...de._f,...Ae?{refs:[...Ke.filter(bh),be,...Array.isArray(Ce(o,H))?[{}]:[]],ref:{type:be.type,name:H}}:{ref:be}}}),D(H,!1,void 0,be)}else de=Ce(n,H,{}),de._f&&(de._f.mount=!1),(t.shouldUnregister||ne.shouldUnregister)&&!(E_(l.array,H)&&s.action)&&l.unMount.add(H)}}},ae=()=>t.shouldFocusError&&ju(n,B,l.mount),oe=H=>{Rr(H)&&(h.state.next({disabled:H}),ju(n,(ne,de)=>{const Ee=Ce(n,de);Ee&&(ne.disabled=Ee._f.disabled||H,Array.isArray(Ee._f.refs)&&Ee._f.refs.forEach(xe=>{xe.disabled=Ee._f.disabled||H}))},0,!1))},Z=(H,ne)=>async de=>{let Ee;de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Vt(i);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:be,values:Ae}=await A();r.errors=be,xe=Vt(Ae)}else await U(n);if(l.disabled.size)for(const be of l.disabled)kt(xe,be);if(kt(r.errors,"root"),lr(r.errors)){h.state.next({errors:{}});try{await H(xe,de)}catch(be){Ee=be}}else ne&&await ne({...r.errors},de),ae(),setTimeout(ae);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:lr(r.errors)&&!Ee,submitCount:r.submitCount+1,errors:r.errors}),Ee)throw Ee},we=(H,ne={})=>{Ce(n,H)&&(St(ne.defaultValue)?k(H,Vt(Ce(o,H))):(k(H,ne.defaultValue),ot(o,H,Vt(ne.defaultValue))),ne.keepTouched||kt(r.touchedFields,H),ne.keepDirty||(kt(r.dirtyFields,H),r.isDirty=ne.defaultValue?N(H,Vt(Ce(o,H))):N()),ne.keepError||(kt(r.errors,H),f.isValid&&y()),h.state.next({...r}))},De=(H,ne={})=>{const de=H?Vt(H):o,Ee=Vt(de),xe=lr(H),be=xe?o:Ee;if(ne.keepDefaultValues||(o=de),!ne.keepValues){if(ne.keepDirtyValues){const Ae=new Set([...l.mount,...Object.keys(Qi(o,i))]);for(const Ke of Array.from(Ae))Ce(r.dirtyFields,Ke)?ot(be,Ke,Ce(i,Ke)):k(Ke,Ce(be,Ke))}else{if(Eg&&St(H))for(const Ae of l.mount){const Ke=Ce(n,Ae);if(Ke&&Ke._f){const ze=Array.isArray(Ke._f.refs)?Ke._f.refs[0]:Ke._f.ref;if(yf(ze)){const Ht=ze.closest("form");if(Ht){Ht.reset();break}}}}if(ne.keepFieldsRef)for(const Ae of l.mount)k(Ae,Ce(be,Ae));else n={}}i=t.shouldUnregister?ne.keepDefaultValues?Vt(o):{}:Vt(be),h.array.next({values:{...be}}),h.state.next({values:{...be}})}l={mount:ne.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!ne.keepIsValid||!!ne.keepDirtyValues||!t.shouldUnregister&&!lr(be),s.watch=!!t.shouldUnregister,s.action=!1,ne.keepErrors||(r.errors={}),h.state.next({submitCount:ne.keepSubmitCount?r.submitCount:0,isDirty:xe?!1:ne.keepDirty?r.isDirty:!!(ne.keepDefaultValues&&!en(H,o)),isSubmitted:ne.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:xe?{}:ne.keepDirtyValues?ne.keepDefaultValues&&i?Qi(o,i):r.dirtyFields:ne.keepDefaultValues&&H?Qi(o,H):ne.keepDirty?r.dirtyFields:{},touchedFields:ne.keepTouched?r.touchedFields:{},errors:ne.keepErrors?r.errors:{},isSubmitSuccessful:ne.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Ue=(H,ne)=>De(tn(H)?H(i):H,ne),wt=(H,ne={})=>{const de=Ce(n,H),Ee=de&&de._f;if(Ee){const xe=Ee.refs?Ee.refs[0]:Ee.ref;xe.focus&&(xe.focus(),ne.shouldSelect&&tn(xe.select)&&xe.select())}},mt=H=>{r={...r,...H}},Ci={control:{register:j,unregister:te,getFieldState:ie,handleSubmit:Z,setError:X,_subscribe:ue,_runSchema:A,_focusError:ae,_getWatch:W,_getDirty:N,_setValid:y,_setFieldArray:x,_setDisabledField:ve,_setErrors:S,_getFieldArray:F,_reset:De,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(H=>{Ue(H,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:oe,_subjects:h,_proxyFormState:f,get _fields(){return n},get _formValues(){return i},get _state(){return s},set _state(H){s=H},get _defaultValues(){return o},get _names(){return l},set _names(H){l=H},get _formState(){return r},get _options(){return t},set _options(H){t={...t,...H}}},subscribe:pe,trigger:re,register:j,handleSubmit:Z,watch:ce,setValue:k,getValues:K,reset:Ue,resetField:we,clearErrors:Y,unregister:te,setError:X,setFocus:wt,getFieldState:ie};return{...Ci,formControl:Ci}}function MG(e={}){const t=R.useRef(void 0),r=R.useRef(void 0),[n,o]=R.useState({isDirty:!1,isValidating:!1,isLoading:tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:tn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!tn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=DG(e);t.current={...l,formState:n}}const i=t.current.control;return i._options=e,Sg(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),i._formState.isReady=!0,s},[i]),R.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),R.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),R.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),R.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==n.isDirty&&i._subjects.state.next({isDirty:s})}},[i,n.isDirty]),R.useEffect(()=>{var s;e.values&&!en(e.values,r.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),!((s=i._options.resetOptions)===null||s===void 0)&&s.keepIsValid||i._setValid(),r.current=e.values,o(l=>({...l}))):i._resetDefaultValues()},[i,e.values]),R.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=C_(n,i),t.current}const[OG,NG]=cc(),[IG,kG]=cc(),vc=()=>{const e=IG(),t=OG(),{getFieldState:r,formState:n}=hc();if(!e)throw new Error("useFormField should be used within <FormField>");const o=r(e.name,n),{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},LG=({onSubmit:e,id:t,form:r,children:n,className:o})=>g.jsx(pG,{...r,children:g.jsx("form",{id:t,onSubmit:r.handleSubmit(e),className:o,"data-slot":"form",children:n})}),FG=({name:e,label:t,description:r,className:n,render:o,itemProps:i,labelProps:s,controlProps:l,descriptionProps:c,messageProps:d})=>{const{control:f}=hc();return g.jsx(kG,{value:{name:e},children:g.jsx(gG,{name:e,control:f,render:({field:p,fieldState:h})=>g.jsxs(A_,{className:n,...i,children:[t&&g.jsx(D_,{...s,children:t}),g.jsx(M_,{...l,children:lt.isFunction(o)?o(p):v.createElement(o,p)}),r&&g.jsx(O_,{...c,children:r}),g.jsx(N_,{...d,children:h.error?.message})]})})})},A_=({className:e,...t})=>{const r=v.useId();return g.jsx(NG,{value:{id:r},children:g.jsx("div",{className:le("flex flex-col gap-2",e),"data-slot":"form-item",...t})})},D_=({className:e,...t})=>{const{error:r,formItemId:n}=vc();return g.jsx(pc,{className:le(r&&"text-error",e),htmlFor:n,...t})},M_=({className:e,...t})=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:i}=vc();return g.jsx(sc,{id:n,"aria-describedby":r?`${o} ${i}`:`${o}`,"aria-invalid":!!r,className:le("group",e),...t})},O_=({className:e,...t})=>{const{formDescriptionId:r}=vc();return g.jsx("p",{id:r,className:le("text-sm text-muted-foreground",e),"data-slot":"form-description",...t})},N_=({className:e,children:t,...r})=>{const{error:n,formMessageId:o}=vc(),i=n?String(n?.message):t;return i?g.jsx("p",{id:o,className:le("text-sm font-medium text-error",e),"data-slot":"form-message",...r,children:i}):null},bR=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Ce(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},uv=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?bR(n.ref,r,e):n&&n.refs&&n.refs.forEach(o=>bR(o,r,e))}},yR=(e,t)=>{t.shouldUseNativeValidation&&uv(e,t);const r={};for(const n in e){const o=Ce(t.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(qG(t.names||Object.keys(e),n)){const s=Object.assign({},Ce(r,n));ot(s,"root",i),ot(r,n,s)}else ot(r,n,i)}return r},qG=(e,t)=>{const r=xR(t);return e.some(n=>xR(n).match(`^${r}\\.\\d+`))};function xR(e){return e.replace(/\]|\[/g,"")}function I_(e,t,r){function n(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);const d=s.prototype,f=Object.keys(d);for(let p=0;p<f.length;p++){const h=f[p];h in l||(l[h]=d[h].bind(l))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(l){var c;const d=r?.Parent?new i:this;n(d,l),(c=d._zod).deferred??(c.deferred=[]);for(const f of d._zod.deferred)f();return d}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class jG extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const BG={};function k_(e){return BG}function VG(e,t){return typeof t=="bigint"?t.toString():t}const L_="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function jd(e){return typeof e=="string"?e:e?.message}function F_(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=jd(e.inst?._zod.def?.error?.(e))??jd(t?.error?.(e))??jd(r.customError?.(e))??jd(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}const q_=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,VG,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},KG=I_("$ZodError",q_),j_=I_("$ZodError",q_,{Parent:Error}),WG=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new jG;if(s.issues.length){const l=new(o?.Err??e)(s.issues.map(c=>F_(c,i,k_())));throw L_(l,o?.callee),l}return s.value},HG=WG(j_),UG=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const l=new(o?.Err??e)(s.issues.map(c=>F_(c,i,k_())));throw L_(l,o?.callee),l}return s.value},zG=UG(j_);function wR(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}function GG(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,s=n.path.join(".");if(!r[s])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[s]={message:l.message,type:l.code}}else r[s]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(f){return f.errors.forEach(function(p){return e.push(p)})}),t){var c=r[s].types,d=c&&c[n.code];r[s]=_g(s,t,r,o,d?[].concat(d,n.message):n.message)}e.shift()}return r}function YG(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,s=n.path.join(".");if(!r[s])if(n.code==="invalid_union"&&n.errors.length>0){var l=n.errors[0][0];r[s]={message:l.message,type:l.code}}else r[s]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(f){return f.forEach(function(p){return e.push(p)})}),t){var c=r[s].types,d=c&&c[n.code];r[s]=_g(s,t,r,o,d?[].concat(d,n.message):n.message)}e.shift()}return r}function XG(e,t,r){if(r===void 0&&(r={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(wR(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(s){return i.shouldUseNativeValidation&&uv({},i),{errors:{},values:r.raw?Object.assign({},n):s}})},function(s){if((function(l){return Array.isArray(l?.issues)})(s))return{values:{},errors:yR(GG(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(wR(function(){return Promise.resolve((r.mode==="sync"?HG:zG)(e,n,t)).then(function(s){return i.shouldUseNativeValidation&&uv({},i),{errors:{},values:r.raw?Object.assign({},n):s}})},function(s){if((function(l){return l instanceof KG})(s))return{values:{},errors:yR(YG(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function ZG(e,t){return MG({...t,resolver:XG(e)})}const B_=({value:e,onChange:t,defaultValue:r="",...n})=>{const o=ac("Input",n),[i="",s]=ut({prop:e,onChange:t,defaultProp:r}),l=c=>{s(c.target.value)};return g.jsx("input",{"data-slot":"input",autoComplete:"off",...o,value:i,onChange:l,className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","file:border-0 file:bg-transparent file:text-sm file:font-medium",o.className)})},QG=eo(["inline-flex select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium text-muted-foreground"],{variants:{variant:{default:"border-transparent bg-secondary text-secondary-foreground",secondary:"border-transparent bg-primary text-primary-foreground",error:"border-transparent bg-error text-error-foreground",outline:"text-foreground"},size:{default:"px-1.5 py-0.5 text-xs",sm:"px-2 py-0.5 text-sm",lg:"px-4 py-1 text-lg"}},defaultVariants:{variant:"default",size:"default"}}),JG=({variant:e,size:t,className:r,...n})=>g.jsx("kbd",{className:le(QG({variant:e,size:t}),r),...n,"data-slot":"kbd"}),eY=({className:e,...t})=>g.jsx("kbd",{"data-slot":"kbd-group",className:le("inline-flex items-center gap-1",e),...t}),tY=eo("animate-spin",{variants:{variant:{primary:"text-primary",secondary:"text-secondary",ghost:"text-muted-foreground",error:"text-error",success:"text-success"},size:{sm:"w-4 h-4",default:"w-7 h-7",lg:"w-10 h-10"}},defaultVariants:{variant:"primary",size:"default"}}),rY=({center:e,containerClassName:t,variant:r,size:n,...o})=>g.jsx("div",{className:le(t,e&&"fixed inset-0 grid place-items-center"),"data-slot":"loader",children:g.jsx(sf,{"data-slot":"loader-icon",...o,className:le(tY({variant:r,size:n}),o.className)})});function nY(e){const[t=[],r]=R.useState(e);return[t,{insertAt:(h,b)=>{r((w=[])=>{const y=[...w];return y.splice(h,0,b),y})},removeAt:h=>{r((b=[])=>{const w=[...b];return w.splice(h,1),w})},updateAt:(h,b)=>{r((w=[])=>{const y=[...w];return y[h]=b,y})},clear:()=>r([]),reset:()=>r(e),push:h=>r((b=[])=>[...b,h]),set:h=>r(h),pop:()=>{r((h=[])=>{const b=[...h];return b.pop(),b})},update:(h,b)=>{r((w=[])=>{const y=[...w],C=lt.findIndex(y,h);return C===-1||(y[C]=lt.isFunction(b)?b(y[C]):b),y})}}]}function oY({fn:e,dependencies:t=[],onError:r,onSuccess:n,onFinish:o}){const[i,s]=R.useState(!0),[l,c]=R.useState(null),[d,f]=R.useState(null),p=R.useCallback(()=>{s(!0),c(null),f(null),e().then(h=>{n?.(h),f(h)}).catch(h=>{r?.(h),c(h)}).finally(()=>{o?.(),s(!1)})},t);return R.useEffect(()=>{p()},[p]),{loading:i,error:l,data:d,refetch:p}}const iY=(e,t=!0)=>{const r=R.useRef(null),n=o=>{r.current&&!r.current.contains(o.target)&&e()};return R.useEffect(()=>{if(t)return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[t]),r};function aY(){const[e,t]=R.useState(null),r=R.useCallback(async n=>{if(!navigator?.clipboard)return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch(o){return console.error(o),t(null),!1}},[]);return[e,r]}function sY(e,t){const r=R.useRef(null);return R.useCallback((...n)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e(...n)},t)},[e,t])}function lY(e,t){const[r,n]=R.useState(e);return R.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>clearTimeout(o)},[e,t]),r}function uY(e=!1,t){const{onOpen:r,onClose:n}=t||{},[o,i]=R.useState(e),s=R.useCallback(()=>{i(d=>d||(r?.(),!0))},[r]),l=R.useCallback(()=>{i(d=>d&&(n?.(),!1))},[n]),c=R.useCallback(()=>{o?l():s()},[l,s,o]);return[o,{open:s,close:l,toggle:c}]}function cY(e){R.useEffect(()=>{typeof e=="string"&&e.trim().length>0&&(document.title=e.trim())},[e])}function V_(e,t,r){const n=R.useRef(null);return R.useEffect(()=>{const o=n.current??document;return o.addEventListener(e,t,r),()=>{o.removeEventListener(e,t,r)}},[e,t,r]),n}const dY=e=>{const t=e.toLowerCase().split("+");return{mainKey:t.pop(),isShift:t.includes("shift"),isCtrl:t.includes("ctrl"),isAlt:t.includes("alt"),isMeta:t.includes("meta")}},fY=(e,t)=>{const{mainKey:r,isShift:n,isCtrl:o,isAlt:i,isMeta:s}=dY(t);return e.key.toLowerCase()===r&&e.shiftKey===n&&e.ctrlKey===o&&e.altKey===i&&e.metaKey===s},pY=e=>e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable,mY=(e,t)=>t&&pY(e.target),hY=(e,t,r,n,o)=>i=>{if(!o||mY(i,n))return;(Array.isArray(e)?e:[e]).some(c=>fY(i,c))&&(r&&i.preventDefault(),t(i))};function K_(e,t,r={}){const{eventName:n="keydown",preventDefault:o=!0,ignoreInputFields:i=!0,watch:s=!0}=r,l=R.useCallback(hY(e,t,o,i,s),[e,t,o,i,s]);return V_(n,l)}function vY(e){const[t,r]=R.useState(!1),n=R.useRef(null);return R.useEffect(()=>{const o=l=>{r(!0),e?.onHoverStart?.(l)},i=l=>{r(!1),e?.onHoverEnd?.(l)},s=n.current;if(s)return s.addEventListener("mouseover",o),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",o),s.removeEventListener("mouseout",i)}},[e]),{ref:n,isHovering:t}}function gY({onVisible:e,root:t=null,rootMargin:r="0px",threshold:n=0}={}){const[o,i]=R.useState(!1),s=R.useRef(null),l=R.useCallback(([c])=>{const d=c.isIntersecting;i(d)},[e]);return R.useEffect(()=>{if(s.current==null)return;const c=new IntersectionObserver(l,{root:t,rootMargin:r,threshold:n});return c.observe(s.current),()=>{s.current!=null&&c.unobserve(s.current)}},[s,t,r,n,l]),R.useEffect(()=>{o&&e?.()},[o]),{ref:s,isVisible:o}}function bY(e,t){const r=()=>{try{const l=localStorage.getItem(e);return l?JSON.parse(l):t!==void 0?t:void 0}catch(l){return console.error(`Error parsing localStorage key "${e}":`,l),t!==void 0?t:void 0}},[n,o]=R.useState(r);return R.useEffect(()=>{try{n!==void 0?localStorage.setItem(e,JSON.stringify(n)):localStorage.removeItem(e)}catch(l){console.error(`Error setting localStorage key "${e}":`,l)}},[e,n]),[n,l=>{o(l)},()=>{try{localStorage.removeItem(e),o(t!==void 0?t:void 0)}catch(l){console.error(`Error removing localStorage key "${e}":`,l)}}]}const yY=e=>{const[t,r]=R.useState(!1);return R.useEffect(()=>{const n=window.matchMedia(e),o=()=>r(n.matches);return o(),n.addEventListener("change",o),()=>{n.removeEventListener("change",o)}},[e]),t};function xY(e){lt.isFunction(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`);const t=R.useRef(e);t.current=R.useMemo(()=>e,[e]);const r=R.useRef(null);return r.current||(r.current=function(...n){return t.current.apply(this,n)}),r.current}const wY=e=>{const[t,r]=R.useState(!1),[n,o]=R.useState(null),[i,s]=R.useState(null);return{mutate:R.useCallback(async(...c)=>{r(!0),o(null),s(null);try{const d=await e.fn(...c);return e.onSuccess?.(d),s(d),d}catch(d){const f=d;throw e.onError?.(f),o(f),f}finally{e.onFinish?.(),r(!1)}},[e]),loading:t,error:n,data:i}};function EY(e){const[t,r]=R.useState(e),n=R.useCallback(()=>r(e),[e]),o=R.useCallback(i=>{r(s=>{if(lt.isFunction(i)){const l=i(s);return lt.isObject(l)?{...s,...l}:s}else if(lt.isObject(i))return{...s,...i};return s})},[]);return[t,o,n]}function Ag({totalItems:e,pageSize:t,initialCurrentPage:r=1,onChange:n}){const[o,i]=R.useState(r),s=Math.ceil(e/t),l=o===s,c=o===1,d=(o-1)*t+1,f=Math.min(o*t,e),p=()=>{if(l)return;const y=Math.min(o+1,s);w(y)},h=()=>{if(c)return;const y=Math.max(o-1,1);w(y)},b=y=>{if(y===1&&c||y===s&&l)return;const C=Math.max(1,y),x=Math.min(C,s);w(x)},w=y=>{i(y),n?.({currentPage:y,pageSize:t})};return{next:p,prev:h,goTo:b,currentPage:o,maxPage:s,isFirstPage:c,isLastPage:l,range:{start:d,end:f}}}function CY(e){const t=()=>document.getElementById(e),r=()=>{const o=document.createElement("div");return o.id=e,o},n=R.useMemo(()=>{const o=t();return o||r()},[e]);return R.useEffect(()=>(document.getElementById(e)||document.body.appendChild(n),()=>{const o=document.getElementById(e);o&&document.body.removeChild(o)}),[e,n]),{render:o=>rn.createPortal(o,n)}}function RY({shouldPrevent:e,message:t="Es posible que no se guarden los cambios hayas hecho."}){const r=n=>{if(e)return n.preventDefault(),n.returnValue=t,t};R.useEffect(()=>(window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)),[t,e])}const Co="...",W_=({siblingCount:e=1,...t})=>{const r=Ag(t),{currentPage:n,maxPage:o}=r,{totalItems:i,pageSize:s}=t,l=()=>{const p=2+3*e,h=1;if(p>=o)return lt.range(h,o+1);const b=Math.max(n-e,1),w=Math.min(n+e,o),y=b>2,C=w<o-2;if(y&&C){const x=lt.range(b,w+1);return[h,Co,...x,Co,o]}if(C)return[...lt.range(h,p+1),Co,o];if(y){const x=lt.range(o-p+1,o+1);return[h,Co,...x]}},c=R.useMemo(l,[i,s,n,e]);return{...r,paginationRange:c??[]}};function PY(e){const[t,r]=R.useState(new Set),n=R.useCallback(f=>t.has(f),[t]),o=R.useCallback(f=>{r(p=>new Set([...p,f]))},[]),i=R.useCallback(f=>{r(p=>{const h=new Set(p);return h.delete(f),h})},[]),s=R.useCallback(f=>{r(p=>{const h=new Set(p);return h.has(f)?h.delete(f):h.add(f),h})},[]),l=R.useCallback(f=>{r(new Set(f))},[]),c=R.useCallback(()=>{r(f=>f.size===e.length?new Set:new Set(e))},[e]),d=R.useCallback(()=>r(new Set),[]);return{isAllSelected:t.size===e.length,isSomeSelected:t.size>0&&t.size<e.length,isNoneSelected:t.size===0,isSelected:n,selected:[...t],setSelected:l,select:o,unselect:i,toggle:s,toggleAll:c,clear:d}}function SY(e,t){const[r,n]=R.useState(0),o=t??e.length,i=()=>{n(d=>d>=o-1?d:d+1)},s=()=>{n(d=>d<=0?d:d-1)},l=d=>{n(d)},c=d=>{const f=lt.findIndex(e,d);f!==-1&&l(f)};return{currentStepIndex:r,step:e[r],steps:e,isFirstStep:r===0,isLastStep:r===o-1,goTo:l,next:i,back:s,findAndGo:c}}function H_(e=!1){const[t,r]=R.useState(e);return[t,o=>{r(o===void 0?!t:o)}]}const _Y=/input|select|textarea|button|object/,U_="a, input, select, textarea, button, object, [tabindex]";function TY(e){return process.env.NODE_ENV==="test"?!1:e.style.display==="none"}function $Y(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(TY(r))return!1;r=r.parentNode}return!0}function z_(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function cv(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(z_(e));return(_Y.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&$Y(e)}function G_(e){const t=z_(e);return(Number.isNaN(t)||t>=0)&&cv(e)}function AY(e){return Array.from(e.querySelectorAll(U_)).filter(G_)}function DY(e,t){const r=AY(e);if(!r.length){t.preventDefault();return}const n=r[t.shiftKey?0:r.length-1],o=e.getRootNode();let i=n===o.activeElement||e===o.activeElement;const s=o.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=r.filter(f=>f.getAttribute("type")==="radio"&&f.getAttribute("name")===s.getAttribute("name")).includes(n)),!i)return;t.preventDefault();const c=r[t.shiftKey?r.length-1:0];c&&c.focus()}function MY(e=!0){const t=R.useRef(null),r=o=>{let i=o.querySelector("[data-autofocus]");if(!i){const s=Array.from(o.querySelectorAll(U_));i=s.find(G_)||s.find(cv)||null,!i&&cv(o)&&(i=o)}i&&i.focus({preventScroll:!0})},n=R.useCallback(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&r(o)}),t.current=o):t.current=null)},[e]);return R.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const o=i=>{i.key==="Tab"&&t.current&&DY(t.current,i)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),n}function OY(e){const t=NY(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(kY);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function NY(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=FY(o),l=LY(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IY=Symbol("radix.slottable");function kY(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IY}function LY(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function FY(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jY=qY.reduce((e,t)=>{const r=OY(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ER(e){const t=BY(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(KY);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function BY(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=HY(o),l=WY(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VY=Symbol("radix.slottable");function KY(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VY}function WY(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function HY(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Dg(e){const t=e+"CollectionProvider",[r,n]=wn(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:C,children:x}=y,P=R.useRef(null),S=R.useRef(new Map).current;return g.jsx(o,{scope:C,itemMap:S,collectionRef:P,children:x})};s.displayName=t;const l=e+"CollectionSlot",c=ER(l),d=R.forwardRef((y,C)=>{const{scope:x,children:P}=y,S=i(l,x),D=Ve(C,S.collectionRef);return g.jsx(c,{ref:D,children:P})});d.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=ER(f),b=R.forwardRef((y,C)=>{const{scope:x,children:P,...S}=y,D=R.useRef(null),_=Ve(C,D),T=i(f,x);return R.useEffect(()=>(T.itemMap.set(D,{ref:D,...S}),()=>{T.itemMap.delete(D)})),g.jsx(h,{[p]:"",ref:_,children:P})});b.displayName=f;function w(y){const C=i(e+"CollectionConsumer",y);return R.useCallback(()=>{const P=C.collectionRef.current;if(!P)return[];const S=Array.from(P.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((T,A)=>S.indexOf(T.ref.current)-S.indexOf(A.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:s,Slot:d,ItemSlot:b},w,n]}var UY=v.createContext(void 0);function Mg(e){const t=v.useContext(UY);return e||t||"ltr"}const zY=["top","right","bottom","left"],_o=Math.min,Pr=Math.max,wf=Math.round,Bd=Math.floor,yn=e=>({x:e,y:e}),GY={left:"right",right:"left",bottom:"top",top:"bottom"},YY={start:"end",end:"start"};function dv(e,t,r){return Pr(e,_o(t,r))}function Xn(e,t){return typeof e=="function"?e(t):e}function Zn(e){return e.split("-")[0]}function ya(e){return e.split("-")[1]}function Og(e){return e==="x"?"y":"x"}function Ng(e){return e==="y"?"height":"width"}function To(e){return["top","bottom"].includes(Zn(e))?"y":"x"}function Ig(e){return Og(To(e))}function XY(e,t,r){r===void 0&&(r=!1);const n=ya(e),o=Ig(e),i=Ng(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ef(s)),[s,Ef(s)]}function ZY(e){const t=Ef(e);return[fv(e),t,fv(t)]}function fv(e){return e.replace(/start|end/g,t=>YY[t])}function QY(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function JY(e,t,r,n){const o=ya(e);let i=QY(Zn(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(fv)))),i}function Ef(e){return e.replace(/left|right|bottom|top/g,t=>GY[t])}function eX(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y_(e){return typeof e!="number"?eX(e):{top:e,right:e,bottom:e,left:e}}function Cf(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function CR(e,t,r){let{reference:n,floating:o}=e;const i=To(t),s=Ig(t),l=Ng(s),c=Zn(t),d=i==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[l]/2-o[l]/2;let b;switch(c){case"top":b={x:f,y:n.y-o.height};break;case"bottom":b={x:f,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:p};break;case"left":b={x:n.x-o.width,y:p};break;default:b={x:n.x,y:n.y}}switch(ya(t)){case"start":b[s]-=h*(r&&d?-1:1);break;case"end":b[s]+=h*(r&&d?-1:1);break}return b}const tX=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=CR(d,n,c),h=n,b={},w=0;for(let y=0;y<l.length;y++){const{name:C,fn:x}=l[y],{x:P,y:S,data:D,reset:_}=await x({x:f,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});f=P??f,p=S??p,b={...b,[C]:{...b[C],...D}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(d=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:f,y:p}=CR(d,h,c)),y=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:b}};async function Gu(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=Xn(t,e),w=Y_(b),C=l[h?p==="floating"?"reference":"floating":p],x=Cf(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(C)))==null||r?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),P=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),D=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Cf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:S,strategy:c}):P);return{top:(x.top-_.top+w.top)/D.y,bottom:(_.bottom-x.bottom+w.bottom)/D.y,left:(x.left-_.left+w.left)/D.x,right:(_.right-x.right+w.right)/D.x}}const rX=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=Xn(e,t)||{};if(d==null)return{};const p=Y_(f),h={x:r,y:n},b=Ig(o),w=Ng(b),y=await s.getDimensions(d),C=b==="y",x=C?"top":"left",P=C?"bottom":"right",S=C?"clientHeight":"clientWidth",D=i.reference[w]+i.reference[b]-h[b]-i.floating[w],_=h[b]-i.reference[b],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let A=T?T[S]:0;(!A||!await(s.isElement==null?void 0:s.isElement(T)))&&(A=l.floating[S]||i.floating[w]);const M=D/2-_/2,U=A/2-y[w]/2-1,J=_o(p[x],U),N=_o(p[P],U),W=J,F=A-y[w]-N,L=A/2-y[w]/2+M,G=dv(W,L,F),k=!c.arrow&&ya(o)!=null&&L!==G&&i.reference[w]/2-(L<W?J:N)-y[w]/2<0,q=k?L<W?L-W:L-F:0;return{[b]:h[b]+q,data:{[b]:G,centerOffset:L-G-q,...k&&{alignmentOffset:q}},reset:k}}}),nX=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...C}=Xn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=Zn(o),P=To(l),S=Zn(l)===l,D=await(c.isRTL==null?void 0:c.isRTL(d.floating)),_=h||(S||!y?[Ef(l)]:ZY(l)),T=w!=="none";!h&&T&&_.push(...JY(l,y,w,D));const A=[l,..._],M=await Gu(t,C),U=[];let J=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&U.push(M[x]),p){const L=XY(o,s,D);U.push(M[L[0]],M[L[1]])}if(J=[...J,{placement:o,overflows:U}],!U.every(L=>L<=0)){var N,W;const L=(((N=i.flip)==null?void 0:N.index)||0)+1,G=A[L];if(G)return{data:{index:L,overflows:J},reset:{placement:G}};let k=(W=J.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:W.placement;if(!k)switch(b){case"bestFit":{var F;const q=(F=J.filter(B=>{if(T){const re=To(B.placement);return re===P||re==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(re=>re>0).reduce((re,K)=>re+K,0)]).sort((B,re)=>B[1]-re[1])[0])==null?void 0:F[0];q&&(k=q);break}case"initialPlacement":k=l;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function RR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function PR(e){return zY.some(t=>e[t]>=0)}const oX=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Xn(e,t);switch(n){case"referenceHidden":{const i=await Gu(t,{...o,elementContext:"reference"}),s=RR(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:PR(s)}}}case"escaped":{const i=await Gu(t,{...o,altBoundary:!0}),s=RR(i,r.floating);return{data:{escapedOffsets:s,escaped:PR(s)}}}default:return{}}}}};async function iX(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Zn(r),l=ya(r),c=To(r)==="y",d=["left","top"].includes(s)?-1:1,f=i&&c?-1:1,p=Xn(t,e);let{mainAxis:h,crossAxis:b,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof w=="number"&&(b=l==="end"?w*-1:w),c?{x:b*f,y:h*d}:{x:h*d,y:b*f}}const aX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await iX(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},sX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:C=>{let{x,y:P}=C;return{x,y:P}}},...c}=Xn(e,t),d={x:r,y:n},f=await Gu(t,c),p=To(Zn(o)),h=Og(p);let b=d[h],w=d[p];if(i){const C=h==="y"?"top":"left",x=h==="y"?"bottom":"right",P=b+f[C],S=b-f[x];b=dv(P,b,S)}if(s){const C=p==="y"?"top":"left",x=p==="y"?"bottom":"right",P=w+f[C],S=w-f[x];w=dv(P,w,S)}const y=l.fn({...t,[h]:b,[p]:w});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[h]:i,[p]:s}}}}}},lX=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Xn(e,t),f={x:r,y:n},p=To(o),h=Og(p);let b=f[h],w=f[p];const y=Xn(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const S=h==="y"?"height":"width",D=i.reference[h]-i.floating[S]+C.mainAxis,_=i.reference[h]+i.reference[S]-C.mainAxis;b<D?b=D:b>_&&(b=_)}if(d){var x,P;const S=h==="y"?"width":"height",D=["top","left"].includes(Zn(o)),_=i.reference[p]-i.floating[S]+(D&&((x=s.offset)==null?void 0:x[p])||0)+(D?0:C.crossAxis),T=i.reference[p]+i.reference[S]+(D?0:((P=s.offset)==null?void 0:P[p])||0)-(D?C.crossAxis:0);w<_?w=_:w>T&&(w=T)}return{[h]:b,[p]:w}}}},uX=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...d}=Xn(e,t),f=await Gu(t,d),p=Zn(o),h=ya(o),b=To(o)==="y",{width:w,height:y}=i.floating;let C,x;p==="top"||p==="bottom"?(C=p,x=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=p,C=h==="end"?"top":"bottom");const P=y-f.top-f.bottom,S=w-f.left-f.right,D=_o(y-f[C],P),_=_o(w-f[x],S),T=!t.middlewareData.shift;let A=D,M=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=P),T&&!h){const J=Pr(f.left,0),N=Pr(f.right,0),W=Pr(f.top,0),F=Pr(f.bottom,0);b?M=w-2*(J!==0||N!==0?J+N:Pr(f.left,f.right)):A=y-2*(W!==0||F!==0?W+F:Pr(f.top,f.bottom))}await c({...t,availableWidth:M,availableHeight:A});const U=await s.getDimensions(l.floating);return w!==U.width||y!==U.height?{reset:{rects:!0}}:{}}}};function ep(){return typeof window<"u"}function xa(e){return X_(e)?(e.nodeName||"").toLowerCase():"#document"}function _r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cn(e){var t;return(t=(X_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X_(e){return ep()?e instanceof Node||e instanceof _r(e).Node:!1}function nn(e){return ep()?e instanceof Element||e instanceof _r(e).Element:!1}function xn(e){return ep()?e instanceof HTMLElement||e instanceof _r(e).HTMLElement:!1}function SR(e){return!ep()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _r(e).ShadowRoot}function gc(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function cX(e){return["table","td","th"].includes(xa(e))}function tp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function kg(e){const t=Lg(),r=nn(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function dX(e){let t=$o(e);for(;xn(t)&&!la(t);){if(kg(t))return t;if(tp(t))return null;t=$o(t)}return null}function Lg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function la(e){return["html","body","#document"].includes(xa(e))}function on(e){return _r(e).getComputedStyle(e)}function rp(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $o(e){if(xa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||SR(e)&&e.host||Cn(e);return SR(t)?t.host:t}function Z_(e){const t=$o(e);return la(t)?e.ownerDocument?e.ownerDocument.body:e.body:xn(t)&&gc(t)?t:Z_(t)}function Yu(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Z_(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_r(o);if(i){const l=pv(s);return t.concat(s,s.visualViewport||[],gc(o)?o:[],l&&r?Yu(l):[])}return t.concat(o,Yu(o,[],r))}function pv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q_(e){const t=on(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=xn(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,l=wf(r)!==i||wf(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function Fg(e){return nn(e)?e:e.contextElement}function oa(e){const t=Fg(e);if(!xn(t))return yn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Q_(t);let s=(i?wf(r.width):r.width)/n,l=(i?wf(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const fX=yn(0);function J_(e){const t=_r(e);return!Lg()||!t.visualViewport?fX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_r(e)?!1:t}function pi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Fg(e);let s=yn(1);t&&(n?nn(n)&&(s=oa(n)):s=oa(e));const l=pX(i,r,n)?J_(i):yn(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(i){const h=_r(i),b=n&&nn(n)?_r(n):n;let w=h,y=pv(w);for(;y&&n&&b!==w;){const C=oa(y),x=y.getBoundingClientRect(),P=on(y),S=x.left+(y.clientLeft+parseFloat(P.paddingLeft))*C.x,D=x.top+(y.clientTop+parseFloat(P.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,p*=C.y,c+=S,d+=D,w=_r(y),y=pv(w)}}return Cf({width:f,height:p,x:c,y:d})}function qg(e,t){const r=rp(e).scrollLeft;return t?t.left+r:pi(Cn(e)).left+r}function eT(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:qg(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function mX(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Cn(n),l=t?tp(t.floating):!1;if(n===s||l&&i)return r;let c={scrollLeft:0,scrollTop:0},d=yn(1);const f=yn(0),p=xn(n);if((p||!p&&!i)&&((xa(n)!=="body"||gc(s))&&(c=rp(n)),xn(n))){const b=pi(n);d=oa(n),f.x=b.x+n.clientLeft,f.y=b.y+n.clientTop}const h=s&&!p&&!i?eT(s,c,!0):yn(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:r.y*d.y-c.scrollTop*d.y+f.y+h.y}}function hX(e){return Array.from(e.getClientRects())}function vX(e){const t=Cn(e),r=rp(e),n=e.ownerDocument.body,o=Pr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+qg(e);const l=-r.scrollTop;return on(n).direction==="rtl"&&(s+=Pr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:l}}function gX(e,t){const r=_r(e),n=Cn(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const d=Lg();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function bX(e,t){const r=pi(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=xn(e)?oa(e):yn(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,d=n*i.y;return{width:s,height:l,x:c,y:d}}function _R(e,t,r){let n;if(t==="viewport")n=gX(e,r);else if(t==="document")n=vX(Cn(e));else if(nn(t))n=bX(t,r);else{const o=J_(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Cf(n)}function tT(e,t){const r=$o(e);return r===t||!nn(r)||la(r)?!1:on(r).position==="fixed"||tT(r,t)}function yX(e,t){const r=t.get(e);if(r)return r;let n=Yu(e,[],!1).filter(l=>nn(l)&&xa(l)!=="body"),o=null;const i=on(e).position==="fixed";let s=i?$o(e):e;for(;nn(s)&&!la(s);){const l=on(s),c=kg(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||gc(s)&&!c&&tT(e,s))?n=n.filter(f=>f!==s):o=l,s=$o(s)}return t.set(e,n),n}function xX(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?tp(t)?[]:yX(t,this._c):[].concat(r),n],l=s[0],c=s.reduce((d,f)=>{const p=_R(t,f,o);return d.top=Pr(p.top,d.top),d.right=_o(p.right,d.right),d.bottom=_o(p.bottom,d.bottom),d.left=Pr(p.left,d.left),d},_R(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wX(e){const{width:t,height:r}=Q_(e);return{width:t,height:r}}function EX(e,t,r){const n=xn(t),o=Cn(t),i=r==="fixed",s=pi(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=yn(0);if(n||!n&&!i)if((xa(t)!=="body"||gc(o))&&(l=rp(t)),n){const h=pi(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=qg(o));const d=o&&!n&&!i?eT(o,l):yn(0),f=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function yh(e){return on(e).position==="static"}function TR(e,t){if(!xn(e)||on(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Cn(e)===r&&(r=r.ownerDocument.body),r}function rT(e,t){const r=_r(e);if(tp(e))return r;if(!xn(e)){let o=$o(e);for(;o&&!la(o);){if(nn(o)&&!yh(o))return o;o=$o(o)}return r}let n=TR(e,t);for(;n&&cX(n)&&yh(n);)n=TR(n,t);return n&&la(n)&&yh(n)&&!kg(n)?r:n||dX(e)||r}const CX=async function(e){const t=this.getOffsetParent||rT,r=this.getDimensions,n=await r(e.floating);return{reference:EX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function RX(e){return on(e).direction==="rtl"}const PX={convertOffsetParentRelativeRectToViewportRelativeRect:mX,getDocumentElement:Cn,getClippingRect:xX,getOffsetParent:rT,getElementRects:CX,getClientRects:hX,getDimensions:wX,getScale:oa,isElement:nn,isRTL:RX};function nT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SX(e,t){let r=null,n;const o=Cn(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:b}=d;if(l||t(),!h||!b)return;const w=Bd(p),y=Bd(o.clientWidth-(f+h)),C=Bd(o.clientHeight-(p+b)),x=Bd(f),S={rootMargin:-w+"px "+-y+"px "+-C+"px "+-x+"px",threshold:Pr(0,_o(1,c))||1};let D=!0;function _(T){const A=T[0].intersectionRatio;if(A!==c){if(!D)return s();A?s(!1,A):n=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!nT(d,e.getBoundingClientRect())&&s(),D=!1}try{r=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,S)}r.observe(e)}return s(!0),i}function _X(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Fg(e),f=o||i?[...d?Yu(d):[],...Yu(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const p=d&&l?SX(d,r):null;let h=-1,b=null;s&&(b=new ResizeObserver(x=>{let[P]=x;P&&P.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(t)})),r()}),d&&!c&&b.observe(d),b.observe(t));let w,y=c?pi(e):null;c&&C();function C(){const x=pi(e);y&&!nT(y,x)&&r(),y=x,w=requestAnimationFrame(C)}return r(),()=>{var x;f.forEach(P=>{o&&P.removeEventListener("scroll",r),i&&P.removeEventListener("resize",r)}),p?.(),(x=b)==null||x.disconnect(),b=null,c&&cancelAnimationFrame(w)}}const TX=aX,$X=sX,AX=nX,DX=uX,MX=oX,$R=rX,OX=lX,NX=(e,t,r)=>{const n=new Map,o={platform:PX,...r},i={...o.platform,_c:n};return tX(e,t,{...o,platform:i})};var Qd=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Rf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Rf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Rf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function oT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AR(e,t){const r=oT(e);return Math.round(t*r)/r}function xh(e){const t=v.useRef(e);return Qd(()=>{t.current=e}),t}function IX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,p]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,b]=v.useState(n);Rf(h,n)||b(n);const[w,y]=v.useState(null),[C,x]=v.useState(null),P=v.useCallback(B=>{B!==T.current&&(T.current=B,y(B))},[]),S=v.useCallback(B=>{B!==A.current&&(A.current=B,x(B))},[]),D=i||w,_=s||C,T=v.useRef(null),A=v.useRef(null),M=v.useRef(f),U=c!=null,J=xh(c),N=xh(o),W=xh(d),F=v.useCallback(()=>{if(!T.current||!A.current)return;const B={placement:t,strategy:r,middleware:h};N.current&&(B.platform=N.current),NX(T.current,A.current,B).then(re=>{const K={...re,isPositioned:W.current!==!1};L.current&&!Rf(M.current,K)&&(M.current=K,da.flushSync(()=>{p(K)}))})},[h,t,r,N,W]);Qd(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[d]);const L=v.useRef(!1);Qd(()=>(L.current=!0,()=>{L.current=!1}),[]),Qd(()=>{if(D&&(T.current=D),_&&(A.current=_),D&&_){if(J.current)return J.current(D,_,F);F()}},[D,_,F,J,U]);const G=v.useMemo(()=>({reference:T,floating:A,setReference:P,setFloating:S}),[P,S]),k=v.useMemo(()=>({reference:D,floating:_}),[D,_]),q=v.useMemo(()=>{const B={position:r,left:0,top:0};if(!k.floating)return B;const re=AR(k.floating,f.x),K=AR(k.floating,f.y);return l?{...B,transform:"translate("+re+"px, "+K+"px)",...oT(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:K}},[r,l,k.floating,f.x,f.y]);return v.useMemo(()=>({...f,update:F,refs:G,elements:k,floatingStyles:q}),[f,F,G,k,q])}const kX=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$R({element:n.current,padding:o}).fn(r):{}:n?$R({element:n,padding:o}).fn(r):{}}}},LX=(e,t)=>({...TX(e),options:[e,t]}),FX=(e,t)=>({...$X(e),options:[e,t]}),qX=(e,t)=>({...OX(e),options:[e,t]}),jX=(e,t)=>({...AX(e),options:[e,t]}),BX=(e,t)=>({...DX(e),options:[e,t]}),VX=(e,t)=>({...MX(e),options:[e,t]}),KX=(e,t)=>({...kX(e),options:[e,t]});function WX(e){const t=HX(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(zX);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function HX(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=YX(o),l=GX(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UX=Symbol("radix.slottable");function zX(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UX}function GX(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function YX(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var XX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ZX=XX.reduce((e,t)=>{const r=WX(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),QX="Arrow",iT=v.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return g.jsx(ZX.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});iT.displayName=QX;var JX=iT;function eZ(e){const t=tZ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(nZ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function tZ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=iZ(o),l=oZ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rZ=Symbol("radix.slottable");function nZ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rZ}function oZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function iZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var aZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aT=aZ.reduce((e,t)=>{const r=eZ(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sZ(e){const[t,r]=v.useState(void 0);return Kt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,l=d.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var jg="Popper",[sT,Do]=wn(jg),[lZ,lT]=sT(jg),uT=e=>{const{__scopePopper:t,children:r}=e,[n,o]=v.useState(null);return g.jsx(lZ,{scope:t,anchor:n,onAnchorChange:o,children:r})};uT.displayName=jg;var cT="PopperAnchor",dT=v.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=lT(cT,r),s=v.useRef(null),l=Ve(t,s),c=v.useRef(null);return v.useEffect(()=>{const d=c.current;c.current=n?.current||s.current,d!==c.current&&i.onAnchorChange(c.current)}),n?null:g.jsx(aT.div,{...o,ref:l})});dT.displayName=cT;var Bg="PopperContent",[uZ,cZ]=sT(Bg),fT=v.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:b="optimized",onPlaced:w,...y}=e,C=lT(Bg,r),[x,P]=v.useState(null),S=Ve(t,te=>P(te)),[D,_]=v.useState(null),T=sZ(D),A=T?.width??0,M=T?.height??0,U=n+(i!=="center"?"-"+i:""),J=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],W=N.length>0,F={padding:J,boundary:N.filter(fZ),altBoundary:W},{refs:L,floatingStyles:G,placement:k,isPositioned:q,middlewareData:B}=IX({strategy:"fixed",placement:U,whileElementsMounted:(...te)=>_X(...te,{animationFrame:b==="always"}),elements:{reference:C.anchor},middleware:[LX({mainAxis:o+M,alignmentAxis:s}),c&&FX({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?qX():void 0,...F}),c&&jX({...F}),BX({...F,apply:({elements:te,rects:ve,availableWidth:j,availableHeight:ae})=>{const{width:oe,height:Z}=ve.reference,we=te.floating.style;we.setProperty("--radix-popper-available-width",`${j}px`),we.setProperty("--radix-popper-available-height",`${ae}px`),we.setProperty("--radix-popper-anchor-width",`${oe}px`),we.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),D&&KX({element:D,padding:l}),pZ({arrowWidth:A,arrowHeight:M}),h&&VX({strategy:"referenceHidden",...F})]}),[re,K]=hT(k),ie=Xt(w);Kt(()=>{q&&ie?.()},[q,ie]);const Y=B.arrow?.x,X=B.arrow?.y,ce=B.arrow?.centerOffset!==0,[ue,pe]=v.useState();return Kt(()=>{x&&pe(window.getComputedStyle(x).zIndex)},[x]),g.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:q?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(uZ,{scope:r,placedSide:re,onArrowChange:_,arrowX:Y,arrowY:X,shouldHideArrow:ce,children:g.jsx(aT.div,{"data-side":re,"data-align":K,...y,ref:S,style:{...y.style,animation:q?void 0:"none"}})})})});fT.displayName=Bg;var pT="PopperArrow",dZ={top:"bottom",right:"left",bottom:"top",left:"right"},mT=v.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=cZ(pT,n),s=dZ[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(JX,{...o,ref:r,style:{...o.style,display:"block"}})})});mT.displayName=pT;function fZ(e){return e!==null}var pZ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=hT(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+l/2,b=(o.arrow?.y??0)+c/2;let w="",y="";return d==="bottom"?(w=s?p:`${h}px`,y=`${-c}px`):d==="top"?(w=s?p:`${h}px`,y=`${n.floating.height+c}px`):d==="right"?(w=`${-c}px`,y=s?p:`${b}px`):d==="left"&&(w=`${n.floating.width+c}px`,y=s?p:`${b}px`),{data:{x:w,y}}}});function hT(e){const[t,r="center"]=e.split("-");return[t,r]}var bc=uT,yc=dT,np=fT,op=mT;function vT(e){const t=mZ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(vZ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function mZ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=bZ(o),l=gZ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hZ=Symbol("radix.slottable");function vZ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hZ}function gZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function bZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xc=yZ.reduce((e,t)=>{const r=vT(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xZ(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}function wZ(e){const t=EZ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(RZ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function EZ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=SZ(o),l=PZ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CZ=Symbol("radix.slottable");function RZ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CZ}function PZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function SZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _Z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gT=_Z.reduce((e,t)=>{const r=wZ(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),wh="rovingFocusGroup.onEntryFocus",TZ={bubbles:!1,cancelable:!0},wc="RovingFocusGroup",[mv,bT,$Z]=Dg(wc),[AZ,yT]=wn(wc,[$Z]),[DZ,MZ]=AZ(wc),xT=v.forwardRef((e,t)=>g.jsx(mv.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(mv.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(OZ,{...e,ref:t})})}));xT.displayName=wc;var OZ=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=v.useRef(null),b=Ve(t,h),w=Mg(i),[y,C]=ut({prop:s,defaultProp:l??null,onChange:c,caller:wc}),[x,P]=v.useState(!1),S=Xt(d),D=bT(r),_=v.useRef(!1),[T,A]=v.useState(0);return v.useEffect(()=>{const M=h.current;if(M)return M.addEventListener(wh,S),()=>M.removeEventListener(wh,S)},[S]),g.jsx(DZ,{scope:r,orientation:n,dir:w,loop:o,currentTabStopId:y,onItemFocus:v.useCallback(M=>C(M),[C]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>A(M=>M+1),[]),onFocusableItemRemove:v.useCallback(()=>A(M=>M-1),[]),children:g.jsx(gT.div,{tabIndex:x||T===0?-1:0,"data-orientation":n,...p,ref:b,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{_.current=!0}),onFocus:Se(e.onFocus,M=>{const U=!_.current;if(M.target===M.currentTarget&&U&&!x){const J=new CustomEvent(wh,TZ);if(M.currentTarget.dispatchEvent(J),!J.defaultPrevented){const N=D().filter(k=>k.focusable),W=N.find(k=>k.active),F=N.find(k=>k.id===y),G=[W,F,...N].filter(Boolean).map(k=>k.ref.current);CT(G,f)}}_.current=!1}),onBlur:Se(e.onBlur,()=>P(!1))})})}),wT="RovingFocusGroupItem",ET=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:s,...l}=e,c=_t(),d=i||c,f=MZ(wT,r),p=f.currentTabStopId===d,h=bT(r),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:y}=f;return v.useEffect(()=>{if(n)return b(),()=>w()},[n,b,w]),g.jsx(mv.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:g.jsx(gT.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:Se(e.onMouseDown,C=>{n?f.onItemFocus(d):C.preventDefault()}),onFocus:Se(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:Se(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){f.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const x=kZ(C,f.orientation,f.dir);if(x!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let S=h().filter(D=>D.focusable).map(D=>D.ref.current);if(x==="last")S.reverse();else if(x==="prev"||x==="next"){x==="prev"&&S.reverse();const D=S.indexOf(C.currentTarget);S=f.loop?LZ(S,D+1):S.slice(D+1)}setTimeout(()=>CT(S))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:y!=null}):s})})});ET.displayName=wT;var NZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function IZ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kZ(e,t,r){const n=IZ(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return NZ[n]}function CT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function LZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var FZ=xT,qZ=ET,hv=["Enter"," "],jZ=["ArrowDown","PageUp","Home"],RT=["ArrowUp","PageDown","End"],BZ=[...jZ,...RT],VZ={ltr:[...hv,"ArrowRight"],rtl:[...hv,"ArrowLeft"]},KZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ec="Menu",[Xu,WZ,HZ]=Dg(Ec),[Ei,PT]=wn(Ec,[HZ,Do,yT]),Cc=Do(),ST=yT(),[_T,Mo]=Ei(Ec),[UZ,Rc]=Ei(Ec),TT=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:s=!0}=e,l=Cc(t),[c,d]=v.useState(null),f=v.useRef(!1),p=Xt(i),h=Mg(o);return v.useEffect(()=>{const b=()=>{f.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>f.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),g.jsx(bc,{...l,children:g.jsx(_T,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:d,children:g.jsx(UZ,{scope:t,onClose:v.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:n})})})};TT.displayName=Ec;var zZ="MenuAnchor",Vg=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Cc(r);return g.jsx(yc,{...o,...n,ref:t})});Vg.displayName=zZ;var Kg="MenuPortal",[GZ,$T]=Ei(Kg,{forceMount:void 0}),AT=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=Mo(Kg,t);return g.jsx(GZ,{scope:t,forceMount:r,children:g.jsx(Tr,{present:r||i.open,children:g.jsx(ha,{asChild:!0,container:o,children:n})})})};AT.displayName=Kg;var Kr="MenuContent",[YZ,Wg]=Ei(Kr),DT=v.forwardRef((e,t)=>{const r=$T(Kr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Mo(Kr,e.__scopeMenu),s=Rc(Kr,e.__scopeMenu);return g.jsx(Xu.Provider,{scope:e.__scopeMenu,children:g.jsx(Tr,{present:n||i.open,children:g.jsx(Xu.Slot,{scope:e.__scopeMenu,children:s.modal?g.jsx(XZ,{...o,ref:t}):g.jsx(ZZ,{...o,ref:t})})})})}),XZ=v.forwardRef((e,t)=>{const r=Mo(Kr,e.__scopeMenu),n=v.useRef(null),o=Ve(t,n);return v.useEffect(()=>{const i=n.current;if(i)return oc(i)},[]),g.jsx(Hg,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Se(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ZZ=v.forwardRef((e,t)=>{const r=Mo(Kr,e.__scopeMenu);return g.jsx(Hg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),QZ=vT("MenuContent.ScrollLock"),Hg=v.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:b,disableOutsideScroll:w,...y}=e,C=Mo(Kr,r),x=Rc(Kr,r),P=Cc(r),S=ST(r),D=WZ(r),[_,T]=v.useState(null),A=v.useRef(null),M=Ve(t,A,C.onContentChange),U=v.useRef(0),J=v.useRef(""),N=v.useRef(0),W=v.useRef(null),F=v.useRef("right"),L=v.useRef(0),G=w?va:v.Fragment,k=w?{as:QZ,allowPinchZoom:!0}:void 0,q=re=>{const K=J.current+re,ie=D().filter(te=>!te.disabled),Y=document.activeElement,X=ie.find(te=>te.ref.current===Y)?.textValue,ce=ie.map(te=>te.textValue),ue=cQ(ce,K,X),pe=ie.find(te=>te.textValue===ue)?.ref.current;(function te(ve){J.current=ve,window.clearTimeout(U.current),ve!==""&&(U.current=window.setTimeout(()=>te(""),1e3))})(K),pe&&setTimeout(()=>pe.focus())};v.useEffect(()=>()=>window.clearTimeout(U.current),[]),Lf();const B=v.useCallback(re=>F.current===W.current?.side&&fQ(re,W.current?.area),[]);return g.jsx(YZ,{scope:r,searchRef:J,onItemEnter:v.useCallback(re=>{B(re)&&re.preventDefault()},[B]),onItemLeave:v.useCallback(re=>{B(re)||(A.current?.focus(),T(null))},[B]),onTriggerLeave:v.useCallback(re=>{B(re)&&re.preventDefault()},[B]),pointerGraceTimerRef:N,onPointerGraceIntentChange:v.useCallback(re=>{W.current=re},[]),children:g.jsx(G,{...k,children:g.jsx(rc,{asChild:!0,trapped:o,onMountAutoFocus:Se(i,re=>{re.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:b,children:g.jsx(FZ,{asChild:!0,...S,dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:_,onCurrentTabStopIdChange:T,onEntryFocus:Se(c,re=>{x.isUsingKeyboardRef.current||re.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(np,{role:"menu","aria-orientation":"vertical","data-state":GT(C.open),"data-radix-menu-content":"",dir:x.dir,...P,...y,ref:M,style:{outline:"none",...y.style},onKeyDown:Se(y.onKeyDown,re=>{const ie=re.target.closest("[data-radix-menu-content]")===re.currentTarget,Y=re.ctrlKey||re.altKey||re.metaKey,X=re.key.length===1;ie&&(re.key==="Tab"&&re.preventDefault(),!Y&&X&&q(re.key));const ce=A.current;if(re.target!==ce||!BZ.includes(re.key))return;re.preventDefault();const pe=D().filter(te=>!te.disabled).map(te=>te.ref.current);RT.includes(re.key)&&pe.reverse(),lQ(pe)}),onBlur:Se(e.onBlur,re=>{re.currentTarget.contains(re.target)||(window.clearTimeout(U.current),J.current="")}),onPointerMove:Se(e.onPointerMove,Zu(re=>{const K=re.target,ie=L.current!==re.clientX;if(re.currentTarget.contains(K)&&ie){const Y=re.clientX>L.current?"right":"left";F.current=Y,L.current=re.clientX}}))})})})})})})});DT.displayName=Kr;var JZ="MenuGroup",Ug=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return g.jsx(xc.div,{role:"group",...n,ref:t})});Ug.displayName=JZ;var eQ="MenuLabel",MT=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return g.jsx(xc.div,{...n,ref:t})});MT.displayName=eQ;var Pf="MenuItem",DR="menu.itemSelect",ip=v.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=v.useRef(null),s=Rc(Pf,e.__scopeMenu),l=Wg(Pf,e.__scopeMenu),c=Ve(t,i),d=v.useRef(!1),f=()=>{const p=i.current;if(!r&&p){const h=new CustomEvent(DR,{bubbles:!0,cancelable:!0});p.addEventListener(DR,b=>n?.(b),{once:!0}),xZ(p,h),h.defaultPrevented?d.current=!1:s.onClose()}};return g.jsx(OT,{...o,ref:c,disabled:r,onClick:Se(e.onClick,f),onPointerDown:p=>{e.onPointerDown?.(p),d.current=!0},onPointerUp:Se(e.onPointerUp,p=>{d.current||p.currentTarget?.click()}),onKeyDown:Se(e.onKeyDown,p=>{const h=l.searchRef.current!=="";r||h&&p.key===" "||hv.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});ip.displayName=Pf;var OT=v.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,s=Wg(Pf,r),l=ST(r),c=v.useRef(null),d=Ve(t,c),[f,p]=v.useState(!1),[h,b]=v.useState("");return v.useEffect(()=>{const w=c.current;w&&b((w.textContent??"").trim())},[i.children]),g.jsx(Xu.ItemSlot,{scope:r,disabled:n,textValue:o??h,children:g.jsx(qZ,{asChild:!0,...l,focusable:!n,children:g.jsx(xc.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:d,onPointerMove:Se(e.onPointerMove,Zu(w=>{n?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Se(e.onPointerLeave,Zu(w=>s.onItemLeave(w))),onFocus:Se(e.onFocus,()=>p(!0)),onBlur:Se(e.onBlur,()=>p(!1))})})})}),tQ="MenuCheckboxItem",NT=v.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return g.jsx(qT,{scope:e.__scopeMenu,checked:r,children:g.jsx(ip,{role:"menuitemcheckbox","aria-checked":Sf(r)?"mixed":r,...o,ref:t,"data-state":Yg(r),onSelect:Se(o.onSelect,()=>n?.(Sf(r)?!0:!r),{checkForDefaultPrevented:!1})})})});NT.displayName=tQ;var IT="MenuRadioGroup",[rQ,nQ]=Ei(IT,{value:void 0,onValueChange:()=>{}}),kT=v.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=Xt(n);return g.jsx(rQ,{scope:e.__scopeMenu,value:r,onValueChange:i,children:g.jsx(Ug,{...o,ref:t})})});kT.displayName=IT;var LT="MenuRadioItem",FT=v.forwardRef((e,t)=>{const{value:r,...n}=e,o=nQ(LT,e.__scopeMenu),i=r===o.value;return g.jsx(qT,{scope:e.__scopeMenu,checked:i,children:g.jsx(ip,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Yg(i),onSelect:Se(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});FT.displayName=LT;var zg="MenuItemIndicator",[qT,oQ]=Ei(zg,{checked:!1}),jT=v.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=oQ(zg,r);return g.jsx(Tr,{present:n||Sf(i.checked)||i.checked===!0,children:g.jsx(xc.span,{...o,ref:t,"data-state":Yg(i.checked)})})});jT.displayName=zg;var iQ="MenuSeparator",BT=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return g.jsx(xc.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});BT.displayName=iQ;var aQ="MenuArrow",VT=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Cc(r);return g.jsx(op,{...o,...n,ref:t})});VT.displayName=aQ;var Gg="MenuSub",[sQ,KT]=Ei(Gg),WT=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=Mo(Gg,t),s=Cc(t),[l,c]=v.useState(null),[d,f]=v.useState(null),p=Xt(o);return v.useEffect(()=>(i.open===!1&&p(!1),()=>p(!1)),[i.open,p]),g.jsx(bc,{...s,children:g.jsx(_T,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:f,children:g.jsx(sQ,{scope:t,contentId:_t(),triggerId:_t(),trigger:l,onTriggerChange:c,children:r})})})};WT.displayName=Gg;var Ou="MenuSubTrigger",HT=v.forwardRef((e,t)=>{const r=Mo(Ou,e.__scopeMenu),n=Rc(Ou,e.__scopeMenu),o=KT(Ou,e.__scopeMenu),i=Wg(Ou,e.__scopeMenu),s=v.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,d={__scopeMenu:e.__scopeMenu},f=v.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return v.useEffect(()=>f,[f]),v.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),c(null)}},[l,c]),g.jsx(Vg,{asChild:!0,...d,children:g.jsx(OT,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":GT(r.open),...e,ref:gt(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Se(e.onPointerMove,Zu(p=>{i.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:Se(e.onPointerLeave,Zu(p=>{f();const h=r.content?.getBoundingClientRect();if(h){const b=r.content?.dataset.side,w=b==="right",y=w?-5:5,C=h[w?"left":"right"],x=h[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:C,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:C,y:h.bottom}],side:b}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(p),p.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Se(e.onKeyDown,p=>{const h=i.searchRef.current!=="";e.disabled||h&&p.key===" "||VZ[n.dir].includes(p.key)&&(r.onOpenChange(!0),r.content?.focus(),p.preventDefault())})})})});HT.displayName=Ou;var UT="MenuSubContent",zT=v.forwardRef((e,t)=>{const r=$T(Kr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Mo(Kr,e.__scopeMenu),s=Rc(Kr,e.__scopeMenu),l=KT(UT,e.__scopeMenu),c=v.useRef(null),d=Ve(t,c);return g.jsx(Xu.Provider,{scope:e.__scopeMenu,children:g.jsx(Tr,{present:n||i.open,children:g.jsx(Xu.Slot,{scope:e.__scopeMenu,children:g.jsx(Hg,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&c.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Se(e.onFocusOutside,f=>{f.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Se(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Se(e.onKeyDown,f=>{const p=f.currentTarget.contains(f.target),h=KZ[s.dir].includes(f.key);p&&h&&(i.onOpenChange(!1),l.trigger?.focus(),f.preventDefault())})})})})})});zT.displayName=UT;function GT(e){return e?"open":"closed"}function Sf(e){return e==="indeterminate"}function Yg(e){return Sf(e)?"indeterminate":e?"checked":"unchecked"}function lQ(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function uQ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function cQ(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=uQ(e,Math.max(i,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function dQ(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],c=t[s],d=l.x,f=l.y,p=c.x,h=c.y;f>n!=h>n&&r<(p-d)*(n-f)/(h-f)+d&&(o=!o)}return o}function fQ(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return dQ(r,t)}function Zu(e){return t=>t.pointerType==="mouse"?e(t):void 0}var pQ=TT,mQ=Vg,hQ=AT,vQ=DT,gQ=Ug,bQ=MT,yQ=ip,xQ=NT,wQ=kT,EQ=FT,CQ=jT,RQ=BT,PQ=VT,SQ=WT,_Q=HT,TQ=zT,ap="DropdownMenu",[$Q]=wn(ap,[PT]),nr=PT(),[AQ,YT]=$Q(ap),XT=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=nr(t),d=v.useRef(null),[f,p]=ut({prop:o,defaultProp:i??!1,onChange:s,caller:ap});return g.jsx(AQ,{scope:t,triggerId:_t(),triggerRef:d,contentId:_t(),open:f,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(h=>!h),[p]),modal:l,children:g.jsx(pQ,{...c,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};XT.displayName=ap;var ZT="DropdownMenuTrigger",QT=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=YT(ZT,r),s=nr(r);return g.jsx(mQ,{asChild:!0,...s,children:g.jsx(jY.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:gt(t,i.triggerRef),onPointerDown:Se(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:Se(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});QT.displayName=ZT;var DQ="DropdownMenuPortal",JT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=nr(t);return g.jsx(hQ,{...n,...r})};JT.displayName=DQ;var e$="DropdownMenuContent",t$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=YT(e$,r),i=nr(r),s=v.useRef(!1);return g.jsx(vQ,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:Se(e.onCloseAutoFocus,l=>{s.current||o.triggerRef.current?.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:Se(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t$.displayName=e$;var MQ="DropdownMenuGroup",r$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(gQ,{...o,...n,ref:t})});r$.displayName=MQ;var OQ="DropdownMenuLabel",n$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(bQ,{...o,...n,ref:t})});n$.displayName=OQ;var NQ="DropdownMenuItem",o$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(yQ,{...o,...n,ref:t})});o$.displayName=NQ;var IQ="DropdownMenuCheckboxItem",i$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(xQ,{...o,...n,ref:t})});i$.displayName=IQ;var kQ="DropdownMenuRadioGroup",a$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(wQ,{...o,...n,ref:t})});a$.displayName=kQ;var LQ="DropdownMenuRadioItem",s$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(EQ,{...o,...n,ref:t})});s$.displayName=LQ;var FQ="DropdownMenuItemIndicator",l$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(CQ,{...o,...n,ref:t})});l$.displayName=FQ;var qQ="DropdownMenuSeparator",u$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(RQ,{...o,...n,ref:t})});u$.displayName=qQ;var jQ="DropdownMenuArrow",BQ=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(PQ,{...o,...n,ref:t})});BQ.displayName=jQ;var VQ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,s=nr(t),[l,c]=ut({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return g.jsx(SQ,{...s,open:l,onOpenChange:c,children:r})},KQ="DropdownMenuSubTrigger",c$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(_Q,{...o,...n,ref:t})});c$.displayName=KQ;var WQ="DropdownMenuSubContent",d$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(TQ,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});d$.displayName=WQ;var HQ=XT,UQ=QT,f$=JT,zQ=t$,GQ=r$,YQ=n$,XQ=o$,ZQ=i$,QQ=a$,JQ=s$,p$=l$,eJ=u$,tJ=VQ,rJ=c$,nJ=d$;const m$=e=>g.jsx(HQ,{"data-slot":"menu",...e}),h$=e=>g.jsx(UQ,{"data-slot":"menu-trigger",...e}),oJ=e=>g.jsx(GQ,{"data-slot":"menu-group",...e}),iJ=e=>g.jsx(f$,{"data-slot":"menu-portal",...e}),v$=e=>g.jsx(tJ,{"data-slot":"menu-sub",...e}),aJ=e=>g.jsx(QQ,{"data-slot":"menu-radio-group",...e}),g$=({className:e,inset:t,children:r,...n})=>g.jsxs(rJ,{"data-slot":"menu-sub-trigger",className:le("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state='open']:bg-accent",t&&"pl-8",e),...n,children:[r,g.jsx(ic,{className:"ml-auto h-4 w-4"})]}),b$=({className:e,...t})=>g.jsx(nJ,{"data-slot":"menu-sub-content",className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0 data-[state='closed']:zoom-out-95 data-[state='open']:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}),y$=({className:e,sideOffset:t=4,...r})=>g.jsx(f$,{"data-slot":"menu-portal",children:g.jsx(zQ,{"data-slot":"menu-content",sideOffset:t,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0 data-[state='closed']:zoom-out-95 data-[state='open']:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}),x$=({className:e,inset:t,...r})=>g.jsx(XQ,{"data-slot":"menu-item",className:le("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}),w$=({className:e,children:t,checked:r,...n})=>g.jsxs(ZQ,{"data-slot":"menu-checkbox-item",className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(p$,{children:g.jsx(of,{className:"h-4 w-4"})})}),t]}),E$=({className:e,children:t,...r})=>g.jsxs(JQ,{"data-slot":"menu-radio-item",className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(p$,{children:g.jsx(n5,{className:"h-2 w-2 fill-current"})})}),t]}),C$=({className:e,inset:t,...r})=>g.jsx(YQ,{"data-slot":"menu-label",className:le("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}),R$=({className:e,...t})=>g.jsx(eJ,{"data-slot":"menu-separator",className:le("-mx-1 my-1 h-px bg-muted",e),...t}),P$=({className:e,keys:t,handler:r,options:n={},...o})=>(K_(t,r,n),g.jsx("span",{"data-slot":"menu-shortcut",className:le("ml-auto text-xs tracking-widest opacity-60",e),...o})),S$=(e,t)=>{switch(e.type){case"item":return g.jsxs(x$,{...e,children:[e.label," ",t]});case"checkbox":return g.jsxs(w$,{...e,children:[e.label," ",t]});case"radio":return g.jsxs(E$,{...e,children:[e.label," ",t]});case"label":return g.jsxs(C$,{...e,children:[e.label," "]});case"separator":return g.jsx(R$,{...e});case"submenu":return g.jsxs(v$,{children:[g.jsx(g$,{...e,children:e.label}),g.jsx(b$,{children:e.items?.map((r,n)=>g.jsx(R.Fragment,{children:S$(r)},n))})]});default:return null}},sJ=({trigger:e,items:t,contentProps:r,side:n="bottom",offset:o})=>g.jsxs(m$,{children:[g.jsx(h$,{asChild:!0,children:e}),g.jsx(y$,{side:n,sideOffset:o,...r,children:t.map(({shortcut:i,onShortcut:s,shortcutOptions:l,...c},d)=>g.jsx(R.Fragment,{children:S$(c,i&&g.jsx(P$,{keys:i,handler:f=>s?.(f),options:l,children:i}))},d))})]}),_$=eo("inline-flex items-center relative overflow-hidden bg-gray-100 gap-1 px-2.5 py-0.5 text-xs font-normal transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{rounded:{default:"rounded-(--radius-tag)",full:"rounded-full",square:"rounded-sm"},variant:{primary:"bg-primary border-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary border-secondary !text-secondary-foreground hover:bg-secondary/80",error:"bg-error border-error text-error-foreground hover:bg-error/80",success:"bg-success border-success text-success-foreground hover:bg-success/80",outline:"border border-foreground text-foreground",borderless:"text-foreground"}},defaultVariants:{rounded:"default",variant:"primary"}}),vv=({className:e,color:t,variant:r,rounded:n,icon:o,closable:i,onClose:s,children:l,...c})=>{const d=!!t&&(r==="outline"||r==="borderless"),f=!!t&&!r;return g.jsxs("div",{"data-slot":"tag",className:le(_$({variant:r,rounded:n}),d&&"bg-white",f&&" text-white",!!o&&"pl-1.5",!!i&&"pr-1.5",e),style:{...d&&{color:t,borderColor:t},...f&&{borderColor:t,backgroundColor:t}},...c,children:[o,l,i&&g.jsx("button",{type:"button","data-slot":"tag-close",className:"z-10 h-4 w-4 cursor-pointer",onClick:p=>{p.stopPropagation(),s()},children:g.jsx(jf,{"data-slot":"tag-close-icon"})}),g.jsx("span",{"data-slot":"tag-overlay",className:"w-full h-full absolute top-0 left-0",style:{...d&&{opacity:.13,backgroundColor:t}}})]})};function T$(e){const t=lJ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(cJ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function lJ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=fJ(o),l=dJ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uJ=Symbol("radix.slottable");function cJ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uJ}function dJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function fJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$$=pJ.reduce((e,t)=>{const r=T$(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),sp="Popover",[A$]=wn(sp,[Do]),Pc=Do(),[mJ,Oo]=A$(sp),D$=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,l=Pc(t),c=v.useRef(null),[d,f]=v.useState(!1),[p,h]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:sp});return g.jsx(bc,{...l,children:g.jsx(mJ,{scope:t,contentId:_t(),triggerRef:c,open:p,onOpenChange:h,onOpenToggle:v.useCallback(()=>h(b=>!b),[h]),hasCustomAnchor:d,onCustomAnchorAdd:v.useCallback(()=>f(!0),[]),onCustomAnchorRemove:v.useCallback(()=>f(!1),[]),modal:s,children:r})})};D$.displayName=sp;var M$="PopoverAnchor",hJ=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Oo(M$,r),i=Pc(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return v.useEffect(()=>(s(),()=>l()),[s,l]),g.jsx(yc,{...i,...n,ref:t})});hJ.displayName=M$;var O$="PopoverTrigger",N$=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Oo(O$,r),i=Pc(r),s=Ve(t,o.triggerRef),l=g.jsx($$.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q$(o.open),...n,ref:s,onClick:Se(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:g.jsx(yc,{asChild:!0,...i,children:l})});N$.displayName=O$;var Xg="PopoverPortal",[vJ,gJ]=A$(Xg,{forceMount:void 0}),I$=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Oo(Xg,t);return g.jsx(vJ,{scope:t,forceMount:r,children:g.jsx(Tr,{present:r||i.open,children:g.jsx(ha,{asChild:!0,container:o,children:n})})})};I$.displayName=Xg;var ua="PopoverContent",k$=v.forwardRef((e,t)=>{const r=gJ(ua,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Oo(ua,e.__scopePopover);return g.jsx(Tr,{present:n||i.open,children:i.modal?g.jsx(yJ,{...o,ref:t}):g.jsx(xJ,{...o,ref:t})})});k$.displayName=ua;var bJ=T$("PopoverContent.RemoveScroll"),yJ=v.forwardRef((e,t)=>{const r=Oo(ua,e.__scopePopover),n=v.useRef(null),o=Ve(t,n),i=v.useRef(!1);return v.useEffect(()=>{const s=n.current;if(s)return oc(s)},[]),g.jsx(va,{as:bJ,allowPinchZoom:!0,children:g.jsx(L$,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,s=>{s.preventDefault(),i.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Se(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),xJ=v.forwardRef((e,t)=>{const r=Oo(ua,e.__scopePopover),n=v.useRef(!1),o=v.useRef(!1);return g.jsx(L$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;r.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),L$=v.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,h=Oo(ua,r),b=Pc(r);return Lf(),g.jsx(rc,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:g.jsx(np,{"data-state":q$(h.open),role:"dialog",id:h.contentId,...b,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),F$="PopoverClose",wJ=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Oo(F$,r);return g.jsx($$.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});wJ.displayName=F$;var EJ="PopoverArrow",CJ=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pc(r);return g.jsx(op,{...o,...n,ref:t})});CJ.displayName=EJ;function q$(e){return e?"open":"closed"}var RJ=D$,PJ=N$,SJ=I$,_J=k$;const Sc=e=>g.jsx(RJ,{"data-slot":"popover",...e}),_c=e=>g.jsx(PJ,{"data-slot":"popover-trigger",...e}),Tc=({className:e,align:t="center",sideOffset:r=4,matchTriggerWidth:n=!1,style:o,focus:i=!0,...s})=>g.jsx(SJ,{children:g.jsx(_J,{"data-slot":"popover-content",align:t,sideOffset:r,onOpenAutoFocus:l=>{!i&&l.preventDefault(),s?.onOpenAutoFocus?.(l)},className:le("z-50 w-72 p-4 rounded-md border bg-popover text-popover-foreground shadow-md outline-none open:animate-in closed:animate-out closed:fade-out-0 open:fade-in-0 closed:zoom-out-95 open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:{...o,...n&&{width:"var(--radix-popper-anchor-width)"}},...s})}),TJ=e=>{const{trigger:t,children:r,rootProps:n,triggerProps:o,contentProps:i,triggerAsChild:s=!0,matchTriggerWidth:l,triggerClassName:c,contentClassName:d,side:f="bottom",offset:p}=ac("Popover",e,{triggerAsChild:!0,side:"bottom"});return g.jsxs(Sc,{...n,children:[g.jsx(_c,{asChild:s,className:c,...o,children:t}),g.jsx(Tc,{className:d,matchTriggerWidth:l,side:f,sideOffset:p,...i,children:r})]})},MR=eo("m-1 transition ease-in-out delay-150 duration-300",{variants:{variant:{default:"border-foreground/10 border text-foreground bg-card hover:bg-card/80",primary:"border-foreground/10 border text-foreground bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-foreground/60 border bg-secondary text-secondary-foreground hover:bg-secondary/80",error:"border-transparent bg-error text-error-foreground hover:bg-error/80"}},defaultVariants:{variant:"default"}}),$J=({valueKey:e,values:t,setValues:r,items:n,maxCount:o,setIsPopoverOpen:i})=>{const s=h=>{if(h.key==="Enter")i(!0);else if(h.key==="Backspace"&&!h.currentTarget.value){const b=[...t];b.pop(),r?.(b)}},l=h=>{const b=t.includes(h)?t.filter(w=>w!==h):[...t,h];r?.(b)},c=()=>{r?.([])};return{handleInputKeyDown:s,toggleOption:l,handleClear:c,handleTogglePopover:()=>{i(h=>!h)},clearExtraOptions:()=>{const h=t.slice(0,o);r?.(h)},toggleAll:()=>{const h=n.filter(b=>!b.disabled);if(t.length===h.length)c();else{const b=h.map(w=>w[e]);r?.(b)}}}},AJ=({items:e=[],value:t,valueKey:r="value",labelKey:n="label",onChange:o,variant:i,defaultValue:s=[],placeholder:l="Seleccionar",maxCount:c=3,className:d,renderOption:f=C=>C[n],withCheckbox:p=!1,showSearch:h=!0,showSelectAll:b=!0,rootProps:w,...y})=>{const[C=[],x]=ut({prop:t,onChange:o,defaultProp:s}),[P,S]=ut({prop:y.open,onChange:y.onOpenChange,defaultProp:y.defaultOpen||!1}),D=v.useMemo(()=>e.filter(N=>!N.disabled),[e]),{handleInputKeyDown:_,toggleOption:T,handleClear:A,handleTogglePopover:M,clearExtraOptions:U,toggleAll:J}=$J({valueKey:r,values:C,setValues:x,items:e,maxCount:c,setIsPopoverOpen:S});return g.jsxs(Sc,{open:P,onOpenChange:S,"data-slot":"multi-select",...w,children:[g.jsx(_c,{asChild:!0,"data-slot":"multi-select-trigger",children:g.jsx(tr,{...y,onClick:M,className:le("flex w-full p-1 rounded-md border border-input min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit",d),children:C.length>0?g.jsxs("div",{className:"flex justify-between items-center w-full",children:[g.jsxs("div",{className:"flex flex-wrap items-center","data-slot":"multi-select-tags",children:[C.slice(0,c).map(N=>{const W=e.find(L=>L[r]===N),F=W?.icon;return g.jsxs(vv,{"data-slot":"multi-select-tag",className:le(MR({variant:i})),closable:!0,onClose:()=>T(N),children:[F&&g.jsx(F,{className:"h-4 w-4 mr-2"}),W&&f?.(W)]},N)}),C.length>c&&g.jsx(vv,{"data-slot":"multi-select-tag",className:le(MR({variant:i})),closable:!0,onClose:U,children:`+ ${C.length-c} más`})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx(jf,{"data-slot":"multi-select-clear",className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:N=>{N.stopPropagation(),A()}}),g.jsx(c_,{"data-slot":"multi-select-divider",orientation:"vertical",className:"flex min-h-6 h-full"}),g.jsx(af,{"data-slot":"multi-select-trigger-icon",className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):g.jsxs("div",{className:"flex items-center justify-between w-full mx-auto","data-slot":"multi-select-trigger-empty",children:[g.jsx("span",{className:"text-sm text-foreground font-normal mx-2","data-slot":"multi-select-placeholder",children:l}),g.jsx(af,{"data-slot":"multi-select-trigger-icon",className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),g.jsx(Tc,{"data-slot":"multi-select-content",className:"p-0",matchTriggerWidth:!0,align:"start",asChild:!0,onEscapeKeyDown:()=>S(!1),children:g.jsxs(uc,{children:[h&&g.jsx(Uf,{"data-slot":"multi-select-input",placeholder:"Buscar...",onKeyDown:_}),g.jsxs(zf,{"data-slot":"multi-select-list",children:[g.jsx(Gf,{"data-slot":"multi-select-empty",children:"No results found."}),g.jsxs(sS,{"data-slot":"multi-select-group",children:[b&&g.jsxs(Ku,{"data-slot":"multi-select-item",onSelect:J,className:le("cursor-pointer",!p&&C.length===D.length&&"bg-accent text-accent-foreground"),children:[p&&g.jsx("div",{className:le("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",C.length===D.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:g.jsx(of,{className:"h-4 w-4"})}),g.jsx("span",{children:"(Seleccionar todo)"})]},"all"),e.map(N=>{const W=C.includes(N[r]);return g.jsxs(Ku,{"data-slot":"multi-select-item",onSelect:()=>!N.disabled&&T(N[r]),className:le(N.disabled?"!bg-neutral-50 !text-neutral-400":"cursor-pointer",!p&&W&&"!bg-accent !text-accent-foreground"),children:[p&&g.jsx("div",{className:le("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",W?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:g.jsx(of,{className:"h-4 w-4"})}),N.icon&&g.jsx(N.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),g.jsx("span",{children:f?.(N)})]},N[r])})]})]})]})})]})},DJ=({value:e,onChange:t,defaultValue:r,className:n,min:o,max:i,...s})=>{const[l,c]=ut({prop:e,onChange:t,defaultProp:r}),d=l??o??0,f=w=>{const y=parseInt(w.target.value,10);c(y)},p=()=>{if(lt.isUndefined(l)&&lt.isNumber(o))return c(o??0);const w=d+1;(lt.isUndefined(i)||w<=i)&&c(w)},h=()=>{if(lt.isUndefined(l)&&lt.isNumber(i))return c(i??0);const w=d-1;(lt.isUndefined(o)||w>=o)&&c(w)},b=()=>{const w=lt.isNumber(o)&&d<o,y=lt.isNumber(i)&&d>i;w?c(o):y&&c(i)};return g.jsxs("div",{className:"relative w-full","data-slot":"number-input-container",children:[g.jsx("input",{...s,type:"number",value:l,onChange:f,onBlur:b,min:o,max:i,className:le("numberInput","h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","file:border-0 file:bg-transparent file:text-sm file:font-medium",n),"data-slot":"number-input"}),g.jsxs("div",{className:"absolute right-0 top-0 h-full w-6 py-1 gap-px justify-center items-center flex flex-col border-l border-input overflow-hidden",children:[g.jsx(tr,{variant:"ghost",size:"icon",onClick:p,className:"h-4 w-4 grow rounded-sm","data-testid":"increment-trigger","data-slot":"number-input-increment",children:g.jsx(EP,{"data-slot":"number-input-increment-icon"})}),g.jsx(tr,{variant:"ghost",size:"icon",onClick:h,className:"h-4 w-4 grow rounded-sm","data-testid":"decrement-trigger","data-slot":"number-input-decrement",children:g.jsx(wP,{"data-slot":"number-input-decrement-icon"})})]})]})},zi=({isActive:e=!1,...t})=>g.jsx("button",{...t,"data-slot":"pagination-option","data-active":e,"data-dots":t.children===Co,className:le("transition-colors border py-2 px-4 w-[50px] h-full data-[active=false]:hover:bg-accent","data-[active=true]:bg-primary data-[active=true]:text-primary-foreground data-[active=true]:border-transparent data-[active=true]:hover:bg-primary/90",t.className)}),MJ=({optionProps:e,className:t,containerProps:r,...n})=>{const{paginationRange:o,currentPage:i,goTo:s,maxPage:l,next:c,prev:d,isLastPage:f,isFirstPage:p}=W_(n);return g.jsxs("div",{...r,className:le("flex items-end select-none h-10",r?.className,t),"data-slot":"pagination",children:[g.jsxs(zi,{...e,disabled:p,onClick:()=>s(1),className:le("rounded-l-md",e?.className),children:[g.jsx(Uj,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a primera página"})]}),g.jsxs(zi,{...e,onClick:d,disabled:p,children:[g.jsx(zv,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a página anterior"})]}),o.map(h=>g.jsx(g.Fragment,{children:h===Co?g.jsx(zi,{className:le("pointer-events-none",e?.className),children:Co},h):R.createElement(zi,{...e,isActive:h===i,onClick:()=>s(h),key:h},h,g.jsxs("span",{className:"sr-only",children:["Ir a la página ",h]}))})),g.jsxs(zi,{...e,onClick:c,disabled:f,children:[g.jsx(ic,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a próxima página"})]}),g.jsxs(zi,{...e,disabled:f,onClick:()=>s(l),className:le("rounded-r-md",e?.className),children:[g.jsx(Gj,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a última página"})]})]})},OJ=({className:e,containerClassName:t,showIcon:r=g.jsx(u5,{className:"h-4 w-4"}),hideIcon:n=g.jsx(s5,{className:"h-4 w-4"}),onShow:o,onHide:i,toggleable:s=!0,...l})=>{const[c,d]=H_(!1),f=()=>{d(),c?i?.():o?.()};return g.jsxs("div",{className:le("relative",t),"data-slot":"password",children:[g.jsx(B_,{...l,type:c?"text":"password",className:le("pr-10","[&::-ms-reveal]:hidden [&::-ms-clear]:hidden",e)}),g.jsx("button",{"data-slot":"password-toggle",type:"button",onClick:f,disabled:!s,className:le("absolute right-3 top-1/2 -translate-y-1/2 text-gray-500",s?"hover:text-gray-700":"opacity-50 cursor-not-allowed"),children:c?n:r})]})},NJ=({items:e=[],valueKey:t="value",labelKey:r="label",value:n,onChange:o,defaultValue:i,renderOption:s=y=>y?.[r],triggerProps:l,contentClassName:c,contentProps:d,itemClassName:f,itemProps:p,className:h,placeholder:b="Seleccionar",...w})=>{const[y,C]=ut({prop:n,onChange:x=>{if(!o)return;const P=e.find(S=>S[t]===x);o?.(x,P)},defaultProp:i});return g.jsxs(gA,{...w,onValueChange:C,value:y,children:[g.jsx(xA,{className:h,...l,children:g.jsx(yA,{placeholder:b})}),g.jsx(CA,{className:c,...d,children:g.jsx(bA,{children:e.map((x,P)=>R.createElement(PA,{...p,className:f,key:P,disabled:x?.disabled,value:x[t]},s?.(x)))})})]})};function OR(e,[t,r]){return Math.min(r,Math.max(t,e))}function j$(e){const t=IJ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(LJ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function IJ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=qJ(o),l=FJ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kJ=Symbol("radix.slottable");function LJ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kJ}function FJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function qJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var jJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$r=jJ.reduce((e,t)=>{const r=j$(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function BJ(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function VJ(e){const t=KJ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(HJ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function KJ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=zJ(o),l=UJ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WJ=Symbol("radix.slottable");function HJ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WJ}function UJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function zJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var GJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],YJ=GJ.reduce((e,t)=>{const r=VJ(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),B$=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),XJ="VisuallyHidden",V$=v.forwardRef((e,t)=>g.jsx(YJ.span,{...e,ref:t,style:{...B$,...e.style}}));V$.displayName=XJ;var ZJ=V$,QJ=[" ","Enter","ArrowUp","ArrowDown"],JJ=[" ","Enter"],mi="Select",[lp,up,eee]=Dg(mi),[wa]=wn(mi,[eee,Do]),cp=Do(),[tee,No]=wa(mi),[ree,nee]=wa(mi),K$=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:h,required:b,form:w}=e,y=cp(t),[C,x]=v.useState(null),[P,S]=v.useState(null),[D,_]=v.useState(!1),T=Mg(d),[A,M]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:mi}),[U,J]=ut({prop:s,defaultProp:l,onChange:c,caller:mi}),N=v.useRef(null),W=C?w||!!C.closest("form"):!0,[F,L]=v.useState(new Set),G=Array.from(F).map(k=>k.props.value).join(";");return g.jsx(bc,{...y,children:g.jsxs(tee,{required:b,scope:t,trigger:C,onTriggerChange:x,valueNode:P,onValueNodeChange:S,valueNodeHasChildren:D,onValueNodeHasChildrenChange:_,contentId:_t(),value:U,onValueChange:J,open:A,onOpenChange:M,dir:T,triggerPointerDownPosRef:N,disabled:h,children:[g.jsx(lp.Provider,{scope:t,children:g.jsx(ree,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(k=>{L(q=>new Set(q).add(k))},[]),onNativeOptionRemove:v.useCallback(k=>{L(q=>{const B=new Set(q);return B.delete(k),B})},[]),children:r})}),W?g.jsxs(pA,{"aria-hidden":!0,required:b,tabIndex:-1,name:f,autoComplete:p,value:U,onChange:k=>J(k.target.value),disabled:h,form:w,children:[U===void 0?g.jsx("option",{value:""}):null,Array.from(F)]},G):null]})})};K$.displayName=mi;var W$="SelectTrigger",H$=v.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=cp(r),s=No(W$,r),l=s.disabled||n,c=Ve(t,s.onTriggerChange),d=up(r),f=v.useRef("touch"),[p,h,b]=hA(y=>{const C=d().filter(S=>!S.disabled),x=C.find(S=>S.value===s.value),P=vA(C,y,x);P!==void 0&&s.onValueChange(P.value)}),w=y=>{l||(s.onOpenChange(!0),b()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return g.jsx(yc,{asChild:!0,...i,children:g.jsx($r.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":mA(s.value)?"":void 0,...o,ref:c,onClick:Se(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&w(y)}),onPointerDown:Se(o.onPointerDown,y=>{f.current=y.pointerType;const C=y.target;C.hasPointerCapture(y.pointerId)&&C.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(w(y),y.preventDefault())}),onKeyDown:Se(o.onKeyDown,y=>{const C=p.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&h(y.key),!(C&&y.key===" ")&&QJ.includes(y.key)&&(w(),y.preventDefault())})})})});H$.displayName=W$;var U$="SelectValue",z$=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:s="",...l}=e,c=No(U$,r),{onValueNodeHasChildrenChange:d}=c,f=i!==void 0,p=Ve(t,c.onValueNodeChange);return Kt(()=>{d(f)},[d,f]),g.jsx($r.span,{...l,ref:p,style:{pointerEvents:"none"},children:mA(c.value)?g.jsx(g.Fragment,{children:s}):i})});z$.displayName=U$;var oee="SelectIcon",G$=v.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return g.jsx($r.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});G$.displayName=oee;var iee="SelectPortal",Y$=e=>g.jsx(ha,{asChild:!0,...e});Y$.displayName=iee;var hi="SelectContent",X$=v.forwardRef((e,t)=>{const r=No(hi,e.__scopeSelect),[n,o]=v.useState();if(Kt(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?da.createPortal(g.jsx(Z$,{scope:e.__scopeSelect,children:g.jsx(lp.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),i):null}return g.jsx(Q$,{...e,ref:t})});X$.displayName=hi;var Xr=10,[Z$,Io]=wa(hi),aee="SelectContentImpl",see=j$("SelectContent.RemoveScroll"),Q$=v.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:b,sticky:w,hideWhenDetached:y,avoidCollisions:C,...x}=e,P=No(hi,r),[S,D]=v.useState(null),[_,T]=v.useState(null),A=Ve(t,te=>D(te)),[M,U]=v.useState(null),[J,N]=v.useState(null),W=up(r),[F,L]=v.useState(!1),G=v.useRef(!1);v.useEffect(()=>{if(S)return oc(S)},[S]),Lf();const k=v.useCallback(te=>{const[ve,...j]=W().map(Z=>Z.ref.current),[ae]=j.slice(-1),oe=document.activeElement;for(const Z of te)if(Z===oe||(Z?.scrollIntoView({block:"nearest"}),Z===ve&&_&&(_.scrollTop=0),Z===ae&&_&&(_.scrollTop=_.scrollHeight),Z?.focus(),document.activeElement!==oe))return},[W,_]),q=v.useCallback(()=>k([M,S]),[k,M,S]);v.useEffect(()=>{F&&q()},[F,q]);const{onOpenChange:B,triggerPointerDownPosRef:re}=P;v.useEffect(()=>{if(S){let te={x:0,y:0};const ve=ae=>{te={x:Math.abs(Math.round(ae.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(ae.pageY)-(re.current?.y??0))}},j=ae=>{te.x<=10&&te.y<=10?ae.preventDefault():S.contains(ae.target)||B(!1),document.removeEventListener("pointermove",ve),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",j,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",j,{capture:!0})}}},[S,B,re]),v.useEffect(()=>{const te=()=>B(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[B]);const[K,ie]=hA(te=>{const ve=W().filter(oe=>!oe.disabled),j=ve.find(oe=>oe.ref.current===document.activeElement),ae=vA(ve,te,j);ae&&setTimeout(()=>ae.ref.current.focus())}),Y=v.useCallback((te,ve,j)=>{const ae=!G.current&&!j;(P.value!==void 0&&P.value===ve||ae)&&(U(te),ae&&(G.current=!0))},[P.value]),X=v.useCallback(()=>S?.focus(),[S]),ce=v.useCallback((te,ve,j)=>{const ae=!G.current&&!j;(P.value!==void 0&&P.value===ve||ae)&&N(te)},[P.value]),ue=n==="popper"?gv:J$,pe=ue===gv?{side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:b,sticky:w,hideWhenDetached:y,avoidCollisions:C}:{};return g.jsx(Z$,{scope:r,content:S,viewport:_,onViewportChange:T,itemRefCallback:Y,selectedItem:M,onItemLeave:X,itemTextRefCallback:ce,focusSelectedItem:q,selectedItemText:J,position:n,isPositioned:F,searchRef:K,children:g.jsx(va,{as:see,allowPinchZoom:!0,children:g.jsx(rc,{asChild:!0,trapped:P.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Se(o,te=>{P.trigger?.focus({preventScroll:!0}),te.preventDefault()}),children:g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:g.jsx(ue,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:te=>te.preventDefault(),...x,...pe,onPlaced:()=>L(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Se(x.onKeyDown,te=>{const ve=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ve&&te.key.length===1&&ie(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ae=W().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const oe=te.target,Z=ae.indexOf(oe);ae=ae.slice(Z+1)}setTimeout(()=>k(ae)),te.preventDefault()}})})})})})})});Q$.displayName=aee;var lee="SelectItemAlignedPosition",J$=v.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=No(hi,r),s=Io(hi,r),[l,c]=v.useState(null),[d,f]=v.useState(null),p=Ve(t,A=>f(A)),h=up(r),b=v.useRef(!1),w=v.useRef(!0),{viewport:y,selectedItem:C,selectedItemText:x,focusSelectedItem:P}=s,S=v.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&y&&C&&x){const A=i.trigger.getBoundingClientRect(),M=d.getBoundingClientRect(),U=i.valueNode.getBoundingClientRect(),J=x.getBoundingClientRect();if(i.dir!=="rtl"){const oe=J.left-M.left,Z=U.left-oe,we=A.left-Z,De=A.width+we,Ue=Math.max(De,M.width),wt=window.innerWidth-Xr,mt=OR(Z,[Xr,Math.max(Xr,wt-Ue)]);l.style.minWidth=De+"px",l.style.left=mt+"px"}else{const oe=M.right-J.right,Z=window.innerWidth-U.right-oe,we=window.innerWidth-A.right-Z,De=A.width+we,Ue=Math.max(De,M.width),wt=window.innerWidth-Xr,mt=OR(Z,[Xr,Math.max(Xr,wt-Ue)]);l.style.minWidth=De+"px",l.style.right=mt+"px"}const N=h(),W=window.innerHeight-Xr*2,F=y.scrollHeight,L=window.getComputedStyle(d),G=parseInt(L.borderTopWidth,10),k=parseInt(L.paddingTop,10),q=parseInt(L.borderBottomWidth,10),B=parseInt(L.paddingBottom,10),re=G+k+F+B+q,K=Math.min(C.offsetHeight*5,re),ie=window.getComputedStyle(y),Y=parseInt(ie.paddingTop,10),X=parseInt(ie.paddingBottom,10),ce=A.top+A.height/2-Xr,ue=W-ce,pe=C.offsetHeight/2,te=C.offsetTop+pe,ve=G+k+te,j=re-ve;if(ve<=ce){const oe=N.length>0&&C===N[N.length-1].ref.current;l.style.bottom="0px";const Z=d.clientHeight-y.offsetTop-y.offsetHeight,we=Math.max(ue,pe+(oe?X:0)+Z+q),De=ve+we;l.style.height=De+"px"}else{const oe=N.length>0&&C===N[0].ref.current;l.style.top="0px";const we=Math.max(ce,G+y.offsetTop+(oe?Y:0)+pe)+j;l.style.height=we+"px",y.scrollTop=ve-ce+y.offsetTop}l.style.margin=`${Xr}px 0`,l.style.minHeight=K+"px",l.style.maxHeight=W+"px",n?.(),requestAnimationFrame(()=>b.current=!0)}},[h,i.trigger,i.valueNode,l,d,y,C,x,i.dir,n]);Kt(()=>S(),[S]);const[D,_]=v.useState();Kt(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const T=v.useCallback(A=>{A&&w.current===!0&&(S(),P?.(),w.current=!1)},[S,P]);return g.jsx(cee,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:b,onScrollButtonChange:T,children:g.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:g.jsx($r.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});J$.displayName=lee;var uee="SelectPopperPosition",gv=v.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Xr,...i}=e,s=cp(r);return g.jsx(np,{...s,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gv.displayName=uee;var[cee,Zg]=wa(hi,{}),bv="SelectViewport",eA=v.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=Io(bv,r),s=Zg(bv,r),l=Ve(t,i.onViewportChange),c=v.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),g.jsx(lp.Slot,{scope:r,children:g.jsx($r.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Se(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=s;if(h?.current&&p){const b=Math.abs(c.current-f.scrollTop);if(b>0){const w=window.innerHeight-Xr*2,y=parseFloat(p.style.minHeight),C=parseFloat(p.style.height),x=Math.max(y,C);if(x<w){const P=x+b,S=Math.min(w,P),D=P-S;p.style.height=S+"px",p.style.bottom==="0px"&&(f.scrollTop=D>0?D:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});eA.displayName=bv;var tA="SelectGroup",[dee,fee]=wa(tA),rA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=_t();return g.jsx(dee,{scope:r,id:o,children:g.jsx($r.div,{role:"group","aria-labelledby":o,...n,ref:t})})});rA.displayName=tA;var nA="SelectLabel",oA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=fee(nA,r);return g.jsx($r.div,{id:o.id,...n,ref:t})});oA.displayName=nA;var _f="SelectItem",[pee,iA]=wa(_f),aA=v.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...s}=e,l=No(_f,r),c=Io(_f,r),d=l.value===n,[f,p]=v.useState(i??""),[h,b]=v.useState(!1),w=Ve(t,P=>c.itemRefCallback?.(P,n,o)),y=_t(),C=v.useRef("touch"),x=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(pee,{scope:r,value:n,disabled:o,textId:y,isSelected:d,onItemTextChange:v.useCallback(P=>{p(S=>S||(P?.textContent??"").trim())},[]),children:g.jsx(lp.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:g.jsx($r.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:Se(s.onFocus,()=>b(!0)),onBlur:Se(s.onBlur,()=>b(!1)),onClick:Se(s.onClick,()=>{C.current!=="mouse"&&x()}),onPointerUp:Se(s.onPointerUp,()=>{C.current==="mouse"&&x()}),onPointerDown:Se(s.onPointerDown,P=>{C.current=P.pointerType}),onPointerMove:Se(s.onPointerMove,P=>{C.current=P.pointerType,o?c.onItemLeave?.():C.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(s.onPointerLeave,P=>{P.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Se(s.onKeyDown,P=>{c.searchRef?.current!==""&&P.key===" "||(JJ.includes(P.key)&&x(),P.key===" "&&P.preventDefault())})})})})});aA.displayName=_f;var Nu="SelectItemText",sA=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,s=No(Nu,r),l=Io(Nu,r),c=iA(Nu,r),d=nee(Nu,r),[f,p]=v.useState(null),h=Ve(t,x=>p(x),c.onItemTextChange,x=>l.itemTextRefCallback?.(x,c.value,c.disabled)),b=f?.textContent,w=v.useMemo(()=>g.jsx("option",{value:c.value,disabled:c.disabled,children:b},c.value),[c.disabled,c.value,b]),{onNativeOptionAdd:y,onNativeOptionRemove:C}=d;return Kt(()=>(y(w),()=>C(w)),[y,C,w]),g.jsxs(g.Fragment,{children:[g.jsx($r.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?da.createPortal(i.children,s.valueNode):null]})});sA.displayName=Nu;var lA="SelectItemIndicator",mee=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return iA(lA,r).isSelected?g.jsx($r.span,{"aria-hidden":!0,...n,ref:t}):null});mee.displayName=lA;var yv="SelectScrollUpButton",uA=v.forwardRef((e,t)=>{const r=Io(yv,e.__scopeSelect),n=Zg(yv,e.__scopeSelect),[o,i]=v.useState(!1),s=Ve(t,n.onScrollButtonChange);return Kt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollTop>0;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?g.jsx(dA,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});uA.displayName=yv;var xv="SelectScrollDownButton",cA=v.forwardRef((e,t)=>{const r=Io(xv,e.__scopeSelect),n=Zg(xv,e.__scopeSelect),[o,i]=v.useState(!1),s=Ve(t,n.onScrollButtonChange);return Kt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;i(f)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?g.jsx(dA,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});cA.displayName=xv;var dA=v.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Io("SelectScrollButton",r),s=v.useRef(null),l=up(r),c=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>c(),[c]),Kt(()=>{l().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),g.jsx($r.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Se(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:Se(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:Se(o.onPointerLeave,()=>{c()})})}),hee="SelectSeparator",fA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return g.jsx($r.div,{"aria-hidden":!0,...n,ref:t})});fA.displayName=hee;var wv="SelectArrow",vee=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=cp(r),i=No(wv,r),s=Io(wv,r);return i.open&&s.position==="popper"?g.jsx(op,{...o,...n,ref:t}):null});vee.displayName=wv;var gee="SelectBubbleInput",pA=v.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=v.useRef(null),i=Ve(n,o),s=BJ(t);return v.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(p)}},[s,t]),g.jsx($r.select,{...r,style:{...B$,...r.style},ref:i,defaultValue:t})});pA.displayName=gee;function mA(e){return e===""||e===void 0}function hA(e){const t=Xt(e),r=v.useRef(""),n=v.useRef(0),o=v.useCallback(s=>{const l=r.current+s;t(l),(function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),i=v.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function vA(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=bee(e,Math.max(i,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function bee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var yee=K$,xee=H$,wee=z$,Eee=G$,Cee=Y$,Ree=X$,Pee=eA,See=rA,_ee=oA,Tee=aA,$ee=sA,Aee=uA,Dee=cA,Mee=fA;const gA=e=>g.jsx(yee,{"data-slot":"select",...e}),bA=({heading:e,children:t,...r})=>g.jsxs(See,{"data-slot":"select-group",...r,children:[e&&g.jsx(RA,{children:e}),t]}),yA=e=>g.jsx(wee,{"data-slot":"select-value",...e}),xA=({className:e,children:t,...r})=>g.jsxs(xee,{"data-slot":"select-trigger",className:le("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,g.jsx(Eee,{asChild:!0,"data-slot":"select-trigger-icon",children:g.jsx(af,{className:"h-4 w-4 shrink-0 opacity-50"})})]}),wA=({className:e,...t})=>g.jsx(Aee,{"data-slot":"select-scroll-up",className:le("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(EP,{className:"h-4 w-4"})}),EA=({className:e,...t})=>g.jsx(Dee,{"data-slot":"select-scroll-down",className:le("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(wP,{className:"h-4 w-4"})}),CA=({className:e,children:t,position:r="popper",...n})=>g.jsx(Cee,{children:g.jsxs(Ree,{"data-slot":"select-content",className:le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md open:animate-in closed:animate-out closed:fade-out-0 open:fade-in-0 closed:zoom-out-95 open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[g.jsx(wA,{}),g.jsx(Pee,{"data-slot":"select-viewport",className:le("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(EA,{})]})}),RA=({className:e,...t})=>g.jsx(_ee,{"data-slot":"select-label",className:le("py-1.5 px-2 text-sm font-semibold",e),...t}),PA=({className:e,children:t,...r})=>g.jsx(Tee,{"data-slot":"select-item",className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 px-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:g.jsx($ee,{"data-slot":"select-item-text",children:t})}),Oee=({className:e,...t})=>g.jsx(Mee,{"data-slot":"select-separator",className:le("-mx-1 my-1 h-px bg-muted",e),...t}),Nee=({isCircle:e,width:t,height:r,isLoading:n=!1,...o})=>{const i={width:t,height:r,...o.style};return!n&&o.children?o.children:g.jsx("div",{"data-slot":"skeleton",...o,className:le("[&>*]:opacity-0 w-fit","rounded w-full animate-pulse bg-muted min-h-[1.5em]",e&&"rounded-[50%] aspect-square",o.className),style:i})},Iee=({inline:e=!1,justify:t,align:r,direction:n="horizontal",gap:o=8,style:i,...s})=>{const l={display:e?"inline-flex":"flex",flexDirection:n==="vertical"?"column":"row",justifyContent:t,alignItems:r,gap:o};return g.jsx("div",{style:{...l,...i},...s,"data-slot":"stack"})},[SA,kee]=cc();function Lee({items:e=[],current:t,onChange:r,className:n,classNameList:o,classNameItem:i,classNameButton:s,classNameIndicator:l,classNameContent:c}){return g.jsxs(_A,{className:n,current:t,onChange:r,children:[g.jsx(TA,{className:o,children:e?.map((d,f)=>g.jsx($A,{value:f,title:d?.title,indicator:d?.indicator,classNameItem:i,classNameButton:s,classNameIndicator:l},f))}),e?.map((d,f)=>g.jsx(AA,{className:c,value:f,children:d?.content},f))]})}function _A({current:e,onChange:t,className:r,...n}){const[o=0,i]=ut({prop:e,onChange:t,defaultProp:0});return g.jsx(kee,{value:{activeStep:o,setActiveStep:i},children:g.jsx("div",{"data-slot":"stepper",className:le("flex flex-col items-center w-full transition-all ease-in delay-150",r),...n})})}function TA({children:e,className:t,...r}){return g.jsx("ul",{"data-slot":"stepper-list",className:le("flex flex-col sm:flex-row sm:gap-0 gap-4 items-center w-full text-xs font-medium text-gray-900 sm:text-base mb-8",t),...r,children:e})}function $A({disabled:e,value:t,title:r,indicator:n,classNameItem:o,classNameButton:i,classNameIndicator:s}){const{activeStep:l,setActiveStep:c}=SA();return g.jsx("li",{"data-slot":"stepper-trigger",className:le("flex relative text-primary transition-all ease-in delay-150","last:w-full last:sm:w-auto last:after:hidden",`w-full after:content-[''] sm:after:w-full after:h-full after:w-0.5 sm:after:h-0.5 ${l>t?"after:bg-primary":"after:bg-gray-300"} after:inline-block after:absolute after:top-5 sm:after:top-5 after:left-4 sm:after:left-10`,o),children:g.jsxs("button",{onClick:()=>!e&&c(t),className:le("z-10 flex items-center justify-center sm:flex-col gap-3 flex-row whitespace-nowrap cursor-pointer group transition-color ease-in delay-150",l>=t?"text-primary":"text-gray-500",e&&"cursor-not-allowed",i),children:[g.jsx("span",{"data-slot":"stepper-trigger-indicator",className:le("flex items-center transition-all overflow-hidden ease-in justify-center group-hover:scale-105 sm:w-10 sm:h-10 mx-auto text-sm border-2 rounded-full w-8 h-8",l>t&&"bg-primary border-primary text-primary-foreground",l===t&&"bg-gray-100 text-primary border-primary",l<t&&"bg-white text-gray-500 border-input",e&&"text-gray-300",s),children:l>t?"✓":n||t+1}),r]})})}function AA({value:e,className:t="w-full",...r}){const{activeStep:n}=SA();return n===e?g.jsx("div",{"data-slot":"stepper-content",className:t,...r}):null}const Fee=({className:e,children:t,containerProps:r,containerClassName:n,...o})=>{const i=R.useId(),[s=!1,l]=ut({prop:o.checked,onChange:o.onChange,defaultProp:o.defaultChecked}),c=()=>!o.disabled&&l(p=>!p),d=s?"checked":"unchecked",f=o.id??i;return g.jsxs("div",{"data-slot":"switch",...r,className:le("flex gap-x-2 items-center",n),children:[g.jsxs("button",{"data-slot":"switch-trigger",disabled:o.disabled,onClick:c,"data-state":d,type:"button",className:le("peer w-11 h-6 bg-input rounded-full border-2 border-transparent transition-colors","data-[state=checked]:bg-primary",e),children:[g.jsx("div",{"data-state":d,className:le("w-5 h-5 pointers-event-none bg-primary-foreground rounded-full transition-all","transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")}),g.jsx("input",{...o,id:f,checked:s,onChange:p=>l(p.currentTarget.checked),type:"checkbox",className:"sr-only","aria-hidden":!0})]}),t&&g.jsx(pc,{htmlFor:f,children:t})]})},DA=({className:e,containerClassName:t,containerProps:r,...n})=>g.jsx("div",{"data-slot":"table-container",className:le("relative w-full overflow-auto rounded-md border",t),...r,children:g.jsx("table",{"data-slot":"table",className:le("w-full caption-bottom text-sm",e),...n})}),MA=({className:e,...t})=>g.jsx("thead",{"data-slot":"table-header",className:le("[&_tr]:border-b",e),...t}),OA=({className:e,...t})=>g.jsx("tbody",{"data-slot":"table-body",className:le("[&_tr:last-child]:border-0",e),...t}),qee=({className:e,...t})=>g.jsx("tfoot",{"data-slot":"table-footer",className:le("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}),Ev=({className:e,...t})=>g.jsx("tr",{"data-slot":"table-row",className:le("border-b transition-colors hover:bg-muted data-[selected=true]:bg-muted",e),...t}),NA=({className:e,...t})=>g.jsx("th",{"data-slot":"table-head",className:le("h-12 px-4 text-left align-middle font-medium text-muted-foreground sticky top-0 bg-background [&:has([role=checkbox])]:pr-0",e),...t}),IA=({className:e,...t})=>g.jsx("td",{"data-slot":"table-cell",className:le("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}),jee=({className:e,...t})=>g.jsx("caption",{"data-slot":"table-caption",className:le("mt-4 text-sm text-muted-foreground",e),...t}),Bee=({data:e=[],columns:t=[],onRowClick:r,onDoubleClick:n,selected:o,theadClassName:i,theadProps:s,tbodyClassName:l,tbodyProps:c,trClassName:d,trProps:f,thClassName:p,thProps:h,tdClassName:b,tdProps:w,...y})=>g.jsxs(DA,{...y,className:le(y?.className),children:[g.jsx(MA,{...s,className:le(s?.className,i),children:g.jsx(Ev,{...f,className:le(f?.className,d),children:t.map((C,x)=>g.jsx(NA,{...h,className:le(h?.className,p),style:{width:C.width},children:lt.isFunction(C.header)?C.header?.():C.header},x))})}),g.jsx(OA,{...c,className:le(c?.className,l),children:e.map((C,x)=>g.jsx(Ev,{...f,"data-selected":o?.(C),className:le(f?.className,d),children:t.map((P,S)=>g.jsx(IA,{...w,onClick:D=>{w?.onClick?.(D),r?.(C)},onDoubleClick:()=>n?.(C),className:le(w?.className,b),children:P.cell?.(C,S)||C[P.key]},S))},x))})]}),Jd=[10,25,50],Vee=({containerClassName:e,containerProps:t,selectClassName:r,selectProps:n,sizes:o=Jd,...i})=>{const[s=Jd[0],l]=ut({onChange:i?.setPageSize,prop:i?.pageSize,defaultProp:Jd[0]}),{range:c,next:d,prev:f,isFirstPage:p,isLastPage:h,goTo:b}=Ag({...i,pageSize:s}),w=y=>{const{value:C}=y.target,x=Number(C);l(x),b(1)};return g.jsxs("div",{"data-slot":"table-pagination",...t,className:le("flex justify-center items-center gap-x-4 bg-background border border-[#D9D9D9] rounded-2xl py-2",e),children:[o&&g.jsx("select",{"data-slot":"table-pagination-size-trigger",...n,value:s,onChange:w,className:le("border border-input rounded-md w-fit min-w-[3rem] bg-background p-2 ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),children:o.map((y,C)=>g.jsx("option",{value:y,"data-slot":"table-pagination-size-option",children:y},C))}),g.jsxs("span",{"data-slot":"table-pagination-range",children:[c.start," - ",c.end," de ",i.totalItems]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(tr,{"data-slot":"table-pagination-prev",size:"icon",variant:"ghost",disabled:p,onClick:f,children:g.jsx(zv,{"data-slot":"table-pagination-prev-icon"})}),g.jsx(tr,{"data-slot":"table-pagination-next",size:"icon",variant:"ghost",disabled:h,onClick:d,children:g.jsx(ic,{"data-slot":"table-pagination-next-icon"})})]})]})},[dp,Kee]=cc(),Wee=({children:e,value:t,onChange:r,defaultValue:n,variant:o="default",...i})=>{const[s="",l]=ut({prop:t,onChange:r,defaultProp:n}),[c,d]=R.useState(null);return g.jsx(Kee,{value:{activeTab:s,setActiveTab:l,setTargetRef:d,targetRef:c,variant:o},children:g.jsx("div",{"data-slot":"tabs",...i,children:e})})},Hee=({children:e,className:t,indicatorClassName:r})=>{const{targetRef:n}=dp();return g.jsxs("div",{"data-slot":"tabs-list",className:le("relative mb-4",t),children:[g.jsx("div",{"data-slot":"tabs-content",className:"flex",children:e}),g.jsx(Gee,{targetRef:n,indicatorClassName:r})]})},Uee=({value:e,className:t,...r})=>{const{activeTab:n,setActiveTab:o,setTargetRef:i,variant:s}=dp(),l=n===e;return g.jsx("button",{"data-slot":"tabs-trigger",...r,type:"button",ref:c=>{l&&i(c)},onClick:()=>o(e),"data-tab":e,"data-selected":l,"aria-selected":l,className:le("px-2 py-2 cursor-pointer w-full min-w-[100px] text-center rounded-t font-semibold select-none",s==="background"?"hover:bg-transparent aria-selected:text-primary-foreground rounded":"hover:bg-accent hover:text-accent-foreground",t)})},zee=({value:e,...t})=>{const{activeTab:r}=dp();return r===e?g.jsx("div",{"data-slot":"tabs-content",...t}):null},Gee=({targetRef:e,indicatorClassName:t})=>{const r=R.useRef(null),n=r?.current,o=R.useRef(null),{variant:i}=dp(),s=()=>{if(!e||!n)return;const l=e.offsetLeft,c=e.offsetWidth;n.style.width=c+"px",n.style.left=l+"px"};return R.useEffect(()=>{if(e)return s(),o.current=new ResizeObserver(s),o.current.observe(e),()=>{o.current?.disconnect()}},[e]),g.jsx("div",{"data-slot":"tabs-indicator",ref:r,className:le("transition-all duration-300 absolute rounded bg-primary",i==="background"?"inset-0 -z-10 h-full top-0":"top-full h-[3px]",t)})},Yee=({className:e,...t})=>g.jsx("textarea",{...t,onChange:r=>t.onChange?.(r.target.value),"data-slot":"textarea",className:le("min-h-[60px] w-full rounded-md px-3 py-2 text-sm placeholder:text-muted-foreground","border border-input bg-background","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e)}),Xee={done:"var(--color-primary)",pending:"#cdcdcd",error:"var(--color-error)"},Zee=({items:e,classNameContainer:t,containerProps:r,...n})=>g.jsx(kA,{className:t,...r,children:e.map((o,i)=>g.jsx(LA,{icon:o.icon,color:o.color,status:o.status,...n,children:o.content},i))}),kA=e=>g.jsx("ul",{"data-slot":"timeline",...e,className:le("relative flex justify-center flex-col border-input",e.className)}),LA=({icon:e,status:t,color:r,classNameItemDot:n,classNameItemContainerDot:o,classNameItemContent:i,itemsProps:s,children:l,...c})=>g.jsxs("li",{"data-slot":"timeline-item",className:le("rounded-lg w-full px-2 gap-1 grid hover:bg-muted transition-colors ease-in grid-cols-[minmax(auto,20px)_1fr]",c.className),...c,children:[g.jsx(FA,{icon:e,status:t,color:r,classNameDot:n,classNameContainerDot:o}),g.jsx(qA,{className:i,...s,children:l})]}),FA=({icon:e,status:t="pending",color:r,classNameDot:n,classNameContainerDot:o})=>g.jsx("div",{"data-slot":"timeline-item-dot",className:le("relative pb-6 last:after:hidden after:absolute after:top-0 after:bottom-0 after:left-1/2 after:w-px after:-translate-x-1/2 after:bg-gray-200",o),children:g.jsx("div",{"data-slot":"timeline-item-dot-icon",className:le("relative z-10 flex text-white items-center justify-center rounded-full left-1/2 -translate-x-1/2",e?"aspect-square p-1.5 min-h-7 min-w-7 top-2":"size-2 top-4",n),style:{backgroundColor:r||Xee?.[t]},children:e})}),qA=e=>g.jsx("div",{"data-slot":"timeline-item-content",...e,className:le("grow px-2 pb-4 pt-2",e.className)}),Qee=eo(["flex justify-between items-center transition-all","text-primary-foreground","pointer-events-auto relative w-full rounded-xl p-3 shadow-lg"],{variants:{variant:{info:"bg-primary text-primary-foreground",error:"bg-error text-error-foreground",success:"bg-success text-success-foreground",loading:"bg-background text-foreground"}},defaultVariants:{variant:"info"}}),Jee=eo("",{variants:{variant:{info:"text-primary-foreground",error:"text-error-foreground",success:"text-success-foreground",loading:"text-foreground animate-spin"}},defaultVariants:{variant:"info"}}),jA=({title:e,description:t,type:r,iconClassName:n,...o})=>{const i=VA[r];return g.jsxs("div",{...o,"data-slot":"toast",className:le(Qee({variant:r}),o.className),children:[g.jsx("div",{className:le("p-1 text-primary-foreground pr-2",n),children:g.jsx(i,{size:22,className:le(Jee({variant:r})),"data-slot":"toast-icon"})}),g.jsxs("div",{className:"grid gap-1 grow","data-slot":"toast-content",children:[e&&g.jsx("h4",{...o.titleProps,className:le("text-sm font-semibold",o.titleClassName),"data-slot":"toast-title",children:e}),g.jsx("div",{...o.descriptionProps,className:le("text-sm font-normal opacity-90 p-0 overflow-hidden",o.descriptionClassName),"data-slot":"toast-description",children:t})]})]})},NR=e=>{let t;const r=new Set,n=(d,f)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(b=>b(t,h))}},o=()=>t,l={setState:n,getState:o,getInitialState:()=>c,subscribe:d=>(r.add(d),()=>r.delete(d))},c=t=e(n,o,l);return l},ete=(e=>e?NR(e):NR),tte=e=>e;function rte(e,t=tte){const r=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(r),r}const IR=e=>{const t=ete(e),r=n=>rte(t,n);return Object.assign(r,t),r},nte=(e=>e?IR(e):IR);let ote=0;const BA=3e3,kR=(e,t,r=BA)=>{setTimeout(()=>e(t),r)},Qg=nte((e,t)=>({toasts:[],addToast:r=>{const n=++ote,o={...r,id:n};return e(i=>({toasts:[...i.toasts,o]})),r.type!=="loading"&&kR(t().removeToast,n,r?.duration||BA),n},removeToast:r=>{e(n=>({toasts:n.toasts.filter(o=>o.id!==r)}))},updateToast:(r,n)=>{e(o=>({toasts:o.toasts.map(i=>i.id===r?{...i,...n}:i)})),n.type!=="loading"&&kR(t().removeToast,r)},promise:async(r,n)=>{const o=t().addToast({type:"loading",description:n.loading});try{const i=await r;return t().updateToast(o,{type:"success",description:typeof n.success=="function"?n.success(i):n.success}),i}catch(i){const s=typeof n.error=="function"?n.error(i):n.error;return t().updateToast(o,{type:"error",description:s}),Promise.reject(i)}}})),ite=({iconClassName:e="",...t})=>{const r=Qg(n=>n.toasts);return g.jsxs(g.Fragment,{children:[t.children,g.jsx(ng,{className:"empty:hidden fixed z-100 pr-2 pb-2 bottom-0 right-0 space-y-2 max-w-[300px] w-full",children:r.map(n=>{const o=R.createRef();return g.jsx(Kf,{classNames:"toast",timeout:500,nodeRef:o,children:g.jsx(jA,{...n,iconClassName:e,ref:o})},n.id)})})]})},Jg=Qg.getState(),ate=e=>Jg.addToast(e),Eh=(e,t)=>{const n=typeof e=="string"?{description:e,type:t}:{...e,type:t};return Jg.addToast(n)},ste=Object.assign(ate,{info:e=>Eh(e,"info"),success:e=>Eh(e,"success"),error:e=>Eh(e,"error"),promise:(e,t)=>Jg.promise(e,t)}),VA={info:Zj,success:Jj,error:t5,loading:sf};function lte(e){const t=ute(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(dte);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function ute(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=pte(o),l=fte(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KA=Symbol("radix.slottable");function cte(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=KA,t}function dte(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KA}function fte(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function pte(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hte=mte.reduce((e,t)=>{const r=lte(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),[fp]=wn("Tooltip",[Do]),pp=Do(),WA="TooltipProvider",vte=700,Cv="tooltip.open",[gte,eb]=fp(WA),HA=e=>{const{__scopeTooltip:t,delayDuration:r=vte,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),l=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),g.jsx(gte,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:i})};HA.displayName=WA;var Qu="Tooltip",[bte,$c]=fp(Qu),UA=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=eb(Qu,e.__scopeTooltip),d=pp(t),[f,p]=v.useState(null),h=_t(),b=v.useRef(0),w=s??c.disableHoverableContent,y=l??c.delayDuration,C=v.useRef(!1),[x,P]=ut({prop:n,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cv))):c.onClose(),i?.(A)},caller:Qu}),S=v.useMemo(()=>x?C.current?"delayed-open":"instant-open":"closed",[x]),D=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,C.current=!1,P(!0)},[P]),_=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,P(!1)},[P]),T=v.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{C.current=!0,P(!0),b.current=0},y)},[y,P]);return v.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),g.jsx(bc,{...d,children:g.jsx(bte,{scope:t,contentId:h,open:x,stateAttribute:S,trigger:f,onTriggerChange:p,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayedRef.current?T():D()},[c.isOpenDelayedRef,T,D]),onTriggerLeave:v.useCallback(()=>{w?_():(window.clearTimeout(b.current),b.current=0)},[_,w]),onOpen:D,onClose:_,disableHoverableContent:w,children:r})})};UA.displayName=Qu;var Rv="TooltipTrigger",zA=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=$c(Rv,r),i=eb(Rv,r),s=pp(r),l=v.useRef(null),c=Ve(t,l,o.onTriggerChange),d=v.useRef(!1),f=v.useRef(!1),p=v.useCallback(()=>d.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),g.jsx(yc,{asChild:!0,...s,children:g.jsx(hte.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:Se(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Se(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})})});zA.displayName=Rv;var tb="TooltipPortal",[yte,xte]=fp(tb,{forceMount:void 0}),GA=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=$c(tb,t);return g.jsx(yte,{scope:t,forceMount:r,children:g.jsx(Tr,{present:r||i.open,children:g.jsx(ha,{asChild:!0,container:o,children:n})})})};GA.displayName=tb;var ca="TooltipContent",YA=v.forwardRef((e,t)=>{const r=xte(ca,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=$c(ca,e.__scopeTooltip);return g.jsx(Tr,{present:n||s.open,children:s.disableHoverableContent?g.jsx(XA,{side:o,...i,ref:t}):g.jsx(wte,{side:o,...i,ref:t})})}),wte=v.forwardRef((e,t)=>{const r=$c(ca,e.__scopeTooltip),n=eb(ca,e.__scopeTooltip),o=v.useRef(null),i=Ve(t,o),[s,l]=v.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,h=v.useCallback(()=>{l(null),p(!1)},[p]),b=v.useCallback((w,y)=>{const C=w.currentTarget,x={x:w.clientX,y:w.clientY},P=Pte(x,C.getBoundingClientRect()),S=Ste(x,P),D=_te(y.getBoundingClientRect()),_=$te([...S,...D]);l(_),p(!0)},[p]);return v.useEffect(()=>()=>h(),[h]),v.useEffect(()=>{if(c&&f){const w=C=>b(C,f),y=C=>b(C,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",y)}}},[c,f,b,h]),v.useEffect(()=>{if(s){const w=y=>{const C=y.target,x={x:y.clientX,y:y.clientY},P=c?.contains(C)||f?.contains(C),S=!Tte(x,s);P?h():S&&(h(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,s,d,h]),g.jsx(XA,{...e,ref:i})}),[Ete,Cte]=fp(Qu,{isInside:!1}),Rte=cte("TooltipContent"),XA=v.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,c=$c(ca,r),d=pp(r),{onClose:f}=c;return v.useEffect(()=>(document.addEventListener(Cv,f),()=>document.removeEventListener(Cv,f)),[f]),v.useEffect(()=>{if(c.trigger){const p=h=>{h.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:g.jsxs(np,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(Rte,{children:n}),g.jsx(Ete,{scope:r,isInside:!0,children:g.jsx(ZJ,{id:c.contentId,role:"tooltip",children:o||n})})]})})});YA.displayName=ca;var ZA="TooltipArrow",QA=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=pp(r);return Cte(ZA,r).isInside?null:g.jsx(op,{...o,...n,ref:t})});QA.displayName=ZA;function Pte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ste(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function _te(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Tte(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],c=t[s],d=l.x,f=l.y,p=c.x,h=c.y;f>n!=h>n&&r<(p-d)*(n-f)/(h-f)+d&&(o=!o)}return o}function $te(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ate(t)}function Ate(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Dte=HA,Mte=UA,Ote=zA,Nte=GA,Ite=YA,kte=QA;const JA=({delayDuration:e=0,...t})=>g.jsx(Dte,{"data-slot":"tooltip-provider",delayDuration:e,...t}),eD=({...e})=>g.jsx(JA,{children:g.jsx(Mte,{"data-slot":"tooltip",...e})}),tD=({...e})=>g.jsx(Ote,{"data-slot":"tooltip-trigger",...e}),rD=({className:e,sideOffset:t=0,children:r,arrowClassName:n,...o})=>g.jsx(Nte,{children:g.jsxs(Ite,{"data-slot":"tooltip-content",sideOffset:t,className:le("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...o,children:[r,g.jsx(kte,{className:le("bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",n)})]})}),Lte=({label:e,open:t,defaultOpen:r,onOpenChange:n,...o})=>{const{className:i,...s}=ac("Tooltip",o,{side:"top"});return g.jsxs(eD,{open:t,defaultOpen:r,onOpenChange:n,children:[g.jsx(tD,{asChild:!0,"data-slot":"tooltip-trigger",children:g.jsx(sc,{...s})}),g.jsx(rD,{"data-slot":"tooltip-content",side:s.side,sideOffset:s.offset,className:i,arrowClassName:s.arrowClassName,children:e})]})},Fte=R.createContext(null);R.createContext(null);R.createContext(null);R.createContext(null);R.createContext(null);R.createContext({});R.createContext(null);R.createContext(null);const Ot=typeof document<"u"?R.useLayoutEffect:()=>{};var Ch;const qte=(Ch=R.useInsertionEffect)!==null&&Ch!==void 0?Ch:Ot;function ur(e){const t=R.useRef(null);return qte(()=>{t.current=e},[e]),R.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function jte(e){let[t,r]=R.useState(e),n=R.useRef(null),o=ur(()=>{if(!n.current)return;let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});Ot(()=>{n.current&&o()});let i=ur(s=>{n.current=s(t),o()});return[t,i]}const Tf={prefix:String(Math.round(Math.random()*1e10)),current:0},nD=R.createContext(Tf),Bte=R.createContext(!1);let Vte=!!(typeof window<"u"&&window.document&&window.document.createElement),Rh=new WeakMap;function Kte(e=!1){let t=R.useContext(nD),r=R.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let s=Rh.get(i);s==null?Rh.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Rh.delete(i))}r.current=++t.current}return r.current}function Wte(e){let t=R.useContext(nD);t===Tf&&!Vte&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Kte(!!e),n=t===Tf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function Hte(e){let t=R.useId(),[r]=R.useState(Ac()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Tf.prefix}`;return e||`${n}-${t}`}const Ute=typeof R.useId=="function"?Hte:Wte;function zte(){return!1}function Gte(){return!0}function Yte(e){return()=>{}}function Ac(){return typeof R.useSyncExternalStore=="function"?R.useSyncExternalStore(Yte,zte,Gte):R.useContext(Bte)}let Xte=!!(typeof window<"u"&&window.document&&window.document.createElement),ia=new Map,Iu;typeof FinalizationRegistry<"u"&&(Iu=new FinalizationRegistry(e=>{ia.delete(e)}));function Qn(e){let[t,r]=R.useState(e),n=R.useRef(null),o=Ute(t),i=R.useRef(null);if(Iu&&Iu.register(i,o),Xte){const s=ia.get(o);s&&!s.includes(n)?s.push(n):ia.set(o,[n])}return Ot(()=>{let s=o;return()=>{Iu&&Iu.unregister(i),ia.delete(s)}},[o]),R.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function Zte(e,t){if(e===t)return e;let r=ia.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=ia.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Qte(e=[]){let t=Qn(),[r,n]=jte(t),o=R.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Ot(o,[t,o,...e]),r}function mp(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const rt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Br=e=>e&&"window"in e&&e.window===e?e:rt(e).defaultView||window;function Jte(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ere(e){return Jte(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let tre=!1;function hp(){return tre}function yt(e,t){if(!hp())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:ere(r)?r=r.host:r=r.parentNode}return!1}const er=(e=document)=>{var t;if(!hp())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Ze(e){return hp()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class rre{get currentNode(){return this._currentNode}set currentNode(t){if(!yt(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=n,l=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=o,this._currentSetFor.add(l),n=o=s.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return yt(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let s=this.lastChild();return s&&(this.currentNode=s),s}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s.shadowRoot;if(c){const d=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(s);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function nre(e,t,r,n){return hp()?new rre(e,t,r,n):e.createTreeWalker(t,r,n)}function Wt(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=mp(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Vv(i,s):o==="id"&&i&&s?t.id=Zte(i,s):t[o]=s!==void 0?s:i}}return t}function ore(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=LR(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():LR(e[i],null)})}}}function LR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const ire=new Set(["id"]),are=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sre=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),lre=new Set(["dir","lang","hidden","inert","translate"]),FR=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ure=/^(data-.*)$/;function Ea(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,l={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(ire.has(c)||r&&are.has(c)||n&&sre.has(c)||o&&lre.has(c)||i&&FR.has(c)||c.endsWith("Capture")&&FR.has(c.slice(0,-7))||s?.has(c)||ure.test(c))&&(l[c]=e[c]);return l}function Jn(e){if(cre())e.focus({preventScroll:!0});else{let t=dre(e);e.focus(),fre(t)}}let Vd=null;function cre(){if(Vd==null){Vd=!1;try{document.createElement("div").focus({get preventScroll(){return Vd=!0,!0}})}catch{}}return Vd}function dre(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function fre(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function vp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ro(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const vi=ro(function(){return rb(/^Mac/i)}),pre=ro(function(){return rb(/^iPhone/i)}),oD=ro(function(){return rb(/^iPad/i)||vi()&&navigator.maxTouchPoints>1}),nb=ro(function(){return pre()||oD()}),mre=ro(function(){return vi()||nb()}),hre=ro(function(){return vp(/AppleWebKit/i)&&!ob()}),ob=ro(function(){return vp(/Chrome/i)}),ib=ro(function(){return vp(/Android/i)}),vre=ro(function(){return vp(/Firefox/i)}),gre=R.createContext({isNative:!0,open:yre,useHref:e=>e});function ab(){return R.useContext(gre)}function gi(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:l,shiftKey:c}=t;vre()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(vi()?i=!0:s=!0);let d=hre()&&vi()&&!oD()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:l,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:l,shiftKey:c,bubbles:!0,cancelable:!0});gi.isOpening=r,Jn(e),e.dispatchEvent(d),gi.isOpening=!1}gi.isOpening=!1;function bre(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function yre(e,t){bre(e,r=>gi(r,t))}function xre(e){let t=ab();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}let Eo=new Map,Pv=new Set;function qR(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Eo.get(n.target);o||(o=new Set,Eo.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Eo.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Eo.delete(n.target)),Eo.size===0)){for(let i of Pv)i();Pv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qR():document.addEventListener("DOMContentLoaded",qR));function wre(){for(const[e]of Eo)"isConnected"in e&&!e.isConnected&&Eo.delete(e)}function iD(e){requestAnimationFrame(()=>{wre(),Eo.size===0?e():Pv.add(e)})}function gp(){let e=R.useRef(new Map),t=R.useCallback((o,i,s,l)=>{let c=l?.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:l}),o.addEventListener(i,c,l)},[]),r=R.useCallback((o,i,s,l)=>{var c;let d=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,d,l),e.current.delete(s)},[]),n=R.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return R.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Ere(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Qn(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function bp(e){const t=R.useRef(null),r=R.useRef(void 0),n=R.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return R.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function Cre(e,t){const r=R.useRef(!0),n=R.useRef(null);R.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),R.useEffect(()=>{let o=n.current;r.current?r.current=!1:(!o||t.some((i,s)=>!Object.is(i,o[s])))&&e(),n.current=t},t)}function jR(e,t){const r=R.useRef(!0),n=R.useRef(null);Ot(()=>(r.current=!0,()=>{r.current=!1}),[]),Ot(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function aD(e,t){Ot(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ju(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function ei(e,t){let r=e;for(Ju(r,t)&&(r=r.parentElement);r&&!Ju(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Rre(e,t){const r=[];for(;e&&e!==document.documentElement;)Ju(e,t)&&r.push(e),e=e.parentElement;return r}function Ji(e){return vi()?e.metaKey:e.ctrlKey}let Pre=0;const Ph=new Map;function sD(e){let[t,r]=R.useState();return Ot(()=>{if(!e)return;let n=Ph.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Pre++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},Ph.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Ph.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Kd(e,t,r,n){let o=ur(r),i=r==null;R.useEffect(()=>{if(i||!e.current)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,i,o])}function lD(e,t){let r=BR(e,t,"left"),n=BR(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:h,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:w,scrollMarginRight:y,scrollMarginBottom:C,scrollMarginLeft:x}=getComputedStyle(t),P=s+parseInt(d,10),S=l+parseInt(c,10),D=P+e.clientWidth,_=S+e.clientHeight,T=parseInt(f,10)||0,A=parseInt(h,10)||0,M=parseInt(p,10)||0,U=parseInt(b,10)||0,J=parseInt(w,10)||0,N=parseInt(C,10)||0,W=parseInt(y,10)||0,F=parseInt(x,10)||0,L=r-F,G=r+o+W,k=n-J,q=n+i+N,B=s+parseInt(d,10)+U,re=D-M,K=l+parseInt(c,10)+T,ie=_-A;if((L>B||G<re)&&(L<=s+U?s=L-parseInt(d,10)-U:G>D-M&&(s+=G-D+M)),(k>K||q<ie)&&(k<=S+T?l=k-parseInt(c,10)-T:q>_-A&&(l+=q-_+A)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=l;return}e.scrollTo({left:s,top:l})}function BR(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function wo(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!ob()){var r;let{left:c,top:d}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:p}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-p)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let c=Rre(e);for(let d of c)lD(d,e)}}}function Sv(e){return e.pointerType===""&&e.isTrusted?!0:ib()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Sre(e){return!ib()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function _re(e,t){let{collection:r,onLoadMore:n,scrollOffset:o=1}=e,i=R.useRef(null),s=ur(l=>{for(let c of l)c.isIntersecting&&n&&n()});Ot(()=>(t.current&&(i.current=new IntersectionObserver(s,{root:ei(t?.current),rootMargin:`0px ${100*o}% ${100*o}% ${100*o}%`}),i.current.observe(t.current)),()=>{i.current&&i.current.disconnect()}),[r,s,t,o])}function Tre(e){const t=R.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}const $re="react-aria-clear-focus",Are="react-aria-focus",Dre=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Mre(e){const t=Br(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:l}=i(e);o=s!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function Ore(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function sb(e,t){return Dre?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Mre(e)&&Ore(e,t)&&(!e.parentElement||sb(e.parentElement,e))}const lb=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Nre=lb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";lb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ire=lb.join(':not([hidden]):not([tabindex="-1"]),');function uD(e){return e.matches(Nre)&&sb(e)&&!cD(e)}function kre(e){return e.matches(Ire)&&sb(e)&&!cD(e)}function cD(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function ub(e,t,r){let[n,o]=R.useState(e||t),i=R.useRef(e!==void 0),s=e!==void 0;R.useEffect(()=>{let d=i.current;d!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let l=s?e:n,c=R.useCallback((d,...f)=>{let p=(h,...b)=>{r&&(Object.is(l,h)||r(h,...b)),s||(l=h)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((b,...w)=>{let y=d(s?l:b,...w);return p(y,...f),s?b:y})):(s||o(d),p(d,...f))},[s,l,r]);return[l,c]}const dD=Symbol("default");function fD({values:e,children:t}){for(let[r,n]of e)t=R.createElement(r.Provider,{value:n},t);return t}function Ca(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:s,values:l}=e;return R.useMemo(()=>{let c,d,f;return typeof t=="function"?c=t({...l,defaultClassName:o}):c=t,typeof r=="function"?d=r({...l,defaultStyle:s||{}}):d=r,typeof n=="function"?f=n({...l,defaultChildren:i}):n==null?f=i:f=n,{className:c??o,style:d||s?{...s,...d}:void 0,children:f??i,"data-rac":""}},[t,r,n,o,i,s,l])}function pD(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function Lre(e,t){let r=R.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||dD;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function mD(e,t,r){let n=Lre(r,e.slot)||{},{ref:o,...i}=n,s=bp(R.useMemo(()=>ore(t,o),[t,o])),l=Wt(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=c=>{let d=typeof i.style=="function"?i.style(c):i.style,f={...c.defaultStyle,...d},p=typeof e.style=="function"?e.style({...c,defaultStyle:f}):e.style;return{...f,...p}}:l.style={...i.style,...e.style}),[l,s]}const hD=7e3;let pn=null;function _v(e,t="assertive",r=hD){pn?pn.announce(e,t,r):(pn=new Fre,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?pn.announce(e,t,r):setTimeout(()=>{pn?.isAttached()&&pn?.announce(e,t,r)},100))}class Fre{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=hD){var o,i;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(s):(i=this.politeLog)===null||i===void 0||i.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const qre=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),jre=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bre(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return qre.has(r.script)}let t=e.split("-")[0];return jre.has(t)}const Vre=Symbol.for("react-aria.i18n.locale");function vD(){let e=typeof window<"u"&&window[Vre]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Bre(e)?"rtl":"ltr"}}let Tv=vD(),ku=new Set;function VR(){Tv=vD();for(let e of ku)e(Tv)}function Kre(){let e=Ac(),[t,r]=R.useState(Tv);return R.useEffect(()=>(ku.size===0&&window.addEventListener("languagechange",VR),ku.add(r),()=>{ku.delete(r),ku.size===0&&window.removeEventListener("languagechange",VR)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Wre=R.createContext(null);function Dc(){let e=Kre();return R.useContext(Wre)||e}const Hre=Symbol.for("react-aria.i18n.locale"),Ure=Symbol.for("react-aria.i18n.strings");let Gi;class yp{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=zre(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Hre];if(Gi===void 0){let o=window[Ure];if(!o)return null;Gi={};for(let i in o)Gi[i]=new yp({[r]:o[i]},r)}let n=Gi?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function zre(e,t,r="en-US"){if(t[e])return t[e];let n=Gre(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Gre(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const KR=new Map,WR=new Map;class Yre{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,s=KR.get(i);s||(s=new Intl.PluralRules(this.locale,{type:n}),KR.set(i,s));let l=s.select(t);return o=r[l]||r.other,typeof o=="function"?o():o}number(t){let r=WR.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),WR.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const HR=new WeakMap;function Xre(e){let t=HR.get(e);return t||(t=new yp(e),HR.set(e,t)),t}function Zre(e,t){return t&&yp.getGlobalDictionaryForPackage(t)||Xre(e)}function xp(e,t){let{locale:r}=Dc(),n=Zre(e,t);return R.useMemo(()=>new Yre(r,n),[r,n])}function Qre(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jre(e,t,r){Qre(e,t),t.set(e,r)}let Sh=new Map;function gD(e){let{locale:t}=Dc(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Sh.has(r))return Sh.get(r);let n=new Intl.Collator(t,e);return Sh.set(r,n),n}function cb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bD(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function yD(e){let t=R.useRef({isFocused:!1,observer:null});Ot(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=ur(n=>{e?.(n)});return R.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let l=cb(s);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let $f=!1;function UR(e){for(;e&&!uD(e);)e=e.parentElement;let t=Br(e),r=t.document.activeElement;if(!r||r===e)return;$f=!0;let n=!1,o=f=>{(f.target===r||n)&&f.stopImmediatePropagation()},i=f=>{(f.target===r||n)&&(f.stopImmediatePropagation(),!e&&!n&&(n=!0,Jn(r),c()))},s=f=>{(f.target===e||n)&&f.stopImmediatePropagation()},l=f=>{(f.target===e||n)&&(f.stopImmediatePropagation(),n||(n=!0,Jn(r),c()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",s,!0),$f=!1,n=!1},d=requestAnimationFrame(c);return c}let ea="default",$v="",ef=new WeakMap;function zR(e){if(nb()){if(ea==="default"){const t=rt(e);$v=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ea="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ef.set(e,e.style[t]),e.style[t]="none"}}function _h(e){if(nb()){if(ea!=="disabled")return;ea="restoring",setTimeout(()=>{iD(()=>{if(ea==="restoring"){const t=rt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=$v||""),$v="",ea="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ef.has(e)){let t=ef.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ef.delete(e)}}const xD=R.createContext({register:()=>{}});xD.displayName="PressResponderContext";function ene(e,t){return t.get?t.get.call(e):t.value}function wD(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function tne(e,t){var r=wD(e,t,"get");return ene(e,r)}function rne(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function GR(e,t,r){var n=wD(e,t,"set");return rne(e,n,r),r}function nne(e){let t=R.useContext(xD);if(t){let{register:r,...n}=t;e=Wt(n,e),r()}return aD(t,e.ref),e}var Wd=new WeakMap;class Hd{continuePropagation(){GR(this,Wd,!1)}get shouldStopPropagation(){return tne(this,Wd)}constructor(t,r,n,o){Jre(this,Wd,{writable:!0,value:void 0}),GR(this,Wd,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const l=s?.getBoundingClientRect();let c,d=0,f,p=null;n.clientX!=null&&n.clientY!=null&&(f=n.clientX,p=n.clientY),l&&(f!=null&&p!=null?(c=f-l.left,d=p-l.top):(c=l.width/2,d=l.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=d}}const YR=Symbol("linkClicked"),XR="react-aria-pressable-style",ZR="data-react-aria-pressable";function db(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:p,ref:h,...b}=nne(e),[w,y]=R.useState(!1),C=R.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:P}=gp(),S=ur((N,W)=>{let F=C.current;if(l||F.didFirePressStart)return!1;let L=!0;if(F.isTriggeringEvent=!0,n){let G=new Hd("pressstart",W,N);n(G),L=G.shouldStopPropagation}return r&&r(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,y(!0),L}),D=ur((N,W,F=!0)=>{let L=C.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let G=!0;if(o){let k=new Hd("pressend",W,N);o(k),G=k.shouldStopPropagation}if(r&&r(!1),y(!1),t&&F&&!l){let k=new Hd("press",W,N);t(k),G&&(G=k.shouldStopPropagation)}return L.isTriggeringEvent=!1,G}),_=ur((N,W)=>{let F=C.current;if(l)return!1;if(i){F.isTriggeringEvent=!0;let L=new Hd("pressup",W,N);return i(L),F.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),T=ur(N=>{let W=C.current;if(W.isPressed&&W.target){W.didFirePressStart&&W.pointerType!=null&&D(Xo(W.target,N),W.pointerType,!1),W.isPressed=!1,W.isOverTarget=!1,W.activePointerId=null,W.pointerType=null,P(),p||_h(W.target);for(let F of W.disposables)F();W.disposables=[]}}),A=ur(N=>{f&&T(N)}),M=ur(N=>{l||s?.(N)}),U=ur((N,W)=>{if(!l&&s){let F=new MouseEvent("click",N);bD(F,W),s(cb(F))}}),J=R.useMemo(()=>{let N=C.current,W={onKeyDown(L){if(Th(L.nativeEvent,L.currentTarget)&&yt(L.currentTarget,Ze(L.nativeEvent))){var G;e1(Ze(L.nativeEvent),L.key)&&L.preventDefault();let k=!0;if(!N.isPressed&&!L.repeat){N.target=L.currentTarget,N.isPressed=!0,N.pointerType="keyboard",k=S(L,"keyboard");let q=L.currentTarget,B=re=>{Th(re,q)&&!re.repeat&&yt(q,Ze(re))&&N.target&&_(Xo(N.target,re),"keyboard")};x(rt(L.currentTarget),"keyup",mp(B,F),!0)}k&&L.stopPropagation(),L.metaKey&&vi()&&((G=N.metaKeyEvents)===null||G===void 0||G.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(N.metaKeyEvents=new Map)},onClick(L){if(!(L&&!yt(L.currentTarget,Ze(L.nativeEvent)))&&L&&L.button===0&&!N.isTriggeringEvent&&!gi.isOpening){let G=!0;if(l&&L.preventDefault(),!N.ignoreEmulatedMouseEvents&&!N.isPressed&&(N.pointerType==="virtual"||Sv(L.nativeEvent))){let k=S(L,"virtual"),q=_(L,"virtual"),B=D(L,"virtual");M(L),G=k&&q&&B}else if(N.isPressed&&N.pointerType!=="keyboard"){let k=N.pointerType||L.nativeEvent.pointerType||"virtual",q=_(Xo(L.currentTarget,L),k),B=D(Xo(L.currentTarget,L),k,!0);G=q&&B,N.isOverTarget=!1,M(L),T(L)}N.ignoreEmulatedMouseEvents=!1,G&&L.stopPropagation()}}},F=L=>{var G;if(N.isPressed&&N.target&&Th(L,N.target)){var k;e1(Ze(L),L.key)&&L.preventDefault();let B=Ze(L),re=yt(N.target,Ze(L));D(Xo(N.target,L),"keyboard",re),re&&U(L,N.target),P(),L.key!=="Enter"&&fb(N.target)&&yt(N.target,B)&&!L[YR]&&(L[YR]=!0,gi(N.target,L,!1)),N.isPressed=!1,(k=N.metaKeyEvents)===null||k===void 0||k.delete(L.key)}else if(L.key==="Meta"&&(!((G=N.metaKeyEvents)===null||G===void 0)&&G.size)){var q;let B=N.metaKeyEvents;N.metaKeyEvents=void 0;for(let re of B.values())(q=N.target)===null||q===void 0||q.dispatchEvent(new KeyboardEvent("keyup",re))}};if(typeof PointerEvent<"u"){W.onPointerDown=k=>{if(k.button!==0||!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(Sre(k.nativeEvent)){N.pointerType="virtual";return}N.pointerType=k.pointerType;let q=!0;if(!N.isPressed){N.isPressed=!0,N.isOverTarget=!0,N.activePointerId=k.pointerId,N.target=k.currentTarget,p||zR(N.target),q=S(k,N.pointerType);let B=Ze(k.nativeEvent);"releasePointerCapture"in B&&B.releasePointerCapture(k.pointerId),x(rt(k.currentTarget),"pointerup",L,!1),x(rt(k.currentTarget),"pointercancel",G,!1)}q&&k.stopPropagation()},W.onMouseDown=k=>{if(yt(k.currentTarget,Ze(k.nativeEvent))&&k.button===0){if(d){let q=UR(k.target);q&&N.disposables.push(q)}k.stopPropagation()}},W.onPointerUp=k=>{!yt(k.currentTarget,Ze(k.nativeEvent))||N.pointerType==="virtual"||k.button===0&&!N.isPressed&&_(k,N.pointerType||k.pointerType)},W.onPointerEnter=k=>{k.pointerId===N.activePointerId&&N.target&&!N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!0,S(Xo(N.target,k),N.pointerType))},W.onPointerLeave=k=>{k.pointerId===N.activePointerId&&N.target&&N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!1,D(Xo(N.target,k),N.pointerType,!1),A(k))};let L=k=>{if(k.pointerId===N.activePointerId&&N.isPressed&&k.button===0&&N.target){if(yt(N.target,Ze(k))&&N.pointerType!=null){let q=!1,B=setTimeout(()=>{N.isPressed&&N.target instanceof HTMLElement&&(q?T(k):(Jn(N.target),N.target.click()))},80);x(k.currentTarget,"click",()=>q=!0,!0),N.disposables.push(()=>clearTimeout(B))}else T(k);N.isOverTarget=!1}},G=k=>{T(k)};W.onDragStart=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&T(k)}}else if(process.env.NODE_ENV==="test"){W.onMouseDown=k=>{if(k.button!==0||!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(N.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(N.isPressed=!0,N.isOverTarget=!0,N.target=k.currentTarget,N.pointerType=Sv(k.nativeEvent)?"virtual":"mouse",rn.flushSync(()=>S(k,N.pointerType))&&k.stopPropagation(),d){let B=UR(k.target);B&&N.disposables.push(B)}x(rt(k.currentTarget),"mouseup",L,!1)},W.onMouseEnter=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;let q=!0;N.isPressed&&!N.ignoreEmulatedMouseEvents&&N.pointerType!=null&&(N.isOverTarget=!0,q=S(k,N.pointerType)),q&&k.stopPropagation()},W.onMouseLeave=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;let q=!0;N.isPressed&&!N.ignoreEmulatedMouseEvents&&N.pointerType!=null&&(N.isOverTarget=!1,q=D(k,N.pointerType,!1),A(k)),q&&k.stopPropagation()},W.onMouseUp=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&!N.ignoreEmulatedMouseEvents&&k.button===0&&!N.isPressed&&_(k,N.pointerType||"mouse")};let L=k=>{if(k.button===0){if(N.ignoreEmulatedMouseEvents){N.ignoreEmulatedMouseEvents=!1;return}N.target&&N.target.contains(k.target)&&N.pointerType!=null||T(k),N.isOverTarget=!1}};W.onTouchStart=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;let q=one(k.nativeEvent);if(!q)return;N.activePointerId=q.identifier,N.ignoreEmulatedMouseEvents=!0,N.isOverTarget=!0,N.isPressed=!0,N.target=k.currentTarget,N.pointerType="touch",p||zR(N.target),S(bo(N.target,k),N.pointerType)&&k.stopPropagation(),x(Br(k.currentTarget),"scroll",G,!0)},W.onTouchMove=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(!N.isPressed){k.stopPropagation();return}let q=QR(k.nativeEvent,N.activePointerId),B=!0;q&&JR(q,k.currentTarget)?!N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!0,B=S(bo(N.target,k),N.pointerType)):N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!1,B=D(bo(N.target,k),N.pointerType,!1),A(bo(N.target,k))),B&&k.stopPropagation()},W.onTouchEnd=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(!N.isPressed){k.stopPropagation();return}let q=QR(k.nativeEvent,N.activePointerId),B=!0;q&&JR(q,k.currentTarget)&&N.pointerType!=null?(_(bo(N.target,k),N.pointerType),B=D(bo(N.target,k),N.pointerType),U(k.nativeEvent,N.target)):N.isOverTarget&&N.pointerType!=null&&(B=D(bo(N.target,k),N.pointerType,!1)),B&&k.stopPropagation(),N.isPressed=!1,N.activePointerId=null,N.isOverTarget=!1,N.ignoreEmulatedMouseEvents=!0,N.target&&!p&&_h(N.target),P()},W.onTouchCancel=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&(k.stopPropagation(),N.isPressed&&T(bo(N.target,k)))};let G=k=>{N.isPressed&&yt(Ze(k),N.target)&&T({currentTarget:N.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};W.onDragStart=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&T(k)}}return W},[x,l,d,P,p,T,A,D,S,_,M,U]);return R.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const N=rt(h.current);if(!N||!N.head||N.getElementById(XR))return;const W=N.createElement("style");W.id=XR,W.textContent=`
126
+ }`;var qe=Ux(function(){return Xe(I,$e+"return "+ge).apply(r,B)});if(qe.source=ge,Mm(qe))throw qe;return qe}function X2(a){return Je(a).toLowerCase()}function Z2(a){return Je(a).toUpperCase()}function Q2(a,u,m){if(a=Je(a),a&&(m||u===r))return ty(a);if(!a||!(u=yr(u)))return a;var E=Ur(a),$=Ur(u),I=ry(E,$),B=ny(E,$)+1;return fo(E,I,B).join("")}function J2(a,u,m){if(a=Je(a),a&&(m||u===r))return a.slice(0,iy(a)+1);if(!a||!(u=yr(u)))return a;var E=Ur(a),$=ny(E,Ur(u))+1;return fo(E,0,$).join("")}function eL(a,u,m){if(a=Je(a),a&&(m||u===r))return a.replace(Mp,"");if(!a||!(u=yr(u)))return a;var E=Ur(a),$=ry(E,Ur(u));return fo(E,$).join("")}function tL(a,u){var m=J,E=N;if(Et(u)){var $="separator"in u?u.separator:$;m="length"in u?Fe(u.length):m,E="omission"in u?yr(u.omission):E}a=Je(a);var I=a.length;if(Ti(a)){var B=Ur(a);I=B.length}if(m>=I)return a;var z=m-$i(E);if(z<1)return E;var ee=B?fo(B,0,z).join(""):a.slice(0,z);if($===r)return ee+E;if(B&&(z+=ee.length-z),Om($)){if(a.slice(z).search($)){var me,he=ee;for($.global||($=Yp($.source,Je(Cb.exec($))+"g")),$.lastIndex=0;me=$.exec(he);)var ge=me.index;ee=ee.slice(0,ge===r?z:ge)}}else if(a.indexOf(yr($),z)!=z){var Re=ee.lastIndexOf($);Re>-1&&(ee=ee.slice(0,Re))}return ee+E}function rL(a){return a=Je(a),a&&Pp.test(a)?a.replace(Mc,DN):a}var nL=ki(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),km=zy("toUpperCase");function Hx(a,u,m){return a=Je(a),u=m?r:u,u===r?SN(a)?NN(a):gN(a):a.match(u)||[]}var Ux=je(function(a,u){try{return gr(a,r,u)}catch(m){return Mm(m)?m:new ke(m)}}),oL=An(function(a,u){return Dr(u,function(m){m=dn(m),Tn(a,m,Am(a[m],a))}),a});function iL(a){var u=a==null?0:a.length,m=Me();return a=u?bt(a,function(E){if(typeof E[1]!="function")throw new Mr(s);return[m(E[0]),E[1]]}):[],je(function(E){for(var $=-1;++$<u;){var I=a[$];if(gr(I[0],this,E))return gr(I[1],this,E)}})}function aL(a){return DI(Nr(a,p))}function Lm(a){return function(){return a}}function sL(a,u){return a==null||a!==a?u:a}var lL=Yy(),uL=Yy(!0);function mr(a){return a}function Fm(a){return Py(typeof a=="function"?a:Nr(a,p))}function cL(a){return _y(Nr(a,p))}function dL(a,u){return Ty(a,Nr(u,p))}var fL=je(function(a,u){return function(m){return Na(m,a,u)}}),pL=je(function(a,u){return function(m){return Na(a,m,u)}});function qm(a,u,m){var E=Ut(u),$=rd(u,E);m==null&&!(Et(u)&&($.length||!E.length))&&(m=u,u=a,a=this,$=rd(u,Ut(u)));var I=!(Et(m)&&"chain"in m)||!!m.chain,B=Mn(a);return Dr($,function(z){var ee=u[z];a[z]=ee,B&&(a.prototype[z]=function(){var me=this.__chain__;if(I||me){var he=a(this.__wrapped__),ge=he.__actions__=dr(this.__actions__);return ge.push({func:ee,args:arguments,thisArg:a}),he.__chain__=me,he}return ee.apply(a,io([this.value()],arguments))})}),a}function mL(){return Gt._===this&&(Gt._=jN),this}function jm(){}function hL(a){return a=Fe(a),je(function(u){return $y(u,a)})}var vL=gm(bt),gL=gm(Xb),bL=gm(Vp);function zx(a){return Rm(a)?Kp(dn(a)):GI(a)}function yL(a){return function(u){return a==null?r:Wo(a,u)}}var xL=Zy(),wL=Zy(!0);function Bm(){return[]}function Vm(){return!1}function EL(){return{}}function CL(){return""}function RL(){return!0}function PL(a,u){if(a=Fe(a),a<1||a>j)return[];var m=ie,E=Qt(a,ie);u=Me(u),a-=ie;for(var $=Up(E,u);++m<a;)u(m);return $}function SL(a){return Le(a)?bt(a,dn):xr(a)?[a]:dr(px(Je(a)))}function _L(a){var u=++FN;return Je(a)+u}var TL=ld(function(a,u){return a+u},0),$L=bm("ceil"),AL=ld(function(a,u){return a/u},1),DL=bm("floor");function ML(a){return a&&a.length?td(a,mr,nm):r}function OL(a,u){return a&&a.length?td(a,Me(u,2),nm):r}function NL(a){return Jb(a,mr)}function IL(a,u){return Jb(a,Me(u,2))}function kL(a){return a&&a.length?td(a,mr,sm):r}function LL(a,u){return a&&a.length?td(a,Me(u,2),sm):r}var FL=ld(function(a,u){return a*u},1),qL=bm("round"),jL=ld(function(a,u){return a-u},0);function BL(a){return a&&a.length?Hp(a,mr):0}function VL(a,u){return a&&a.length?Hp(a,Me(u,2)):0}return O.after=c3,O.ary=Rx,O.assign=Z3,O.assignIn=Fx,O.assignInWith=wd,O.assignWith=Q3,O.at=J3,O.before=Px,O.bind=Am,O.bindAll=oL,O.bindKey=Sx,O.castArray=E3,O.chain=wx,O.chunk=Dk,O.compact=Mk,O.concat=Ok,O.cond=iL,O.conforms=aL,O.constant=Lm,O.countBy=B4,O.create=e2,O.curry=_x,O.curryRight=Tx,O.debounce=$x,O.defaults=t2,O.defaultsDeep=r2,O.defer=d3,O.delay=f3,O.difference=Nk,O.differenceBy=Ik,O.differenceWith=kk,O.drop=Lk,O.dropRight=Fk,O.dropRightWhile=qk,O.dropWhile=jk,O.fill=Bk,O.filter=K4,O.flatMap=U4,O.flatMapDeep=z4,O.flatMapDepth=G4,O.flatten=gx,O.flattenDeep=Vk,O.flattenDepth=Kk,O.flip=p3,O.flow=lL,O.flowRight=uL,O.fromPairs=Wk,O.functions=u2,O.functionsIn=c2,O.groupBy=Y4,O.initial=Uk,O.intersection=zk,O.intersectionBy=Gk,O.intersectionWith=Yk,O.invert=f2,O.invertBy=p2,O.invokeMap=Z4,O.iteratee=Fm,O.keyBy=Q4,O.keys=Ut,O.keysIn=pr,O.map=hd,O.mapKeys=h2,O.mapValues=v2,O.matches=cL,O.matchesProperty=dL,O.memoize=gd,O.merge=g2,O.mergeWith=qx,O.method=fL,O.methodOf=pL,O.mixin=qm,O.negate=bd,O.nthArg=hL,O.omit=b2,O.omitBy=y2,O.once=m3,O.orderBy=J4,O.over=vL,O.overArgs=h3,O.overEvery=gL,O.overSome=bL,O.partial=Dm,O.partialRight=Ax,O.partition=e3,O.pick=x2,O.pickBy=jx,O.property=zx,O.propertyOf=yL,O.pull=Jk,O.pullAll=yx,O.pullAllBy=e4,O.pullAllWith=t4,O.pullAt=r4,O.range=xL,O.rangeRight=wL,O.rearg=v3,O.reject=n3,O.remove=n4,O.rest=g3,O.reverse=Tm,O.sampleSize=i3,O.set=E2,O.setWith=C2,O.shuffle=a3,O.slice=o4,O.sortBy=u3,O.sortedUniq=d4,O.sortedUniqBy=f4,O.split=U2,O.spread=b3,O.tail=p4,O.take=m4,O.takeRight=h4,O.takeRightWhile=v4,O.takeWhile=g4,O.tap=M4,O.throttle=y3,O.thru=md,O.toArray=Ix,O.toPairs=Bx,O.toPairsIn=Vx,O.toPath=SL,O.toPlainObject=Lx,O.transform=R2,O.unary=x3,O.union=b4,O.unionBy=y4,O.unionWith=x4,O.uniq=w4,O.uniqBy=E4,O.uniqWith=C4,O.unset=P2,O.unzip=$m,O.unzipWith=xx,O.update=S2,O.updateWith=_2,O.values=qi,O.valuesIn=T2,O.without=R4,O.words=Hx,O.wrap=w3,O.xor=P4,O.xorBy=S4,O.xorWith=_4,O.zip=T4,O.zipObject=$4,O.zipObjectDeep=A4,O.zipWith=D4,O.entries=Bx,O.entriesIn=Vx,O.extend=Fx,O.extendWith=wd,qm(O,O),O.add=TL,O.attempt=Ux,O.camelCase=M2,O.capitalize=Kx,O.ceil=$L,O.clamp=$2,O.clone=C3,O.cloneDeep=P3,O.cloneDeepWith=S3,O.cloneWith=R3,O.conformsTo=_3,O.deburr=Wx,O.defaultTo=sL,O.divide=AL,O.endsWith=O2,O.eq=Gr,O.escape=N2,O.escapeRegExp=I2,O.every=V4,O.find=W4,O.findIndex=hx,O.findKey=n2,O.findLast=H4,O.findLastIndex=vx,O.findLastKey=o2,O.floor=DL,O.forEach=Ex,O.forEachRight=Cx,O.forIn=i2,O.forInRight=a2,O.forOwn=s2,O.forOwnRight=l2,O.get=Nm,O.gt=T3,O.gte=$3,O.has=d2,O.hasIn=Im,O.head=bx,O.identity=mr,O.includes=X4,O.indexOf=Hk,O.inRange=A2,O.invoke=m2,O.isArguments=zo,O.isArray=Le,O.isArrayBuffer=A3,O.isArrayLike=fr,O.isArrayLikeObject=$t,O.isBoolean=D3,O.isBuffer=po,O.isDate=M3,O.isElement=O3,O.isEmpty=N3,O.isEqual=I3,O.isEqualWith=k3,O.isError=Mm,O.isFinite=L3,O.isFunction=Mn,O.isInteger=Dx,O.isLength=yd,O.isMap=Mx,O.isMatch=F3,O.isMatchWith=q3,O.isNaN=j3,O.isNative=B3,O.isNil=K3,O.isNull=V3,O.isNumber=Ox,O.isObject=Et,O.isObjectLike=Pt,O.isPlainObject=ja,O.isRegExp=Om,O.isSafeInteger=W3,O.isSet=Nx,O.isString=xd,O.isSymbol=xr,O.isTypedArray=Fi,O.isUndefined=H3,O.isWeakMap=U3,O.isWeakSet=z3,O.join=Xk,O.kebabCase=k2,O.last=kr,O.lastIndexOf=Zk,O.lowerCase=L2,O.lowerFirst=F2,O.lt=G3,O.lte=Y3,O.max=ML,O.maxBy=OL,O.mean=NL,O.meanBy=IL,O.min=kL,O.minBy=LL,O.stubArray=Bm,O.stubFalse=Vm,O.stubObject=EL,O.stubString=CL,O.stubTrue=RL,O.multiply=FL,O.nth=Qk,O.noConflict=mL,O.noop=jm,O.now=vd,O.pad=q2,O.padEnd=j2,O.padStart=B2,O.parseInt=V2,O.random=D2,O.reduce=t3,O.reduceRight=r3,O.repeat=K2,O.replace=W2,O.result=w2,O.round=qL,O.runInContext=Q,O.sample=o3,O.size=s3,O.snakeCase=H2,O.some=l3,O.sortedIndex=i4,O.sortedIndexBy=a4,O.sortedIndexOf=s4,O.sortedLastIndex=l4,O.sortedLastIndexBy=u4,O.sortedLastIndexOf=c4,O.startCase=z2,O.startsWith=G2,O.subtract=jL,O.sum=BL,O.sumBy=VL,O.template=Y2,O.times=PL,O.toFinite=On,O.toInteger=Fe,O.toLength=kx,O.toLower=X2,O.toNumber=Lr,O.toSafeInteger=X3,O.toString=Je,O.toUpper=Z2,O.trim=Q2,O.trimEnd=J2,O.trimStart=eL,O.truncate=tL,O.unescape=rL,O.uniqueId=_L,O.upperCase=nL,O.upperFirst=km,O.each=Ex,O.eachRight=Cx,O.first=bx,qm(O,(function(){var a={};return un(O,function(u,m){nt.call(O.prototype,m)||(a[m]=u)}),a})(),{chain:!1}),O.VERSION=n,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){O[a].placeholder=O}),Dr(["drop","take"],function(a,u){He.prototype[a]=function(m){m=m===r?1:jt(Fe(m),0);var E=this.__filtered__&&!u?new He(this):this.clone();return E.__filtered__?E.__takeCount__=Qt(m,E.__takeCount__):E.__views__.push({size:Qt(m,ie),type:a+(E.__dir__<0?"Right":"")}),E},He.prototype[a+"Right"]=function(m){return this.reverse()[a](m).reverse()}}),Dr(["filter","map","takeWhile"],function(a,u){var m=u+1,E=m==L||m==k;He.prototype[a]=function($){var I=this.clone();return I.__iteratees__.push({iteratee:Me($,3),type:m}),I.__filtered__=I.__filtered__||E,I}}),Dr(["head","last"],function(a,u){var m="take"+(u?"Right":"");He.prototype[a]=function(){return this[m](1).value()[0]}}),Dr(["initial","tail"],function(a,u){var m="drop"+(u?"":"Right");He.prototype[a]=function(){return this.__filtered__?new He(this):this[m](1)}}),He.prototype.compact=function(){return this.filter(mr)},He.prototype.find=function(a){return this.filter(a).head()},He.prototype.findLast=function(a){return this.reverse().find(a)},He.prototype.invokeMap=je(function(a,u){return typeof a=="function"?new He(this):this.map(function(m){return Na(m,a,u)})}),He.prototype.reject=function(a){return this.filter(bd(Me(a)))},He.prototype.slice=function(a,u){a=Fe(a);var m=this;return m.__filtered__&&(a>0||u<0)?new He(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==r&&(u=Fe(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},He.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},He.prototype.toArray=function(){return this.take(ie)},un(He.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),$=O[E?"take"+(u=="last"?"Right":""):u],I=E||/^find/.test(u);$&&(O.prototype[u]=function(){var B=this.__wrapped__,z=E?[1]:arguments,ee=B instanceof He,me=z[0],he=ee||Le(B),ge=function(We){var Ge=$.apply(O,io([We],z));return E&&Re?Ge[0]:Ge};he&&m&&typeof me=="function"&&me.length!=1&&(ee=he=!1);var Re=this.__chain__,$e=!!this.__actions__.length,Oe=I&&!Re,qe=ee&&!$e;if(!I&&he){B=qe?B:new He(this);var Ne=a.apply(B,z);return Ne.__actions__.push({func:md,args:[ge],thisArg:r}),new Or(Ne,Re)}return Oe&&qe?a.apply(this,z):(Ne=this.thru(ge),Oe?E?Ne.value()[0]:Ne.value():Ne)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(a){var u=jc[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);O.prototype[a]=function(){var $=arguments;if(E&&!this.__chain__){var I=this.value();return u.apply(Le(I)?I:[],$)}return this[m](function(B){return u.apply(Le(B)?B:[],$)})}}),un(He.prototype,function(a,u){var m=O[u];if(m){var E=m.name+"";nt.call(Oi,E)||(Oi[E]=[]),Oi[E].push({name:u,func:m})}}),Oi[sd(r,x).name]=[{name:"wrapper",func:r}],He.prototype.clone=rI,He.prototype.reverse=nI,He.prototype.value=oI,O.prototype.at=O4,O.prototype.chain=N4,O.prototype.commit=I4,O.prototype.next=k4,O.prototype.plant=F4,O.prototype.reverse=q4,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=j4,O.prototype.first=O.prototype.head,_a&&(O.prototype[_a]=L4),O}),Ai=IN();qo?((qo.exports=Ai)._=Ai,Fp._=Ai):Gt._=Ai}).call(Dz)})(Mu,Mu.exports)),Mu.exports}var lt=Mz();const Oz=({view:e,setView:t,value:r,previousMonth:n,nextMonth:o,previousYear:i,nextYear:s,previousDecade:l,nextDecade:c,goBackProps:d,goNextProps:f,changeViewProps:p})=>{const h=e==="month",b=e==="year",w=e==="decade",y=()=>{if(w)return l();if(b)return i();n()},C=()=>{if(w)return c();if(b)return s();o()},x=()=>{if(h)return t("year");if(b)return t("decade")},P=()=>w?S():b?zt(r,"yyyy"):zt(r,"MMMM yyyy",{locale:Az}),S=()=>{if(!r)return"";const _=zS({start:a_(r),end:GS(r)}),T=lt.first(_),A=lt.last(_);return`${zt(T,"yyyy")} - ${zt(A,"yyyy")}`},D=R.useMemo(P,[r,e]);return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex items-center justify-between","data-slot":"calendar-navigation",children:[g.jsxs(tr,{onClick:y,size:"icon",variant:"ghost",className:"border w-6 opacity-50 hover:opacity-100","data-slot":"calendar-navigation-back",...d,children:[g.jsx(zv,{className:"h-4 w-4","data-slot":"calendar-navigation-back-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a anterior"})]}),g.jsx("button",{onClick:x,disabled:w,...p,type:"button",className:le("font-semibold pb-px text-gray-900 text-lg text-blue-bell select-none min-w-[60%] capitalize",p?.className),"data-slot":"calendar-navigation-label",children:D}),g.jsxs(tr,{onClick:C,size:"icon",variant:"ghost",className:"border w-6 opacity-50 hover:opacity-100","data-slot":"calendar-navigation-next",...f,children:[g.jsx(ic,{className:"h-4 w-4","data-slot":"calendar-navigation-next-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a siguiente"})]})]})})};function Fu(e){return!!(e&&typeof e=="object"&&"start"in e&&"end"in e)}function Nz(e,t){return{selectMultipleDate:o=>{if(!e)return t([o]);const i=lt.findIndex(e,l=>ai(l,o));if(i===-1)return t([...e,o]);const s=[...e.slice(0,i),...e.slice(i+1)];t(s)},isMultipleSelected:o=>lt.isArray(e)&&e.some(i=>ai(i,o))}}function Iz(e,t,r){const n=c=>{if(e?.start){const{start:f,end:p}=e;if(QH(c,f)||f&&p){t({start:c,end:void 0});return}if(o(f,c))return;t({start:f,end:c})}else t({start:c,end:void 0})},o=(c,d)=>!r||!c||!d?!1:US({start:Po(c),end:d}).some(h=>r(h));return{selectRangeDate:n,isInRange:c=>{if(!Fu(e)||!e)return!1;const{start:d,end:f}=e;return d&&!f?ai(c,d):!d||!f?!1:ZU(c,{start:Po(d),end:Po(f)})},isFirstDayFromRange:c=>!e||!Fu(e)||!e.start?!1:ai(c,e.start),isLastDayFromRange:c=>!e||!Fu(e)||!e.end?!1:ai(c,e.end)}}function kz(e,t){return{selectSingleDate:o=>{t(o)},isSingleSelected:o=>fi(e)&&ai(o,e)}}const s_=R.createContext({defaultStartDate:new Date,mode:"single",isSingleMode:!1,isRangeMode:!1,selected:null,selectDate:()=>{},isSelected:()=>!1,isFirstDayFromRange:()=>!1,isLastDayFromRange:()=>!1,isInRange:()=>!1});function Lz(e){const{mode:t,value:r,defaultValue:n,onChange:o,disabled:i}=e,s=t==="single",l=t==="range",c=t==="multiple",[d=null,f]=ut({prop:r,onChange:o,defaultProp:n}),{selectSingleDate:p,isSingleSelected:h}=kz(fi(d)?d:void 0,f),{selectRangeDate:b,isInRange:w,...y}=Iz(Fu(d)?d:void 0,f,i),{selectMultipleDate:C,isMultipleSelected:x}=Nz(lt.isArray(d)?d:void 0,f),P=_=>{if(s)return p(_);if(l)return b(_);if(c)return C(_)},S=_=>s?h(_):l?w(_):c?x(_):!1;return{defaultStartDate:fi(d)?d:lt.isArray(d)?d[0]:Fu(d)&&d.start?d.start:new Date,isSingleMode:s,isRangeMode:l,selected:d,isSelected:S,selectDate:P,isInRange:w,mode:t,...y}}const Fz=({day:e,navigationDate:t,className:r,...n})=>{const{isSelected:o,mode:i,selected:s,isRangeMode:l,selectDate:c,isFirstDayFromRange:d,isLastDayFromRange:f}=R.useContext(s_),p=R.useMemo(()=>o(e),[e,s]),h=!p&&!YU(e,t),b=!p&&XW(e);return g.jsx("button",{...n,onClick:()=>c(e),type:"button","data-slot":"calendar-day","data-state-mode":i,"data-state-today":XU(e)||void 0,"data-state-selected":p||void 0,"data-state-different-month":h||void 0,"data-state-weekend":b||void 0,"data-state-range-mode":l||void 0,"data-state-first-day":d(e)||void 0,"data-state-last-day":f(e)||void 0,"data-state-in-range":l&&p||void 0,className:le("mx-auto flex pt-px rounded-md items-center justify-center w-full aspect-square hover:bg-accent","data-[state-today]:text-error","data-[state-selected]:bg-primary data-[state-selected]:!text-primary-foreground data-[state-selected]:hover:bg-primary/80","data-[state-different-month]:opacity-50 data-[state-weekend=true]:opacity-50","data-[state-in-range]:not-data-[state-first-day]:not-data-[state-last-day]:rounded-none","data-[state-first-day]:rounded-l-full","data-[state-last-day]:rounded-r-full",r),children:g.jsx("time",{dateTime:zt(e,"yyyy-MM-dd"),children:zt(e,"d")})})},qz=({value:e,onChange:t})=>{const r=()=>zS({start:a_(e),end:GS(e)}),n=i=>{const s=JU(e,parseInt(zt(i,"yyyy")));t(s)},o=R.useMemo(r,[e]);return g.jsx("div",{className:"grid grid-cols-3 grow","data-slot":"calendar-decade-view",children:o.map((i,s)=>g.jsx(tr,{onClick:()=>n(i),className:"h-full rounded-none",type:"button",variant:"ghost","data-slot":"calendar-decade-view-year",children:zt(i,"yyyy")},s))})},ov=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],l_=["Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"],jz=e=>g.jsx("div",{...e,className:le("grid grid-cols-7 font-semibold mt-2 text-xs leading-6 text-center py-1 bg-blue-bell/40 select-none",e.className),"data-slot":"calendar-week-days",children:l_.map(t=>g.jsx("abbr",{"aria-label":t,"data-slot":"calendar-week-day",children:lt.at(t,0)},t))}),Bz=({navigationDate:e,disabled:t,weekDaysClassName:r,weekDaysProps:n,dayClassName:o,dayProps:i})=>{const s=()=>US({start:Yn(e,{weekStartsOn:1}),end:oH(rH(e),{weekStartsOn:1})}),l=R.useMemo(s,[e]);return g.jsxs(g.Fragment,{children:[g.jsx(jz,{className:r,...n}),g.jsx("div",{className:"grid grid-cols-7 mt-2 text-sm","data-slot":"calendar-month-view",children:l.map((c,d)=>g.jsx(Fz,{day:c,className:o,...i,navigationDate:e,disabled:t?.(c)},d))})]})},Vz=({value:e,onChange:t})=>{const r=n=>{const o=QU(e,n);t(o)};return g.jsx("div",{className:"grid grid-cols-3 grow","data-slot":"calendar-year-view",children:ov.map(n=>g.jsx(tr,{type:"button",className:"h-full rounded",onClick:()=>r(ov.indexOf(n)),variant:"ghost","data-slot":"calendar-year-view-month",children:g.jsx("abbr",{"aria-label":`${n} ${zt(e,"yyyy")}`,children:n})},n))})};function Kz(e=gh()){const[t,r]=R.useState({month:zt(e||gh(),"MM"),year:zt(e||gh(),"yyyy")}),n=R.useMemo(()=>zU(`${t.month}-${t.year}`,"MM-yyyy",new Date),[t]),o=h=>{r({...t,month:zt(h,"MM")})},i=h=>{r({...t,year:zt(h,"yyyy")})};return{navigationDate:n,setMonth:o,setYear:i,previousMonth:()=>{const h=tv(n,-1);r({month:zt(h,"MM"),year:zt(h,"yyyy")})},nextMonth:()=>{const h=tv(n,1);r({month:zt(h,"MM"),year:zt(h,"yyyy")})},previousYear:()=>{const h=qd(n,-1);i(h)},nextYear:()=>{const h=qd(n,1);i(h)},previousDecade:()=>{const h=qd(n,-10);i(h)},nextDecade:()=>{const h=qd(n,10);i(h)}}}const u_=e=>{const{disabled:t,initialView:r="month",view:n,onChangeView:o,initialDate:i,goBackProps:s,goNextProps:l,changeViewProps:c}=e,d=Lz(e),{defaultStartDate:f}=d,{navigationDate:p,setMonth:h,setYear:b,...w}=Kz(i||f),[y=r,C]=ut({prop:n,onChange:x=>o?.(x,p),defaultProp:r});return g.jsx(s_.Provider,{value:d,children:g.jsxs("div",{"data-slot":"calendar",className:le("w-60 min-h-64 flex flex-col border rounded-md p-2",e.className),children:[g.jsx(Oz,{view:y,setView:C,value:p,goBackProps:s,goNextProps:l,changeViewProps:c,...w}),y==="month"&&g.jsx(Bz,{...e.monthViewProps,navigationDate:p,disabled:t}),y==="year"&&g.jsx(Vz,{value:p,onChange:x=>{h(x),C("month")}}),y==="decade"&&g.jsx(qz,{value:p,onChange:x=>{b(x),C("year")}})]})})},Wz=({className:e,...t})=>g.jsx("div",{className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t,"data-slot":"card"}),Hz=({className:e,...t})=>g.jsx("div",{className:le("flex flex-col space-y-1 p-6",e),...t,"data-slot":"card-header"}),Uz=({className:e,...t})=>g.jsx("h3",{className:le("text-2xl font-semibold leading-none tracking-tight",e),...t,"data-slot":"card-title"}),zz=({className:e,...t})=>g.jsx("p",{className:le("text-sm text-muted-foreground",e),...t,"data-slot":"card-description"}),Gz=({className:e,...t})=>g.jsx("div",{className:le("p-6 pt-0",e),...t,"data-slot":"card-content"}),Yz=({className:e,...t})=>g.jsx("div",{className:le("flex items-center p-6 pt-0",e),...t,"data-slot":"card-footer"}),Xz=({className:e,...t})=>g.jsx("div",{className:le("flex items-center justify-center",e),...t,"data-slot":"center"}),pc=({className:e,...t})=>g.jsx("label",{className:le("text-sm font-medium select-none leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),"data-slot":"label",...t}),iv=({when:e,...t})=>g.jsx(Tr,{present:e,children:g.jsx(sc,{...t,"data-state":e?"open":"closed","data-slot":"show"})}),Zz=({checked:e,onChange:t,defaultChecked:r=!1,indeterminate:n,defaultIndeterminate:o=!1,onIndeterminateChange:i,className:s,size:l=16,children:c,containerClassName:d,containerProps:f,...p})=>{const h=R.useId(),b=R.useRef(null),[w,y]=ut({defaultProp:r,prop:e,onChange:t}),[C,x]=ut({defaultProp:o,prop:n,onChange:i});R.useEffect(()=>{b.current&&(b.current.indeterminate=C)},[C]);const P=_=>{_.stopPropagation(),!p.disabled&&(C?(x(!1),y(!0)):y(T=>!T))},S=C?"indeterminate":w?"checked":"unchecked",D=p.id??h;return g.jsxs("div",{...f,className:le("flex gap-x-2 items-center",d),"data-slot":"checkbox",children:[g.jsxs("button",{disabled:p.disabled,onClick:P,"data-state":S,type:"button",style:{width:l,height:l},className:le("peer aspect-square flex gap-2 shrink-0 rounded-(--radius-checkbox) border border-(--color-checkbox) ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-colors","data-[state=checked]:bg-(--color-checkbox) data-[state=checked]:text-primary-foreground data-[state=checked]:border-transparent","data-[state=indeterminate]:bg-(--color-checkbox) data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-transparent","data-[state=unchecked]:bg-background data-[state=unchecked]:text-muted-foreground data-[state=unchecked]:border-input",s),"data-slot":"checkbox-trigger",children:[g.jsx(iv,{when:C,children:g.jsx(m5,{className:le("pt-[2px] w-full h-full opacity-0","open:fade-in-0 open:zoom-in-50 open:opacity-100 open:duration-200","closed:fade-out-0 closed:zoom-out-50 closed:opacity-0")})}),g.jsx(iv,{when:!C&&!!w,children:g.jsx(of,{className:le("pt-[2px] w-full h-full opacity-0","open:fade-in-0 open:zoom-in-50 open:opacity-100 open:duration-200","closed:fade-out-0 closed:zoom-out-50 closed:opacity-0")})}),g.jsx("input",{...p,ref:b,id:D,tabIndex:-1,checked:w,onChange:_=>y(_.currentTarget.checked),type:"checkbox",className:"sr-only","aria-hidden":!0})]}),c&&g.jsx(pc,{htmlFor:D,"data-slot":"checkbox-label",children:c})]})};function Qz({items:e=[],valueKey:t="value",labelKey:r="label",placeholder:n="Seleccionar",searchPlaceholder:o="Buscar...",emptyMessage:i="No se encontraron resultado",searchProps:s,className:l,triggerProps:c,itemProps:d,itemClassName:f,contentProps:p,contentClassName:h,value:b,onChange:w,defaultValue:y,renderOption:C=S=>S?.[r],commandProps:x,...P}){const[S,D]=ut({prop:P.open,onChange:P.onOpenChange,defaultProp:P.defaultOpen||!1}),[_,T]=ut({prop:b,onChange:J=>{if(!w)return;const N=e.find(W=>W[t]===J);w?.(N?.[t],N)},defaultProp:y}),[A,M]=ut({prop:P?.search,defaultProp:P?.searchDefaultValue||"",onChange:P?.onSearchChange}),U=v.useMemo(()=>e.find(J=>J[t]===_),[_]);return g.jsxs(Sc,{open:S,onOpenChange:D,"data-slot":"combobox",children:[g.jsx(_c,{asChild:!0,"data-slot":"combobox-trigger",children:g.jsxs(tr,{...P,...c,variant:"outline",role:"combobox","aria-expanded":S,className:le("font-normal w-full items-center justify-between border-input px-3 hover:bg-background",l),children:[g.jsx("span",{className:"truncate",children:U?C(U):n}),g.jsx(af,{className:"ml-2 h-4 w-4 shrink-0 opacity-50","data-slot":"combobox-trigger-icon"})]})}),g.jsx(Tc,{...p,className:le("p-1",h),asChild:!0,matchTriggerWidth:!0,"data-slot":"combobox-content",children:g.jsxs(uc,{...x,children:[g.jsx(Uf,{value:A,onValueChange:M,placeholder:o,autoFocus:!0,"data-slot":"combobox-input",...s}),g.jsx(Gf,{"data-slot":"combobox-empty",children:i}),g.jsx(zf,{"data-slot":"combobox-list",children:e.map(J=>R.createElement(Ku,{className:f,"data-slot":"combobox-item",...d,key:J[t],value:J[t],onSelect:()=>{const N=J[t];T(N===_?"":N),D(!1)}},C(J)))})]})})]})}const Jz="dd/MM/yyyy",Tu=e=>fi(e)?zt(e,Jz):"",eG=e=>{const t=e.trim();if(!t)return null;const r=/^(\d{1,2})\/(\d{1,2})\/(\d{1,4})$/.exec(t);if(!r)return null;const[,n,o,i]=r,s=Number(n),l=Number(o),c=i;let d=Number(c);if(Number.isNaN(s)||Number.isNaN(l)||Number.isNaN(d)||(c.length<=2&&(d=2e3+d),s<1||s>31||l<1||l>12))return null;const f=new Date(d,l-1,s);return f.getFullYear()!==d||f.getMonth()!==l-1||f.getDate()!==s?null:f},tG=(e,t)=>{const r=(t.lastKey==="Backspace"||t.lastKey==="Delete")&&e.length<t.previousValue.length,n=e.includes("/"),o=e.trim().endsWith("/");if((e.match(/\//g)??[]).length>=2){const C=e.split("/"),x=(C[0]??"").replace(/\D/g,"").slice(0,2),P=(C[1]??"").replace(/\D/g,"").slice(0,2),S=(C[2]??"").replace(/\D/g,"").slice(0,4);return!x&&!P&&!S?"":`${x}/${P}/${S}`}const s=e.replace(/\D/g,"").slice(0,8);if(!s)return"";if(s.length<=2){let C=s;if(s.length===1&&(n||o)&&!r){let x=Number(C);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>31&&(x=31),C=x.toString().padStart(2,"0"),C+="/"}else if(s.length===2&&!r){let x=Number(C);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>31&&(x=31),C=x.toString().padStart(2,"0"),C+="/"}return C}const l=s.slice(0,2);let c=Number(l);Number.isNaN(c)&&(c=1),c<1&&(c=1),c>31&&(c=31);const d=c.toString().padStart(2,"0"),f=s.slice(2,4),p=s.slice(4);let h="";if(f.length===0)h="";else if(f.length===1&&p.length===0){const C=o&&!r&&f.length===1;if(f==="0"||f==="1")if(C){let x=Number(f);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>12&&(x=12),h=x.toString().padStart(2,"0")}else h=f;else{let x=Number(f);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>12&&(x=12),h=x.toString().padStart(2,"0")}}else{let C=Number(f);Number.isNaN(C)&&(C=1),C<1&&(C=1),C>12&&(C=12),h=C.toString().padStart(2,"0")}const b=`${d}/${h}`,w=!p&&h.length===2&&!r;return p?`${b}/${p}`:w?`${b}/`:b},rG=e=>{const{date:t,onDateChange:r,disabledDate:n}=e,[o,i]=R.useState(""),s=R.useRef(null),l=R.useRef("");R.useEffect(()=>{const w=Tu(t??null);i(w),l.current=w},[t]);const c=()=>{const w=o.trim();if(!w){r(null),i(""),l.current="";return}const y=eG(w);if(!y){r(null),i(""),l.current="";return}if(n?.(y)){const x=Tu(t??null);i(x),l.current=x;return}r(y);const C=Tu(y);i(C),l.current=C};return{inputValue:o,handleChange:w=>{const y=w.target.value,C={lastKey:s.current,previousValue:l.current},x=tG(y,C);i(x),l.current=x},handleBlur:()=>{c()},handleKeyDown:w=>{if(s.current=w.key,w.key==="Enter"){w.preventDefault(),c();return}if(w.key==="Escape"){w.preventDefault();const y=Tu(t??null);i(y),l.current=y}},clear:()=>{r(null),i(""),l.current=""},setFromExternalDate:w=>{r(w);const y=Tu(w??null);i(y),l.current=y}}},nG=(e={})=>{const{disabled:t}=e,[r,n]=R.useState(!1),o=R.useRef(null),i=R.useCallback(s=>{if(!t){if(s.key===" "||s.key==="Spacebar"){s.preventDefault(),n(!0);return}s.key==="Escape"&&(n(!1),requestAnimationFrame(()=>{o.current?.focus()}))}},[t]);return{open:r,setOpen:n,handleInputKeyDown:i,inputRef:o}},oG=e=>{const{placeholder:t,value:r,onChange:n,defaultValue:o,autoComplete:i,className:s,disabledDate:l,renderFooter:c,disabled:d,hideFooter:f,onBlur:p,...h}=e,[b,w]=ut({prop:r,onChange:L=>n?.(L??null),defaultProp:o??null}),{inputValue:y,handleChange:C,handleBlur:x,handleKeyDown:P,clear:S,setFromExternalDate:D}=rG({date:b??null,onDateChange:L=>w(L),disabledDate:l}),{open:_,setOpen:T,handleInputKeyDown:A,inputRef:M}=nG({disabled:d}),U=L=>{P(L),A(L)},J=()=>{D(null),S()},N=()=>{const L=new Date;l?.(L)||D(L)},W=()=>g.jsxs("span",{className:"flex w-full p-1 justify-between",children:[g.jsx(tr,{variant:"ghost",onClick:J,children:"Borrar"}),g.jsx(tr,{variant:"ghost",onClick:N,disabled:l?.(new Date),children:"Hoy"})]}),K=()=>f?null:c?c({mode:"single",value:b,clear:J,selectToday:N,setValue:L=>{const G=L&&fi(L)?L:null;w(G),D(G)}}):W();return g.jsxs(Sc,{"data-slot":"date-picker",open:_,onOpenChange:T,children:[g.jsxs("div",{className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 items-center text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",!b&&"text-muted-foreground",s,"field-error"),onClick:L=>{L.target===L.currentTarget&&M.current?.focus()},children:[g.jsx("input",{type:"text",value:y,onChange:C,onBlur:L=>{x(),p?.(L)},onKeyDown:U,placeholder:t??"DD/MM/YYYY",autoComplete:i??"off",disabled:d,className:"flex-1 min-w-0 bg-transparent outline-none text-start truncate pt-px","aria-label":t,ref:M,...h}),g.jsx(_c,{asChild:!0,"data-slot":"date-picker-trigger",children:g.jsxs("button",{type:"button",disabled:d,className:"flex shrink-0 items-center justify-center text-muted-foreground hover:text-foreground p-1",children:[g.jsx(qj,{"data-slot":"date-picker-icon"}),g.jsx("span",{className:"sr-only",children:"Seleccionar fecha"})]})})]}),g.jsxs(Tc,{className:"w-auto p-0",align:"start","data-slot":"date-picker-content",children:[g.jsx(u_,{className:"border-none",mode:"single",value:b,onChange:L=>{if(!fi(L)){D(null);return}l?.(L)||(D(L),T(!1))},disabled:l}),g.jsx("div",{className:"p-2","data-slot":"date-picker-footer",children:K()})]})]})},c_=e=>{const{className:t,orientation:r="horizontal"}=e;return g.jsx("hr",{...e,"aria-orientation":r,className:le("shrink-0 bg-input",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),"data-slot":"divider"})},iG=({onDrop:e,onError:t,allowedExtensions:r=[],maxFileSize:n=5*1024*1024,maxFiles:o=1/0})=>{const[i,s]=R.useState(!1),l=R.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),c=R.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s(!0)},[]),d=R.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s(!1)},[]),f=h=>{const[b=[],w=[],y=[]]=h.reduce(([C,x,P],S)=>r.length>0&&!r.includes(S.type)?(C.push(S),P.push({file:S,errorMessage:"Extensión no permitida",errorCode:"INVALID_EXTENSION"}),[C,x,P]):S.size>n?(C.push(S),P.push({file:S,errorMessage:"Archivo demasiado grande",errorCode:"FILE_TOO_LARGE"}),[C,x,P]):o&&o<x.length+1?(C.push(S),P.push({file:S,errorMessage:"Límite de archivos excedido",errorCode:"MAX_FILES_EXCEEDED"}),[C,x,P]):(x.push(S),[C,x,P]),[[],[],[]]);return y.length>0&&t&&t(y),[b,w,y]},p=R.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s(!1);const b=Array.from(h.dataTransfer.files),[w=[],y=[]]=f(b);e(y,w)},[r,n,o,e,t]);return{isDragActive:i,validateFiles:f,dropzoneProps:{onDragOver:l,onDragEnter:c,onDragLeave:d,onDrop:p}}},d_=R.createContext(null),wg=()=>{const e=R.useContext(d_);if(!e)throw new Error("useUploadContext must be used within a UploadContextProvider");return e},f_=({onFileAdd:e,onFileRemove:t,onChangeFiles:r,files:n,maxFiles:o=1,allowedExtensions:i=[],maxFileSize:s=5*1024*1024,multiple:l,children:c,onError:d,...f})=>{const[p=[],h]=ut({defaultProp:[],prop:n,onChange:r}),[b,w]=R.useState([]),{isDragActive:y,validateFiles:C,dropzoneProps:x}=iG({onDrop:(D,_)=>{h([...p,...D]),w(T=>[...T,..._]),e?.(D)},allowedExtensions:i,maxFileSize:s,maxFiles:o,onError:d}),P=D=>{const[_=[],T=[]]=C(D);if(o===1||!l){h(T.slice(0,1)),w([..._,...T.slice(1)]),e?.(T.slice(0,1));return}const A=o-p.length;if(A<=0){w(J=>[...J,...T]),e?.([]);return}const M=T.slice(0,A),U=T.slice(A);h([...p,...M]),w(J=>[...J,..._,...U]),e?.(M)},S=(D,_)=>{_==="accepted"?h(p.filter((T,A)=>A!==D)):w(T=>T.filter((A,M)=>M!==D)),t?.(D,_)};return g.jsx(d_.Provider,{value:{files:p,rejectedFiles:b,handleFileAdd:P,handleFileRemove:S,inputProps:{accept:i.join(","),multiple:l},isDragActive:y,dropzoneProps:x},children:g.jsx("div",{...f,"data-slot":"upload",children:c})})},p_=({asChild:e,...t})=>{const{handleFileAdd:r,inputProps:n,dropzoneProps:o,isDragActive:i}=wg(),s=R.useRef(null),l=e?sc:"button";return g.jsxs(g.Fragment,{children:[g.jsx(l,{"data-slot":"upload-trigger",...t,...o,"data-drag-active":i||!1,onClick:c=>{t.onClick?.(c),s.current?.click()}}),g.jsx("input",{type:"file",className:"hidden","data-slot":"upload-input",...n,ref:s,onChange:c=>r(Array.from(c.target.files||[]))})]})},m_=({className:e,...t})=>g.jsx("div",{...t,className:le("mt-2 space-y-2",e),"data-slot":"upload-content"}),h_=({files:e,handleFileRemove:t,fileType:r,children:n,renderFile:o,...i})=>e.length===0?null:g.jsxs("div",{className:"mt-2 space-y-2",...i,"data-slot":"upload-files-list",children:[n,e.map((s,l)=>o?o(s,()=>t(l,r)):g.jsx(b_,{file:s,onRemove:()=>t(l,r)},s.name))]}),v_=e=>{const{files:t,handleFileRemove:r}=wg();return g.jsx(h_,{"data-slot":"upload-accepted-files",files:t,handleFileRemove:r,fileType:"accepted",...e})},g_=e=>{const{rejectedFiles:t,handleFileRemove:r}=wg();return g.jsx(h_,{"data-slot":"upload-rejected-files",files:t,handleFileRemove:r,fileType:"rejected",...e})},b_=({file:e,onRemove:t,className:r,renderIcon:n,...o})=>g.jsxs("div",{className:le("flex items-center gap-2 mb-2",r),...o,"data-slot":"upload-item",children:[n?.(e),e.name,g.jsx(tr,{variant:"ghost",size:"icon",type:"button",className:"h-6 w-6",onClick:t,"data-slot":"upload-item-remove",children:g.jsx(jf,{"data-slot":"upload-item-remove-icon"})})]}),aG=({onFileAdd:e,onFileRemove:t,onChangeFiles:r=()=>{},files:n,maxFiles:o=1,allowedExtensions:i=[],maxFileSize:s=5*1024*1024,multiple:l,renderAcceptedFile:c,renderRejectedFile:d,showRejected:f=!1,className:p,icon:h=i5,iconSize:b=40,onError:w,...y})=>{const C=R.useMemo(()=>i.map(x=>x.split("/")?.[1]).join(", "),[i]);return g.jsxs(f_,{onFileAdd:e,onFileRemove:t,files:n,onChangeFiles:r,maxFiles:o,allowedExtensions:i,maxFileSize:s,multiple:l?!0:void 0,className:le("w-full",p),onError:w,...y,children:[g.jsx(p_,{asChild:!0,children:g.jsxs("div",{className:le("w-full min-h-[150px] border-2 border-dashed rounded-lg border-muted p-4","hover:bg-muted/50 data-[drag-active=true]:border-primary data-[drag-active=true]:bg-primary/10","transition-colors flex flex-col items-center justify-center gap-4","pointer-events-auto"),children:[g.jsx(h,{className:"text-muted-foreground pointer-events-none",style:{width:b,height:b}}),g.jsxs("div",{className:"text-center text-muted-foreground pointer-events-none",children:[g.jsx("p",{children:"Arrastra y suelta archivos aquí o haz clic para seleccionar"}),i.length>0&&g.jsxs("p",{className:"text-sm",children:["Tipos permitidos: ",C]}),g.jsxs("p",{className:"text-sm",children:["Tamaño máximo: ",Math.floor(s/1024/1024),"MB"]})]})]})}),g.jsxs(m_,{children:[g.jsx(v_,{renderFile:c}),f&&g.jsx(g_,{renderFile:d})]})]})},It={JPEG:"image/jpeg",JPG:"image/jpg",PNG:"image/png",GIF:"image/gif",WEBP:"image/webp",SVG:"image/svg+xml",PDF:"application/pdf",DOC:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",XLS:"application/vnd.ms-excel",XLSX:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PPT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",TXT:"text/plain",CSV:"text/csv",ZIP:"application/zip",RAR:"application/x-rar-compressed",MP3:"audio/mpeg",WAV:"audio/wav",MP4:"video/mp4",WEBM:"video/webm",JSON:"application/json",XML:"application/xml"},sG={IMAGES:[It.JPEG,It.JPG,It.PNG,It.GIF,It.WEBP,It.SVG],DOCUMENTS:[It.PDF,It.DOC,It.DOCX,It.XLS,It.XLSX,It.PPT,It.PPTX],COMPRESSED:[It.ZIP,It.RAR],AUDIO:[It.MP3,It.WAV],VIDEO:[It.MP4,It.WEBM]},lG=eo([],{variants:{size:{sm:"text-[14px]",md:"text-[16px]",lg:"text-[18px]",xl:"text-[20px]","2xl":"text-[24px]","3xl":"text-[28px]","4xl":"text-[32px]","5xl":"text-[36px]","6xl":"text-[40px]"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{size:"xl",weight:"semibold"}}),y_=({className:e,size:t,weight:r,as:n,...o})=>{const i=n||"h2";return g.jsx(i,{className:le(lG({size:t,weight:r}),e),...o,"data-slot":"heading","data-size":t,"data-weight":r})},uG=({icon:e=g.jsx(d5,{className:"w-12 h-12"}),title:t="No hay resultados",description:r,className:n,children:o,...i})=>g.jsxs("div",{className:le("flex flex-col gap-2 justify-center items-center",n),"data-slot":"empty-state",...i,children:[g.jsx("div",{className:"text-muted-foreground","data-slot":"empty-state-icon",children:e}),g.jsx(y_,{className:"empty:hidden","data-slot":"empty-state-title",children:t}),g.jsx("p",{className:"py-1 text-sm text-center text-muted-foreground empty:hidden","data-slot":"empty-state-description",children:r}),o]}),cG=({label:e,labelClassName:t,labelProps:r,error:n,errorClassName:o,errorProps:i,children:s,className:l,...c})=>g.jsxs("div",{...c,className:le("flex flex-col gap-1",l),"data-slot":"field",children:[g.jsx(pc,{className:le("empty:hidden",t),...r,"data-slot":"field-label",children:e}),s,g.jsx("p",{"data-slot":"field-error",className:le("text-sm font-medium text-error empty:hidden",o),...i,children:n})]});var mc=e=>e.type==="checkbox",ri=e=>e instanceof Date,vr=e=>e==null;const x_=e=>typeof e=="object";var Ft=e=>!vr(e)&&!Array.isArray(e)&&x_(e)&&!ri(e),w_=e=>Ft(e)&&e.target?mc(e.target)?e.target.checked:e.target.value:e,dG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,E_=(e,t)=>e.has(dG(t)),fG=e=>{const t=e.constructor&&e.constructor.prototype;return Ft(t)&&t.hasOwnProperty("isPrototypeOf")},Eg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Eg&&(e instanceof Blob||n))&&(r||Ft(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!fG(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Vt(e[o]));else return e;return t}var Jf=e=>/^\w*$/.test(e),St=e=>e===void 0,Cg=e=>Array.isArray(e)?e.filter(Boolean):[],Rg=e=>Cg(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,r)=>{if(!t||!Ft(e))return r;const n=(Jf(t)?[t]:Rg(t)).reduce((o,i)=>vr(o)?o:o[i],e);return St(n)||n===e?St(e[t])?r:e[t]:n},Rr=e=>typeof e=="boolean",ot=(e,t,r)=>{let n=-1;const o=Jf(t)?[t]:Rg(t),i=o.length,s=i-1;for(;++n<i;){const l=o[n];let c=r;if(n!==s){const d=e[l];c=Ft(d)||Array.isArray(d)?d:isNaN(+o[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const bf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Jr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Kn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Pg=R.createContext(null);Pg.displayName="HookFormContext";const hc=()=>R.useContext(Pg),pG=e=>{const{children:t,...r}=e;return R.createElement(Pg.Provider,{value:r},t)};var C_=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Jr.all&&(t._proxyFormState[s]=!n||Jr.all),r&&(r[s]=!0),e[s]}});return o};const Sg=typeof window<"u"?R.useLayoutEffect:R.useEffect;function mG(e){const t=hc(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[s,l]=R.useState(r._formState),c=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Sg(()=>r._subscribe({name:o,formState:c.current,exact:i,callback:d=>{!n&&l({...r._formState,...d})}}),[o,n,i]),R.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),R.useMemo(()=>C_(s,r,c.current,!1),[s,r])}var Sr=e=>typeof e=="string",av=(e,t,r,n,o)=>Sr(e)?(n&&t.watch.add(e),Ce(r,e,o)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),Ce(r,i))):(n&&(t.watchAll=!0),r),sv=e=>vr(e)||!x_(e);function en(e,t,r=new WeakSet){if(sv(e)||sv(t))return Object.is(e,t);if(ri(e)&&ri(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const i of n){const s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const l=t[i];if(ri(s)&&ri(l)||Ft(s)&&Ft(l)||Array.isArray(s)&&Array.isArray(l)?!en(s,l,r):!Object.is(s,l))return!1}}return!0}function hG(e){const t=hc(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},c=R.useRef(o),d=R.useRef(l),f=R.useRef(void 0),p=R.useRef(r),h=R.useRef(n);d.current=l;const[b,w]=R.useState(()=>{const D=r._getWatch(n,c.current);return d.current?d.current(D):D}),y=R.useCallback(D=>{const _=av(n,r._names,D||r._formValues,!1,c.current);return d.current?d.current(_):_},[r._formValues,r._names,n]),C=R.useCallback(D=>{if(!i){const _=av(n,r._names,D||r._formValues,!1,c.current);if(d.current){const T=d.current(_);en(T,f.current)||(w(T),f.current=T)}else w(_)}},[r._formValues,r._names,i,n]);Sg(()=>((p.current!==r||!en(h.current,n))&&(p.current=r,h.current=n,C()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:D=>{C(D.values)}})),[r,s,n,C]),R.useEffect(()=>r._removeUnmounted());const x=p.current!==r,P=h.current,S=R.useMemo(()=>{if(i)return null;const D=!x&&!en(P,n);return x||D?y():null},[i,x,n,P,y]);return S!==null?S:b}function vG(e){const t=hc(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i,defaultValue:s,exact:l=!0}=e,c=E_(o._names.array,r),d=R.useMemo(()=>Ce(o._formValues,r,Ce(o._defaultValues,r,s)),[o,r,s]),f=hG({control:o,name:r,defaultValue:d,exact:l}),p=mG({control:o,name:r,exact:l}),h=R.useRef(e),b=R.useRef(void 0),w=R.useRef(o.register(r,{...e.rules,value:f,...Rr(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const y=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ce(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ce(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ce(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ce(p.validatingFields,r)},error:{enumerable:!0,get:()=>Ce(p.errors,r)}}),[p,r]),C=R.useCallback(D=>w.current.onChange({target:{value:w_(D),name:r},type:bf.CHANGE}),[r]),x=R.useCallback(()=>w.current.onBlur({target:{value:Ce(o._formValues,r),name:r},type:bf.BLUR}),[r,o._formValues]),P=R.useCallback(D=>{const _=Ce(o._fields,r);_&&D&&(_._f.ref={focus:()=>D.focus&&D.focus(),select:()=>D.select&&D.select(),setCustomValidity:T=>D.setCustomValidity(T),reportValidity:()=>D.reportValidity()})},[o._fields,r]),S=R.useMemo(()=>({name:r,value:f,...Rr(n)||p.disabled?{disabled:p.disabled||n}:{},onChange:C,onBlur:x,ref:P}),[r,n,p.disabled,C,x,P,f]);return R.useEffect(()=>{const D=o._options.shouldUnregister||i,_=b.current;_&&_!==r&&!c&&o.unregister(_),o.register(r,{...h.current.rules,...Rr(h.current.disabled)?{disabled:h.current.disabled}:{}});const T=(A,M)=>{const U=Ce(o._fields,A);U&&U._f&&(U._f.mount=M)};if(T(r,!0),D){const A=Vt(Ce(o._options.defaultValues,r,h.current.defaultValue));ot(o._defaultValues,r,A),St(Ce(o._formValues,r))&&ot(o._formValues,r,A)}return!c&&o.register(r),b.current=r,()=>{(c?D&&!o._state.action:D)?o.unregister(r):T(r,!1)}},[r,o,c,i]),R.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),R.useMemo(()=>({field:S,formState:p,fieldState:y}),[S,p,y])}const gG=e=>e.render(vG(e));var _g=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},qu=e=>Array.isArray(e)?e:[e],sR=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function R_(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],i=t[n];if(o&&Ft(o)&&i){const s=R_(o,i);Ft(s)&&(r[n]=s)}else e[n]&&(r[n]=i)}return r}var lr=e=>Ft(e)&&!Object.keys(e).length,Tg=e=>e.type==="file",tn=e=>typeof e=="function",yf=e=>{if(!Eg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},P_=e=>e.type==="select-multiple",$g=e=>e.type==="radio",bG=e=>$g(e)||mc(e),bh=e=>yf(e)&&e.isConnected;function yG(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=St(e)?n++:e[t[n++]];return e}function xG(e){for(const t in e)if(e.hasOwnProperty(t)&&!St(e[t]))return!1;return!0}function kt(e,t){const r=Array.isArray(t)?t:Jf(t)?[t]:Rg(t),n=r.length===1?e:yG(e,r),o=r.length-1,i=r[o];return n&&delete n[i],o!==0&&(Ft(n)&&lr(n)||Array.isArray(n)&&xG(n))&&kt(e,r.slice(0,-1)),e}var wG=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function S_(e){return Array.isArray(e)||Ft(e)&&!wG(e)}function lv(e,t={}){for(const r in e){const n=e[r];S_(n)?(t[r]=Array.isArray(n)?[]:{},lv(n,t[r])):St(n)||(t[r]=!0)}return t}function Qi(e,t,r){r||(r=lv(t));for(const n in e){const o=e[n];if(S_(o))St(t)||sv(r[n])?r[n]=lv(o,Array.isArray(o)?[]:{}):Qi(o,vr(t)?{}:t[n],r[n]);else{const i=t[n];r[n]=!en(o,i)}}return r}const lR={value:!1,isValid:!1},uR={value:!0,isValid:!0};var __=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!St(e[0].attributes.value)?St(e[0].value)||e[0].value===""?uR:{value:e[0].value,isValid:!0}:uR:lR}return lR},T_=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>St(e)?e:t?e===""?NaN:e&&+e:r&&Sr(e)?new Date(e):n?n(e):e;const cR={isValid:!1,value:null};var $_=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,cR):cR;function dR(e){const t=e.ref;return Tg(t)?t.files:$g(t)?$_(e.refs).value:P_(t)?[...t.selectedOptions].map(({value:r})=>r):mc(t)?__(e.refs).value:T_(St(t.value)?e.ref.value:t.value,e)}var EG=(e,t,r,n)=>{const o={};for(const i of e){const s=Ce(t,i);s&&ot(o,i,s._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},xf=e=>e instanceof RegExp,$u=e=>St(e)?e:xf(e)?e.source:Ft(e)?xf(e.value)?e.value.source:e.value:e,fR=e=>({isOnSubmit:!e||e===Jr.onSubmit,isOnBlur:e===Jr.onBlur,isOnChange:e===Jr.onChange,isOnAll:e===Jr.all,isOnTouch:e===Jr.onTouched});const pR="AsyncFunction";var CG=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===pR||Ft(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===pR)),RG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),mR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const ju=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const i=Ce(e,o);if(i){const{_f:s,...l}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(ju(l,t))break}else if(Ft(l)&&ju(l,t))break}}};function hR(e,t,r){const n=Ce(e,r);if(n||Jf(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const i=o.join("."),s=Ce(t,i),l=Ce(e,i);if(s&&!Array.isArray(s)&&r!==i)return{name:r};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};o.pop()}return{name:r}}var PG=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return lr(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!n||Jr.all))},SG=(e,t,r)=>!e||!t||e===t||qu(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),_G=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,TG=(e,t)=>!Cg(Ce(e,t)).length&&kt(e,t),$G=(e,t,r)=>{const n=qu(Ce(e,r));return ot(n,"root",t[r]),ot(e,r,n),e};function vR(e,t,r="validate"){if(Sr(e)||Array.isArray(e)&&e.every(Sr)||Rr(e)&&!e)return{type:r,message:Sr(e)?e:"",ref:t}}var Ui=e=>Ft(e)&&!xf(e)?e:{value:e,message:""},gR=async(e,t,r,n,o,i)=>{const{ref:s,refs:l,required:c,maxLength:d,minLength:f,min:p,max:h,pattern:b,validate:w,name:y,valueAsNumber:C,mount:x}=e._f,P=Ce(r,y);if(!x||t.has(y))return{};const S=l?l[0]:s,D=W=>{o&&S.reportValidity&&(S.setCustomValidity(Rr(W)?"":W||""),S.reportValidity())},_={},T=$g(s),A=mc(s),M=T||A,U=(C||Tg(s))&&St(s.value)&&St(P)||yf(s)&&s.value===""||P===""||Array.isArray(P)&&!P.length,J=_g.bind(null,y,n,_),N=(W,K,L,G=Kn.maxLength,k=Kn.minLength)=>{const F=W?K:L;_[y]={type:W?G:k,message:F,ref:s,...J(W?G:k,F)}};if(i?!Array.isArray(P)||!P.length:c&&(!M&&(U||vr(P))||Rr(P)&&!P||A&&!__(l).isValid||T&&!$_(l).isValid)){const{value:W,message:K}=Sr(c)?{value:!!c,message:c}:Ui(c);if(W&&(_[y]={type:Kn.required,message:K,ref:S,...J(Kn.required,K)},!n))return D(K),_}if(!U&&(!vr(p)||!vr(h))){let W,K;const L=Ui(h),G=Ui(p);if(!vr(P)&&!isNaN(P)){const k=s.valueAsNumber||P&&+P;vr(L.value)||(W=k>L.value),vr(G.value)||(K=k<G.value)}else{const k=s.valueAsDate||new Date(P),F=V=>new Date(new Date().toDateString()+" "+V),j=s.type=="time",re=s.type=="week";Sr(L.value)&&P&&(W=j?F(P)>F(L.value):re?P>L.value:k>new Date(L.value)),Sr(G.value)&&P&&(K=j?F(P)<F(G.value):re?P<G.value:k<new Date(G.value))}if((W||K)&&(N(!!W,L.message,G.message,Kn.max,Kn.min),!n))return D(_[y].message),_}if((d||f)&&!U&&(Sr(P)||i&&Array.isArray(P))){const W=Ui(d),K=Ui(f),L=!vr(W.value)&&P.length>+W.value,G=!vr(K.value)&&P.length<+K.value;if((L||G)&&(N(L,W.message,K.message),!n))return D(_[y].message),_}if(b&&!U&&Sr(P)){const{value:W,message:K}=Ui(b);if(xf(W)&&!P.match(W)&&(_[y]={type:Kn.pattern,message:K,ref:s,...J(Kn.pattern,K)},!n))return D(K),_}if(w){if(tn(w)){const W=await w(P,r),K=vR(W,S);if(K&&(_[y]={...K,...J(Kn.validate,K.message)},!n))return D(K.message),_}else if(Ft(w)){let W={};for(const K in w){if(!lr(W)&&!n)break;const L=vR(await w[K](P,r),S,K);L&&(W={...L,...J(K,L.message)},D(L.message),n&&(_[y]=W))}if(!lr(W)&&(_[y]={ref:S,...W},!n))return _}}return D(!0),_};const AG={mode:Jr.onSubmit,reValidateMode:Jr.onChange,shouldFocusError:!0};function DG(e={}){let t={...AG,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Ft(t.defaultValues)||Ft(t.values)?Vt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Vt(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...f};const h={array:sR(),state:sR()},b=t.criteriaMode===Jr.all,w=H=>ne=>{clearTimeout(d),d=setTimeout(H,ne)},y=async H=>{if(!t.disabled&&(f.isValid||p.isValid||H)){const ne=t.resolver?lr((await A()).errors):await U(n,!0);ne!==r.isValid&&h.state.next({isValid:ne})}},C=(H,ne)=>{!t.disabled&&(f.isValidating||f.validatingFields||p.isValidating||p.validatingFields)&&((H||Array.from(l.mount)).forEach(de=>{de&&(ne?ot(r.validatingFields,de,ne):kt(r.validatingFields,de))}),h.state.next({validatingFields:r.validatingFields,isValidating:!lr(r.validatingFields)}))},x=(H,ne=[],de,Ee,xe=!0,be=!0)=>{if(Ee&&de&&!t.disabled){if(s.action=!0,be&&Array.isArray(Ce(n,H))){const Ae=de(Ce(n,H),Ee.argA,Ee.argB);xe&&ot(n,H,Ae)}if(be&&Array.isArray(Ce(r.errors,H))){const Ae=de(Ce(r.errors,H),Ee.argA,Ee.argB);xe&&ot(r.errors,H,Ae),TG(r.errors,H)}if((f.touchedFields||p.touchedFields)&&be&&Array.isArray(Ce(r.touchedFields,H))){const Ae=de(Ce(r.touchedFields,H),Ee.argA,Ee.argB);xe&&ot(r.touchedFields,H,Ae)}(f.dirtyFields||p.dirtyFields)&&(r.dirtyFields=Qi(o,i)),h.state.next({name:H,isDirty:N(H,ne),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ot(i,H,ne)},P=(H,ne)=>{ot(r.errors,H,ne),h.state.next({errors:r.errors})},S=H=>{r.errors=H,h.state.next({errors:r.errors,isValid:!1})},D=(H,ne,de,Ee)=>{const xe=Ce(n,H);if(xe){const be=Ce(i,H,St(de)?Ce(o,H):de);St(be)||Ee&&Ee.defaultChecked||ne?ot(i,H,ne?be:dR(xe._f)):L(H,be),s.mount&&!s.action&&y()}},_=(H,ne,de,Ee,xe)=>{let be=!1,Ae=!1;const Ke={name:H};if(!t.disabled){if(!de||Ee){(f.isDirty||p.isDirty)&&(Ae=r.isDirty,r.isDirty=Ke.isDirty=N(),be=Ae!==Ke.isDirty);const ze=en(Ce(o,H),ne);Ae=!!Ce(r.dirtyFields,H),ze?kt(r.dirtyFields,H):ot(r.dirtyFields,H,!0),Ke.dirtyFields=r.dirtyFields,be=be||(f.dirtyFields||p.dirtyFields)&&Ae!==!ze}if(de){const ze=Ce(r.touchedFields,H);ze||(ot(r.touchedFields,H,de),Ke.touchedFields=r.touchedFields,be=be||(f.touchedFields||p.touchedFields)&&ze!==de)}be&&xe&&h.state.next(Ke)}return be?Ke:{}},T=(H,ne,de,Ee)=>{const xe=Ce(r.errors,H),be=(f.isValid||p.isValid)&&Rr(ne)&&r.isValid!==ne;if(t.delayError&&de?(c=w(()=>P(H,de)),c(t.delayError)):(clearTimeout(d),c=null,de?ot(r.errors,H,de):kt(r.errors,H)),(de?!en(xe,de):xe)||!lr(Ee)||be){const Ae={...Ee,...be&&Rr(ne)?{isValid:ne}:{},errors:r.errors,name:H};r={...r,...Ae},h.state.next(Ae)}},A=async H=>{C(H,!0);const ne=await t.resolver(i,t.context,EG(H||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return C(H),ne},M=async H=>{const{errors:ne}=await A(H);if(H)for(const de of H){const Ee=Ce(ne,de);Ee?ot(r.errors,de,Ee):kt(r.errors,de)}else r.errors=ne;return ne},U=async(H,ne,de={valid:!0})=>{for(const Ee in H){const xe=H[Ee];if(xe){const{_f:be,...Ae}=xe;if(be){const Ke=l.array.has(be.name),ze=xe._f&&CG(xe._f);ze&&f.validatingFields&&C([be.name],!0);const Ht=await gR(xe,l.disabled,i,b,t.shouldUseNativeValidation&&!ne,Ke);if(ze&&f.validatingFields&&C([be.name]),Ht[be.name]&&(de.valid=!1,ne))break;!ne&&(Ce(Ht,be.name)?Ke?$G(r.errors,Ht,be.name):ot(r.errors,be.name,Ht[be.name]):kt(r.errors,be.name))}!lr(Ae)&&await U(Ae,ne,de)}}return de.valid},J=()=>{for(const H of l.unMount){const ne=Ce(n,H);ne&&(ne._f.refs?ne._f.refs.every(de=>!bh(de)):!bh(ne._f.ref))&&te(H)}l.unMount=new Set},N=(H,ne)=>!t.disabled&&(H&&ne&&ot(i,H,ne),!en(V(),o)),W=(H,ne,de)=>av(H,l,{...s.mount?i:St(ne)?o:Sr(H)?{[H]:ne}:ne},de,ne),K=H=>Cg(Ce(s.mount?i:o,H,t.shouldUnregister?Ce(o,H,[]):[])),L=(H,ne,de={})=>{const Ee=Ce(n,H);let xe=ne;if(Ee){const be=Ee._f;be&&(!be.disabled&&ot(i,H,T_(ne,be)),xe=yf(be.ref)&&vr(ne)?"":ne,P_(be.ref)?[...be.ref.options].forEach(Ae=>Ae.selected=xe.includes(Ae.value)):be.refs?mc(be.ref)?be.refs.forEach(Ae=>{(!Ae.defaultChecked||!Ae.disabled)&&(Array.isArray(xe)?Ae.checked=!!xe.find(Ke=>Ke===Ae.value):Ae.checked=xe===Ae.value||!!xe)}):be.refs.forEach(Ae=>Ae.checked=Ae.value===xe):Tg(be.ref)?be.ref.value="":(be.ref.value=xe,be.ref.type||h.state.next({name:H,values:Vt(i)})))}(de.shouldDirty||de.shouldTouch)&&_(H,xe,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&re(H)},G=(H,ne,de)=>{for(const Ee in ne){if(!ne.hasOwnProperty(Ee))return;const xe=ne[Ee],be=H+"."+Ee,Ae=Ce(n,be);(l.array.has(H)||Ft(xe)||Ae&&!Ae._f)&&!ri(xe)?G(be,xe,de):L(be,xe,de)}},k=(H,ne,de={})=>{const Ee=Ce(n,H),xe=l.array.has(H),be=Vt(ne);ot(i,H,be),xe?(h.array.next({name:H,values:Vt(i)}),(f.isDirty||f.dirtyFields||p.isDirty||p.dirtyFields)&&de.shouldDirty&&h.state.next({name:H,dirtyFields:Qi(o,i),isDirty:N(H,be)})):Ee&&!Ee._f&&!vr(be)?G(H,be,de):L(H,be,de),mR(H,l)&&h.state.next({...r,name:H}),h.state.next({name:s.mount?H:void 0,values:Vt(i)})},F=async H=>{s.mount=!0;const ne=H.target;let de=ne.name,Ee=!0;const xe=Ce(n,de),be=ze=>{Ee=Number.isNaN(ze)||ri(ze)&&isNaN(ze.getTime())||en(ze,Ce(i,de,ze))},Ae=fR(t.mode),Ke=fR(t.reValidateMode);if(xe){let ze,Ht;const ln=ne.type?dR(xe._f):w_(H),cr=H.type===bf.BLUR||H.type===bf.FOCUS_OUT,ko=!RG(xe._f)&&!t.resolver&&!Ce(r.errors,de)&&!xe._f.deps||_G(cr,Ce(r.touchedFields,de),r.isSubmitted,Ke,Ae),Rn=mR(de,l,cr);ot(i,de,ln),cr?(!ne||!ne.readOnly)&&(xe._f.onBlur&&xe._f.onBlur(H),c&&c(0)):xe._f.onChange&&xe._f.onChange(H);const Pn=_(de,ln,cr),Lo=!lr(Pn)||Rn;if(!cr&&h.state.next({name:de,type:H.type,values:Vt(i)}),ko)return(f.isValid||p.isValid)&&(t.mode==="onBlur"?cr&&y():cr||y()),Lo&&h.state.next({name:de,...Rn?{}:Pn});if(!cr&&Rn&&h.state.next({...r}),t.resolver){const{errors:no}=await A([de]);if(be(ln),Ee){const Fo=hR(r.errors,n,de),Ri=hR(no,n,Fo.name||de);ze=Ri.error,de=Ri.name,Ht=lr(no)}}else C([de],!0),ze=(await gR(xe,l.disabled,i,b,t.shouldUseNativeValidation))[de],C([de]),be(ln),Ee&&(ze?Ht=!1:(f.isValid||p.isValid)&&(Ht=await U(n,!0)));Ee&&(xe._f.deps&&(!Array.isArray(xe._f.deps)||xe._f.deps.length>0)&&re(xe._f.deps),T(de,Ht,ze,Pn))}},j=(H,ne)=>{if(Ce(r.errors,ne)&&H.focus)return H.focus(),1},re=async(H,ne={})=>{let de,Ee;const xe=qu(H);if(t.resolver){const be=await M(St(H)?H:xe);de=lr(be),Ee=H?!xe.some(Ae=>Ce(be,Ae)):de}else H?(Ee=(await Promise.all(xe.map(async be=>{const Ae=Ce(n,be);return await U(Ae&&Ae._f?{[be]:Ae}:Ae)}))).every(Boolean),!(!Ee&&!r.isValid)&&y()):Ee=de=await U(n);return h.state.next({...!Sr(H)||(f.isValid||p.isValid)&&de!==r.isValid?{}:{name:H},...t.resolver||!H?{isValid:de}:{},errors:r.errors}),ne.shouldFocus&&!Ee&&ju(n,j,H?xe:l.mount),Ee},V=(H,ne)=>{let de={...s.mount?i:o};return ne&&(de=R_(ne.dirtyFields?r.dirtyFields:r.touchedFields,de)),St(H)?de:Sr(H)?Ce(de,H):H.map(Ee=>Ce(de,Ee))},ie=(H,ne)=>({invalid:!!Ce((ne||r).errors,H),isDirty:!!Ce((ne||r).dirtyFields,H),error:Ce((ne||r).errors,H),isValidating:!!Ce(r.validatingFields,H),isTouched:!!Ce((ne||r).touchedFields,H)}),Y=H=>{H&&qu(H).forEach(ne=>kt(r.errors,ne)),h.state.next({errors:H?r.errors:{}})},X=(H,ne,de)=>{const Ee=(Ce(n,H,{_f:{}})._f||{}).ref,xe=Ce(r.errors,H)||{},{ref:be,message:Ae,type:Ke,...ze}=xe;ot(r.errors,H,{...ze,...ne,ref:Ee}),h.state.next({name:H,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&Ee&&Ee.focus&&Ee.focus()},ce=(H,ne)=>tn(H)?h.state.subscribe({next:de=>"values"in de&&H(W(void 0,ne),de)}):W(H,ne,!0),ue=H=>h.state.subscribe({next:ne=>{SG(H.name,ne.name,H.exact)&&PG(ne,H.formState||f,mt,H.reRenderRoot)&&H.callback({values:{...i},...r,...ne,defaultValues:o})}}).unsubscribe,pe=H=>(s.mount=!0,p={...p,...H.formState},ue({...H,formState:p})),te=(H,ne={})=>{for(const de of H?qu(H):l.mount)l.mount.delete(de),l.array.delete(de),ne.keepValue||(kt(n,de),kt(i,de)),!ne.keepError&&kt(r.errors,de),!ne.keepDirty&&kt(r.dirtyFields,de),!ne.keepTouched&&kt(r.touchedFields,de),!ne.keepIsValidating&&kt(r.validatingFields,de),!t.shouldUnregister&&!ne.keepDefaultValue&&kt(o,de);h.state.next({values:Vt(i)}),h.state.next({...r,...ne.keepDirty?{isDirty:N()}:{}}),!ne.keepIsValid&&y()},ve=({disabled:H,name:ne})=>{(Rr(H)&&s.mount||H||l.disabled.has(ne))&&(H?l.disabled.add(ne):l.disabled.delete(ne))},q=(H,ne={})=>{let de=Ce(n,H);const Ee=Rr(ne.disabled)||Rr(t.disabled);return ot(n,H,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:H}},name:H,mount:!0,...ne}}),l.mount.add(H),de?ve({disabled:Rr(ne.disabled)?ne.disabled:t.disabled,name:H}):D(H,!0,ne.value),{...Ee?{disabled:ne.disabled||t.disabled}:{},...t.progressive?{required:!!ne.required,min:$u(ne.min),max:$u(ne.max),minLength:$u(ne.minLength),maxLength:$u(ne.maxLength),pattern:$u(ne.pattern)}:{},name:H,onChange:F,onBlur:F,ref:xe=>{if(xe){q(H,ne),de=Ce(n,H);const be=St(xe.value)&&xe.querySelectorAll&&xe.querySelectorAll("input,select,textarea")[0]||xe,Ae=bG(be),Ke=de._f.refs||[];if(Ae?Ke.find(ze=>ze===be):be===de._f.ref)return;ot(n,H,{_f:{...de._f,...Ae?{refs:[...Ke.filter(bh),be,...Array.isArray(Ce(o,H))?[{}]:[]],ref:{type:be.type,name:H}}:{ref:be}}}),D(H,!1,void 0,be)}else de=Ce(n,H,{}),de._f&&(de._f.mount=!1),(t.shouldUnregister||ne.shouldUnregister)&&!(E_(l.array,H)&&s.action)&&l.unMount.add(H)}}},ae=()=>t.shouldFocusError&&ju(n,j,l.mount),oe=H=>{Rr(H)&&(h.state.next({disabled:H}),ju(n,(ne,de)=>{const Ee=Ce(n,de);Ee&&(ne.disabled=Ee._f.disabled||H,Array.isArray(Ee._f.refs)&&Ee._f.refs.forEach(xe=>{xe.disabled=Ee._f.disabled||H}))},0,!1))},Z=(H,ne)=>async de=>{let Ee;de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Vt(i);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:be,values:Ae}=await A();r.errors=be,xe=Vt(Ae)}else await U(n);if(l.disabled.size)for(const be of l.disabled)kt(xe,be);if(kt(r.errors,"root"),lr(r.errors)){h.state.next({errors:{}});try{await H(xe,de)}catch(be){Ee=be}}else ne&&await ne({...r.errors},de),ae(),setTimeout(ae);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:lr(r.errors)&&!Ee,submitCount:r.submitCount+1,errors:r.errors}),Ee)throw Ee},we=(H,ne={})=>{Ce(n,H)&&(St(ne.defaultValue)?k(H,Vt(Ce(o,H))):(k(H,ne.defaultValue),ot(o,H,Vt(ne.defaultValue))),ne.keepTouched||kt(r.touchedFields,H),ne.keepDirty||(kt(r.dirtyFields,H),r.isDirty=ne.defaultValue?N(H,Vt(Ce(o,H))):N()),ne.keepError||(kt(r.errors,H),f.isValid&&y()),h.state.next({...r}))},De=(H,ne={})=>{const de=H?Vt(H):o,Ee=Vt(de),xe=lr(H),be=xe?o:Ee;if(ne.keepDefaultValues||(o=de),!ne.keepValues){if(ne.keepDirtyValues){const Ae=new Set([...l.mount,...Object.keys(Qi(o,i))]);for(const Ke of Array.from(Ae))Ce(r.dirtyFields,Ke)?ot(be,Ke,Ce(i,Ke)):k(Ke,Ce(be,Ke))}else{if(Eg&&St(H))for(const Ae of l.mount){const Ke=Ce(n,Ae);if(Ke&&Ke._f){const ze=Array.isArray(Ke._f.refs)?Ke._f.refs[0]:Ke._f.ref;if(yf(ze)){const Ht=ze.closest("form");if(Ht){Ht.reset();break}}}}if(ne.keepFieldsRef)for(const Ae of l.mount)k(Ae,Ce(be,Ae));else n={}}i=t.shouldUnregister?ne.keepDefaultValues?Vt(o):{}:Vt(be),h.array.next({values:{...be}}),h.state.next({values:{...be}})}l={mount:ne.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!ne.keepIsValid||!!ne.keepDirtyValues||!t.shouldUnregister&&!lr(be),s.watch=!!t.shouldUnregister,s.action=!1,ne.keepErrors||(r.errors={}),h.state.next({submitCount:ne.keepSubmitCount?r.submitCount:0,isDirty:xe?!1:ne.keepDirty?r.isDirty:!!(ne.keepDefaultValues&&!en(H,o)),isSubmitted:ne.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:xe?{}:ne.keepDirtyValues?ne.keepDefaultValues&&i?Qi(o,i):r.dirtyFields:ne.keepDefaultValues&&H?Qi(o,H):ne.keepDirty?r.dirtyFields:{},touchedFields:ne.keepTouched?r.touchedFields:{},errors:ne.keepErrors?r.errors:{},isSubmitSuccessful:ne.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Ue=(H,ne)=>De(tn(H)?H(i):H,ne),wt=(H,ne={})=>{const de=Ce(n,H),Ee=de&&de._f;if(Ee){const xe=Ee.refs?Ee.refs[0]:Ee.ref;xe.focus&&(xe.focus(),ne.shouldSelect&&tn(xe.select)&&xe.select())}},mt=H=>{r={...r,...H}},Ci={control:{register:q,unregister:te,getFieldState:ie,handleSubmit:Z,setError:X,_subscribe:ue,_runSchema:A,_focusError:ae,_getWatch:W,_getDirty:N,_setValid:y,_setFieldArray:x,_setDisabledField:ve,_setErrors:S,_getFieldArray:K,_reset:De,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(H=>{Ue(H,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:oe,_subjects:h,_proxyFormState:f,get _fields(){return n},get _formValues(){return i},get _state(){return s},set _state(H){s=H},get _defaultValues(){return o},get _names(){return l},set _names(H){l=H},get _formState(){return r},get _options(){return t},set _options(H){t={...t,...H}}},subscribe:pe,trigger:re,register:q,handleSubmit:Z,watch:ce,setValue:k,getValues:V,reset:Ue,resetField:we,clearErrors:Y,unregister:te,setError:X,setFocus:wt,getFieldState:ie};return{...Ci,formControl:Ci}}function MG(e={}){const t=R.useRef(void 0),r=R.useRef(void 0),[n,o]=R.useState({isDirty:!1,isValidating:!1,isLoading:tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:tn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!tn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=DG(e);t.current={...l,formState:n}}const i=t.current.control;return i._options=e,Sg(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),i._formState.isReady=!0,s},[i]),R.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),R.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),R.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),R.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==n.isDirty&&i._subjects.state.next({isDirty:s})}},[i,n.isDirty]),R.useEffect(()=>{var s;e.values&&!en(e.values,r.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),!((s=i._options.resetOptions)===null||s===void 0)&&s.keepIsValid||i._setValid(),r.current=e.values,o(l=>({...l}))):i._resetDefaultValues()},[i,e.values]),R.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=C_(n,i),t.current}const[OG,NG]=cc(),[IG,kG]=cc(),vc=()=>{const e=IG(),t=OG(),{getFieldState:r,formState:n}=hc();if(!e)throw new Error("useFormField should be used within <FormField>");const o=r(e.name,n),{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},LG=({onSubmit:e,id:t,form:r,children:n,className:o})=>g.jsx(pG,{...r,children:g.jsx("form",{id:t,onSubmit:r.handleSubmit(e),className:o,"data-slot":"form",children:n})}),FG=({name:e,label:t,description:r,className:n,render:o,itemProps:i,labelProps:s,controlProps:l,descriptionProps:c,messageProps:d})=>{const{control:f}=hc();return g.jsx(kG,{value:{name:e},children:g.jsx(gG,{name:e,control:f,render:({field:p,fieldState:h})=>g.jsxs(A_,{className:n,...i,children:[t&&g.jsx(D_,{...s,children:t}),g.jsx(M_,{...l,children:lt.isFunction(o)?o(p):v.createElement(o,p)}),r&&g.jsx(O_,{...c,children:r}),g.jsx(N_,{...d,children:h.error?.message})]})})})},A_=({className:e,...t})=>{const r=v.useId();return g.jsx(NG,{value:{id:r},children:g.jsx("div",{className:le("flex flex-col gap-2",e),"data-slot":"form-item",...t})})},D_=({className:e,...t})=>{const{error:r,formItemId:n}=vc();return g.jsx(pc,{className:le(r&&"text-error",e),htmlFor:n,...t})},M_=({className:e,...t})=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:i}=vc();return g.jsx(sc,{id:n,"aria-describedby":r?`${o} ${i}`:`${o}`,"aria-invalid":!!r,className:le("group",e),...t})},O_=({className:e,...t})=>{const{formDescriptionId:r}=vc();return g.jsx("p",{id:r,className:le("text-sm text-muted-foreground",e),"data-slot":"form-description",...t})},N_=({className:e,children:t,...r})=>{const{error:n,formMessageId:o}=vc(),i=n?String(n?.message):t;return i?g.jsx("p",{id:o,className:le("text-sm font-medium text-error",e),"data-slot":"form-message",...r,children:i}):null},bR=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Ce(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},uv=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?bR(n.ref,r,e):n&&n.refs&&n.refs.forEach(o=>bR(o,r,e))}},yR=(e,t)=>{t.shouldUseNativeValidation&&uv(e,t);const r={};for(const n in e){const o=Ce(t.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(qG(t.names||Object.keys(e),n)){const s=Object.assign({},Ce(r,n));ot(s,"root",i),ot(r,n,s)}else ot(r,n,i)}return r},qG=(e,t)=>{const r=xR(t);return e.some(n=>xR(n).match(`^${r}\\.\\d+`))};function xR(e){return e.replace(/\]|\[/g,"")}function I_(e,t,r){function n(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);const d=s.prototype,f=Object.keys(d);for(let p=0;p<f.length;p++){const h=f[p];h in l||(l[h]=d[h].bind(l))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(l){var c;const d=r?.Parent?new i:this;n(d,l),(c=d._zod).deferred??(c.deferred=[]);for(const f of d._zod.deferred)f();return d}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class jG extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const BG={};function k_(e){return BG}function VG(e,t){return typeof t=="bigint"?t.toString():t}const L_="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function jd(e){return typeof e=="string"?e:e?.message}function F_(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=jd(e.inst?._zod.def?.error?.(e))??jd(t?.error?.(e))??jd(r.customError?.(e))??jd(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}const q_=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,VG,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},KG=I_("$ZodError",q_),j_=I_("$ZodError",q_,{Parent:Error}),WG=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new jG;if(s.issues.length){const l=new(o?.Err??e)(s.issues.map(c=>F_(c,i,k_())));throw L_(l,o?.callee),l}return s.value},HG=WG(j_),UG=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const l=new(o?.Err??e)(s.issues.map(c=>F_(c,i,k_())));throw L_(l,o?.callee),l}return s.value},zG=UG(j_);function wR(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}function GG(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,s=n.path.join(".");if(!r[s])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[s]={message:l.message,type:l.code}}else r[s]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(f){return f.errors.forEach(function(p){return e.push(p)})}),t){var c=r[s].types,d=c&&c[n.code];r[s]=_g(s,t,r,o,d?[].concat(d,n.message):n.message)}e.shift()}return r}function YG(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,s=n.path.join(".");if(!r[s])if(n.code==="invalid_union"&&n.errors.length>0){var l=n.errors[0][0];r[s]={message:l.message,type:l.code}}else r[s]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(f){return f.forEach(function(p){return e.push(p)})}),t){var c=r[s].types,d=c&&c[n.code];r[s]=_g(s,t,r,o,d?[].concat(d,n.message):n.message)}e.shift()}return r}function XG(e,t,r){if(r===void 0&&(r={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(wR(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(s){return i.shouldUseNativeValidation&&uv({},i),{errors:{},values:r.raw?Object.assign({},n):s}})},function(s){if((function(l){return Array.isArray(l?.issues)})(s))return{values:{},errors:yR(GG(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(wR(function(){return Promise.resolve((r.mode==="sync"?HG:zG)(e,n,t)).then(function(s){return i.shouldUseNativeValidation&&uv({},i),{errors:{},values:r.raw?Object.assign({},n):s}})},function(s){if((function(l){return l instanceof KG})(s))return{values:{},errors:yR(YG(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function ZG(e,t){return MG({...t,resolver:XG(e)})}const B_=({value:e,onChange:t,defaultValue:r="",...n})=>{const o=ac("Input",n),[i="",s]=ut({prop:e,onChange:t,defaultProp:r}),l=c=>{s(c.target.value)};return g.jsx("input",{"data-slot":"input",autoComplete:"off",...o,value:i,onChange:l,className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","file:border-0 file:bg-transparent file:text-sm file:font-medium",o.className)})},QG=eo(["inline-flex select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium text-muted-foreground"],{variants:{variant:{default:"border-transparent bg-secondary text-secondary-foreground",secondary:"border-transparent bg-primary text-primary-foreground",error:"border-transparent bg-error text-error-foreground",outline:"text-foreground"},size:{default:"px-1.5 py-0.5 text-xs",sm:"px-2 py-0.5 text-sm",lg:"px-4 py-1 text-lg"}},defaultVariants:{variant:"default",size:"default"}}),JG=({variant:e,size:t,className:r,...n})=>g.jsx("kbd",{className:le(QG({variant:e,size:t}),r),...n,"data-slot":"kbd"}),eY=({className:e,...t})=>g.jsx("kbd",{"data-slot":"kbd-group",className:le("inline-flex items-center gap-1",e),...t}),tY=eo("animate-spin",{variants:{variant:{primary:"text-primary",secondary:"text-secondary",ghost:"text-muted-foreground",error:"text-error",success:"text-success"},size:{sm:"w-4 h-4",default:"w-7 h-7",lg:"w-10 h-10"}},defaultVariants:{variant:"primary",size:"default"}}),rY=({center:e,containerClassName:t,variant:r,size:n,...o})=>g.jsx("div",{className:le(t,e&&"fixed inset-0 grid place-items-center"),"data-slot":"loader",children:g.jsx(sf,{"data-slot":"loader-icon",...o,className:le(tY({variant:r,size:n}),o.className)})});function nY(e){const[t=[],r]=R.useState(e);return[t,{insertAt:(h,b)=>{r((w=[])=>{const y=[...w];return y.splice(h,0,b),y})},removeAt:h=>{r((b=[])=>{const w=[...b];return w.splice(h,1),w})},updateAt:(h,b)=>{r((w=[])=>{const y=[...w];return y[h]=b,y})},clear:()=>r([]),reset:()=>r(e),push:h=>r((b=[])=>[...b,h]),set:h=>r(h),pop:()=>{r((h=[])=>{const b=[...h];return b.pop(),b})},update:(h,b)=>{r((w=[])=>{const y=[...w],C=lt.findIndex(y,h);return C===-1||(y[C]=lt.isFunction(b)?b(y[C]):b),y})}}]}function oY({fn:e,dependencies:t=[],onError:r,onSuccess:n,onFinish:o}){const[i,s]=R.useState(!0),[l,c]=R.useState(null),[d,f]=R.useState(null),p=R.useCallback(()=>{s(!0),c(null),f(null),e().then(h=>{n?.(h),f(h)}).catch(h=>{r?.(h),c(h)}).finally(()=>{o?.(),s(!1)})},t);return R.useEffect(()=>{p()},[p]),{loading:i,error:l,data:d,refetch:p}}const iY=(e,t=!0)=>{const r=R.useRef(null),n=o=>{r.current&&!r.current.contains(o.target)&&e()};return R.useEffect(()=>{if(t)return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[t]),r};function aY(){const[e,t]=R.useState(null),r=R.useCallback(async n=>{if(!navigator?.clipboard)return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch(o){return console.error(o),t(null),!1}},[]);return[e,r]}function sY(e,t){const r=R.useRef(null);return R.useCallback((...n)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e(...n)},t)},[e,t])}function lY(e,t){const[r,n]=R.useState(e);return R.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>clearTimeout(o)},[e,t]),r}function uY(e=!1,t){const{onOpen:r,onClose:n}=t||{},[o,i]=R.useState(e),s=R.useCallback(()=>{i(d=>d||(r?.(),!0))},[r]),l=R.useCallback(()=>{i(d=>d&&(n?.(),!1))},[n]),c=R.useCallback(()=>{o?l():s()},[l,s,o]);return[o,{open:s,close:l,toggle:c}]}function cY(e){R.useEffect(()=>{typeof e=="string"&&e.trim().length>0&&(document.title=e.trim())},[e])}function V_(e,t,r){const n=R.useRef(null);return R.useEffect(()=>{const o=n.current??document;return o.addEventListener(e,t,r),()=>{o.removeEventListener(e,t,r)}},[e,t,r]),n}const dY=e=>{const t=e.toLowerCase().split("+");return{mainKey:t.pop(),isShift:t.includes("shift"),isCtrl:t.includes("ctrl"),isAlt:t.includes("alt"),isMeta:t.includes("meta")}},fY=(e,t)=>{const{mainKey:r,isShift:n,isCtrl:o,isAlt:i,isMeta:s}=dY(t);return e.key.toLowerCase()===r&&e.shiftKey===n&&e.ctrlKey===o&&e.altKey===i&&e.metaKey===s},pY=e=>e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable,mY=(e,t)=>t&&pY(e.target),hY=(e,t,r,n,o)=>i=>{if(!o||mY(i,n))return;(Array.isArray(e)?e:[e]).some(c=>fY(i,c))&&(r&&i.preventDefault(),t(i))};function K_(e,t,r={}){const{eventName:n="keydown",preventDefault:o=!0,ignoreInputFields:i=!0,watch:s=!0}=r,l=R.useCallback(hY(e,t,o,i,s),[e,t,o,i,s]);return V_(n,l)}function vY(e){const[t,r]=R.useState(!1),n=R.useRef(null);return R.useEffect(()=>{const o=l=>{r(!0),e?.onHoverStart?.(l)},i=l=>{r(!1),e?.onHoverEnd?.(l)},s=n.current;if(s)return s.addEventListener("mouseover",o),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",o),s.removeEventListener("mouseout",i)}},[e]),{ref:n,isHovering:t}}function gY({onVisible:e,root:t=null,rootMargin:r="0px",threshold:n=0}={}){const[o,i]=R.useState(!1),s=R.useRef(null),l=R.useCallback(([c])=>{const d=c.isIntersecting;i(d)},[e]);return R.useEffect(()=>{if(s.current==null)return;const c=new IntersectionObserver(l,{root:t,rootMargin:r,threshold:n});return c.observe(s.current),()=>{s.current!=null&&c.unobserve(s.current)}},[s,t,r,n,l]),R.useEffect(()=>{o&&e?.()},[o]),{ref:s,isVisible:o}}function bY(e,t){const r=()=>{try{const l=localStorage.getItem(e);return l?JSON.parse(l):t!==void 0?t:void 0}catch(l){return console.error(`Error parsing localStorage key "${e}":`,l),t!==void 0?t:void 0}},[n,o]=R.useState(r);return R.useEffect(()=>{try{n!==void 0?localStorage.setItem(e,JSON.stringify(n)):localStorage.removeItem(e)}catch(l){console.error(`Error setting localStorage key "${e}":`,l)}},[e,n]),[n,l=>{o(l)},()=>{try{localStorage.removeItem(e),o(t!==void 0?t:void 0)}catch(l){console.error(`Error removing localStorage key "${e}":`,l)}}]}const yY=e=>{const[t,r]=R.useState(!1);return R.useEffect(()=>{const n=window.matchMedia(e),o=()=>r(n.matches);return o(),n.addEventListener("change",o),()=>{n.removeEventListener("change",o)}},[e]),t};function xY(e){lt.isFunction(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`);const t=R.useRef(e);t.current=R.useMemo(()=>e,[e]);const r=R.useRef(null);return r.current||(r.current=function(...n){return t.current.apply(this,n)}),r.current}const wY=e=>{const[t,r]=R.useState(!1),[n,o]=R.useState(null),[i,s]=R.useState(null);return{mutate:R.useCallback(async(...c)=>{r(!0),o(null),s(null);try{const d=await e.fn(...c);return e.onSuccess?.(d),s(d),d}catch(d){const f=d;throw e.onError?.(f),o(f),f}finally{e.onFinish?.(),r(!1)}},[e]),loading:t,error:n,data:i}};function EY(e){const[t,r]=R.useState(e),n=R.useCallback(()=>r(e),[e]),o=R.useCallback(i=>{r(s=>{if(lt.isFunction(i)){const l=i(s);return lt.isObject(l)?{...s,...l}:s}else if(lt.isObject(i))return{...s,...i};return s})},[]);return[t,o,n]}function Ag({totalItems:e,pageSize:t,initialCurrentPage:r=1,onChange:n}){const[o,i]=R.useState(r),s=Math.ceil(e/t),l=o===s,c=o===1,d=(o-1)*t+1,f=Math.min(o*t,e),p=()=>{if(l)return;const y=Math.min(o+1,s);w(y)},h=()=>{if(c)return;const y=Math.max(o-1,1);w(y)},b=y=>{if(y===1&&c||y===s&&l)return;const C=Math.max(1,y),x=Math.min(C,s);w(x)},w=y=>{i(y),n?.({currentPage:y,pageSize:t})};return{next:p,prev:h,goTo:b,currentPage:o,maxPage:s,isFirstPage:c,isLastPage:l,range:{start:d,end:f}}}function CY(e){const t=()=>document.getElementById(e),r=()=>{const o=document.createElement("div");return o.id=e,o},n=R.useMemo(()=>{const o=t();return o||r()},[e]);return R.useEffect(()=>(document.getElementById(e)||document.body.appendChild(n),()=>{const o=document.getElementById(e);o&&document.body.removeChild(o)}),[e,n]),{render:o=>rn.createPortal(o,n)}}function RY({shouldPrevent:e,message:t="Es posible que no se guarden los cambios hayas hecho."}){const r=n=>{if(e)return n.preventDefault(),n.returnValue=t,t};R.useEffect(()=>(window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)),[t,e])}const Co="...",W_=({siblingCount:e=1,...t})=>{const r=Ag(t),{currentPage:n,maxPage:o}=r,{totalItems:i,pageSize:s}=t,l=()=>{const p=2+3*e,h=1;if(p>=o)return lt.range(h,o+1);const b=Math.max(n-e,1),w=Math.min(n+e,o),y=b>2,C=w<o-2;if(y&&C){const x=lt.range(b,w+1);return[h,Co,...x,Co,o]}if(C)return[...lt.range(h,p+1),Co,o];if(y){const x=lt.range(o-p+1,o+1);return[h,Co,...x]}},c=R.useMemo(l,[i,s,n,e]);return{...r,paginationRange:c??[]}};function PY(e){const[t,r]=R.useState(new Set),n=R.useCallback(f=>t.has(f),[t]),o=R.useCallback(f=>{r(p=>new Set([...p,f]))},[]),i=R.useCallback(f=>{r(p=>{const h=new Set(p);return h.delete(f),h})},[]),s=R.useCallback(f=>{r(p=>{const h=new Set(p);return h.has(f)?h.delete(f):h.add(f),h})},[]),l=R.useCallback(f=>{r(new Set(f))},[]),c=R.useCallback(()=>{r(f=>f.size===e.length?new Set:new Set(e))},[e]),d=R.useCallback(()=>r(new Set),[]);return{isAllSelected:t.size===e.length,isSomeSelected:t.size>0&&t.size<e.length,isNoneSelected:t.size===0,isSelected:n,selected:[...t],setSelected:l,select:o,unselect:i,toggle:s,toggleAll:c,clear:d}}function SY(e,t){const[r,n]=R.useState(0),o=t??e.length,i=()=>{n(d=>d>=o-1?d:d+1)},s=()=>{n(d=>d<=0?d:d-1)},l=d=>{n(d)},c=d=>{const f=lt.findIndex(e,d);f!==-1&&l(f)};return{currentStepIndex:r,step:e[r],steps:e,isFirstStep:r===0,isLastStep:r===o-1,goTo:l,next:i,back:s,findAndGo:c}}function H_(e=!1){const[t,r]=R.useState(e);return[t,o=>{r(o===void 0?!t:o)}]}const _Y=/input|select|textarea|button|object/,U_="a, input, select, textarea, button, object, [tabindex]";function TY(e){return process.env.NODE_ENV==="test"?!1:e.style.display==="none"}function $Y(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(TY(r))return!1;r=r.parentNode}return!0}function z_(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function cv(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(z_(e));return(_Y.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&$Y(e)}function G_(e){const t=z_(e);return(Number.isNaN(t)||t>=0)&&cv(e)}function AY(e){return Array.from(e.querySelectorAll(U_)).filter(G_)}function DY(e,t){const r=AY(e);if(!r.length){t.preventDefault();return}const n=r[t.shiftKey?0:r.length-1],o=e.getRootNode();let i=n===o.activeElement||e===o.activeElement;const s=o.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=r.filter(f=>f.getAttribute("type")==="radio"&&f.getAttribute("name")===s.getAttribute("name")).includes(n)),!i)return;t.preventDefault();const c=r[t.shiftKey?r.length-1:0];c&&c.focus()}function MY(e=!0){const t=R.useRef(null),r=o=>{let i=o.querySelector("[data-autofocus]");if(!i){const s=Array.from(o.querySelectorAll(U_));i=s.find(G_)||s.find(cv)||null,!i&&cv(o)&&(i=o)}i&&i.focus({preventScroll:!0})},n=R.useCallback(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&r(o)}),t.current=o):t.current=null)},[e]);return R.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const o=i=>{i.key==="Tab"&&t.current&&DY(t.current,i)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),n}function OY(e){const t=NY(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(kY);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function NY(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=FY(o),l=LY(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IY=Symbol("radix.slottable");function kY(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IY}function LY(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function FY(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jY=qY.reduce((e,t)=>{const r=OY(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ER(e){const t=BY(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(KY);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function BY(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=HY(o),l=WY(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VY=Symbol("radix.slottable");function KY(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VY}function WY(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function HY(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Dg(e){const t=e+"CollectionProvider",[r,n]=wn(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:C,children:x}=y,P=R.useRef(null),S=R.useRef(new Map).current;return g.jsx(o,{scope:C,itemMap:S,collectionRef:P,children:x})};s.displayName=t;const l=e+"CollectionSlot",c=ER(l),d=R.forwardRef((y,C)=>{const{scope:x,children:P}=y,S=i(l,x),D=Ve(C,S.collectionRef);return g.jsx(c,{ref:D,children:P})});d.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=ER(f),b=R.forwardRef((y,C)=>{const{scope:x,children:P,...S}=y,D=R.useRef(null),_=Ve(C,D),T=i(f,x);return R.useEffect(()=>(T.itemMap.set(D,{ref:D,...S}),()=>{T.itemMap.delete(D)})),g.jsx(h,{[p]:"",ref:_,children:P})});b.displayName=f;function w(y){const C=i(e+"CollectionConsumer",y);return R.useCallback(()=>{const P=C.collectionRef.current;if(!P)return[];const S=Array.from(P.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((T,A)=>S.indexOf(T.ref.current)-S.indexOf(A.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:s,Slot:d,ItemSlot:b},w,n]}var UY=v.createContext(void 0);function Mg(e){const t=v.useContext(UY);return e||t||"ltr"}const zY=["top","right","bottom","left"],_o=Math.min,Pr=Math.max,wf=Math.round,Bd=Math.floor,yn=e=>({x:e,y:e}),GY={left:"right",right:"left",bottom:"top",top:"bottom"},YY={start:"end",end:"start"};function dv(e,t,r){return Pr(e,_o(t,r))}function Xn(e,t){return typeof e=="function"?e(t):e}function Zn(e){return e.split("-")[0]}function ya(e){return e.split("-")[1]}function Og(e){return e==="x"?"y":"x"}function Ng(e){return e==="y"?"height":"width"}function To(e){return["top","bottom"].includes(Zn(e))?"y":"x"}function Ig(e){return Og(To(e))}function XY(e,t,r){r===void 0&&(r=!1);const n=ya(e),o=Ig(e),i=Ng(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ef(s)),[s,Ef(s)]}function ZY(e){const t=Ef(e);return[fv(e),t,fv(t)]}function fv(e){return e.replace(/start|end/g,t=>YY[t])}function QY(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function JY(e,t,r,n){const o=ya(e);let i=QY(Zn(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(fv)))),i}function Ef(e){return e.replace(/left|right|bottom|top/g,t=>GY[t])}function eX(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y_(e){return typeof e!="number"?eX(e):{top:e,right:e,bottom:e,left:e}}function Cf(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function CR(e,t,r){let{reference:n,floating:o}=e;const i=To(t),s=Ig(t),l=Ng(s),c=Zn(t),d=i==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[l]/2-o[l]/2;let b;switch(c){case"top":b={x:f,y:n.y-o.height};break;case"bottom":b={x:f,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:p};break;case"left":b={x:n.x-o.width,y:p};break;default:b={x:n.x,y:n.y}}switch(ya(t)){case"start":b[s]-=h*(r&&d?-1:1);break;case"end":b[s]+=h*(r&&d?-1:1);break}return b}const tX=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=CR(d,n,c),h=n,b={},w=0;for(let y=0;y<l.length;y++){const{name:C,fn:x}=l[y],{x:P,y:S,data:D,reset:_}=await x({x:f,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});f=P??f,p=S??p,b={...b,[C]:{...b[C],...D}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(d=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:f,y:p}=CR(d,h,c)),y=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:b}};async function Gu(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=Xn(t,e),w=Y_(b),C=l[h?p==="floating"?"reference":"floating":p],x=Cf(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(C)))==null||r?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),P=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),D=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Cf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:S,strategy:c}):P);return{top:(x.top-_.top+w.top)/D.y,bottom:(_.bottom-x.bottom+w.bottom)/D.y,left:(x.left-_.left+w.left)/D.x,right:(_.right-x.right+w.right)/D.x}}const rX=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=Xn(e,t)||{};if(d==null)return{};const p=Y_(f),h={x:r,y:n},b=Ig(o),w=Ng(b),y=await s.getDimensions(d),C=b==="y",x=C?"top":"left",P=C?"bottom":"right",S=C?"clientHeight":"clientWidth",D=i.reference[w]+i.reference[b]-h[b]-i.floating[w],_=h[b]-i.reference[b],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let A=T?T[S]:0;(!A||!await(s.isElement==null?void 0:s.isElement(T)))&&(A=l.floating[S]||i.floating[w]);const M=D/2-_/2,U=A/2-y[w]/2-1,J=_o(p[x],U),N=_o(p[P],U),W=J,K=A-y[w]-N,L=A/2-y[w]/2+M,G=dv(W,L,K),k=!c.arrow&&ya(o)!=null&&L!==G&&i.reference[w]/2-(L<W?J:N)-y[w]/2<0,F=k?L<W?L-W:L-K:0;return{[b]:h[b]+F,data:{[b]:G,centerOffset:L-G-F,...k&&{alignmentOffset:F}},reset:k}}}),nX=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...C}=Xn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=Zn(o),P=To(l),S=Zn(l)===l,D=await(c.isRTL==null?void 0:c.isRTL(d.floating)),_=h||(S||!y?[Ef(l)]:ZY(l)),T=w!=="none";!h&&T&&_.push(...JY(l,y,w,D));const A=[l,..._],M=await Gu(t,C),U=[];let J=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&U.push(M[x]),p){const L=XY(o,s,D);U.push(M[L[0]],M[L[1]])}if(J=[...J,{placement:o,overflows:U}],!U.every(L=>L<=0)){var N,W;const L=(((N=i.flip)==null?void 0:N.index)||0)+1,G=A[L];if(G)return{data:{index:L,overflows:J},reset:{placement:G}};let k=(W=J.filter(F=>F.overflows[0]<=0).sort((F,j)=>F.overflows[1]-j.overflows[1])[0])==null?void 0:W.placement;if(!k)switch(b){case"bestFit":{var K;const F=(K=J.filter(j=>{if(T){const re=To(j.placement);return re===P||re==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(re=>re>0).reduce((re,V)=>re+V,0)]).sort((j,re)=>j[1]-re[1])[0])==null?void 0:K[0];F&&(k=F);break}case"initialPlacement":k=l;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function RR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function PR(e){return zY.some(t=>e[t]>=0)}const oX=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Xn(e,t);switch(n){case"referenceHidden":{const i=await Gu(t,{...o,elementContext:"reference"}),s=RR(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:PR(s)}}}case"escaped":{const i=await Gu(t,{...o,altBoundary:!0}),s=RR(i,r.floating);return{data:{escapedOffsets:s,escaped:PR(s)}}}default:return{}}}}};async function iX(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Zn(r),l=ya(r),c=To(r)==="y",d=["left","top"].includes(s)?-1:1,f=i&&c?-1:1,p=Xn(t,e);let{mainAxis:h,crossAxis:b,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof w=="number"&&(b=l==="end"?w*-1:w),c?{x:b*f,y:h*d}:{x:h*d,y:b*f}}const aX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await iX(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},sX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:C=>{let{x,y:P}=C;return{x,y:P}}},...c}=Xn(e,t),d={x:r,y:n},f=await Gu(t,c),p=To(Zn(o)),h=Og(p);let b=d[h],w=d[p];if(i){const C=h==="y"?"top":"left",x=h==="y"?"bottom":"right",P=b+f[C],S=b-f[x];b=dv(P,b,S)}if(s){const C=p==="y"?"top":"left",x=p==="y"?"bottom":"right",P=w+f[C],S=w-f[x];w=dv(P,w,S)}const y=l.fn({...t,[h]:b,[p]:w});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[h]:i,[p]:s}}}}}},lX=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Xn(e,t),f={x:r,y:n},p=To(o),h=Og(p);let b=f[h],w=f[p];const y=Xn(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const S=h==="y"?"height":"width",D=i.reference[h]-i.floating[S]+C.mainAxis,_=i.reference[h]+i.reference[S]-C.mainAxis;b<D?b=D:b>_&&(b=_)}if(d){var x,P;const S=h==="y"?"width":"height",D=["top","left"].includes(Zn(o)),_=i.reference[p]-i.floating[S]+(D&&((x=s.offset)==null?void 0:x[p])||0)+(D?0:C.crossAxis),T=i.reference[p]+i.reference[S]+(D?0:((P=s.offset)==null?void 0:P[p])||0)-(D?C.crossAxis:0);w<_?w=_:w>T&&(w=T)}return{[h]:b,[p]:w}}}},uX=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...d}=Xn(e,t),f=await Gu(t,d),p=Zn(o),h=ya(o),b=To(o)==="y",{width:w,height:y}=i.floating;let C,x;p==="top"||p==="bottom"?(C=p,x=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=p,C=h==="end"?"top":"bottom");const P=y-f.top-f.bottom,S=w-f.left-f.right,D=_o(y-f[C],P),_=_o(w-f[x],S),T=!t.middlewareData.shift;let A=D,M=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=P),T&&!h){const J=Pr(f.left,0),N=Pr(f.right,0),W=Pr(f.top,0),K=Pr(f.bottom,0);b?M=w-2*(J!==0||N!==0?J+N:Pr(f.left,f.right)):A=y-2*(W!==0||K!==0?W+K:Pr(f.top,f.bottom))}await c({...t,availableWidth:M,availableHeight:A});const U=await s.getDimensions(l.floating);return w!==U.width||y!==U.height?{reset:{rects:!0}}:{}}}};function ep(){return typeof window<"u"}function xa(e){return X_(e)?(e.nodeName||"").toLowerCase():"#document"}function _r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cn(e){var t;return(t=(X_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X_(e){return ep()?e instanceof Node||e instanceof _r(e).Node:!1}function nn(e){return ep()?e instanceof Element||e instanceof _r(e).Element:!1}function xn(e){return ep()?e instanceof HTMLElement||e instanceof _r(e).HTMLElement:!1}function SR(e){return!ep()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _r(e).ShadowRoot}function gc(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function cX(e){return["table","td","th"].includes(xa(e))}function tp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function kg(e){const t=Lg(),r=nn(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function dX(e){let t=$o(e);for(;xn(t)&&!la(t);){if(kg(t))return t;if(tp(t))return null;t=$o(t)}return null}function Lg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function la(e){return["html","body","#document"].includes(xa(e))}function on(e){return _r(e).getComputedStyle(e)}function rp(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $o(e){if(xa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||SR(e)&&e.host||Cn(e);return SR(t)?t.host:t}function Z_(e){const t=$o(e);return la(t)?e.ownerDocument?e.ownerDocument.body:e.body:xn(t)&&gc(t)?t:Z_(t)}function Yu(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Z_(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_r(o);if(i){const l=pv(s);return t.concat(s,s.visualViewport||[],gc(o)?o:[],l&&r?Yu(l):[])}return t.concat(o,Yu(o,[],r))}function pv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q_(e){const t=on(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=xn(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,l=wf(r)!==i||wf(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function Fg(e){return nn(e)?e:e.contextElement}function oa(e){const t=Fg(e);if(!xn(t))return yn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Q_(t);let s=(i?wf(r.width):r.width)/n,l=(i?wf(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const fX=yn(0);function J_(e){const t=_r(e);return!Lg()||!t.visualViewport?fX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_r(e)?!1:t}function pi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Fg(e);let s=yn(1);t&&(n?nn(n)&&(s=oa(n)):s=oa(e));const l=pX(i,r,n)?J_(i):yn(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(i){const h=_r(i),b=n&&nn(n)?_r(n):n;let w=h,y=pv(w);for(;y&&n&&b!==w;){const C=oa(y),x=y.getBoundingClientRect(),P=on(y),S=x.left+(y.clientLeft+parseFloat(P.paddingLeft))*C.x,D=x.top+(y.clientTop+parseFloat(P.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,p*=C.y,c+=S,d+=D,w=_r(y),y=pv(w)}}return Cf({width:f,height:p,x:c,y:d})}function qg(e,t){const r=rp(e).scrollLeft;return t?t.left+r:pi(Cn(e)).left+r}function eT(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:qg(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function mX(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Cn(n),l=t?tp(t.floating):!1;if(n===s||l&&i)return r;let c={scrollLeft:0,scrollTop:0},d=yn(1);const f=yn(0),p=xn(n);if((p||!p&&!i)&&((xa(n)!=="body"||gc(s))&&(c=rp(n)),xn(n))){const b=pi(n);d=oa(n),f.x=b.x+n.clientLeft,f.y=b.y+n.clientTop}const h=s&&!p&&!i?eT(s,c,!0):yn(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:r.y*d.y-c.scrollTop*d.y+f.y+h.y}}function hX(e){return Array.from(e.getClientRects())}function vX(e){const t=Cn(e),r=rp(e),n=e.ownerDocument.body,o=Pr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+qg(e);const l=-r.scrollTop;return on(n).direction==="rtl"&&(s+=Pr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:l}}function gX(e,t){const r=_r(e),n=Cn(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const d=Lg();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function bX(e,t){const r=pi(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=xn(e)?oa(e):yn(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,d=n*i.y;return{width:s,height:l,x:c,y:d}}function _R(e,t,r){let n;if(t==="viewport")n=gX(e,r);else if(t==="document")n=vX(Cn(e));else if(nn(t))n=bX(t,r);else{const o=J_(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Cf(n)}function tT(e,t){const r=$o(e);return r===t||!nn(r)||la(r)?!1:on(r).position==="fixed"||tT(r,t)}function yX(e,t){const r=t.get(e);if(r)return r;let n=Yu(e,[],!1).filter(l=>nn(l)&&xa(l)!=="body"),o=null;const i=on(e).position==="fixed";let s=i?$o(e):e;for(;nn(s)&&!la(s);){const l=on(s),c=kg(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||gc(s)&&!c&&tT(e,s))?n=n.filter(f=>f!==s):o=l,s=$o(s)}return t.set(e,n),n}function xX(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?tp(t)?[]:yX(t,this._c):[].concat(r),n],l=s[0],c=s.reduce((d,f)=>{const p=_R(t,f,o);return d.top=Pr(p.top,d.top),d.right=_o(p.right,d.right),d.bottom=_o(p.bottom,d.bottom),d.left=Pr(p.left,d.left),d},_R(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wX(e){const{width:t,height:r}=Q_(e);return{width:t,height:r}}function EX(e,t,r){const n=xn(t),o=Cn(t),i=r==="fixed",s=pi(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=yn(0);if(n||!n&&!i)if((xa(t)!=="body"||gc(o))&&(l=rp(t)),n){const h=pi(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=qg(o));const d=o&&!n&&!i?eT(o,l):yn(0),f=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function yh(e){return on(e).position==="static"}function TR(e,t){if(!xn(e)||on(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Cn(e)===r&&(r=r.ownerDocument.body),r}function rT(e,t){const r=_r(e);if(tp(e))return r;if(!xn(e)){let o=$o(e);for(;o&&!la(o);){if(nn(o)&&!yh(o))return o;o=$o(o)}return r}let n=TR(e,t);for(;n&&cX(n)&&yh(n);)n=TR(n,t);return n&&la(n)&&yh(n)&&!kg(n)?r:n||dX(e)||r}const CX=async function(e){const t=this.getOffsetParent||rT,r=this.getDimensions,n=await r(e.floating);return{reference:EX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function RX(e){return on(e).direction==="rtl"}const PX={convertOffsetParentRelativeRectToViewportRelativeRect:mX,getDocumentElement:Cn,getClippingRect:xX,getOffsetParent:rT,getElementRects:CX,getClientRects:hX,getDimensions:wX,getScale:oa,isElement:nn,isRTL:RX};function nT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SX(e,t){let r=null,n;const o=Cn(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:b}=d;if(l||t(),!h||!b)return;const w=Bd(p),y=Bd(o.clientWidth-(f+h)),C=Bd(o.clientHeight-(p+b)),x=Bd(f),S={rootMargin:-w+"px "+-y+"px "+-C+"px "+-x+"px",threshold:Pr(0,_o(1,c))||1};let D=!0;function _(T){const A=T[0].intersectionRatio;if(A!==c){if(!D)return s();A?s(!1,A):n=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!nT(d,e.getBoundingClientRect())&&s(),D=!1}try{r=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,S)}r.observe(e)}return s(!0),i}function _X(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Fg(e),f=o||i?[...d?Yu(d):[],...Yu(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const p=d&&l?SX(d,r):null;let h=-1,b=null;s&&(b=new ResizeObserver(x=>{let[P]=x;P&&P.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(t)})),r()}),d&&!c&&b.observe(d),b.observe(t));let w,y=c?pi(e):null;c&&C();function C(){const x=pi(e);y&&!nT(y,x)&&r(),y=x,w=requestAnimationFrame(C)}return r(),()=>{var x;f.forEach(P=>{o&&P.removeEventListener("scroll",r),i&&P.removeEventListener("resize",r)}),p?.(),(x=b)==null||x.disconnect(),b=null,c&&cancelAnimationFrame(w)}}const TX=aX,$X=sX,AX=nX,DX=uX,MX=oX,$R=rX,OX=lX,NX=(e,t,r)=>{const n=new Map,o={platform:PX,...r},i={...o.platform,_c:n};return tX(e,t,{...o,platform:i})};var Qd=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Rf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Rf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Rf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function oT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AR(e,t){const r=oT(e);return Math.round(t*r)/r}function xh(e){const t=v.useRef(e);return Qd(()=>{t.current=e}),t}function IX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,p]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,b]=v.useState(n);Rf(h,n)||b(n);const[w,y]=v.useState(null),[C,x]=v.useState(null),P=v.useCallback(j=>{j!==T.current&&(T.current=j,y(j))},[]),S=v.useCallback(j=>{j!==A.current&&(A.current=j,x(j))},[]),D=i||w,_=s||C,T=v.useRef(null),A=v.useRef(null),M=v.useRef(f),U=c!=null,J=xh(c),N=xh(o),W=xh(d),K=v.useCallback(()=>{if(!T.current||!A.current)return;const j={placement:t,strategy:r,middleware:h};N.current&&(j.platform=N.current),NX(T.current,A.current,j).then(re=>{const V={...re,isPositioned:W.current!==!1};L.current&&!Rf(M.current,V)&&(M.current=V,da.flushSync(()=>{p(V)}))})},[h,t,r,N,W]);Qd(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(j=>({...j,isPositioned:!1})))},[d]);const L=v.useRef(!1);Qd(()=>(L.current=!0,()=>{L.current=!1}),[]),Qd(()=>{if(D&&(T.current=D),_&&(A.current=_),D&&_){if(J.current)return J.current(D,_,K);K()}},[D,_,K,J,U]);const G=v.useMemo(()=>({reference:T,floating:A,setReference:P,setFloating:S}),[P,S]),k=v.useMemo(()=>({reference:D,floating:_}),[D,_]),F=v.useMemo(()=>{const j={position:r,left:0,top:0};if(!k.floating)return j;const re=AR(k.floating,f.x),V=AR(k.floating,f.y);return l?{...j,transform:"translate("+re+"px, "+V+"px)",...oT(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:V}},[r,l,k.floating,f.x,f.y]);return v.useMemo(()=>({...f,update:K,refs:G,elements:k,floatingStyles:F}),[f,K,G,k,F])}const kX=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$R({element:n.current,padding:o}).fn(r):{}:n?$R({element:n,padding:o}).fn(r):{}}}},LX=(e,t)=>({...TX(e),options:[e,t]}),FX=(e,t)=>({...$X(e),options:[e,t]}),qX=(e,t)=>({...OX(e),options:[e,t]}),jX=(e,t)=>({...AX(e),options:[e,t]}),BX=(e,t)=>({...DX(e),options:[e,t]}),VX=(e,t)=>({...MX(e),options:[e,t]}),KX=(e,t)=>({...kX(e),options:[e,t]});function WX(e){const t=HX(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(zX);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function HX(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=YX(o),l=GX(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UX=Symbol("radix.slottable");function zX(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UX}function GX(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function YX(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var XX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ZX=XX.reduce((e,t)=>{const r=WX(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),QX="Arrow",iT=v.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return g.jsx(ZX.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});iT.displayName=QX;var JX=iT;function eZ(e){const t=tZ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(nZ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function tZ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=iZ(o),l=oZ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rZ=Symbol("radix.slottable");function nZ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rZ}function oZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function iZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var aZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aT=aZ.reduce((e,t)=>{const r=eZ(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sZ(e){const[t,r]=v.useState(void 0);return Kt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,l=d.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var jg="Popper",[sT,Do]=wn(jg),[lZ,lT]=sT(jg),uT=e=>{const{__scopePopper:t,children:r}=e,[n,o]=v.useState(null);return g.jsx(lZ,{scope:t,anchor:n,onAnchorChange:o,children:r})};uT.displayName=jg;var cT="PopperAnchor",dT=v.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=lT(cT,r),s=v.useRef(null),l=Ve(t,s),c=v.useRef(null);return v.useEffect(()=>{const d=c.current;c.current=n?.current||s.current,d!==c.current&&i.onAnchorChange(c.current)}),n?null:g.jsx(aT.div,{...o,ref:l})});dT.displayName=cT;var Bg="PopperContent",[uZ,cZ]=sT(Bg),fT=v.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:b="optimized",onPlaced:w,...y}=e,C=lT(Bg,r),[x,P]=v.useState(null),S=Ve(t,te=>P(te)),[D,_]=v.useState(null),T=sZ(D),A=T?.width??0,M=T?.height??0,U=n+(i!=="center"?"-"+i:""),J=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],W=N.length>0,K={padding:J,boundary:N.filter(fZ),altBoundary:W},{refs:L,floatingStyles:G,placement:k,isPositioned:F,middlewareData:j}=IX({strategy:"fixed",placement:U,whileElementsMounted:(...te)=>_X(...te,{animationFrame:b==="always"}),elements:{reference:C.anchor},middleware:[LX({mainAxis:o+M,alignmentAxis:s}),c&&FX({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?qX():void 0,...K}),c&&jX({...K}),BX({...K,apply:({elements:te,rects:ve,availableWidth:q,availableHeight:ae})=>{const{width:oe,height:Z}=ve.reference,we=te.floating.style;we.setProperty("--radix-popper-available-width",`${q}px`),we.setProperty("--radix-popper-available-height",`${ae}px`),we.setProperty("--radix-popper-anchor-width",`${oe}px`),we.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),D&&KX({element:D,padding:l}),pZ({arrowWidth:A,arrowHeight:M}),h&&VX({strategy:"referenceHidden",...K})]}),[re,V]=hT(k),ie=Xt(w);Kt(()=>{F&&ie?.()},[F,ie]);const Y=j.arrow?.x,X=j.arrow?.y,ce=j.arrow?.centerOffset!==0,[ue,pe]=v.useState();return Kt(()=>{x&&pe(window.getComputedStyle(x).zIndex)},[x]),g.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:F?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(uZ,{scope:r,placedSide:re,onArrowChange:_,arrowX:Y,arrowY:X,shouldHideArrow:ce,children:g.jsx(aT.div,{"data-side":re,"data-align":V,...y,ref:S,style:{...y.style,animation:F?void 0:"none"}})})})});fT.displayName=Bg;var pT="PopperArrow",dZ={top:"bottom",right:"left",bottom:"top",left:"right"},mT=v.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=cZ(pT,n),s=dZ[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(JX,{...o,ref:r,style:{...o.style,display:"block"}})})});mT.displayName=pT;function fZ(e){return e!==null}var pZ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=hT(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+l/2,b=(o.arrow?.y??0)+c/2;let w="",y="";return d==="bottom"?(w=s?p:`${h}px`,y=`${-c}px`):d==="top"?(w=s?p:`${h}px`,y=`${n.floating.height+c}px`):d==="right"?(w=`${-c}px`,y=s?p:`${b}px`):d==="left"&&(w=`${n.floating.width+c}px`,y=s?p:`${b}px`),{data:{x:w,y}}}});function hT(e){const[t,r="center"]=e.split("-");return[t,r]}var bc=uT,yc=dT,np=fT,op=mT;function vT(e){const t=mZ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(vZ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function mZ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=bZ(o),l=gZ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hZ=Symbol("radix.slottable");function vZ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hZ}function gZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function bZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xc=yZ.reduce((e,t)=>{const r=vT(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xZ(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}function wZ(e){const t=EZ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(RZ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function EZ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=SZ(o),l=PZ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CZ=Symbol("radix.slottable");function RZ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CZ}function PZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function SZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _Z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gT=_Z.reduce((e,t)=>{const r=wZ(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),wh="rovingFocusGroup.onEntryFocus",TZ={bubbles:!1,cancelable:!0},wc="RovingFocusGroup",[mv,bT,$Z]=Dg(wc),[AZ,yT]=wn(wc,[$Z]),[DZ,MZ]=AZ(wc),xT=v.forwardRef((e,t)=>g.jsx(mv.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(mv.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(OZ,{...e,ref:t})})}));xT.displayName=wc;var OZ=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=v.useRef(null),b=Ve(t,h),w=Mg(i),[y,C]=ut({prop:s,defaultProp:l??null,onChange:c,caller:wc}),[x,P]=v.useState(!1),S=Xt(d),D=bT(r),_=v.useRef(!1),[T,A]=v.useState(0);return v.useEffect(()=>{const M=h.current;if(M)return M.addEventListener(wh,S),()=>M.removeEventListener(wh,S)},[S]),g.jsx(DZ,{scope:r,orientation:n,dir:w,loop:o,currentTabStopId:y,onItemFocus:v.useCallback(M=>C(M),[C]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>A(M=>M+1),[]),onFocusableItemRemove:v.useCallback(()=>A(M=>M-1),[]),children:g.jsx(gT.div,{tabIndex:x||T===0?-1:0,"data-orientation":n,...p,ref:b,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{_.current=!0}),onFocus:Se(e.onFocus,M=>{const U=!_.current;if(M.target===M.currentTarget&&U&&!x){const J=new CustomEvent(wh,TZ);if(M.currentTarget.dispatchEvent(J),!J.defaultPrevented){const N=D().filter(k=>k.focusable),W=N.find(k=>k.active),K=N.find(k=>k.id===y),G=[W,K,...N].filter(Boolean).map(k=>k.ref.current);CT(G,f)}}_.current=!1}),onBlur:Se(e.onBlur,()=>P(!1))})})}),wT="RovingFocusGroupItem",ET=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:s,...l}=e,c=_t(),d=i||c,f=MZ(wT,r),p=f.currentTabStopId===d,h=bT(r),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:y}=f;return v.useEffect(()=>{if(n)return b(),()=>w()},[n,b,w]),g.jsx(mv.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:g.jsx(gT.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:Se(e.onMouseDown,C=>{n?f.onItemFocus(d):C.preventDefault()}),onFocus:Se(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:Se(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){f.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const x=kZ(C,f.orientation,f.dir);if(x!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let S=h().filter(D=>D.focusable).map(D=>D.ref.current);if(x==="last")S.reverse();else if(x==="prev"||x==="next"){x==="prev"&&S.reverse();const D=S.indexOf(C.currentTarget);S=f.loop?LZ(S,D+1):S.slice(D+1)}setTimeout(()=>CT(S))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:y!=null}):s})})});ET.displayName=wT;var NZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function IZ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kZ(e,t,r){const n=IZ(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return NZ[n]}function CT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function LZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var FZ=xT,qZ=ET,hv=["Enter"," "],jZ=["ArrowDown","PageUp","Home"],RT=["ArrowUp","PageDown","End"],BZ=[...jZ,...RT],VZ={ltr:[...hv,"ArrowRight"],rtl:[...hv,"ArrowLeft"]},KZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ec="Menu",[Xu,WZ,HZ]=Dg(Ec),[Ei,PT]=wn(Ec,[HZ,Do,yT]),Cc=Do(),ST=yT(),[_T,Mo]=Ei(Ec),[UZ,Rc]=Ei(Ec),TT=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:s=!0}=e,l=Cc(t),[c,d]=v.useState(null),f=v.useRef(!1),p=Xt(i),h=Mg(o);return v.useEffect(()=>{const b=()=>{f.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>f.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),g.jsx(bc,{...l,children:g.jsx(_T,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:d,children:g.jsx(UZ,{scope:t,onClose:v.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:n})})})};TT.displayName=Ec;var zZ="MenuAnchor",Vg=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Cc(r);return g.jsx(yc,{...o,...n,ref:t})});Vg.displayName=zZ;var Kg="MenuPortal",[GZ,$T]=Ei(Kg,{forceMount:void 0}),AT=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=Mo(Kg,t);return g.jsx(GZ,{scope:t,forceMount:r,children:g.jsx(Tr,{present:r||i.open,children:g.jsx(ha,{asChild:!0,container:o,children:n})})})};AT.displayName=Kg;var Kr="MenuContent",[YZ,Wg]=Ei(Kr),DT=v.forwardRef((e,t)=>{const r=$T(Kr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Mo(Kr,e.__scopeMenu),s=Rc(Kr,e.__scopeMenu);return g.jsx(Xu.Provider,{scope:e.__scopeMenu,children:g.jsx(Tr,{present:n||i.open,children:g.jsx(Xu.Slot,{scope:e.__scopeMenu,children:s.modal?g.jsx(XZ,{...o,ref:t}):g.jsx(ZZ,{...o,ref:t})})})})}),XZ=v.forwardRef((e,t)=>{const r=Mo(Kr,e.__scopeMenu),n=v.useRef(null),o=Ve(t,n);return v.useEffect(()=>{const i=n.current;if(i)return oc(i)},[]),g.jsx(Hg,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Se(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ZZ=v.forwardRef((e,t)=>{const r=Mo(Kr,e.__scopeMenu);return g.jsx(Hg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),QZ=vT("MenuContent.ScrollLock"),Hg=v.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:b,disableOutsideScroll:w,...y}=e,C=Mo(Kr,r),x=Rc(Kr,r),P=Cc(r),S=ST(r),D=WZ(r),[_,T]=v.useState(null),A=v.useRef(null),M=Ve(t,A,C.onContentChange),U=v.useRef(0),J=v.useRef(""),N=v.useRef(0),W=v.useRef(null),K=v.useRef("right"),L=v.useRef(0),G=w?va:v.Fragment,k=w?{as:QZ,allowPinchZoom:!0}:void 0,F=re=>{const V=J.current+re,ie=D().filter(te=>!te.disabled),Y=document.activeElement,X=ie.find(te=>te.ref.current===Y)?.textValue,ce=ie.map(te=>te.textValue),ue=cQ(ce,V,X),pe=ie.find(te=>te.textValue===ue)?.ref.current;(function te(ve){J.current=ve,window.clearTimeout(U.current),ve!==""&&(U.current=window.setTimeout(()=>te(""),1e3))})(V),pe&&setTimeout(()=>pe.focus())};v.useEffect(()=>()=>window.clearTimeout(U.current),[]),Lf();const j=v.useCallback(re=>K.current===W.current?.side&&fQ(re,W.current?.area),[]);return g.jsx(YZ,{scope:r,searchRef:J,onItemEnter:v.useCallback(re=>{j(re)&&re.preventDefault()},[j]),onItemLeave:v.useCallback(re=>{j(re)||(A.current?.focus(),T(null))},[j]),onTriggerLeave:v.useCallback(re=>{j(re)&&re.preventDefault()},[j]),pointerGraceTimerRef:N,onPointerGraceIntentChange:v.useCallback(re=>{W.current=re},[]),children:g.jsx(G,{...k,children:g.jsx(rc,{asChild:!0,trapped:o,onMountAutoFocus:Se(i,re=>{re.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:b,children:g.jsx(FZ,{asChild:!0,...S,dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:_,onCurrentTabStopIdChange:T,onEntryFocus:Se(c,re=>{x.isUsingKeyboardRef.current||re.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(np,{role:"menu","aria-orientation":"vertical","data-state":GT(C.open),"data-radix-menu-content":"",dir:x.dir,...P,...y,ref:M,style:{outline:"none",...y.style},onKeyDown:Se(y.onKeyDown,re=>{const ie=re.target.closest("[data-radix-menu-content]")===re.currentTarget,Y=re.ctrlKey||re.altKey||re.metaKey,X=re.key.length===1;ie&&(re.key==="Tab"&&re.preventDefault(),!Y&&X&&F(re.key));const ce=A.current;if(re.target!==ce||!BZ.includes(re.key))return;re.preventDefault();const pe=D().filter(te=>!te.disabled).map(te=>te.ref.current);RT.includes(re.key)&&pe.reverse(),lQ(pe)}),onBlur:Se(e.onBlur,re=>{re.currentTarget.contains(re.target)||(window.clearTimeout(U.current),J.current="")}),onPointerMove:Se(e.onPointerMove,Zu(re=>{const V=re.target,ie=L.current!==re.clientX;if(re.currentTarget.contains(V)&&ie){const Y=re.clientX>L.current?"right":"left";K.current=Y,L.current=re.clientX}}))})})})})})})});DT.displayName=Kr;var JZ="MenuGroup",Ug=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return g.jsx(xc.div,{role:"group",...n,ref:t})});Ug.displayName=JZ;var eQ="MenuLabel",MT=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return g.jsx(xc.div,{...n,ref:t})});MT.displayName=eQ;var Pf="MenuItem",DR="menu.itemSelect",ip=v.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=v.useRef(null),s=Rc(Pf,e.__scopeMenu),l=Wg(Pf,e.__scopeMenu),c=Ve(t,i),d=v.useRef(!1),f=()=>{const p=i.current;if(!r&&p){const h=new CustomEvent(DR,{bubbles:!0,cancelable:!0});p.addEventListener(DR,b=>n?.(b),{once:!0}),xZ(p,h),h.defaultPrevented?d.current=!1:s.onClose()}};return g.jsx(OT,{...o,ref:c,disabled:r,onClick:Se(e.onClick,f),onPointerDown:p=>{e.onPointerDown?.(p),d.current=!0},onPointerUp:Se(e.onPointerUp,p=>{d.current||p.currentTarget?.click()}),onKeyDown:Se(e.onKeyDown,p=>{const h=l.searchRef.current!=="";r||h&&p.key===" "||hv.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});ip.displayName=Pf;var OT=v.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,s=Wg(Pf,r),l=ST(r),c=v.useRef(null),d=Ve(t,c),[f,p]=v.useState(!1),[h,b]=v.useState("");return v.useEffect(()=>{const w=c.current;w&&b((w.textContent??"").trim())},[i.children]),g.jsx(Xu.ItemSlot,{scope:r,disabled:n,textValue:o??h,children:g.jsx(qZ,{asChild:!0,...l,focusable:!n,children:g.jsx(xc.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:d,onPointerMove:Se(e.onPointerMove,Zu(w=>{n?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Se(e.onPointerLeave,Zu(w=>s.onItemLeave(w))),onFocus:Se(e.onFocus,()=>p(!0)),onBlur:Se(e.onBlur,()=>p(!1))})})})}),tQ="MenuCheckboxItem",NT=v.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return g.jsx(qT,{scope:e.__scopeMenu,checked:r,children:g.jsx(ip,{role:"menuitemcheckbox","aria-checked":Sf(r)?"mixed":r,...o,ref:t,"data-state":Yg(r),onSelect:Se(o.onSelect,()=>n?.(Sf(r)?!0:!r),{checkForDefaultPrevented:!1})})})});NT.displayName=tQ;var IT="MenuRadioGroup",[rQ,nQ]=Ei(IT,{value:void 0,onValueChange:()=>{}}),kT=v.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=Xt(n);return g.jsx(rQ,{scope:e.__scopeMenu,value:r,onValueChange:i,children:g.jsx(Ug,{...o,ref:t})})});kT.displayName=IT;var LT="MenuRadioItem",FT=v.forwardRef((e,t)=>{const{value:r,...n}=e,o=nQ(LT,e.__scopeMenu),i=r===o.value;return g.jsx(qT,{scope:e.__scopeMenu,checked:i,children:g.jsx(ip,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Yg(i),onSelect:Se(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});FT.displayName=LT;var zg="MenuItemIndicator",[qT,oQ]=Ei(zg,{checked:!1}),jT=v.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=oQ(zg,r);return g.jsx(Tr,{present:n||Sf(i.checked)||i.checked===!0,children:g.jsx(xc.span,{...o,ref:t,"data-state":Yg(i.checked)})})});jT.displayName=zg;var iQ="MenuSeparator",BT=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return g.jsx(xc.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});BT.displayName=iQ;var aQ="MenuArrow",VT=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Cc(r);return g.jsx(op,{...o,...n,ref:t})});VT.displayName=aQ;var Gg="MenuSub",[sQ,KT]=Ei(Gg),WT=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=Mo(Gg,t),s=Cc(t),[l,c]=v.useState(null),[d,f]=v.useState(null),p=Xt(o);return v.useEffect(()=>(i.open===!1&&p(!1),()=>p(!1)),[i.open,p]),g.jsx(bc,{...s,children:g.jsx(_T,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:f,children:g.jsx(sQ,{scope:t,contentId:_t(),triggerId:_t(),trigger:l,onTriggerChange:c,children:r})})})};WT.displayName=Gg;var Ou="MenuSubTrigger",HT=v.forwardRef((e,t)=>{const r=Mo(Ou,e.__scopeMenu),n=Rc(Ou,e.__scopeMenu),o=KT(Ou,e.__scopeMenu),i=Wg(Ou,e.__scopeMenu),s=v.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,d={__scopeMenu:e.__scopeMenu},f=v.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return v.useEffect(()=>f,[f]),v.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),c(null)}},[l,c]),g.jsx(Vg,{asChild:!0,...d,children:g.jsx(OT,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":GT(r.open),...e,ref:gt(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Se(e.onPointerMove,Zu(p=>{i.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:Se(e.onPointerLeave,Zu(p=>{f();const h=r.content?.getBoundingClientRect();if(h){const b=r.content?.dataset.side,w=b==="right",y=w?-5:5,C=h[w?"left":"right"],x=h[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:C,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:C,y:h.bottom}],side:b}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(p),p.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Se(e.onKeyDown,p=>{const h=i.searchRef.current!=="";e.disabled||h&&p.key===" "||VZ[n.dir].includes(p.key)&&(r.onOpenChange(!0),r.content?.focus(),p.preventDefault())})})})});HT.displayName=Ou;var UT="MenuSubContent",zT=v.forwardRef((e,t)=>{const r=$T(Kr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Mo(Kr,e.__scopeMenu),s=Rc(Kr,e.__scopeMenu),l=KT(UT,e.__scopeMenu),c=v.useRef(null),d=Ve(t,c);return g.jsx(Xu.Provider,{scope:e.__scopeMenu,children:g.jsx(Tr,{present:n||i.open,children:g.jsx(Xu.Slot,{scope:e.__scopeMenu,children:g.jsx(Hg,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&c.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Se(e.onFocusOutside,f=>{f.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Se(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Se(e.onKeyDown,f=>{const p=f.currentTarget.contains(f.target),h=KZ[s.dir].includes(f.key);p&&h&&(i.onOpenChange(!1),l.trigger?.focus(),f.preventDefault())})})})})})});zT.displayName=UT;function GT(e){return e?"open":"closed"}function Sf(e){return e==="indeterminate"}function Yg(e){return Sf(e)?"indeterminate":e?"checked":"unchecked"}function lQ(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function uQ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function cQ(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=uQ(e,Math.max(i,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function dQ(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],c=t[s],d=l.x,f=l.y,p=c.x,h=c.y;f>n!=h>n&&r<(p-d)*(n-f)/(h-f)+d&&(o=!o)}return o}function fQ(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return dQ(r,t)}function Zu(e){return t=>t.pointerType==="mouse"?e(t):void 0}var pQ=TT,mQ=Vg,hQ=AT,vQ=DT,gQ=Ug,bQ=MT,yQ=ip,xQ=NT,wQ=kT,EQ=FT,CQ=jT,RQ=BT,PQ=VT,SQ=WT,_Q=HT,TQ=zT,ap="DropdownMenu",[$Q]=wn(ap,[PT]),nr=PT(),[AQ,YT]=$Q(ap),XT=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=nr(t),d=v.useRef(null),[f,p]=ut({prop:o,defaultProp:i??!1,onChange:s,caller:ap});return g.jsx(AQ,{scope:t,triggerId:_t(),triggerRef:d,contentId:_t(),open:f,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(h=>!h),[p]),modal:l,children:g.jsx(pQ,{...c,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};XT.displayName=ap;var ZT="DropdownMenuTrigger",QT=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=YT(ZT,r),s=nr(r);return g.jsx(mQ,{asChild:!0,...s,children:g.jsx(jY.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:gt(t,i.triggerRef),onPointerDown:Se(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:Se(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});QT.displayName=ZT;var DQ="DropdownMenuPortal",JT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=nr(t);return g.jsx(hQ,{...n,...r})};JT.displayName=DQ;var e$="DropdownMenuContent",t$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=YT(e$,r),i=nr(r),s=v.useRef(!1);return g.jsx(vQ,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:Se(e.onCloseAutoFocus,l=>{s.current||o.triggerRef.current?.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:Se(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t$.displayName=e$;var MQ="DropdownMenuGroup",r$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(gQ,{...o,...n,ref:t})});r$.displayName=MQ;var OQ="DropdownMenuLabel",n$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(bQ,{...o,...n,ref:t})});n$.displayName=OQ;var NQ="DropdownMenuItem",o$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(yQ,{...o,...n,ref:t})});o$.displayName=NQ;var IQ="DropdownMenuCheckboxItem",i$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(xQ,{...o,...n,ref:t})});i$.displayName=IQ;var kQ="DropdownMenuRadioGroup",a$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(wQ,{...o,...n,ref:t})});a$.displayName=kQ;var LQ="DropdownMenuRadioItem",s$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(EQ,{...o,...n,ref:t})});s$.displayName=LQ;var FQ="DropdownMenuItemIndicator",l$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(CQ,{...o,...n,ref:t})});l$.displayName=FQ;var qQ="DropdownMenuSeparator",u$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(RQ,{...o,...n,ref:t})});u$.displayName=qQ;var jQ="DropdownMenuArrow",BQ=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(PQ,{...o,...n,ref:t})});BQ.displayName=jQ;var VQ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,s=nr(t),[l,c]=ut({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return g.jsx(SQ,{...s,open:l,onOpenChange:c,children:r})},KQ="DropdownMenuSubTrigger",c$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(_Q,{...o,...n,ref:t})});c$.displayName=KQ;var WQ="DropdownMenuSubContent",d$=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=nr(r);return g.jsx(TQ,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});d$.displayName=WQ;var HQ=XT,UQ=QT,f$=JT,zQ=t$,GQ=r$,YQ=n$,XQ=o$,ZQ=i$,QQ=a$,JQ=s$,p$=l$,eJ=u$,tJ=VQ,rJ=c$,nJ=d$;const m$=e=>g.jsx(HQ,{"data-slot":"menu",...e}),h$=e=>g.jsx(UQ,{"data-slot":"menu-trigger",...e}),oJ=e=>g.jsx(GQ,{"data-slot":"menu-group",...e}),iJ=e=>g.jsx(f$,{"data-slot":"menu-portal",...e}),v$=e=>g.jsx(tJ,{"data-slot":"menu-sub",...e}),aJ=e=>g.jsx(QQ,{"data-slot":"menu-radio-group",...e}),g$=({className:e,inset:t,children:r,...n})=>g.jsxs(rJ,{"data-slot":"menu-sub-trigger",className:le("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state='open']:bg-accent",t&&"pl-8",e),...n,children:[r,g.jsx(ic,{className:"ml-auto h-4 w-4"})]}),b$=({className:e,...t})=>g.jsx(nJ,{"data-slot":"menu-sub-content",className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0 data-[state='closed']:zoom-out-95 data-[state='open']:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}),y$=({className:e,sideOffset:t=4,...r})=>g.jsx(f$,{"data-slot":"menu-portal",children:g.jsx(zQ,{"data-slot":"menu-content",sideOffset:t,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0 data-[state='closed']:zoom-out-95 data-[state='open']:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}),x$=({className:e,inset:t,...r})=>g.jsx(XQ,{"data-slot":"menu-item",className:le("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}),w$=({className:e,children:t,checked:r,...n})=>g.jsxs(ZQ,{"data-slot":"menu-checkbox-item",className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(p$,{children:g.jsx(of,{className:"h-4 w-4"})})}),t]}),E$=({className:e,children:t,...r})=>g.jsxs(JQ,{"data-slot":"menu-radio-item",className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(p$,{children:g.jsx(n5,{className:"h-2 w-2 fill-current"})})}),t]}),C$=({className:e,inset:t,...r})=>g.jsx(YQ,{"data-slot":"menu-label",className:le("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}),R$=({className:e,...t})=>g.jsx(eJ,{"data-slot":"menu-separator",className:le("-mx-1 my-1 h-px bg-muted",e),...t}),P$=({className:e,keys:t,handler:r,options:n={},...o})=>(K_(t,r,n),g.jsx("span",{"data-slot":"menu-shortcut",className:le("ml-auto text-xs tracking-widest opacity-60",e),...o})),S$=(e,t)=>{switch(e.type){case"item":return g.jsxs(x$,{...e,children:[e.label," ",t]});case"checkbox":return g.jsxs(w$,{...e,children:[e.label," ",t]});case"radio":return g.jsxs(E$,{...e,children:[e.label," ",t]});case"label":return g.jsxs(C$,{...e,children:[e.label," "]});case"separator":return g.jsx(R$,{...e});case"submenu":return g.jsxs(v$,{children:[g.jsx(g$,{...e,children:e.label}),g.jsx(b$,{children:e.items?.map((r,n)=>g.jsx(R.Fragment,{children:S$(r)},n))})]});default:return null}},sJ=({trigger:e,items:t,contentProps:r,side:n="bottom",offset:o})=>g.jsxs(m$,{children:[g.jsx(h$,{asChild:!0,children:e}),g.jsx(y$,{side:n,sideOffset:o,...r,children:t.map(({shortcut:i,onShortcut:s,shortcutOptions:l,...c},d)=>g.jsx(R.Fragment,{children:S$(c,i&&g.jsx(P$,{keys:i,handler:f=>s?.(f),options:l,children:i}))},d))})]}),_$=eo("inline-flex items-center relative overflow-hidden bg-gray-100 gap-1 px-2.5 py-0.5 text-xs font-normal transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{rounded:{default:"rounded-(--radius-tag)",full:"rounded-full",square:"rounded-sm"},variant:{primary:"bg-primary border-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary border-secondary !text-secondary-foreground hover:bg-secondary/80",error:"bg-error border-error text-error-foreground hover:bg-error/80",success:"bg-success border-success text-success-foreground hover:bg-success/80",outline:"border border-foreground text-foreground",borderless:"text-foreground"}},defaultVariants:{rounded:"default",variant:"primary"}}),vv=({className:e,color:t,variant:r,rounded:n,icon:o,closable:i,onClose:s,children:l,...c})=>{const d=!!t&&(r==="outline"||r==="borderless"),f=!!t&&!r;return g.jsxs("div",{"data-slot":"tag",className:le(_$({variant:r,rounded:n}),d&&"bg-white",f&&" text-white",!!o&&"pl-1.5",!!i&&"pr-1.5",e),style:{...d&&{color:t,borderColor:t},...f&&{borderColor:t,backgroundColor:t}},...c,children:[o,l,i&&g.jsx("button",{type:"button","data-slot":"tag-close",className:"z-10 h-4 w-4 cursor-pointer",onClick:p=>{p.stopPropagation(),s()},children:g.jsx(jf,{"data-slot":"tag-close-icon"})}),g.jsx("span",{"data-slot":"tag-overlay",className:"w-full h-full absolute top-0 left-0",style:{...d&&{opacity:.13,backgroundColor:t}}})]})};function T$(e){const t=lJ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(cJ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function lJ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=fJ(o),l=dJ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uJ=Symbol("radix.slottable");function cJ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uJ}function dJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function fJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$$=pJ.reduce((e,t)=>{const r=T$(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),sp="Popover",[A$]=wn(sp,[Do]),Pc=Do(),[mJ,Oo]=A$(sp),D$=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,l=Pc(t),c=v.useRef(null),[d,f]=v.useState(!1),[p,h]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:sp});return g.jsx(bc,{...l,children:g.jsx(mJ,{scope:t,contentId:_t(),triggerRef:c,open:p,onOpenChange:h,onOpenToggle:v.useCallback(()=>h(b=>!b),[h]),hasCustomAnchor:d,onCustomAnchorAdd:v.useCallback(()=>f(!0),[]),onCustomAnchorRemove:v.useCallback(()=>f(!1),[]),modal:s,children:r})})};D$.displayName=sp;var M$="PopoverAnchor",hJ=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Oo(M$,r),i=Pc(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return v.useEffect(()=>(s(),()=>l()),[s,l]),g.jsx(yc,{...i,...n,ref:t})});hJ.displayName=M$;var O$="PopoverTrigger",N$=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Oo(O$,r),i=Pc(r),s=Ve(t,o.triggerRef),l=g.jsx($$.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q$(o.open),...n,ref:s,onClick:Se(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:g.jsx(yc,{asChild:!0,...i,children:l})});N$.displayName=O$;var Xg="PopoverPortal",[vJ,gJ]=A$(Xg,{forceMount:void 0}),I$=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Oo(Xg,t);return g.jsx(vJ,{scope:t,forceMount:r,children:g.jsx(Tr,{present:r||i.open,children:g.jsx(ha,{asChild:!0,container:o,children:n})})})};I$.displayName=Xg;var ua="PopoverContent",k$=v.forwardRef((e,t)=>{const r=gJ(ua,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Oo(ua,e.__scopePopover);return g.jsx(Tr,{present:n||i.open,children:i.modal?g.jsx(yJ,{...o,ref:t}):g.jsx(xJ,{...o,ref:t})})});k$.displayName=ua;var bJ=T$("PopoverContent.RemoveScroll"),yJ=v.forwardRef((e,t)=>{const r=Oo(ua,e.__scopePopover),n=v.useRef(null),o=Ve(t,n),i=v.useRef(!1);return v.useEffect(()=>{const s=n.current;if(s)return oc(s)},[]),g.jsx(va,{as:bJ,allowPinchZoom:!0,children:g.jsx(L$,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,s=>{s.preventDefault(),i.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Se(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),xJ=v.forwardRef((e,t)=>{const r=Oo(ua,e.__scopePopover),n=v.useRef(!1),o=v.useRef(!1);return g.jsx(L$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;r.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),L$=v.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,h=Oo(ua,r),b=Pc(r);return Lf(),g.jsx(rc,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:g.jsx(np,{"data-state":q$(h.open),role:"dialog",id:h.contentId,...b,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),F$="PopoverClose",wJ=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Oo(F$,r);return g.jsx($$.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});wJ.displayName=F$;var EJ="PopoverArrow",CJ=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pc(r);return g.jsx(op,{...o,...n,ref:t})});CJ.displayName=EJ;function q$(e){return e?"open":"closed"}var RJ=D$,PJ=N$,SJ=I$,_J=k$;const Sc=e=>g.jsx(RJ,{"data-slot":"popover",...e}),_c=e=>g.jsx(PJ,{"data-slot":"popover-trigger",...e}),Tc=({className:e,align:t="center",sideOffset:r=4,matchTriggerWidth:n=!1,style:o,focus:i=!0,...s})=>g.jsx(SJ,{children:g.jsx(_J,{"data-slot":"popover-content",align:t,sideOffset:r,onOpenAutoFocus:l=>{!i&&l.preventDefault(),s?.onOpenAutoFocus?.(l)},className:le("z-50 w-72 p-4 rounded-md border bg-popover text-popover-foreground shadow-md outline-none open:animate-in closed:animate-out closed:fade-out-0 open:fade-in-0 closed:zoom-out-95 open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:{...o,...n&&{width:"var(--radix-popper-anchor-width)"}},...s})}),TJ=e=>{const{trigger:t,children:r,rootProps:n,triggerProps:o,contentProps:i,triggerAsChild:s=!0,matchTriggerWidth:l,triggerClassName:c,contentClassName:d,side:f="bottom",offset:p}=ac("Popover",e,{triggerAsChild:!0,side:"bottom"});return g.jsxs(Sc,{...n,children:[g.jsx(_c,{asChild:s,className:c,...o,children:t}),g.jsx(Tc,{className:d,matchTriggerWidth:l,side:f,sideOffset:p,...i,children:r})]})},MR=eo("m-1 transition ease-in-out delay-150 duration-300",{variants:{variant:{default:"border-foreground/10 border text-foreground bg-card hover:bg-card/80",primary:"border-foreground/10 border text-foreground bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-foreground/60 border bg-secondary text-secondary-foreground hover:bg-secondary/80",error:"border-transparent bg-error text-error-foreground hover:bg-error/80"}},defaultVariants:{variant:"default"}}),$J=({valueKey:e,values:t,setValues:r,items:n,maxCount:o,setIsPopoverOpen:i})=>{const s=h=>{if(h.key==="Enter")i(!0);else if(h.key==="Backspace"&&!h.currentTarget.value){const b=[...t];b.pop(),r?.(b)}},l=h=>{const b=t.includes(h)?t.filter(w=>w!==h):[...t,h];r?.(b)},c=()=>{r?.([])};return{handleInputKeyDown:s,toggleOption:l,handleClear:c,handleTogglePopover:()=>{i(h=>!h)},clearExtraOptions:()=>{const h=t.slice(0,o);r?.(h)},toggleAll:()=>{const h=n.filter(b=>!b.disabled);if(t.length===h.length)c();else{const b=h.map(w=>w[e]);r?.(b)}}}},AJ=({items:e=[],value:t,valueKey:r="value",labelKey:n="label",onChange:o,variant:i,defaultValue:s=[],placeholder:l="Seleccionar",maxCount:c=3,className:d,renderOption:f=C=>C[n],withCheckbox:p=!1,showSearch:h=!0,showSelectAll:b=!0,rootProps:w,...y})=>{const[C=[],x]=ut({prop:t,onChange:o,defaultProp:s}),[P,S]=ut({prop:y.open,onChange:y.onOpenChange,defaultProp:y.defaultOpen||!1}),D=v.useMemo(()=>e.filter(N=>!N.disabled),[e]),{handleInputKeyDown:_,toggleOption:T,handleClear:A,handleTogglePopover:M,clearExtraOptions:U,toggleAll:J}=$J({valueKey:r,values:C,setValues:x,items:e,maxCount:c,setIsPopoverOpen:S});return g.jsxs(Sc,{open:P,onOpenChange:S,"data-slot":"multi-select",...w,children:[g.jsx(_c,{asChild:!0,"data-slot":"multi-select-trigger",children:g.jsx(tr,{...y,onClick:M,className:le("flex w-full p-1 rounded-md border border-input min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit",d),children:C.length>0?g.jsxs("div",{className:"flex justify-between items-center w-full",children:[g.jsxs("div",{className:"flex flex-wrap items-center","data-slot":"multi-select-tags",children:[C.slice(0,c).map(N=>{const W=e.find(L=>L[r]===N),K=W?.icon;return g.jsxs(vv,{"data-slot":"multi-select-tag",className:le(MR({variant:i})),closable:!0,onClose:()=>T(N),children:[K&&g.jsx(K,{className:"h-4 w-4 mr-2"}),W&&f?.(W)]},N)}),C.length>c&&g.jsx(vv,{"data-slot":"multi-select-tag",className:le(MR({variant:i})),closable:!0,onClose:U,children:`+ ${C.length-c} más`})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx(jf,{"data-slot":"multi-select-clear",className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:N=>{N.stopPropagation(),A()}}),g.jsx(c_,{"data-slot":"multi-select-divider",orientation:"vertical",className:"flex min-h-6 h-full"}),g.jsx(af,{"data-slot":"multi-select-trigger-icon",className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):g.jsxs("div",{className:"flex items-center justify-between w-full mx-auto","data-slot":"multi-select-trigger-empty",children:[g.jsx("span",{className:"text-sm text-foreground font-normal mx-2","data-slot":"multi-select-placeholder",children:l}),g.jsx(af,{"data-slot":"multi-select-trigger-icon",className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),g.jsx(Tc,{"data-slot":"multi-select-content",className:"p-0",matchTriggerWidth:!0,align:"start",asChild:!0,onEscapeKeyDown:()=>S(!1),children:g.jsxs(uc,{children:[h&&g.jsx(Uf,{"data-slot":"multi-select-input",placeholder:"Buscar...",onKeyDown:_}),g.jsxs(zf,{"data-slot":"multi-select-list",children:[g.jsx(Gf,{"data-slot":"multi-select-empty",children:"No results found."}),g.jsxs(sS,{"data-slot":"multi-select-group",children:[b&&g.jsxs(Ku,{"data-slot":"multi-select-item",onSelect:J,className:le("cursor-pointer",!p&&C.length===D.length&&"bg-accent text-accent-foreground"),children:[p&&g.jsx("div",{className:le("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",C.length===D.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:g.jsx(of,{className:"h-4 w-4"})}),g.jsx("span",{children:"(Seleccionar todo)"})]},"all"),e.map(N=>{const W=C.includes(N[r]);return g.jsxs(Ku,{"data-slot":"multi-select-item",onSelect:()=>!N.disabled&&T(N[r]),className:le(N.disabled?"!bg-neutral-50 !text-neutral-400":"cursor-pointer",!p&&W&&"!bg-accent !text-accent-foreground"),children:[p&&g.jsx("div",{className:le("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",W?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:g.jsx(of,{className:"h-4 w-4"})}),N.icon&&g.jsx(N.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),g.jsx("span",{children:f?.(N)})]},N[r])})]})]})]})})]})},DJ=({value:e,onChange:t,defaultValue:r,className:n,min:o,max:i,...s})=>{const[l,c]=ut({prop:e,onChange:t,defaultProp:r}),d=l??o??0,f=w=>{const y=parseInt(w.target.value,10);c(y)},p=()=>{if(lt.isUndefined(l)&&lt.isNumber(o))return c(o??0);const w=d+1;(lt.isUndefined(i)||w<=i)&&c(w)},h=()=>{if(lt.isUndefined(l)&&lt.isNumber(i))return c(i??0);const w=d-1;(lt.isUndefined(o)||w>=o)&&c(w)},b=()=>{const w=lt.isNumber(o)&&d<o,y=lt.isNumber(i)&&d>i;w?c(o):y&&c(i)};return g.jsxs("div",{className:"relative w-full","data-slot":"number-input-container",children:[g.jsx("input",{...s,type:"number",value:l,onChange:f,onBlur:b,min:o,max:i,className:le("numberInput","h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","file:border-0 file:bg-transparent file:text-sm file:font-medium",n),"data-slot":"number-input"}),g.jsxs("div",{className:"absolute right-0 top-0 h-full w-6 py-1 gap-px justify-center items-center flex flex-col border-l border-input overflow-hidden",children:[g.jsx(tr,{variant:"ghost",size:"icon",onClick:p,className:"h-4 w-4 grow rounded-sm","data-testid":"increment-trigger","data-slot":"number-input-increment",children:g.jsx(EP,{"data-slot":"number-input-increment-icon"})}),g.jsx(tr,{variant:"ghost",size:"icon",onClick:h,className:"h-4 w-4 grow rounded-sm","data-testid":"decrement-trigger","data-slot":"number-input-decrement",children:g.jsx(wP,{"data-slot":"number-input-decrement-icon"})})]})]})},zi=({isActive:e=!1,...t})=>g.jsx("button",{...t,"data-slot":"pagination-option","data-active":e,"data-dots":t.children===Co,className:le("transition-colors border py-2 px-4 w-[50px] h-full data-[active=false]:hover:bg-accent","data-[active=true]:bg-primary data-[active=true]:text-primary-foreground data-[active=true]:border-transparent data-[active=true]:hover:bg-primary/90",t.className)}),MJ=({optionProps:e,className:t,containerProps:r,...n})=>{const{paginationRange:o,currentPage:i,goTo:s,maxPage:l,next:c,prev:d,isLastPage:f,isFirstPage:p}=W_(n);return g.jsxs("div",{...r,className:le("flex items-end select-none h-10",r?.className,t),"data-slot":"pagination",children:[g.jsxs(zi,{...e,disabled:p,onClick:()=>s(1),className:le("rounded-l-md",e?.className),children:[g.jsx(Uj,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a primera página"})]}),g.jsxs(zi,{...e,onClick:d,disabled:p,children:[g.jsx(zv,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a página anterior"})]}),o.map(h=>g.jsx(g.Fragment,{children:h===Co?g.jsx(zi,{className:le("pointer-events-none",e?.className),children:Co},h):R.createElement(zi,{...e,isActive:h===i,onClick:()=>s(h),key:h},h,g.jsxs("span",{className:"sr-only",children:["Ir a la página ",h]}))})),g.jsxs(zi,{...e,onClick:c,disabled:f,children:[g.jsx(ic,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a próxima página"})]}),g.jsxs(zi,{...e,disabled:f,onClick:()=>s(l),className:le("rounded-r-md",e?.className),children:[g.jsx(Gj,{"data-slot":"pagination-option-icon"}),g.jsx("span",{className:"sr-only",children:"Ir a última página"})]})]})},OJ=({className:e,containerClassName:t,showIcon:r=g.jsx(u5,{className:"h-4 w-4"}),hideIcon:n=g.jsx(s5,{className:"h-4 w-4"}),onShow:o,onHide:i,toggleable:s=!0,...l})=>{const[c,d]=H_(!1),f=()=>{d(),c?i?.():o?.()};return g.jsxs("div",{className:le("relative",t),"data-slot":"password",children:[g.jsx(B_,{...l,type:c?"text":"password",className:le("pr-10","[&::-ms-reveal]:hidden [&::-ms-clear]:hidden",e)}),g.jsx("button",{"data-slot":"password-toggle",type:"button",onClick:f,disabled:!s,className:le("absolute right-3 top-1/2 -translate-y-1/2 text-gray-500",s?"hover:text-gray-700":"opacity-50 cursor-not-allowed"),children:c?n:r})]})},NJ=({items:e=[],valueKey:t="value",labelKey:r="label",value:n,onChange:o,defaultValue:i,renderOption:s=y=>y?.[r],triggerProps:l,contentClassName:c,contentProps:d,itemClassName:f,itemProps:p,className:h,placeholder:b="Seleccionar",...w})=>{const[y,C]=ut({prop:n,onChange:x=>{if(!o)return;const P=e.find(S=>S[t]===x);o?.(x,P)},defaultProp:i});return g.jsxs(gA,{...w,onValueChange:C,value:y,children:[g.jsx(xA,{className:h,...l,children:g.jsx(yA,{placeholder:b})}),g.jsx(CA,{className:c,...d,children:g.jsx(bA,{children:e.map((x,P)=>R.createElement(PA,{...p,className:f,key:P,disabled:x?.disabled,value:x[t]},s?.(x)))})})]})};function OR(e,[t,r]){return Math.min(r,Math.max(t,e))}function j$(e){const t=IJ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(LJ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function IJ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=qJ(o),l=FJ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kJ=Symbol("radix.slottable");function LJ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kJ}function FJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function qJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var jJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$r=jJ.reduce((e,t)=>{const r=j$(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function BJ(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function VJ(e){const t=KJ(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(HJ);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function KJ(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=zJ(o),l=UJ(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WJ=Symbol("radix.slottable");function HJ(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WJ}function UJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function zJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var GJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],YJ=GJ.reduce((e,t)=>{const r=VJ(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),B$=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),XJ="VisuallyHidden",V$=v.forwardRef((e,t)=>g.jsx(YJ.span,{...e,ref:t,style:{...B$,...e.style}}));V$.displayName=XJ;var ZJ=V$,QJ=[" ","Enter","ArrowUp","ArrowDown"],JJ=[" ","Enter"],mi="Select",[lp,up,eee]=Dg(mi),[wa]=wn(mi,[eee,Do]),cp=Do(),[tee,No]=wa(mi),[ree,nee]=wa(mi),K$=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:h,required:b,form:w}=e,y=cp(t),[C,x]=v.useState(null),[P,S]=v.useState(null),[D,_]=v.useState(!1),T=Mg(d),[A,M]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:mi}),[U,J]=ut({prop:s,defaultProp:l,onChange:c,caller:mi}),N=v.useRef(null),W=C?w||!!C.closest("form"):!0,[K,L]=v.useState(new Set),G=Array.from(K).map(k=>k.props.value).join(";");return g.jsx(bc,{...y,children:g.jsxs(tee,{required:b,scope:t,trigger:C,onTriggerChange:x,valueNode:P,onValueNodeChange:S,valueNodeHasChildren:D,onValueNodeHasChildrenChange:_,contentId:_t(),value:U,onValueChange:J,open:A,onOpenChange:M,dir:T,triggerPointerDownPosRef:N,disabled:h,children:[g.jsx(lp.Provider,{scope:t,children:g.jsx(ree,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(k=>{L(F=>new Set(F).add(k))},[]),onNativeOptionRemove:v.useCallback(k=>{L(F=>{const j=new Set(F);return j.delete(k),j})},[]),children:r})}),W?g.jsxs(pA,{"aria-hidden":!0,required:b,tabIndex:-1,name:f,autoComplete:p,value:U,onChange:k=>J(k.target.value),disabled:h,form:w,children:[U===void 0?g.jsx("option",{value:""}):null,Array.from(K)]},G):null]})})};K$.displayName=mi;var W$="SelectTrigger",H$=v.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=cp(r),s=No(W$,r),l=s.disabled||n,c=Ve(t,s.onTriggerChange),d=up(r),f=v.useRef("touch"),[p,h,b]=hA(y=>{const C=d().filter(S=>!S.disabled),x=C.find(S=>S.value===s.value),P=vA(C,y,x);P!==void 0&&s.onValueChange(P.value)}),w=y=>{l||(s.onOpenChange(!0),b()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return g.jsx(yc,{asChild:!0,...i,children:g.jsx($r.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":mA(s.value)?"":void 0,...o,ref:c,onClick:Se(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&w(y)}),onPointerDown:Se(o.onPointerDown,y=>{f.current=y.pointerType;const C=y.target;C.hasPointerCapture(y.pointerId)&&C.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(w(y),y.preventDefault())}),onKeyDown:Se(o.onKeyDown,y=>{const C=p.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&h(y.key),!(C&&y.key===" ")&&QJ.includes(y.key)&&(w(),y.preventDefault())})})})});H$.displayName=W$;var U$="SelectValue",z$=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:s="",...l}=e,c=No(U$,r),{onValueNodeHasChildrenChange:d}=c,f=i!==void 0,p=Ve(t,c.onValueNodeChange);return Kt(()=>{d(f)},[d,f]),g.jsx($r.span,{...l,ref:p,style:{pointerEvents:"none"},children:mA(c.value)?g.jsx(g.Fragment,{children:s}):i})});z$.displayName=U$;var oee="SelectIcon",G$=v.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return g.jsx($r.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});G$.displayName=oee;var iee="SelectPortal",Y$=e=>g.jsx(ha,{asChild:!0,...e});Y$.displayName=iee;var hi="SelectContent",X$=v.forwardRef((e,t)=>{const r=No(hi,e.__scopeSelect),[n,o]=v.useState();if(Kt(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?da.createPortal(g.jsx(Z$,{scope:e.__scopeSelect,children:g.jsx(lp.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),i):null}return g.jsx(Q$,{...e,ref:t})});X$.displayName=hi;var Xr=10,[Z$,Io]=wa(hi),aee="SelectContentImpl",see=j$("SelectContent.RemoveScroll"),Q$=v.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:b,sticky:w,hideWhenDetached:y,avoidCollisions:C,...x}=e,P=No(hi,r),[S,D]=v.useState(null),[_,T]=v.useState(null),A=Ve(t,te=>D(te)),[M,U]=v.useState(null),[J,N]=v.useState(null),W=up(r),[K,L]=v.useState(!1),G=v.useRef(!1);v.useEffect(()=>{if(S)return oc(S)},[S]),Lf();const k=v.useCallback(te=>{const[ve,...q]=W().map(Z=>Z.ref.current),[ae]=q.slice(-1),oe=document.activeElement;for(const Z of te)if(Z===oe||(Z?.scrollIntoView({block:"nearest"}),Z===ve&&_&&(_.scrollTop=0),Z===ae&&_&&(_.scrollTop=_.scrollHeight),Z?.focus(),document.activeElement!==oe))return},[W,_]),F=v.useCallback(()=>k([M,S]),[k,M,S]);v.useEffect(()=>{K&&F()},[K,F]);const{onOpenChange:j,triggerPointerDownPosRef:re}=P;v.useEffect(()=>{if(S){let te={x:0,y:0};const ve=ae=>{te={x:Math.abs(Math.round(ae.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(ae.pageY)-(re.current?.y??0))}},q=ae=>{te.x<=10&&te.y<=10?ae.preventDefault():S.contains(ae.target)||j(!1),document.removeEventListener("pointermove",ve),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",q,{capture:!0})}}},[S,j,re]),v.useEffect(()=>{const te=()=>j(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[j]);const[V,ie]=hA(te=>{const ve=W().filter(oe=>!oe.disabled),q=ve.find(oe=>oe.ref.current===document.activeElement),ae=vA(ve,te,q);ae&&setTimeout(()=>ae.ref.current.focus())}),Y=v.useCallback((te,ve,q)=>{const ae=!G.current&&!q;(P.value!==void 0&&P.value===ve||ae)&&(U(te),ae&&(G.current=!0))},[P.value]),X=v.useCallback(()=>S?.focus(),[S]),ce=v.useCallback((te,ve,q)=>{const ae=!G.current&&!q;(P.value!==void 0&&P.value===ve||ae)&&N(te)},[P.value]),ue=n==="popper"?gv:J$,pe=ue===gv?{side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:b,sticky:w,hideWhenDetached:y,avoidCollisions:C}:{};return g.jsx(Z$,{scope:r,content:S,viewport:_,onViewportChange:T,itemRefCallback:Y,selectedItem:M,onItemLeave:X,itemTextRefCallback:ce,focusSelectedItem:F,selectedItemText:J,position:n,isPositioned:K,searchRef:V,children:g.jsx(va,{as:see,allowPinchZoom:!0,children:g.jsx(rc,{asChild:!0,trapped:P.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Se(o,te=>{P.trigger?.focus({preventScroll:!0}),te.preventDefault()}),children:g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:g.jsx(ue,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:te=>te.preventDefault(),...x,...pe,onPlaced:()=>L(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Se(x.onKeyDown,te=>{const ve=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ve&&te.key.length===1&&ie(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ae=W().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const oe=te.target,Z=ae.indexOf(oe);ae=ae.slice(Z+1)}setTimeout(()=>k(ae)),te.preventDefault()}})})})})})})});Q$.displayName=aee;var lee="SelectItemAlignedPosition",J$=v.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=No(hi,r),s=Io(hi,r),[l,c]=v.useState(null),[d,f]=v.useState(null),p=Ve(t,A=>f(A)),h=up(r),b=v.useRef(!1),w=v.useRef(!0),{viewport:y,selectedItem:C,selectedItemText:x,focusSelectedItem:P}=s,S=v.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&y&&C&&x){const A=i.trigger.getBoundingClientRect(),M=d.getBoundingClientRect(),U=i.valueNode.getBoundingClientRect(),J=x.getBoundingClientRect();if(i.dir!=="rtl"){const oe=J.left-M.left,Z=U.left-oe,we=A.left-Z,De=A.width+we,Ue=Math.max(De,M.width),wt=window.innerWidth-Xr,mt=OR(Z,[Xr,Math.max(Xr,wt-Ue)]);l.style.minWidth=De+"px",l.style.left=mt+"px"}else{const oe=M.right-J.right,Z=window.innerWidth-U.right-oe,we=window.innerWidth-A.right-Z,De=A.width+we,Ue=Math.max(De,M.width),wt=window.innerWidth-Xr,mt=OR(Z,[Xr,Math.max(Xr,wt-Ue)]);l.style.minWidth=De+"px",l.style.right=mt+"px"}const N=h(),W=window.innerHeight-Xr*2,K=y.scrollHeight,L=window.getComputedStyle(d),G=parseInt(L.borderTopWidth,10),k=parseInt(L.paddingTop,10),F=parseInt(L.borderBottomWidth,10),j=parseInt(L.paddingBottom,10),re=G+k+K+j+F,V=Math.min(C.offsetHeight*5,re),ie=window.getComputedStyle(y),Y=parseInt(ie.paddingTop,10),X=parseInt(ie.paddingBottom,10),ce=A.top+A.height/2-Xr,ue=W-ce,pe=C.offsetHeight/2,te=C.offsetTop+pe,ve=G+k+te,q=re-ve;if(ve<=ce){const oe=N.length>0&&C===N[N.length-1].ref.current;l.style.bottom="0px";const Z=d.clientHeight-y.offsetTop-y.offsetHeight,we=Math.max(ue,pe+(oe?X:0)+Z+F),De=ve+we;l.style.height=De+"px"}else{const oe=N.length>0&&C===N[0].ref.current;l.style.top="0px";const we=Math.max(ce,G+y.offsetTop+(oe?Y:0)+pe)+q;l.style.height=we+"px",y.scrollTop=ve-ce+y.offsetTop}l.style.margin=`${Xr}px 0`,l.style.minHeight=V+"px",l.style.maxHeight=W+"px",n?.(),requestAnimationFrame(()=>b.current=!0)}},[h,i.trigger,i.valueNode,l,d,y,C,x,i.dir,n]);Kt(()=>S(),[S]);const[D,_]=v.useState();Kt(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const T=v.useCallback(A=>{A&&w.current===!0&&(S(),P?.(),w.current=!1)},[S,P]);return g.jsx(cee,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:b,onScrollButtonChange:T,children:g.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:g.jsx($r.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});J$.displayName=lee;var uee="SelectPopperPosition",gv=v.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Xr,...i}=e,s=cp(r);return g.jsx(np,{...s,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gv.displayName=uee;var[cee,Zg]=wa(hi,{}),bv="SelectViewport",eA=v.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=Io(bv,r),s=Zg(bv,r),l=Ve(t,i.onViewportChange),c=v.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),g.jsx(lp.Slot,{scope:r,children:g.jsx($r.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Se(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=s;if(h?.current&&p){const b=Math.abs(c.current-f.scrollTop);if(b>0){const w=window.innerHeight-Xr*2,y=parseFloat(p.style.minHeight),C=parseFloat(p.style.height),x=Math.max(y,C);if(x<w){const P=x+b,S=Math.min(w,P),D=P-S;p.style.height=S+"px",p.style.bottom==="0px"&&(f.scrollTop=D>0?D:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});eA.displayName=bv;var tA="SelectGroup",[dee,fee]=wa(tA),rA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=_t();return g.jsx(dee,{scope:r,id:o,children:g.jsx($r.div,{role:"group","aria-labelledby":o,...n,ref:t})})});rA.displayName=tA;var nA="SelectLabel",oA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=fee(nA,r);return g.jsx($r.div,{id:o.id,...n,ref:t})});oA.displayName=nA;var _f="SelectItem",[pee,iA]=wa(_f),aA=v.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...s}=e,l=No(_f,r),c=Io(_f,r),d=l.value===n,[f,p]=v.useState(i??""),[h,b]=v.useState(!1),w=Ve(t,P=>c.itemRefCallback?.(P,n,o)),y=_t(),C=v.useRef("touch"),x=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(pee,{scope:r,value:n,disabled:o,textId:y,isSelected:d,onItemTextChange:v.useCallback(P=>{p(S=>S||(P?.textContent??"").trim())},[]),children:g.jsx(lp.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:g.jsx($r.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:Se(s.onFocus,()=>b(!0)),onBlur:Se(s.onBlur,()=>b(!1)),onClick:Se(s.onClick,()=>{C.current!=="mouse"&&x()}),onPointerUp:Se(s.onPointerUp,()=>{C.current==="mouse"&&x()}),onPointerDown:Se(s.onPointerDown,P=>{C.current=P.pointerType}),onPointerMove:Se(s.onPointerMove,P=>{C.current=P.pointerType,o?c.onItemLeave?.():C.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(s.onPointerLeave,P=>{P.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Se(s.onKeyDown,P=>{c.searchRef?.current!==""&&P.key===" "||(JJ.includes(P.key)&&x(),P.key===" "&&P.preventDefault())})})})})});aA.displayName=_f;var Nu="SelectItemText",sA=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,s=No(Nu,r),l=Io(Nu,r),c=iA(Nu,r),d=nee(Nu,r),[f,p]=v.useState(null),h=Ve(t,x=>p(x),c.onItemTextChange,x=>l.itemTextRefCallback?.(x,c.value,c.disabled)),b=f?.textContent,w=v.useMemo(()=>g.jsx("option",{value:c.value,disabled:c.disabled,children:b},c.value),[c.disabled,c.value,b]),{onNativeOptionAdd:y,onNativeOptionRemove:C}=d;return Kt(()=>(y(w),()=>C(w)),[y,C,w]),g.jsxs(g.Fragment,{children:[g.jsx($r.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?da.createPortal(i.children,s.valueNode):null]})});sA.displayName=Nu;var lA="SelectItemIndicator",mee=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return iA(lA,r).isSelected?g.jsx($r.span,{"aria-hidden":!0,...n,ref:t}):null});mee.displayName=lA;var yv="SelectScrollUpButton",uA=v.forwardRef((e,t)=>{const r=Io(yv,e.__scopeSelect),n=Zg(yv,e.__scopeSelect),[o,i]=v.useState(!1),s=Ve(t,n.onScrollButtonChange);return Kt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollTop>0;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?g.jsx(dA,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});uA.displayName=yv;var xv="SelectScrollDownButton",cA=v.forwardRef((e,t)=>{const r=Io(xv,e.__scopeSelect),n=Zg(xv,e.__scopeSelect),[o,i]=v.useState(!1),s=Ve(t,n.onScrollButtonChange);return Kt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;i(f)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?g.jsx(dA,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});cA.displayName=xv;var dA=v.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Io("SelectScrollButton",r),s=v.useRef(null),l=up(r),c=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>c(),[c]),Kt(()=>{l().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),g.jsx($r.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Se(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:Se(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:Se(o.onPointerLeave,()=>{c()})})}),hee="SelectSeparator",fA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return g.jsx($r.div,{"aria-hidden":!0,...n,ref:t})});fA.displayName=hee;var wv="SelectArrow",vee=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=cp(r),i=No(wv,r),s=Io(wv,r);return i.open&&s.position==="popper"?g.jsx(op,{...o,...n,ref:t}):null});vee.displayName=wv;var gee="SelectBubbleInput",pA=v.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=v.useRef(null),i=Ve(n,o),s=BJ(t);return v.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(p)}},[s,t]),g.jsx($r.select,{...r,style:{...B$,...r.style},ref:i,defaultValue:t})});pA.displayName=gee;function mA(e){return e===""||e===void 0}function hA(e){const t=Xt(e),r=v.useRef(""),n=v.useRef(0),o=v.useCallback(s=>{const l=r.current+s;t(l),(function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),i=v.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function vA(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=bee(e,Math.max(i,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function bee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var yee=K$,xee=H$,wee=z$,Eee=G$,Cee=Y$,Ree=X$,Pee=eA,See=rA,_ee=oA,Tee=aA,$ee=sA,Aee=uA,Dee=cA,Mee=fA;const gA=e=>g.jsx(yee,{"data-slot":"select",...e}),bA=({heading:e,children:t,...r})=>g.jsxs(See,{"data-slot":"select-group",...r,children:[e&&g.jsx(RA,{children:e}),t]}),yA=e=>g.jsx(wee,{"data-slot":"select-value",...e}),xA=({className:e,children:t,...r})=>g.jsxs(xee,{"data-slot":"select-trigger",className:le("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,g.jsx(Eee,{asChild:!0,"data-slot":"select-trigger-icon",children:g.jsx(af,{className:"h-4 w-4 shrink-0 opacity-50"})})]}),wA=({className:e,...t})=>g.jsx(Aee,{"data-slot":"select-scroll-up",className:le("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(EP,{className:"h-4 w-4"})}),EA=({className:e,...t})=>g.jsx(Dee,{"data-slot":"select-scroll-down",className:le("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(wP,{className:"h-4 w-4"})}),CA=({className:e,children:t,position:r="popper",...n})=>g.jsx(Cee,{children:g.jsxs(Ree,{"data-slot":"select-content",className:le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md open:animate-in closed:animate-out closed:fade-out-0 open:fade-in-0 closed:zoom-out-95 open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[g.jsx(wA,{}),g.jsx(Pee,{"data-slot":"select-viewport",className:le("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(EA,{})]})}),RA=({className:e,...t})=>g.jsx(_ee,{"data-slot":"select-label",className:le("py-1.5 px-2 text-sm font-semibold",e),...t}),PA=({className:e,children:t,...r})=>g.jsx(Tee,{"data-slot":"select-item",className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 px-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:g.jsx($ee,{"data-slot":"select-item-text",children:t})}),Oee=({className:e,...t})=>g.jsx(Mee,{"data-slot":"select-separator",className:le("-mx-1 my-1 h-px bg-muted",e),...t}),Nee=({isCircle:e,width:t,height:r,isLoading:n=!1,...o})=>{const i={width:t,height:r,...o.style};return!n&&o.children?o.children:g.jsx("div",{"data-slot":"skeleton",...o,className:le("[&>*]:opacity-0 w-fit","rounded w-full animate-pulse bg-muted min-h-[1.5em]",e&&"rounded-[50%] aspect-square",o.className),style:i})},Iee=({inline:e=!1,justify:t,align:r,direction:n="horizontal",gap:o=8,style:i,...s})=>{const l={display:e?"inline-flex":"flex",flexDirection:n==="vertical"?"column":"row",justifyContent:t,alignItems:r,gap:o};return g.jsx("div",{style:{...l,...i},...s,"data-slot":"stack"})},[SA,kee]=cc();function Lee({items:e=[],current:t,onChange:r,className:n,classNameList:o,classNameItem:i,classNameButton:s,classNameIndicator:l,classNameContent:c}){return g.jsxs(_A,{className:n,current:t,onChange:r,children:[g.jsx(TA,{className:o,children:e?.map((d,f)=>g.jsx($A,{value:f,title:d?.title,indicator:d?.indicator,classNameItem:i,classNameButton:s,classNameIndicator:l},f))}),e?.map((d,f)=>g.jsx(AA,{className:c,value:f,children:d?.content},f))]})}function _A({current:e,onChange:t,className:r,...n}){const[o=0,i]=ut({prop:e,onChange:t,defaultProp:0});return g.jsx(kee,{value:{activeStep:o,setActiveStep:i},children:g.jsx("div",{"data-slot":"stepper",className:le("flex flex-col items-center w-full transition-all ease-in delay-150",r),...n})})}function TA({children:e,className:t,...r}){return g.jsx("ul",{"data-slot":"stepper-list",className:le("flex flex-col sm:flex-row sm:gap-0 gap-4 items-center w-full text-xs font-medium text-gray-900 sm:text-base mb-8",t),...r,children:e})}function $A({disabled:e,value:t,title:r,indicator:n,classNameItem:o,classNameButton:i,classNameIndicator:s}){const{activeStep:l,setActiveStep:c}=SA();return g.jsx("li",{"data-slot":"stepper-trigger",className:le("flex relative text-primary transition-all ease-in delay-150","last:w-full last:sm:w-auto last:after:hidden",`w-full after:content-[''] sm:after:w-full after:h-full after:w-0.5 sm:after:h-0.5 ${l>t?"after:bg-primary":"after:bg-gray-300"} after:inline-block after:absolute after:top-5 sm:after:top-5 after:left-4 sm:after:left-10`,o),children:g.jsxs("button",{onClick:()=>!e&&c(t),className:le("z-10 flex items-center justify-center sm:flex-col gap-3 flex-row whitespace-nowrap cursor-pointer group transition-color ease-in delay-150",l>=t?"text-primary":"text-gray-500",e&&"cursor-not-allowed",i),children:[g.jsx("span",{"data-slot":"stepper-trigger-indicator",className:le("flex items-center transition-all overflow-hidden ease-in justify-center group-hover:scale-105 sm:w-10 sm:h-10 mx-auto text-sm border-2 rounded-full w-8 h-8",l>t&&"bg-primary border-primary text-primary-foreground",l===t&&"bg-gray-100 text-primary border-primary",l<t&&"bg-white text-gray-500 border-input",e&&"text-gray-300",s),children:l>t?"✓":n||t+1}),r]})})}function AA({value:e,className:t="w-full",...r}){const{activeStep:n}=SA();return n===e?g.jsx("div",{"data-slot":"stepper-content",className:t,...r}):null}const Fee=({className:e,children:t,containerProps:r,containerClassName:n,...o})=>{const i=R.useId(),[s=!1,l]=ut({prop:o.checked,onChange:o.onChange,defaultProp:o.defaultChecked}),c=()=>!o.disabled&&l(p=>!p),d=s?"checked":"unchecked",f=o.id??i;return g.jsxs("div",{"data-slot":"switch",...r,className:le("flex gap-x-2 items-center",n),children:[g.jsxs("button",{"data-slot":"switch-trigger",disabled:o.disabled,onClick:c,"data-state":d,type:"button",className:le("peer w-11 h-6 bg-input rounded-full border-2 border-transparent transition-colors","data-[state=checked]:bg-primary",e),children:[g.jsx("div",{"data-state":d,className:le("w-5 h-5 pointers-event-none bg-primary-foreground rounded-full transition-all","transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")}),g.jsx("input",{...o,id:f,checked:s,onChange:p=>l(p.currentTarget.checked),type:"checkbox",className:"sr-only","aria-hidden":!0})]}),t&&g.jsx(pc,{htmlFor:f,children:t})]})},DA=({className:e,containerClassName:t,containerProps:r,...n})=>g.jsx("div",{"data-slot":"table-container",className:le("relative w-full overflow-auto rounded-md border",t),...r,children:g.jsx("table",{"data-slot":"table",className:le("w-full caption-bottom text-sm",e),...n})}),MA=({className:e,...t})=>g.jsx("thead",{"data-slot":"table-header",className:le("[&_tr]:border-b",e),...t}),OA=({className:e,...t})=>g.jsx("tbody",{"data-slot":"table-body",className:le("[&_tr:last-child]:border-0",e),...t}),qee=({className:e,...t})=>g.jsx("tfoot",{"data-slot":"table-footer",className:le("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}),Ev=({className:e,...t})=>g.jsx("tr",{"data-slot":"table-row",className:le("border-b transition-colors hover:bg-muted data-[selected=true]:bg-muted",e),...t}),NA=({className:e,...t})=>g.jsx("th",{"data-slot":"table-head",className:le("h-12 px-4 text-left align-middle font-medium text-muted-foreground sticky top-0 bg-background [&:has([role=checkbox])]:pr-0",e),...t}),IA=({className:e,...t})=>g.jsx("td",{"data-slot":"table-cell",className:le("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}),jee=({className:e,...t})=>g.jsx("caption",{"data-slot":"table-caption",className:le("mt-4 text-sm text-muted-foreground",e),...t}),Bee=({data:e=[],columns:t=[],onRowClick:r,onDoubleClick:n,selected:o,theadClassName:i,theadProps:s,tbodyClassName:l,tbodyProps:c,trClassName:d,trProps:f,thClassName:p,thProps:h,tdClassName:b,tdProps:w,...y})=>g.jsxs(DA,{...y,className:le(y?.className),children:[g.jsx(MA,{...s,className:le(s?.className,i),children:g.jsx(Ev,{...f,className:le(f?.className,d),children:t.map((C,x)=>g.jsx(NA,{...h,className:le(h?.className,p),style:{width:C.width},children:lt.isFunction(C.header)?C.header?.():C.header},x))})}),g.jsx(OA,{...c,className:le(c?.className,l),children:e.map((C,x)=>g.jsx(Ev,{...f,"data-selected":o?.(C),className:le(f?.className,d),children:t.map((P,S)=>g.jsx(IA,{...w,onClick:D=>{w?.onClick?.(D),r?.(C)},onDoubleClick:()=>n?.(C),className:le(w?.className,b),children:P.cell?.(C,S)||C[P.key]},S))},x))})]}),Jd=[10,25,50],Vee=({containerClassName:e,containerProps:t,selectClassName:r,selectProps:n,sizes:o=Jd,...i})=>{const[s=Jd[0],l]=ut({onChange:i?.setPageSize,prop:i?.pageSize,defaultProp:Jd[0]}),{range:c,next:d,prev:f,isFirstPage:p,isLastPage:h,goTo:b}=Ag({...i,pageSize:s}),w=y=>{const{value:C}=y.target,x=Number(C);l(x),b(1)};return g.jsxs("div",{"data-slot":"table-pagination",...t,className:le("flex justify-center items-center gap-x-4 bg-background border border-[#D9D9D9] rounded-2xl py-2",e),children:[o&&g.jsx("select",{"data-slot":"table-pagination-size-trigger",...n,value:s,onChange:w,className:le("border border-input rounded-md w-fit min-w-[3rem] bg-background p-2 ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),children:o.map((y,C)=>g.jsx("option",{value:y,"data-slot":"table-pagination-size-option",children:y},C))}),g.jsxs("span",{"data-slot":"table-pagination-range",children:[c.start," - ",c.end," de ",i.totalItems]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(tr,{"data-slot":"table-pagination-prev",size:"icon",variant:"ghost",disabled:p,onClick:f,children:g.jsx(zv,{"data-slot":"table-pagination-prev-icon"})}),g.jsx(tr,{"data-slot":"table-pagination-next",size:"icon",variant:"ghost",disabled:h,onClick:d,children:g.jsx(ic,{"data-slot":"table-pagination-next-icon"})})]})]})},[dp,Kee]=cc(),Wee=({children:e,value:t,onChange:r,defaultValue:n,variant:o="default",...i})=>{const[s="",l]=ut({prop:t,onChange:r,defaultProp:n}),[c,d]=R.useState(null);return g.jsx(Kee,{value:{activeTab:s,setActiveTab:l,setTargetRef:d,targetRef:c,variant:o},children:g.jsx("div",{"data-slot":"tabs",...i,children:e})})},Hee=({children:e,className:t,indicatorClassName:r})=>{const{targetRef:n}=dp();return g.jsxs("div",{"data-slot":"tabs-list",className:le("relative mb-4",t),children:[g.jsx("div",{"data-slot":"tabs-content",className:"flex",children:e}),g.jsx(Gee,{targetRef:n,indicatorClassName:r})]})},Uee=({value:e,className:t,...r})=>{const{activeTab:n,setActiveTab:o,setTargetRef:i,variant:s}=dp(),l=n===e;return g.jsx("button",{"data-slot":"tabs-trigger",...r,type:"button",ref:c=>{l&&i(c)},onClick:()=>o(e),"data-tab":e,"data-selected":l,"aria-selected":l,className:le("px-2 py-2 cursor-pointer w-full min-w-[100px] text-center rounded-t font-semibold select-none",s==="background"?"hover:bg-transparent aria-selected:text-primary-foreground rounded":"hover:bg-accent hover:text-accent-foreground",t)})},zee=({value:e,...t})=>{const{activeTab:r}=dp();return r===e?g.jsx("div",{"data-slot":"tabs-content",...t}):null},Gee=({targetRef:e,indicatorClassName:t})=>{const r=R.useRef(null),n=r?.current,o=R.useRef(null),{variant:i}=dp(),s=()=>{if(!e||!n)return;const l=e.offsetLeft,c=e.offsetWidth;n.style.width=c+"px",n.style.left=l+"px"};return R.useEffect(()=>{if(e)return s(),o.current=new ResizeObserver(s),o.current.observe(e),()=>{o.current?.disconnect()}},[e]),g.jsx("div",{"data-slot":"tabs-indicator",ref:r,className:le("transition-all duration-300 absolute rounded bg-primary",i==="background"?"inset-0 -z-10 h-full top-0":"top-full h-[3px]",t)})},Yee=({className:e,...t})=>g.jsx("textarea",{...t,onChange:r=>t.onChange?.(r.target.value),"data-slot":"textarea",className:le("min-h-[60px] w-full rounded-md px-3 py-2 text-sm placeholder:text-muted-foreground","border border-input bg-background","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e)}),Xee={done:"var(--color-primary)",pending:"#cdcdcd",error:"var(--color-error)"},Zee=({items:e,classNameContainer:t,containerProps:r,...n})=>g.jsx(kA,{className:t,...r,children:e.map((o,i)=>g.jsx(LA,{icon:o.icon,color:o.color,status:o.status,...n,children:o.content},i))}),kA=e=>g.jsx("ul",{"data-slot":"timeline",...e,className:le("relative flex justify-center flex-col border-input",e.className)}),LA=({icon:e,status:t,color:r,classNameItemDot:n,classNameItemContainerDot:o,classNameItemContent:i,itemsProps:s,children:l,...c})=>g.jsxs("li",{"data-slot":"timeline-item",className:le("rounded-lg w-full px-2 gap-1 grid hover:bg-muted transition-colors ease-in grid-cols-[minmax(auto,20px)_1fr]",c.className),...c,children:[g.jsx(FA,{icon:e,status:t,color:r,classNameDot:n,classNameContainerDot:o}),g.jsx(qA,{className:i,...s,children:l})]}),FA=({icon:e,status:t="pending",color:r,classNameDot:n,classNameContainerDot:o})=>g.jsx("div",{"data-slot":"timeline-item-dot",className:le("relative pb-6 last:after:hidden after:absolute after:top-0 after:bottom-0 after:left-1/2 after:w-px after:-translate-x-1/2 after:bg-gray-200",o),children:g.jsx("div",{"data-slot":"timeline-item-dot-icon",className:le("relative z-10 flex text-white items-center justify-center rounded-full left-1/2 -translate-x-1/2",e?"aspect-square p-1.5 min-h-7 min-w-7 top-2":"size-2 top-4",n),style:{backgroundColor:r||Xee?.[t]},children:e})}),qA=e=>g.jsx("div",{"data-slot":"timeline-item-content",...e,className:le("grow px-2 pb-4 pt-2",e.className)}),Qee=eo(["flex justify-between items-center transition-all","text-primary-foreground","pointer-events-auto relative w-full rounded-xl p-3 shadow-lg"],{variants:{variant:{info:"bg-primary text-primary-foreground",error:"bg-error text-error-foreground",success:"bg-success text-success-foreground",loading:"bg-background text-foreground"}},defaultVariants:{variant:"info"}}),Jee=eo("",{variants:{variant:{info:"text-primary-foreground",error:"text-error-foreground",success:"text-success-foreground",loading:"text-foreground animate-spin"}},defaultVariants:{variant:"info"}}),jA=({title:e,description:t,type:r,iconClassName:n,...o})=>{const i=VA[r];return g.jsxs("div",{...o,"data-slot":"toast",className:le(Qee({variant:r}),o.className),children:[g.jsx("div",{className:le("p-1 text-primary-foreground pr-2",n),children:g.jsx(i,{size:22,className:le(Jee({variant:r})),"data-slot":"toast-icon"})}),g.jsxs("div",{className:"grid gap-1 grow","data-slot":"toast-content",children:[e&&g.jsx("h4",{...o.titleProps,className:le("text-sm font-semibold",o.titleClassName),"data-slot":"toast-title",children:e}),g.jsx("div",{...o.descriptionProps,className:le("text-sm font-normal opacity-90 p-0 overflow-hidden",o.descriptionClassName),"data-slot":"toast-description",children:t})]})]})},NR=e=>{let t;const r=new Set,n=(d,f)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(b=>b(t,h))}},o=()=>t,l={setState:n,getState:o,getInitialState:()=>c,subscribe:d=>(r.add(d),()=>r.delete(d))},c=t=e(n,o,l);return l},ete=(e=>e?NR(e):NR),tte=e=>e;function rte(e,t=tte){const r=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(r),r}const IR=e=>{const t=ete(e),r=n=>rte(t,n);return Object.assign(r,t),r},nte=(e=>e?IR(e):IR);let ote=0;const BA=3e3,kR=(e,t,r=BA)=>{setTimeout(()=>e(t),r)},Qg=nte((e,t)=>({toasts:[],addToast:r=>{const n=++ote,o={...r,id:n};return e(i=>({toasts:[...i.toasts,o]})),r.type!=="loading"&&kR(t().removeToast,n,r?.duration||BA),n},removeToast:r=>{e(n=>({toasts:n.toasts.filter(o=>o.id!==r)}))},updateToast:(r,n)=>{e(o=>({toasts:o.toasts.map(i=>i.id===r?{...i,...n}:i)})),n.type!=="loading"&&kR(t().removeToast,r)},promise:async(r,n)=>{const o=t().addToast({type:"loading",description:n.loading});try{const i=await r;return t().updateToast(o,{type:"success",description:typeof n.success=="function"?n.success(i):n.success}),i}catch(i){const s=typeof n.error=="function"?n.error(i):n.error;return t().updateToast(o,{type:"error",description:s}),Promise.reject(i)}}})),ite=({iconClassName:e="",...t})=>{const r=Qg(n=>n.toasts);return g.jsxs(g.Fragment,{children:[t.children,g.jsx(ng,{className:"empty:hidden fixed z-100 pr-2 pb-2 bottom-0 right-0 space-y-2 max-w-[300px] w-full",children:r.map(n=>{const o=R.createRef();return g.jsx(Kf,{classNames:"toast",timeout:500,nodeRef:o,children:g.jsx(jA,{...n,iconClassName:e,ref:o})},n.id)})})]})},Jg=Qg.getState(),ate=e=>Jg.addToast(e),Eh=(e,t)=>{const n=typeof e=="string"?{description:e,type:t}:{...e,type:t};return Jg.addToast(n)},ste=Object.assign(ate,{info:e=>Eh(e,"info"),success:e=>Eh(e,"success"),error:e=>Eh(e,"error"),promise:(e,t)=>Jg.promise(e,t)}),VA={info:Zj,success:Jj,error:t5,loading:sf};function lte(e){const t=ute(e),r=v.forwardRef((n,o)=>{const{children:i,...s}=n,l=v.Children.toArray(i),c=l.find(dte);if(c){const d=c.props.children,f=l.map(p=>p===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:p);return g.jsx(t,{...s,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,f):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function ute(e){const t=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const s=pte(o),l=fte(i,o.props);return o.type!==v.Fragment&&(l.ref=n?gt(n,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KA=Symbol("radix.slottable");function cte(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=KA,t}function dte(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KA}function fte(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function pte(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hte=mte.reduce((e,t)=>{const r=lte(`Primitive.${t}`),n=v.forwardRef((o,i)=>{const{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),[fp]=wn("Tooltip",[Do]),pp=Do(),WA="TooltipProvider",vte=700,Cv="tooltip.open",[gte,eb]=fp(WA),HA=e=>{const{__scopeTooltip:t,delayDuration:r=vte,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),l=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),g.jsx(gte,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:i})};HA.displayName=WA;var Qu="Tooltip",[bte,$c]=fp(Qu),UA=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=eb(Qu,e.__scopeTooltip),d=pp(t),[f,p]=v.useState(null),h=_t(),b=v.useRef(0),w=s??c.disableHoverableContent,y=l??c.delayDuration,C=v.useRef(!1),[x,P]=ut({prop:n,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cv))):c.onClose(),i?.(A)},caller:Qu}),S=v.useMemo(()=>x?C.current?"delayed-open":"instant-open":"closed",[x]),D=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,C.current=!1,P(!0)},[P]),_=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,P(!1)},[P]),T=v.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{C.current=!0,P(!0),b.current=0},y)},[y,P]);return v.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),g.jsx(bc,{...d,children:g.jsx(bte,{scope:t,contentId:h,open:x,stateAttribute:S,trigger:f,onTriggerChange:p,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayedRef.current?T():D()},[c.isOpenDelayedRef,T,D]),onTriggerLeave:v.useCallback(()=>{w?_():(window.clearTimeout(b.current),b.current=0)},[_,w]),onOpen:D,onClose:_,disableHoverableContent:w,children:r})})};UA.displayName=Qu;var Rv="TooltipTrigger",zA=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=$c(Rv,r),i=eb(Rv,r),s=pp(r),l=v.useRef(null),c=Ve(t,l,o.onTriggerChange),d=v.useRef(!1),f=v.useRef(!1),p=v.useCallback(()=>d.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),g.jsx(yc,{asChild:!0,...s,children:g.jsx(hte.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:Se(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Se(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})})});zA.displayName=Rv;var tb="TooltipPortal",[yte,xte]=fp(tb,{forceMount:void 0}),GA=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=$c(tb,t);return g.jsx(yte,{scope:t,forceMount:r,children:g.jsx(Tr,{present:r||i.open,children:g.jsx(ha,{asChild:!0,container:o,children:n})})})};GA.displayName=tb;var ca="TooltipContent",YA=v.forwardRef((e,t)=>{const r=xte(ca,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=$c(ca,e.__scopeTooltip);return g.jsx(Tr,{present:n||s.open,children:s.disableHoverableContent?g.jsx(XA,{side:o,...i,ref:t}):g.jsx(wte,{side:o,...i,ref:t})})}),wte=v.forwardRef((e,t)=>{const r=$c(ca,e.__scopeTooltip),n=eb(ca,e.__scopeTooltip),o=v.useRef(null),i=Ve(t,o),[s,l]=v.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,h=v.useCallback(()=>{l(null),p(!1)},[p]),b=v.useCallback((w,y)=>{const C=w.currentTarget,x={x:w.clientX,y:w.clientY},P=Pte(x,C.getBoundingClientRect()),S=Ste(x,P),D=_te(y.getBoundingClientRect()),_=$te([...S,...D]);l(_),p(!0)},[p]);return v.useEffect(()=>()=>h(),[h]),v.useEffect(()=>{if(c&&f){const w=C=>b(C,f),y=C=>b(C,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",y)}}},[c,f,b,h]),v.useEffect(()=>{if(s){const w=y=>{const C=y.target,x={x:y.clientX,y:y.clientY},P=c?.contains(C)||f?.contains(C),S=!Tte(x,s);P?h():S&&(h(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,s,d,h]),g.jsx(XA,{...e,ref:i})}),[Ete,Cte]=fp(Qu,{isInside:!1}),Rte=cte("TooltipContent"),XA=v.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,c=$c(ca,r),d=pp(r),{onClose:f}=c;return v.useEffect(()=>(document.addEventListener(Cv,f),()=>document.removeEventListener(Cv,f)),[f]),v.useEffect(()=>{if(c.trigger){const p=h=>{h.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),g.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:g.jsxs(np,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(Rte,{children:n}),g.jsx(Ete,{scope:r,isInside:!0,children:g.jsx(ZJ,{id:c.contentId,role:"tooltip",children:o||n})})]})})});YA.displayName=ca;var ZA="TooltipArrow",QA=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=pp(r);return Cte(ZA,r).isInside?null:g.jsx(op,{...o,...n,ref:t})});QA.displayName=ZA;function Pte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ste(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function _te(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Tte(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],c=t[s],d=l.x,f=l.y,p=c.x,h=c.y;f>n!=h>n&&r<(p-d)*(n-f)/(h-f)+d&&(o=!o)}return o}function $te(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ate(t)}function Ate(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Dte=HA,Mte=UA,Ote=zA,Nte=GA,Ite=YA,kte=QA;const JA=({delayDuration:e=0,...t})=>g.jsx(Dte,{"data-slot":"tooltip-provider",delayDuration:e,...t}),eD=({...e})=>g.jsx(JA,{children:g.jsx(Mte,{"data-slot":"tooltip",...e})}),tD=({...e})=>g.jsx(Ote,{"data-slot":"tooltip-trigger",...e}),rD=({className:e,sideOffset:t=0,children:r,arrowClassName:n,...o})=>g.jsx(Nte,{children:g.jsxs(Ite,{"data-slot":"tooltip-content",sideOffset:t,className:le("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...o,children:[r,g.jsx(kte,{className:le("bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",n)})]})}),Lte=({label:e,open:t,defaultOpen:r,onOpenChange:n,...o})=>{const{className:i,...s}=ac("Tooltip",o,{side:"top"});return g.jsxs(eD,{open:t,defaultOpen:r,onOpenChange:n,children:[g.jsx(tD,{asChild:!0,"data-slot":"tooltip-trigger",children:g.jsx(sc,{...s})}),g.jsx(rD,{"data-slot":"tooltip-content",side:s.side,sideOffset:s.offset,className:i,arrowClassName:s.arrowClassName,children:e})]})},Fte=R.createContext(null);R.createContext(null);R.createContext(null);R.createContext(null);R.createContext(null);R.createContext({});R.createContext(null);R.createContext(null);const Ot=typeof document<"u"?R.useLayoutEffect:()=>{};var Ch;const qte=(Ch=R.useInsertionEffect)!==null&&Ch!==void 0?Ch:Ot;function ur(e){const t=R.useRef(null);return qte(()=>{t.current=e},[e]),R.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function jte(e){let[t,r]=R.useState(e),n=R.useRef(null),o=ur(()=>{if(!n.current)return;let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});Ot(()=>{n.current&&o()});let i=ur(s=>{n.current=s(t),o()});return[t,i]}const Tf={prefix:String(Math.round(Math.random()*1e10)),current:0},nD=R.createContext(Tf),Bte=R.createContext(!1);let Vte=!!(typeof window<"u"&&window.document&&window.document.createElement),Rh=new WeakMap;function Kte(e=!1){let t=R.useContext(nD),r=R.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let s=Rh.get(i);s==null?Rh.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Rh.delete(i))}r.current=++t.current}return r.current}function Wte(e){let t=R.useContext(nD);t===Tf&&!Vte&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Kte(!!e),n=t===Tf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function Hte(e){let t=R.useId(),[r]=R.useState(Ac()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Tf.prefix}`;return e||`${n}-${t}`}const Ute=typeof R.useId=="function"?Hte:Wte;function zte(){return!1}function Gte(){return!0}function Yte(e){return()=>{}}function Ac(){return typeof R.useSyncExternalStore=="function"?R.useSyncExternalStore(Yte,zte,Gte):R.useContext(Bte)}let Xte=!!(typeof window<"u"&&window.document&&window.document.createElement),ia=new Map,Iu;typeof FinalizationRegistry<"u"&&(Iu=new FinalizationRegistry(e=>{ia.delete(e)}));function Qn(e){let[t,r]=R.useState(e),n=R.useRef(null),o=Ute(t),i=R.useRef(null);if(Iu&&Iu.register(i,o),Xte){const s=ia.get(o);s&&!s.includes(n)?s.push(n):ia.set(o,[n])}return Ot(()=>{let s=o;return()=>{Iu&&Iu.unregister(i),ia.delete(s)}},[o]),R.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function Zte(e,t){if(e===t)return e;let r=ia.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=ia.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Qte(e=[]){let t=Qn(),[r,n]=jte(t),o=R.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Ot(o,[t,o,...e]),r}function mp(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const rt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Br=e=>e&&"window"in e&&e.window===e?e:rt(e).defaultView||window;function Jte(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ere(e){return Jte(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let tre=!1;function hp(){return tre}function yt(e,t){if(!hp())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:ere(r)?r=r.host:r=r.parentNode}return!1}const er=(e=document)=>{var t;if(!hp())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Ze(e){return hp()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class rre{get currentNode(){return this._currentNode}set currentNode(t){if(!yt(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=n,l=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=o,this._currentSetFor.add(l),n=o=s.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return yt(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let s=this.lastChild();return s&&(this.currentNode=s),s}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s.shadowRoot;if(c){const d=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(s);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function nre(e,t,r,n){return hp()?new rre(e,t,r,n):e.createTreeWalker(t,r,n)}function Wt(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=mp(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Vv(i,s):o==="id"&&i&&s?t.id=Zte(i,s):t[o]=s!==void 0?s:i}}return t}function ore(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=LR(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():LR(e[i],null)})}}}function LR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const ire=new Set(["id"]),are=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sre=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),lre=new Set(["dir","lang","hidden","inert","translate"]),FR=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ure=/^(data-.*)$/;function Ea(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,l={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(ire.has(c)||r&&are.has(c)||n&&sre.has(c)||o&&lre.has(c)||i&&FR.has(c)||c.endsWith("Capture")&&FR.has(c.slice(0,-7))||s?.has(c)||ure.test(c))&&(l[c]=e[c]);return l}function Jn(e){if(cre())e.focus({preventScroll:!0});else{let t=dre(e);e.focus(),fre(t)}}let Vd=null;function cre(){if(Vd==null){Vd=!1;try{document.createElement("div").focus({get preventScroll(){return Vd=!0,!0}})}catch{}}return Vd}function dre(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function fre(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function vp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ro(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const vi=ro(function(){return rb(/^Mac/i)}),pre=ro(function(){return rb(/^iPhone/i)}),oD=ro(function(){return rb(/^iPad/i)||vi()&&navigator.maxTouchPoints>1}),nb=ro(function(){return pre()||oD()}),mre=ro(function(){return vi()||nb()}),hre=ro(function(){return vp(/AppleWebKit/i)&&!ob()}),ob=ro(function(){return vp(/Chrome/i)}),ib=ro(function(){return vp(/Android/i)}),vre=ro(function(){return vp(/Firefox/i)}),gre=R.createContext({isNative:!0,open:yre,useHref:e=>e});function ab(){return R.useContext(gre)}function gi(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:l,shiftKey:c}=t;vre()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(vi()?i=!0:s=!0);let d=hre()&&vi()&&!oD()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:l,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:l,shiftKey:c,bubbles:!0,cancelable:!0});gi.isOpening=r,Jn(e),e.dispatchEvent(d),gi.isOpening=!1}gi.isOpening=!1;function bre(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function yre(e,t){bre(e,r=>gi(r,t))}function xre(e){let t=ab();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}let Eo=new Map,Pv=new Set;function qR(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Eo.get(n.target);o||(o=new Set,Eo.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Eo.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Eo.delete(n.target)),Eo.size===0)){for(let i of Pv)i();Pv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qR():document.addEventListener("DOMContentLoaded",qR));function wre(){for(const[e]of Eo)"isConnected"in e&&!e.isConnected&&Eo.delete(e)}function iD(e){requestAnimationFrame(()=>{wre(),Eo.size===0?e():Pv.add(e)})}function gp(){let e=R.useRef(new Map),t=R.useCallback((o,i,s,l)=>{let c=l?.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:l}),o.addEventListener(i,c,l)},[]),r=R.useCallback((o,i,s,l)=>{var c;let d=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,d,l),e.current.delete(s)},[]),n=R.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return R.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Ere(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Qn(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function bp(e){const t=R.useRef(null),r=R.useRef(void 0),n=R.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return R.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function Cre(e,t){const r=R.useRef(!0),n=R.useRef(null);R.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),R.useEffect(()=>{let o=n.current;r.current?r.current=!1:(!o||t.some((i,s)=>!Object.is(i,o[s])))&&e(),n.current=t},t)}function jR(e,t){const r=R.useRef(!0),n=R.useRef(null);Ot(()=>(r.current=!0,()=>{r.current=!1}),[]),Ot(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function aD(e,t){Ot(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ju(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function ei(e,t){let r=e;for(Ju(r,t)&&(r=r.parentElement);r&&!Ju(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Rre(e,t){const r=[];for(;e&&e!==document.documentElement;)Ju(e,t)&&r.push(e),e=e.parentElement;return r}function Ji(e){return vi()?e.metaKey:e.ctrlKey}let Pre=0;const Ph=new Map;function sD(e){let[t,r]=R.useState();return Ot(()=>{if(!e)return;let n=Ph.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Pre++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},Ph.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Ph.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Kd(e,t,r,n){let o=ur(r),i=r==null;R.useEffect(()=>{if(i||!e.current)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,i,o])}function lD(e,t){let r=BR(e,t,"left"),n=BR(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:h,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:w,scrollMarginRight:y,scrollMarginBottom:C,scrollMarginLeft:x}=getComputedStyle(t),P=s+parseInt(d,10),S=l+parseInt(c,10),D=P+e.clientWidth,_=S+e.clientHeight,T=parseInt(f,10)||0,A=parseInt(h,10)||0,M=parseInt(p,10)||0,U=parseInt(b,10)||0,J=parseInt(w,10)||0,N=parseInt(C,10)||0,W=parseInt(y,10)||0,K=parseInt(x,10)||0,L=r-K,G=r+o+W,k=n-J,F=n+i+N,j=s+parseInt(d,10)+U,re=D-M,V=l+parseInt(c,10)+T,ie=_-A;if((L>j||G<re)&&(L<=s+U?s=L-parseInt(d,10)-U:G>D-M&&(s+=G-D+M)),(k>V||F<ie)&&(k<=S+T?l=k-parseInt(c,10)-T:F>_-A&&(l+=F-_+A)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=l;return}e.scrollTo({left:s,top:l})}function BR(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function wo(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!ob()){var r;let{left:c,top:d}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:p}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-p)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let c=Rre(e);for(let d of c)lD(d,e)}}}function Sv(e){return e.pointerType===""&&e.isTrusted?!0:ib()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Sre(e){return!ib()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function _re(e,t){let{collection:r,onLoadMore:n,scrollOffset:o=1}=e,i=R.useRef(null),s=ur(l=>{for(let c of l)c.isIntersecting&&n&&n()});Ot(()=>(t.current&&(i.current=new IntersectionObserver(s,{root:ei(t?.current),rootMargin:`0px ${100*o}% ${100*o}% ${100*o}%`}),i.current.observe(t.current)),()=>{i.current&&i.current.disconnect()}),[r,s,t,o])}function Tre(e){const t=R.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}const $re="react-aria-clear-focus",Are="react-aria-focus",Dre=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Mre(e){const t=Br(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:l}=i(e);o=s!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function Ore(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function sb(e,t){return Dre?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Mre(e)&&Ore(e,t)&&(!e.parentElement||sb(e.parentElement,e))}const lb=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Nre=lb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";lb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ire=lb.join(':not([hidden]):not([tabindex="-1"]),');function uD(e){return e.matches(Nre)&&sb(e)&&!cD(e)}function kre(e){return e.matches(Ire)&&sb(e)&&!cD(e)}function cD(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function ub(e,t,r){let[n,o]=R.useState(e||t),i=R.useRef(e!==void 0),s=e!==void 0;R.useEffect(()=>{let d=i.current;d!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let l=s?e:n,c=R.useCallback((d,...f)=>{let p=(h,...b)=>{r&&(Object.is(l,h)||r(h,...b)),s||(l=h)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((b,...w)=>{let y=d(s?l:b,...w);return p(y,...f),s?b:y})):(s||o(d),p(d,...f))},[s,l,r]);return[l,c]}const dD=Symbol("default");function fD({values:e,children:t}){for(let[r,n]of e)t=R.createElement(r.Provider,{value:n},t);return t}function Ca(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:s,values:l}=e;return R.useMemo(()=>{let c,d,f;return typeof t=="function"?c=t({...l,defaultClassName:o}):c=t,typeof r=="function"?d=r({...l,defaultStyle:s||{}}):d=r,typeof n=="function"?f=n({...l,defaultChildren:i}):n==null?f=i:f=n,{className:c??o,style:d||s?{...s,...d}:void 0,children:f??i,"data-rac":""}},[t,r,n,o,i,s,l])}function pD(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function Lre(e,t){let r=R.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||dD;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function mD(e,t,r){let n=Lre(r,e.slot)||{},{ref:o,...i}=n,s=bp(R.useMemo(()=>ore(t,o),[t,o])),l=Wt(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=c=>{let d=typeof i.style=="function"?i.style(c):i.style,f={...c.defaultStyle,...d},p=typeof e.style=="function"?e.style({...c,defaultStyle:f}):e.style;return{...f,...p}}:l.style={...i.style,...e.style}),[l,s]}const hD=7e3;let pn=null;function _v(e,t="assertive",r=hD){pn?pn.announce(e,t,r):(pn=new Fre,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?pn.announce(e,t,r):setTimeout(()=>{pn?.isAttached()&&pn?.announce(e,t,r)},100))}class Fre{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=hD){var o,i;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(s):(i=this.politeLog)===null||i===void 0||i.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const qre=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),jre=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bre(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return qre.has(r.script)}let t=e.split("-")[0];return jre.has(t)}const Vre=Symbol.for("react-aria.i18n.locale");function vD(){let e=typeof window<"u"&&window[Vre]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Bre(e)?"rtl":"ltr"}}let Tv=vD(),ku=new Set;function VR(){Tv=vD();for(let e of ku)e(Tv)}function Kre(){let e=Ac(),[t,r]=R.useState(Tv);return R.useEffect(()=>(ku.size===0&&window.addEventListener("languagechange",VR),ku.add(r),()=>{ku.delete(r),ku.size===0&&window.removeEventListener("languagechange",VR)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Wre=R.createContext(null);function Dc(){let e=Kre();return R.useContext(Wre)||e}const Hre=Symbol.for("react-aria.i18n.locale"),Ure=Symbol.for("react-aria.i18n.strings");let Gi;class yp{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=zre(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Hre];if(Gi===void 0){let o=window[Ure];if(!o)return null;Gi={};for(let i in o)Gi[i]=new yp({[r]:o[i]},r)}let n=Gi?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function zre(e,t,r="en-US"){if(t[e])return t[e];let n=Gre(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Gre(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const KR=new Map,WR=new Map;class Yre{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,s=KR.get(i);s||(s=new Intl.PluralRules(this.locale,{type:n}),KR.set(i,s));let l=s.select(t);return o=r[l]||r.other,typeof o=="function"?o():o}number(t){let r=WR.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),WR.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const HR=new WeakMap;function Xre(e){let t=HR.get(e);return t||(t=new yp(e),HR.set(e,t)),t}function Zre(e,t){return t&&yp.getGlobalDictionaryForPackage(t)||Xre(e)}function xp(e,t){let{locale:r}=Dc(),n=Zre(e,t);return R.useMemo(()=>new Yre(r,n),[r,n])}function Qre(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jre(e,t,r){Qre(e,t),t.set(e,r)}let Sh=new Map;function gD(e){let{locale:t}=Dc(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Sh.has(r))return Sh.get(r);let n=new Intl.Collator(t,e);return Sh.set(r,n),n}function cb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bD(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function yD(e){let t=R.useRef({isFocused:!1,observer:null});Ot(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=ur(n=>{e?.(n)});return R.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let l=cb(s);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let $f=!1;function UR(e){for(;e&&!uD(e);)e=e.parentElement;let t=Br(e),r=t.document.activeElement;if(!r||r===e)return;$f=!0;let n=!1,o=f=>{(f.target===r||n)&&f.stopImmediatePropagation()},i=f=>{(f.target===r||n)&&(f.stopImmediatePropagation(),!e&&!n&&(n=!0,Jn(r),c()))},s=f=>{(f.target===e||n)&&f.stopImmediatePropagation()},l=f=>{(f.target===e||n)&&(f.stopImmediatePropagation(),n||(n=!0,Jn(r),c()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",s,!0),$f=!1,n=!1},d=requestAnimationFrame(c);return c}let ea="default",$v="",ef=new WeakMap;function zR(e){if(nb()){if(ea==="default"){const t=rt(e);$v=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ea="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ef.set(e,e.style[t]),e.style[t]="none"}}function _h(e){if(nb()){if(ea!=="disabled")return;ea="restoring",setTimeout(()=>{iD(()=>{if(ea==="restoring"){const t=rt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=$v||""),$v="",ea="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ef.has(e)){let t=ef.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ef.delete(e)}}const xD=R.createContext({register:()=>{}});xD.displayName="PressResponderContext";function ene(e,t){return t.get?t.get.call(e):t.value}function wD(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function tne(e,t){var r=wD(e,t,"get");return ene(e,r)}function rne(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function GR(e,t,r){var n=wD(e,t,"set");return rne(e,n,r),r}function nne(e){let t=R.useContext(xD);if(t){let{register:r,...n}=t;e=Wt(n,e),r()}return aD(t,e.ref),e}var Wd=new WeakMap;class Hd{continuePropagation(){GR(this,Wd,!1)}get shouldStopPropagation(){return tne(this,Wd)}constructor(t,r,n,o){Jre(this,Wd,{writable:!0,value:void 0}),GR(this,Wd,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const l=s?.getBoundingClientRect();let c,d=0,f,p=null;n.clientX!=null&&n.clientY!=null&&(f=n.clientX,p=n.clientY),l&&(f!=null&&p!=null?(c=f-l.left,d=p-l.top):(c=l.width/2,d=l.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=d}}const YR=Symbol("linkClicked"),XR="react-aria-pressable-style",ZR="data-react-aria-pressable";function db(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:p,ref:h,...b}=nne(e),[w,y]=R.useState(!1),C=R.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:P}=gp(),S=ur((N,W)=>{let K=C.current;if(l||K.didFirePressStart)return!1;let L=!0;if(K.isTriggeringEvent=!0,n){let G=new Hd("pressstart",W,N);n(G),L=G.shouldStopPropagation}return r&&r(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,y(!0),L}),D=ur((N,W,K=!0)=>{let L=C.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let G=!0;if(o){let k=new Hd("pressend",W,N);o(k),G=k.shouldStopPropagation}if(r&&r(!1),y(!1),t&&K&&!l){let k=new Hd("press",W,N);t(k),G&&(G=k.shouldStopPropagation)}return L.isTriggeringEvent=!1,G}),_=ur((N,W)=>{let K=C.current;if(l)return!1;if(i){K.isTriggeringEvent=!0;let L=new Hd("pressup",W,N);return i(L),K.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),T=ur(N=>{let W=C.current;if(W.isPressed&&W.target){W.didFirePressStart&&W.pointerType!=null&&D(Xo(W.target,N),W.pointerType,!1),W.isPressed=!1,W.isOverTarget=!1,W.activePointerId=null,W.pointerType=null,P(),p||_h(W.target);for(let K of W.disposables)K();W.disposables=[]}}),A=ur(N=>{f&&T(N)}),M=ur(N=>{l||s?.(N)}),U=ur((N,W)=>{if(!l&&s){let K=new MouseEvent("click",N);bD(K,W),s(cb(K))}}),J=R.useMemo(()=>{let N=C.current,W={onKeyDown(L){if(Th(L.nativeEvent,L.currentTarget)&&yt(L.currentTarget,Ze(L.nativeEvent))){var G;e1(Ze(L.nativeEvent),L.key)&&L.preventDefault();let k=!0;if(!N.isPressed&&!L.repeat){N.target=L.currentTarget,N.isPressed=!0,N.pointerType="keyboard",k=S(L,"keyboard");let F=L.currentTarget,j=re=>{Th(re,F)&&!re.repeat&&yt(F,Ze(re))&&N.target&&_(Xo(N.target,re),"keyboard")};x(rt(L.currentTarget),"keyup",mp(j,K),!0)}k&&L.stopPropagation(),L.metaKey&&vi()&&((G=N.metaKeyEvents)===null||G===void 0||G.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(N.metaKeyEvents=new Map)},onClick(L){if(!(L&&!yt(L.currentTarget,Ze(L.nativeEvent)))&&L&&L.button===0&&!N.isTriggeringEvent&&!gi.isOpening){let G=!0;if(l&&L.preventDefault(),!N.ignoreEmulatedMouseEvents&&!N.isPressed&&(N.pointerType==="virtual"||Sv(L.nativeEvent))){let k=S(L,"virtual"),F=_(L,"virtual"),j=D(L,"virtual");M(L),G=k&&F&&j}else if(N.isPressed&&N.pointerType!=="keyboard"){let k=N.pointerType||L.nativeEvent.pointerType||"virtual",F=_(Xo(L.currentTarget,L),k),j=D(Xo(L.currentTarget,L),k,!0);G=F&&j,N.isOverTarget=!1,M(L),T(L)}N.ignoreEmulatedMouseEvents=!1,G&&L.stopPropagation()}}},K=L=>{var G;if(N.isPressed&&N.target&&Th(L,N.target)){var k;e1(Ze(L),L.key)&&L.preventDefault();let j=Ze(L),re=yt(N.target,Ze(L));D(Xo(N.target,L),"keyboard",re),re&&U(L,N.target),P(),L.key!=="Enter"&&fb(N.target)&&yt(N.target,j)&&!L[YR]&&(L[YR]=!0,gi(N.target,L,!1)),N.isPressed=!1,(k=N.metaKeyEvents)===null||k===void 0||k.delete(L.key)}else if(L.key==="Meta"&&(!((G=N.metaKeyEvents)===null||G===void 0)&&G.size)){var F;let j=N.metaKeyEvents;N.metaKeyEvents=void 0;for(let re of j.values())(F=N.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",re))}};if(typeof PointerEvent<"u"){W.onPointerDown=k=>{if(k.button!==0||!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(Sre(k.nativeEvent)){N.pointerType="virtual";return}N.pointerType=k.pointerType;let F=!0;if(!N.isPressed){N.isPressed=!0,N.isOverTarget=!0,N.activePointerId=k.pointerId,N.target=k.currentTarget,p||zR(N.target),F=S(k,N.pointerType);let j=Ze(k.nativeEvent);"releasePointerCapture"in j&&j.releasePointerCapture(k.pointerId),x(rt(k.currentTarget),"pointerup",L,!1),x(rt(k.currentTarget),"pointercancel",G,!1)}F&&k.stopPropagation()},W.onMouseDown=k=>{if(yt(k.currentTarget,Ze(k.nativeEvent))&&k.button===0){if(d){let F=UR(k.target);F&&N.disposables.push(F)}k.stopPropagation()}},W.onPointerUp=k=>{!yt(k.currentTarget,Ze(k.nativeEvent))||N.pointerType==="virtual"||k.button===0&&!N.isPressed&&_(k,N.pointerType||k.pointerType)},W.onPointerEnter=k=>{k.pointerId===N.activePointerId&&N.target&&!N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!0,S(Xo(N.target,k),N.pointerType))},W.onPointerLeave=k=>{k.pointerId===N.activePointerId&&N.target&&N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!1,D(Xo(N.target,k),N.pointerType,!1),A(k))};let L=k=>{if(k.pointerId===N.activePointerId&&N.isPressed&&k.button===0&&N.target){if(yt(N.target,Ze(k))&&N.pointerType!=null){let F=!1,j=setTimeout(()=>{N.isPressed&&N.target instanceof HTMLElement&&(F?T(k):(Jn(N.target),N.target.click()))},80);x(k.currentTarget,"click",()=>F=!0,!0),N.disposables.push(()=>clearTimeout(j))}else T(k);N.isOverTarget=!1}},G=k=>{T(k)};W.onDragStart=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&T(k)}}else if(process.env.NODE_ENV==="test"){W.onMouseDown=k=>{if(k.button!==0||!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(N.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(N.isPressed=!0,N.isOverTarget=!0,N.target=k.currentTarget,N.pointerType=Sv(k.nativeEvent)?"virtual":"mouse",rn.flushSync(()=>S(k,N.pointerType))&&k.stopPropagation(),d){let j=UR(k.target);j&&N.disposables.push(j)}x(rt(k.currentTarget),"mouseup",L,!1)},W.onMouseEnter=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;let F=!0;N.isPressed&&!N.ignoreEmulatedMouseEvents&&N.pointerType!=null&&(N.isOverTarget=!0,F=S(k,N.pointerType)),F&&k.stopPropagation()},W.onMouseLeave=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;let F=!0;N.isPressed&&!N.ignoreEmulatedMouseEvents&&N.pointerType!=null&&(N.isOverTarget=!1,F=D(k,N.pointerType,!1),A(k)),F&&k.stopPropagation()},W.onMouseUp=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&!N.ignoreEmulatedMouseEvents&&k.button===0&&!N.isPressed&&_(k,N.pointerType||"mouse")};let L=k=>{if(k.button===0){if(N.ignoreEmulatedMouseEvents){N.ignoreEmulatedMouseEvents=!1;return}N.target&&N.target.contains(k.target)&&N.pointerType!=null||T(k),N.isOverTarget=!1}};W.onTouchStart=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;let F=one(k.nativeEvent);if(!F)return;N.activePointerId=F.identifier,N.ignoreEmulatedMouseEvents=!0,N.isOverTarget=!0,N.isPressed=!0,N.target=k.currentTarget,N.pointerType="touch",p||zR(N.target),S(bo(N.target,k),N.pointerType)&&k.stopPropagation(),x(Br(k.currentTarget),"scroll",G,!0)},W.onTouchMove=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(!N.isPressed){k.stopPropagation();return}let F=QR(k.nativeEvent,N.activePointerId),j=!0;F&&JR(F,k.currentTarget)?!N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!0,j=S(bo(N.target,k),N.pointerType)):N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!1,j=D(bo(N.target,k),N.pointerType,!1),A(bo(N.target,k))),j&&k.stopPropagation()},W.onTouchEnd=k=>{if(!yt(k.currentTarget,Ze(k.nativeEvent)))return;if(!N.isPressed){k.stopPropagation();return}let F=QR(k.nativeEvent,N.activePointerId),j=!0;F&&JR(F,k.currentTarget)&&N.pointerType!=null?(_(bo(N.target,k),N.pointerType),j=D(bo(N.target,k),N.pointerType),U(k.nativeEvent,N.target)):N.isOverTarget&&N.pointerType!=null&&(j=D(bo(N.target,k),N.pointerType,!1)),j&&k.stopPropagation(),N.isPressed=!1,N.activePointerId=null,N.isOverTarget=!1,N.ignoreEmulatedMouseEvents=!0,N.target&&!p&&_h(N.target),P()},W.onTouchCancel=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&(k.stopPropagation(),N.isPressed&&T(bo(N.target,k)))};let G=k=>{N.isPressed&&yt(Ze(k),N.target)&&T({currentTarget:N.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};W.onDragStart=k=>{yt(k.currentTarget,Ze(k.nativeEvent))&&T(k)}}return W},[x,l,d,P,p,T,A,D,S,_,M,U]);return R.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const N=rt(h.current);if(!N||!N.head||N.getElementById(XR))return;const W=N.createElement("style");W.id=XR,W.textContent=`
127
127
  @layer {
128
128
  [${ZR}] {
129
129
  touch-action: pan-x pan-y pinch-zoom;
130
130
  }
131
131
  }
132
- `.trim(),N.head.prepend(W)},[h]),R.useEffect(()=>{let N=C.current;return()=>{var W;p||_h((W=N.target)!==null&&W!==void 0?W:void 0);for(let F of N.disposables)F();N.disposables=[]}},[p]),{isPressed:c||w,pressProps:Wt(b,J,{[ZR]:!0})}}function fb(e){return e.tagName==="A"&&e.hasAttribute("href")}function Th(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Br(o).HTMLInputElement&&!ED(o,r)||o instanceof Br(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&fb(o))&&r!=="Enter")}function one(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function QR(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function bo(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Xo(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function ine(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function ane(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function JR(e,t){let r=t.getBoundingClientRect(),n=ine(e);return ane(r,n)}function sne(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!fb(e)}function e1(e,t){return e instanceof HTMLInputElement?!ED(e,t):sne(e)}const lne=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ED(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":lne.has(e.type)}let Ao=null,ec=new Set,Bu=new Map,bi=!1,Av=!1;const une={Tab:!0,Escape:!0};function pb(e,t){for(let r of ec)r(e,t)}function cne(e){return!(e.metaKey||!vi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Af(e){bi=!0,cne(e)&&(Ao="keyboard",pb("keyboard",e))}function jr(e){Ao="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bi=!0,pb("pointer",e))}function CD(e){Sv(e)&&(bi=!0,Ao="virtual")}function RD(e){e.target===window||e.target===document||$f||!e.isTrusted||(!bi&&!Av&&(Ao="virtual",pb("virtual",e)),bi=!1,Av=!1)}function PD(){$f||(bi=!1,Av=!0)}function Df(e){if(typeof window>"u"||typeof document>"u"||Bu.get(Br(e)))return;const t=Br(e),r=rt(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bi=!0,n.apply(this,arguments)},r.addEventListener("keydown",Af,!0),r.addEventListener("keyup",Af,!0),r.addEventListener("click",CD,!0),t.addEventListener("focus",RD,!0),t.addEventListener("blur",PD,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",jr,!0),r.addEventListener("pointermove",jr,!0),r.addEventListener("pointerup",jr,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",jr,!0),r.addEventListener("mousemove",jr,!0),r.addEventListener("mouseup",jr,!0)),t.addEventListener("beforeunload",()=>{SD(e)},{once:!0}),Bu.set(t,{focus:n})}const SD=(e,t)=>{const r=Br(e),n=rt(e);t&&n.removeEventListener("DOMContentLoaded",t),Bu.has(r)&&(r.HTMLElement.prototype.focus=Bu.get(r).focus,n.removeEventListener("keydown",Af,!0),n.removeEventListener("keyup",Af,!0),n.removeEventListener("click",CD,!0),r.removeEventListener("focus",RD,!0),r.removeEventListener("blur",PD,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",jr,!0),n.removeEventListener("pointermove",jr,!0),n.removeEventListener("pointerup",jr,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",jr,!0),n.removeEventListener("mousemove",jr,!0),n.removeEventListener("mouseup",jr,!0)),Bu.delete(r))};function dne(e){const t=rt(e);let r;return t.readyState!=="loading"?Df(e):(r=()=>{Df(e)},t.addEventListener("DOMContentLoaded",r)),()=>SD(e,r)}typeof document<"u"&&dne();function mb(){return Ao!=="pointer"}function Mf(){return Ao}function fne(){Df();let[e,t]=R.useState(Ao);return R.useEffect(()=>{let r=()=>{t(Ao)};return ec.add(r),()=>{ec.delete(r)}},[]),Ac()?null:e}const pne=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mne(e,t,r){let n=rt(r?.target);const o=typeof window<"u"?Br(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Br(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Br(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?Br(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!pne.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!une[r.key])}function hne(e,t,r){Df(),R.useEffect(()=>{let n=(o,i)=>{mne(!!r?.isTextInput,o,i)&&e(mb())};return ec.add(n),()=>{ec.delete(n)}},t)}function qr(e){const t=rt(e),r=er(t);if(Mf()==="virtual"){let n=r;iD(()=>{er(t)===n&&e.isConnected&&Jn(e)})}else Jn(e)}function _D(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=R.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),s=yD(i),l=R.useCallback(c=>{const d=rt(c.target),f=d?er(d):er();c.target===c.currentTarget&&f===Ze(c.nativeEvent)&&(r&&r(c),o&&o(!0),s(c))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function t1(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function vne(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:t1(e.onKeyDown),onKeyUp:t1(e.onKeyUp)}}}let Dv=R.createContext(null);function gne(e){let t=R.useContext(Dv)||{};aD(t,e);let{ref:r,...n}=t;return n}function bne(e,t){let{focusProps:r}=_D(e),{keyboardProps:n}=vne(e),o=Wt(r,n),i=gne(t),s=e.isDisabled?{}:i,l=R.useRef(e.autoFocus);R.useEffect(()=>{l.current&&t.current&&qr(t.current),l.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:Wt({...o,tabIndex:c},s)}}function TD(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=R.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=gp(),c=R.useCallback(p=>{p.currentTarget.contains(p.target)&&i.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(p),o&&o(!1))},[r,o,i,l]),d=yD(c),f=R.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const h=rt(p.target),b=er(h);if(!i.current.isFocusWithin&&b===Ze(p.nativeEvent)){n&&n(p),o&&o(!0),i.current.isFocusWithin=!0,d(p);let w=p.currentTarget;s(h,"focus",y=>{if(i.current.isFocusWithin&&!yt(w,y.target)){let C=new h.defaultView.FocusEvent("blur",{relatedTarget:y.target});bD(C,w);let x=cb(C);c(x)}},{capture:!0})}},[n,o,d,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}let Of=!1,Ud=0;function Mv(){Of=!0,setTimeout(()=>{Of=!1},50)}function r1(e){e.pointerType==="touch"&&Mv()}function yne(){if(!(typeof document>"u"))return Ud===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",r1):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Mv)),Ud++,()=>{Ud--,!(Ud>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r1):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Mv))}}function $D(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=R.useState(!1),l=R.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;R.useEffect(yne,[]);let{addGlobalListener:c,removeAllGlobalListeners:d}=gp(),{hoverProps:f,triggerHoverEnd:p}=R.useMemo(()=>{let h=(y,C)=>{if(l.pointerType=C,o||C==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let x=y.currentTarget;l.target=x,c(rt(y.target),"pointerover",P=>{l.isHovered&&l.target&&!yt(l.target,P.target)&&b(P,P.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:x,pointerType:C}),r&&r(!0),s(!0)},b=(y,C)=>{let x=l.target;l.pointerType="",l.target=null,!(C==="touch"||!l.isHovered||!x)&&(l.isHovered=!1,d(),n&&n({type:"hoverend",target:x,pointerType:C}),r&&r(!1),s(!1))},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=y=>{Of&&y.pointerType==="mouse"||h(y,y.pointerType)},w.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&b(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=y=>{!l.ignoreEmulatedMouseEvents&&!Of&&h(y,"mouse"),l.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=y=>{!o&&y.currentTarget.contains(y.target)&&b(y,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,r,n,o,l,c,d]);return R.useEffect(()=>{o&&p({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:f,isHovered:i}}const xne=500;function wne(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=xne,accessibilityDescription:s}=e;const l=R.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=gp(),{pressProps:f}=db({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),l.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),rt(h.target).activeElement!==h.target&&Jn(h.target),o&&o({...h,type:"longpress"}),l.current=void 0},i),h.pointerType==="touch")){let b=w=>{w.preventDefault()};c(h.target,"contextmenu",b,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(h.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(h){l.current&&clearTimeout(l.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),p=sD(o&&!t?s:void 0);return{longPressProps:Wt(f,p)}}const n1=R.createContext(null),Ov="react-aria-focus-scope-restore";let vt=null;function Ene(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=R.useRef(null),s=R.useRef(null),l=R.useRef([]),{parentNode:c}=R.useContext(n1)||{},d=R.useMemo(()=>new Iv({scopeRef:l}),[l]);Ot(()=>{let h=c||Lt.root;if(Lt.getTreeNode(h.scopeRef)&&vt&&!Nf(vt,h.scopeRef)){let b=Lt.getTreeNode(vt);b&&(h=b)}h.addChild(d),Lt.addNode(d)},[d,c]),Ot(()=>{let h=Lt.getTreeNode(l);h&&(h.contain=!!r)},[r]),Ot(()=>{var h;let b=(h=i.current)===null||h===void 0?void 0:h.nextSibling,w=[],y=C=>C.stopPropagation();for(;b&&b!==s.current;)w.push(b),b.addEventListener(Ov,y),b=b.nextSibling;return l.current=w,()=>{for(let C of w)C.removeEventListener(Ov,y)}},[t]),_ne(l,n,r),Pne(l,r),Tne(l,n,r),Sne(l,o),R.useEffect(()=>{const h=er(rt(l.current?l.current[0]:void 0));let b=null;if(Hr(h,l.current)){for(let w of Lt.traverse())w.scopeRef&&Hr(h,w.scopeRef.current)&&(b=w);b===Lt.getTreeNode(l)&&(vt=b.scopeRef)}},[l]),Ot(()=>()=>{var h,b,w;let y=(w=(b=Lt.getTreeNode(l))===null||b===void 0||(h=b.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&w!==void 0?w:null;(l===vt||Nf(l,vt))&&(!y||Lt.getTreeNode(y))&&(vt=y),Lt.removeTreeNode(l)},[l]);let f=R.useMemo(()=>Cne(l),[]),p=R.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return R.createElement(n1.Provider,{value:p},R.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,R.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function Cne(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var l;let c=n||er(rt((l=r[0])!==null&&l!==void 0?l:void 0)),d=r[0].previousElementSibling,f=ni(r),p=Vr(f,{tabbable:o,accept:s},r);p.currentNode=Hr(c,r)?c:d;let h=p.nextNode();return!h&&i&&(p.currentNode=d,h=p.nextNode()),h&&zn(h,!0),h},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var l;let c=n||er(rt((l=r[0])!==null&&l!==void 0?l:void 0)),d=r[r.length-1].nextElementSibling,f=ni(r),p=Vr(f,{tabbable:o,accept:s},r);p.currentNode=Hr(c,r)?c:d;let h=p.previousNode();return!h&&i&&(p.currentNode=d,h=p.previousNode()),h&&zn(h,!0),h},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=ni(r),s=Vr(i,{tabbable:n,accept:o},r);s.currentNode=r[0].previousElementSibling;let l=s.nextNode();return l&&zn(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=ni(r),s=Vr(i,{tabbable:n,accept:o},r);s.currentNode=r[r.length-1].nextElementSibling;let l=s.previousNode();return l&&zn(l,!0),l}}}function ni(e){return e[0].parentElement}function Lu(e){let t=Lt.getTreeNode(vt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Rne(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...rt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var r,n;let i=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function Pne(e,t){let r=R.useRef(void 0),n=R.useRef(void 0);Ot(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=rt(o?o[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Lu(e)||d.isComposing)return;let f=er(i),p=e.current;if(!p||!Hr(f,p))return;let h=ni(p),b=Vr(h,{tabbable:!0},p);if(!f)return;b.currentNode=f;let w=d.shiftKey?b.previousNode():b.nextNode();w||(b.currentNode=d.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,w=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),w&&zn(w,!0)},l=d=>{(!vt||Nf(vt,e))&&Hr(Ze(d),e.current)?(vt=e,r.current=Ze(d)):Lu(e)&&!oi(Ze(d),e)?r.current?r.current.focus():vt&&vt.current&&Nv(vt.current):Lu(e)&&(r.current=Ze(d))},c=d=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let f=Mf(),p=(f==="virtual"||f===null)&&ib()&&ob(),h=er(i);if(!p&&h&&Lu(e)&&!oi(h,e)){vt=e;let w=Ze(d);if(w&&w.isConnected){var b;r.current=w,(b=r.current)===null||b===void 0||b.focus()}else vt.current&&Nv(vt.current)}})};return i.addEventListener("keydown",s,!1),i.addEventListener("focusin",l,!1),o?.forEach(d=>d.addEventListener("focusin",l,!1)),o?.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{i.removeEventListener("keydown",s,!1),i.removeEventListener("focusin",l,!1),o?.forEach(d=>d.removeEventListener("focusin",l,!1)),o?.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),Ot(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function AD(e){return oi(e)}function Hr(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function oi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Lt.traverse(Lt.getTreeNode(t)))if(r&&Hr(e,r.current))return!0;return!1}function Nf(e,t){var r;let n=(r=Lt.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function zn(e,t=!1){if(e!=null&&!t)try{qr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function DD(e,t=!0){let r=e[0].previousElementSibling,n=ni(e),o=Vr(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=ni(e),o=Vr(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Nv(e,t=!0){zn(DD(e,t))}function Sne(e,t){const r=R.useRef(t);R.useEffect(()=>{if(r.current){vt=e;const n=rt(e.current?e.current[0]:void 0);!Hr(er(n),vt.current)&&e.current&&Nv(e.current)}r.current=!1},[e])}function _ne(e,t,r){Ot(()=>{if(t||r)return;let n=e.current;const o=rt(n?n[0]:void 0);let i=s=>{let l=Ze(s);Hr(l,e.current)?vt=e:AD(l)||(vt=null)};return o.addEventListener("focusin",i,!1),n?.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,t,r])}function o1(e){let t=Lt.getTreeNode(vt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Tne(e,t,r){const n=R.useRef(typeof document<"u"?er(rt(e.current?e.current[0]:void 0)):null);Ot(()=>{let o=e.current;const i=rt(o?o[0]:void 0);if(!t||r)return;let s=()=>{(!vt||Nf(vt,e))&&Hr(er(i),e.current)&&(vt=e)};return i.addEventListener("focusin",s,!1),o?.forEach(l=>l.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),o?.forEach(l=>l.removeEventListener("focusin",s,!1))}},[e,r]),Ot(()=>{const o=rt(e.current?e.current[0]:void 0);if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Lu(e)||s.isComposing)return;let l=o.activeElement;if(!oi(l,e)||!o1(e))return;let c=Lt.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=Vr(o.body,{tabbable:!0});f.currentNode=l;let p=s.shiftKey?f.previousNode():f.nextNode();if((!d||!d.isConnected||d===o.body)&&(d=void 0,c.nodeToRestore=void 0),(!p||!oi(p,e))&&d){f.currentNode=d;do p=s.shiftKey?f.previousNode():f.nextNode();while(oi(p,e));s.preventDefault(),s.stopPropagation(),p?zn(p,!0):AD(d)?zn(d,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),Ot(()=>{const o=rt(e.current?e.current[0]:void 0);if(!t)return;let i=Lt.getTreeNode(e);if(i){var s;return i.nodeToRestore=(s=n.current)!==null&&s!==void 0?s:void 0,()=>{let l=Lt.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=er(o);if(t&&c&&(d&&oi(d,e)||d===o.body&&o1(e))){let f=Lt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let p=f.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){i1(p.nodeToRestore);return}p=p.parent}for(p=f.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&Lt.getTreeNode(p.scopeRef)){let h=DD(p.scopeRef.current,!0);i1(h);return}p=p.parent}}})}}}},[e,t])}function i1(e){e.dispatchEvent(new CustomEvent(Ov,{bubbles:!0,cancelable:!0}))&&zn(e)}function Vr(e,t,r){let n=t?.tabbable?kre:uD,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=rt(o),s=nre(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var c;return!(t==null||(c=t.from)===null||c===void 0)&&c.contains(l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Rne(l)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Hr(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class hb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Iv({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Hr(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new hb;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Iv({scopeRef:null}),this.fastMap.set(null,this.root)}}class Iv{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Lt=new hb;function If(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=R.useRef({isFocused:!1,isFocusVisible:t||mb()}),[i,s]=R.useState(!1),[l,c]=R.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=R.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=R.useCallback(b=>{o.current.isFocused=b,s(b),d()},[d]);hne(b=>{o.current.isFocusVisible=b,d()},[],{isTextInput:r});let{focusProps:p}=_D({isDisabled:n,onFocusChange:f}),{focusWithinProps:h}=TD({isDisabled:!n,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:l,focusProps:n?h:p}}function $ne(e,t){let r=t?.isDisabled,[n,o]=R.useState(!1);return Ot(()=>{if(e?.current&&!r){let i=()=>{if(e.current){let l=Vr(e.current,{tabbable:!0});o(!!l.nextNode())}};i();let s=new MutationObserver(i);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),r?!1:n}function MD(e){let t=Dne(rt(e));t!==e&&(t&&Ane(t,e),e&&OD(e,t))}function Ane(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function OD(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function Dne(e){let t=er(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}const a1={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function vb(e={}){let{style:t,isFocusable:r}=e,[n,o]=R.useState(!1),{focusWithinProps:i}=TD({isDisabled:!r,onFocusWithinChange:l=>o(l)}),s=R.useMemo(()=>n?t:t?{...a1,...t}:a1,[n]);return{visuallyHiddenProps:{...i,style:s}}}function kv(e){return mre()?e.altKey:e.ctrlKey}function tf(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const ND=new WeakMap;function Mne(e){let t=Qn();return ND.set(e,t),t}function One(e){return ND.get(e)}const Nne=1e3;function Ine(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=R.useRef({search:"",timeout:void 0}).current,i=s=>{let l=kne(s.key);if(!(!l||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let c=t.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=t.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Nne)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function kne(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Lne(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:l=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:p,allowsTabNavigation:h=!1,isVirtualized:b,scrollRef:w=n,linkBehavior:y="action"}=e,{direction:C}=Dc(),x=ab(),P=q=>{var B;if(q.altKey&&q.key==="Tab"&&q.preventDefault(),!(!((B=n.current)===null||B===void 0)&&B.contains(q.target)))return;const re=(Z,we)=>{if(Z!=null){if(t.isLink(Z)&&y==="selection"&&d&&!kv(q)){rn.flushSync(()=>{t.setFocusedKey(Z,we)});let De=tf(n,Z),Ue=t.getItemProps(Z);De&&x.open(De,q,Ue.href,Ue.routerOptions);return}if(t.setFocusedKey(Z,we),t.isLink(Z)&&y==="override")return;q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):d&&!kv(q)&&t.replaceSelection(Z)}};switch(q.key){case"ArrowDown":if(r.getKeyBelow){var K,ie,Y;let Z=t.focusedKey!=null?(K=r.getKeyBelow)===null||K===void 0?void 0:K.call(r,t.focusedKey):(ie=r.getFirstKey)===null||ie===void 0?void 0:ie.call(r);Z==null&&i&&(Z=(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey)),Z!=null&&(q.preventDefault(),re(Z))}break;case"ArrowUp":if(r.getKeyAbove){var X,ce,ue;let Z=t.focusedKey!=null?(X=r.getKeyAbove)===null||X===void 0?void 0:X.call(r,t.focusedKey):(ce=r.getLastKey)===null||ce===void 0?void 0:ce.call(r);Z==null&&i&&(Z=(ue=r.getLastKey)===null||ue===void 0?void 0:ue.call(r,t.focusedKey)),Z!=null&&(q.preventDefault(),re(Z))}break;case"ArrowLeft":if(r.getKeyLeftOf){var pe,te,ve;let Z=t.focusedKey!=null?(pe=r.getKeyLeftOf)===null||pe===void 0?void 0:pe.call(r,t.focusedKey):null;Z==null&&i&&(Z=C==="rtl"?(te=r.getFirstKey)===null||te===void 0?void 0:te.call(r,t.focusedKey):(ve=r.getLastKey)===null||ve===void 0?void 0:ve.call(r,t.focusedKey)),Z!=null&&(q.preventDefault(),re(Z,C==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var j,ae,oe;let Z=t.focusedKey!=null?(j=r.getKeyRightOf)===null||j===void 0?void 0:j.call(r,t.focusedKey):null;Z==null&&i&&(Z=C==="rtl"?(ae=r.getLastKey)===null||ae===void 0?void 0:ae.call(r,t.focusedKey):(oe=r.getFirstKey)===null||oe===void 0?void 0:oe.call(r,t.focusedKey)),Z!=null&&(q.preventDefault(),re(Z,C==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let Z=r.getFirstKey(t.focusedKey,Ji(q));t.setFocusedKey(Z),Z!=null&&(Ji(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):d&&t.replaceSelection(Z))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let Z=r.getLastKey(t.focusedKey,Ji(q));t.setFocusedKey(Z),Z!=null&&(Ji(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):d&&t.replaceSelection(Z))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Z=r.getKeyPageBelow(t.focusedKey);Z!=null&&(q.preventDefault(),re(Z))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Z=r.getKeyPageAbove(t.focusedKey);Z!=null&&(q.preventDefault(),re(Z))}break;case"a":Ji(q)&&t.selectionMode==="multiple"&&l!==!0&&(q.preventDefault(),t.selectAll());break;case"Escape":c==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(q.stopPropagation(),q.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(q.shiftKey)n.current.focus();else{let Z=Vr(n.current,{tabbable:!0}),we,De;do De=Z.lastChild(),De&&(we=De);while(De);we&&!we.contains(document.activeElement)&&Jn(we)}break}}},S=R.useRef({top:0,left:0});Kd(w,"scroll",b?void 0:()=>{var q,B,re,K;S.current={top:(re=(q=w.current)===null||q===void 0?void 0:q.scrollTop)!==null&&re!==void 0?re:0,left:(K=(B=w.current)===null||B===void 0?void 0:B.scrollLeft)!==null&&K!==void 0?K:0}});let D=q=>{if(t.isFocused){q.currentTarget.contains(q.target)||t.setFocused(!1);return}if(q.currentTarget.contains(q.target)){if(t.setFocused(!0),t.focusedKey==null){var B,re;let Y=ce=>{ce!=null&&(t.setFocusedKey(ce),d&&!t.isSelected(ce)&&t.replaceSelection(ce))},X=q.relatedTarget;var K,ie;X&&q.currentTarget.compareDocumentPosition(X)&Node.DOCUMENT_POSITION_FOLLOWING?Y((K=t.lastSelectedKey)!==null&&K!==void 0?K:(B=r.getLastKey)===null||B===void 0?void 0:B.call(r)):Y((ie=t.firstSelectedKey)!==null&&ie!==void 0?ie:(re=r.getFirstKey)===null||re===void 0?void 0:re.call(r))}else!b&&w.current&&(w.current.scrollTop=S.current.top,w.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&w.current){let Y=tf(n,t.focusedKey);Y instanceof HTMLElement&&(!Y.contains(document.activeElement)&&!p&&Jn(Y),Mf()==="keyboard"&&wo(Y,{containingElement:n.current}))}}},_=q=>{q.currentTarget.contains(q.relatedTarget)||t.setFocused(!1)},T=R.useRef(!1);Kd(n,Are,p?q=>{let{detail:B}=q;q.stopPropagation(),t.setFocused(!0),B?.focusStrategy==="first"&&(T.current=!0)}:void 0);let A=ur(()=>{var q,B;let re=(B=(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r))!==null&&B!==void 0?B:null;if(re==null){let K=er();MD(n.current),OD(K,null),t.collection.size>0&&(T.current=!1)}else t.setFocusedKey(re),T.current=!1});jR(()=>{T.current&&A()},[t.collection,A]);let M=ur(()=>{t.collection.size>0&&(T.current=!1)});jR(()=>{M()},[t.focusedKey,M]),Kd(n,$re,p?q=>{var B;q.stopPropagation(),t.setFocused(!1),!((B=q.detail)===null||B===void 0)&&B.clearFocusKey&&t.setFocusedKey(null)}:void 0);const U=R.useRef(o),J=R.useRef(!1);R.useEffect(()=>{if(U.current){var q,B;let ie=null;var re;o==="first"&&(ie=(re=(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r))!==null&&re!==void 0?re:null);var K;o==="last"&&(ie=(K=(B=r.getLastKey)===null||B===void 0?void 0:B.call(r))!==null&&K!==void 0?K:null);let Y=t.selectedKeys;if(Y.size){for(let X of Y)if(t.canSelectItem(X)){ie=X;break}}t.setFocused(!0),t.setFocusedKey(ie),ie==null&&!p&&n.current&&qr(n.current),t.collection.size>0&&(U.current=!1,J.current=!0)}});let N=R.useRef(t.focusedKey),W=R.useRef(null);R.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==N.current||J.current)&&w.current&&n.current){let q=Mf(),B=tf(n,t.focusedKey);if(!(B instanceof HTMLElement))return;(q==="keyboard"||J.current)&&(W.current&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame(()=>{w.current&&(lD(w.current,B),q!=="virtual"&&wo(B,{containingElement:n.current}))}))}!p&&t.isFocused&&t.focusedKey==null&&N.current!=null&&n.current&&qr(n.current),N.current=t.focusedKey,J.current=!1}),R.useEffect(()=>()=>{W.current&&cancelAnimationFrame(W.current)},[]),Kd(n,"react-aria-focus-scope-restore",q=>{q.preventDefault(),t.setFocused(!0)});let F={onKeyDown:P,onFocus:D,onBlur:_,onMouseDown(q){w.current===q.target&&q.preventDefault()}},{typeSelectProps:L}=Ine({keyboardDelegate:r,selectionManager:t});f||(F=Wt(L,F));let G;p||(G=t.focusedKey==null?0:-1);let k=Mne(t.collection);return{collectionProps:Wt(F,{tabIndex:G,"data-collection":k})}}function Fne(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:l,isDisabled:c,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:p="action"}=e,h=ab();t=Qn(t);let b=K=>{if(K.pointerType==="keyboard"&&kv(K))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(p==="selection"&&o.current){let ie=r.getItemProps(n);h.open(o.current,K,ie.href,ie.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(p==="override"||p==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):K&&K.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||K&&(Ji(K)||K.pointerType==="touch"||K.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};R.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(s?MD(o.current):l?l():document.activeElement!==o.current&&o.current&&qr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,s]),c=c||r.isDisabled(n);let w={};!s&&!c?w={tabIndex:n===r.focusedKey?0:-1,onFocus(K){K.target===o.current&&r.setFocusedKey(n)}}:c&&(w.onMouseDown=K=>{K.preventDefault()});let y=r.isLink(n)&&p==="override",C=d&&e.UNSTABLE_itemBehavior==="action",x=r.isLink(n)&&p!=="selection"&&p!=="none",P=!c&&r.canSelectItem(n)&&!y&&!C,S=(d||x)&&!c,D=S&&(r.selectionBehavior==="replace"?!P:!P||r.isEmpty),_=S&&P&&r.selectionBehavior==="replace",T=D||_,A=R.useRef(null),M=T&&P,U=R.useRef(!1),J=R.useRef(!1),N=r.getItemProps(n),W=K=>{if(d){var ie;d(),(ie=o.current)===null||ie===void 0||ie.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&o.current&&h.open(o.current,K,N.href,N.routerOptions)},F={ref:o};if(i?(F.onPressStart=K=>{A.current=K.pointerType,U.current=M,K.pointerType==="keyboard"&&(!T||l1())&&b(K)},f?(F.onPressUp=D?void 0:K=>{K.pointerType==="mouse"&&P&&b(K)},F.onPress=D?W:K=>{K.pointerType!=="keyboard"&&K.pointerType!=="mouse"&&P&&b(K)}):F.onPress=K=>{if(D||_&&K.pointerType!=="mouse"){if(K.pointerType==="keyboard"&&!s1())return;W(K)}else K.pointerType!=="keyboard"&&P&&b(K)}):(F.onPressStart=K=>{A.current=K.pointerType,U.current=M,J.current=D,P&&(K.pointerType==="mouse"&&!D||K.pointerType==="keyboard"&&(!S||l1()))&&b(K)},F.onPress=K=>{(K.pointerType==="touch"||K.pointerType==="pen"||K.pointerType==="virtual"||K.pointerType==="keyboard"&&T&&s1()||K.pointerType==="mouse"&&J.current)&&(T?W(K):P&&b(K))}),w["data-collection"]=One(r.collection),w["data-key"]=n,F.preventFocusOnPress=s,s&&(F=Wt(F,{onPressStart(K){K.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(K){K.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),N)for(let K of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[K]&&(F[K]=mp(F[K],N[K]));let{pressProps:L,isPressed:G}=db(F),k=_?K=>{A.current==="mouse"&&(K.stopPropagation(),K.preventDefault(),W(K))}:void 0,{longPressProps:q}=wne({isDisabled:!M,onLongPress(K){K.pointerType==="touch"&&(b(K),r.setSelectionBehavior("toggle"))}}),B=K=>{A.current==="touch"&&U.current&&K.preventDefault()},re=p!=="none"&&r.isLink(n)?K=>{gi.isOpening||K.preventDefault()}:void 0;return{itemProps:Wt(w,P||D||s&&!c?L:{},M?q:{},{onDoubleClick:k,onDragStartCapture:B,onClick:re,id:t},s?{onMouseDown:K=>K.preventDefault()}:void 0),isPressed:G,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:c,allowsSelection:P,hasAction:T}}function s1(){let e=window.event;return e?.key==="Enter"}function l1(){let e=window.event;return e?.key===" "||e?.code==="Space"}class u1{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?tf(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(i=t?.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class ID{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let s=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(s,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Ju(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Ju(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let s=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(s,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new u1(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new u1(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function qne(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,l=gD({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=R.useMemo(()=>i||new ID({collection:r,disabledKeys:n,disabledBehavior:c,ref:o,collator:l,layoutDelegate:s}),[i,s,r,n,o,l,c]),{collectionProps:f}=Lne({...e,ref:o,selectionManager:t,keyboardDelegate:d});return{listProps:f}}class jne{build(t,r){return this.context=r,c1(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(R.isValidElement(r)&&r.type===R.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];R.Children.forEach(r,s=>{s&&o.push(s)});let i=0;for(let s of o){let l=this.getFullNode({element:s,index:i},{});for(let c of l)i++,yield c}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var s;let l=(s=i.key)!==null&&s!==void 0?s:i.id;if(l==null)throw new Error("No key found for item");return l}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(R.isValidElement(t.element)&&t.element.type===R.Fragment){let C=[];R.Children.forEach(t.element.props.children,P=>{C.push(P)});var i;let x=(i=t.index)!==null&&i!==void 0?i:0;for(const P of C)yield*this.getFullNode({element:P,index:x++},r,n,o);return}let s=t.element;if(!s&&t.value&&r&&r.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=o?o.key:null,yield C;return}s=r.renderer(t.value)}if(R.isValidElement(s)){let C=s.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let D=s.type;throw new Error(`Unknown element <${D}> in collection.`)}let x=C.getCollectionNode(s.props,this.context);var l;let P=(l=t.index)!==null&&l!==void 0?l:0,S=x.next();for(;!S.done&&S.value;){let D=S.value;t.index=P;var c;let _=(c=D.key)!==null&&c!==void 0?c:null;_==null&&(_=D.element?null:this.getKey(s,t,r,n));let A=[...this.getFullNode({...D,key:_,index:P,wrapper:Bne(t.wrapper,D.wrapper)},this.getChildState(r,D),n?`${n}${s.key}`:s.key,o)];for(let M of A){var d,f;M.value=(f=(d=D.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,M.value&&this.cache.set(M.value,M);var p;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${$h(M.type)}> in <${$h((p=o?.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${$h(t.type)}> is supported.`);P++,yield M}S=x.next(A)}return}if(t.key==null||t.type==null)return;let h=this;var b,w;let y={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:c1(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${y.key}${x.key}`);let P=h.getFullNode({...x,index:C},h.getChildState(r,x),y.key,y);for(let S of P)C++,yield S}})};yield y}constructor(){this.cache=new WeakMap}}function c1(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function Bne(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function $h(e){return e[0].toUpperCase()+e.slice(1)}function Vne(e,t,r){let n=R.useMemo(()=>new jne,[]),{children:o,items:i,collection:s}=e;return R.useMemo(()=>{if(s)return s;let c=n.build({children:o,items:i},r);return t(c)},[n,o,i,s,r,t])}function Kne(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Wne(e){return Hne(e)}function Hne(e,t){for(let r of e)return r}function Ah(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...d1(e,t),t],o=[...d1(e,r),r],i=n.slice(0,o.length).findIndex((s,l)=>s!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function d1(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}class Ra{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,n){let o=this.clone();return r.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class kD extends Ra{filter(t,r,n){let[o,i]=FD(t,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=o,s.lastChildKey=i,s}}class Une extends Ra{}Une.type="header";class LD extends Ra{}LD.type="loader";class zne extends kD{filter(t,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,t),o}return null}}zne.type="item";class Gne extends kD{filter(t,r,n){let o=super.filter(t,r,n);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}Gne.type="section";class Yne{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r?.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,r){this.addNode(t);let n=r.getChildren(t.key);for(let o of n)this.addDescendants(o,r)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(t);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}filter(t){let r=new this.constructor,[n,o]=FD(this,r,this.firstKey,t);return r?.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function FD(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,s=e.getItem(r);for(;s!=null;){let d=s.filter(e,t,n);d!=null&&(d.nextKey=null,i&&(d.prevKey=i.key,i.nextKey=d.key),o==null&&(o=d),t.addNode(d),i=d),s=s.nextKey?e.getItem(s.nextKey):null}if(i&&i.type==="separator"){let d=i.prevKey;t.removeNode(i.key),d?(i=t.getItem(d),i.nextKey=null):i=null}var l,c;return[(l=o?.key)!==null&&l!==void 0?l:null,(c=i?.key)!==null&&c!==void 0?c:null]}class qD{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index-1,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class aa extends qD{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof aa?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,s,l,c;let d=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var p;f.parentKey=this.parentNode instanceof aa&&(p=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&p!==void 0?p:null;var h;f.prevKey=(h=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&h!==void 0?h:null;var b;f.nextKey=(b=d==null||(o=d.node)===null||o===void 0?void 0:o.key)!==null&&b!==void 0?b:null,f.hasChildNodes=!!this.firstChild;var w;f.firstChildKey=(w=(s=this.firstVisibleChild)===null||s===void 0||(i=s.node)===null||i===void 0?void 0:i.key)!==null&&w!==void 0?w:null;var y;if(f.lastChildKey=(y=(c=this.lastVisibleChild)===null||c===void 0||(l=c.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(f.colSpan!=null||f.colIndex!=null)&&d){var C,x;let P=((C=f.colIndex)!==null&&C!==void 0?C:f.index)+((x=f.colSpan)!==null&&x!==void 0?x:1);if(d.node!=null&&P!==d.node.colIndex){let S=d.getMutableNode();S.colIndex=P}}}}setProps(t,r,n,o,i){let s,{value:l,textValue:c,id:d,...f}=t;if(this.node==null?(s=new n(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),f.ref=r,s.props=f,s.rendered=o,s.render=i,s.value=l,s.textValue=c||(typeof f.children=="string"?f.children:"")||t["aria-label"]||"",d!=null&&d!==s.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(s.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,l=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Xne extends qD{get isConnected(){return!0}createElement(t){return new aa(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let n of t)this.addNode(n);r.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let l of this.dirtyNodes)l instanceof aa&&(!l.isConnected||l.isHidden)?this.removeNode(l):l.updateChildIndices();for(let l of this.dirtyNodes)l instanceof aa?(l.isConnected&&!l.isHidden&&(l.updateNode(),this.addNode(l)),l.node&&this.dirtyNodes.delete(l),l.isMutated=!1):this.dirtyNodes.delete(l);if(this.nextCollection){var t,r,n,o,i,s;this.nextCollection.commit((i=(r=this.firstVisibleChild)===null||r===void 0||(t=r.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(s=(o=this.lastVisibleChild)===null||o===void 0||(n=o.node)===null||n===void 0?void 0:n.key)!==null&&s!==void 0?s:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function gb(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,s=R.useMemo(()=>new WeakMap,i);return R.useMemo(()=>{if(r&&typeof t=="function"){let d=[];for(let f of r){let p=s.get(f);if(!p){p=t(f);var l,c;let h=(c=(l=p.props.id)!==null&&l!==void 0?l:f.key)!==null&&c!==void 0?c:f.id;if(h==null)throw new Error("Could not determine key for item");n&&(h=n+":"+h),p=R.cloneElement(p,o?{key:h,id:h,value:f}:{key:h}),s.set(f,p)}d.push(p)}return d}else if(typeof t!="function")return t},[t,r,s,n,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Lv=R.createContext(!1);function Zne(e){if(R.useContext(Lv))return R.createElement(R.Fragment,null,e.children);let r=R.createElement(Lv.Provider,{value:!0},e.children);return R.createElement("template",{"data-react-aria-hidden":!0},r)}function Qne(e){let t=(r,n)=>R.useContext(Lv)?null:e(r,n);return t.displayName=e.displayName||e.name,R.forwardRef(t)}var zd={exports:{}},Dh={};var f1;function Jne(){if(f1)return Dh;f1=1;var e=R;function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(p,h){var b=h(),w=n({inst:{value:b,getSnapshot:h}}),y=w[0].inst,C=w[1];return i(function(){y.value=b,y.getSnapshot=h,c(y)&&C({inst:y})},[p,b,h]),o(function(){return c(y)&&C({inst:y}),p(function(){c(y)&&C({inst:y})})},[p]),s(b),b}function c(p){var h=p.getSnapshot;p=p.value;try{var b=h();return!r(p,b)}catch{return!0}}function d(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Dh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Dh}var Mh={};var p1;function eoe(){return p1||(p1=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}function t(b,w){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=w();if(!p){var C=w();i(y,C)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}C=s({inst:{value:y,getSnapshot:w}});var x=C[0].inst,P=C[1];return c(function(){x.value=y,x.getSnapshot=w,r(x)&&P({inst:x})},[b,y,w]),l(function(){return r(x)&&P({inst:x}),b(function(){r(x)&&P({inst:x})})},[b]),d(y),y}function r(b){var w=b.getSnapshot;b=b.value;try{var y=w();return!i(b,y)}catch{return!0}}function n(b,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,i=typeof Object.is=="function"?Object.is:e,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Mh.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Mh}var m1;function toe(){return m1||(m1=1,process.env.NODE_ENV==="production"?zd.exports=Jne():zd.exports=eoe()),zd.exports}var roe=toe();const jD=R.createContext(!1),tc=R.createContext(null);function noe(e){if(R.useContext(tc))return e.content;let{collection:r,document:n}=soe(e.createCollection);return R.createElement(R.Fragment,null,R.createElement(Zne,null,R.createElement(tc.Provider,{value:n},e.content)),R.createElement(ooe,{render:e.children,collection:r}))}function ooe({collection:e,render:t}){return t(e)}function ioe(e,t,r){let n=Ac(),o=R.useRef(n);o.current=n;let i=R.useCallback(()=>o.current?r():t(),[t,r]);return roe.useSyncExternalStore(e,i)}const aoe=typeof R.useSyncExternalStore=="function"?R.useSyncExternalStore:ioe;function soe(e){let[t]=R.useState(()=>new Xne(e?.()||new Yne)),r=R.useCallback(s=>t.subscribe(s),[t]),n=R.useCallback(()=>{let s=t.getCollection();return t.isSSR&&t.resetAfterSSR(),s},[t]),o=R.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:aoe(r,n,o),document:t}}const Fv=R.createContext(null);function loe(e){var t;return t=class extends Ra{},t.type=e,t}function BD(e,t,r,n,o,i){typeof e=="string"&&(e=loe(e));let s=R.useCallback(c=>{c?.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=R.useContext(Fv);if(l){let c=l.ownerDocument.nodesByProps.get(t);return c||(c=l.ownerDocument.createElement(e.type),c.setProps(t,r,e,n,i),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,c)),o?R.createElement(Fv.Provider,{value:c},o):null}return R.createElement(e.type,{ref:s},o)}function VD(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=R.forwardRef((o,i)=>{let s=R.useContext(Dv);if(!R.useContext(jD)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return BD(e,o,i,"children"in o?o.children:null,null,c=>R.createElement(Dv.Provider,{value:s},R.createElement(r,{node:c})))});return n.displayName=t.name,n}function uoe(e,t,r=KD){let n=({node:i})=>t(i.props,i.props.ref,i),o=R.forwardRef((i,s)=>{let l=r(i);var c;return(c=BD(e,i,s,null,l,d=>R.createElement(n,{node:d})))!==null&&c!==void 0?c:R.createElement(R.Fragment,null)});return o.displayName=t.name,o}function KD(e){return gb({...e,addIdAndValue:!0})}const h1=R.createContext(null);function bb(e){let t=R.useContext(h1),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=KD({...e,idScope:n,dependencies:r});return R.useContext(tc)&&(o=R.createElement(coe,null,o)),t=R.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),R.createElement(h1.Provider,{value:t},o)}function coe({children:e}){let t=R.useContext(tc),r=R.useMemo(()=>R.createElement(tc.Provider,{value:null},R.createElement(jD.Provider,{value:!0},e)),[e]);return Ac()?R.createElement(Fv.Provider,{value:t},r):rn.createPortal(r,t)}const WD={CollectionRoot({collection:e,renderDropIndicator:t}){return v1(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return v1(e,t,r)}};function v1(e,t,r){return gb({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:R.createElement(R.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,doe(e,n,r))}})}function doe(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let s=t.nextKey!=null?e.getItem(t.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?e.getItem(s.nextKey):null;let l=[];if(s==null){let c=t;for(;c&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let d=r({type:"item",key:c.key,dropPosition:"after"});R.isValidElement(d)&&l.push(R.cloneElement(d,{key:`${c.key}-after`})),c=c.parentKey!=null?e.getItem(c.parentKey):null}}return l}const yb=R.createContext(WD);function foe(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:h,target:b,rel:w,type:y="button"}=e,C;r==="button"?C={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:C={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?b:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?w:void 0};let{pressProps:x,isPressed:P}=db({onPressStart:i,onPressEnd:s,onPressChange:c,onPress:o,onPressUp:l,onClick:p,isDisabled:n,preventFocusOnPress:d,ref:t}),{focusableProps:S}=bne(e,t);f&&(S.tabIndex=n?-1:S.tabIndex);let D=Wt(S,x,Ea(e,{labelable:!0}));return{isPressed:P,buttonProps:Wt(C,D,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const xb=new WeakMap;function qv(e,t){var r;let{id:n}=(r=xb.get(e))!==null&&r!==void 0?r:{};if(!n)throw new Error("Unknown list");return`${n}-${poe(t)}`}function poe(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var HD={};HD={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var UD={};UD={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var zD={};zD={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var GD={};GD={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var YD={};YD={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var XD={};XD={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var ZD={};ZD={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var QD={};QD={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var JD={};JD={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var eM={};eM={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var tM={};tM={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var rM={};rM={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var nM={};nM={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var oM={};oM={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var iM={};iM={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var aM={};aM={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var sM={};sM={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var lM={};lM={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var uM={};uM={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var cM={};cM={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var dM={};dM={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var fM={};fM={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var pM={};pM={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var mM={};mM={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var hM={};hM={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var vM={};vM={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var gM={};gM={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var bM={};bM={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var yM={};yM={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var xM={};xM={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var wM={};wM={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var EM={};EM={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var CM={};CM={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var RM={};RM={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var wp={};wp={"ar-AE":HD,"bg-BG":UD,"cs-CZ":zD,"da-DK":GD,"de-DE":YD,"el-GR":XD,"en-US":ZD,"es-ES":QD,"et-EE":JD,"fi-FI":eM,"fr-FR":tM,"he-IL":rM,"hr-HR":nM,"hu-HU":oM,"it-IT":iM,"ja-JP":aM,"ko-KR":sM,"lt-LT":lM,"lv-LV":uM,"nb-NO":cM,"nl-NL":dM,"pl-PL":fM,"pt-BR":pM,"pt-PT":mM,"ro-RO":hM,"ru-RU":vM,"sk-SK":gM,"sl-SI":bM,"sr-SP":yM,"sv-SE":xM,"tr-TR":wM,"uk-UA":EM,"zh-CN":CM,"zh-TW":RM};function moe(e){return e&&e.__esModule?e.default:e}function hoe(e,t){let{getRowText:r=l=>{var c,d,f,p;return(p=(c=(d=t.collection).getTextValue)===null||c===void 0?void 0:c.call(d,l))!==null&&p!==void 0?p:(f=t.collection.getItem(l))===null||f===void 0?void 0:f.textValue}}=e,n=xp(moe(wp),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=R.useRef(o),s=ur(()=>{var l;if(!t.selectionManager.isFocused||o===i.current){i.current=o;return}let c=g1(o,i.current),d=g1(i.current,o),f=t.selectionManager.selectionBehavior==="replace",p=[];if(t.selectionManager.selectedKeys.size===1&&f){let h=t.selectionManager.selectedKeys.keys().next().value;if(h!=null&&t.collection.getItem(h)){let b=r(h);b&&p.push(n.format("selectedItem",{item:b}))}}else if(c.size===1&&d.size===0){let h=c.keys().next().value;if(h!=null){let b=r(h);b&&p.push(n.format("selectedItem",{item:b}))}}else if(d.size===1&&c.size===0){let h=d.keys().next().value;if(h!=null&&t.collection.getItem(h)){let b=r(h);b&&p.push(n.format("deselectedItem",{item:b}))}}t.selectionManager.selectionMode==="multiple"&&(p.length===0||o==="all"||o.size>1||i.current==="all"||((l=i.current)===null||l===void 0?void 0:l.size)>1)&&p.push(o==="all"?n.format("selectedAll"):n.format("selectedCount",{count:o.size})),p.length>0&&_v(p.join(" ")),i.current=o});Cre(()=>{if(t.selectionManager.isFocused)s();else{let l=requestAnimationFrame(s);return()=>cancelAnimationFrame(l)}},[o,t.selectionManager.isFocused])}function g1(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function voe(e){return e&&e.__esModule?e.default:e}function goe(e){let t=xp(voe(wp),"@react-aria/grid"),r=fne(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,o=R.useMemo(()=>{let s=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior,c;return n&&(c=t.format("longPressToSelect")),l==="replace"&&s!=="none"&&e.hasItemActions?c:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return sD(o)}function boe(e){return e&&e.__esModule?e.default:e}function yoe(e,t){let{key:r}=e,n=t.selectionManager,o=Qn(),i=!t.selectionManager.canSelectItem(r),s=t.selectionManager.isSelected(r),l=()=>n.toggleSelection(r);const c=xp(boe(wp),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":c.format("select"),isSelected:s,isDisabled:i,onChange:l}}}function xoe(e,t,r){let{isVirtualized:n,keyboardDelegate:o,layoutDelegate:i,onAction:s,disallowTypeAhead:l,linkBehavior:c="action",keyboardNavigationBehavior:d="arrow",escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:p}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:h}=qne({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:r,keyboardDelegate:o,layoutDelegate:i,isVirtualized:n,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:c,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:f}),b=Qn(e.id);xb.set(t,{id:b,onAction:s,linkBehavior:c,keyboardNavigationBehavior:d,shouldSelectOnPressUp:p});let w=goe({selectionManager:t.selectionManager,hasItemActions:!!s}),y=$ne(r,{isDisabled:t.collection.size!==0}),C=Ea(e,{labelable:!0}),x=Wt(C,{role:"grid",id:b,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:y?-1:0}:h,w);return n&&(x["aria-rowcount"]=t.collection.size,x["aria-colcount"]=1),hoe({},t),{gridProps:x}}const b1={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function woe(e,t,r){var n,o;let{node:i,isVirtualized:s}=e,{direction:l}=Dc(),{onAction:c,linkBehavior:d,keyboardNavigationBehavior:f,shouldSelectOnPressUp:p}=xb.get(t),h=Qte(),b=R.useRef(null),w=()=>{var G;r.current!==null&&(b.current!=null&&i.key!==b.current||!(!((G=r.current)===null||G===void 0)&&G.contains(document.activeElement)))&&qr(r.current)},y={},C=e.hasChildItems,x=t.selectionManager.isLink(i.key);if(i!=null&&"expandedKeys"in t){var P,S;let G=(P=(S=t.collection).getChildren)===null||P===void 0?void 0:P.call(S,i.key);C=C||[...G??[]].length>1,c==null&&!x&&t.selectionManager.selectionMode==="none"&&C&&(c=()=>t.toggleKey(i.key));let k=C?t.expandedKeys.has(i.key):void 0,q=1;if(i.level>0&&i?.parentKey!=null){let B=t.collection.getItem(i.parentKey);if(B){var D,_;q=[...(D=(_=t.collection).getChildren)===null||D===void 0?void 0:D.call(_,B.key)].filter(K=>K.type==="item").length}}else q=[...t.collection].filter(B=>B.level===0&&B.type==="item").length;y={"aria-expanded":k,"aria-level":i.level+1,"aria-posinset":i?.index+1,"aria-setsize":q}}let{itemProps:T,...A}=Fne({selectionManager:t.selectionManager,key:i.key,ref:r,isVirtualized:s,shouldSelectOnPressUp:e.shouldSelectOnPressUp||p,onAction:c||!((n=i.props)===null||n===void 0)&&n.onAction?mp((o=i.props)===null||o===void 0?void 0:o.onAction,c?()=>c(i.key):void 0):void 0,focus:w,linkBehavior:d}),M=G=>{if(!G.currentTarget.contains(G.target)||!r.current||!document.activeElement)return;let k=Vr(r.current);if(k.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===r.current){if(G.key===b1.expand[l]&&t.selectionManager.focusedKey===i.key&&C&&!t.expandedKeys.has(i.key)){t.toggleKey(i.key),G.stopPropagation();return}else if(G.key===b1.collapse[l]&&t.selectionManager.focusedKey===i.key&&C&&t.expandedKeys.has(i.key)){t.toggleKey(i.key),G.stopPropagation();return}}switch(G.key){case"ArrowLeft":if(f==="arrow"){let B=l==="rtl"?k.nextNode():k.previousNode();if(B)G.preventDefault(),G.stopPropagation(),qr(B),wo(B,{containingElement:ei(r.current)});else if(G.preventDefault(),G.stopPropagation(),l==="rtl")qr(r.current),wo(r.current,{containingElement:ei(r.current)});else{k.currentNode=r.current;let re=y1(k);re&&(qr(re),wo(re,{containingElement:ei(r.current)}))}}break;case"ArrowRight":if(f==="arrow"){let B=l==="rtl"?k.previousNode():k.nextNode();if(B)G.preventDefault(),G.stopPropagation(),qr(B),wo(B,{containingElement:ei(r.current)});else if(G.preventDefault(),G.stopPropagation(),l==="ltr")qr(r.current),wo(r.current,{containingElement:ei(r.current)});else{k.currentNode=r.current;let re=y1(k);re&&(qr(re),wo(re,{containingElement:ei(r.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!G.altKey&&r.current.contains(G.target)){var q;G.stopPropagation(),G.preventDefault(),(q=r.current.parentElement)===null||q===void 0||q.dispatchEvent(new KeyboardEvent(G.nativeEvent.type,G.nativeEvent))}break}},U=G=>{if(b.current=i.key,G.target!==r.current){mb()||t.selectionManager.setFocusedKey(i.key);return}},J=G=>{if(!(!G.currentTarget.contains(G.target)||!r.current||!document.activeElement))switch(G.key){case"Tab":if(f==="tab"){let k=Vr(r.current,{tabbable:!0});k.currentNode=document.activeElement,(G.shiftKey?k.previousNode():k.nextNode())&&G.stopPropagation()}}},N=xre(i.props),W=A.hasAction?N:{},F=Wt(T,W,{role:"row",onKeyDownCapture:M,onKeyDown:J,onFocus:U,"aria-label":i.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i.key)?t.selectionManager.isSelected(i.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i.key)||void 0,"aria-labelledby":h&&i.textValue?`${qv(t,i.key)} ${h}`:void 0,id:qv(t,i.key)});if(s){let{collection:G}=t,k=[...G];F["aria-rowindex"]=k.find(q=>q.type==="section")?[...G.getKeys()].filter(q=>{var B;return((B=G.getItem(q))===null||B===void 0?void 0:B.type)!=="section"}).findIndex(q=>q===i.key)+1:i.index+1}let L={role:"gridcell","aria-colindex":1};return{rowProps:{...Wt(F,y)},gridCellProps:L,descriptionProps:{id:h},...A}}function y1(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function Eoe(e,t){let{key:r}=e;const{checkboxProps:n}=yoe(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${qv(t,r)}`}}}function Coe(e,t,r){let{gridProps:n}=xoe(e,t,r);return n.role="treegrid",{gridProps:n}}var PM={};PM={collapse:"طي",expand:"تمديد"};var SM={};SM={collapse:"Свиване",expand:"Разширяване"};var _M={};_M={collapse:"Sbalit",expand:"Roztáhnout"};var TM={};TM={collapse:"Skjul",expand:"Udvid"};var $M={};$M={collapse:"Reduzieren",expand:"Erweitern"};var AM={};AM={collapse:"Σύμπτυξη",expand:"Ανάπτυξη"};var DM={};DM={expand:"Expand",collapse:"Collapse"};var MM={};MM={collapse:"Contraer",expand:"Ampliar"};var OM={};OM={collapse:"Ahenda",expand:"Laienda"};var NM={};NM={collapse:"Pienennä",expand:"Laajenna"};var IM={};IM={collapse:"Réduire",expand:"Développer"};var kM={};kM={collapse:"כווץ",expand:"הרחב"};var LM={};LM={collapse:"Sažmi",expand:"Proširi"};var FM={};FM={collapse:"Összecsukás",expand:"Kibontás"};var qM={};qM={collapse:"Comprimi",expand:"Espandi"};var jM={};jM={collapse:"折りたたむ",expand:"展開"};var BM={};BM={collapse:"접기",expand:"펼치기"};var VM={};VM={collapse:"Sutraukti",expand:"Išskleisti"};var KM={};KM={collapse:"Sakļaut",expand:"Izvērst"};var WM={};WM={collapse:"Skjul",expand:"Utvid"};var HM={};HM={collapse:"Samenvouwen",expand:"Uitvouwen"};var UM={};UM={collapse:"Zwiń",expand:"Rozwiń"};var zM={};zM={collapse:"Recolher",expand:"Expandir"};var GM={};GM={collapse:"Colapsar",expand:"Expandir"};var YM={};YM={collapse:"Restrângeți",expand:"Extindeți"};var XM={};XM={collapse:"Свернуть",expand:"Развернуть"};var ZM={};ZM={collapse:"Zbaliť",expand:"Rozbaliť"};var QM={};QM={collapse:"Strni",expand:"Razširi"};var JM={};JM={collapse:" Skupi",expand:"Proširi"};var eO={};eO={collapse:"Dölj",expand:"Expandera"};var tO={};tO={collapse:"Daralt",expand:"Genişlet"};var rO={};rO={collapse:"Згорнути",expand:"Розгорнути"};var nO={};nO={collapse:"折叠",expand:"扩展"};var oO={};oO={collapse:"收合",expand:"展開"};var iO={};iO={"ar-AE":PM,"bg-BG":SM,"cs-CZ":_M,"da-DK":TM,"de-DE":$M,"el-GR":AM,"en-US":DM,"es-ES":MM,"et-EE":OM,"fi-FI":NM,"fr-FR":IM,"he-IL":kM,"hr-HR":LM,"hu-HU":FM,"it-IT":qM,"ja-JP":jM,"ko-KR":BM,"lt-LT":VM,"lv-LV":KM,"nb-NO":WM,"nl-NL":HM,"pl-PL":UM,"pt-BR":zM,"pt-PT":GM,"ro-RO":YM,"ru-RU":XM,"sk-SK":ZM,"sl-SI":QM,"sr-SP":JM,"sv-SE":eO,"tr-TR":tO,"uk-UA":rO,"zh-CN":nO,"zh-TW":oO};function Roe(e){return e&&e.__esModule?e.default:e}function aO(e,t,r){let{node:n}=e,o=woe(e,t,r),i=o.rowProps["aria-expanded"]===!0,s=xp(Roe(iO),"@react-aria/tree"),l=Ere({"aria-label":i?s.format("collapse"):s.format("expand"),"aria-labelledby":o.rowProps.id}),c={onPress:()=>{o.isDisabled||(t.toggleKey(n.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...l};return{...o,expandButtonProps:c}}const Poe=R.createContext(null),sO=R.createContext({}),Soe=Qne(function(t,r){[t,r]=mD(t,r,sO);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:s}=foe(t,r);i=_oe(i,o);let{focusProps:l,isFocused:c,isFocusVisible:d}=If(t),{hoverProps:f,isHovered:p}=$D({...t,isDisabled:t.isDisabled||o}),h={isHovered:p,isPressed:(n.isPressed||s)&&!o,isFocused:c,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:o??!1},b=Ca({...t,values:h,defaultClassName:"react-aria-Button"}),w=Qn(i.id),y=Qn(),C=i["aria-labelledby"];o&&(C?C=`${C} ${y}`:i["aria-label"]&&(C=`${w} ${y}`));let x=R.useRef(o);R.useEffect(()=>{let S={"aria-labelledby":C||w};(!x.current&&c&&o||x.current&&c&&!o)&&_v(S,"assertive"),x.current=o},[o,c,C,w]);let P=Ea(t,{global:!0});return delete P.onClick,R.createElement("button",{...Wt(P,b,i,l,f),type:i.type==="submit"&&o?"button":i.type,id:w,ref:r,"aria-labelledby":C,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":p||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":d||void 0},R.createElement(Poe.Provider,{value:{id:y}},b.children))});function _oe(e,t){if(t){for(const r in e)r.startsWith("on")&&!(r.includes("Focus")||r.includes("Blur"))&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}class Zr extends Set{constructor(t,r,n){super(t),t instanceof Zr?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function Toe(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function $oe(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=R.useRef(!1),[,l]=R.useState(!1),c=R.useRef(null),d=R.useRef(null),[,f]=R.useState(null),p=R.useMemo(()=>x1(e.selectedKeys),[e.selectedKeys]),h=R.useMemo(()=>x1(e.defaultSelectedKeys,new Zr),[e.defaultSelectedKeys]),[b,w]=ub(p,h,e.onSelectionChange),y=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=R.useState(o);o==="replace"&&C==="toggle"&&typeof b=="object"&&b.size===0&&x("replace");let P=R.useRef(o);return R.useEffect(()=>{o!==P.current&&(x(o),P.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(S){s.current=S,l(S)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(S,D="first"){c.current=S,d.current=D,f(S)},selectedKeys:b,setSelectedKeys(S){(n||!Toe(S,b))&&w(S)},disabledKeys:y,disabledBehavior:i}}function x1(e,t){return e?e==="all"?"all":new Zr(e):t}class wb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Ah(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Ah(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Zr([r],r,r);else{let s=this.state.selectedKeys;var o;let l=(o=s.anchorKey)!==null&&o!==void 0?o:r;n=new Zr(s,l,r);var i;for(let c of this.getKeyRange(l,(i=s.currentKey)!==null&&i!==void 0?i:r))n.delete(c);for(let c of this.getKeyRange(r,l))this.canSelectItem(c)&&n.add(c)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Ah(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let s=this.collection.getItem(i);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Zr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Zr([r],r,r):new Zr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Zr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let s=this.collection.getItem(n);s?.type==="item"&&t.push(n);var i;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&r((i=(o=Wne(Kne(s,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Zr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new wb(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}class Aoe{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let c of l.childNodes)n(c)};for(let l of t)n(l);let o=null,i=0;for(let[l,c]of this.keyMap)o?(o.nextKey=l,c.prevKey=o.key):(this.firstKey=l,c.prevKey=void 0),c.type==="item"&&(c.index=i++),o=c,o.nextKey=void 0;var s;this.lastKey=(s=o?.key)!==null&&s!==void 0?s:null}}function Doe(e){let{onExpandedChange:t}=e,[r,n]=ub(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=$oe(e),i=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=Vne(e,R.useCallback(c=>new Aoe(c,{expandedKeys:r}),[r]),null);return R.useEffect(()=>{o.focusedKey!=null&&!s.getItem(o.focusedKey)&&o.setFocusedKey(null)},[s,o.focusedKey]),{collection:s,expandedKeys:r,disabledKeys:i,toggleKey:c=>{n(Moe(r,c))},setExpandedKeys:n,selectionManager:new wb(s,o)}}function Moe(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}const Ep=R.createContext({}),lO=R.createContext(null),Ooe=R.forwardRef(function(t,r){let{render:n}=R.useContext(lO);return R.createElement(R.Fragment,null,n(t,r))});function Noe(e,t){var r;let n=e?.renderDropIndicator,o=e==null||(r=e.isVirtualDragging)===null||r===void 0?void 0:r.call(e),i=R.useCallback(s=>{if(o||t?.isDropTarget(s))return n?n(s):R.createElement(Ooe,{target:s})},[t?.target,o,n]);return e?.useDropIndicator?i:void 0}function Ioe(e,t,r){var n,o;let i=e.focusedKey,s=null;if(!(t==null||(n=t.isVirtualDragging)===null||n===void 0)&&n.call(t)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"&&(s=r.target.key,r.target.dropPosition==="after")){let p=r.collection.getKeyAfter(s),h=null;if(p!=null){var l,c;let b=(c=(l=r.collection.getItem(s))===null||l===void 0?void 0:l.level)!==null&&c!==void 0?c:0;for(;p;){let w=r.collection.getItem(p);if(!w)break;if(w.type!=="item"){p=r.collection.getKeyAfter(p);continue}var d;if(((d=w.level)!==null&&d!==void 0?d:0)<=b)break;h=p,p=r.collection.getKeyAfter(p)}}var f;s=(f=p??h)!==null&&f!==void 0?f:s}return R.useMemo(()=>new Set([i,s].filter(p=>p!=null)),[i,s])}const koe=R.createContext(null);function Loe(e){let t=R.useRef({});return R.createElement(koe.Provider,{value:t},e.children)}const Foe=R.createContext({isSelected:!1}),w1=10,E1=5;class qoe{setup(t,r,n){this.delegate=t,this.state=r,this.direction=n}getDropTargetFromPoint(t,r,n){let o=this.delegate.getDropTargetFromPoint(t,r,n);return!o||o.type==="root"?o:this.resolveDropTarget(o,t,r,n)}resolveDropTarget(t,r,n,o){let i=this.pointerTracking,s=n-i.lastY,l=r-i.lastX,c=i.yDirection,d=i.xDirection;if(Math.abs(s)>E1&&(c=s>0?"down":"up",i.yDirection=c,i.lastY=n),Math.abs(l)>w1&&(d=l>0?"right":"left",i.xDirection=d,i.lastX=r),t.dropPosition==="before"){let h=this.state.collection.getKeyBefore(t.key);if(h!=null){let b={type:"item",key:h,dropPosition:"after"};o(b)&&(t=b)}}let f=this.getPotentialTargets(t,o);if(f.length===0)return{type:"root"};let p;return f.length>1?p=this.selectTarget(f,t,r,n,c,d):(p=f[0],i.boundaryContext=null),p}getPotentialTargets(t,r){if(t.dropPosition==="on")return[t];let n=t,o=this.state.collection,i=o.getItem(n.key);for(;i&&i?.type!=="item"&&i.nextKey!=null;)n.key=i.nextKey,i=o.getItem(i.nextKey);let s=[n];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&o.getChildren&&n.dropPosition==="after"){let d=null;for(let f of o.getChildren(i.key))if(f.type==="item"){d=f;break}if(d){const f={type:"item",key:d.key,dropPosition:"before"};return r(f)?[f]:[]}}if(i?.nextKey!=null)return[t];let l=i?.parentKey,c=[];for(;l;){let d=o.getItem(l),f=d?.nextKey?o.getItem(d.nextKey):null;if(!f||f.parentKey!==l){let h={type:"item",key:l,dropPosition:"after"};if(r(h)&&c.push(h),f)break}l=d?.parentKey}if(c.length>0&&s.push(...c),s.length===1){let d=o.getKeyAfter(n.key),f=d?o.getItem(d):null;if(d!=null&&f&&i&&f.level!=null&&i.level!=null&&f.level>i.level){let p={type:"item",key:d,dropPosition:"before"};if(r(p))return[p]}}return s.filter(r)}selectTarget(t,r,n,o,i,s){if(t.length<2)return t[0];let l=this.pointerTracking,c=this.state.collection.getItem(r.key),d=c?.parentKey;if(!d)return t[0];if(!l.boundaryContext||l.boundaryContext.parentKey!==d){let w=l.yDirection==="up"?t.length-1:0;l.boundaryContext={parentKey:d,preferredTargetIndex:w,lastSwitchY:o,lastSwitchX:n}}let f=l.boundaryContext,p=Math.abs(n-f.lastSwitchX);if(Math.abs(o-f.lastSwitchY)>E1&&i){let w=f.preferredTargetIndex||0;i==="down"&&w===0?f.preferredTargetIndex=t.length-1:i==="up"&&w===t.length-1&&(f.preferredTargetIndex=0),l.xDirection=null}if(p>w1&&s){let w=f.preferredTargetIndex||0;s==="left"?this.direction==="ltr"?w<t.length-1&&(f.preferredTargetIndex=w+1,f.lastSwitchX=n):w>0&&(f.preferredTargetIndex=w-1,f.lastSwitchX=n):s==="right"&&(this.direction==="ltr"?w>0&&(f.preferredTargetIndex=w-1,f.lastSwitchX=n):w<t.length-1&&(f.preferredTargetIndex=w+1,f.lastSwitchX=n)),l.yDirection=null}let b=Math.max(0,Math.min(f.preferredTargetIndex||0,t.length-1));return t[b]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class joe{*[Symbol.iterator](){yield*this.flattenedRows}get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}getItem(t){return this.keyMap.get(t)||null}at(t){return this.flattenedRows[t]}getFirstKey(){var t;return(t=this.flattenedRows[0])===null||t===void 0?void 0:t.key}getLastKey(){var t;return(t=this.flattenedRows[this.flattenedRows.length-1])===null||t===void 0?void 0:t.key}getKeyAfter(t){var r;let n=this.flattenedRows.findIndex(o=>o.key===t);return(r=this.flattenedRows[n+1])===null||r===void 0?void 0:r.key}getKeyBefore(t){var r;let n=this.flattenedRows.findIndex(o=>o.key===t);return(r=this.flattenedRows[n-1])===null||r===void 0?void 0:r.key}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getTextValue(t){let r=this.getItem(t);return r?r.textValue:""}constructor(t){this.keyMap=new Map,this.itemCount=0;let{collection:r,expandedKeys:n}=t,{flattenedRows:o,keyMap:i,itemCount:s}=Uoe(r,{expandedKeys:n});this.flattenedRows=o,this.keyMap=i,this.itemCount=s}}const Boe=R.createContext(null),Eb=R.createContext(null),Voe=R.forwardRef(function(t,r){return[t,r]=mD(t,r,Boe),R.createElement(noe,{content:R.createElement(bb,t)},n=>R.createElement(Koe,{props:t,collection:n,treeRef:r}))}),C1={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Koe({props:e,collection:t,treeRef:r}){const{dragAndDropHooks:n}=e;let{direction:o}=Dc(),i=gD({usage:"search",sensitivity:"base"}),s=!!n?.useDraggableCollectionState,l=!!n?.useDroppableCollectionState,c=R.useRef(s),d=R.useRef(l);R.useEffect(()=>{c.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),d.current!==l&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[s,l]);let{selectionMode:f="none",expandedKeys:p,defaultExpandedKeys:h,onExpandedChange:b,disabledBehavior:w="all"}=e,{CollectionRoot:y,isVirtualized:C,layoutDelegate:x,dropTargetDelegate:P}=R.useContext(yb),[S,D]=ub(p?R1(p):void 0,h?R1(h):new Set,b),_=R.useMemo(()=>new joe({collection:t,expandedKeys:S}),[t,S]),T=Doe({...e,selectionMode:f,expandedKeys:S,onExpandedChange:D,collection:_,children:void 0,disabledBehavior:w}),{gridProps:A}=Coe({...e,isVirtualized:C,layoutDelegate:x},T,r),M,U,J,N=!1,W=null,F=R.useRef(null);if(s&&n){M=n.useDraggableCollectionState({collection:T.collection,selectionManager:T.selectionManager,preview:n.renderDragPreview?F:void 0}),n.useDraggableCollection({},M,r);let X=n.DragPreview;W=n.renderDragPreview?R.createElement(X,{ref:F},n.renderDragPreview):null}let[L]=R.useState(()=>new qoe);if(l&&n){U=n.useDroppableCollectionState({collection:T.collection,selectionManager:T.selectionManager});let X=n.dropTargetDelegate||P||new n.ListDropTargetDelegate(T.collection,r,{direction:o});L.setup(X,T,o);let ce=new ID({collection:T.collection,collator:i,ref:r,disabledKeys:T.selectionManager.disabledKeys,disabledBehavior:T.selectionManager.disabledBehavior,direction:o,layoutDelegate:x});J=n.useDroppableCollection({keyboardDelegate:ce,dropTargetDelegate:L,onDropActivate:pe=>{if(pe.target.type==="item"){var te;let ve=pe.target.key,j=T.collection.getItem(ve),ae=S!=="all"&&S.has(ve);j&&j.hasChildNodes&&(!ae||!(n==null||(te=n.isVirtualDragging)===null||te===void 0)&&te.call(n))&&T.toggleKey(ve)}},onKeyDown:pe=>{let te=U?.target;if(te&&te.type==="item"&&te.dropPosition==="on"){let ve=T.collection.getItem(te.key);(pe.key===C1.expand[o]&&ve?.hasChildNodes&&!T.expandedKeys.has(te.key)||pe.key===C1.collapse[o]&&ve?.hasChildNodes&&T.expandedKeys.has(te.key))&&T.toggleKey(te.key)}}},U,r);let ue=U.getDropOperation;U.getDropOperation=pe=>{let{target:te,isInternal:ve}=pe;var j;let ae=(j=M?.draggingKeys)!==null&&j!==void 0?j:new Set;if(ve&&te.type==="item"&&ae.size>0){if(ae.has(te.key)&&te.dropPosition==="on")return"cancel";let oe=te.key;for(;oe!=null;){let Z=T.collection.getItem(oe),we=Z?.parentKey;if(we!=null&&ae.has(we))return"cancel";oe=we??null}}return ue(pe)},N=U.isDropTarget({type:"root"})}let G=!!(s&&!M?.isDisabled),{focusProps:k,isFocused:q,isFocusVisible:B}=If(),re={isEmpty:T.collection.size===0,isFocused:q,isFocusVisible:B,isDropTarget:N,selectionMode:T.selectionManager.selectionMode,allowsDragging:!!G,state:T},K=Ca({className:e.className,style:e.style,defaultClassName:"react-aria-Tree",values:re}),ie=null;if(T.collection.size===0&&e.renderEmptyState){let{isEmpty:X,...ce}=re,ue=e.renderEmptyState({...ce}),pe={"aria-level":1};ie=R.createElement("div",{role:"row",style:{display:"contents"},...pe},R.createElement("div",{role:"gridcell",style:{display:"contents"}},ue))}let Y=Ea(e,{global:!0});return R.createElement(R.Fragment,null,R.createElement(Ene,null,R.createElement("div",{...Wt(Y,K,A,k,J?.collectionProps),ref:r,slot:e.slot||void 0,"data-empty":T.collection.size===0||void 0,"data-focused":q||void 0,"data-drop-target":N||void 0,"data-focus-visible":B||void 0,"data-selection-mode":T.selectionManager.selectionMode==="none"?void 0:T.selectionManager.selectionMode,"data-allows-dragging":!!G||void 0},R.createElement(fD,{values:[[Eb,T],[Ep,{dragAndDropHooks:n,dragState:M,dropState:U}],[lO,{render:zoe}]]},l&&R.createElement(Xoe,null),R.createElement(Loe,null,R.createElement(y,{collection:T.collection,persistedKeys:Ioe(T.selectionManager,n,U),scrollRef:r,renderDropIndicator:Noe(n,U)}))),ie)),W)}class uO extends Ra{}uO.type="content";const Woe=VD(uO,function(t){let r=R.useContext(cO),n=Ca({children:t.children,values:r});return R.createElement(yb.Provider,{value:WD},n.children)}),cO=R.createContext(null);class dO extends Ra{}dO.type="item";const Hoe=uoe(dO,(e,t,r)=>{var n;let o=R.useContext(Eb);t=bp(t);let{dragAndDropHooks:i,dragState:s,dropState:l}=R.useContext(Ep),{rowProps:c,gridCellProps:d,expandButtonProps:f,descriptionProps:p,...h}=aO({node:r,shouldSelectOnPressUp:!!s},o,t),b=c["aria-expanded"]===!0,w=e.hasChildItems||((n=[...o.collection.getChildren(r.key)])===null||n===void 0?void 0:n.length)>1,y=c["aria-level"]||1,{hoverProps:C,isHovered:x}=$D({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{isFocusVisible:P,focusProps:S}=If(),{isFocusVisible:D,focusProps:_}=If({within:!0}),{checkboxProps:T}=Eoe({key:r.key},o),A=null;s&&i&&(A=i.useDraggableItem({key:r.key,hasDragButton:!0},s));let M=null,U=R.useRef(null),J=R.useRef(null),N=R.useRef(null),{visuallyHiddenProps:W}=vb();l&&i&&(M=i.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"},activateButtonRef:N},l,J));let F=s&&s.isDragging(r.key),L=M?.isDropTarget,G=o.selectionManager.selectionMode,k=o.selectionManager.selectionBehavior,q=R.useMemo(()=>({...h,isHovered:x,isFocusVisible:P,isExpanded:b,hasChildItems:w,level:y,selectionMode:G,selectionBehavior:k,isFocusVisibleWithin:D,state:o,id:r.key,allowsDragging:!!s,isDragging:F,isDropTarget:L}),[h,x,P,b,w,y,D,o,r.key,s,F,L,k,G]),B=Ca({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":y},values:q});R.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.")},[r.textValue]),R.useEffect(()=>{w&&!U.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.")},[]);let re=R.useRef(null);R.useEffect(()=>{s&&!re.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let K=gb({items:o.collection.getChildren(r.key),children:X=>{switch(X.type){case"content":return X.render(X);case"loader":case"item":return R.createElement(R.Fragment,null);default:throw new Error("Unsupported element type in TreeRow: "+X.type)}}}),ie=Qn(),Y=Ea(e,{global:!0});return delete Y.id,delete Y.onClick,R.createElement(R.Fragment,null,M&&!M.isHidden&&R.createElement("div",{role:"row","aria-level":c["aria-level"],"aria-expanded":c["aria-expanded"],"aria-label":M.dropIndicatorProps["aria-label"]},R.createElement("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"}},R.createElement("div",{role:"button",...W,...M.dropIndicatorProps,ref:J}),c["aria-expanded"]!=null?R.createElement("div",{role:"button",...W,id:ie,"aria-label":f["aria-label"],"aria-labelledby":`${ie} ${c.id}`,tabIndex:-1,ref:N}):null)),R.createElement("div",{...Wt(Y,c,S,C,_,A?.dragProps),...B,ref:t,"data-expanded":w&&b||void 0,"data-has-child-items":w||void 0,"data-level":y,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":x||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":h.isPressed||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-allows-dragging":!!s||void 0,"data-dragging":F||void 0,"data-drop-target":L||void 0},R.createElement("div",{...d,style:{display:"contents"}},R.createElement(fD,{values:[[Fte,{slots:{selection:T}}],[sO,{slots:{[dD]:{},chevron:{...f,ref:U},drag:{...A?.dragButtonProps,ref:re,style:{pointerEvents:"none"}}}}],[cO,{...q}],[Foe,{isSelected:h.isSelected}]]},K))))});VD(LD,function(t,r,n){let{isVirtualized:o}=R.useContext(yb),i=R.useContext(Eb),{isLoading:s,onLoadMore:l,scrollOffset:c,...d}=t,f=R.useRef(null),p=R.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:f,scrollOffset:c}),[l,c,i?.collection]);_re(p,f),r=bp(r);let{rowProps:h,gridCellProps:b}=aO({node:n},i,r),w=h["aria-level"]||1,y={role:"row","aria-level":h["aria-level"]},C=Ca({...d,id:void 0,children:n.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:w}}),x={};return o&&(x={display:"contents"}),R.createElement(R.Fragment,null,R.createElement("div",{style:{position:"relative",width:0,height:0},inert:Tre(!0)},R.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"absolute",height:1,width:1}})),s&&C.children&&R.createElement("div",{ref:r,...Wt(Ea(t),y),...C,"data-level":w},R.createElement("div",{...b,style:x},C.children)))});function R1(e){return e?e==="all"?"all":new Set(e):new Set}function Uoe(e,t){let{expandedKeys:r=new Set}=t,n=new Map,o=[],i=0,s=new Map,l=c=>{if(c.type==="item"||c.type==="loader"){let d=c?.parentKey,f={...c};d!=null?([...e.getChildren(d)][0].type!=="item"&&(f.index=c?.index!=null?c?.index-1:0),c.type==="loader"&&(f.level=c.level+1),n.set(f.key,f)):n.set(c.key,c);let p=n.get(c.key)||c;(p.level===0||p.parentKey!=null&&r.has(p.parentKey)&&s.get(p.parentKey))&&(p.type==="item"&&i++,o.push(p),s.set(p.key,!0))}else c.type!==null&&n.set(c.key,c);for(let d of e.getChildren(c.key))l(d)};for(let c of e)l(c);return{flattenedRows:o,keyMap:n,itemCount:i}}function zoe(e,t){var r;t=bp(t);let{dragAndDropHooks:n,dropState:o}=R.useContext(Ep),i=R.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:c}=n.useDropIndicator(e,o,i);if(l)return null;let d=o&&e.target.type==="item"?(((r=o.collection.getItem(e.target.key))===null||r===void 0?void 0:r.level)||0)+1:1;return R.createElement(Yoe,{...e,dropIndicatorProps:s,isDropTarget:c,ref:t,buttonRef:i,level:d})}function Goe(e,t){let{dropIndicatorProps:r,isDropTarget:n,buttonRef:o,level:i,...s}=e,{visuallyHiddenProps:l}=vb(),c=Ca({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":i},values:{isDropTarget:n}});return R.createElement("div",{...c,role:"row","aria-level":i,ref:t,"data-drop-target":n||void 0},R.createElement("div",{role:"gridcell"},R.createElement("div",{...l,role:"button",...r,ref:o}),c.children))}const Yoe=R.forwardRef(Goe);function Xoe(){let{dragAndDropHooks:e,dropState:t}=R.useContext(Ep),r=R.useRef(null),{dropIndicatorProps:n}=e.useDropIndicator({target:{type:"root"}},t,r),o=t.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=vb();return!o&&n["aria-hidden"]?null:R.createElement("div",{role:"row","aria-hidden":n["aria-hidden"],style:{position:"absolute"}},R.createElement("div",{role:"gridcell"},R.createElement("div",{role:"button",...i,...n,ref:r})))}var Zoe=/\s+/g,Qoe=e=>typeof e!="string"||!e?e:e.replace(Zoe," ").trim(),kf=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)r(n[i]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;t.push(String(n))}else if(o==="object"){const i=Object.keys(n);for(let s=0,l=i.length;s<l;s++){const c=i[s];n[c]&&t.push(c)}}};for(let n=0,o=e.length;n<o;n++){const i=e[n];i!=null&&r(i)}return t.length>0?Qoe(t.join(" ")):void 0},P1=e=>e===!1?"false":e===!0?"true":e===0?"0":e,hr=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Joe=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!n.includes(i)||e[i]!==t[i])return!1}return!0},eie=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=kf(e[r],n):e[r]=n}return e},fO=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?fO(n,t):n&&t.push(n)}},pO=(...e)=>{const t=[];fO(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},jv=(e,t)=>{const r={};for(const n in e){const o=e[n];if(n in t){const i=t[n];Array.isArray(o)||Array.isArray(i)?r[n]=pO(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=jv(o,i):r[n]=i+" "+o}else r[n]=o}for(const n in t)n in e||(r[n]=t[n]);return r},tie={twMerge:!0,twMergeConfig:{}};function rie(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var Wn=rie(),nie=e=>{const t=(n,o)=>{const{extend:i=null,slots:s={},variants:l={},compoundVariants:c=[],compoundSlots:d=[],defaultVariants:f={}}=n,p={...tie,...o},h=i?.base?kf(i.base,n?.base):n?.base,b=i?.variants&&!hr(i.variants)?jv(l,i.variants):l,w=i?.defaultVariants&&!hr(i.defaultVariants)?{...i.defaultVariants,...f}:f;!hr(p.twMergeConfig)&&!Joe(p.twMergeConfig,Wn.cachedTwMergeConfig)&&(Wn.didTwMergeConfigChange=!0,Wn.cachedTwMergeConfig=p.twMergeConfig);const y=hr(i?.slots),C=hr(s)?{}:{base:kf(n?.base,y&&i?.base),...s},x=y?C:eie({...i?.slots},hr(C)?{base:n?.base}:C),P=hr(i?.compoundVariants)?c:pO(i?.compoundVariants,c),S=_=>{if(hr(b)&&hr(s)&&y)return e(h,_?.class,_?.className)(p);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof d}`);const T=(L,G=b,k=null,q=null)=>{const B=G[L];if(!B||hr(B))return null;const re=q?.[L]??_?.[L];if(re===null)return null;const K=P1(re);if(typeof K=="object")return null;const ie=w?.[L],Y=K??P1(ie);return B[Y||"false"]},A=()=>{if(!b)return null;const L=Object.keys(b),G=[];for(let k=0;k<L.length;k++){const q=T(L[k],b);q&&G.push(q)}return G},M=(L,G)=>{if(!b||typeof b!="object")return null;const k=[];for(const q in b){const B=T(q,b,L,G),re=L==="base"&&typeof B=="string"?B:B&&B[L];re&&k.push(re)}return k},U={};for(const L in _){const G=_[L];G!==void 0&&(U[L]=G)}const J=(L,G)=>{const k=typeof _?.[L]=="object"?{[L]:_[L]?.initial}:{};return{...w,...U,...k,...G}},N=(L=[],G)=>{const k=[],q=L.length;for(let B=0;B<q;B++){const{class:re,className:K,...ie}=L[B];let Y=!0;const X=J(null,G);for(const ce in ie){const ue=ie[ce],pe=X[ce];if(Array.isArray(ue)){if(!ue.includes(pe)){Y=!1;break}}else{if((ue==null||ue===!1)&&(pe==null||pe===!1))continue;if(pe!==ue){Y=!1;break}}}Y&&(re&&k.push(re),K&&k.push(K))}return k},W=L=>{const G=N(P,L);if(!Array.isArray(G))return G;const k={},q=e;for(let B=0;B<G.length;B++){const re=G[B];if(typeof re=="string")k.base=q(k.base,re)(p);else if(typeof re=="object")for(const K in re)k[K]=q(k[K],re[K])(p)}return k},F=L=>{if(d.length<1)return null;const G={},k=J(null,L);for(let q=0;q<d.length;q++){const{slots:B=[],class:re,className:K,...ie}=d[q];if(!hr(ie)){let Y=!0;for(const X in ie){const ce=k[X],ue=ie[X];if(ce===void 0||(Array.isArray(ue)?!ue.includes(ce):ue!==ce)){Y=!1;break}}if(!Y)continue}for(let Y=0;Y<B.length;Y++){const X=B[Y];G[X]||(G[X]=[]),G[X].push([re,K])}}return G};if(!hr(s)||!y){const L={};if(typeof x=="object"&&!hr(x)){const G=e;for(const k in x)L[k]=q=>{const B=W(q),re=F(q);return G(x[k],M(k,q),B?B[k]:void 0,re?re[k]:void 0,q?.class,q?.className)(p)}}return L}return e(h,A(),N(P),_?.class,_?.className)(p)},D=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return S.variantKeys=D(),S.extend=i,S.base=h,S.slots=x,S.variants=b,S.defaultVariants=w,S.compoundSlots=d,S.compoundVariants=P,S};return{tv:t,createTV:n=>(o,i)=>t(o,i?jv(n,i):n)}},oie=e=>hr(e)?DF:j1({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),iie=(e,t)=>{const r=kf(e);return!r||!(t?.twMerge??!0)?r:((!Wn.cachedTwMerge||Wn.didTwMergeConfigChange)&&(Wn.didTwMergeConfigChange=!1,Wn.cachedTwMerge=oie(Wn.cachedTwMergeConfig)),Wn.cachedTwMerge(r)||void 0)},aie=(...e)=>t=>iie(e,t),{tv:mO}=nie(aie);const sie=mO({base:"flex py-2 rounded-lg bg-bg cursor-default lg:text-sm flex-col overflow-auto outline-none",variants:{isFocusVisible:{true:"outline-offset-[-1px] outline-2 outline-primary"}}}),hO=({className:e,...t})=>g.jsx(Voe,{"data-slot":"tree",className:pD(e,(r,n)=>sie({...n,className:r})),...t,children:t.children}),lie=mO({base:["[&_[data-expanded]_[slot=chevron]_[data-slot=icon]]:rotate-90 outline-none [--padding:20px] p-[0.286rem_0.286rem_0.286rem_0.571rem] pl-[calc((var(--tree-item-level)-1)*20px+0.571rem+var(--padding))]","[&_[slot=chevron]]:outline-none [&_[slot=chevron]_[data-slot=icon]]:text-muted-fg","data-[has-child-rows]:[--padding:0px]"],variants:{isExpanded:{true:"[&_[slot=chevron]_[data-slot=icon]]:text-fg [&_[slot=chevron]_[data-slot=icon]]:rotate-90 [&_[slot=chevron]_[data-slot=icon]]:transition [&_[slot=chevron]_[data-slot=icon]]:duration-200"},isFocusVisible:{true:"[&_[slot=chevron]_[data-slot=icon]]:text-fg focus:outline-none focus-visible:ring-1 focus-visible:ring-primary"},isDisabled:{true:"opacity-50 forced-colors:text-[GrayText]"},isSelected:{true:"bg-accent text-accent-foreground"}}}),vO=({className:e,...t})=>g.jsx(Hoe,{"data-slot":"tree-item","data-key":t.id,className:pD(e,(r,n)=>lie({...n,className:r})),...t,children:t.children}),gO=e=>g.jsx(Woe,{"data-slot":"tree-item-content",...e,"data-key":e.key,children:g.jsx("div",{className:"flex items-center gap-x-1",children:e.children})}),bO=()=>g.jsx(Soe,{"data-slot":"tree-item-chevron",className:"shrink-0 relative",slot:"chevron",children:g.jsx(ic,{className:"size-5","data-slot":"icon"})}),yO=e=>g.jsx("span",{"data-slot":"tree-item-label",...e});function uie({items:e,...t}){const r=n=>g.jsxs(vO,{id:n.id,textValue:n.title,children:[g.jsxs(gO,{children:[n.children?.length?g.jsx(bO,{}):null,g.jsx(yO,{children:n.title})]}),n.children?.length?g.jsx(bb,{items:n.children,children:r}):null]},n.id);return g.jsx(hO,{items:e,...t,children:e.map(n=>r(n))})}exports.AlertDialog=Q5;exports.AutoComplete=C6;exports.AutoCompleteDialog=w6;exports.AutoCompleteEmpty=Gf;exports.AutoCompleteGroup=sS;exports.AutoCompleteInput=Uf;exports.AutoCompleteItem=Ku;exports.AutoCompleteList=zf;exports.AutoCompleteRoot=uc;exports.AutoCompleteSeparator=E6;exports.AutoCompleteShortcut=lS;exports.Avatar=WW;exports.BackgroundImage=HW;exports.BaseButton=NP;exports.Button=tr;exports.Calendar=u_;exports.Card=Wz;exports.CardContent=Gz;exports.CardDescription=zz;exports.CardFooter=Yz;exports.CardHeader=Hz;exports.CardTitle=Uz;exports.Center=Xz;exports.Checkbox=Zz;exports.Collection=bb;exports.Combobox=Qz;exports.DOTS=Co;exports.DatePicker=oG;exports.Dialog=b5;exports.DialogClose=Fh;exports.DialogContent=Vf;exports.DialogDescription=Qv;exports.DialogFooter=Xv;exports.DialogHeader=Yv;exports.DialogOverlay=RP;exports.DialogPortal=CP;exports.DialogRoot=Bf;exports.DialogTitle=Zv;exports.DialogTrigger=Gv;exports.Divider=c_;exports.Dropzone=aG;exports.EmptyState=uG;exports.Field=cG;exports.FileType=It;exports.FileTypeGroups=sG;exports.Form=LG;exports.FormControl=M_;exports.FormDescription=O_;exports.FormField=FG;exports.FormItem=A_;exports.FormLabel=D_;exports.FormMessage=N_;exports.Heading=y_;exports.Input=B_;exports.Kbd=JG;exports.KbdGroup=eY;exports.Label=pc;exports.Loader=rY;exports.Menu=sJ;exports.MenuCheckboxItem=w$;exports.MenuContent=y$;exports.MenuGroup=oJ;exports.MenuItem=x$;exports.MenuLabel=C$;exports.MenuPortal=iJ;exports.MenuRadioGroup=aJ;exports.MenuRadioItem=E$;exports.MenuRoot=m$;exports.MenuSeparator=R$;exports.MenuShortcut=P$;exports.MenuSub=v$;exports.MenuSubContent=b$;exports.MenuSubTrigger=g$;exports.MenuTrigger=h$;exports.MultiSelect=AJ;exports.NumberInput=DJ;exports.Pagination=MJ;exports.Password=OJ;exports.Popover=TJ;exports.PopoverContent=Tc;exports.PopoverRoot=Sc;exports.PopoverTrigger=_c;exports.Select=NJ;exports.SelectContent=CA;exports.SelectGroup=bA;exports.SelectItem=PA;exports.SelectLabel=RA;exports.SelectRoot=gA;exports.SelectScrollDownButton=EA;exports.SelectScrollUpButton=wA;exports.SelectSeparator=Oee;exports.SelectTrigger=xA;exports.SelectValue=yA;exports.Show=iv;exports.Skeleton=Nee;exports.Stack=Iee;exports.Stepper=Lee;exports.StepperContainer=_A;exports.StepperContent=AA;exports.StepperList=TA;exports.StepperTrigger=$A;exports.Switch=Fee;exports.TABLE_PAGE_SIZES=Jd;exports.TabContent=zee;exports.TabList=Hee;exports.TabTrigger=Uee;exports.Table=Bee;exports.TableBody=OA;exports.TableCaption=jee;exports.TableCell=IA;exports.TableFooter=qee;exports.TableHead=NA;exports.TableHeader=MA;exports.TablePagination=Vee;exports.TableRoot=DA;exports.TableRow=Ev;exports.Tabs=Wee;exports.Tag=vv;exports.Textarea=Yee;exports.ThemeProvider=y5;exports.Timeline=Zee;exports.TimelineItemContent=qA;exports.TimelineItemDot=FA;exports.TimelineListItem=LA;exports.TimelineRoot=kA;exports.Toast=jA;exports.ToastIcons=VA;exports.Toaster=ite;exports.Tooltip=Lte;exports.TooltipContent=rD;exports.TooltipProvider=JA;exports.TooltipRoot=eD;exports.TooltipTrigger=tD;exports.Tree=uie;exports.TreeItem=vO;exports.TreeItemContent=gO;exports.TreeItemIndicator=bO;exports.TreeItemLabel=yO;exports.TreeRoot=hO;exports.UploadAcceptedFiles=v_;exports.UploadContent=m_;exports.UploadItem=b_;exports.UploadRejectedFiles=g_;exports.UploadRoot=f_;exports.UploadTrigger=p_;exports.click=BW;exports.cn=le;exports.createSafeContext=cc;exports.ensureReactElement=P6;exports.extractInitials=uS;exports.getFormData=S6;exports.mergeRefs=R6;exports.monthNames=ov;exports.tagVariants=_$;exports.toast=ste;exports.twMerge=B1;exports.type=VW;exports.useArray=nY;exports.useAsync=oY;exports.useClickOutside=iY;exports.useClipboard=aY;exports.useControllableState=ut;exports.useDebouncedCallback=sY;exports.useDebouncedValue=lY;exports.useDisclosure=uY;exports.useDocumentTitle=cY;exports.useEventListener=V_;exports.useFocusTrap=MY;exports.useForm=ZG;exports.useFormField=vc;exports.useHotkey=K_;exports.useHover=vY;exports.useIsVisible=gY;exports.useLocalStorage=bY;exports.useMediaQuery=yY;exports.useMemoizedFn=xY;exports.useMutation=wY;exports.useObject=EY;exports.usePagination=Ag;exports.usePortal=CY;exports.usePreventCloseWindow=RY;exports.useRangePagination=W_;exports.useSelection=PY;exports.useStep=SY;exports.useTheme=_P;exports.useThemeProps=ac;exports.useToastStore=Qg;exports.useToggle=H_;exports.weeksDays=l_;
132
+ `.trim(),N.head.prepend(W)},[h]),R.useEffect(()=>{let N=C.current;return()=>{var W;p||_h((W=N.target)!==null&&W!==void 0?W:void 0);for(let K of N.disposables)K();N.disposables=[]}},[p]),{isPressed:c||w,pressProps:Wt(b,J,{[ZR]:!0})}}function fb(e){return e.tagName==="A"&&e.hasAttribute("href")}function Th(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Br(o).HTMLInputElement&&!ED(o,r)||o instanceof Br(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&fb(o))&&r!=="Enter")}function one(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function QR(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function bo(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Xo(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function ine(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function ane(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function JR(e,t){let r=t.getBoundingClientRect(),n=ine(e);return ane(r,n)}function sne(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!fb(e)}function e1(e,t){return e instanceof HTMLInputElement?!ED(e,t):sne(e)}const lne=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ED(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":lne.has(e.type)}let Ao=null,ec=new Set,Bu=new Map,bi=!1,Av=!1;const une={Tab:!0,Escape:!0};function pb(e,t){for(let r of ec)r(e,t)}function cne(e){return!(e.metaKey||!vi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Af(e){bi=!0,cne(e)&&(Ao="keyboard",pb("keyboard",e))}function jr(e){Ao="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bi=!0,pb("pointer",e))}function CD(e){Sv(e)&&(bi=!0,Ao="virtual")}function RD(e){e.target===window||e.target===document||$f||!e.isTrusted||(!bi&&!Av&&(Ao="virtual",pb("virtual",e)),bi=!1,Av=!1)}function PD(){$f||(bi=!1,Av=!0)}function Df(e){if(typeof window>"u"||typeof document>"u"||Bu.get(Br(e)))return;const t=Br(e),r=rt(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bi=!0,n.apply(this,arguments)},r.addEventListener("keydown",Af,!0),r.addEventListener("keyup",Af,!0),r.addEventListener("click",CD,!0),t.addEventListener("focus",RD,!0),t.addEventListener("blur",PD,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",jr,!0),r.addEventListener("pointermove",jr,!0),r.addEventListener("pointerup",jr,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",jr,!0),r.addEventListener("mousemove",jr,!0),r.addEventListener("mouseup",jr,!0)),t.addEventListener("beforeunload",()=>{SD(e)},{once:!0}),Bu.set(t,{focus:n})}const SD=(e,t)=>{const r=Br(e),n=rt(e);t&&n.removeEventListener("DOMContentLoaded",t),Bu.has(r)&&(r.HTMLElement.prototype.focus=Bu.get(r).focus,n.removeEventListener("keydown",Af,!0),n.removeEventListener("keyup",Af,!0),n.removeEventListener("click",CD,!0),r.removeEventListener("focus",RD,!0),r.removeEventListener("blur",PD,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",jr,!0),n.removeEventListener("pointermove",jr,!0),n.removeEventListener("pointerup",jr,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",jr,!0),n.removeEventListener("mousemove",jr,!0),n.removeEventListener("mouseup",jr,!0)),Bu.delete(r))};function dne(e){const t=rt(e);let r;return t.readyState!=="loading"?Df(e):(r=()=>{Df(e)},t.addEventListener("DOMContentLoaded",r)),()=>SD(e,r)}typeof document<"u"&&dne();function mb(){return Ao!=="pointer"}function Mf(){return Ao}function fne(){Df();let[e,t]=R.useState(Ao);return R.useEffect(()=>{let r=()=>{t(Ao)};return ec.add(r),()=>{ec.delete(r)}},[]),Ac()?null:e}const pne=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mne(e,t,r){let n=rt(r?.target);const o=typeof window<"u"?Br(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Br(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Br(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?Br(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!pne.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!une[r.key])}function hne(e,t,r){Df(),R.useEffect(()=>{let n=(o,i)=>{mne(!!r?.isTextInput,o,i)&&e(mb())};return ec.add(n),()=>{ec.delete(n)}},t)}function qr(e){const t=rt(e),r=er(t);if(Mf()==="virtual"){let n=r;iD(()=>{er(t)===n&&e.isConnected&&Jn(e)})}else Jn(e)}function _D(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=R.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),s=yD(i),l=R.useCallback(c=>{const d=rt(c.target),f=d?er(d):er();c.target===c.currentTarget&&f===Ze(c.nativeEvent)&&(r&&r(c),o&&o(!0),s(c))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function t1(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function vne(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:t1(e.onKeyDown),onKeyUp:t1(e.onKeyUp)}}}let Dv=R.createContext(null);function gne(e){let t=R.useContext(Dv)||{};aD(t,e);let{ref:r,...n}=t;return n}function bne(e,t){let{focusProps:r}=_D(e),{keyboardProps:n}=vne(e),o=Wt(r,n),i=gne(t),s=e.isDisabled?{}:i,l=R.useRef(e.autoFocus);R.useEffect(()=>{l.current&&t.current&&qr(t.current),l.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:Wt({...o,tabIndex:c},s)}}function TD(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=R.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=gp(),c=R.useCallback(p=>{p.currentTarget.contains(p.target)&&i.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(p),o&&o(!1))},[r,o,i,l]),d=yD(c),f=R.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const h=rt(p.target),b=er(h);if(!i.current.isFocusWithin&&b===Ze(p.nativeEvent)){n&&n(p),o&&o(!0),i.current.isFocusWithin=!0,d(p);let w=p.currentTarget;s(h,"focus",y=>{if(i.current.isFocusWithin&&!yt(w,y.target)){let C=new h.defaultView.FocusEvent("blur",{relatedTarget:y.target});bD(C,w);let x=cb(C);c(x)}},{capture:!0})}},[n,o,d,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}let Of=!1,Ud=0;function Mv(){Of=!0,setTimeout(()=>{Of=!1},50)}function r1(e){e.pointerType==="touch"&&Mv()}function yne(){if(!(typeof document>"u"))return Ud===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",r1):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Mv)),Ud++,()=>{Ud--,!(Ud>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r1):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Mv))}}function $D(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=R.useState(!1),l=R.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;R.useEffect(yne,[]);let{addGlobalListener:c,removeAllGlobalListeners:d}=gp(),{hoverProps:f,triggerHoverEnd:p}=R.useMemo(()=>{let h=(y,C)=>{if(l.pointerType=C,o||C==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let x=y.currentTarget;l.target=x,c(rt(y.target),"pointerover",P=>{l.isHovered&&l.target&&!yt(l.target,P.target)&&b(P,P.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:x,pointerType:C}),r&&r(!0),s(!0)},b=(y,C)=>{let x=l.target;l.pointerType="",l.target=null,!(C==="touch"||!l.isHovered||!x)&&(l.isHovered=!1,d(),n&&n({type:"hoverend",target:x,pointerType:C}),r&&r(!1),s(!1))},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=y=>{Of&&y.pointerType==="mouse"||h(y,y.pointerType)},w.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&b(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=y=>{!l.ignoreEmulatedMouseEvents&&!Of&&h(y,"mouse"),l.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=y=>{!o&&y.currentTarget.contains(y.target)&&b(y,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,r,n,o,l,c,d]);return R.useEffect(()=>{o&&p({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:f,isHovered:i}}const xne=500;function wne(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=xne,accessibilityDescription:s}=e;const l=R.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=gp(),{pressProps:f}=db({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),l.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),rt(h.target).activeElement!==h.target&&Jn(h.target),o&&o({...h,type:"longpress"}),l.current=void 0},i),h.pointerType==="touch")){let b=w=>{w.preventDefault()};c(h.target,"contextmenu",b,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(h.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(h){l.current&&clearTimeout(l.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),p=sD(o&&!t?s:void 0);return{longPressProps:Wt(f,p)}}const n1=R.createContext(null),Ov="react-aria-focus-scope-restore";let vt=null;function Ene(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=R.useRef(null),s=R.useRef(null),l=R.useRef([]),{parentNode:c}=R.useContext(n1)||{},d=R.useMemo(()=>new Iv({scopeRef:l}),[l]);Ot(()=>{let h=c||Lt.root;if(Lt.getTreeNode(h.scopeRef)&&vt&&!Nf(vt,h.scopeRef)){let b=Lt.getTreeNode(vt);b&&(h=b)}h.addChild(d),Lt.addNode(d)},[d,c]),Ot(()=>{let h=Lt.getTreeNode(l);h&&(h.contain=!!r)},[r]),Ot(()=>{var h;let b=(h=i.current)===null||h===void 0?void 0:h.nextSibling,w=[],y=C=>C.stopPropagation();for(;b&&b!==s.current;)w.push(b),b.addEventListener(Ov,y),b=b.nextSibling;return l.current=w,()=>{for(let C of w)C.removeEventListener(Ov,y)}},[t]),_ne(l,n,r),Pne(l,r),Tne(l,n,r),Sne(l,o),R.useEffect(()=>{const h=er(rt(l.current?l.current[0]:void 0));let b=null;if(Hr(h,l.current)){for(let w of Lt.traverse())w.scopeRef&&Hr(h,w.scopeRef.current)&&(b=w);b===Lt.getTreeNode(l)&&(vt=b.scopeRef)}},[l]),Ot(()=>()=>{var h,b,w;let y=(w=(b=Lt.getTreeNode(l))===null||b===void 0||(h=b.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&w!==void 0?w:null;(l===vt||Nf(l,vt))&&(!y||Lt.getTreeNode(y))&&(vt=y),Lt.removeTreeNode(l)},[l]);let f=R.useMemo(()=>Cne(l),[]),p=R.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return R.createElement(n1.Provider,{value:p},R.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,R.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function Cne(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var l;let c=n||er(rt((l=r[0])!==null&&l!==void 0?l:void 0)),d=r[0].previousElementSibling,f=ni(r),p=Vr(f,{tabbable:o,accept:s},r);p.currentNode=Hr(c,r)?c:d;let h=p.nextNode();return!h&&i&&(p.currentNode=d,h=p.nextNode()),h&&zn(h,!0),h},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var l;let c=n||er(rt((l=r[0])!==null&&l!==void 0?l:void 0)),d=r[r.length-1].nextElementSibling,f=ni(r),p=Vr(f,{tabbable:o,accept:s},r);p.currentNode=Hr(c,r)?c:d;let h=p.previousNode();return!h&&i&&(p.currentNode=d,h=p.previousNode()),h&&zn(h,!0),h},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=ni(r),s=Vr(i,{tabbable:n,accept:o},r);s.currentNode=r[0].previousElementSibling;let l=s.nextNode();return l&&zn(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=ni(r),s=Vr(i,{tabbable:n,accept:o},r);s.currentNode=r[r.length-1].nextElementSibling;let l=s.previousNode();return l&&zn(l,!0),l}}}function ni(e){return e[0].parentElement}function Lu(e){let t=Lt.getTreeNode(vt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Rne(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...rt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var r,n;let i=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function Pne(e,t){let r=R.useRef(void 0),n=R.useRef(void 0);Ot(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=rt(o?o[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Lu(e)||d.isComposing)return;let f=er(i),p=e.current;if(!p||!Hr(f,p))return;let h=ni(p),b=Vr(h,{tabbable:!0},p);if(!f)return;b.currentNode=f;let w=d.shiftKey?b.previousNode():b.nextNode();w||(b.currentNode=d.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,w=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),w&&zn(w,!0)},l=d=>{(!vt||Nf(vt,e))&&Hr(Ze(d),e.current)?(vt=e,r.current=Ze(d)):Lu(e)&&!oi(Ze(d),e)?r.current?r.current.focus():vt&&vt.current&&Nv(vt.current):Lu(e)&&(r.current=Ze(d))},c=d=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let f=Mf(),p=(f==="virtual"||f===null)&&ib()&&ob(),h=er(i);if(!p&&h&&Lu(e)&&!oi(h,e)){vt=e;let w=Ze(d);if(w&&w.isConnected){var b;r.current=w,(b=r.current)===null||b===void 0||b.focus()}else vt.current&&Nv(vt.current)}})};return i.addEventListener("keydown",s,!1),i.addEventListener("focusin",l,!1),o?.forEach(d=>d.addEventListener("focusin",l,!1)),o?.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{i.removeEventListener("keydown",s,!1),i.removeEventListener("focusin",l,!1),o?.forEach(d=>d.removeEventListener("focusin",l,!1)),o?.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),Ot(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function AD(e){return oi(e)}function Hr(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function oi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Lt.traverse(Lt.getTreeNode(t)))if(r&&Hr(e,r.current))return!0;return!1}function Nf(e,t){var r;let n=(r=Lt.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function zn(e,t=!1){if(e!=null&&!t)try{qr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function DD(e,t=!0){let r=e[0].previousElementSibling,n=ni(e),o=Vr(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=ni(e),o=Vr(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Nv(e,t=!0){zn(DD(e,t))}function Sne(e,t){const r=R.useRef(t);R.useEffect(()=>{if(r.current){vt=e;const n=rt(e.current?e.current[0]:void 0);!Hr(er(n),vt.current)&&e.current&&Nv(e.current)}r.current=!1},[e])}function _ne(e,t,r){Ot(()=>{if(t||r)return;let n=e.current;const o=rt(n?n[0]:void 0);let i=s=>{let l=Ze(s);Hr(l,e.current)?vt=e:AD(l)||(vt=null)};return o.addEventListener("focusin",i,!1),n?.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,t,r])}function o1(e){let t=Lt.getTreeNode(vt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Tne(e,t,r){const n=R.useRef(typeof document<"u"?er(rt(e.current?e.current[0]:void 0)):null);Ot(()=>{let o=e.current;const i=rt(o?o[0]:void 0);if(!t||r)return;let s=()=>{(!vt||Nf(vt,e))&&Hr(er(i),e.current)&&(vt=e)};return i.addEventListener("focusin",s,!1),o?.forEach(l=>l.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),o?.forEach(l=>l.removeEventListener("focusin",s,!1))}},[e,r]),Ot(()=>{const o=rt(e.current?e.current[0]:void 0);if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Lu(e)||s.isComposing)return;let l=o.activeElement;if(!oi(l,e)||!o1(e))return;let c=Lt.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=Vr(o.body,{tabbable:!0});f.currentNode=l;let p=s.shiftKey?f.previousNode():f.nextNode();if((!d||!d.isConnected||d===o.body)&&(d=void 0,c.nodeToRestore=void 0),(!p||!oi(p,e))&&d){f.currentNode=d;do p=s.shiftKey?f.previousNode():f.nextNode();while(oi(p,e));s.preventDefault(),s.stopPropagation(),p?zn(p,!0):AD(d)?zn(d,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),Ot(()=>{const o=rt(e.current?e.current[0]:void 0);if(!t)return;let i=Lt.getTreeNode(e);if(i){var s;return i.nodeToRestore=(s=n.current)!==null&&s!==void 0?s:void 0,()=>{let l=Lt.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=er(o);if(t&&c&&(d&&oi(d,e)||d===o.body&&o1(e))){let f=Lt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let p=f.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){i1(p.nodeToRestore);return}p=p.parent}for(p=f.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&Lt.getTreeNode(p.scopeRef)){let h=DD(p.scopeRef.current,!0);i1(h);return}p=p.parent}}})}}}},[e,t])}function i1(e){e.dispatchEvent(new CustomEvent(Ov,{bubbles:!0,cancelable:!0}))&&zn(e)}function Vr(e,t,r){let n=t?.tabbable?kre:uD,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=rt(o),s=nre(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var c;return!(t==null||(c=t.from)===null||c===void 0)&&c.contains(l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Rne(l)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Hr(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class hb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Iv({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Hr(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new hb;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Iv({scopeRef:null}),this.fastMap.set(null,this.root)}}class Iv{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Lt=new hb;function If(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=R.useRef({isFocused:!1,isFocusVisible:t||mb()}),[i,s]=R.useState(!1),[l,c]=R.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=R.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=R.useCallback(b=>{o.current.isFocused=b,s(b),d()},[d]);hne(b=>{o.current.isFocusVisible=b,d()},[],{isTextInput:r});let{focusProps:p}=_D({isDisabled:n,onFocusChange:f}),{focusWithinProps:h}=TD({isDisabled:!n,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:l,focusProps:n?h:p}}function $ne(e,t){let r=t?.isDisabled,[n,o]=R.useState(!1);return Ot(()=>{if(e?.current&&!r){let i=()=>{if(e.current){let l=Vr(e.current,{tabbable:!0});o(!!l.nextNode())}};i();let s=new MutationObserver(i);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),r?!1:n}function MD(e){let t=Dne(rt(e));t!==e&&(t&&Ane(t,e),e&&OD(e,t))}function Ane(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function OD(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function Dne(e){let t=er(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}const a1={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function vb(e={}){let{style:t,isFocusable:r}=e,[n,o]=R.useState(!1),{focusWithinProps:i}=TD({isDisabled:!r,onFocusWithinChange:l=>o(l)}),s=R.useMemo(()=>n?t:t?{...a1,...t}:a1,[n]);return{visuallyHiddenProps:{...i,style:s}}}function kv(e){return mre()?e.altKey:e.ctrlKey}function tf(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const ND=new WeakMap;function Mne(e){let t=Qn();return ND.set(e,t),t}function One(e){return ND.get(e)}const Nne=1e3;function Ine(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=R.useRef({search:"",timeout:void 0}).current,i=s=>{let l=kne(s.key);if(!(!l||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let c=t.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=t.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Nne)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function kne(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Lne(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:l=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:p,allowsTabNavigation:h=!1,isVirtualized:b,scrollRef:w=n,linkBehavior:y="action"}=e,{direction:C}=Dc(),x=ab(),P=F=>{var j;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((j=n.current)===null||j===void 0)&&j.contains(F.target)))return;const re=(Z,we)=>{if(Z!=null){if(t.isLink(Z)&&y==="selection"&&d&&!kv(F)){rn.flushSync(()=>{t.setFocusedKey(Z,we)});let De=tf(n,Z),Ue=t.getItemProps(Z);De&&x.open(De,F,Ue.href,Ue.routerOptions);return}if(t.setFocusedKey(Z,we),t.isLink(Z)&&y==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):d&&!kv(F)&&t.replaceSelection(Z)}};switch(F.key){case"ArrowDown":if(r.getKeyBelow){var V,ie,Y;let Z=t.focusedKey!=null?(V=r.getKeyBelow)===null||V===void 0?void 0:V.call(r,t.focusedKey):(ie=r.getFirstKey)===null||ie===void 0?void 0:ie.call(r);Z==null&&i&&(Z=(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey)),Z!=null&&(F.preventDefault(),re(Z))}break;case"ArrowUp":if(r.getKeyAbove){var X,ce,ue;let Z=t.focusedKey!=null?(X=r.getKeyAbove)===null||X===void 0?void 0:X.call(r,t.focusedKey):(ce=r.getLastKey)===null||ce===void 0?void 0:ce.call(r);Z==null&&i&&(Z=(ue=r.getLastKey)===null||ue===void 0?void 0:ue.call(r,t.focusedKey)),Z!=null&&(F.preventDefault(),re(Z))}break;case"ArrowLeft":if(r.getKeyLeftOf){var pe,te,ve;let Z=t.focusedKey!=null?(pe=r.getKeyLeftOf)===null||pe===void 0?void 0:pe.call(r,t.focusedKey):null;Z==null&&i&&(Z=C==="rtl"?(te=r.getFirstKey)===null||te===void 0?void 0:te.call(r,t.focusedKey):(ve=r.getLastKey)===null||ve===void 0?void 0:ve.call(r,t.focusedKey)),Z!=null&&(F.preventDefault(),re(Z,C==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var q,ae,oe;let Z=t.focusedKey!=null?(q=r.getKeyRightOf)===null||q===void 0?void 0:q.call(r,t.focusedKey):null;Z==null&&i&&(Z=C==="rtl"?(ae=r.getLastKey)===null||ae===void 0?void 0:ae.call(r,t.focusedKey):(oe=r.getFirstKey)===null||oe===void 0?void 0:oe.call(r,t.focusedKey)),Z!=null&&(F.preventDefault(),re(Z,C==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let Z=r.getFirstKey(t.focusedKey,Ji(F));t.setFocusedKey(Z),Z!=null&&(Ji(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):d&&t.replaceSelection(Z))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let Z=r.getLastKey(t.focusedKey,Ji(F));t.setFocusedKey(Z),Z!=null&&(Ji(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):d&&t.replaceSelection(Z))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Z=r.getKeyPageBelow(t.focusedKey);Z!=null&&(F.preventDefault(),re(Z))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Z=r.getKeyPageAbove(t.focusedKey);Z!=null&&(F.preventDefault(),re(Z))}break;case"a":Ji(F)&&t.selectionMode==="multiple"&&l!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":c==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(F.shiftKey)n.current.focus();else{let Z=Vr(n.current,{tabbable:!0}),we,De;do De=Z.lastChild(),De&&(we=De);while(De);we&&!we.contains(document.activeElement)&&Jn(we)}break}}},S=R.useRef({top:0,left:0});Kd(w,"scroll",b?void 0:()=>{var F,j,re,V;S.current={top:(re=(F=w.current)===null||F===void 0?void 0:F.scrollTop)!==null&&re!==void 0?re:0,left:(V=(j=w.current)===null||j===void 0?void 0:j.scrollLeft)!==null&&V!==void 0?V:0}});let D=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){var j,re;let Y=ce=>{ce!=null&&(t.setFocusedKey(ce),d&&!t.isSelected(ce)&&t.replaceSelection(ce))},X=F.relatedTarget;var V,ie;X&&F.currentTarget.compareDocumentPosition(X)&Node.DOCUMENT_POSITION_FOLLOWING?Y((V=t.lastSelectedKey)!==null&&V!==void 0?V:(j=r.getLastKey)===null||j===void 0?void 0:j.call(r)):Y((ie=t.firstSelectedKey)!==null&&ie!==void 0?ie:(re=r.getFirstKey)===null||re===void 0?void 0:re.call(r))}else!b&&w.current&&(w.current.scrollTop=S.current.top,w.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&w.current){let Y=tf(n,t.focusedKey);Y instanceof HTMLElement&&(!Y.contains(document.activeElement)&&!p&&Jn(Y),Mf()==="keyboard"&&wo(Y,{containingElement:n.current}))}}},_=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)},T=R.useRef(!1);Kd(n,Are,p?F=>{let{detail:j}=F;F.stopPropagation(),t.setFocused(!0),j?.focusStrategy==="first"&&(T.current=!0)}:void 0);let A=ur(()=>{var F,j;let re=(j=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&j!==void 0?j:null;if(re==null){let V=er();MD(n.current),OD(V,null),t.collection.size>0&&(T.current=!1)}else t.setFocusedKey(re),T.current=!1});jR(()=>{T.current&&A()},[t.collection,A]);let M=ur(()=>{t.collection.size>0&&(T.current=!1)});jR(()=>{M()},[t.focusedKey,M]),Kd(n,$re,p?F=>{var j;F.stopPropagation(),t.setFocused(!1),!((j=F.detail)===null||j===void 0)&&j.clearFocusKey&&t.setFocusedKey(null)}:void 0);const U=R.useRef(o),J=R.useRef(!1);R.useEffect(()=>{if(U.current){var F,j;let ie=null;var re;o==="first"&&(ie=(re=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&re!==void 0?re:null);var V;o==="last"&&(ie=(V=(j=r.getLastKey)===null||j===void 0?void 0:j.call(r))!==null&&V!==void 0?V:null);let Y=t.selectedKeys;if(Y.size){for(let X of Y)if(t.canSelectItem(X)){ie=X;break}}t.setFocused(!0),t.setFocusedKey(ie),ie==null&&!p&&n.current&&qr(n.current),t.collection.size>0&&(U.current=!1,J.current=!0)}});let N=R.useRef(t.focusedKey),W=R.useRef(null);R.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==N.current||J.current)&&w.current&&n.current){let F=Mf(),j=tf(n,t.focusedKey);if(!(j instanceof HTMLElement))return;(F==="keyboard"||J.current)&&(W.current&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame(()=>{w.current&&(lD(w.current,j),F!=="virtual"&&wo(j,{containingElement:n.current}))}))}!p&&t.isFocused&&t.focusedKey==null&&N.current!=null&&n.current&&qr(n.current),N.current=t.focusedKey,J.current=!1}),R.useEffect(()=>()=>{W.current&&cancelAnimationFrame(W.current)},[]),Kd(n,"react-aria-focus-scope-restore",F=>{F.preventDefault(),t.setFocused(!0)});let K={onKeyDown:P,onFocus:D,onBlur:_,onMouseDown(F){w.current===F.target&&F.preventDefault()}},{typeSelectProps:L}=Ine({keyboardDelegate:r,selectionManager:t});f||(K=Wt(L,K));let G;p||(G=t.focusedKey==null?0:-1);let k=Mne(t.collection);return{collectionProps:Wt(K,{tabIndex:G,"data-collection":k})}}function Fne(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:l,isDisabled:c,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:p="action"}=e,h=ab();t=Qn(t);let b=V=>{if(V.pointerType==="keyboard"&&kv(V))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(p==="selection"&&o.current){let ie=r.getItemProps(n);h.open(o.current,V,ie.href,ie.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(p==="override"||p==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):V&&V.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||V&&(Ji(V)||V.pointerType==="touch"||V.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};R.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(s?MD(o.current):l?l():document.activeElement!==o.current&&o.current&&qr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,s]),c=c||r.isDisabled(n);let w={};!s&&!c?w={tabIndex:n===r.focusedKey?0:-1,onFocus(V){V.target===o.current&&r.setFocusedKey(n)}}:c&&(w.onMouseDown=V=>{V.preventDefault()});let y=r.isLink(n)&&p==="override",C=d&&e.UNSTABLE_itemBehavior==="action",x=r.isLink(n)&&p!=="selection"&&p!=="none",P=!c&&r.canSelectItem(n)&&!y&&!C,S=(d||x)&&!c,D=S&&(r.selectionBehavior==="replace"?!P:!P||r.isEmpty),_=S&&P&&r.selectionBehavior==="replace",T=D||_,A=R.useRef(null),M=T&&P,U=R.useRef(!1),J=R.useRef(!1),N=r.getItemProps(n),W=V=>{if(d){var ie;d(),(ie=o.current)===null||ie===void 0||ie.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&o.current&&h.open(o.current,V,N.href,N.routerOptions)},K={ref:o};if(i?(K.onPressStart=V=>{A.current=V.pointerType,U.current=M,V.pointerType==="keyboard"&&(!T||l1())&&b(V)},f?(K.onPressUp=D?void 0:V=>{V.pointerType==="mouse"&&P&&b(V)},K.onPress=D?W:V=>{V.pointerType!=="keyboard"&&V.pointerType!=="mouse"&&P&&b(V)}):K.onPress=V=>{if(D||_&&V.pointerType!=="mouse"){if(V.pointerType==="keyboard"&&!s1())return;W(V)}else V.pointerType!=="keyboard"&&P&&b(V)}):(K.onPressStart=V=>{A.current=V.pointerType,U.current=M,J.current=D,P&&(V.pointerType==="mouse"&&!D||V.pointerType==="keyboard"&&(!S||l1()))&&b(V)},K.onPress=V=>{(V.pointerType==="touch"||V.pointerType==="pen"||V.pointerType==="virtual"||V.pointerType==="keyboard"&&T&&s1()||V.pointerType==="mouse"&&J.current)&&(T?W(V):P&&b(V))}),w["data-collection"]=One(r.collection),w["data-key"]=n,K.preventFocusOnPress=s,s&&(K=Wt(K,{onPressStart(V){V.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(V){V.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),N)for(let V of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[V]&&(K[V]=mp(K[V],N[V]));let{pressProps:L,isPressed:G}=db(K),k=_?V=>{A.current==="mouse"&&(V.stopPropagation(),V.preventDefault(),W(V))}:void 0,{longPressProps:F}=wne({isDisabled:!M,onLongPress(V){V.pointerType==="touch"&&(b(V),r.setSelectionBehavior("toggle"))}}),j=V=>{A.current==="touch"&&U.current&&V.preventDefault()},re=p!=="none"&&r.isLink(n)?V=>{gi.isOpening||V.preventDefault()}:void 0;return{itemProps:Wt(w,P||D||s&&!c?L:{},M?F:{},{onDoubleClick:k,onDragStartCapture:j,onClick:re,id:t},s?{onMouseDown:V=>V.preventDefault()}:void 0),isPressed:G,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:c,allowsSelection:P,hasAction:T}}function s1(){let e=window.event;return e?.key==="Enter"}function l1(){let e=window.event;return e?.key===" "||e?.code==="Space"}class u1{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?tf(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(i=t?.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class ID{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let s=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(s,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Ju(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Ju(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let s=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(s,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new u1(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new u1(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function qne(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,l=gD({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=R.useMemo(()=>i||new ID({collection:r,disabledKeys:n,disabledBehavior:c,ref:o,collator:l,layoutDelegate:s}),[i,s,r,n,o,l,c]),{collectionProps:f}=Lne({...e,ref:o,selectionManager:t,keyboardDelegate:d});return{listProps:f}}class jne{build(t,r){return this.context=r,c1(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(R.isValidElement(r)&&r.type===R.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];R.Children.forEach(r,s=>{s&&o.push(s)});let i=0;for(let s of o){let l=this.getFullNode({element:s,index:i},{});for(let c of l)i++,yield c}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var s;let l=(s=i.key)!==null&&s!==void 0?s:i.id;if(l==null)throw new Error("No key found for item");return l}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(R.isValidElement(t.element)&&t.element.type===R.Fragment){let C=[];R.Children.forEach(t.element.props.children,P=>{C.push(P)});var i;let x=(i=t.index)!==null&&i!==void 0?i:0;for(const P of C)yield*this.getFullNode({element:P,index:x++},r,n,o);return}let s=t.element;if(!s&&t.value&&r&&r.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=o?o.key:null,yield C;return}s=r.renderer(t.value)}if(R.isValidElement(s)){let C=s.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let D=s.type;throw new Error(`Unknown element <${D}> in collection.`)}let x=C.getCollectionNode(s.props,this.context);var l;let P=(l=t.index)!==null&&l!==void 0?l:0,S=x.next();for(;!S.done&&S.value;){let D=S.value;t.index=P;var c;let _=(c=D.key)!==null&&c!==void 0?c:null;_==null&&(_=D.element?null:this.getKey(s,t,r,n));let A=[...this.getFullNode({...D,key:_,index:P,wrapper:Bne(t.wrapper,D.wrapper)},this.getChildState(r,D),n?`${n}${s.key}`:s.key,o)];for(let M of A){var d,f;M.value=(f=(d=D.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,M.value&&this.cache.set(M.value,M);var p;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${$h(M.type)}> in <${$h((p=o?.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${$h(t.type)}> is supported.`);P++,yield M}S=x.next(A)}return}if(t.key==null||t.type==null)return;let h=this;var b,w;let y={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:c1(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${y.key}${x.key}`);let P=h.getFullNode({...x,index:C},h.getChildState(r,x),y.key,y);for(let S of P)C++,yield S}})};yield y}constructor(){this.cache=new WeakMap}}function c1(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function Bne(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function $h(e){return e[0].toUpperCase()+e.slice(1)}function Vne(e,t,r){let n=R.useMemo(()=>new jne,[]),{children:o,items:i,collection:s}=e;return R.useMemo(()=>{if(s)return s;let c=n.build({children:o,items:i},r);return t(c)},[n,o,i,s,r,t])}function Kne(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Wne(e){return Hne(e)}function Hne(e,t){for(let r of e)return r}function Ah(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...d1(e,t),t],o=[...d1(e,r),r],i=n.slice(0,o.length).findIndex((s,l)=>s!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function d1(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}class Ra{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,n){let o=this.clone();return r.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class kD extends Ra{filter(t,r,n){let[o,i]=FD(t,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=o,s.lastChildKey=i,s}}class Une extends Ra{}Une.type="header";class LD extends Ra{}LD.type="loader";class zne extends kD{filter(t,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,t),o}return null}}zne.type="item";class Gne extends kD{filter(t,r,n){let o=super.filter(t,r,n);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}Gne.type="section";class Yne{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r?.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,r){this.addNode(t);let n=r.getChildren(t.key);for(let o of n)this.addDescendants(o,r)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(t);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}filter(t){let r=new this.constructor,[n,o]=FD(this,r,this.firstKey,t);return r?.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function FD(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,s=e.getItem(r);for(;s!=null;){let d=s.filter(e,t,n);d!=null&&(d.nextKey=null,i&&(d.prevKey=i.key,i.nextKey=d.key),o==null&&(o=d),t.addNode(d),i=d),s=s.nextKey?e.getItem(s.nextKey):null}if(i&&i.type==="separator"){let d=i.prevKey;t.removeNode(i.key),d?(i=t.getItem(d),i.nextKey=null):i=null}var l,c;return[(l=o?.key)!==null&&l!==void 0?l:null,(c=i?.key)!==null&&c!==void 0?c:null]}class qD{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index-1,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class aa extends qD{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof aa?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,s,l,c;let d=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var p;f.parentKey=this.parentNode instanceof aa&&(p=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&p!==void 0?p:null;var h;f.prevKey=(h=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&h!==void 0?h:null;var b;f.nextKey=(b=d==null||(o=d.node)===null||o===void 0?void 0:o.key)!==null&&b!==void 0?b:null,f.hasChildNodes=!!this.firstChild;var w;f.firstChildKey=(w=(s=this.firstVisibleChild)===null||s===void 0||(i=s.node)===null||i===void 0?void 0:i.key)!==null&&w!==void 0?w:null;var y;if(f.lastChildKey=(y=(c=this.lastVisibleChild)===null||c===void 0||(l=c.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(f.colSpan!=null||f.colIndex!=null)&&d){var C,x;let P=((C=f.colIndex)!==null&&C!==void 0?C:f.index)+((x=f.colSpan)!==null&&x!==void 0?x:1);if(d.node!=null&&P!==d.node.colIndex){let S=d.getMutableNode();S.colIndex=P}}}}setProps(t,r,n,o,i){let s,{value:l,textValue:c,id:d,...f}=t;if(this.node==null?(s=new n(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),f.ref=r,s.props=f,s.rendered=o,s.render=i,s.value=l,s.textValue=c||(typeof f.children=="string"?f.children:"")||t["aria-label"]||"",d!=null&&d!==s.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(s.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,l=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Xne extends qD{get isConnected(){return!0}createElement(t){return new aa(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let n of t)this.addNode(n);r.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let l of this.dirtyNodes)l instanceof aa&&(!l.isConnected||l.isHidden)?this.removeNode(l):l.updateChildIndices();for(let l of this.dirtyNodes)l instanceof aa?(l.isConnected&&!l.isHidden&&(l.updateNode(),this.addNode(l)),l.node&&this.dirtyNodes.delete(l),l.isMutated=!1):this.dirtyNodes.delete(l);if(this.nextCollection){var t,r,n,o,i,s;this.nextCollection.commit((i=(r=this.firstVisibleChild)===null||r===void 0||(t=r.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(s=(o=this.lastVisibleChild)===null||o===void 0||(n=o.node)===null||n===void 0?void 0:n.key)!==null&&s!==void 0?s:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function gb(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,s=R.useMemo(()=>new WeakMap,i);return R.useMemo(()=>{if(r&&typeof t=="function"){let d=[];for(let f of r){let p=s.get(f);if(!p){p=t(f);var l,c;let h=(c=(l=p.props.id)!==null&&l!==void 0?l:f.key)!==null&&c!==void 0?c:f.id;if(h==null)throw new Error("Could not determine key for item");n&&(h=n+":"+h),p=R.cloneElement(p,o?{key:h,id:h,value:f}:{key:h}),s.set(f,p)}d.push(p)}return d}else if(typeof t!="function")return t},[t,r,s,n,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Lv=R.createContext(!1);function Zne(e){if(R.useContext(Lv))return R.createElement(R.Fragment,null,e.children);let r=R.createElement(Lv.Provider,{value:!0},e.children);return R.createElement("template",{"data-react-aria-hidden":!0},r)}function Qne(e){let t=(r,n)=>R.useContext(Lv)?null:e(r,n);return t.displayName=e.displayName||e.name,R.forwardRef(t)}var zd={exports:{}},Dh={};var f1;function Jne(){if(f1)return Dh;f1=1;var e=R;function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(p,h){var b=h(),w=n({inst:{value:b,getSnapshot:h}}),y=w[0].inst,C=w[1];return i(function(){y.value=b,y.getSnapshot=h,c(y)&&C({inst:y})},[p,b,h]),o(function(){return c(y)&&C({inst:y}),p(function(){c(y)&&C({inst:y})})},[p]),s(b),b}function c(p){var h=p.getSnapshot;p=p.value;try{var b=h();return!r(p,b)}catch{return!0}}function d(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Dh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Dh}var Mh={};var p1;function eoe(){return p1||(p1=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}function t(b,w){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=w();if(!p){var C=w();i(y,C)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}C=s({inst:{value:y,getSnapshot:w}});var x=C[0].inst,P=C[1];return c(function(){x.value=y,x.getSnapshot=w,r(x)&&P({inst:x})},[b,y,w]),l(function(){return r(x)&&P({inst:x}),b(function(){r(x)&&P({inst:x})})},[b]),d(y),y}function r(b){var w=b.getSnapshot;b=b.value;try{var y=w();return!i(b,y)}catch{return!0}}function n(b,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,i=typeof Object.is=="function"?Object.is:e,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Mh.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Mh}var m1;function toe(){return m1||(m1=1,process.env.NODE_ENV==="production"?zd.exports=Jne():zd.exports=eoe()),zd.exports}var roe=toe();const jD=R.createContext(!1),tc=R.createContext(null);function noe(e){if(R.useContext(tc))return e.content;let{collection:r,document:n}=soe(e.createCollection);return R.createElement(R.Fragment,null,R.createElement(Zne,null,R.createElement(tc.Provider,{value:n},e.content)),R.createElement(ooe,{render:e.children,collection:r}))}function ooe({collection:e,render:t}){return t(e)}function ioe(e,t,r){let n=Ac(),o=R.useRef(n);o.current=n;let i=R.useCallback(()=>o.current?r():t(),[t,r]);return roe.useSyncExternalStore(e,i)}const aoe=typeof R.useSyncExternalStore=="function"?R.useSyncExternalStore:ioe;function soe(e){let[t]=R.useState(()=>new Xne(e?.()||new Yne)),r=R.useCallback(s=>t.subscribe(s),[t]),n=R.useCallback(()=>{let s=t.getCollection();return t.isSSR&&t.resetAfterSSR(),s},[t]),o=R.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:aoe(r,n,o),document:t}}const Fv=R.createContext(null);function loe(e){var t;return t=class extends Ra{},t.type=e,t}function BD(e,t,r,n,o,i){typeof e=="string"&&(e=loe(e));let s=R.useCallback(c=>{c?.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=R.useContext(Fv);if(l){let c=l.ownerDocument.nodesByProps.get(t);return c||(c=l.ownerDocument.createElement(e.type),c.setProps(t,r,e,n,i),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,c)),o?R.createElement(Fv.Provider,{value:c},o):null}return R.createElement(e.type,{ref:s},o)}function VD(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=R.forwardRef((o,i)=>{let s=R.useContext(Dv);if(!R.useContext(jD)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return BD(e,o,i,"children"in o?o.children:null,null,c=>R.createElement(Dv.Provider,{value:s},R.createElement(r,{node:c})))});return n.displayName=t.name,n}function uoe(e,t,r=KD){let n=({node:i})=>t(i.props,i.props.ref,i),o=R.forwardRef((i,s)=>{let l=r(i);var c;return(c=BD(e,i,s,null,l,d=>R.createElement(n,{node:d})))!==null&&c!==void 0?c:R.createElement(R.Fragment,null)});return o.displayName=t.name,o}function KD(e){return gb({...e,addIdAndValue:!0})}const h1=R.createContext(null);function bb(e){let t=R.useContext(h1),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=KD({...e,idScope:n,dependencies:r});return R.useContext(tc)&&(o=R.createElement(coe,null,o)),t=R.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),R.createElement(h1.Provider,{value:t},o)}function coe({children:e}){let t=R.useContext(tc),r=R.useMemo(()=>R.createElement(tc.Provider,{value:null},R.createElement(jD.Provider,{value:!0},e)),[e]);return Ac()?R.createElement(Fv.Provider,{value:t},r):rn.createPortal(r,t)}const WD={CollectionRoot({collection:e,renderDropIndicator:t}){return v1(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return v1(e,t,r)}};function v1(e,t,r){return gb({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:R.createElement(R.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,doe(e,n,r))}})}function doe(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let s=t.nextKey!=null?e.getItem(t.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?e.getItem(s.nextKey):null;let l=[];if(s==null){let c=t;for(;c&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let d=r({type:"item",key:c.key,dropPosition:"after"});R.isValidElement(d)&&l.push(R.cloneElement(d,{key:`${c.key}-after`})),c=c.parentKey!=null?e.getItem(c.parentKey):null}}return l}const yb=R.createContext(WD);function foe(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:h,target:b,rel:w,type:y="button"}=e,C;r==="button"?C={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:C={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?b:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?w:void 0};let{pressProps:x,isPressed:P}=db({onPressStart:i,onPressEnd:s,onPressChange:c,onPress:o,onPressUp:l,onClick:p,isDisabled:n,preventFocusOnPress:d,ref:t}),{focusableProps:S}=bne(e,t);f&&(S.tabIndex=n?-1:S.tabIndex);let D=Wt(S,x,Ea(e,{labelable:!0}));return{isPressed:P,buttonProps:Wt(C,D,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const xb=new WeakMap;function qv(e,t){var r;let{id:n}=(r=xb.get(e))!==null&&r!==void 0?r:{};if(!n)throw new Error("Unknown list");return`${n}-${poe(t)}`}function poe(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var HD={};HD={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var UD={};UD={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var zD={};zD={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var GD={};GD={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var YD={};YD={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var XD={};XD={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var ZD={};ZD={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var QD={};QD={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var JD={};JD={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var eM={};eM={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var tM={};tM={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var rM={};rM={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var nM={};nM={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var oM={};oM={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var iM={};iM={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var aM={};aM={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var sM={};sM={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var lM={};lM={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var uM={};uM={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var cM={};cM={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var dM={};dM={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var fM={};fM={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var pM={};pM={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var mM={};mM={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var hM={};hM={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var vM={};vM={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var gM={};gM={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var bM={};bM={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var yM={};yM={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var xM={};xM={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var wM={};wM={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var EM={};EM={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var CM={};CM={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var RM={};RM={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var wp={};wp={"ar-AE":HD,"bg-BG":UD,"cs-CZ":zD,"da-DK":GD,"de-DE":YD,"el-GR":XD,"en-US":ZD,"es-ES":QD,"et-EE":JD,"fi-FI":eM,"fr-FR":tM,"he-IL":rM,"hr-HR":nM,"hu-HU":oM,"it-IT":iM,"ja-JP":aM,"ko-KR":sM,"lt-LT":lM,"lv-LV":uM,"nb-NO":cM,"nl-NL":dM,"pl-PL":fM,"pt-BR":pM,"pt-PT":mM,"ro-RO":hM,"ru-RU":vM,"sk-SK":gM,"sl-SI":bM,"sr-SP":yM,"sv-SE":xM,"tr-TR":wM,"uk-UA":EM,"zh-CN":CM,"zh-TW":RM};function moe(e){return e&&e.__esModule?e.default:e}function hoe(e,t){let{getRowText:r=l=>{var c,d,f,p;return(p=(c=(d=t.collection).getTextValue)===null||c===void 0?void 0:c.call(d,l))!==null&&p!==void 0?p:(f=t.collection.getItem(l))===null||f===void 0?void 0:f.textValue}}=e,n=xp(moe(wp),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=R.useRef(o),s=ur(()=>{var l;if(!t.selectionManager.isFocused||o===i.current){i.current=o;return}let c=g1(o,i.current),d=g1(i.current,o),f=t.selectionManager.selectionBehavior==="replace",p=[];if(t.selectionManager.selectedKeys.size===1&&f){let h=t.selectionManager.selectedKeys.keys().next().value;if(h!=null&&t.collection.getItem(h)){let b=r(h);b&&p.push(n.format("selectedItem",{item:b}))}}else if(c.size===1&&d.size===0){let h=c.keys().next().value;if(h!=null){let b=r(h);b&&p.push(n.format("selectedItem",{item:b}))}}else if(d.size===1&&c.size===0){let h=d.keys().next().value;if(h!=null&&t.collection.getItem(h)){let b=r(h);b&&p.push(n.format("deselectedItem",{item:b}))}}t.selectionManager.selectionMode==="multiple"&&(p.length===0||o==="all"||o.size>1||i.current==="all"||((l=i.current)===null||l===void 0?void 0:l.size)>1)&&p.push(o==="all"?n.format("selectedAll"):n.format("selectedCount",{count:o.size})),p.length>0&&_v(p.join(" ")),i.current=o});Cre(()=>{if(t.selectionManager.isFocused)s();else{let l=requestAnimationFrame(s);return()=>cancelAnimationFrame(l)}},[o,t.selectionManager.isFocused])}function g1(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function voe(e){return e&&e.__esModule?e.default:e}function goe(e){let t=xp(voe(wp),"@react-aria/grid"),r=fne(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,o=R.useMemo(()=>{let s=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior,c;return n&&(c=t.format("longPressToSelect")),l==="replace"&&s!=="none"&&e.hasItemActions?c:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return sD(o)}function boe(e){return e&&e.__esModule?e.default:e}function yoe(e,t){let{key:r}=e,n=t.selectionManager,o=Qn(),i=!t.selectionManager.canSelectItem(r),s=t.selectionManager.isSelected(r),l=()=>n.toggleSelection(r);const c=xp(boe(wp),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":c.format("select"),isSelected:s,isDisabled:i,onChange:l}}}function xoe(e,t,r){let{isVirtualized:n,keyboardDelegate:o,layoutDelegate:i,onAction:s,disallowTypeAhead:l,linkBehavior:c="action",keyboardNavigationBehavior:d="arrow",escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:p}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:h}=qne({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:r,keyboardDelegate:o,layoutDelegate:i,isVirtualized:n,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:c,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:f}),b=Qn(e.id);xb.set(t,{id:b,onAction:s,linkBehavior:c,keyboardNavigationBehavior:d,shouldSelectOnPressUp:p});let w=goe({selectionManager:t.selectionManager,hasItemActions:!!s}),y=$ne(r,{isDisabled:t.collection.size!==0}),C=Ea(e,{labelable:!0}),x=Wt(C,{role:"grid",id:b,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:y?-1:0}:h,w);return n&&(x["aria-rowcount"]=t.collection.size,x["aria-colcount"]=1),hoe({},t),{gridProps:x}}const b1={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function woe(e,t,r){var n,o;let{node:i,isVirtualized:s}=e,{direction:l}=Dc(),{onAction:c,linkBehavior:d,keyboardNavigationBehavior:f,shouldSelectOnPressUp:p}=xb.get(t),h=Qte(),b=R.useRef(null),w=()=>{var G;r.current!==null&&(b.current!=null&&i.key!==b.current||!(!((G=r.current)===null||G===void 0)&&G.contains(document.activeElement)))&&qr(r.current)},y={},C=e.hasChildItems,x=t.selectionManager.isLink(i.key);if(i!=null&&"expandedKeys"in t){var P,S;let G=(P=(S=t.collection).getChildren)===null||P===void 0?void 0:P.call(S,i.key);C=C||[...G??[]].length>1,c==null&&!x&&t.selectionManager.selectionMode==="none"&&C&&(c=()=>t.toggleKey(i.key));let k=C?t.expandedKeys.has(i.key):void 0,F=1;if(i.level>0&&i?.parentKey!=null){let j=t.collection.getItem(i.parentKey);if(j){var D,_;F=[...(D=(_=t.collection).getChildren)===null||D===void 0?void 0:D.call(_,j.key)].filter(V=>V.type==="item").length}}else F=[...t.collection].filter(j=>j.level===0&&j.type==="item").length;y={"aria-expanded":k,"aria-level":i.level+1,"aria-posinset":i?.index+1,"aria-setsize":F}}let{itemProps:T,...A}=Fne({selectionManager:t.selectionManager,key:i.key,ref:r,isVirtualized:s,shouldSelectOnPressUp:e.shouldSelectOnPressUp||p,onAction:c||!((n=i.props)===null||n===void 0)&&n.onAction?mp((o=i.props)===null||o===void 0?void 0:o.onAction,c?()=>c(i.key):void 0):void 0,focus:w,linkBehavior:d}),M=G=>{if(!G.currentTarget.contains(G.target)||!r.current||!document.activeElement)return;let k=Vr(r.current);if(k.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===r.current){if(G.key===b1.expand[l]&&t.selectionManager.focusedKey===i.key&&C&&!t.expandedKeys.has(i.key)){t.toggleKey(i.key),G.stopPropagation();return}else if(G.key===b1.collapse[l]&&t.selectionManager.focusedKey===i.key&&C&&t.expandedKeys.has(i.key)){t.toggleKey(i.key),G.stopPropagation();return}}switch(G.key){case"ArrowLeft":if(f==="arrow"){let j=l==="rtl"?k.nextNode():k.previousNode();if(j)G.preventDefault(),G.stopPropagation(),qr(j),wo(j,{containingElement:ei(r.current)});else if(G.preventDefault(),G.stopPropagation(),l==="rtl")qr(r.current),wo(r.current,{containingElement:ei(r.current)});else{k.currentNode=r.current;let re=y1(k);re&&(qr(re),wo(re,{containingElement:ei(r.current)}))}}break;case"ArrowRight":if(f==="arrow"){let j=l==="rtl"?k.previousNode():k.nextNode();if(j)G.preventDefault(),G.stopPropagation(),qr(j),wo(j,{containingElement:ei(r.current)});else if(G.preventDefault(),G.stopPropagation(),l==="ltr")qr(r.current),wo(r.current,{containingElement:ei(r.current)});else{k.currentNode=r.current;let re=y1(k);re&&(qr(re),wo(re,{containingElement:ei(r.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!G.altKey&&r.current.contains(G.target)){var F;G.stopPropagation(),G.preventDefault(),(F=r.current.parentElement)===null||F===void 0||F.dispatchEvent(new KeyboardEvent(G.nativeEvent.type,G.nativeEvent))}break}},U=G=>{if(b.current=i.key,G.target!==r.current){mb()||t.selectionManager.setFocusedKey(i.key);return}},J=G=>{if(!(!G.currentTarget.contains(G.target)||!r.current||!document.activeElement))switch(G.key){case"Tab":if(f==="tab"){let k=Vr(r.current,{tabbable:!0});k.currentNode=document.activeElement,(G.shiftKey?k.previousNode():k.nextNode())&&G.stopPropagation()}}},N=xre(i.props),W=A.hasAction?N:{},K=Wt(T,W,{role:"row",onKeyDownCapture:M,onKeyDown:J,onFocus:U,"aria-label":i.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i.key)?t.selectionManager.isSelected(i.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i.key)||void 0,"aria-labelledby":h&&i.textValue?`${qv(t,i.key)} ${h}`:void 0,id:qv(t,i.key)});if(s){let{collection:G}=t,k=[...G];K["aria-rowindex"]=k.find(F=>F.type==="section")?[...G.getKeys()].filter(F=>{var j;return((j=G.getItem(F))===null||j===void 0?void 0:j.type)!=="section"}).findIndex(F=>F===i.key)+1:i.index+1}let L={role:"gridcell","aria-colindex":1};return{rowProps:{...Wt(K,y)},gridCellProps:L,descriptionProps:{id:h},...A}}function y1(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function Eoe(e,t){let{key:r}=e;const{checkboxProps:n}=yoe(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${qv(t,r)}`}}}function Coe(e,t,r){let{gridProps:n}=xoe(e,t,r);return n.role="treegrid",{gridProps:n}}var PM={};PM={collapse:"طي",expand:"تمديد"};var SM={};SM={collapse:"Свиване",expand:"Разширяване"};var _M={};_M={collapse:"Sbalit",expand:"Roztáhnout"};var TM={};TM={collapse:"Skjul",expand:"Udvid"};var $M={};$M={collapse:"Reduzieren",expand:"Erweitern"};var AM={};AM={collapse:"Σύμπτυξη",expand:"Ανάπτυξη"};var DM={};DM={expand:"Expand",collapse:"Collapse"};var MM={};MM={collapse:"Contraer",expand:"Ampliar"};var OM={};OM={collapse:"Ahenda",expand:"Laienda"};var NM={};NM={collapse:"Pienennä",expand:"Laajenna"};var IM={};IM={collapse:"Réduire",expand:"Développer"};var kM={};kM={collapse:"כווץ",expand:"הרחב"};var LM={};LM={collapse:"Sažmi",expand:"Proširi"};var FM={};FM={collapse:"Összecsukás",expand:"Kibontás"};var qM={};qM={collapse:"Comprimi",expand:"Espandi"};var jM={};jM={collapse:"折りたたむ",expand:"展開"};var BM={};BM={collapse:"접기",expand:"펼치기"};var VM={};VM={collapse:"Sutraukti",expand:"Išskleisti"};var KM={};KM={collapse:"Sakļaut",expand:"Izvērst"};var WM={};WM={collapse:"Skjul",expand:"Utvid"};var HM={};HM={collapse:"Samenvouwen",expand:"Uitvouwen"};var UM={};UM={collapse:"Zwiń",expand:"Rozwiń"};var zM={};zM={collapse:"Recolher",expand:"Expandir"};var GM={};GM={collapse:"Colapsar",expand:"Expandir"};var YM={};YM={collapse:"Restrângeți",expand:"Extindeți"};var XM={};XM={collapse:"Свернуть",expand:"Развернуть"};var ZM={};ZM={collapse:"Zbaliť",expand:"Rozbaliť"};var QM={};QM={collapse:"Strni",expand:"Razširi"};var JM={};JM={collapse:" Skupi",expand:"Proširi"};var eO={};eO={collapse:"Dölj",expand:"Expandera"};var tO={};tO={collapse:"Daralt",expand:"Genişlet"};var rO={};rO={collapse:"Згорнути",expand:"Розгорнути"};var nO={};nO={collapse:"折叠",expand:"扩展"};var oO={};oO={collapse:"收合",expand:"展開"};var iO={};iO={"ar-AE":PM,"bg-BG":SM,"cs-CZ":_M,"da-DK":TM,"de-DE":$M,"el-GR":AM,"en-US":DM,"es-ES":MM,"et-EE":OM,"fi-FI":NM,"fr-FR":IM,"he-IL":kM,"hr-HR":LM,"hu-HU":FM,"it-IT":qM,"ja-JP":jM,"ko-KR":BM,"lt-LT":VM,"lv-LV":KM,"nb-NO":WM,"nl-NL":HM,"pl-PL":UM,"pt-BR":zM,"pt-PT":GM,"ro-RO":YM,"ru-RU":XM,"sk-SK":ZM,"sl-SI":QM,"sr-SP":JM,"sv-SE":eO,"tr-TR":tO,"uk-UA":rO,"zh-CN":nO,"zh-TW":oO};function Roe(e){return e&&e.__esModule?e.default:e}function aO(e,t,r){let{node:n}=e,o=woe(e,t,r),i=o.rowProps["aria-expanded"]===!0,s=xp(Roe(iO),"@react-aria/tree"),l=Ere({"aria-label":i?s.format("collapse"):s.format("expand"),"aria-labelledby":o.rowProps.id}),c={onPress:()=>{o.isDisabled||(t.toggleKey(n.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...l};return{...o,expandButtonProps:c}}const Poe=R.createContext(null),sO=R.createContext({}),Soe=Qne(function(t,r){[t,r]=mD(t,r,sO);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:s}=foe(t,r);i=_oe(i,o);let{focusProps:l,isFocused:c,isFocusVisible:d}=If(t),{hoverProps:f,isHovered:p}=$D({...t,isDisabled:t.isDisabled||o}),h={isHovered:p,isPressed:(n.isPressed||s)&&!o,isFocused:c,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:o??!1},b=Ca({...t,values:h,defaultClassName:"react-aria-Button"}),w=Qn(i.id),y=Qn(),C=i["aria-labelledby"];o&&(C?C=`${C} ${y}`:i["aria-label"]&&(C=`${w} ${y}`));let x=R.useRef(o);R.useEffect(()=>{let S={"aria-labelledby":C||w};(!x.current&&c&&o||x.current&&c&&!o)&&_v(S,"assertive"),x.current=o},[o,c,C,w]);let P=Ea(t,{global:!0});return delete P.onClick,R.createElement("button",{...Wt(P,b,i,l,f),type:i.type==="submit"&&o?"button":i.type,id:w,ref:r,"aria-labelledby":C,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":p||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":d||void 0},R.createElement(Poe.Provider,{value:{id:y}},b.children))});function _oe(e,t){if(t){for(const r in e)r.startsWith("on")&&!(r.includes("Focus")||r.includes("Blur"))&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}class Zr extends Set{constructor(t,r,n){super(t),t instanceof Zr?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function Toe(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function $oe(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=R.useRef(!1),[,l]=R.useState(!1),c=R.useRef(null),d=R.useRef(null),[,f]=R.useState(null),p=R.useMemo(()=>x1(e.selectedKeys),[e.selectedKeys]),h=R.useMemo(()=>x1(e.defaultSelectedKeys,new Zr),[e.defaultSelectedKeys]),[b,w]=ub(p,h,e.onSelectionChange),y=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=R.useState(o);o==="replace"&&C==="toggle"&&typeof b=="object"&&b.size===0&&x("replace");let P=R.useRef(o);return R.useEffect(()=>{o!==P.current&&(x(o),P.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(S){s.current=S,l(S)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(S,D="first"){c.current=S,d.current=D,f(S)},selectedKeys:b,setSelectedKeys(S){(n||!Toe(S,b))&&w(S)},disabledKeys:y,disabledBehavior:i}}function x1(e,t){return e?e==="all"?"all":new Zr(e):t}class wb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Ah(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Ah(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Zr([r],r,r);else{let s=this.state.selectedKeys;var o;let l=(o=s.anchorKey)!==null&&o!==void 0?o:r;n=new Zr(s,l,r);var i;for(let c of this.getKeyRange(l,(i=s.currentKey)!==null&&i!==void 0?i:r))n.delete(c);for(let c of this.getKeyRange(r,l))this.canSelectItem(c)&&n.add(c)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Ah(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let s=this.collection.getItem(i);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Zr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Zr([r],r,r):new Zr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Zr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let s=this.collection.getItem(n);s?.type==="item"&&t.push(n);var i;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&r((i=(o=Wne(Kne(s,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Zr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new wb(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}class Aoe{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let c of l.childNodes)n(c)};for(let l of t)n(l);let o=null,i=0;for(let[l,c]of this.keyMap)o?(o.nextKey=l,c.prevKey=o.key):(this.firstKey=l,c.prevKey=void 0),c.type==="item"&&(c.index=i++),o=c,o.nextKey=void 0;var s;this.lastKey=(s=o?.key)!==null&&s!==void 0?s:null}}function Doe(e){let{onExpandedChange:t}=e,[r,n]=ub(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=$oe(e),i=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=Vne(e,R.useCallback(c=>new Aoe(c,{expandedKeys:r}),[r]),null);return R.useEffect(()=>{o.focusedKey!=null&&!s.getItem(o.focusedKey)&&o.setFocusedKey(null)},[s,o.focusedKey]),{collection:s,expandedKeys:r,disabledKeys:i,toggleKey:c=>{n(Moe(r,c))},setExpandedKeys:n,selectionManager:new wb(s,o)}}function Moe(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}const Ep=R.createContext({}),lO=R.createContext(null),Ooe=R.forwardRef(function(t,r){let{render:n}=R.useContext(lO);return R.createElement(R.Fragment,null,n(t,r))});function Noe(e,t){var r;let n=e?.renderDropIndicator,o=e==null||(r=e.isVirtualDragging)===null||r===void 0?void 0:r.call(e),i=R.useCallback(s=>{if(o||t?.isDropTarget(s))return n?n(s):R.createElement(Ooe,{target:s})},[t?.target,o,n]);return e?.useDropIndicator?i:void 0}function Ioe(e,t,r){var n,o;let i=e.focusedKey,s=null;if(!(t==null||(n=t.isVirtualDragging)===null||n===void 0)&&n.call(t)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"&&(s=r.target.key,r.target.dropPosition==="after")){let p=r.collection.getKeyAfter(s),h=null;if(p!=null){var l,c;let b=(c=(l=r.collection.getItem(s))===null||l===void 0?void 0:l.level)!==null&&c!==void 0?c:0;for(;p;){let w=r.collection.getItem(p);if(!w)break;if(w.type!=="item"){p=r.collection.getKeyAfter(p);continue}var d;if(((d=w.level)!==null&&d!==void 0?d:0)<=b)break;h=p,p=r.collection.getKeyAfter(p)}}var f;s=(f=p??h)!==null&&f!==void 0?f:s}return R.useMemo(()=>new Set([i,s].filter(p=>p!=null)),[i,s])}const koe=R.createContext(null);function Loe(e){let t=R.useRef({});return R.createElement(koe.Provider,{value:t},e.children)}const Foe=R.createContext({isSelected:!1}),w1=10,E1=5;class qoe{setup(t,r,n){this.delegate=t,this.state=r,this.direction=n}getDropTargetFromPoint(t,r,n){let o=this.delegate.getDropTargetFromPoint(t,r,n);return!o||o.type==="root"?o:this.resolveDropTarget(o,t,r,n)}resolveDropTarget(t,r,n,o){let i=this.pointerTracking,s=n-i.lastY,l=r-i.lastX,c=i.yDirection,d=i.xDirection;if(Math.abs(s)>E1&&(c=s>0?"down":"up",i.yDirection=c,i.lastY=n),Math.abs(l)>w1&&(d=l>0?"right":"left",i.xDirection=d,i.lastX=r),t.dropPosition==="before"){let h=this.state.collection.getKeyBefore(t.key);if(h!=null){let b={type:"item",key:h,dropPosition:"after"};o(b)&&(t=b)}}let f=this.getPotentialTargets(t,o);if(f.length===0)return{type:"root"};let p;return f.length>1?p=this.selectTarget(f,t,r,n,c,d):(p=f[0],i.boundaryContext=null),p}getPotentialTargets(t,r){if(t.dropPosition==="on")return[t];let n=t,o=this.state.collection,i=o.getItem(n.key);for(;i&&i?.type!=="item"&&i.nextKey!=null;)n.key=i.nextKey,i=o.getItem(i.nextKey);let s=[n];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&o.getChildren&&n.dropPosition==="after"){let d=null;for(let f of o.getChildren(i.key))if(f.type==="item"){d=f;break}if(d){const f={type:"item",key:d.key,dropPosition:"before"};return r(f)?[f]:[]}}if(i?.nextKey!=null)return[t];let l=i?.parentKey,c=[];for(;l;){let d=o.getItem(l),f=d?.nextKey?o.getItem(d.nextKey):null;if(!f||f.parentKey!==l){let h={type:"item",key:l,dropPosition:"after"};if(r(h)&&c.push(h),f)break}l=d?.parentKey}if(c.length>0&&s.push(...c),s.length===1){let d=o.getKeyAfter(n.key),f=d?o.getItem(d):null;if(d!=null&&f&&i&&f.level!=null&&i.level!=null&&f.level>i.level){let p={type:"item",key:d,dropPosition:"before"};if(r(p))return[p]}}return s.filter(r)}selectTarget(t,r,n,o,i,s){if(t.length<2)return t[0];let l=this.pointerTracking,c=this.state.collection.getItem(r.key),d=c?.parentKey;if(!d)return t[0];if(!l.boundaryContext||l.boundaryContext.parentKey!==d){let w=l.yDirection==="up"?t.length-1:0;l.boundaryContext={parentKey:d,preferredTargetIndex:w,lastSwitchY:o,lastSwitchX:n}}let f=l.boundaryContext,p=Math.abs(n-f.lastSwitchX);if(Math.abs(o-f.lastSwitchY)>E1&&i){let w=f.preferredTargetIndex||0;i==="down"&&w===0?f.preferredTargetIndex=t.length-1:i==="up"&&w===t.length-1&&(f.preferredTargetIndex=0),l.xDirection=null}if(p>w1&&s){let w=f.preferredTargetIndex||0;s==="left"?this.direction==="ltr"?w<t.length-1&&(f.preferredTargetIndex=w+1,f.lastSwitchX=n):w>0&&(f.preferredTargetIndex=w-1,f.lastSwitchX=n):s==="right"&&(this.direction==="ltr"?w>0&&(f.preferredTargetIndex=w-1,f.lastSwitchX=n):w<t.length-1&&(f.preferredTargetIndex=w+1,f.lastSwitchX=n)),l.yDirection=null}let b=Math.max(0,Math.min(f.preferredTargetIndex||0,t.length-1));return t[b]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class joe{*[Symbol.iterator](){yield*this.flattenedRows}get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}getItem(t){return this.keyMap.get(t)||null}at(t){return this.flattenedRows[t]}getFirstKey(){var t;return(t=this.flattenedRows[0])===null||t===void 0?void 0:t.key}getLastKey(){var t;return(t=this.flattenedRows[this.flattenedRows.length-1])===null||t===void 0?void 0:t.key}getKeyAfter(t){var r;let n=this.flattenedRows.findIndex(o=>o.key===t);return(r=this.flattenedRows[n+1])===null||r===void 0?void 0:r.key}getKeyBefore(t){var r;let n=this.flattenedRows.findIndex(o=>o.key===t);return(r=this.flattenedRows[n-1])===null||r===void 0?void 0:r.key}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getTextValue(t){let r=this.getItem(t);return r?r.textValue:""}constructor(t){this.keyMap=new Map,this.itemCount=0;let{collection:r,expandedKeys:n}=t,{flattenedRows:o,keyMap:i,itemCount:s}=Uoe(r,{expandedKeys:n});this.flattenedRows=o,this.keyMap=i,this.itemCount=s}}const Boe=R.createContext(null),Eb=R.createContext(null),Voe=R.forwardRef(function(t,r){return[t,r]=mD(t,r,Boe),R.createElement(noe,{content:R.createElement(bb,t)},n=>R.createElement(Koe,{props:t,collection:n,treeRef:r}))}),C1={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Koe({props:e,collection:t,treeRef:r}){const{dragAndDropHooks:n}=e;let{direction:o}=Dc(),i=gD({usage:"search",sensitivity:"base"}),s=!!n?.useDraggableCollectionState,l=!!n?.useDroppableCollectionState,c=R.useRef(s),d=R.useRef(l);R.useEffect(()=>{c.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),d.current!==l&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[s,l]);let{selectionMode:f="none",expandedKeys:p,defaultExpandedKeys:h,onExpandedChange:b,disabledBehavior:w="all"}=e,{CollectionRoot:y,isVirtualized:C,layoutDelegate:x,dropTargetDelegate:P}=R.useContext(yb),[S,D]=ub(p?R1(p):void 0,h?R1(h):new Set,b),_=R.useMemo(()=>new joe({collection:t,expandedKeys:S}),[t,S]),T=Doe({...e,selectionMode:f,expandedKeys:S,onExpandedChange:D,collection:_,children:void 0,disabledBehavior:w}),{gridProps:A}=Coe({...e,isVirtualized:C,layoutDelegate:x},T,r),M,U,J,N=!1,W=null,K=R.useRef(null);if(s&&n){M=n.useDraggableCollectionState({collection:T.collection,selectionManager:T.selectionManager,preview:n.renderDragPreview?K:void 0}),n.useDraggableCollection({},M,r);let X=n.DragPreview;W=n.renderDragPreview?R.createElement(X,{ref:K},n.renderDragPreview):null}let[L]=R.useState(()=>new qoe);if(l&&n){U=n.useDroppableCollectionState({collection:T.collection,selectionManager:T.selectionManager});let X=n.dropTargetDelegate||P||new n.ListDropTargetDelegate(T.collection,r,{direction:o});L.setup(X,T,o);let ce=new ID({collection:T.collection,collator:i,ref:r,disabledKeys:T.selectionManager.disabledKeys,disabledBehavior:T.selectionManager.disabledBehavior,direction:o,layoutDelegate:x});J=n.useDroppableCollection({keyboardDelegate:ce,dropTargetDelegate:L,onDropActivate:pe=>{if(pe.target.type==="item"){var te;let ve=pe.target.key,q=T.collection.getItem(ve),ae=S!=="all"&&S.has(ve);q&&q.hasChildNodes&&(!ae||!(n==null||(te=n.isVirtualDragging)===null||te===void 0)&&te.call(n))&&T.toggleKey(ve)}},onKeyDown:pe=>{let te=U?.target;if(te&&te.type==="item"&&te.dropPosition==="on"){let ve=T.collection.getItem(te.key);(pe.key===C1.expand[o]&&ve?.hasChildNodes&&!T.expandedKeys.has(te.key)||pe.key===C1.collapse[o]&&ve?.hasChildNodes&&T.expandedKeys.has(te.key))&&T.toggleKey(te.key)}}},U,r);let ue=U.getDropOperation;U.getDropOperation=pe=>{let{target:te,isInternal:ve}=pe;var q;let ae=(q=M?.draggingKeys)!==null&&q!==void 0?q:new Set;if(ve&&te.type==="item"&&ae.size>0){if(ae.has(te.key)&&te.dropPosition==="on")return"cancel";let oe=te.key;for(;oe!=null;){let Z=T.collection.getItem(oe),we=Z?.parentKey;if(we!=null&&ae.has(we))return"cancel";oe=we??null}}return ue(pe)},N=U.isDropTarget({type:"root"})}let G=!!(s&&!M?.isDisabled),{focusProps:k,isFocused:F,isFocusVisible:j}=If(),re={isEmpty:T.collection.size===0,isFocused:F,isFocusVisible:j,isDropTarget:N,selectionMode:T.selectionManager.selectionMode,allowsDragging:!!G,state:T},V=Ca({className:e.className,style:e.style,defaultClassName:"react-aria-Tree",values:re}),ie=null;if(T.collection.size===0&&e.renderEmptyState){let{isEmpty:X,...ce}=re,ue=e.renderEmptyState({...ce}),pe={"aria-level":1};ie=R.createElement("div",{role:"row",style:{display:"contents"},...pe},R.createElement("div",{role:"gridcell",style:{display:"contents"}},ue))}let Y=Ea(e,{global:!0});return R.createElement(R.Fragment,null,R.createElement(Ene,null,R.createElement("div",{...Wt(Y,V,A,k,J?.collectionProps),ref:r,slot:e.slot||void 0,"data-empty":T.collection.size===0||void 0,"data-focused":F||void 0,"data-drop-target":N||void 0,"data-focus-visible":j||void 0,"data-selection-mode":T.selectionManager.selectionMode==="none"?void 0:T.selectionManager.selectionMode,"data-allows-dragging":!!G||void 0},R.createElement(fD,{values:[[Eb,T],[Ep,{dragAndDropHooks:n,dragState:M,dropState:U}],[lO,{render:zoe}]]},l&&R.createElement(Xoe,null),R.createElement(Loe,null,R.createElement(y,{collection:T.collection,persistedKeys:Ioe(T.selectionManager,n,U),scrollRef:r,renderDropIndicator:Noe(n,U)}))),ie)),W)}class uO extends Ra{}uO.type="content";const Woe=VD(uO,function(t){let r=R.useContext(cO),n=Ca({children:t.children,values:r});return R.createElement(yb.Provider,{value:WD},n.children)}),cO=R.createContext(null);class dO extends Ra{}dO.type="item";const Hoe=uoe(dO,(e,t,r)=>{var n;let o=R.useContext(Eb);t=bp(t);let{dragAndDropHooks:i,dragState:s,dropState:l}=R.useContext(Ep),{rowProps:c,gridCellProps:d,expandButtonProps:f,descriptionProps:p,...h}=aO({node:r,shouldSelectOnPressUp:!!s},o,t),b=c["aria-expanded"]===!0,w=e.hasChildItems||((n=[...o.collection.getChildren(r.key)])===null||n===void 0?void 0:n.length)>1,y=c["aria-level"]||1,{hoverProps:C,isHovered:x}=$D({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{isFocusVisible:P,focusProps:S}=If(),{isFocusVisible:D,focusProps:_}=If({within:!0}),{checkboxProps:T}=Eoe({key:r.key},o),A=null;s&&i&&(A=i.useDraggableItem({key:r.key,hasDragButton:!0},s));let M=null,U=R.useRef(null),J=R.useRef(null),N=R.useRef(null),{visuallyHiddenProps:W}=vb();l&&i&&(M=i.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"},activateButtonRef:N},l,J));let K=s&&s.isDragging(r.key),L=M?.isDropTarget,G=o.selectionManager.selectionMode,k=o.selectionManager.selectionBehavior,F=R.useMemo(()=>({...h,isHovered:x,isFocusVisible:P,isExpanded:b,hasChildItems:w,level:y,selectionMode:G,selectionBehavior:k,isFocusVisibleWithin:D,state:o,id:r.key,allowsDragging:!!s,isDragging:K,isDropTarget:L}),[h,x,P,b,w,y,D,o,r.key,s,K,L,k,G]),j=Ca({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":y},values:F});R.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.")},[r.textValue]),R.useEffect(()=>{w&&!U.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.")},[]);let re=R.useRef(null);R.useEffect(()=>{s&&!re.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let V=gb({items:o.collection.getChildren(r.key),children:X=>{switch(X.type){case"content":return X.render(X);case"loader":case"item":return R.createElement(R.Fragment,null);default:throw new Error("Unsupported element type in TreeRow: "+X.type)}}}),ie=Qn(),Y=Ea(e,{global:!0});return delete Y.id,delete Y.onClick,R.createElement(R.Fragment,null,M&&!M.isHidden&&R.createElement("div",{role:"row","aria-level":c["aria-level"],"aria-expanded":c["aria-expanded"],"aria-label":M.dropIndicatorProps["aria-label"]},R.createElement("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"}},R.createElement("div",{role:"button",...W,...M.dropIndicatorProps,ref:J}),c["aria-expanded"]!=null?R.createElement("div",{role:"button",...W,id:ie,"aria-label":f["aria-label"],"aria-labelledby":`${ie} ${c.id}`,tabIndex:-1,ref:N}):null)),R.createElement("div",{...Wt(Y,c,S,C,_,A?.dragProps),...j,ref:t,"data-expanded":w&&b||void 0,"data-has-child-items":w||void 0,"data-level":y,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":x||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":h.isPressed||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-allows-dragging":!!s||void 0,"data-dragging":K||void 0,"data-drop-target":L||void 0},R.createElement("div",{...d,style:{display:"contents"}},R.createElement(fD,{values:[[Fte,{slots:{selection:T}}],[sO,{slots:{[dD]:{},chevron:{...f,ref:U},drag:{...A?.dragButtonProps,ref:re,style:{pointerEvents:"none"}}}}],[cO,{...F}],[Foe,{isSelected:h.isSelected}]]},V))))});VD(LD,function(t,r,n){let{isVirtualized:o}=R.useContext(yb),i=R.useContext(Eb),{isLoading:s,onLoadMore:l,scrollOffset:c,...d}=t,f=R.useRef(null),p=R.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:f,scrollOffset:c}),[l,c,i?.collection]);_re(p,f),r=bp(r);let{rowProps:h,gridCellProps:b}=aO({node:n},i,r),w=h["aria-level"]||1,y={role:"row","aria-level":h["aria-level"]},C=Ca({...d,id:void 0,children:n.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:w}}),x={};return o&&(x={display:"contents"}),R.createElement(R.Fragment,null,R.createElement("div",{style:{position:"relative",width:0,height:0},inert:Tre(!0)},R.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"absolute",height:1,width:1}})),s&&C.children&&R.createElement("div",{ref:r,...Wt(Ea(t),y),...C,"data-level":w},R.createElement("div",{...b,style:x},C.children)))});function R1(e){return e?e==="all"?"all":new Set(e):new Set}function Uoe(e,t){let{expandedKeys:r=new Set}=t,n=new Map,o=[],i=0,s=new Map,l=c=>{if(c.type==="item"||c.type==="loader"){let d=c?.parentKey,f={...c};d!=null?([...e.getChildren(d)][0].type!=="item"&&(f.index=c?.index!=null?c?.index-1:0),c.type==="loader"&&(f.level=c.level+1),n.set(f.key,f)):n.set(c.key,c);let p=n.get(c.key)||c;(p.level===0||p.parentKey!=null&&r.has(p.parentKey)&&s.get(p.parentKey))&&(p.type==="item"&&i++,o.push(p),s.set(p.key,!0))}else c.type!==null&&n.set(c.key,c);for(let d of e.getChildren(c.key))l(d)};for(let c of e)l(c);return{flattenedRows:o,keyMap:n,itemCount:i}}function zoe(e,t){var r;t=bp(t);let{dragAndDropHooks:n,dropState:o}=R.useContext(Ep),i=R.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:c}=n.useDropIndicator(e,o,i);if(l)return null;let d=o&&e.target.type==="item"?(((r=o.collection.getItem(e.target.key))===null||r===void 0?void 0:r.level)||0)+1:1;return R.createElement(Yoe,{...e,dropIndicatorProps:s,isDropTarget:c,ref:t,buttonRef:i,level:d})}function Goe(e,t){let{dropIndicatorProps:r,isDropTarget:n,buttonRef:o,level:i,...s}=e,{visuallyHiddenProps:l}=vb(),c=Ca({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":i},values:{isDropTarget:n}});return R.createElement("div",{...c,role:"row","aria-level":i,ref:t,"data-drop-target":n||void 0},R.createElement("div",{role:"gridcell"},R.createElement("div",{...l,role:"button",...r,ref:o}),c.children))}const Yoe=R.forwardRef(Goe);function Xoe(){let{dragAndDropHooks:e,dropState:t}=R.useContext(Ep),r=R.useRef(null),{dropIndicatorProps:n}=e.useDropIndicator({target:{type:"root"}},t,r),o=t.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=vb();return!o&&n["aria-hidden"]?null:R.createElement("div",{role:"row","aria-hidden":n["aria-hidden"],style:{position:"absolute"}},R.createElement("div",{role:"gridcell"},R.createElement("div",{role:"button",...i,...n,ref:r})))}var Zoe=/\s+/g,Qoe=e=>typeof e!="string"||!e?e:e.replace(Zoe," ").trim(),kf=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)r(n[i]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;t.push(String(n))}else if(o==="object"){const i=Object.keys(n);for(let s=0,l=i.length;s<l;s++){const c=i[s];n[c]&&t.push(c)}}};for(let n=0,o=e.length;n<o;n++){const i=e[n];i!=null&&r(i)}return t.length>0?Qoe(t.join(" ")):void 0},P1=e=>e===!1?"false":e===!0?"true":e===0?"0":e,hr=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Joe=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!n.includes(i)||e[i]!==t[i])return!1}return!0},eie=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=kf(e[r],n):e[r]=n}return e},fO=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?fO(n,t):n&&t.push(n)}},pO=(...e)=>{const t=[];fO(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},jv=(e,t)=>{const r={};for(const n in e){const o=e[n];if(n in t){const i=t[n];Array.isArray(o)||Array.isArray(i)?r[n]=pO(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=jv(o,i):r[n]=i+" "+o}else r[n]=o}for(const n in t)n in e||(r[n]=t[n]);return r},tie={twMerge:!0,twMergeConfig:{}};function rie(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var Wn=rie(),nie=e=>{const t=(n,o)=>{const{extend:i=null,slots:s={},variants:l={},compoundVariants:c=[],compoundSlots:d=[],defaultVariants:f={}}=n,p={...tie,...o},h=i?.base?kf(i.base,n?.base):n?.base,b=i?.variants&&!hr(i.variants)?jv(l,i.variants):l,w=i?.defaultVariants&&!hr(i.defaultVariants)?{...i.defaultVariants,...f}:f;!hr(p.twMergeConfig)&&!Joe(p.twMergeConfig,Wn.cachedTwMergeConfig)&&(Wn.didTwMergeConfigChange=!0,Wn.cachedTwMergeConfig=p.twMergeConfig);const y=hr(i?.slots),C=hr(s)?{}:{base:kf(n?.base,y&&i?.base),...s},x=y?C:eie({...i?.slots},hr(C)?{base:n?.base}:C),P=hr(i?.compoundVariants)?c:pO(i?.compoundVariants,c),S=_=>{if(hr(b)&&hr(s)&&y)return e(h,_?.class,_?.className)(p);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof d}`);const T=(L,G=b,k=null,F=null)=>{const j=G[L];if(!j||hr(j))return null;const re=F?.[L]??_?.[L];if(re===null)return null;const V=P1(re);if(typeof V=="object")return null;const ie=w?.[L],Y=V??P1(ie);return j[Y||"false"]},A=()=>{if(!b)return null;const L=Object.keys(b),G=[];for(let k=0;k<L.length;k++){const F=T(L[k],b);F&&G.push(F)}return G},M=(L,G)=>{if(!b||typeof b!="object")return null;const k=[];for(const F in b){const j=T(F,b,L,G),re=L==="base"&&typeof j=="string"?j:j&&j[L];re&&k.push(re)}return k},U={};for(const L in _){const G=_[L];G!==void 0&&(U[L]=G)}const J=(L,G)=>{const k=typeof _?.[L]=="object"?{[L]:_[L]?.initial}:{};return{...w,...U,...k,...G}},N=(L=[],G)=>{const k=[],F=L.length;for(let j=0;j<F;j++){const{class:re,className:V,...ie}=L[j];let Y=!0;const X=J(null,G);for(const ce in ie){const ue=ie[ce],pe=X[ce];if(Array.isArray(ue)){if(!ue.includes(pe)){Y=!1;break}}else{if((ue==null||ue===!1)&&(pe==null||pe===!1))continue;if(pe!==ue){Y=!1;break}}}Y&&(re&&k.push(re),V&&k.push(V))}return k},W=L=>{const G=N(P,L);if(!Array.isArray(G))return G;const k={},F=e;for(let j=0;j<G.length;j++){const re=G[j];if(typeof re=="string")k.base=F(k.base,re)(p);else if(typeof re=="object")for(const V in re)k[V]=F(k[V],re[V])(p)}return k},K=L=>{if(d.length<1)return null;const G={},k=J(null,L);for(let F=0;F<d.length;F++){const{slots:j=[],class:re,className:V,...ie}=d[F];if(!hr(ie)){let Y=!0;for(const X in ie){const ce=k[X],ue=ie[X];if(ce===void 0||(Array.isArray(ue)?!ue.includes(ce):ue!==ce)){Y=!1;break}}if(!Y)continue}for(let Y=0;Y<j.length;Y++){const X=j[Y];G[X]||(G[X]=[]),G[X].push([re,V])}}return G};if(!hr(s)||!y){const L={};if(typeof x=="object"&&!hr(x)){const G=e;for(const k in x)L[k]=F=>{const j=W(F),re=K(F);return G(x[k],M(k,F),j?j[k]:void 0,re?re[k]:void 0,F?.class,F?.className)(p)}}return L}return e(h,A(),N(P),_?.class,_?.className)(p)},D=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return S.variantKeys=D(),S.extend=i,S.base=h,S.slots=x,S.variants=b,S.defaultVariants=w,S.compoundSlots=d,S.compoundVariants=P,S};return{tv:t,createTV:n=>(o,i)=>t(o,i?jv(n,i):n)}},oie=e=>hr(e)?DF:j1({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),iie=(e,t)=>{const r=kf(e);return!r||!(t?.twMerge??!0)?r:((!Wn.cachedTwMerge||Wn.didTwMergeConfigChange)&&(Wn.didTwMergeConfigChange=!1,Wn.cachedTwMerge=oie(Wn.cachedTwMergeConfig)),Wn.cachedTwMerge(r)||void 0)},aie=(...e)=>t=>iie(e,t),{tv:mO}=nie(aie);const sie=mO({base:"flex py-2 rounded-lg bg-bg cursor-default lg:text-sm flex-col overflow-auto outline-none",variants:{isFocusVisible:{true:"outline-offset-[-1px] outline-2 outline-primary"}}}),hO=({className:e,...t})=>g.jsx(Voe,{"data-slot":"tree",className:pD(e,(r,n)=>sie({...n,className:r})),...t,children:t.children}),lie=mO({base:["[&_[data-expanded]_[slot=chevron]_[data-slot=icon]]:rotate-90 outline-none [--padding:20px] p-[0.286rem_0.286rem_0.286rem_0.571rem] pl-[calc((var(--tree-item-level)-1)*20px+0.571rem+var(--padding))]","[&_[slot=chevron]]:outline-none [&_[slot=chevron]_[data-slot=icon]]:text-muted-fg","data-[has-child-rows]:[--padding:0px]"],variants:{isExpanded:{true:"[&_[slot=chevron]_[data-slot=icon]]:text-fg [&_[slot=chevron]_[data-slot=icon]]:rotate-90 [&_[slot=chevron]_[data-slot=icon]]:transition [&_[slot=chevron]_[data-slot=icon]]:duration-200"},isFocusVisible:{true:"[&_[slot=chevron]_[data-slot=icon]]:text-fg focus:outline-none focus-visible:ring-1 focus-visible:ring-primary"},isDisabled:{true:"opacity-50 forced-colors:text-[GrayText]"},isSelected:{true:"bg-accent text-accent-foreground"}}}),vO=({className:e,...t})=>g.jsx(Hoe,{"data-slot":"tree-item","data-key":t.id,className:pD(e,(r,n)=>lie({...n,className:r})),...t,children:t.children}),gO=e=>g.jsx(Woe,{"data-slot":"tree-item-content",...e,"data-key":e.key,children:g.jsx("div",{className:"flex items-center gap-x-1",children:e.children})}),bO=()=>g.jsx(Soe,{"data-slot":"tree-item-chevron",className:"shrink-0 relative",slot:"chevron",children:g.jsx(ic,{className:"size-5","data-slot":"icon"})}),yO=e=>g.jsx("span",{"data-slot":"tree-item-label",...e});function uie({items:e,...t}){const r=n=>g.jsxs(vO,{id:n.id,textValue:n.title,children:[g.jsxs(gO,{children:[n.children?.length?g.jsx(bO,{}):null,g.jsx(yO,{children:n.title})]}),n.children?.length?g.jsx(bb,{items:n.children,children:r}):null]},n.id);return g.jsx(hO,{items:e,...t,children:e.map(n=>r(n))})}exports.AlertDialog=Q5;exports.AutoComplete=C6;exports.AutoCompleteDialog=w6;exports.AutoCompleteEmpty=Gf;exports.AutoCompleteGroup=sS;exports.AutoCompleteInput=Uf;exports.AutoCompleteItem=Ku;exports.AutoCompleteList=zf;exports.AutoCompleteRoot=uc;exports.AutoCompleteSeparator=E6;exports.AutoCompleteShortcut=lS;exports.Avatar=WW;exports.BackgroundImage=HW;exports.BaseButton=NP;exports.Button=tr;exports.Calendar=u_;exports.Card=Wz;exports.CardContent=Gz;exports.CardDescription=zz;exports.CardFooter=Yz;exports.CardHeader=Hz;exports.CardTitle=Uz;exports.Center=Xz;exports.Checkbox=Zz;exports.Collection=bb;exports.Combobox=Qz;exports.DOTS=Co;exports.DatePicker=oG;exports.Dialog=b5;exports.DialogClose=Fh;exports.DialogContent=Vf;exports.DialogDescription=Qv;exports.DialogFooter=Xv;exports.DialogHeader=Yv;exports.DialogOverlay=RP;exports.DialogPortal=CP;exports.DialogRoot=Bf;exports.DialogTitle=Zv;exports.DialogTrigger=Gv;exports.Divider=c_;exports.Dropzone=aG;exports.EmptyState=uG;exports.Field=cG;exports.FileType=It;exports.FileTypeGroups=sG;exports.Form=LG;exports.FormControl=M_;exports.FormDescription=O_;exports.FormField=FG;exports.FormItem=A_;exports.FormLabel=D_;exports.FormMessage=N_;exports.Heading=y_;exports.Input=B_;exports.Kbd=JG;exports.KbdGroup=eY;exports.Label=pc;exports.Loader=rY;exports.Menu=sJ;exports.MenuCheckboxItem=w$;exports.MenuContent=y$;exports.MenuGroup=oJ;exports.MenuItem=x$;exports.MenuLabel=C$;exports.MenuPortal=iJ;exports.MenuRadioGroup=aJ;exports.MenuRadioItem=E$;exports.MenuRoot=m$;exports.MenuSeparator=R$;exports.MenuShortcut=P$;exports.MenuSub=v$;exports.MenuSubContent=b$;exports.MenuSubTrigger=g$;exports.MenuTrigger=h$;exports.MultiSelect=AJ;exports.NumberInput=DJ;exports.Pagination=MJ;exports.Password=OJ;exports.Popover=TJ;exports.PopoverContent=Tc;exports.PopoverRoot=Sc;exports.PopoverTrigger=_c;exports.Select=NJ;exports.SelectContent=CA;exports.SelectGroup=bA;exports.SelectItem=PA;exports.SelectLabel=RA;exports.SelectRoot=gA;exports.SelectScrollDownButton=EA;exports.SelectScrollUpButton=wA;exports.SelectSeparator=Oee;exports.SelectTrigger=xA;exports.SelectValue=yA;exports.Show=iv;exports.Skeleton=Nee;exports.Stack=Iee;exports.Stepper=Lee;exports.StepperContainer=_A;exports.StepperContent=AA;exports.StepperList=TA;exports.StepperTrigger=$A;exports.Switch=Fee;exports.TABLE_PAGE_SIZES=Jd;exports.TabContent=zee;exports.TabList=Hee;exports.TabTrigger=Uee;exports.Table=Bee;exports.TableBody=OA;exports.TableCaption=jee;exports.TableCell=IA;exports.TableFooter=qee;exports.TableHead=NA;exports.TableHeader=MA;exports.TablePagination=Vee;exports.TableRoot=DA;exports.TableRow=Ev;exports.Tabs=Wee;exports.Tag=vv;exports.Textarea=Yee;exports.ThemeProvider=y5;exports.Timeline=Zee;exports.TimelineItemContent=qA;exports.TimelineItemDot=FA;exports.TimelineListItem=LA;exports.TimelineRoot=kA;exports.Toast=jA;exports.ToastIcons=VA;exports.Toaster=ite;exports.Tooltip=Lte;exports.TooltipContent=rD;exports.TooltipProvider=JA;exports.TooltipRoot=eD;exports.TooltipTrigger=tD;exports.Tree=uie;exports.TreeItem=vO;exports.TreeItemContent=gO;exports.TreeItemIndicator=bO;exports.TreeItemLabel=yO;exports.TreeRoot=hO;exports.UploadAcceptedFiles=v_;exports.UploadContent=m_;exports.UploadItem=b_;exports.UploadRejectedFiles=g_;exports.UploadRoot=f_;exports.UploadTrigger=p_;exports.click=BW;exports.cn=le;exports.createSafeContext=cc;exports.ensureReactElement=P6;exports.extractInitials=uS;exports.getFormData=S6;exports.mergeRefs=R6;exports.monthNames=ov;exports.tagVariants=_$;exports.toast=ste;exports.twMerge=B1;exports.type=VW;exports.useArray=nY;exports.useAsync=oY;exports.useClickOutside=iY;exports.useClipboard=aY;exports.useControllableState=ut;exports.useDebouncedCallback=sY;exports.useDebouncedValue=lY;exports.useDisclosure=uY;exports.useDocumentTitle=cY;exports.useEventListener=V_;exports.useFocusTrap=MY;exports.useForm=ZG;exports.useFormField=vc;exports.useHotkey=K_;exports.useHover=vY;exports.useIsVisible=gY;exports.useLocalStorage=bY;exports.useMediaQuery=yY;exports.useMemoizedFn=xY;exports.useMutation=wY;exports.useObject=EY;exports.usePagination=Ag;exports.usePortal=CY;exports.usePreventCloseWindow=RY;exports.useRangePagination=W_;exports.useSelection=PY;exports.useStep=SY;exports.useTheme=_P;exports.useThemeProps=ac;exports.useToastStore=Qg;exports.useToggle=H_;exports.weeksDays=l_;