@agilys-system/design-system 1.1.8 → 1.1.10

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),lr=require("react-dom");function js(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=js(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Os(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=js(e))&&(s&&(s+=" "),s+=t);return s}const ms=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ps=Os,ce=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return ps(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(c=>{const m=r==null?void 0:r[c],p=a==null?void 0:a[c];if(m===null)return null;const x=ms(m)||ms(p);return n[c][x]}),l=r&&Object.entries(r).reduce((c,m)=>{let[p,x]=m;return x===void 0||(c[p]=x),c},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,m)=>{let{class:p,className:x,...R}=m;return Object.entries(R).every(C=>{let[j,v]=C;return Array.isArray(v)?v.includes({...a,...l}[j]):{...a,...l}[j]===v})?[...c,p,x]:c},[]);return ps(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},Er="-",fa=e=>{const t=ma(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const l=i.split(Er);return l[0]===""&&l.length!==1&&l.shift(),Ys(l,t)||ha(i)},getConflictingClassGroupIds:(i,l)=>{const d=r[i]||[];return l&&s[i]?[...d,...s[i]]:d}}},Ys=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?Ys(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Er);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},ys=/^\[(.+)\]$/,ha=e=>{if(ys.test(e)){const t=ys.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ma=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return ya(Object.entries(e.classGroups),r).forEach(([a,i])=>{Yr(i,s,a,t)}),s},Yr=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:gs(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(pa(n)){Yr(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Yr(i,gs(t,a),r,s)})})},gs=(e,t)=>{let r=e;return t.split(Er).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},pa=e=>e.isThemeGetter,ya=(e,t)=>t?e.map(([r,s])=>{const n=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[r,n]}):e,ga=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,s=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ts="!",xa=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=l=>{const d=[];let c=0,m=0,p;for(let v=0;v<l.length;v++){let w=l[v];if(c===0){if(w===n&&(s||l.slice(v,v+a)===t)){d.push(l.slice(m,v)),m=v+a;continue}if(w==="/"){p=v;continue}}w==="["?c++:w==="]"&&c--}const x=d.length===0?l:l.substring(m),R=x.startsWith(Ts),C=R?x.substring(1):x,j=p&&p>m?p-m:void 0;return{modifiers:d,hasImportantModifier:R,baseClassName:C,maybePostfixModifierPosition:j}};return r?l=>r({className:l,parseClassName:i}):i},ba=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},va=e=>({cache:ga(e.cacheSize),parseClassName:xa(e),...fa(e)}),wa=/\s+/,_a=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(wa);let l="";for(let d=i.length-1;d>=0;d-=1){const c=i[d],{modifiers:m,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:R}=r(c);let C=!!R,j=s(C?x.substring(0,R):x);if(!j){if(!C){l=c+(l.length>0?" "+l:l);continue}if(j=s(x),!j){l=c+(l.length>0?" "+l:l);continue}C=!1}const v=ba(m).join(":"),w=p?v+Ts:v,T=w+j;if(a.includes(T))continue;a.push(T);const H=n(j,C);for(let M=0;M<H.length;++M){const I=H[M];a.push(w+I)}l=c+(l.length>0?" "+l:l)}return l};function ka(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Rs(t))&&(s&&(s+=" "),s+=r);return s}const Rs=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=Rs(e[s]))&&(r&&(r+=" "),r+=t);return r};function Sa(e,...t){let r,s,n,a=i;function i(d){const c=t.reduce((m,p)=>p(m),e());return r=va(c),s=r.cache.get,n=r.cache.set,a=l,l(d)}function l(d){const c=s(d);if(c)return c;const m=_a(d,r);return n(d,m),m}return function(){return a(ka.apply(null,arguments))}}const Z=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Cs=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ma=/^\d+\/\d+$/,Na=new Set(["px","full","screen"]),Da=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ja=/\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$/,Oa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ya=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ta=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ht(e)||Na.has(e)||Ma.test(e),Je=e=>gt(e,"length",Aa),ht=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>gt(e,"number",ht),Dt=e=>!!e&&Number.isInteger(Number(e)),Ra=e=>e.endsWith("%")&&ht(e.slice(0,-1)),O=e=>Cs.test(e),Qe=e=>Da.test(e),Ca=new Set(["length","size","percentage"]),Pa=e=>gt(e,Ca,Ps),Ia=e=>gt(e,"position",Ps),Wa=new Set(["image","url"]),La=e=>gt(e,Wa,Fa),za=e=>gt(e,"",Ea),jt=()=>!0,gt=(e,t,r)=>{const s=Cs.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},Aa=e=>ja.test(e)&&!Oa.test(e),Ps=()=>!1,Ea=e=>Ya.test(e),Fa=e=>Ta.test(e),Va=()=>{const e=Z("colors"),t=Z("spacing"),r=Z("blur"),s=Z("brightness"),n=Z("borderColor"),a=Z("borderRadius"),i=Z("borderSpacing"),l=Z("borderWidth"),d=Z("contrast"),c=Z("grayscale"),m=Z("hueRotate"),p=Z("invert"),x=Z("gap"),R=Z("gradientColorStops"),C=Z("gradientColorStopPositions"),j=Z("inset"),v=Z("margin"),w=Z("opacity"),T=Z("padding"),H=Z("saturate"),M=Z("scale"),I=Z("sepia"),E=Z("skew"),K=Z("space"),N=Z("translate"),S=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,t],b=()=>[O,t],Se=()=>["",Le,Je],oe=()=>["auto",ht,O],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ge=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",O],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[ht,O];return{cacheSize:500,separator:":",theme:{colors:[jt],spacing:[Le,Je],blur:["none","",Qe,O],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Qe,O],borderSpacing:b(),borderWidth:Se(),contrast:ne(),grayscale:B(),hueRotate:ne(),invert:B(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Ra,Je],inset:G(),margin:G(),opacity:ne(),padding:b(),saturate:ne(),scale:ne(),sepia:B(),skew:ne(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[Qe]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"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"],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:[...fe(),O]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dt,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Dt,O]}],"grid-cols":[{"grid-cols":[jt]}],"col-start-end":[{col:["auto",{span:["full",Dt,O]},O]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[jt]}],"row-start-end":[{row:["auto",{span:[Dt,O]},O]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...he()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...he(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...he(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[Qe]},Qe]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Qe,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mr]}],"font-family":[{font:[jt]}],"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:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",ht,Mr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Je]}],"underline-offset":[{"underline-offset":["auto",Le,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),Ia]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},La]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...ge(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:ge()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ge()]}],"outline-offset":[{"outline-offset":[Le,O]}],"outline-w":[{outline:[Le,Je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Le,Je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qe,za]}],"shadow-color":[{shadow:[jt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Qe,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[H]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Dt,O]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Je,Mr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Ua=Sa(Va);function k(...e){return Ua(Os(e))}const Is=(e,t)=>{if(typeof e=="string"){t&&(e=e.split(t).join(" ")),e=e.toLowerCase();const s=e.charAt(0).toUpperCase(),n=e.slice(1);return s+n}return String(e)};function U(e){return typeof e=="string"?Is(e):e}const Lt=u.forwardRef(({className:e,label:t,...r},s)=>o.jsxs("svg",{ref:s,viewBox:"0 0 24 24",fill:"none",role:t?"status":void 0,"aria-label":t,"aria-hidden":t?void 0:!0,className:k("size-4 shrink-0 animate-spin [animation-duration:800ms]",e),...r,children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2.5"}),o.jsx("path",{d:"M12 3a9 9 0 0 1 9 9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})]}));Lt.displayName="Spinner";const Ws=ce("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),Ha={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},A=u.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const l=s??Ha[t??"body"];return u.createElement(l,{ref:i,className:k(Ws({variant:t,weight:r}),e),...a},n)});A.displayName="Text";const Ls=ce("inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3",md:"h-10 px-4",lg:"h-11 px-6",icon:"size-10 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),Ga={sm:"bodySm",md:"body",lg:"body",icon:"body"},zs=u.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:l,...d},c)=>{const m=r==="icon",p=Ga[r??"md"];return o.jsxs("button",{ref:c,className:k(Ls({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&o.jsx(Lt,{className:"size-[18px]"}),!n&&a&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:a}),m?o.jsx("span",{className:"inline-flex shrink-0",children:l}):o.jsx(A,{as:"span",variant:p,className:"text-inherit",children:U(l)})]})});zs.displayName="Button";const As=ce("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2",ghost:"rounded bg-white px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"},{variant:"ghost",status:"default",class:"text-agilys-primary"},{variant:"ghost",status:"success",class:"text-success-60"},{variant:"ghost",status:"alert",class:"text-warning-dark"},{variant:"ghost",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),$a={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},Es=u.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,backgroundColor:n,textColor:a,style:i,...l},d)=>o.jsxs("span",{ref:d,className:k(As({variant:t,status:r}),e),style:{...n?{backgroundColor:n}:void 0,...a?{color:a}:void 0,...i},...l,children:[t==="dot"&&o.jsx("span",{className:k("size-2 shrink-0 rounded-full",$a[r??"default"]),style:n?{backgroundColor:n}:void 0,"aria-hidden":"true"}),s&&(typeof s=="string"?o.jsx(A,{as:"span",variant:"body",className:"text-inherit",children:U(s)}):s)]}));Es.displayName="Badge";const Fs=ce("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),Ba={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function Za(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function qa(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ja(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),o.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function Qa(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function Ka(){return o.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const Xa={success:o.jsx(qa,{}),warning:o.jsx(Ja,{}),error:o.jsx(Qa,{}),info:o.jsx(Za,{})},dr=u.forwardRef(({className:e,variant:t="default",icon:r,title:s,description:n,action:a,onClose:i,children:l,...d},c)=>{const m=t??"default",p=r===void 0?Xa[m]:r,x=Ba[m];return o.jsxs("div",{ref:c,className:k(Fs({variant:t}),e),...d,children:[p&&o.jsx("span",{className:k("size-6 shrink-0",x),"aria-hidden":"true",children:p}),o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&o.jsx(A,{as:"div",variant:"body",weight:"semibold",className:x,children:U(s)}),n&&o.jsx(A,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:U(n)}),l]}),a&&o.jsx("div",{className:"flex shrink-0 items-center",children:a}),i&&o.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar",className:k("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",x),children:o.jsx(Ka,{})})]})});dr.displayName="Card";var Vs={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xs=u.createContext&&u.createContext(Vs),ei=["attr","size","title"];function ti(e,t){if(e==null)return{};var r,s,n=ri(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ri(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Kt.apply(null,arguments)}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,s)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(s){si(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function si(e,t,r){return(t=ni(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ni(e){var t=ai(e,"string");return typeof t=="symbol"?t:t+""}function ai(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Us(e){return e&&e.map((t,r)=>u.createElement(t.tag,Xt({key:r},t.attr),Us(t.child)))}function xt(e){return t=>u.createElement(ii,Kt({attr:Xt({},e.attr)},t),Us(e.child))}function ii(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=ti(e,ei),l=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),u.createElement("svg",Kt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:Xt(Xt({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&u.createElement("title",null,a),e.children)};return xs!==void 0?u.createElement(xs.Consumer,null,r=>t(r)):t(Vs)}function Tr(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Hs(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function oi(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function li(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function di(e){return xt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},child:[]}]})(e)}function ci(e){return xt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}//! moment.js
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),lr=require("react-dom");function js(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=js(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Os(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=js(e))&&(s&&(s+=" "),s+=t);return s}const ms=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ps=Os,ce=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return ps(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(c=>{const m=r==null?void 0:r[c],p=a==null?void 0:a[c];if(m===null)return null;const x=ms(m)||ms(p);return n[c][x]}),l=r&&Object.entries(r).reduce((c,m)=>{let[p,x]=m;return x===void 0||(c[p]=x),c},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,m)=>{let{class:p,className:x,...T}=m;return Object.entries(T).every(C=>{let[j,v]=C;return Array.isArray(v)?v.includes({...a,...l}[j]):{...a,...l}[j]===v})?[...c,p,x]:c},[]);return ps(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},Er="-",fa=e=>{const t=ma(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const l=i.split(Er);return l[0]===""&&l.length!==1&&l.shift(),Ys(l,t)||ha(i)},getConflictingClassGroupIds:(i,l)=>{const d=r[i]||[];return l&&s[i]?[...d,...s[i]]:d}}},Ys=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?Ys(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Er);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},ys=/^\[(.+)\]$/,ha=e=>{if(ys.test(e)){const t=ys.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ma=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return ya(Object.entries(e.classGroups),r).forEach(([a,i])=>{Yr(i,s,a,t)}),s},Yr=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:gs(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(pa(n)){Yr(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Yr(i,gs(t,a),r,s)})})},gs=(e,t)=>{let r=e;return t.split(Er).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},pa=e=>e.isThemeGetter,ya=(e,t)=>t?e.map(([r,s])=>{const n=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[r,n]}):e,ga=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,s=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ts="!",xa=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=l=>{const d=[];let c=0,m=0,p;for(let v=0;v<l.length;v++){let w=l[v];if(c===0){if(w===n&&(s||l.slice(v,v+a)===t)){d.push(l.slice(m,v)),m=v+a;continue}if(w==="/"){p=v;continue}}w==="["?c++:w==="]"&&c--}const x=d.length===0?l:l.substring(m),T=x.startsWith(Ts),C=T?x.substring(1):x,j=p&&p>m?p-m:void 0;return{modifiers:d,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:j}};return r?l=>r({className:l,parseClassName:i}):i},ba=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},va=e=>({cache:ga(e.cacheSize),parseClassName:xa(e),...fa(e)}),wa=/\s+/,_a=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(wa);let l="";for(let d=i.length-1;d>=0;d-=1){const c=i[d],{modifiers:m,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:T}=r(c);let C=!!T,j=s(C?x.substring(0,T):x);if(!j){if(!C){l=c+(l.length>0?" "+l:l);continue}if(j=s(x),!j){l=c+(l.length>0?" "+l:l);continue}C=!1}const v=ba(m).join(":"),w=p?v+Ts:v,R=w+j;if(a.includes(R))continue;a.push(R);const H=n(j,C);for(let M=0;M<H.length;++M){const I=H[M];a.push(w+I)}l=c+(l.length>0?" "+l:l)}return l};function ka(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Rs(t))&&(s&&(s+=" "),s+=r);return s}const Rs=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=Rs(e[s]))&&(r&&(r+=" "),r+=t);return r};function Sa(e,...t){let r,s,n,a=i;function i(d){const c=t.reduce((m,p)=>p(m),e());return r=va(c),s=r.cache.get,n=r.cache.set,a=l,l(d)}function l(d){const c=s(d);if(c)return c;const m=_a(d,r);return n(d,m),m}return function(){return a(ka.apply(null,arguments))}}const Z=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Cs=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ma=/^\d+\/\d+$/,Na=new Set(["px","full","screen"]),Da=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ja=/\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$/,Oa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ya=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ta=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ht(e)||Na.has(e)||Ma.test(e),Je=e=>gt(e,"length",Aa),ht=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>gt(e,"number",ht),Dt=e=>!!e&&Number.isInteger(Number(e)),Ra=e=>e.endsWith("%")&&ht(e.slice(0,-1)),O=e=>Cs.test(e),Qe=e=>Da.test(e),Ca=new Set(["length","size","percentage"]),Pa=e=>gt(e,Ca,Ps),Ia=e=>gt(e,"position",Ps),Wa=new Set(["image","url"]),La=e=>gt(e,Wa,Fa),za=e=>gt(e,"",Ea),jt=()=>!0,gt=(e,t,r)=>{const s=Cs.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},Aa=e=>ja.test(e)&&!Oa.test(e),Ps=()=>!1,Ea=e=>Ya.test(e),Fa=e=>Ta.test(e),Va=()=>{const e=Z("colors"),t=Z("spacing"),r=Z("blur"),s=Z("brightness"),n=Z("borderColor"),a=Z("borderRadius"),i=Z("borderSpacing"),l=Z("borderWidth"),d=Z("contrast"),c=Z("grayscale"),m=Z("hueRotate"),p=Z("invert"),x=Z("gap"),T=Z("gradientColorStops"),C=Z("gradientColorStopPositions"),j=Z("inset"),v=Z("margin"),w=Z("opacity"),R=Z("padding"),H=Z("saturate"),M=Z("scale"),I=Z("sepia"),E=Z("skew"),K=Z("space"),N=Z("translate"),S=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,t],b=()=>[O,t],Se=()=>["",Le,Je],oe=()=>["auto",ht,O],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ge=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",O],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[ht,O];return{cacheSize:500,separator:":",theme:{colors:[jt],spacing:[Le,Je],blur:["none","",Qe,O],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Qe,O],borderSpacing:b(),borderWidth:Se(),contrast:ne(),grayscale:B(),hueRotate:ne(),invert:B(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Ra,Je],inset:G(),margin:G(),opacity:ne(),padding:b(),saturate:ne(),scale:ne(),sepia:B(),skew:ne(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[Qe]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"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"],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:[...fe(),O]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dt,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Dt,O]}],"grid-cols":[{"grid-cols":[jt]}],"col-start-end":[{col:["auto",{span:["full",Dt,O]},O]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[jt]}],"row-start-end":[{row:["auto",{span:[Dt,O]},O]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...he()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...he(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...he(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[Qe]},Qe]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Qe,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mr]}],"font-family":[{font:[jt]}],"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:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",ht,Mr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Je]}],"underline-offset":[{"underline-offset":["auto",Le,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),Ia]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},La]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...ge(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:ge()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ge()]}],"outline-offset":[{"outline-offset":[Le,O]}],"outline-w":[{outline:[Le,Je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Le,Je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qe,za]}],"shadow-color":[{shadow:[jt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Qe,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[H]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Dt,O]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Je,Mr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Ua=Sa(Va);function k(...e){return Ua(Os(e))}const Is=(e,t)=>{if(typeof e=="string"){t&&(e=e.split(t).join(" ")),e=e.toLowerCase();const s=e.charAt(0).toUpperCase(),n=e.slice(1);return s+n}return String(e)};function U(e){return typeof e=="string"?Is(e):e}const Lt=u.forwardRef(({className:e,label:t,...r},s)=>o.jsxs("svg",{ref:s,viewBox:"0 0 24 24",fill:"none",role:t?"status":void 0,"aria-label":t,"aria-hidden":t?void 0:!0,className:k("size-4 shrink-0 animate-spin [animation-duration:800ms]",e),...r,children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2.5"}),o.jsx("path",{d:"M12 3a9 9 0 0 1 9 9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})]}));Lt.displayName="Spinner";const Ws=ce("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),Ha={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},A=u.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const l=s??Ha[t??"body"];return u.createElement(l,{ref:i,className:k(Ws({variant:t,weight:r}),e),...a},n)});A.displayName="Text";const Ls=ce("inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3",md:"h-10 px-4",lg:"h-11 px-6",icon:"size-10 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),Ga={sm:"bodySm",md:"body",lg:"body",icon:"body"},zs=u.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:l,...d},c)=>{const m=r==="icon",p=Ga[r??"md"];return o.jsxs("button",{ref:c,className:k(Ls({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&o.jsx(Lt,{className:"size-[18px]"}),!n&&a&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:a}),m?o.jsx("span",{className:"inline-flex shrink-0",children:l}):o.jsx(A,{as:"span",variant:p,className:"text-inherit",children:U(l)})]})});zs.displayName="Button";const As=ce("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2",ghost:"rounded bg-white px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"},{variant:"ghost",status:"default",class:"text-agilys-primary"},{variant:"ghost",status:"success",class:"text-success-60"},{variant:"ghost",status:"alert",class:"text-warning-dark"},{variant:"ghost",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),$a={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},Es=u.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,backgroundColor:n,textColor:a,style:i,...l},d)=>o.jsxs("span",{ref:d,className:k(As({variant:t,status:r}),e),style:{...n?{backgroundColor:n}:void 0,...a?{color:a}:void 0,...i},...l,children:[t==="dot"&&o.jsx("span",{className:k("size-2 shrink-0 rounded-full",$a[r??"default"]),style:n?{backgroundColor:n}:void 0,"aria-hidden":"true"}),s&&(typeof s=="string"?o.jsx(A,{as:"span",variant:"body",className:"text-inherit",children:U(s)}):s)]}));Es.displayName="Badge";const Fs=ce("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),Ba={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function Za(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function qa(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ja(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),o.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),o.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function Qa(){return o.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function Ka(){return o.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const Xa={success:o.jsx(qa,{}),warning:o.jsx(Ja,{}),error:o.jsx(Qa,{}),info:o.jsx(Za,{})},dr=u.forwardRef(({className:e,variant:t="default",icon:r,title:s,noIcon:n=!1,description:a,action:i,onClose:l,children:d,...c},m)=>{const p=t??"default",x=r===void 0?Xa[p]:r,T=Ba[p];return o.jsxs("div",{ref:m,className:k(Fs({variant:t}),e),...c,children:[!n&&x&&o.jsx("span",{className:k("size-6 shrink-0",T),"aria-hidden":"true",children:x}),o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&o.jsx(A,{as:"div",variant:"body",weight:"semibold",className:T,children:U(s)}),a&&o.jsx(A,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:U(a)}),d]}),i&&o.jsx("div",{className:"flex shrink-0 items-center",children:i}),l&&o.jsx("button",{type:"button",onClick:l,"aria-label":"Fechar",className:k("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",T),children:o.jsx(Ka,{})})]})});dr.displayName="Card";var Vs={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xs=u.createContext&&u.createContext(Vs),ei=["attr","size","title"];function ti(e,t){if(e==null)return{};var r,s,n=ri(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ri(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Kt.apply(null,arguments)}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,s)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(s){si(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function si(e,t,r){return(t=ni(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ni(e){var t=ai(e,"string");return typeof t=="symbol"?t:t+""}function ai(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Us(e){return e&&e.map((t,r)=>u.createElement(t.tag,Xt({key:r},t.attr),Us(t.child)))}function xt(e){return t=>u.createElement(ii,Kt({attr:Xt({},e.attr)},t),Us(e.child))}function ii(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=ti(e,ei),l=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),u.createElement("svg",Kt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:Xt(Xt({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&u.createElement("title",null,a),e.children)};return xs!==void 0?u.createElement(xs.Consumer,null,r=>t(r)):t(Vs)}function Tr(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Hs(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function oi(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function li(e){return xt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function di(e){return xt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},child:[]}]})(e)}function ci(e){return xt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
@@ -7,7 +7,7 @@ var Gs;function h(){return Gs.apply(null,arguments)}function ui(e){Gs=e}function
7
7
  [`+a+"] ";for(i in arguments[0])F(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}Bs(e+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
9
  `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var ws={};function Zs(e,t){h.deprecationHandler!=null&&h.deprecationHandler(e,t),ws[e]||(Bs(t),ws[e]=!0)}h.suppressDeprecationWarnings=!1;h.deprecationHandler=null;function Ce(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function hi(e){var t,r;for(r in e)F(e,r)&&(t=e[r],Ce(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Cr(e,t){var r=Ke({},e),s;for(s in t)F(t,s)&&(ot(e[s])&&ot(t[s])?(r[s]={},Ke(r[s],e[s]),Ke(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)F(e,s)&&!F(t,s)&&ot(e[s])&&(r[s]=Ke({},r[s]));return r}function Hr(e){e!=null&&this.set(e)}var Pr;Object.keys?Pr=Object.keys:Pr=function(e){var t,r=[];for(t in e)F(e,t)&&r.push(t);return r};var mi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pi(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return Ce(s)?s.call(t,r):s}function Te(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var Gr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$t=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Dr={},mt={};function _(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(mt[e]=n),t&&(mt[t[0]]=function(){return Te(n.apply(this,arguments),t[1],t[2])}),r&&(mt[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function yi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function gi(e){var t=e.match(Gr),r,s;for(r=0,s=t.length;r<s;r++)mt[t[r]]?t[r]=mt[t[r]]:t[r]=yi(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=Ce(t[i])?t[i].call(n,e):t[i];return a}}function qt(e,t){return e.isValid()?(t=qs(t,e.localeData()),Dr[t]=Dr[t]||gi(t),Dr[t](e)):e.localeData().invalidDate()}function qs(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for($t.lastIndex=0;r>=0&&$t.test(e);)e=e.replace($t,s),$t.lastIndex=0,r-=1;return e}var xi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function bi(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Gr).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var vi="Invalid date";function wi(){return this._invalidDate}var _i="%d",ki=/\d{1,2}/;function Si(e){return this._ordinal.replace("%d",e)}var Mi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ni(e,t,r,s){var n=this._relativeTime[r];return Ce(n)?n(e,t,r,s):n.replace(/%d/i,e)}function Di(e,t){var r=this._relativeTime[e>0?"future":"past"];return Ce(r)?r(t):r.replace(/%s/i,t)}var _s={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ye(e){return typeof e=="string"?_s[e]||_s[e.toLowerCase()]:void 0}function $r(e){var t={},r,s;for(s in e)F(e,s)&&(r=ye(s),r&&(t[r]=e[s]));return t}var ji={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Oi(e){var t=[],r;for(r in e)F(e,r)&&t.push({unit:r,priority:ji[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var Js=/\d/,ue=/\d\d/,Qs=/\d{3}/,Br=/\d{4}/,ur=/[+-]?\d{6}/,J=/\d\d?/,Ks=/\d\d\d\d?/,Xs=/\d\d\d\d\d\d?/,fr=/\d{1,3}/,Zr=/\d{1,4}/,hr=/[+-]?\d{1,6}/,bt=/\d+/,mr=/[+-]?\d+/,Yi=/Z|[+-]\d\d:?\d\d/gi,pr=/Z|[+-]\d\d(?::?\d\d)?/gi,Ti=/[+-]?\d+(\.\d{1,3})?/,Et=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vt=/^[1-9]\d?/,qr=/^([1-9]\d|\d)/,er;er={};function g(e,t,r){er[e]=Ce(t)?t:function(s,n){return s&&r?r:t}}function Ri(e,t){return F(er,e)?er[e](t._strict,t._locale):new RegExp(Ci(e))}function Ci(e){return Ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function Ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function P(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=me(t)),r}var Ir={};function $(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),He(t)&&(s=function(a,i){i[t]=P(a)}),n=e.length,r=0;r<n;r++)Ir[e[r]]=s}function Ft(e,t){$(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function Pi(e,t,r){t!=null&&F(Ir,e)&&Ir[e](t,r._a,r,e)}function yr(e){return e%4===0&&e%100!==0||e%400===0}var ie=0,Ee=1,Ye=2,se=3,ve=4,Fe=5,it=6,Ii=7,Wi=8;_("Y",0,0,function(){var e=this.year();return e<=9999?Te(e,4):"+"+e});_(0,["YY",2],0,function(){return this.year()%100});_(0,["YYYY",4],0,"year");_(0,["YYYYY",5],0,"year");_(0,["YYYYYY",6,!0],0,"year");g("Y",mr);g("YY",J,ue);g("YYYY",Zr,Br);g("YYYYY",hr,ur);g("YYYYYY",hr,ur);$(["YYYYY","YYYYYY"],ie);$("YYYY",function(e,t){t[ie]=e.length===2?h.parseTwoDigitYear(e):P(e)});$("YY",function(e,t){t[ie]=h.parseTwoDigitYear(e)});$("Y",function(e,t){t[ie]=parseInt(e,10)});function Rt(e){return yr(e)?366:365}h.parseTwoDigitYear=function(e){return P(e)+(P(e)>68?1900:2e3)};var en=wt("FullYear",!0);function Li(){return yr(this.year())}function wt(e,t){return function(r){return r!=null?(tn(this,e,r),h.updateOffset(this,t),this):Ct(this,e)}}function Ct(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function tn(e,t,r){var s,n,a,i,l;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),l=e.date(),l=l===29&&i===1&&!yr(a)?28:l,n?s.setUTCFullYear(a,i,l):s.setFullYear(a,i,l)}}function zi(e){return e=ye(e),Ce(this[e])?this[e]():this}function Ai(e,t){if(typeof e=="object"){e=$r(e);var r=Oi(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=ye(e),Ce(this[e]))return this[e](t);return this}function Ei(e,t){return(e%t+t)%t}var re;Array.prototype.indexOf?re=Array.prototype.indexOf:re=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Jr(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ei(t,12);return e+=(t-r)/12,r===1?yr(e)?29:28:31-r%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1});_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});_("MMMM",0,0,function(e){return this.localeData().months(this,e)});g("M",J,vt);g("MM",J,ue);g("MMM",function(e,t){return t.monthsShortRegex(e)});g("MMMM",function(e,t){return t.monthsRegex(e)});$(["M","MM"],function(e,t){t[Ee]=P(e)-1});$(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[Ee]=n:Y(r).invalidMonth=e});var Fi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),sn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Vi=Et,Ui=Et;function Hi(e,t){return e?we(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||sn).test(t)?"format":"standalone"][e.month()]:we(this._months)?this._months:this._months.standalone}function Gi(e,t){return e?we(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[sn.test(t)?"format":"standalone"][e.month()]:we(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $i(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=Re([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=re.call(this._shortMonthsParse,i),n!==-1?n:null):(n=re.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=re.call(this._shortMonthsParse,i),n!==-1?n:(n=re.call(this._longMonthsParse,i),n!==-1?n:null)):(n=re.call(this._longMonthsParse,i),n!==-1?n:(n=re.call(this._shortMonthsParse,i),n!==-1?n:null))}function Bi(e,t,r){var s,n,a;if(this._monthsParseExact)return $i.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=Re([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function nn(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=P(t);else if(t=e.localeData().monthsParse(t),!He(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,Jr(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function an(e){return e!=null?(nn(this,e),h.updateOffset(this,!0),this):Ct(this,"Month")}function Zi(){return Jr(this.year(),this.month())}function qi(e){return this._monthsParseExact?(F(this,"_monthsRegex")||on.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(F(this,"_monthsShortRegex")||(this._monthsShortRegex=Vi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ji(e){return this._monthsParseExact?(F(this,"_monthsRegex")||on.call(this),e?this._monthsStrictRegex:this._monthsRegex):(F(this,"_monthsRegex")||(this._monthsRegex=Ui),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function on(){function e(d,c){return c.length-d.length}var t=[],r=[],s=[],n,a,i,l;for(n=0;n<12;n++)a=Re([2e3,n]),i=Ve(this.monthsShort(a,"")),l=Ve(this.months(a,"")),t.push(i),r.push(l),s.push(l),s.push(i);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qi(e,t,r,s,n,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,s,n,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,s,n,a,i),l}function Pt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function tr(e,t,r){var s=7+t-r,n=(7+Pt(e,0,s).getUTCDay()-t)%7;return-n+s-1}function ln(e,t,r,s,n){var a=(7+r-s)%7,i=tr(e,s,n),l=1+7*(t-1)+a+i,d,c;return l<=0?(d=e-1,c=Rt(d)+l):l>Rt(e)?(d=e+1,c=l-Rt(e)):(d=e,c=l),{year:d,dayOfYear:c}}function It(e,t,r){var s=tr(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+Ue(i,t,r)):n>Ue(e.year(),t,r)?(a=n-Ue(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function Ue(e,t,r){var s=tr(e,t,r),n=tr(e+1,t,r);return(Rt(e)-s+n)/7}_("w",["ww",2],"wo","week");_("W",["WW",2],"Wo","isoWeek");g("w",J,vt);g("ww",J,ue);g("W",J,vt);g("WW",J,ue);Ft(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=P(e)});function Ki(e){return It(e,this._week.dow,this._week.doy).week}var Xi={dow:0,doy:6};function eo(){return this._week.dow}function to(){return this._week.doy}function ro(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function so(e){var t=It(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_("d",0,"do","day");_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});_("e",0,0,"weekday");_("E",0,0,"isoWeekday");g("d",J);g("e",J);g("E",J);g("dd",function(e,t){return t.weekdaysMinRegex(e)});g("ddd",function(e,t){return t.weekdaysShortRegex(e)});g("dddd",function(e,t){return t.weekdaysRegex(e)});Ft(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:Y(r).invalidWeekday=e});Ft(["d","e","E"],function(e,t,r,s){t[s]=P(e)});function no(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ao(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Qr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var io="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lo=Et,co=Et,uo=Et;function fo(e,t){var r=we(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Qr(r,this._week.dow):e?r[e.day()]:r}function ho(e){return e===!0?Qr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function mo(e){return e===!0?Qr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function po(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=Re([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=re.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=re.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=re.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=re.call(this._weekdaysParse,i),n!==-1||(n=re.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=re.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=re.call(this._shortWeekdaysParse,i),n!==-1||(n=re.call(this._weekdaysParse,i),n!==-1)?n:(n=re.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=re.call(this._minWeekdaysParse,i),n!==-1||(n=re.call(this._weekdaysParse,i),n!==-1)?n:(n=re.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function yo(e,t,r){var s,n,a;if(this._weekdaysParseExact)return po.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=Re([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function go(e){if(!this.isValid())return e!=null?this:NaN;var t=Ct(this,"Day");return e!=null?(e=no(e,this.localeData()),this.add(e-t,"d")):t}function xo(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function bo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ao(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function vo(e){return this._weekdaysParseExact?(F(this,"_weekdaysRegex")||Kr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(F(this,"_weekdaysRegex")||(this._weekdaysRegex=lo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function wo(e){return this._weekdaysParseExact?(F(this,"_weekdaysRegex")||Kr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(F(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=co),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _o(e){return this._weekdaysParseExact?(F(this,"_weekdaysRegex")||Kr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(F(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=uo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kr(){function e(m,p){return p.length-m.length}var t=[],r=[],s=[],n=[],a,i,l,d,c;for(a=0;a<7;a++)i=Re([2e3,1]).day(a),l=Ve(this.weekdaysMin(i,"")),d=Ve(this.weekdaysShort(i,"")),c=Ve(this.weekdays(i,"")),t.push(l),r.push(d),s.push(c),n.push(l),n.push(d),n.push(c);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xr(){return this.hours()%12||12}function ko(){return this.hours()||24}_("H",["HH",2],0,"hour");_("h",["hh",2],0,Xr);_("k",["kk",2],0,ko);_("hmm",0,0,function(){return""+Xr.apply(this)+Te(this.minutes(),2)});_("hmmss",0,0,function(){return""+Xr.apply(this)+Te(this.minutes(),2)+Te(this.seconds(),2)});_("Hmm",0,0,function(){return""+this.hours()+Te(this.minutes(),2)});_("Hmmss",0,0,function(){return""+this.hours()+Te(this.minutes(),2)+Te(this.seconds(),2)});function cn(e,t){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}cn("a",!0);cn("A",!1);function un(e,t){return t._meridiemParse}g("a",un);g("A",un);g("H",J,qr);g("h",J,vt);g("k",J,vt);g("HH",J,ue);g("hh",J,ue);g("kk",J,ue);g("hmm",Ks);g("hmmss",Xs);g("Hmm",Ks);g("Hmmss",Xs);$(["H","HH"],se);$(["k","kk"],function(e,t,r){var s=P(e);t[se]=s===24?0:s});$(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});$(["h","hh"],function(e,t,r){t[se]=P(e),Y(r).bigHour=!0});$("hmm",function(e,t,r){var s=e.length-2;t[se]=P(e.substr(0,s)),t[ve]=P(e.substr(s)),Y(r).bigHour=!0});$("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[se]=P(e.substr(0,s)),t[ve]=P(e.substr(s,2)),t[Fe]=P(e.substr(n)),Y(r).bigHour=!0});$("Hmm",function(e,t,r){var s=e.length-2;t[se]=P(e.substr(0,s)),t[ve]=P(e.substr(s))});$("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[se]=P(e.substr(0,s)),t[ve]=P(e.substr(s,2)),t[Fe]=P(e.substr(n))});function So(e){return(e+"").toLowerCase().charAt(0)==="p"}var Mo=/[ap]\.?m?\.?/i,No=wt("Hours",!0);function Do(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var fn={calendar:mi,longDateFormat:xi,invalidDate:vi,ordinal:_i,dayOfMonthOrdinalParse:ki,relativeTime:Mi,months:Fi,monthsShort:rn,week:Xi,weekdays:io,weekdaysMin:oo,weekdaysShort:dn,meridiemParse:Mo},Q={},Ot={},Wt;function jo(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function ks(e){return e&&e.toLowerCase().replace("_","-")}function Oo(e){for(var t=0,r,s,n,a;t<e.length;){for(a=ks(e[t]).split("-"),r=a.length,s=ks(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=gr(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&jo(a,s)>=r-1)break;r--}t++}return Wt}function Yo(e){return!!(e&&e.match("^[^/\\\\]*$"))}function gr(e){var t=null,r;if(Q[e]===void 0&&typeof module<"u"&&module&&module.exports&&Yo(e))try{t=Wt._abbr,r=require,r("./locale/"+e),et(t)}catch{Q[e]=null}return Q[e]}function et(e,t){var r;return e&&(le(t)?r=Ge(e):r=es(e,t),r?Wt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Wt._abbr}function es(e,t){if(t!==null){var r,s=fn;if(t.abbr=e,Q[e]!=null)Zs("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Q[e]._config;else if(t.parentLocale!=null)if(Q[t.parentLocale]!=null)s=Q[t.parentLocale]._config;else if(r=gr(t.parentLocale),r!=null)s=r._config;else return Ot[t.parentLocale]||(Ot[t.parentLocale]=[]),Ot[t.parentLocale].push({name:e,config:t}),null;return Q[e]=new Hr(Cr(s,t)),Ot[e]&&Ot[e].forEach(function(n){es(n.name,n.config)}),et(e),Q[e]}else return delete Q[e],null}function To(e,t){if(t!=null){var r,s,n=fn;Q[e]!=null&&Q[e].parentLocale!=null?Q[e].set(Cr(Q[e]._config,t)):(s=gr(e),s!=null&&(n=s._config),t=Cr(n,t),s==null&&(t.abbr=e),r=new Hr(t),r.parentLocale=Q[e],Q[e]=r),et(e)}else Q[e]!=null&&(Q[e].parentLocale!=null?(Q[e]=Q[e].parentLocale,e===et()&&et(e)):Q[e]!=null&&delete Q[e]);return Q[e]}function Ge(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Wt;if(!we(e)){if(t=gr(e),t)return t;e=[e]}return Oo(e)}function Ro(){return Pr(Q)}function ts(e){var t,r=e._a;return r&&Y(e).overflow===-2&&(t=r[Ee]<0||r[Ee]>11?Ee:r[Ye]<1||r[Ye]>Jr(r[ie],r[Ee])?Ye:r[se]<0||r[se]>24||r[se]===24&&(r[ve]!==0||r[Fe]!==0||r[it]!==0)?se:r[ve]<0||r[ve]>59?ve:r[Fe]<0||r[Fe]>59?Fe:r[it]<0||r[it]>999?it:-1,Y(e)._overflowDayOfYear&&(t<ie||t>Ye)&&(t=Ye),Y(e)._overflowWeeks&&t===-1&&(t=Ii),Y(e)._overflowWeekday&&t===-1&&(t=Wi),Y(e).overflow=t),e}var Co=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Po=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Io=/Z|[+-]\d\d(?::?\d\d)?/,Bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],jr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Wo=/^\/?Date\((-?\d+)/i,Lo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,zo={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hn(e){var t,r,s=e._i,n=Co.exec(s)||Po.exec(s),a,i,l,d,c=Bt.length,m=jr.length;if(n){for(Y(e).iso=!0,t=0,r=c;t<r;t++)if(Bt[t][1].exec(n[1])){i=Bt[t][0],a=Bt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=m;t<r;t++)if(jr[t][1].exec(n[3])){l=(n[2]||" ")+jr[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(n[4])if(Io.exec(n[4]))d="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(d||""),ss(e)}else e._isValid=!1}function Ao(e,t,r,s,n,a){var i=[Eo(e),rn.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Eo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Fo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Vo(e,t,r){if(e){var s=dn.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return Y(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Uo(e,t,r){if(e)return zo[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function mn(e){var t=Lo.exec(Fo(e._i)),r;if(t){if(r=Ao(t[4],t[3],t[2],t[5],t[6],t[7]),!Vo(t[1],r,e))return;e._a=r,e._tzm=Uo(t[8],t[9],t[10]),e._d=Pt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Y(e).rfc2822=!0}else e._isValid=!1}function Ho(e){var t=Wo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(hn(e),e._isValid===!1)delete e._isValid;else return;if(mn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:h.createFromInputFallback(e)}h.createFromInputFallback=pe("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ut(e,t,r){return e??t??r}function Go(e){var t=new Date(h.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function rs(e){var t,r,s=[],n,a,i;if(!e._d){for(n=Go(e),e._w&&e._a[Ye]==null&&e._a[Ee]==null&&$o(e),e._dayOfYear!=null&&(i=ut(e._a[ie],n[ie]),(e._dayOfYear>Rt(i)||e._dayOfYear===0)&&(Y(e)._overflowDayOfYear=!0),r=Pt(i,0,e._dayOfYear),e._a[Ee]=r.getUTCMonth(),e._a[Ye]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[se]===24&&e._a[ve]===0&&e._a[Fe]===0&&e._a[it]===0&&(e._nextDay=!0,e._a[se]=0),e._d=(e._useUTC?Pt:Qi).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[se]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Y(e).weekdayMismatch=!0)}}function $o(e){var t,r,s,n,a,i,l,d,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=ut(t.GG,e._a[ie],It(q(),1,4).year),s=ut(t.W,1),n=ut(t.E,1),(n<1||n>7)&&(d=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=It(q(),a,i),r=ut(t.gg,e._a[ie],c.year),s=ut(t.w,c.week),t.d!=null?(n=t.d,(n<0||n>6)&&(d=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(d=!0)):n=a),s<1||s>Ue(r,a,i)?Y(e)._overflowWeeks=!0:d!=null?Y(e)._overflowWeekday=!0:(l=ln(r,s,n,a,i),e._a[ie]=l.year,e._dayOfYear=l.dayOfYear)}h.ISO_8601=function(){};h.RFC_2822=function(){};function ss(e){if(e._f===h.ISO_8601){hn(e);return}if(e._f===h.RFC_2822){mn(e);return}e._a=[],Y(e).empty=!0;var t=""+e._i,r,s,n,a,i,l=t.length,d=0,c,m;for(n=qs(e._f,e._locale).match(Gr)||[],m=n.length,r=0;r<m;r++)a=n[r],s=(t.match(Ri(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&Y(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),d+=s.length),mt[a]?(s?Y(e).empty=!1:Y(e).unusedTokens.push(a),Pi(a,s,e)):e._strict&&!s&&Y(e).unusedTokens.push(a);Y(e).charsLeftOver=l-d,t.length>0&&Y(e).unusedInput.push(t),e._a[se]<=12&&Y(e).bigHour===!0&&e._a[se]>0&&(Y(e).bigHour=void 0),Y(e).parsedDateParts=e._a.slice(0),Y(e).meridiem=e._meridiem,e._a[se]=Bo(e._locale,e._a[se],e._meridiem),c=Y(e).era,c!==null&&(e._a[ie]=e._locale.erasConvertYear(c,e._a[ie])),rs(e),ts(e)}function Bo(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Zo(e){var t,r,s,n,a,i,l=!1,d=e._f.length;if(d===0){Y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<d;n++)a=0,i=!1,t=Ur({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],ss(t),Vr(t)&&(i=!0),a+=Y(t).charsLeftOver,a+=Y(t).unusedTokens.length*10,Y(t).score=a,l?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(l=!0));Ke(e,r||t)}function qo(e){if(!e._d){var t=$r(e._i),r=t.day===void 0?t.date:t.day;e._a=$s([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),rs(e)}}function Jo(e){var t=new At(ts(pn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function pn(e){var t=e._i,r=e._f;return e._locale=e._locale||Ge(e._l),t===null||r===void 0&&t===""?cr({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),_e(t)?new At(ts(t)):(zt(t)?e._d=t:we(r)?Zo(e):r?ss(e):Qo(e),Vr(e)||(e._d=null),e))}function Qo(e){var t=e._i;le(t)?e._d=new Date(h.now()):zt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ho(e):we(t)?(e._a=$s(t.slice(0),function(r){return parseInt(r,10)}),rs(e)):ot(t)?qo(e):He(t)?e._d=new Date(t):h.createFromInputFallback(e)}function yn(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(ot(e)&&Fr(e)||we(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,Jo(a)}function q(e,t,r,s){return yn(e,t,r,s,!1)}var Ko=pe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cr()}),Xo=pe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cr()});function gn(e,t){var r,s;if(t.length===1&&we(t[0])&&(t=t[0]),!t.length)return q();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function el(){var e=[].slice.call(arguments,0);return gn("isBefore",e)}function tl(){var e=[].slice.call(arguments,0);return gn("isAfter",e)}var rl=function(){return Date.now?Date.now():+new Date},Yt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sl(e){var t,r=!1,s,n=Yt.length;for(t in e)if(F(e,t)&&!(re.call(Yt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[Yt[s]]){if(r)return!1;parseFloat(e[Yt[s]])!==P(e[Yt[s]])&&(r=!0)}return!0}function nl(){return this._isValid}function al(){return ke(NaN)}function xr(e){var t=$r(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,d=t.minute||0,c=t.second||0,m=t.millisecond||0;this._isValid=sl(t),this._milliseconds=+m+c*1e3+d*6e4+l*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=Ge(),this._bubble()}function Jt(e){return e instanceof xr}function Wr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function il(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)P(e[i])!==P(t[i])&&a++;return a+n}function xn(e,t){_(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+Te(~~(r/60),2)+t+Te(~~r%60,2)})}xn("Z",":");xn("ZZ","");g("Z",pr);g("ZZ",pr);$(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=ns(pr,e)});var ol=/([\+\-]|\d\d)/gi;function ns(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(ol)||["-",0,0],a=+(n[1]*60)+P(n[2]),a===0?0:n[0]==="+"?a:-a)}function as(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(_e(e)||zt(e)?e.valueOf():q(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),h.updateOffset(r,!1),r):q(e).local()}function Lr(e){return-Math.round(e._d.getTimezoneOffset())}h.updateOffset=function(){};function ll(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ns(pr,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Lr(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?wn(this,ke(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Lr(this)}function dl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function cl(e){return this.utcOffset(0,e)}function ul(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lr(this),"m")),this}function fl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ns(Yi,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function hl(e){return this.isValid()?(e=e?q(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ml(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pl(){if(!le(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ur(e,this),e=pn(e),e._a?(t=e._isUTC?Re(e._a):q(e._a),this._isDSTShifted=this.isValid()&&il(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yl(){return this.isValid()?!this._isUTC:!1}function gl(){return this.isValid()?this._isUTC:!1}function bn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ke(e,t){var r=e,s=null,n,a,i;return Jt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:He(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=xl.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:P(s[Ye])*n,h:P(s[se])*n,m:P(s[ve])*n,s:P(s[Fe])*n,ms:P(Wr(s[it]*1e3))*n}):(s=bl.exec(e))?(n=s[1]==="-"?-1:1,r={y:at(s[2],n),M:at(s[3],n),w:at(s[4],n),d:at(s[5],n),h:at(s[6],n),m:at(s[7],n),s:at(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=vl(q(r.from),q(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new xr(r),Jt(e)&&F(e,"_locale")&&(a._locale=e._locale),Jt(e)&&F(e,"_isValid")&&(a._isValid=e._isValid),a}ke.fn=xr.prototype;ke.invalid=al;function at(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ss(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function vl(e,t){var r;return e.isValid()&&t.isValid()?(t=as(t,e),e.isBefore(t)?r=Ss(e,t):(r=Ss(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function vn(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(Zs(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=s,s=a),n=ke(r,s),wn(this,n,e),this}}function wn(e,t,r,s){var n=t._milliseconds,a=Wr(t._days),i=Wr(t._months);e.isValid()&&(s=s??!0,i&&nn(e,Ct(e,"Month")+i*r),a&&tn(e,"Date",Ct(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&h.updateOffset(e,a||i))}var wl=vn(1,"add"),_l=vn(-1,"subtract");function _n(e){return typeof e=="string"||e instanceof String}function kl(e){return _e(e)||zt(e)||_n(e)||He(e)||Ml(e)||Sl(e)||e===null||e===void 0}function Sl(e){var t=ot(e)&&!Fr(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||F(e,a);return t&&r}function Ml(e){var t=we(e),r=!1;return t&&(r=e.filter(function(s){return!He(s)&&_n(e)}).length===0),t&&r}function Nl(e){var t=ot(e)&&!Fr(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||F(e,a);return t&&r}function Dl(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function jl(e,t){arguments.length===1&&(arguments[0]?kl(arguments[0])?(e=arguments[0],t=void 0):Nl(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||q(),s=as(r,this).startOf("day"),n=h.calendarFormat(this,s)||"sameElse",a=t&&(Ce(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,q(r)))}function Ol(){return new At(this)}function Yl(e,t){var r=_e(e)?e:q(e);return this.isValid()&&r.isValid()?(t=ye(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Tl(e,t){var r=_e(e)?e:q(e);return this.isValid()&&r.isValid()?(t=ye(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Rl(e,t,r,s){var n=_e(e)?e:q(e),a=_e(t)?t:q(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Cl(e,t){var r=_e(e)?e:q(e),s;return this.isValid()&&r.isValid()?(t=ye(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Pl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Il(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Wl(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=as(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=ye(t),t){case"year":a=Qt(this,s)/12;break;case"month":a=Qt(this,s);break;case"quarter":a=Qt(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:me(a)}function Qt(e,t){if(e.date()<t.date())return-Qt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ll(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function zl(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?qt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ce(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",qt(r,"Z")):qt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Al(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function El(e){e||(e=this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var t=qt(this,e);return this.localeData().postformat(t)}function Fl(e,t){return this.isValid()&&(_e(e)&&e.isValid()||q(e).isValid())?ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Vl(e){return this.from(q(),e)}function Ul(e,t){return this.isValid()&&(_e(e)&&e.isValid()||q(e).isValid())?ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Hl(e){return this.to(q(),e)}function kn(e){var t;return e===void 0?this._locale._abbr:(t=Ge(e),t!=null&&(this._locale=t),this)}var Sn=pe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Mn(){return this._locale}var rr=1e3,pt=60*rr,sr=60*pt,Nn=(365*400+97)*24*sr;function yt(e,t){return(e%t+t)%t}function Dn(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Nn:new Date(e,t,r).valueOf()}function jn(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Nn:Date.UTC(e,t,r)}function Gl(e){var t,r;if(e=ye(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?jn:Dn,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=yt(t+(this._isUTC?0:this.utcOffset()*pt),sr);break;case"minute":t=this._d.valueOf(),t-=yt(t,pt);break;case"second":t=this._d.valueOf(),t-=yt(t,rr);break}return this._d.setTime(t),h.updateOffset(this,!0),this}function $l(e){var t,r;if(e=ye(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?jn:Dn,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sr-yt(t+(this._isUTC?0:this.utcOffset()*pt),sr)-1;break;case"minute":t=this._d.valueOf(),t+=pt-yt(t,pt)-1;break;case"second":t=this._d.valueOf(),t+=rr-yt(t,rr)-1;break}return this._d.setTime(t),h.updateOffset(this,!0),this}function Bl(){return this._d.valueOf()-(this._offset||0)*6e4}function Zl(){return Math.floor(this.valueOf()/1e3)}function ql(){return new Date(this.valueOf())}function Jl(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ql(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Kl(){return this.isValid()?this.toISOString():null}function Xl(){return Vr(this)}function ed(){return Ke({},Y(this))}function td(){return Y(this).overflow}function rd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr");_("NN",0,0,"eraAbbr");_("NNN",0,0,"eraAbbr");_("NNNN",0,0,"eraName");_("NNNNN",0,0,"eraNarrow");_("y",["y",1],"yo","eraYear");_("y",["yy",2],0,"eraYear");_("y",["yyy",3],0,"eraYear");_("y",["yyyy",4],0,"eraYear");g("N",is);g("NN",is);g("NNN",is);g("NNNN",hd);g("NNNNN",md);$(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?Y(r).era=n:Y(r).invalidEra=e});g("y",bt);g("yy",bt);g("yyy",bt);g("yyyy",bt);g("yo",pd);$(["y","yy","yyy","yyyy"],ie);$(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ie]=r._locale.eraYearOrdinalParse(e,n):t[ie]=parseInt(e,10)});function sd(e,t){var r,s,n,a=this._eras||Ge("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=h(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=h(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function nd(e,t,r){var s,n,a=this.eras(),i,l,d;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),l=a[s].abbr.toUpperCase(),d=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(d===e)return a[s];break}else if([i,l,d].indexOf(e)>=0)return a[s]}function ad(e,t){var r=e.since<=e.until?1:-1;return t===void 0?h(e.since).year():h(e.since).year()+(t-e.offset)*r}function id(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function od(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function ld(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function dd(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-h(n[e].since).year())*r+n[e].offset;return this.year()}function cd(e){return F(this,"_erasNameRegex")||os.call(this),e?this._erasNameRegex:this._erasRegex}function ud(e){return F(this,"_erasAbbrRegex")||os.call(this),e?this._erasAbbrRegex:this._erasRegex}function fd(e){return F(this,"_erasNarrowRegex")||os.call(this),e?this._erasNarrowRegex:this._erasRegex}function is(e,t){return t.erasAbbrRegex(e)}function hd(e,t){return t.erasNameRegex(e)}function md(e,t){return t.erasNarrowRegex(e)}function pd(e,t){return t._eraYearOrdinalRegex||bt}function os(){var e=[],t=[],r=[],s=[],n,a,i,l,d,c=this.eras();for(n=0,a=c.length;n<a;++n)i=Ve(c[n].name),l=Ve(c[n].abbr),d=Ve(c[n].narrow),t.push(i),e.push(l),r.push(d),s.push(i),s.push(l),s.push(d);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100});_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function br(e,t){_(0,[e,e.length],0,t)}br("gggg","weekYear");br("ggggg","weekYear");br("GGGG","isoWeekYear");br("GGGGG","isoWeekYear");g("G",mr);g("g",mr);g("GG",J,ue);g("gg",J,ue);g("GGGG",Zr,Br);g("gggg",Zr,Br);g("GGGGG",hr,ur);g("ggggg",hr,ur);Ft(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=P(e)});Ft(["gg","GG"],function(e,t,r,s){t[s]=h.parseTwoDigitYear(e)});function yd(e){return On.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function gd(e){return On.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function xd(){return Ue(this.year(),1,4)}function bd(){return Ue(this.isoWeekYear(),1,4)}function vd(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)}function wd(){var e=this.localeData()._week;return Ue(this.weekYear(),e.dow,e.doy)}function On(e,t,r,s,n){var a;return e==null?It(this,s,n).year:(a=Ue(e,s,n),t>a&&(t=a),_d.call(this,e,t,r,s,n))}function _d(e,t,r,s,n){var a=ln(e,t,r,s,n),i=Pt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}_("Q",0,"Qo","quarter");g("Q",Js);$("Q",function(e,t){t[Ee]=(P(e)-1)*3});function kd(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_("D",["DD",2],"Do","date");g("D",J,vt);g("DD",J,ue);g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});$(["D","DD"],Ye);$("Do",function(e,t){t[Ye]=P(e.match(J)[0])});var Yn=wt("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear");g("DDD",fr);g("DDDD",Qs);$(["DDD","DDDD"],function(e,t,r){r._dayOfYear=P(e)});function Sd(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_("m",["mm",2],0,"minute");g("m",J,qr);g("mm",J,ue);$(["m","mm"],ve);var Md=wt("Minutes",!1);_("s",["ss",2],0,"second");g("s",J,qr);g("ss",J,ue);$(["s","ss"],Fe);var Nd=wt("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)});_(0,["SS",2],0,function(){return~~(this.millisecond()/10)});_(0,["SSS",3],0,"millisecond");_(0,["SSSS",4],0,function(){return this.millisecond()*10});_(0,["SSSSS",5],0,function(){return this.millisecond()*100});_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});g("S",fr,Js);g("SS",fr,ue);g("SSS",fr,Qs);var Xe,Tn;for(Xe="SSSS";Xe.length<=9;Xe+="S")g(Xe,bt);function Dd(e,t){t[it]=P(("0."+e)*1e3)}for(Xe="S";Xe.length<=9;Xe+="S")$(Xe,Dd);Tn=wt("Milliseconds",!1);_("z",0,0,"zoneAbbr");_("zz",0,0,"zoneName");function jd(){return this._isUTC?"UTC":""}function Od(){return this._isUTC?"Coordinated Universal Time":""}var f=At.prototype;f.add=wl;f.calendar=jl;f.clone=Ol;f.diff=Wl;f.endOf=$l;f.format=El;f.from=Fl;f.fromNow=Vl;f.to=Ul;f.toNow=Hl;f.get=zi;f.invalidAt=td;f.isAfter=Yl;f.isBefore=Tl;f.isBetween=Rl;f.isSame=Cl;f.isSameOrAfter=Pl;f.isSameOrBefore=Il;f.isValid=Xl;f.lang=Sn;f.locale=kn;f.localeData=Mn;f.max=Xo;f.min=Ko;f.parsingFlags=ed;f.set=Ai;f.startOf=Gl;f.subtract=_l;f.toArray=Jl;f.toObject=Ql;f.toDate=ql;f.toISOString=zl;f.inspect=Al;typeof Symbol<"u"&&Symbol.for!=null&&(f[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});f.toJSON=Kl;f.toString=Ll;f.unix=Zl;f.valueOf=Bl;f.creationData=rd;f.eraName=id;f.eraNarrow=od;f.eraAbbr=ld;f.eraYear=dd;f.year=en;f.isLeapYear=Li;f.weekYear=yd;f.isoWeekYear=gd;f.quarter=f.quarters=kd;f.month=an;f.daysInMonth=Zi;f.week=f.weeks=ro;f.isoWeek=f.isoWeeks=so;f.weeksInYear=vd;f.weeksInWeekYear=wd;f.isoWeeksInYear=xd;f.isoWeeksInISOWeekYear=bd;f.date=Yn;f.day=f.days=go;f.weekday=xo;f.isoWeekday=bo;f.dayOfYear=Sd;f.hour=f.hours=No;f.minute=f.minutes=Md;f.second=f.seconds=Nd;f.millisecond=f.milliseconds=Tn;f.utcOffset=ll;f.utc=cl;f.local=ul;f.parseZone=fl;f.hasAlignedHourOffset=hl;f.isDST=ml;f.isLocal=yl;f.isUtcOffset=gl;f.isUtc=bn;f.isUTC=bn;f.zoneAbbr=jd;f.zoneName=Od;f.dates=pe("dates accessor is deprecated. Use date instead.",Yn);f.months=pe("months accessor is deprecated. Use month instead",an);f.years=pe("years accessor is deprecated. Use year instead",en);f.zone=pe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",dl);f.isDSTShifted=pe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pl);function Yd(e){return q(e*1e3)}function Td(){return q.apply(null,arguments).parseZone()}function Rn(e){return e}var V=Hr.prototype;V.calendar=pi;V.longDateFormat=bi;V.invalidDate=wi;V.ordinal=Si;V.preparse=Rn;V.postformat=Rn;V.relativeTime=Ni;V.pastFuture=Di;V.set=hi;V.eras=sd;V.erasParse=nd;V.erasConvertYear=ad;V.erasAbbrRegex=ud;V.erasNameRegex=cd;V.erasNarrowRegex=fd;V.months=Hi;V.monthsShort=Gi;V.monthsParse=Bi;V.monthsRegex=Ji;V.monthsShortRegex=qi;V.week=Ki;V.firstDayOfYear=to;V.firstDayOfWeek=eo;V.weekdays=fo;V.weekdaysMin=mo;V.weekdaysShort=ho;V.weekdaysParse=yo;V.weekdaysRegex=vo;V.weekdaysShortRegex=wo;V.weekdaysMinRegex=_o;V.isPM=So;V.meridiem=Do;function nr(e,t,r,s){var n=Ge(),a=Re().set(s,t);return n[r](a,e)}function Cn(e,t,r){if(He(e)&&(t=e,e=void 0),e=e||"",t!=null)return nr(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=nr(e,s,r,"month");return n}function ls(e,t,r,s){typeof e=="boolean"?(He(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,He(t)&&(r=t,t=void 0),t=t||"");var n=Ge(),a=e?n._week.dow:0,i,l=[];if(r!=null)return nr(t,(r+a)%7,s,"day");for(i=0;i<7;i++)l[i]=nr(t,(i+a)%7,s,"day");return l}function Rd(e,t){return Cn(e,t,"months")}function Cd(e,t){return Cn(e,t,"monthsShort")}function Pd(e,t,r){return ls(e,t,r,"weekdays")}function Id(e,t,r){return ls(e,t,r,"weekdaysShort")}function Wd(e,t,r){return ls(e,t,r,"weekdaysMin")}et("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=P(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});h.lang=pe("moment.lang is deprecated. Use moment.locale instead.",et);h.langData=pe("moment.langData is deprecated. Use moment.localeData instead.",Ge);var ze=Math.abs;function Ld(){var e=this._data;return this._milliseconds=ze(this._milliseconds),this._days=ze(this._days),this._months=ze(this._months),e.milliseconds=ze(e.milliseconds),e.seconds=ze(e.seconds),e.minutes=ze(e.minutes),e.hours=ze(e.hours),e.months=ze(e.months),e.years=ze(e.years),this}function Pn(e,t,r,s){var n=ke(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function zd(e,t){return Pn(this,e,t,1)}function Ad(e,t){return Pn(this,e,t,-1)}function Ms(e){return e<0?Math.floor(e):Math.ceil(e)}function Ed(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,l,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Ms(zr(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=me(e/1e3),s.seconds=n%60,a=me(n/60),s.minutes=a%60,i=me(a/60),s.hours=i%24,t+=me(i/24),d=me(In(t)),r+=d,t-=Ms(zr(d)),l=me(r/12),r%=12,s.days=t,s.months=r,s.years=l,this}function In(e){return e*4800/146097}function zr(e){return e*146097/4800}function Fd(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=ye(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+In(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(zr(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function $e(e){return function(){return this.as(e)}}var Wn=$e("ms"),Vd=$e("s"),Ud=$e("m"),Hd=$e("h"),Gd=$e("d"),$d=$e("w"),Bd=$e("M"),Zd=$e("Q"),qd=$e("y"),Jd=Wn;function Qd(){return ke(this)}function Kd(e){return e=ye(e),this.isValid()?this[e+"s"]():NaN}function lt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Xd=lt("milliseconds"),ec=lt("seconds"),tc=lt("minutes"),rc=lt("hours"),sc=lt("days"),nc=lt("months"),ac=lt("years");function ic(){return me(this.days()/7)}var Ae=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oc(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function lc(e,t,r,s){var n=ke(e).abs(),a=Ae(n.as("s")),i=Ae(n.as("m")),l=Ae(n.as("h")),d=Ae(n.as("d")),c=Ae(n.as("M")),m=Ae(n.as("w")),p=Ae(n.as("y")),x=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||l<=1&&["h"]||l<r.h&&["hh",l]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(x=x||m<=1&&["w"]||m<r.w&&["ww",m]),x=x||c<=1&&["M"]||c<r.M&&["MM",c]||p<=1&&["y"]||["yy",p],x[2]=t,x[3]=+e>0,x[4]=s,oc.apply(null,x)}function dc(e){return e===void 0?Ae:typeof e=="function"?(Ae=e,!0):!1}function cc(e,t){return ft[e]===void 0?!1:t===void 0?ft[e]:(ft[e]=t,e==="s"&&(ft.ss=t-1),!0)}function uc(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=ft,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},ft,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=lc(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var Or=Math.abs;function ct(e){return(e>0)-(e<0)||+e}function vr(){if(!this.isValid())return this.localeData().invalidDate();var e=Or(this._milliseconds)/1e3,t=Or(this._days),r=Or(this._months),s,n,a,i,l=this.asSeconds(),d,c,m,p;return l?(s=me(e/60),n=me(s/60),e%=60,s%=60,a=me(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",c=ct(this._months)!==ct(l)?"-":"",m=ct(this._days)!==ct(l)?"-":"",p=ct(this._milliseconds)!==ct(l)?"-":"",d+"P"+(a?c+a+"Y":"")+(r?c+r+"M":"")+(t?m+t+"D":"")+(n||s||e?"T":"")+(n?p+n+"H":"")+(s?p+s+"M":"")+(e?p+i+"S":"")):"P0D"}var z=xr.prototype;z.isValid=nl;z.abs=Ld;z.add=zd;z.subtract=Ad;z.as=Fd;z.asMilliseconds=Wn;z.asSeconds=Vd;z.asMinutes=Ud;z.asHours=Hd;z.asDays=Gd;z.asWeeks=$d;z.asMonths=Bd;z.asQuarters=Zd;z.asYears=qd;z.valueOf=Jd;z._bubble=Ed;z.clone=Qd;z.get=Kd;z.milliseconds=Xd;z.seconds=ec;z.minutes=tc;z.hours=rc;z.days=sc;z.weeks=ic;z.months=nc;z.years=ac;z.humanize=uc;z.toISOString=vr;z.toString=vr;z.toJSON=vr;z.locale=kn;z.localeData=Mn;z.toIsoString=pe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vr);z.lang=Sn;_("X",0,0,"unix");_("x",0,0,"valueOf");g("x",mr);g("X",Ti);$("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});$("x",function(e,t,r){r._d=new Date(P(e))});//! moment.js
10
- h.version="2.30.1";ui(q);h.fn=f;h.min=el;h.max=tl;h.now=rl;h.utc=Re;h.unix=Yd;h.months=Rd;h.isDate=zt;h.locale=et;h.invalid=cr;h.duration=ke;h.isMoment=_e;h.weekdays=Pd;h.parseZone=Td;h.localeData=Ge;h.isDuration=Jt;h.monthsShort=Cd;h.weekdaysMin=Wd;h.defineLocale=es;h.updateLocale=To;h.locales=Ro;h.weekdaysShort=Id;h.normalizeUnits=ye;h.relativeTimeRounding=dc;h.relativeTimeThreshold=cc;h.calendarFormat=Dl;h.prototype=f;h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ln=u.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...l},d)=>{const c=u.useMemo(()=>{const m=Math.abs(h().diff(h(s),"minutes"));if(m<60)return`há ${m} minutos`;const p=Math.abs(h().diff(h(s),"hours"));return p<24?`há ${p} horas`:`há ${Math.abs(h().diff(h(s),"days"))} dias`},[s]);return o.jsxs(dr,{ref:d,icon:null,className:k(!n&&"border-transparent bg-lightGray",e),...l,children:[o.jsxs("div",{className:"flex items-start justify-between gap-3",children:[o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&o.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),o.jsx(A,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:U(t)})]}),o.jsx(A,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:U(c)})]}),o.jsx(A,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:U(r)}),o.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[o.jsx("button",{type:"button",onClick:a,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:o.jsx(li,{className:"size-4","aria-hidden":"true"})}),o.jsx("button",{type:"button",onClick:i,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:o.jsx(ci,{className:"size-4","aria-hidden":"true"})})]})]})});Ln.displayName="Notification";const ar=u.forwardRef(({className:e,...t},r)=>o.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[o.jsx("input",{ref:r,type:"checkbox",className:k("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),o.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));ar.displayName="TableCheckbox";function fc(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function hc(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=fc(e,t.key);return r==null||r===""?null:o.jsx(A,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const zn={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function mc(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}const ir=u.forwardRef(({className:e,align:t="left",border:r=!0,sortable:s,sorted:n,onSort:a,children:i,...l},d)=>o.jsx("th",{ref:d,className:k("border-b border-neutral-divider-secondary px-5 py-2",r&&"border-r last:border-r-0",e),...l,children:o.jsxs("span",{className:k("flex items-center gap-1.5",zn[t??"left"],s&&"cursor-pointer select-none"),onClick:s?a:void 0,children:[o.jsx(A,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:U(i)}),s&&o.jsx(di,{className:k("size-5 shrink-0",n&&"text-agilys-primary"),"aria-hidden":"true"})]})}));ir.displayName="TableHeadCell";function Ar({align:e="left",border:t=!0,className:r,children:s,onClick:n}){return o.jsx("td",{onClick:n,className:k("border-b border-neutral-divider-secondary px-5 py-3",t&&"border-r last:border-r-0",r),children:o.jsx(A,{className:k("flex items-center gap-2",zn[e??"left"]),children:s})})}const An=ce("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function pc(e){var s;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(s=t[0])==null?void 0:s.slice(0,2);return r==null?void 0:r.toUpperCase()}const yc={sm:"caption",md:"bodySm",lg:"body"},ds=u.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const l=t??"md";return o.jsx("span",{ref:i,className:k(An({size:t}),e),...a,children:r?o.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&o.jsx(A,{as:"span",variant:yc[l],weight:"medium",className:"text-inherit leading-none",children:pc(n)})})});ds.displayName="Avatar";function gc({src:e,name:t,description:r,size:s="md",className:n}){return o.jsxs("div",{className:k("flex min-w-0 items-center gap-2",n),children:[o.jsx(ds,{src:e,name:t,size:s}),o.jsxs("div",{className:"flex min-w-0 flex-col",children:[o.jsx(A,{as:"span",variant:"body",className:"truncate",children:t}),r&&o.jsx(A,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}function xc({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:l,onSelectionChange:d,sortKey:c,sortDirection:m,onSortChange:p,onRowClick:x,shadow:R=!1,border:C=!1,columnBorder:j=!0,className:v,...w}){const T=e.length+(i?1:0),H=l??[],M=t.map((N,S)=>mc(N,S,r)),I=M.length>0&&M.every(N=>H.includes(N)),E=()=>{d&&d(I?[]:M)},K=N=>{d&&d(H.includes(N)?H.filter(S=>S!==N):[...H,N])};return o.jsx("div",{className:k("w-full overflow-x-auto rounded-lg",C&&"border border-neutral-divider-secondary",R&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:o.jsxs("table",{className:k("w-full border-collapse table-fixed",v),...w,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[i&&o.jsx(ir,{align:"center",border:j,className:"w-11",children:o.jsx(ar,{checked:I,onChange:E,"aria-label":"Selecionar todas as linhas"})}),e.map((N,S)=>o.jsx(ir,{align:N.align,border:j,sortable:!!N.key&&!!p,sorted:N.key&&c===N.key?m:!1,onSort:()=>N.key&&(p==null?void 0:p(N.key)),children:U(N.label)},N.key??`column-${S}`))]})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{colSpan:T,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:o.jsx(A,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:T,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:o.jsx(A,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((N,S)=>{const W=M[S];return o.jsxs("tr",{onClick:x?()=>x(N):void 0,className:k(S%2===0?"bg-neutral-surface-lightest":"bg-white",x&&"cursor-pointer"),children:[i&&o.jsx(Ar,{align:"center",border:j,onClick:G=>G.stopPropagation(),children:o.jsx(ar,{checked:H.includes(W),onChange:()=>K(W),"aria-label":"Selecionar linha"})}),e.map((G,b)=>o.jsx(Ar,{align:G.align,border:j,className:G.className,children:hc(N,G)},G.key??`column-${b}`))]},W)})})]})})}const Tt="ellipsis";function Zt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function bc(e,t,r){if(r*2+5>=t)return Zt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,l=a<t-1;return!i&&l?[...Zt(1,3+r*2),Tt,t]:i&&!l?[1,Tt,...Zt(t-(2+r*2),t)]:[1,Tt,...Zt(n,a),Tt,t]}function Ns({direction:e,className:t}){return o.jsx("svg",{className:k("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const En=u.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{const l=bc(e,t,s),d=c=>{c<1||c>t||c===e||r(c)};return o.jsxs("nav",{ref:i,"aria-label":"Paginação",className:k("flex items-center gap-1 font-sans",n),...a,children:[o.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:o.jsx(Ns,{direction:"left"})}),l.map((c,m)=>c===Tt?o.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:o.jsx(A,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${m}`):o.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>d(c),className:k("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",c===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:o.jsx(A,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:c})},c)),o.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:o.jsx(Ns,{direction:"right"})})]})});En.displayName="Pagination";const wr=ce("flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",{variants:{hasError:{true:"ring-1 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),or=`w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
10
+ h.version="2.30.1";ui(q);h.fn=f;h.min=el;h.max=tl;h.now=rl;h.utc=Re;h.unix=Yd;h.months=Rd;h.isDate=zt;h.locale=et;h.invalid=cr;h.duration=ke;h.isMoment=_e;h.weekdays=Pd;h.parseZone=Td;h.localeData=Ge;h.isDuration=Jt;h.monthsShort=Cd;h.weekdaysMin=Wd;h.defineLocale=es;h.updateLocale=To;h.locales=Ro;h.weekdaysShort=Id;h.normalizeUnits=ye;h.relativeTimeRounding=dc;h.relativeTimeThreshold=cc;h.calendarFormat=Dl;h.prototype=f;h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ln=u.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...l},d)=>{const c=u.useMemo(()=>{const m=Math.abs(h().diff(h(s),"minutes"));if(m<60)return`há ${m} minutos`;const p=Math.abs(h().diff(h(s),"hours"));return p<24?`há ${p} horas`:`há ${Math.abs(h().diff(h(s),"days"))} dias`},[s]);return o.jsxs(dr,{ref:d,icon:null,className:k(!n&&"border-transparent bg-lightGray",e),...l,children:[o.jsxs("div",{className:"flex items-start justify-between gap-3",children:[o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&o.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),o.jsx(A,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:U(t)})]}),o.jsx(A,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:U(c)})]}),o.jsx(A,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:U(r)}),o.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[o.jsx("button",{type:"button",onClick:a,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:o.jsx(li,{className:"size-4","aria-hidden":"true"})}),o.jsx("button",{type:"button",onClick:i,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:o.jsx(ci,{className:"size-4","aria-hidden":"true"})})]})]})});Ln.displayName="Notification";const ar=u.forwardRef(({className:e,...t},r)=>o.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[o.jsx("input",{ref:r,type:"checkbox",className:k("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),o.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));ar.displayName="TableCheckbox";function fc(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function hc(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=fc(e,t.key);return r==null||r===""?null:o.jsx(A,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const zn={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function mc(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}const ir=u.forwardRef(({className:e,align:t="left",border:r=!0,sortable:s,sorted:n,onSort:a,children:i,...l},d)=>o.jsx("th",{ref:d,className:k("border-b border-neutral-divider-secondary px-5 py-2",r&&"border-r last:border-r-0",e),...l,children:o.jsxs("span",{className:k("flex items-center gap-1.5",zn[t??"left"],s&&"cursor-pointer select-none"),onClick:s?a:void 0,children:[o.jsx(A,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:U(i)}),s&&o.jsx(di,{className:k("size-5 shrink-0",n&&"text-agilys-primary"),"aria-hidden":"true"})]})}));ir.displayName="TableHeadCell";function Ar({align:e="left",border:t=!0,className:r,children:s,onClick:n}){return o.jsx("td",{onClick:n,className:k("border-b border-neutral-divider-secondary px-5 py-3",t&&"border-r last:border-r-0",r),children:o.jsx(A,{className:k("flex items-center gap-2",zn[e??"left"]),children:s})})}const An=ce("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-7 text-xs",md:"size-8 text-sm",lg:"size-12 text-base"}},defaultVariants:{size:"md"}});function pc(e){var s;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(s=t[0])==null?void 0:s.slice(0,2);return r==null?void 0:r.toUpperCase()}const yc={sm:"caption",md:"bodySm",lg:"body"},ds=u.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const l=t??"md";return o.jsx("span",{ref:i,className:k(An({size:t}),e),...a,children:r?o.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&o.jsx(A,{as:"span",variant:yc[l],weight:"medium",className:"text-inherit leading-none",children:pc(n)})})});ds.displayName="Avatar";function gc({src:e,name:t,description:r,size:s="md",className:n}){return o.jsxs("div",{className:k("flex min-w-0 items-center gap-2",n),children:[o.jsx(ds,{src:e,name:t,size:s}),o.jsxs("div",{className:"flex min-w-0 flex-col",children:[o.jsx(A,{as:"span",variant:"body",className:"truncate",children:t}),r&&o.jsx(A,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}function xc({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:l,onSelectionChange:d,sortKey:c,sortDirection:m,onSortChange:p,onRowClick:x,shadow:T=!1,border:C=!1,columnBorder:j=!0,className:v,...w}){const R=e.length+(i?1:0),H=l??[],M=t.map((N,S)=>mc(N,S,r)),I=M.length>0&&M.every(N=>H.includes(N)),E=()=>{d&&d(I?[]:M)},K=N=>{d&&d(H.includes(N)?H.filter(S=>S!==N):[...H,N])};return o.jsx("div",{className:k("w-full overflow-x-auto rounded-lg",C&&"border border-neutral-divider-secondary",T&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:o.jsxs("table",{className:k("w-full border-collapse table-fixed",v),...w,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[i&&o.jsx(ir,{align:"center",border:j,className:"w-11",children:o.jsx(ar,{checked:I,onChange:E,"aria-label":"Selecionar todas as linhas"})}),e.map((N,S)=>o.jsx(ir,{align:N.align,border:j,sortable:!!N.key&&!!p,sorted:N.key&&c===N.key?m:!1,onSort:()=>N.key&&(p==null?void 0:p(N.key)),children:U(N.label)},N.key??`column-${S}`))]})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{colSpan:R,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:o.jsx(A,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:R,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:o.jsx(A,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((N,S)=>{const W=M[S];return o.jsxs("tr",{onClick:x?()=>x(N):void 0,className:k(S%2===0?"bg-neutral-surface-lightest":"bg-white",x&&"cursor-pointer"),children:[i&&o.jsx(Ar,{align:"center",border:j,onClick:G=>G.stopPropagation(),children:o.jsx(ar,{checked:H.includes(W),onChange:()=>K(W),"aria-label":"Selecionar linha"})}),e.map((G,b)=>o.jsx(Ar,{align:G.align,border:j,className:G.className,children:hc(N,G)},G.key??`column-${b}`))]},W)})})]})})}const Tt="ellipsis";function Zt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function bc(e,t,r){if(r*2+5>=t)return Zt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,l=a<t-1;return!i&&l?[...Zt(1,3+r*2),Tt,t]:i&&!l?[1,Tt,...Zt(t-(2+r*2),t)]:[1,Tt,...Zt(n,a),Tt,t]}function Ns({direction:e,className:t}){return o.jsx("svg",{className:k("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const En=u.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{const l=bc(e,t,s),d=c=>{c<1||c>t||c===e||r(c)};return o.jsxs("nav",{ref:i,"aria-label":"Paginação",className:k("flex items-center gap-1 font-sans",n),...a,children:[o.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:o.jsx(Ns,{direction:"left"})}),l.map((c,m)=>c===Tt?o.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:o.jsx(A,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${m}`):o.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>d(c),className:k("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",c===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:o.jsx(A,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:c})},c)),o.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:o.jsx(Ns,{direction:"right"})})]})});En.displayName="Pagination";const wr=ce("flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",{variants:{hasError:{true:"ring-1 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),or=`w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
11
11
  font-normal text-black placeholder:font-inter placeholder:text-xs placeholder:leading-relaxed
12
- placeholder:font-normal placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed`,Fn=u.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,loading:i=!1,error:l,disabled:d,id:c,placeholder:m,type:p,rows:x,maxRows:R,onChange:C,...j},v)=>{const w=(p===void 0||p==="text")&&(x!==void 0||R!==void 0),T=x??1,H=w&&R!==void 0,M=u.useRef(null),I=u.useCallback(b=>{M.current=b,typeof v=="function"?v(b):v&&(v.current=b)},[v]),E=u.useCallback(()=>{const b=M.current;if(!b||!H)return;const Se=parseFloat(getComputedStyle(b).lineHeight),oe=Se*T,fe=Se*Math.max(R??T,T);b.style.height="auto";const ge=Math.min(Math.max(b.scrollHeight,oe),fe);b.style.height=`${ge}px`,b.style.overflowY=b.scrollHeight>fe?"auto":"hidden"},[H,T,R]);u.useLayoutEffect(()=>{E()},[E,j.value]);const K=u.useId(),N=c??K,S=typeof l=="string"?l:l==null?void 0:l.message,W=!!S,G=`${N}-error`;return o.jsxs("div",{className:k("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&o.jsx(A,{as:"label",htmlFor:N,variant:"body",className:"text-neutral-text-primary",children:U(r)}),o.jsxs("div",{className:k(wr({hasError:W}),w&&"h-auto min-h-11 items-start py-3",d&&"pointer-events-none opacity-50"),children:[s&&o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary","aria-hidden":"true",children:s}),w?o.jsx("textarea",{ref:I,id:N,disabled:d,placeholder:U(m),"aria-invalid":W||void 0,"aria-describedby":W?G:void 0,"aria-busy":i||void 0,rows:T,onChange:b=>{E(),C==null||C(b)},className:k(or,"resize-none",e),...j}):o.jsx("input",{ref:v,id:N,type:p,disabled:d,placeholder:U(m),"aria-invalid":W||void 0,"aria-describedby":W?G:void 0,"aria-busy":i||void 0,onChange:C,className:k(or,e),...j}),i&&o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary",children:o.jsx(Lt,{})}),n&&o.jsx("span",{className:k("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),W&&o.jsx(A,{as:"span",id:G,role:"alert",variant:"caption",className:"text-danger-60",children:U(S)})]})});Fn.displayName="Input";const Vn=e=>typeof e.label=="string"?e.label:String(e.value),Ds=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Un=(e,t,r)=>{const s=Ds(t.trim());return s?e.filter(n=>Ds(r(n)).includes(s)):e},Hn=u.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,getOptionLabel:i=Vn,filterOptions:l,noOptionsText:d="Nenhuma opção encontrada",clearable:c=!0,placeholder:m="Selecione",label:p,name:x,leftIcon:R,rightIcon:C,bgIcon:j=!1,error:v,disabled:w,id:T,onKeyDown:H,onFocus:M,onBlur:I,...E},K)=>{const N=u.useId(),S=T??N,W=`${S}-listbox`,G=typeof v=="string"?v:v==null?void 0:v.message,b=!!G,Se=`${S}-error`,oe=s!==void 0,[fe,ge]=u.useState(n),de=oe?s:fe,he=r.find(D=>D.value===de),[B,Me]=u.useState(!1),[ne,ae]=u.useState(""),[ee,Ne]=u.useState(!1),[Pe,De]=u.useState(0),Vt=u.useRef(null),Be=u.useRef(null),Ze=u.useRef(null),tt=u.useRef(null),[Ut,_t]=u.useState(null),_r=u.useCallback(D=>{tt.current=D,typeof K=="function"?K(D):K&&(K.current=D)},[K]),xe=u.useMemo(()=>ee?l?l(r,ne):Un(r,ne,i):r,[ee,r,ne,l,i]),Ht=B?ne:he?U(i(he)):"";u.useEffect(()=>{if(!B)return;const D=X=>{var je,qe;const be=X.target;!((je=Vt.current)!=null&&je.contains(be))&&!((qe=Ze.current)!=null&&qe.contains(be))&&(Me(!1),Ne(!1))};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[B]),u.useLayoutEffect(()=>{if(!B){_t(null);return}const D=()=>{var be;const X=(be=Be.current)==null?void 0:be.getBoundingClientRect();X&&_t({top:X.bottom+4,left:X.left,width:X.width})};return D(),window.addEventListener("resize",D),window.addEventListener("scroll",D,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,!0)}},[B]),u.useEffect(()=>{if(!B)return;const D=xe.findIndex(X=>X.value===de);De(D>=0?D:0)},[B,xe,de]);const Ie=()=>{ae(he?U(i(he)):""),Ne(!1),Me(!0)},kt=()=>{Me(!1),Ne(!1)},We=D=>{var X;oe||ge(D?D.value:void 0),a==null||a(D?D.value:void 0,D),kt(),(X=tt.current)==null||X.focus()},rt=D=>{D.stopPropagation(),We(null),ae(""),Ne(!1),Me(!0)},dt=D=>{if(H==null||H(D),!D.defaultPrevented)switch(D.key){case"ArrowDown":if(D.preventDefault(),!B){Ie();break}De(X=>Math.min(X+1,xe.length-1));break;case"ArrowUp":if(D.preventDefault(),!B){Ie();break}De(X=>Math.max(X-1,0));break;case"Enter":D.preventDefault(),B&&xe[Pe]&&We(xe[Pe]);break;case"Escape":B&&(D.preventDefault(),kt());break}};return o.jsxs("div",{ref:Vt,className:k("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[p&&o.jsx(A,{as:"label",htmlFor:S,variant:"body",className:"text-neutral-text-primary",children:U(p)}),o.jsxs("div",{ref:Be,className:k(wr({hasError:b}),w&&"pointer-events-none opacity-50"),children:[R&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:R}),o.jsx("input",{ref:_r,type:"text",id:S,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":B,"aria-controls":W,"aria-invalid":b||void 0,"aria-describedby":b?Se:void 0,"aria-activedescendant":B&&xe[Pe]?`${W}-option-${Pe}`:void 0,disabled:w,placeholder:U(m),value:Ht,onChange:D=>{Ne(!0),ae(D.target.value),B||Me(!0)},onFocus:D=>{Ie(),M==null||M(D)},onBlur:I,onClick:()=>{B||Ie()},onKeyDown:dt,className:k(or,"truncate text-left",e),...E}),c&&he&&!w&&o.jsx("button",{type:"button",tabIndex:-1,onClick:rt,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:o.jsx(Tr,{className:"size-4"})}),o.jsx("span",{className:k("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",B&&"rotate-180",j&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:C??o.jsx(Hs,{className:"size-4"})})]}),x&&o.jsx("input",{type:"hidden",name:x,value:de??""}),B&&Ut&&lr.createPortal(o.jsxs("ul",{ref:Ze,id:W,role:"listbox","aria-labelledby":p?S:void 0,style:Ut,className:"fixed z-[10000] max-h-60 min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[xe.length===0&&o.jsx("li",{className:"px-3 py-2",children:o.jsx(A,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:U(d)})}),xe.map((D,X)=>{const be=D.value===de,je=X===Pe;return o.jsx("li",{id:`${W}-option-${X}`,role:"option","aria-selected":be,onMouseEnter:()=>De(X),onMouseDown:qe=>qe.preventDefault(),onClick:()=>We(D),className:k("cursor-pointer truncate px-3 py-2",(je||be)&&"bg-lightGray"),children:o.jsx(A,{as:"span",variant:"bodySm",className:k("truncate text-black",be&&"font-medium"),children:U(D.label)})},X)})]}),document.body),b&&o.jsx(A,{as:"span",id:Se,role:"alert",variant:"caption",className:"text-danger-60",children:U(G)})]})});Hn.displayName="Select";const vc=(e,t)=>t?Array.isArray(e)?e:[]:e==null?[]:[e],Gn=u.forwardRef(({className:e,containerClassName:t,options:r=[],multiple:s=!1,value:n,defaultValue:a,onChange:i,onSearch:l,searchDebounce:d=300,loading:c=!1,loadingText:m="Carregando...",getOptionLabel:p=Vn,filterOptions:x,noOptionsText:R="Nenhuma opção encontrada",clearable:C=!0,placeholder:j="Selecione",label:v,name:w,leftIcon:T,rightIcon:H,bgIcon:M=!1,error:I,disabled:E,id:K,onKeyDown:N,onFocus:S,onBlur:W,...G},b)=>{const Se=u.useId(),oe=K??Se,fe=`${oe}-listbox`,ge=typeof I=="string"?I:I==null?void 0:I.message,de=!!ge,he=`${oe}-error`,B=n!==void 0,[Me,ne]=u.useState(a),ae=vc(B?n:Me,s),[ee,Ne]=u.useState(!1),[Pe,De]=u.useState(""),[Vt,Be]=u.useState(!1),[Ze,tt]=u.useState(0),[Ut,_t]=u.useState(null),[_r,xe]=u.useState(!1),Ht=u.useRef(null),Ie=u.useRef(null),kt=u.useRef(null),We=u.useRef(null),rt=u.useRef(l),dt=u.useRef(0),[D,X]=u.useState(null);rt.current=l;const be=u.useCallback(y=>{We.current=y,typeof b=="function"?b(y):b&&(b.current=y)},[b]),je=Ut??r,qe=u.useRef(new Map);for(const y of je)qe.current.set(y.value,y);const kr=ae.map(y=>qe.current.get(y)).filter(y=>!!y),St=Vt?Pe:"",st=u.useMemo(()=>x?x(je,St):l?je:Un(je,St,p),[je,St,x,p,!l]),Mt=c||_r,cs=!s&&kr[0]?U(p(kr[0])):"",da=s||ee?Pe:cs;u.useEffect(()=>{if(!ee||!rt.current)return;const y=++dt.current,L=setTimeout(()=>{var Oe;const te=(Oe=rt.current)==null?void 0:Oe.call(rt,St);!te||typeof te.then!="function"||(xe(!0),te.then(nt=>{y===dt.current&&Array.isArray(nt)&&_t(nt)}).catch(()=>{y===dt.current&&_t([])}).finally(()=>{y===dt.current&&xe(!1)}))},d);return()=>clearTimeout(L)},[ee,St,d]),u.useEffect(()=>{if(!ee)return;const y=L=>{var Oe,nt;const te=L.target;!((Oe=Ht.current)!=null&&Oe.contains(te))&&!((nt=kt.current)!=null&&nt.contains(te))&&Sr()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[ee]),u.useLayoutEffect(()=>{if(!ee){X(null);return}const y=()=>{var Oe;const te=(Oe=Ie.current)==null?void 0:Oe.getBoundingClientRect();te&&X({top:te.bottom+4,left:te.left,width:te.width})};y();const L=new ResizeObserver(y);return Ie.current&&L.observe(Ie.current),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),()=>{L.disconnect(),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0)}},[ee]),u.useEffect(()=>{ee&&tt(0)},[ee,st]);const Nt=()=>{ee||(De(s?"":cs),Be(!1),Ne(!0))};function Sr(){Ne(!1),Be(!1),De("")}const Gt=y=>{const L=y.map(te=>qe.current.get(te)).filter(te=>!!te);s?(B||ne(y),i==null||i(y,L)):(B||ne(y[0]),i==null||i(y[0],L[0]??null))},us=y=>{var L;s?(Gt(ae.includes(y.value)?ae.filter(te=>te!==y.value):[...ae,y.value]),De(""),Be(!1)):(Gt([y.value]),Sr()),(L=We.current)==null||L.focus()},fs=y=>{Gt(ae.filter(L=>L!==y))},ca=y=>{var L;y.stopPropagation(),Gt([]),De(""),Be(!1),Ne(!0),(L=We.current)==null||L.focus()},ua=y=>{if(N==null||N(y),!y.defaultPrevented)switch(y.key){case"ArrowDown":if(y.preventDefault(),!ee){Nt();break}tt(L=>Math.min(L+1,st.length-1));break;case"ArrowUp":if(y.preventDefault(),!ee){Nt();break}tt(L=>Math.max(L-1,0));break;case"Enter":y.preventDefault(),ee&&st[Ze]&&us(st[Ze]);break;case"Backspace":s&&Pe===""&&ae.length>0&&fs(ae[ae.length-1]);break;case"Escape":ee&&(y.preventDefault(),Sr());break}},hs=ae.length>0;return o.jsxs("div",{ref:Ht,className:k("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[v&&o.jsx(A,{as:"label",htmlFor:oe,variant:"body",className:"text-neutral-text-primary",children:U(v)}),o.jsxs("div",{ref:Ie,onMouseDown:y=>{var L;y.target!==We.current&&(y.preventDefault(),(L=We.current)==null||L.focus(),Nt())},className:k(wr({hasError:de}),"h-auto min-h-11 cursor-text py-1.5",E&&"pointer-events-none opacity-50"),children:[T&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:T}),o.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1",children:[s&&kr.map(y=>o.jsxs("span",{className:"inline-flex h-6 max-w-full items-center gap-1 rounded bg-agilys-primary-100 pl-2 pr-1 text-agilys-primary",children:[o.jsx(A,{as:"span",variant:"bodySm",className:"truncate text-agilys-primary",children:U(p(y))}),!E&&o.jsx("button",{type:"button",tabIndex:-1,onMouseDown:L=>{L.preventDefault(),L.stopPropagation()},onClick:L=>{L.stopPropagation(),fs(y.value)},"aria-label":`Remover ${p(y)}`,className:"flex size-4 shrink-0 items-center justify-center rounded-sm hover:bg-agilys-primary-200",children:o.jsx(Tr,{className:"size-3"})})]},String(y.value))),o.jsx("input",{ref:be,type:"text",id:oe,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":ee,"aria-controls":fe,"aria-invalid":de||void 0,"aria-describedby":de?he:void 0,"aria-activedescendant":ee&&st[Ze]?`${fe}-option-${Ze}`:void 0,disabled:E,placeholder:s&&hs?void 0:U(j),value:da,onChange:y=>{Be(!0),De(y.target.value),ee||Ne(!0)},onFocus:y=>{Nt(),S==null||S(y)},onBlur:W,onClick:Nt,onKeyDown:ua,className:k(or,"truncate text-left",s&&"w-auto min-w-16",e),...G})]}),Mt&&o.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary",children:o.jsx(Lt,{})}),C&&hs&&!E&&o.jsx("button",{type:"button",tabIndex:-1,onMouseDown:y=>y.stopPropagation(),onClick:ca,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:o.jsx(Tr,{className:"size-4"})}),o.jsx("span",{className:k("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",ee&&"rotate-180",M&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:H??o.jsx(Hs,{className:"size-4"})})]}),w&&(s?ae.map(y=>o.jsx("input",{type:"hidden",name:w,value:y??""},String(y))):o.jsx("input",{type:"hidden",name:w,value:ae[0]??""})),ee&&D&&lr.createPortal(o.jsxs("ul",{ref:kt,id:fe,role:"listbox","aria-multiselectable":s||void 0,"aria-labelledby":v?oe:void 0,"aria-busy":Mt||void 0,style:D,className:"fixed z-[10000] max-h-60 min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[(Mt||st.length===0)&&o.jsx("li",{className:"px-3 py-2",children:o.jsx(A,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:U(Mt?m:R)})}),!Mt&&st.map((y,L)=>{const te=ae.includes(y.value),Oe=L===Ze;return o.jsxs("li",{id:`${fe}-option-${L}`,role:"option","aria-selected":te,onMouseEnter:()=>tt(L),onMouseDown:nt=>nt.preventDefault(),onClick:()=>us(y),className:k("flex cursor-pointer items-center gap-2 px-3 py-2",(Oe||te)&&"bg-lightGray"),children:[o.jsx(A,{as:"span",variant:"bodySm",className:k("flex-1 truncate text-black",te&&"font-medium"),children:U(y.label)}),s&&te&&o.jsx(oi,{className:"size-4 shrink-0 text-agilys-primary","aria-hidden":"true"})]},L)})]}),document.body),de&&o.jsx(A,{as:"span",id:he,role:"alert",variant:"caption",className:"text-danger-60",children:U(ge)})]})});Gn.displayName="Autocomplete";const wc=ce("relative flex w-full min-w-0 flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)]",{variants:{size:{sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-6xl"}},defaultVariants:{size:"sm"}});function _c(){return o.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const $n=u.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,size:l="sm",className:d,contentClassName:c,...m},p)=>{const x=u.useId(),R=u.useRef(null),[C,j]=u.useState(!1),v=u.useRef(t);return u.useEffect(()=>{v.current=t},[t]),u.useEffect(()=>j(!0),[]),u.useEffect(()=>{var H;if(!e||!C)return;const w=document.body.style.overflow;document.body.style.overflow="hidden",(H=R.current)==null||H.focus();const T=M=>{M.key==="Escape"&&!M.defaultPrevented&&v.current()};return document.addEventListener("keydown",T),()=>{document.body.style.overflow=w,document.removeEventListener("keydown",T)}},[e,C]),!e||!C?null:lr.createPortal(o.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:o.jsxs("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":r?x:void 0,onClick:w=>w.stopPropagation(),className:k(wc({size:l}),d),...m,children:[i&&o.jsx("button",{ref:R,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:o.jsx(_c,{})}),r&&o.jsx("div",{className:"pr-8",children:o.jsx(A,{variant:"h5",id:x,weight:"medium",className:"text-neutral-text-primary",children:U(r)})}),o.jsx("div",{className:k("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",c),children:s}),n&&o.jsx("div",{className:"flex flex-wrap justify-end items-center gap-2.5 pt-1",children:n})]})}),document.body)});$n.displayName="Modal";const Bn=ce("flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"),Zn=ce("flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",{variants:{selected:{true:"bg-agilys-primary text-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.1)]",false:"text-neutral-secondary hover:text-neutral-text-primary"}},defaultVariants:{selected:!1}}),qn=u.forwardRef(({className:e,options:t,value:r,defaultValue:s,onChange:n,id:a,"aria-label":i,...l},d)=>{var H;const c=u.useId(),m=a??c,p=r!==void 0,[x,R]=u.useState(s??((H=t[0])==null?void 0:H.value)),C=p?r:x,j=u.useRef([]),v=M=>{M.disabled||(p||R(M.value),n==null||n(M.value,M))},w=M=>{var I;(I=j.current[M])==null||I.focus()},T=(M,I)=>{const E=t.map((N,S)=>N.disabled?-1:S).filter(N=>N!==-1),K=N=>{const S=E.indexOf(I);if(S===-1)return;const W=(S+N+E.length)%E.length,G=E[W];w(G),v(t[G])};switch(M.key){case"ArrowRight":M.preventDefault(),K(1);break;case"ArrowLeft":M.preventDefault(),K(-1);break;case"Home":M.preventDefault(),E.length&&(w(E[0]),v(t[E[0]]));break;case"End":if(M.preventDefault(),E.length){const N=E[E.length-1];w(N),v(t[N])}break}};return o.jsx("div",{ref:d,role:"tablist","aria-label":i,id:m,className:k(Bn(),e),...l,children:t.map((M,I)=>{const E=M.value===C;return o.jsx("button",{ref:K=>{j.current[I]=K},type:"button",role:"tab",id:`${m}-tab-${I}`,"aria-selected":E,"aria-disabled":M.disabled||void 0,disabled:M.disabled,tabIndex:E?0:-1,onClick:()=>v(M),onKeyDown:K=>T(K,I),className:k(Zn({selected:E})),children:o.jsx(A,{as:"span",variant:"caption",weight:"medium",className:"text-[12px] text-inherit",children:U(M.label)})},I)})})});qn.displayName="Tabs";function kc({className:e}){return o.jsx("svg",{className:k("size-5 shrink-0 transition-transform duration-200",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const Jn=u.createContext(null);function Qn(){const e=u.useContext(Jn);if(!e)throw new Error("Accordion.Item must be used within an Accordion");return e}const Kn=ce("flex w-full flex-col gap-2"),Xn=u.forwardRef(({type:e="single",value:t,defaultValue:r,onChange:s,collapsible:n=!0,alwaysExpanded:a=!1,className:i,children:l,id:d,...c},m)=>{const p=u.useId(),x=d??p,R=S=>S===void 0?[]:Array.isArray(S)?S:[S],C=t!==void 0,[j,v]=u.useState(()=>R(r)),w=C?R(t):j,T=S=>{C||v(S),s==null||s(e==="multiple"?S:S[0]??"")},H=S=>{if(a)return;const W=w.includes(S);if(e==="multiple"){const G=W?w.filter(b=>b!==S):[...w,S];T(G);return}if(W){T(n?[]:w);return}T([S])},M=u.useRef(new Map),I=u.useRef([]),E=(S,W)=>{W?(M.current.set(S,W),I.current.includes(S)||I.current.push(S)):(M.current.delete(S),I.current=I.current.filter(G=>G!==S))},K=S=>{const W=I.current;if(!W.length)return;const G=(S+W.length)%W.length,b=M.current.get(W[G]);b==null||b.focus()},N=u.useMemo(()=>({openValues:w,toggleValue:H,registerTrigger:E,focusTrigger:K,values:I.current,accordionId:x,alwaysExpanded:a}),[w,e,n,x,a]);return o.jsx(Jn.Provider,{value:N,children:o.jsx("div",{ref:m,id:x,className:k(Kn(),i),...c,children:l})})});Xn.displayName="Accordion";const ea=u.createContext(null);function ta(){const e=u.useContext(ea);if(!e)throw new Error("Accordion.Trigger/Content must be used within an Accordion.Item");return e}const ra=ce("overflow-hidden rounded-lg border border-neutral-divider-secondary bg-white"),sa=u.forwardRef(({value:e,disabled:t=!1,className:r,children:s,...n},a)=>{const{openValues:i,accordionId:l,alwaysExpanded:d}=Qn(),c=d||i.includes(e),m=`${l}-trigger-${e}`,p=`${l}-content-${e}`;return o.jsx(ea.Provider,{value:{value:e,disabled:t,isOpen:c,triggerId:m,contentId:p},children:o.jsx("div",{ref:a,className:k(ra(),r),"data-state":c?"open":"closed",...n,children:s})})});sa.displayName="Accordion.Item";const na=ce("flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-3.5 text-left transition-colors hover:bg-lightGray focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50"),aa=u.forwardRef(({className:e,children:t,actions:r,actionsClassName:s,...n},a)=>{const{toggleValue:i,registerTrigger:l,focusTrigger:d,values:c,alwaysExpanded:m}=Qn(),{value:p,disabled:x,isOpen:R,triggerId:C,contentId:j}=ta(),v=w=>{const T=c.indexOf(p);switch(w.key){case"ArrowDown":w.preventDefault(),d(T+1);break;case"ArrowUp":w.preventDefault(),d(T-1);break;case"Home":w.preventDefault(),d(0);break;case"End":w.preventDefault(),d(c.length-1);break}};return o.jsxs(A,{as:"h3",variant:"body",className:"m-0 flex w-full items-center gap-2",children:[o.jsxs("button",{ref:w=>{l(p,w),typeof a=="function"?a(w):a&&(a.current=w)},type:"button",id:C,"aria-expanded":R,"aria-controls":j,disabled:x,onClick:()=>i(p),onKeyDown:v,className:k(na(),m&&"cursor-default hover:bg-transparent",e),...n,children:[o.jsx("span",{className:"flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary",children:U(t)}),o.jsx(kc,{className:k("text-neutral-text-secondary",R&&"rotate-180")})]}),r&&o.jsx("div",{className:k("flex shrink-0 items-center gap-1 pr-4",s),children:r})]})});aa.displayName="Accordion.Trigger";const ia=u.forwardRef(({className:e,children:t,...r},s)=>{const{isOpen:n,triggerId:a,contentId:i}=ta();return o.jsx("div",{ref:s,id:i,role:"region","aria-labelledby":a,hidden:!n,className:k("px-4 pb-4 pt-0 text-sm text-neutral-text-secondary",e),...r,children:t})});ia.displayName="Accordion.Content";const Sc=Object.assign(Xn,{Item:sa,Trigger:aa,Content:ia}),oa=ce("fixed z-[99999] flex w-full max-w-sm p-4",{variants:{position:{"top-right":"right-0 top-0 items-start justify-end","top-left":"left-0 top-0 items-start justify-start","bottom-right":"bottom-0 right-0 items-end justify-end","bottom-left":"bottom-0 left-0 items-end justify-start"}},defaultVariants:{position:"bottom-right"}});function la({open:e,position:t="bottom-right",container:r,className:s,variant:n,icon:a,title:i,description:l,action:d,onClose:c,duration:m=6e3,...p}){const[x,R]=u.useState(!1);return u.useEffect(()=>R(!0),[]),u.useEffect(()=>{if(!e||!m)return;const C=setTimeout(()=>c==null?void 0:c(),m);return()=>clearTimeout(C)},[e,m,c]),!e||!x?null:lr.createPortal(o.jsx("div",{className:oa({position:t}),...p,children:o.jsx(dr,{variant:n,icon:a,title:i,description:l,action:d,onClose:c,className:k("pointer-events-auto w-full shadow-lg",s)})}),r??document.body)}la.displayName="Toast";exports.Accordion=Sc;exports.Autocomplete=Gn;exports.Avatar=ds;exports.Badge=Es;exports.Button=zs;exports.Card=dr;exports.Input=Fn;exports.Modal=$n;exports.Notification=Ln;exports.Pagination=En;exports.Select=Hn;exports.Spinner=Lt;exports.Table=xc;exports.TableAvatar=gc;exports.TableCell=Ar;exports.TableCheckbox=ar;exports.TableHeadCell=ir;exports.Tabs=qn;exports.Text=A;exports.Toast=la;exports.accordionItemVariants=ra;exports.accordionTriggerVariants=na;exports.accordionVariants=Kn;exports.avatarVariants=An;exports.badgeVariants=As;exports.buttonVariants=Ls;exports.capitalizeFirstLetter=Is;exports.cardVariants=Fs;exports.cn=k;exports.inputVariants=wr;exports.tabVariants=Zn;exports.tabsListVariants=Bn;exports.textVariants=Ws;exports.toastPositionVariants=oa;
12
+ placeholder:font-normal placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed`,Fn=u.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,loading:i=!1,error:l,disabled:d,id:c,placeholder:m,type:p,rows:x,maxRows:T,onChange:C,...j},v)=>{const w=(p===void 0||p==="text")&&(x!==void 0||T!==void 0),R=x??1,H=w&&T!==void 0,M=u.useRef(null),I=u.useCallback(b=>{M.current=b,typeof v=="function"?v(b):v&&(v.current=b)},[v]),E=u.useCallback(()=>{const b=M.current;if(!b||!H)return;const Se=parseFloat(getComputedStyle(b).lineHeight),oe=Se*R,fe=Se*Math.max(T??R,R);b.style.height="auto";const ge=Math.min(Math.max(b.scrollHeight,oe),fe);b.style.height=`${ge}px`,b.style.overflowY=b.scrollHeight>fe?"auto":"hidden"},[H,R,T]);u.useLayoutEffect(()=>{E()},[E,j.value]);const K=u.useId(),N=c??K,S=typeof l=="string"?l:l==null?void 0:l.message,W=!!S,G=`${N}-error`;return o.jsxs("div",{className:k("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&o.jsx(A,{as:"label",htmlFor:N,variant:"body",className:"text-neutral-text-primary",children:U(r)}),o.jsxs("div",{className:k(wr({hasError:W}),w&&"h-auto min-h-11 items-start py-3",d&&"pointer-events-none opacity-50"),children:[s&&o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary","aria-hidden":"true",children:s}),w?o.jsx("textarea",{ref:I,id:N,disabled:d,placeholder:U(m),"aria-invalid":W||void 0,"aria-describedby":W?G:void 0,"aria-busy":i||void 0,rows:R,onChange:b=>{E(),C==null||C(b)},className:k(or,"resize-none",e),...j}):o.jsx("input",{ref:v,id:N,type:p,disabled:d,placeholder:U(m),"aria-invalid":W||void 0,"aria-describedby":W?G:void 0,"aria-busy":i||void 0,onChange:C,className:k(or,e),...j}),i&&o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary",children:o.jsx(Lt,{})}),n&&o.jsx("span",{className:k("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),W&&o.jsx(A,{as:"span",id:G,role:"alert",variant:"caption",className:"text-danger-60",children:U(S)})]})});Fn.displayName="Input";const Vn=e=>typeof e.label=="string"?e.label:String(e.value),Ds=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Un=(e,t,r)=>{const s=Ds(t.trim());return s?e.filter(n=>Ds(r(n)).includes(s)):e},Hn=u.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,getOptionLabel:i=Vn,filterOptions:l,noOptionsText:d="Nenhuma opção encontrada",clearable:c=!0,placeholder:m="Selecione",label:p,name:x,leftIcon:T,rightIcon:C,bgIcon:j=!1,error:v,disabled:w,id:R,onKeyDown:H,onFocus:M,onBlur:I,...E},K)=>{const N=u.useId(),S=R??N,W=`${S}-listbox`,G=typeof v=="string"?v:v==null?void 0:v.message,b=!!G,Se=`${S}-error`,oe=s!==void 0,[fe,ge]=u.useState(n),de=oe?s:fe,he=r.find(D=>D.value===de),[B,Me]=u.useState(!1),[ne,ae]=u.useState(""),[ee,Ne]=u.useState(!1),[Pe,De]=u.useState(0),Vt=u.useRef(null),Be=u.useRef(null),Ze=u.useRef(null),tt=u.useRef(null),[Ut,_t]=u.useState(null),_r=u.useCallback(D=>{tt.current=D,typeof K=="function"?K(D):K&&(K.current=D)},[K]),xe=u.useMemo(()=>ee?l?l(r,ne):Un(r,ne,i):r,[ee,r,ne,l,i]),Ht=B?ne:he?U(i(he)):"";u.useEffect(()=>{if(!B)return;const D=X=>{var je,qe;const be=X.target;!((je=Vt.current)!=null&&je.contains(be))&&!((qe=Ze.current)!=null&&qe.contains(be))&&(Me(!1),Ne(!1))};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[B]),u.useLayoutEffect(()=>{if(!B){_t(null);return}const D=()=>{var be;const X=(be=Be.current)==null?void 0:be.getBoundingClientRect();X&&_t({top:X.bottom+4,left:X.left,width:X.width})};return D(),window.addEventListener("resize",D),window.addEventListener("scroll",D,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,!0)}},[B]),u.useEffect(()=>{if(!B)return;const D=xe.findIndex(X=>X.value===de);De(D>=0?D:0)},[B,xe,de]);const Ie=()=>{ae(he?U(i(he)):""),Ne(!1),Me(!0)},kt=()=>{Me(!1),Ne(!1)},We=D=>{var X;oe||ge(D?D.value:void 0),a==null||a(D?D.value:void 0,D),kt(),(X=tt.current)==null||X.focus()},rt=D=>{D.stopPropagation(),We(null),ae(""),Ne(!1),Me(!0)},dt=D=>{if(H==null||H(D),!D.defaultPrevented)switch(D.key){case"ArrowDown":if(D.preventDefault(),!B){Ie();break}De(X=>Math.min(X+1,xe.length-1));break;case"ArrowUp":if(D.preventDefault(),!B){Ie();break}De(X=>Math.max(X-1,0));break;case"Enter":D.preventDefault(),B&&xe[Pe]&&We(xe[Pe]);break;case"Escape":B&&(D.preventDefault(),kt());break}};return o.jsxs("div",{ref:Vt,className:k("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[p&&o.jsx(A,{as:"label",htmlFor:S,variant:"body",className:"text-neutral-text-primary",children:U(p)}),o.jsxs("div",{ref:Be,className:k(wr({hasError:b}),w&&"pointer-events-none opacity-50"),children:[T&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:T}),o.jsx("input",{ref:_r,type:"text",id:S,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":B,"aria-controls":W,"aria-invalid":b||void 0,"aria-describedby":b?Se:void 0,"aria-activedescendant":B&&xe[Pe]?`${W}-option-${Pe}`:void 0,disabled:w,placeholder:U(m),value:Ht,onChange:D=>{Ne(!0),ae(D.target.value),B||Me(!0)},onFocus:D=>{Ie(),M==null||M(D)},onBlur:I,onClick:()=>{B||Ie()},onKeyDown:dt,className:k(or,"truncate text-left",e),...E}),c&&he&&!w&&o.jsx("button",{type:"button",tabIndex:-1,onClick:rt,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:o.jsx(Tr,{className:"size-4"})}),o.jsx("span",{className:k("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",B&&"rotate-180",j&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:C??o.jsx(Hs,{className:"size-4"})})]}),x&&o.jsx("input",{type:"hidden",name:x,value:de??""}),B&&Ut&&lr.createPortal(o.jsxs("ul",{ref:Ze,id:W,role:"listbox","aria-labelledby":p?S:void 0,style:Ut,className:"fixed z-[10000] max-h-60 min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[xe.length===0&&o.jsx("li",{className:"px-3 py-2",children:o.jsx(A,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:U(d)})}),xe.map((D,X)=>{const be=D.value===de,je=X===Pe;return o.jsx("li",{id:`${W}-option-${X}`,role:"option","aria-selected":be,onMouseEnter:()=>De(X),onMouseDown:qe=>qe.preventDefault(),onClick:()=>We(D),className:k("cursor-pointer truncate px-3 py-2",(je||be)&&"bg-lightGray"),children:o.jsx(A,{as:"span",variant:"bodySm",className:k("truncate text-black",be&&"font-medium"),children:U(D.label)})},X)})]}),document.body),b&&o.jsx(A,{as:"span",id:Se,role:"alert",variant:"caption",className:"text-danger-60",children:U(G)})]})});Hn.displayName="Select";const vc=(e,t)=>t?Array.isArray(e)?e:[]:e==null?[]:[e],Gn=u.forwardRef(({className:e,containerClassName:t,options:r=[],multiple:s=!1,value:n,defaultValue:a,onChange:i,onSearch:l,searchDebounce:d=300,loading:c=!1,loadingText:m="Carregando...",getOptionLabel:p=Vn,filterOptions:x,noOptionsText:T="Nenhuma opção encontrada",clearable:C=!0,placeholder:j="Selecione",label:v,name:w,leftIcon:R,rightIcon:H,bgIcon:M=!1,error:I,disabled:E,id:K,onKeyDown:N,onFocus:S,onBlur:W,...G},b)=>{const Se=u.useId(),oe=K??Se,fe=`${oe}-listbox`,ge=typeof I=="string"?I:I==null?void 0:I.message,de=!!ge,he=`${oe}-error`,B=n!==void 0,[Me,ne]=u.useState(a),ae=vc(B?n:Me,s),[ee,Ne]=u.useState(!1),[Pe,De]=u.useState(""),[Vt,Be]=u.useState(!1),[Ze,tt]=u.useState(0),[Ut,_t]=u.useState(null),[_r,xe]=u.useState(!1),Ht=u.useRef(null),Ie=u.useRef(null),kt=u.useRef(null),We=u.useRef(null),rt=u.useRef(l),dt=u.useRef(0),[D,X]=u.useState(null);rt.current=l;const be=u.useCallback(y=>{We.current=y,typeof b=="function"?b(y):b&&(b.current=y)},[b]),je=Ut??r,qe=u.useRef(new Map);for(const y of je)qe.current.set(y.value,y);const kr=ae.map(y=>qe.current.get(y)).filter(y=>!!y),St=Vt?Pe:"",st=u.useMemo(()=>x?x(je,St):l?je:Un(je,St,p),[je,St,x,p,!l]),Mt=c||_r,cs=!s&&kr[0]?U(p(kr[0])):"",da=s||ee?Pe:cs;u.useEffect(()=>{if(!ee||!rt.current)return;const y=++dt.current,L=setTimeout(()=>{var Oe;const te=(Oe=rt.current)==null?void 0:Oe.call(rt,St);!te||typeof te.then!="function"||(xe(!0),te.then(nt=>{y===dt.current&&Array.isArray(nt)&&_t(nt)}).catch(()=>{y===dt.current&&_t([])}).finally(()=>{y===dt.current&&xe(!1)}))},d);return()=>clearTimeout(L)},[ee,St,d]),u.useEffect(()=>{if(!ee)return;const y=L=>{var Oe,nt;const te=L.target;!((Oe=Ht.current)!=null&&Oe.contains(te))&&!((nt=kt.current)!=null&&nt.contains(te))&&Sr()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[ee]),u.useLayoutEffect(()=>{if(!ee){X(null);return}const y=()=>{var Oe;const te=(Oe=Ie.current)==null?void 0:Oe.getBoundingClientRect();te&&X({top:te.bottom+4,left:te.left,width:te.width})};y();const L=new ResizeObserver(y);return Ie.current&&L.observe(Ie.current),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),()=>{L.disconnect(),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0)}},[ee]),u.useEffect(()=>{ee&&tt(0)},[ee,st]);const Nt=()=>{ee||(De(s?"":cs),Be(!1),Ne(!0))};function Sr(){Ne(!1),Be(!1),De("")}const Gt=y=>{const L=y.map(te=>qe.current.get(te)).filter(te=>!!te);s?(B||ne(y),i==null||i(y,L)):(B||ne(y[0]),i==null||i(y[0],L[0]??null))},us=y=>{var L;s?(Gt(ae.includes(y.value)?ae.filter(te=>te!==y.value):[...ae,y.value]),De(""),Be(!1)):(Gt([y.value]),Sr()),(L=We.current)==null||L.focus()},fs=y=>{Gt(ae.filter(L=>L!==y))},ca=y=>{var L;y.stopPropagation(),Gt([]),De(""),Be(!1),Ne(!0),(L=We.current)==null||L.focus()},ua=y=>{if(N==null||N(y),!y.defaultPrevented)switch(y.key){case"ArrowDown":if(y.preventDefault(),!ee){Nt();break}tt(L=>Math.min(L+1,st.length-1));break;case"ArrowUp":if(y.preventDefault(),!ee){Nt();break}tt(L=>Math.max(L-1,0));break;case"Enter":y.preventDefault(),ee&&st[Ze]&&us(st[Ze]);break;case"Backspace":s&&Pe===""&&ae.length>0&&fs(ae[ae.length-1]);break;case"Escape":ee&&(y.preventDefault(),Sr());break}},hs=ae.length>0;return o.jsxs("div",{ref:Ht,className:k("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[v&&o.jsx(A,{as:"label",htmlFor:oe,variant:"body",className:"text-neutral-text-primary",children:U(v)}),o.jsxs("div",{ref:Ie,onMouseDown:y=>{var L;y.target!==We.current&&(y.preventDefault(),(L=We.current)==null||L.focus(),Nt())},className:k(wr({hasError:de}),"h-auto min-h-11 cursor-text py-1.5",E&&"pointer-events-none opacity-50"),children:[R&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:R}),o.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1",children:[s&&kr.map(y=>o.jsxs("span",{className:"inline-flex h-6 max-w-full items-center gap-1 rounded bg-agilys-primary-100 pl-2 pr-1 text-agilys-primary",children:[o.jsx(A,{as:"span",variant:"bodySm",className:"truncate text-agilys-primary",children:U(p(y))}),!E&&o.jsx("button",{type:"button",tabIndex:-1,onMouseDown:L=>{L.preventDefault(),L.stopPropagation()},onClick:L=>{L.stopPropagation(),fs(y.value)},"aria-label":`Remover ${p(y)}`,className:"flex size-4 shrink-0 items-center justify-center rounded-sm hover:bg-agilys-primary-200",children:o.jsx(Tr,{className:"size-3"})})]},String(y.value))),o.jsx("input",{ref:be,type:"text",id:oe,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":ee,"aria-controls":fe,"aria-invalid":de||void 0,"aria-describedby":de?he:void 0,"aria-activedescendant":ee&&st[Ze]?`${fe}-option-${Ze}`:void 0,disabled:E,placeholder:s&&hs?void 0:U(j),value:da,onChange:y=>{Be(!0),De(y.target.value),ee||Ne(!0)},onFocus:y=>{Nt(),S==null||S(y)},onBlur:W,onClick:Nt,onKeyDown:ua,className:k(or,"truncate text-left",s&&"w-auto min-w-16",e),...G})]}),Mt&&o.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary",children:o.jsx(Lt,{})}),C&&hs&&!E&&o.jsx("button",{type:"button",tabIndex:-1,onMouseDown:y=>y.stopPropagation(),onClick:ca,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:o.jsx(Tr,{className:"size-4"})}),o.jsx("span",{className:k("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",ee&&"rotate-180",M&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:H??o.jsx(Hs,{className:"size-4"})})]}),w&&(s?ae.map(y=>o.jsx("input",{type:"hidden",name:w,value:y??""},String(y))):o.jsx("input",{type:"hidden",name:w,value:ae[0]??""})),ee&&D&&lr.createPortal(o.jsxs("ul",{ref:kt,id:fe,role:"listbox","aria-multiselectable":s||void 0,"aria-labelledby":v?oe:void 0,"aria-busy":Mt||void 0,style:D,className:"fixed z-[10000] max-h-60 min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[(Mt||st.length===0)&&o.jsx("li",{className:"px-3 py-2",children:o.jsx(A,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:U(Mt?m:T)})}),!Mt&&st.map((y,L)=>{const te=ae.includes(y.value),Oe=L===Ze;return o.jsxs("li",{id:`${fe}-option-${L}`,role:"option","aria-selected":te,onMouseEnter:()=>tt(L),onMouseDown:nt=>nt.preventDefault(),onClick:()=>us(y),className:k("flex cursor-pointer items-center gap-2 px-3 py-2",(Oe||te)&&"bg-lightGray"),children:[o.jsx(A,{as:"span",variant:"bodySm",className:k("flex-1 truncate text-black",te&&"font-medium"),children:U(y.label)}),s&&te&&o.jsx(oi,{className:"size-4 shrink-0 text-agilys-primary","aria-hidden":"true"})]},L)})]}),document.body),de&&o.jsx(A,{as:"span",id:he,role:"alert",variant:"caption",className:"text-danger-60",children:U(ge)})]})});Gn.displayName="Autocomplete";const wc=ce("relative flex w-full min-w-0 flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)]",{variants:{size:{sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-6xl"}},defaultVariants:{size:"sm"}});function _c(){return o.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const $n=u.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,size:l="sm",className:d,contentClassName:c,...m},p)=>{const x=u.useId(),T=u.useRef(null),[C,j]=u.useState(!1),v=u.useRef(t);return u.useEffect(()=>{v.current=t},[t]),u.useEffect(()=>j(!0),[]),u.useEffect(()=>{var H;if(!e||!C)return;const w=document.body.style.overflow;document.body.style.overflow="hidden",(H=T.current)==null||H.focus();const R=M=>{M.key==="Escape"&&!M.defaultPrevented&&v.current()};return document.addEventListener("keydown",R),()=>{document.body.style.overflow=w,document.removeEventListener("keydown",R)}},[e,C]),!e||!C?null:lr.createPortal(o.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:o.jsxs("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":r?x:void 0,onClick:w=>w.stopPropagation(),className:k(wc({size:l}),d),...m,children:[i&&o.jsx("button",{ref:T,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:o.jsx(_c,{})}),r&&o.jsx("div",{className:"pr-8",children:o.jsx(A,{variant:"h5",id:x,weight:"medium",className:"text-neutral-text-primary",children:U(r)})}),o.jsx("div",{className:k("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",c),children:s}),n&&o.jsx("div",{className:"flex flex-wrap justify-end items-center gap-2.5 pt-1",children:n})]})}),document.body)});$n.displayName="Modal";const Bn=ce("flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"),Zn=ce("flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",{variants:{selected:{true:"bg-agilys-primary text-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.1)]",false:"text-neutral-secondary hover:text-neutral-text-primary"}},defaultVariants:{selected:!1}}),qn=u.forwardRef(({className:e,options:t,value:r,defaultValue:s,onChange:n,id:a,"aria-label":i,...l},d)=>{var H;const c=u.useId(),m=a??c,p=r!==void 0,[x,T]=u.useState(s??((H=t[0])==null?void 0:H.value)),C=p?r:x,j=u.useRef([]),v=M=>{M.disabled||(p||T(M.value),n==null||n(M.value,M))},w=M=>{var I;(I=j.current[M])==null||I.focus()},R=(M,I)=>{const E=t.map((N,S)=>N.disabled?-1:S).filter(N=>N!==-1),K=N=>{const S=E.indexOf(I);if(S===-1)return;const W=(S+N+E.length)%E.length,G=E[W];w(G),v(t[G])};switch(M.key){case"ArrowRight":M.preventDefault(),K(1);break;case"ArrowLeft":M.preventDefault(),K(-1);break;case"Home":M.preventDefault(),E.length&&(w(E[0]),v(t[E[0]]));break;case"End":if(M.preventDefault(),E.length){const N=E[E.length-1];w(N),v(t[N])}break}};return o.jsx("div",{ref:d,role:"tablist","aria-label":i,id:m,className:k(Bn(),e),...l,children:t.map((M,I)=>{const E=M.value===C;return o.jsx("button",{ref:K=>{j.current[I]=K},type:"button",role:"tab",id:`${m}-tab-${I}`,"aria-selected":E,"aria-disabled":M.disabled||void 0,disabled:M.disabled,tabIndex:E?0:-1,onClick:()=>v(M),onKeyDown:K=>R(K,I),className:k(Zn({selected:E})),children:o.jsx(A,{as:"span",variant:"caption",weight:"medium",className:"text-[11px] text-inherit",children:U(M.label)})},I)})})});qn.displayName="Tabs";function kc({className:e}){return o.jsx("svg",{className:k("size-5 shrink-0 transition-transform duration-200",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const Jn=u.createContext(null);function Qn(){const e=u.useContext(Jn);if(!e)throw new Error("Accordion.Item must be used within an Accordion");return e}const Kn=ce("flex w-full flex-col gap-2"),Xn=u.forwardRef(({type:e="single",value:t,defaultValue:r,onChange:s,collapsible:n=!0,alwaysExpanded:a=!1,className:i,children:l,id:d,...c},m)=>{const p=u.useId(),x=d??p,T=S=>S===void 0?[]:Array.isArray(S)?S:[S],C=t!==void 0,[j,v]=u.useState(()=>T(r)),w=C?T(t):j,R=S=>{C||v(S),s==null||s(e==="multiple"?S:S[0]??"")},H=S=>{if(a)return;const W=w.includes(S);if(e==="multiple"){const G=W?w.filter(b=>b!==S):[...w,S];R(G);return}if(W){R(n?[]:w);return}R([S])},M=u.useRef(new Map),I=u.useRef([]),E=(S,W)=>{W?(M.current.set(S,W),I.current.includes(S)||I.current.push(S)):(M.current.delete(S),I.current=I.current.filter(G=>G!==S))},K=S=>{const W=I.current;if(!W.length)return;const G=(S+W.length)%W.length,b=M.current.get(W[G]);b==null||b.focus()},N=u.useMemo(()=>({openValues:w,toggleValue:H,registerTrigger:E,focusTrigger:K,values:I.current,accordionId:x,alwaysExpanded:a}),[w,e,n,x,a]);return o.jsx(Jn.Provider,{value:N,children:o.jsx("div",{ref:m,id:x,className:k(Kn(),i),...c,children:l})})});Xn.displayName="Accordion";const ea=u.createContext(null);function ta(){const e=u.useContext(ea);if(!e)throw new Error("Accordion.Trigger/Content must be used within an Accordion.Item");return e}const ra=ce("overflow-hidden rounded-lg border border-neutral-divider-secondary bg-white"),sa=u.forwardRef(({value:e,disabled:t=!1,className:r,children:s,...n},a)=>{const{openValues:i,accordionId:l,alwaysExpanded:d}=Qn(),c=d||i.includes(e),m=`${l}-trigger-${e}`,p=`${l}-content-${e}`;return o.jsx(ea.Provider,{value:{value:e,disabled:t,isOpen:c,triggerId:m,contentId:p},children:o.jsx("div",{ref:a,className:k(ra(),r),"data-state":c?"open":"closed",...n,children:s})})});sa.displayName="Accordion.Item";const na=ce("flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-3.5 text-left transition-colors hover:bg-lightGray focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50"),aa=u.forwardRef(({className:e,children:t,actions:r,actionsClassName:s,...n},a)=>{const{toggleValue:i,registerTrigger:l,focusTrigger:d,values:c,alwaysExpanded:m}=Qn(),{value:p,disabled:x,isOpen:T,triggerId:C,contentId:j}=ta(),v=w=>{const R=c.indexOf(p);switch(w.key){case"ArrowDown":w.preventDefault(),d(R+1);break;case"ArrowUp":w.preventDefault(),d(R-1);break;case"Home":w.preventDefault(),d(0);break;case"End":w.preventDefault(),d(c.length-1);break}};return o.jsxs(A,{as:"h3",variant:"body",className:"m-0 flex w-full items-center gap-2",children:[o.jsxs("button",{ref:w=>{l(p,w),typeof a=="function"?a(w):a&&(a.current=w)},type:"button",id:C,"aria-expanded":T,"aria-controls":j,disabled:x,onClick:()=>i(p),onKeyDown:v,className:k(na(),m&&"cursor-default hover:bg-transparent",e),...n,children:[o.jsx("span",{className:"flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary",children:U(t)}),!m&&o.jsx(kc,{className:k("text-neutral-text-secondary",T&&"rotate-180")})]}),r&&o.jsx("div",{className:k("flex shrink-0 items-center gap-1 pr-4",s),children:r})]})});aa.displayName="Accordion.Trigger";const ia=u.forwardRef(({className:e,children:t,...r},s)=>{const{isOpen:n,triggerId:a,contentId:i}=ta();return o.jsx("div",{ref:s,id:i,role:"region","aria-labelledby":a,hidden:!n,className:k("px-4 pb-4 pt-0 text-sm text-neutral-text-secondary",e),...r,children:t})});ia.displayName="Accordion.Content";const Sc=Object.assign(Xn,{Item:sa,Trigger:aa,Content:ia}),oa=ce("fixed z-[99999] flex w-full max-w-sm p-4",{variants:{position:{"top-right":"right-0 top-0 items-start justify-end","top-left":"left-0 top-0 items-start justify-start","bottom-right":"bottom-0 right-0 items-end justify-end","bottom-left":"bottom-0 left-0 items-end justify-start"}},defaultVariants:{position:"bottom-right"}});function la({open:e,position:t="bottom-right",container:r,className:s,variant:n,icon:a,title:i,description:l,action:d,onClose:c,duration:m=6e3,...p}){const[x,T]=u.useState(!1);return u.useEffect(()=>T(!0),[]),u.useEffect(()=>{if(!e||!m)return;const C=setTimeout(()=>c==null?void 0:c(),m);return()=>clearTimeout(C)},[e,m,c]),!e||!x?null:lr.createPortal(o.jsx("div",{className:oa({position:t}),...p,children:o.jsx(dr,{variant:n,icon:a,title:i,description:l,action:d,onClose:c,className:k("pointer-events-auto w-full shadow-lg",s)})}),r??document.body)}la.displayName="Toast";exports.Accordion=Sc;exports.Autocomplete=Gn;exports.Avatar=ds;exports.Badge=Es;exports.Button=zs;exports.Card=dr;exports.Input=Fn;exports.Modal=$n;exports.Notification=Ln;exports.Pagination=En;exports.Select=Hn;exports.Spinner=Lt;exports.Table=xc;exports.TableAvatar=gc;exports.TableCell=Ar;exports.TableCheckbox=ar;exports.TableHeadCell=ir;exports.Tabs=qn;exports.Text=A;exports.Toast=la;exports.accordionItemVariants=ra;exports.accordionTriggerVariants=na;exports.accordionVariants=Kn;exports.avatarVariants=An;exports.badgeVariants=As;exports.buttonVariants=Ls;exports.capitalizeFirstLetter=Is;exports.cardVariants=Fs;exports.cn=k;exports.inputVariants=wr;exports.tabVariants=Zn;exports.tabsListVariants=Bn;exports.textVariants=Ws;exports.toastPositionVariants=oa;
13
13
  //# sourceMappingURL=agilys-design-system.cjs.map