@agilys-system/design-system 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agilys-design-system.cjs +10 -1
- package/dist/agilys-design-system.cjs.map +1 -1
- package/dist/agilys-design-system.js +3773 -984
- package/dist/agilys-design-system.js.map +1 -1
- package/dist/index.d.ts +26 -3
- package/dist/style.css +1 -1
- package/package.json +7 -2
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),y=require("react"),Ge=require("react-dom");function xe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=xe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function he(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=xe(e))&&(n&&(n+=" "),n+=t);return n}const de=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ue=he,T=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ue(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(c=>{const p=r==null?void 0:r[c],b=s==null?void 0:s[c];if(p===null)return null;const f=de(p)||de(b);return a[c][f]}),i=r&&Object.entries(r).reduce((c,p)=>{let[b,f]=p;return f===void 0||(c[b]=f),c},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:b,className:f,...z}=p;return Object.entries(z).every(N=>{let[x,m]=N;return Array.isArray(m)?m.includes({...s,...i}[x]):{...s,...i}[x]===m})?[...c,b,f]:c},[]);return ue(e,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},ne="-",Be=e=>{const t=He(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ne);return i[0]===""&&i.length!==1&&i.shift(),ye(i,t)||$e(l)},getConflictingClassGroupIds:(l,i)=>{const d=r[l]||[];return i&&n[l]?[...d,...n[l]]:d}}},ye=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?ye(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(ne);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},pe=/^\[(.+)\]$/,$e=e=>{if(pe.test(e)){const t=pe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},He=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ue(Object.entries(e.classGroups),r).forEach(([s,l])=>{te(l,n,s,t)}),n},te=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:fe(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Fe(a)){te(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,l])=>{te(l,fe(t,s),r,n)})})},fe=(e,t)=>{let r=e;return t.split(ne).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Fe=e=>e.isThemeGetter,Ue=(e,t)=>t?e.map(([r,n])=>{const a=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[r,a]}):e,qe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(s,l)=>{r.set(s,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let l=r.get(s);if(l!==void 0)return l;if((l=n.get(s))!==void 0)return a(s,l),l},set(s,l){r.has(s)?r.set(s,l):a(s,l)}}},ve="!",Ke=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],s=t.length,l=i=>{const d=[];let c=0,p=0,b;for(let m=0;m<i.length;m++){let w=i[m];if(c===0){if(w===a&&(n||i.slice(m,m+s)===t)){d.push(i.slice(p,m)),p=m+s;continue}if(w==="/"){b=m;continue}}w==="["?c++:w==="]"&&c--}const f=d.length===0?i:i.substring(p),z=f.startsWith(ve),N=z?f.substring(1):f,x=b&&b>p?b-p:void 0;return{modifiers:d,hasImportantModifier:z,baseClassName:N,maybePostfixModifierPosition:x}};return r?i=>r({className:i,parseClassName:l}):l},Je=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Xe=e=>({cache:qe(e.cacheSize),parseClassName:Ke(e),...Be(e)}),Ze=/\s+/,De=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split(Ze);let i="";for(let d=l.length-1;d>=0;d-=1){const c=l[d],{modifiers:p,hasImportantModifier:b,baseClassName:f,maybePostfixModifierPosition:z}=r(c);let N=!!z,x=n(N?f.substring(0,z):f);if(!x){if(!N){i=c+(i.length>0?" "+i:i);continue}if(x=n(f),!x){i=c+(i.length>0?" "+i:i);continue}N=!1}const m=Je(p).join(":"),w=b?m+ve:m,C=w+x;if(s.includes(C))continue;s.push(C);const S=a(x,N);for(let M=0;M<S.length;++M){const L=S[M];s.push(w+L)}i=c+(i.length>0?" "+i:i)}return i};function Qe(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=we(t))&&(n&&(n+=" "),n+=r);return n}const we=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=we(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ye(e,...t){let r,n,a,s=l;function l(d){const c=t.reduce((p,b)=>b(p),e());return r=Xe(c),n=r.cache.get,a=r.cache.set,s=i,i(d)}function i(d){const c=n(d);if(c)return c;const p=De(d,r);return a(d,p),p}return function(){return s(Qe.apply(null,arguments))}}const h=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},je=/^\[(?:([a-z-]+):)?(.+)\]$/i,et=/^\d+\/\d+$/,tt=new Set(["px","full","screen"]),rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\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$/,ot=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,st=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,at=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>P(e)||tt.has(e)||et.test(e),V=e=>W(e,"length",bt),P=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>W(e,"number",P),$=e=>!!e&&Number.isInteger(Number(e)),it=e=>e.endsWith("%")&&P(e.slice(0,-1)),u=e=>je.test(e),E=e=>rt.test(e),lt=new Set(["length","size","percentage"]),ct=e=>W(e,lt,ke),dt=e=>W(e,"position",ke),ut=new Set(["image","url"]),pt=e=>W(e,ut,gt),ft=e=>W(e,"",mt),H=()=>!0,W=(e,t,r)=>{const n=je.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},bt=e=>nt.test(e)&&!ot.test(e),ke=()=>!1,mt=e=>st.test(e),gt=e=>at.test(e),xt=()=>{const e=h("colors"),t=h("spacing"),r=h("blur"),n=h("brightness"),a=h("borderColor"),s=h("borderRadius"),l=h("borderSpacing"),i=h("borderWidth"),d=h("contrast"),c=h("grayscale"),p=h("hueRotate"),b=h("invert"),f=h("gap"),z=h("gradientColorStops"),N=h("gradientColorStopPositions"),x=h("inset"),m=h("margin"),w=h("opacity"),C=h("padding"),S=h("saturate"),M=h("scale"),L=h("sepia"),U=h("skew"),j=h("space"),_=h("translate"),R=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",u,t],v=()=>[u,t],ae=()=>["",O,V],q=()=>["auto",P,u],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",u],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[P,u];return{cacheSize:500,separator:":",theme:{colors:[H],spacing:[O,V],blur:["none","",E,u],brightness:A(),borderColor:[e],borderRadius:["none","","full",E,u],borderSpacing:v(),borderWidth:ae(),contrast:A(),grayscale:B(),hueRotate:A(),invert:B(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[it,V],inset:G(),margin:G(),opacity:A(),padding:v(),saturate:A(),scale:A(),sepia:B(),skew:A(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"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:[...ie(),u]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$,u]}],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",u]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",$,u]}],"grid-cols":[{"grid-cols":[H]}],"col-start-end":[{col:["auto",{span:["full",$,u]},u]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[H]}],"row-start-end":[{row:["auto",{span:[$,u]},u]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[H]}],"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",u]}],"line-clamp":[{"line-clamp":["none",P,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"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:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,V]}],"underline-offset":[{"underline-offset":["auto",O,u]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"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:[...ie(),dt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ct]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:K()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[O,u]}],"outline-w":[{outline:[O,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[O,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,ft]}],"shadow-color":[{shadow:[H]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",E,u]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[b]}],saturate:[{saturate:[S]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[$,u]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,V,ee]}],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"]}}},ht=Ye(xt);function g(...e){return ht(he(e))}const Ne=T("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"}}),yt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},k=y.forwardRef(({className:e,variant:t="body",weight:r,as:n,children:a,...s},l)=>{const i=n??yt[t??"body"];return y.createElement(i,{ref:l,className:g(Ne({variant:t,weight:r}),e),...s},a)});k.displayName="Text";const Ce=T("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"}}),vt={sm:"bodySm",md:"body",lg:"body",icon:"body"},ze=y.forwardRef(({className:e,variant:t,size:r,fullWidth:n,isLoading:a=!1,leftIcon:s,disabled:l,children:i,...d},c)=>{const p=r==="icon",b=vt[r??"md"];return o.jsxs("button",{ref:c,className:g(Ce({variant:t,size:r,fullWidth:n}),e),disabled:l||a,"aria-busy":a,...d,children:[a&&o.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!a&&s&&o.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:s}),p?o.jsx("span",{className:"inline-flex shrink-0",children:i}):o.jsx(k,{as:"span",variant:b,className:"text-inherit",children:i})]})});ze.displayName="Button";const _e=T("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"},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"}],defaultVariants:{variant:"filled",status:"default"}}),wt={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},Se=y.forwardRef(({className:e,variant:t="filled",status:r="default",children:n,...a},s)=>o.jsxs("span",{ref:s,className:g(_e({variant:t,status:r}),e),...a,children:[t==="dot"&&o.jsx("span",{className:g("size-2 shrink-0 rounded-full",wt[r??"default"]),"aria-hidden":"true"}),o.jsx(k,{as:"span",variant:"body",className:"text-inherit",children:n})]}));Se.displayName="Badge";const Me=T("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"}}),jt={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function kt(){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 Nt(){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 Ct(){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 zt(){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 _t(){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 St={success:o.jsx(Nt,{}),warning:o.jsx(Ct,{}),error:o.jsx(zt,{}),info:o.jsx(kt,{})},oe=y.forwardRef(({className:e,variant:t="default",icon:r,title:n,description:a,action:s,onClose:l,children:i,...d},c)=>{const p=t??"default",b=r===void 0?St[p]:r,f=jt[p];return o.jsxs("div",{ref:c,className:g(Me({variant:t}),e),...d,children:[b&&o.jsx("span",{className:g("size-6 shrink-0",f),"aria-hidden":"true",children:b}),o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[n&&o.jsx(k,{as:"div",variant:"body",weight:"semibold",className:f,children:n}),a&&o.jsx(k,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:a}),i]}),s&&o.jsx("div",{className:"flex shrink-0 items-center",children:s}),l&&o.jsx("button",{type:"button",onClick:l,"aria-label":"Fechar",className:g("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",f),children:o.jsx(_t,{})})]})});oe.displayName="Card";var Ie={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},be=y.createContext&&y.createContext(Ie),Mt=["attr","size","title"];function It(e,t){if(e==null)return{};var r,n,a=At(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function At(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},X.apply(null,arguments)}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?me(Object(r),!0).forEach(function(n){Ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ot(e,t,r){return(t=Vt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vt(e){var t=Et(e,"string");return typeof t=="symbol"?t:t+""}function Et(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ae(e){return e&&e.map((t,r)=>y.createElement(t.tag,Z({key:r},t.attr),Ae(t.child)))}function Oe(e){return t=>y.createElement(Rt,X({attr:Z({},e.attr)},t),Ae(e.child))}function Rt(e){var t=r=>{var n=e.attr,a=e.size,s=e.title,l=It(e,Mt),i=a||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),y.createElement("svg",X({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:d,style:Z(Z({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&y.createElement("title",null,s),e.children)};return be!==void 0?y.createElement(be.Consumer,null,r=>t(r)):t(Ie)}function Lt(e){return Oe({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 Pt(e){return Oe({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)}const Ve=y.forwardRef(({className:e,title:t,body:r,timestamp:n,read:a=!1,onArchive:s,onDelete:l,...i},d)=>o.jsxs(oe,{ref:d,icon:null,className:g(!a&&"border-transparent bg-lightGray",e),...i,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:[!a&&o.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),o.jsx(k,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),o.jsx(k,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:n})]}),o.jsx(k,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),o.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[o.jsx("button",{type:"button",onClick:s,"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(Lt,{className:"size-4","aria-hidden":"true"})}),o.jsx("button",{type:"button",onClick:l,"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(Pt,{className:"size-4","aria-hidden":"true"})})]})]}));Ve.displayName="NotificationCard";function Tt(e,t){return t.split(".").reduce((r,n)=>r==null?void 0:r[n],e)}function Wt(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=Tt(e,t.key);return r==null||r===""?null:o.jsx(k,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const Ee={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},D=y.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:g("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"})})]}));D.displayName="TableCheckbox";function Gt({className:e}){return o.jsx("svg",{className:g("size-5 shrink-0",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M8 9l4-4 4 4M8 15l4 4 4-4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}const Q=y.forwardRef(({className:e,align:t="left",sortable:r,sorted:n,onSort:a,children:s,...l},i)=>o.jsx("th",{ref:i,className:g("border-b border-neutral-divider-secondary px-5 py-2",e),...l,children:o.jsxs("span",{className:g("flex items-center gap-1.5",Ee[t??"left"],r&&"cursor-pointer select-none"),onClick:r?a:void 0,children:[o.jsx(k,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:s}),r&&o.jsx(Gt,{className:g(n&&"text-agilys-primary")})]})}));Q.displayName="TableHeadCell";function re({align:e="left",className:t,children:r,onClick:n}){return o.jsx("td",{onClick:n,className:g("border-b border-neutral-divider-secondary px-5 py-3",t),children:o.jsx(k,{className:g("flex items-center gap-2",Ee[e??"left"]),children:r})})}function Bt(e,t,r){if(typeof r=="function")return r(e);const n=e;return r?n[r]??t:n.id??t}function $t({keys:e,data:t,rowKey:r,loading:n,loadingMessage:a="Carregando dados...",emptyMessage:s="Nenhum dado para ser exibido!",selectable:l,selectedRowKeys:i,onSelectionChange:d,sortKey:c,sortDirection:p,onSortChange:b,onRowClick:f,shadow:z=!1,border:N=!0,className:x,...m}){const w=e.length+(l?1:0),C=i??[],S=t.map((j,_)=>Bt(j,_,r)),M=S.length>0&&S.every(j=>C.includes(j)),L=()=>{d&&d(M?[]:S)},U=j=>{d&&d(C.includes(j)?C.filter(_=>_!==j):[...C,j])};return o.jsx("div",{className:g("w-full overflow-x-auto rounded-lg",N&&"border border-neutral-divider-secondary",z&&"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:g("w-full border-collapse font-sans",x),...m,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[l&&o.jsx(Q,{align:"center",className:"w-11",children:o.jsx(D,{checked:M,onChange:L,"aria-label":"Selecionar todas as linhas"})}),e.map((j,_)=>o.jsx(Q,{align:j.align,sortable:!!j.key&&!!b,sorted:j.key&&c===j.key?p:!1,onSort:()=>j.key&&(b==null?void 0:b(j.key)),children:j.label},j.key??`column-${_}`))]})}),o.jsx("tbody",{children:n?o.jsx("tr",{children:o.jsx("td",{colSpan:w,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:o.jsx(k,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:w,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:o.jsx(k,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:s})})}):t.map((j,_)=>{const R=S[_];return o.jsxs("tr",{onClick:f?()=>f(j):void 0,className:g(_%2===0?"bg-neutral-surface-lightest":"bg-white",f&&"cursor-pointer"),children:[l&&o.jsx(re,{align:"center",onClick:I=>I.stopPropagation(),children:o.jsx(D,{checked:C.includes(R),onChange:()=>U(R),"aria-label":"Selecionar linha"})}),e.map((I,G)=>o.jsx(re,{align:I.align,className:I.className,children:Wt(j,I)},I.key??`column-${G}`))]},R)})})]})})}const Re=T("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 Ht(e){var n;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(n=t[0])==null?void 0:n.slice(0,2);return r==null?void 0:r.toUpperCase()}const Ft={sm:"caption",md:"bodySm",lg:"body"},se=y.forwardRef(({className:e,size:t,src:r,alt:n="",name:a,...s},l)=>{const i=t??"md";return o.jsx("span",{ref:l,className:g(Re({size:t}),e),...s,children:r?o.jsx("img",{src:r,alt:n,className:"size-full object-cover"}):a&&o.jsx(k,{as:"span",variant:Ft[i],weight:"medium",className:"text-inherit leading-none",children:Ht(a)})})});se.displayName="Avatar";function Ut({src:e,name:t,description:r,size:n="md",className:a}){return o.jsxs("div",{className:g("flex min-w-0 items-center gap-2",a),children:[o.jsx(se,{src:e,name:t,size:n}),o.jsxs("div",{className:"flex min-w-0 flex-col",children:[o.jsx(k,{as:"span",variant:"body",className:"truncate",children:t}),r&&o.jsx(k,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}const F="ellipsis";function J(e,t){return Array.from({length:t-e+1},(r,n)=>e+n)}function qt(e,t,r){if(r*2+5>=t)return J(1,t);const a=Math.max(e-r,1),s=Math.min(e+r,t),l=a>2,i=s<t-1;return!l&&i?[...J(1,3+r*2),F,t]:l&&!i?[1,F,...J(t-(2+r*2),t)]:[1,F,...J(a,s),F,t]}function ge({direction:e,className:t}){return o.jsx("svg",{className:g("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 Le=y.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:n=1,className:a,...s},l)=>{if(t<=1)return null;const i=qt(e,t,n),d=c=>{c<1||c>t||c===e||r(c)};return o.jsxs("nav",{ref:l,"aria-label":"Paginação",className:g("flex items-center gap-1 font-sans",a),...s,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(ge,{direction:"left"})}),i.map((c,p)=>c===F?o.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:o.jsx(k,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${p}`):o.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>d(c),className:g("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(k,{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(ge,{direction:"right"})})]})});Le.displayName="Pagination";const Pe=T("flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_1px_2px_0px_rgba(0,0,0,0.25)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",{variants:{hasError:{true:"ring-2 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),Te=y.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:n,rightIcon:a,bgIcon:s=!1,error:l,disabled:i,id:d,...c},p)=>{const b=y.useId(),f=d??b,z=typeof l=="string"?l:l==null?void 0:l.message,N=!!z,x=`${f}-error`;return o.jsxs("div",{className:g("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&o.jsx(k,{as:"label",htmlFor:f,variant:"body",className:"text-neutral-text-primary",children:r}),o.jsxs("div",{className:g(Pe({hasError:N}),i&&"pointer-events-none opacity-50"),children:[n&&o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full","aria-hidden":"true",children:n}),o.jsx("input",{ref:p,id:f,disabled:i,"aria-invalid":N||void 0,"aria-describedby":N?x:void 0,className:g("w-full min-w-0 flex-1 bg-transparent font-sans text-xs leading-relaxed font-normal text-black placeholder:font-sans placeholder:text-xs placeholder:leading-relaxed placeholder:font-normal placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...c}),a&&o.jsx("span",{className:g("flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",s&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:a})]}),N&&o.jsx(k,{as:"span",id:x,role:"alert",variant:"caption",className:"text-danger-60",children:z})]})});Te.displayName="Input";function Kt(){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 We=y.forwardRef(({open:e,onClose:t,title:r,children:n,footer:a,closeOnBackdropClick:s=!0,showCloseButton:l=!0,className:i,contentClassName:d,...c},p)=>{const b=y.useId(),f=y.useRef(null),[z,N]=y.useState(!1);return y.useEffect(()=>N(!0),[]),y.useEffect(()=>{var w;if(!e)return;const x=document.body.style.overflow;document.body.style.overflow="hidden",(w=f.current)==null||w.focus();const m=C=>{C.key==="Escape"&&t()};return document.addEventListener("keydown",m),()=>{document.body.style.overflow=x,document.removeEventListener("keydown",m)}},[e,t]),!e||!z?null:Ge.createPortal(o.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:s?t:void 0,children:o.jsxs("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":r?b:void 0,onClick:x=>x.stopPropagation(),className:g("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",i),...c,children:[l&&o.jsx("button",{ref:f,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(Kt,{})}),r&&o.jsx("div",{className:"pr-8",children:o.jsx(k,{as:"h2",id:b,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),o.jsx("div",{className:g("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",d),children:n}),a&&o.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:a})]})}),document.body)});We.displayName="Modal";exports.Avatar=se;exports.AvatarColumn=Ut;exports.Badge=Se;exports.Button=ze;exports.Card=oe;exports.Input=Te;exports.Modal=We;exports.NotificationCard=Ve;exports.Pagination=Le;exports.Table=$t;exports.TableCell=re;exports.TableCheckbox=D;exports.TableHeadCell=Q;exports.Text=k;exports.avatarVariants=Re;exports.badgeVariants=_e;exports.buttonVariants=Ce;exports.cardVariants=Me;exports.cn=g;exports.inputVariants=Pe;exports.textVariants=Ne;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),v=require("react"),en=require("react-dom");function Er(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=Er(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function zr(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Er(e))&&(s&&(s+=" "),s+=t);return s}const Dr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Or=zr,Be=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Or(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(u=>{const m=r==null?void 0:r[u],g=a==null?void 0:a[u];if(m===null)return null;const y=Dr(m)||Dr(g);return n[u][y]}),o=r&&Object.entries(r).reduce((u,m)=>{let[g,y]=m;return y===void 0||(u[g]=y),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,m)=>{let{class:g,className:y,...z}=m;return Object.entries(z).every(F=>{let[S,M]=F;return Array.isArray(M)?M.includes({...a,...o}[S]):{...a,...o}[S]===M})?[...u,g,y]:u},[]);return Or(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},Kt="-",tn=e=>{const t=sn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const o=i.split(Kt);return o[0]===""&&o.length!==1&&o.shift(),Ar(o,t)||rn(i)},getConflictingClassGroupIds:(i,o)=>{const d=r[i]||[];return o&&s[i]?[...d,...s[i]]:d}}},Ar=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?Ar(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Kt);return(i=t.validators.find(({validator:o})=>o(a)))==null?void 0:i.classGroupId},Nr=/^\[(.+)\]$/,rn=e=>{if(Nr.test(e)){const t=Nr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},sn=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return an(Object.entries(e.classGroups),r).forEach(([a,i])=>{Ht(i,s,a,t)}),s},Ht=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Yr(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(nn(n)){Ht(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Ht(i,Yr(t,a),r,s)})})},Yr=(e,t)=>{let r=e;return t.split(Kt).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},nn=e=>e.isThemeGetter,an=(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,o])=>[t+i,o])):a);return[r,n]}):e,on=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)}}},Vr="!",ln=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=o=>{const d=[];let u=0,m=0,g;for(let M=0;M<o.length;M++){let Y=o[M];if(u===0){if(Y===n&&(s||o.slice(M,M+a)===t)){d.push(o.slice(m,M)),m=M+a;continue}if(Y==="/"){g=M;continue}}Y==="["?u++:Y==="]"&&u--}const y=d.length===0?o:o.substring(m),z=y.startsWith(Vr),F=z?y.substring(1):y,S=g&&g>m?g-m:void 0;return{modifiers:d,hasImportantModifier:z,baseClassName:F,maybePostfixModifierPosition:S}};return r?o=>r({className:o,parseClassName:i}):i},dn=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},cn=e=>({cache:on(e.cacheSize),parseClassName:ln(e),...tn(e)}),un=/\s+/,fn=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(un);let o="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:m,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:z}=r(u);let F=!!z,S=s(F?y.substring(0,z):y);if(!S){if(!F){o=u+(o.length>0?" "+o:o);continue}if(S=s(y),!S){o=u+(o.length>0?" "+o:o);continue}F=!1}const M=dn(m).join(":"),Y=g?M+Vr:M,E=Y+S;if(a.includes(E))continue;a.push(E);const U=n(S,F);for(let $=0;$<U.length;++$){const ue=U[$];a.push(Y+ue)}o=u+(o.length>0?" "+o:o)}return o};function hn(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ur(t))&&(s&&(s+=" "),s+=r);return s}const Ur=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=Ur(e[s]))&&(r&&(r+=" "),r+=t);return r};function mn(e,...t){let r,s,n,a=i;function i(d){const u=t.reduce((m,g)=>g(m),e());return r=cn(u),s=r.cache.get,n=r.cache.set,a=o,o(d)}function o(d){const u=s(d);if(u)return u;const m=fn(d,r);return n(d,m),m}return function(){return a(hn.apply(null,arguments))}}const P=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,pn=/^\d+\/\d+$/,yn=new Set(["px","full","screen"]),gn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bn=/\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$/,xn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_n=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,me=e=>Ue(e)||yn.has(e)||pn.test(e),Oe=e=>Ze(e,"length",Yn),Ue=e=>!!e&&!Number.isNaN(Number(e)),Et=e=>Ze(e,"number",Ue),Xe=e=>!!e&&Number.isInteger(Number(e)),wn=e=>e.endsWith("%")&&Ue(e.slice(0,-1)),b=e=>Hr.test(e),Ne=e=>gn.test(e),kn=new Set(["length","size","percentage"]),Sn=e=>Ze(e,kn,Gr),Mn=e=>Ze(e,"position",Gr),Dn=new Set(["image","url"]),On=e=>Ze(e,Dn,Tn),Nn=e=>Ze(e,"",jn),Ke=()=>!0,Ze=(e,t,r)=>{const s=Hr.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},Yn=e=>bn.test(e)&&!xn.test(e),Gr=()=>!1,jn=e=>vn.test(e),Tn=e=>_n.test(e),Cn=()=>{const e=P("colors"),t=P("spacing"),r=P("blur"),s=P("brightness"),n=P("borderColor"),a=P("borderRadius"),i=P("borderSpacing"),o=P("borderWidth"),d=P("contrast"),u=P("grayscale"),m=P("hueRotate"),g=P("invert"),y=P("gap"),z=P("gradientColorStops"),F=P("gradientColorStopPositions"),S=P("inset"),M=P("margin"),Y=P("opacity"),E=P("padding"),U=P("saturate"),$=P("scale"),ue=P("sepia"),fe=P("skew"),T=P("space"),B=P("translate"),he=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],Se=()=>["auto",b,t],D=()=>[b,t],Le=()=>["",me,Oe],H=()=>["auto",Ue,b],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Me=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Fe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",b],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[Ue,b];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[me,Oe],blur:["none","",Ne,b],brightness:X(),borderColor:[e],borderRadius:["none","","full",Ne,b],borderSpacing:D(),borderWidth:Le(),contrast:X(),grayscale:De(),hueRotate:X(),invert:De(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[wn,Oe],inset:Se(),margin:Se(),opacity:X(),padding:D(),saturate:X(),scale:X(),sepia:De(),skew:X(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",b]}],container:["container"],columns:[{columns:[Ne]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"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:[...ie(),b]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xe,b]}],basis:[{basis:Se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",Xe,b]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",Xe,b]},b]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[Xe,b]},b]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",b]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b,t]}],"min-w":[{"min-w":[b,t,"min","max","fit"]}],"max-w":[{"max-w":[b,t,"none","full","min","max","fit","prose",{screen:[Ne]},Ne]}],h:[{h:[b,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ne,Oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Et]}],"font-family":[{font:[Ke]}],"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",b]}],"line-clamp":[{"line-clamp":["none",Ue,Et]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",me,b]}],"list-image":[{"list-image":["none",b]}],"list-style-type":[{list:["none","disc","decimal",b]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[Y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",me,Oe]}],"underline-offset":[{"underline-offset":["auto",me,b]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b]}],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",b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ie(),Mn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},On]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[F]}],"gradient-via-pos":[{via:[F]}],"gradient-to-pos":[{to:[F]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],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:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[Y]}],"border-style":[{border:[...Me(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Y]}],"divide-style":[{divide:Me()}],"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:["",...Me()]}],"outline-offset":[{"outline-offset":[me,b]}],"outline-w":[{outline:[me,Oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[Y]}],"ring-offset-w":[{"ring-offset":[me,Oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ne,Nn]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[Y]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ne,b]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[U]}],sepia:[{sepia:[ue]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[Y]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[ue]}],"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",b]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",b]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",b]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[Xe,b]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b]}],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",b]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",b]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[me,Oe,Et]}],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"]}}},Pn=mn(Cn);function w(...e){return Pn(zr(e))}const $r=Be("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"}}),Rn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},R=v.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const o=s??Rn[t??"body"];return v.createElement(o,{ref:i,className:w($r({variant:t,weight:r}),e),...a},n)});R.displayName="Text";const Br=Be("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"}}),Wn={sm:"bodySm",md:"body",lg:"body",icon:"body"},Zr=v.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:o,...d},u)=>{const m=r==="icon",g=Wn[r??"md"];return l.jsxs("button",{ref:u,className:w(Br({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&l.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!n&&a&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:a}),m?l.jsx("span",{className:"inline-flex shrink-0",children:o}):l.jsx(R,{as:"span",variant:g,className:"text-inherit",children:o})]})});Zr.displayName="Button";const qr=Be("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"},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"}],defaultVariants:{variant:"filled",status:"default"}}),In={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},Jr=v.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,...n},a)=>l.jsxs("span",{ref:a,className:w(qr({variant:t,status:r}),e),...n,children:[t==="dot"&&l.jsx("span",{className:w("size-2 shrink-0 rounded-full",In[r??"default"]),"aria-hidden":"true"}),l.jsx(R,{as:"span",variant:"body",className:"text-inherit",children:s})]}));Jr.displayName="Badge";const Qr=Be("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"}}),Ln={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function Fn(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function En(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function zn(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function An(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function Vn(){return l.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const Un={success:l.jsx(En,{}),warning:l.jsx(zn,{}),error:l.jsx(An,{}),info:l.jsx(Fn,{})},er=v.forwardRef(({className:e,variant:t="default",icon:r,title:s,description:n,action:a,onClose:i,children:o,...d},u)=>{const m=t??"default",g=r===void 0?Un[m]:r,y=Ln[m];return l.jsxs("div",{ref:u,className:w(Qr({variant:t}),e),...d,children:[g&&l.jsx("span",{className:w("size-6 shrink-0",y),"aria-hidden":"true",children:g}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&l.jsx(R,{as:"div",variant:"body",weight:"semibold",className:y,children:s}),n&&l.jsx(R,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:n}),o]}),a&&l.jsx("div",{className:"flex shrink-0 items-center",children:a}),i&&l.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar",className:w("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",y),children:l.jsx(Vn,{})})]})});er.displayName="Card";var Xr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},jr=v.createContext&&v.createContext(Xr),Hn=["attr","size","title"];function Gn(e,t){if(e==null)return{};var r,s,n=$n(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 $n(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 xt(){return xt=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},xt.apply(null,arguments)}function Tr(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 vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tr(Object(r),!0).forEach(function(s){Bn(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tr(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Bn(e,t,r){return(t=Zn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zn(e){var t=qn(e,"string");return typeof t=="symbol"?t:t+""}function qn(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 Kr(e){return e&&e.map((t,r)=>v.createElement(t.tag,vt({key:r},t.attr),Kr(t.child)))}function tr(e){return t=>v.createElement(Jn,xt({attr:vt({},e.attr)},t),Kr(e.child))}function Jn(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=Gn(e,Hn),o=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),v.createElement("svg",xt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:vt(vt({color:e.color||r.color},r.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&v.createElement("title",null,a),e.children)};return jr!==void 0?v.createElement(jr.Consumer,null,r=>t(r)):t(Xr)}function Qn(e){return tr({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 Xn(e){return tr({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 Kn(e){return tr({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
|
+
//! version : 2.30.1
|
|
3
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
+
//! license : MIT
|
|
5
|
+
//! momentjs.com
|
|
6
|
+
var es;function f(){return es.apply(null,arguments)}function ea(e){es=e}function se(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function We(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(O(e,t))return!1;return!0}function q(e){return e===void 0}function _e(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function lt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ts(e,t){var r=[],s,n=e.length;for(s=0;s<n;++s)r.push(t(e[s],s));return r}function Ye(e,t){for(var r in t)O(t,r)&&(e[r]=t[r]);return O(t,"toString")&&(e.toString=t.toString),O(t,"valueOf")&&(e.valueOf=t.valueOf),e}function de(e,t,r,s){return Ss(e,t,r,s,!0).utc()}function ta(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function x(e){return e._pf==null&&(e._pf=ta()),e._pf}var Gt;Array.prototype.some?Gt=Array.prototype.some:Gt=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function sr(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=x(e),r=Gt.call(t.parsedDateParts,function(n){return n!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Nt(e){var t=de(NaN);return e!=null?Ye(x(t),e):x(t).userInvalidated=!0,t}var Cr=f.momentProperties=[],zt=!1;function nr(e,t){var r,s,n,a=Cr.length;if(q(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),q(t._i)||(e._i=t._i),q(t._f)||(e._f=t._f),q(t._l)||(e._l=t._l),q(t._strict)||(e._strict=t._strict),q(t._tzm)||(e._tzm=t._tzm),q(t._isUTC)||(e._isUTC=t._isUTC),q(t._offset)||(e._offset=t._offset),q(t._pf)||(e._pf=x(t)),q(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)s=Cr[r],n=t[s],q(n)||(e[s]=n);return e}function dt(e){nr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),zt===!1&&(zt=!0,f.updateOffset(this),zt=!1)}function ne(e){return e instanceof dt||e!=null&&e._isAMomentObject!=null}function rs(e){f.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ee(e,t){var r=!0;return Ye(function(){if(f.deprecationHandler!=null&&f.deprecationHandler(null,e),r){var s=[],n,a,i,o=arguments.length;for(a=0;a<o;a++){if(n="",typeof arguments[a]=="object"){n+=`
|
|
7
|
+
[`+a+"] ";for(i in arguments[0])O(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}rs(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(s).join("")+`
|
|
9
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Pr={};function ss(e,t){f.deprecationHandler!=null&&f.deprecationHandler(e,t),Pr[e]||(rs(t),Pr[e]=!0)}f.suppressDeprecationWarnings=!1;f.deprecationHandler=null;function ce(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ra(e){var t,r;for(r in e)O(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 $t(e,t){var r=Ye({},e),s;for(s in t)O(t,s)&&(We(e[s])&&We(t[s])?(r[s]={},Ye(r[s],e[s]),Ye(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)O(e,s)&&!O(t,s)&&We(e[s])&&(r[s]=Ye({},r[s]));return r}function ar(e){e!=null&&this.set(e)}var Bt;Object.keys?Bt=Object.keys:Bt=function(e){var t,r=[];for(t in e)O(e,t)&&r.push(t);return r};var sa={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function na(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return ce(s)?s.call(t,r):s}function le(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 ir=/(\[[^\[]*\])|(\\)?([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,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,At={},He={};function p(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(He[e]=n),t&&(He[t[0]]=function(){return le(n.apply(this,arguments),t[1],t[2])}),r&&(He[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function aa(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ia(e){var t=e.match(ir),r,s;for(r=0,s=t.length;r<s;r++)He[t[r]]?t[r]=He[t[r]]:t[r]=aa(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 yt(e,t){return e.isValid()?(t=ns(t,e.localeData()),At[t]=At[t]||ia(t),At[t](e)):e.localeData().invalidDate()}function ns(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(ht.lastIndex=0;r>=0&&ht.test(e);)e=e.replace(ht,s),ht.lastIndex=0,r-=1;return e}var oa={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 la(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(ir).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var da="Invalid date";function ca(){return this._invalidDate}var ua="%d",fa=/\d{1,2}/;function ha(e){return this._ordinal.replace("%d",e)}var ma={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 pa(e,t,r,s){var n=this._relativeTime[r];return ce(n)?n(e,t,r,s):n.replace(/%d/i,e)}function ya(e,t){var r=this._relativeTime[e>0?"future":"past"];return ce(r)?r(t):r.replace(/%s/i,t)}var Rr={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 te(e){return typeof e=="string"?Rr[e]||Rr[e.toLowerCase()]:void 0}function or(e){var t={},r,s;for(s in e)O(e,s)&&(r=te(s),r&&(t[r]=e[s]));return t}var ga={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 ba(e){var t=[],r;for(r in e)O(e,r)&&t.push({unit:r,priority:ga[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var as=/\d/,J=/\d\d/,is=/\d{3}/,lr=/\d{4}/,Yt=/[+-]?\d{6}/,I=/\d\d?/,os=/\d\d\d\d?/,ls=/\d\d\d\d\d\d?/,jt=/\d{1,3}/,dr=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,qe=/\d+/,Ct=/[+-]?\d+/,xa=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,va=/[+-]?\d+(\.\d{1,3})?/,ct=/[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,Je=/^[1-9]\d?/,cr=/^([1-9]\d|\d)/,_t;_t={};function h(e,t,r){_t[e]=ce(t)?t:function(s,n){return s&&r?r:t}}function _a(e,t){return O(_t,e)?_t[e](t._strict,t._locale):new RegExp(wa(e))}function wa(e){return xe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function xe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=K(t)),r}var Zt={};function j(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),_e(t)&&(s=function(a,i){i[t]=_(a)}),n=e.length,r=0;r<n;r++)Zt[e[r]]=s}function ut(e,t){j(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function ka(e,t,r){t!=null&&O(Zt,e)&&Zt[e](t,r._a,r,e)}function Rt(e){return e%4===0&&e%100!==0||e%400===0}var G=0,ge=1,oe=2,V=3,re=4,be=5,Re=6,Sa=7,Ma=8;p("Y",0,0,function(){var e=this.year();return e<=9999?le(e,4):"+"+e});p(0,["YY",2],0,function(){return this.year()%100});p(0,["YYYY",4],0,"year");p(0,["YYYYY",5],0,"year");p(0,["YYYYYY",6,!0],0,"year");h("Y",Ct);h("YY",I,J);h("YYYY",dr,lr);h("YYYYY",Tt,Yt);h("YYYYYY",Tt,Yt);j(["YYYYY","YYYYYY"],G);j("YYYY",function(e,t){t[G]=e.length===2?f.parseTwoDigitYear(e):_(e)});j("YY",function(e,t){t[G]=f.parseTwoDigitYear(e)});j("Y",function(e,t){t[G]=parseInt(e,10)});function st(e){return Rt(e)?366:365}f.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var ds=Qe("FullYear",!0);function Da(){return Rt(this.year())}function Qe(e,t){return function(r){return r!=null?(cs(this,e,r),f.updateOffset(this,t),this):nt(this,e)}}function nt(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 cs(e,t,r){var s,n,a,i,o;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(),o=e.date(),o=o===29&&i===1&&!Rt(a)?28:o,n?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function Oa(e){return e=te(e),ce(this[e])?this[e]():this}function Na(e,t){if(typeof e=="object"){e=or(e);var r=ba(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=te(e),ce(this[e]))return this[e](t);return this}function Ya(e,t){return(e%t+t)%t}var A;Array.prototype.indexOf?A=Array.prototype.indexOf:A=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ur(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ya(t,12);return e+=(t-r)/12,r===1?Rt(e)?29:28:31-r%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1});p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});p("MMMM",0,0,function(e){return this.localeData().months(this,e)});h("M",I,Je);h("MM",I,J);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});j(["M","MM"],function(e,t){t[ge]=_(e)-1});j(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[ge]=n:x(r).invalidMonth=e});var ja="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),us="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ta=ct,Ca=ct;function Pa(e,t){return e?se(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fs).test(t)?"format":"standalone"][e.month()]:se(this._months)?this._months:this._months.standalone}function Ra(e,t){return e?se(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fs.test(t)?"format":"standalone"][e.month()]:se(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Wa(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=de([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=A.call(this._shortMonthsParse,i),n!==-1?n:null):(n=A.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=A.call(this._shortMonthsParse,i),n!==-1?n:(n=A.call(this._longMonthsParse,i),n!==-1?n:null)):(n=A.call(this._longMonthsParse,i),n!==-1?n:(n=A.call(this._shortMonthsParse,i),n!==-1?n:null))}function Ia(e,t,r){var s,n,a;if(this._monthsParseExact)return Wa.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=de([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 hs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!_e(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,ur(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function ms(e){return e!=null?(hs(this,e),f.updateOffset(this,!0),this):nt(this,"Month")}function La(){return ur(this.year(),this.month())}function Fa(e){return this._monthsParseExact?(O(this,"_monthsRegex")||ps.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(O(this,"_monthsShortRegex")||(this._monthsShortRegex=Ta),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ea(e){return this._monthsParseExact?(O(this,"_monthsRegex")||ps.call(this),e?this._monthsStrictRegex:this._monthsRegex):(O(this,"_monthsRegex")||(this._monthsRegex=Ca),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ps(){function e(d,u){return u.length-d.length}var t=[],r=[],s=[],n,a,i,o;for(n=0;n<12;n++)a=de([2e3,n]),i=xe(this.monthsShort(a,"")),o=xe(this.months(a,"")),t.push(i),r.push(o),s.push(o),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 za(e,t,r,s,n,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,s,n,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,s,n,a,i),o}function at(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 wt(e,t,r){var s=7+t-r,n=(7+at(e,0,s).getUTCDay()-t)%7;return-n+s-1}function ys(e,t,r,s,n){var a=(7+r-s)%7,i=wt(e,s,n),o=1+7*(t-1)+a+i,d,u;return o<=0?(d=e-1,u=st(d)+o):o>st(e)?(d=e+1,u=o-st(e)):(d=e,u=o),{year:d,dayOfYear:u}}function it(e,t,r){var s=wt(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+ve(i,t,r)):n>ve(e.year(),t,r)?(a=n-ve(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function ve(e,t,r){var s=wt(e,t,r),n=wt(e+1,t,r);return(st(e)-s+n)/7}p("w",["ww",2],"wo","week");p("W",["WW",2],"Wo","isoWeek");h("w",I,Je);h("ww",I,J);h("W",I,Je);h("WW",I,J);ut(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=_(e)});function Aa(e){return it(e,this._week.dow,this._week.doy).week}var Va={dow:0,doy:6};function Ua(){return this._week.dow}function Ha(){return this._week.doy}function Ga(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function $a(e){var t=it(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day");p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});p("e",0,0,"weekday");p("E",0,0,"isoWeekday");h("d",I);h("e",I);h("E",I);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});ut(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:x(r).invalidWeekday=e});ut(["d","e","E"],function(e,t,r,s){t[s]=_(e)});function Ba(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Za(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ja="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qa=ct,Xa=ct,Ka=ct;function ei(e,t){var r=se(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?fr(r,this._week.dow):e?r[e.day()]:r}function ti(e){return e===!0?fr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ri(e){return e===!0?fr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function si(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=de([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=A.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=A.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=A.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=A.call(this._weekdaysParse,i),n!==-1||(n=A.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=A.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=A.call(this._shortWeekdaysParse,i),n!==-1||(n=A.call(this._weekdaysParse,i),n!==-1)?n:(n=A.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=A.call(this._minWeekdaysParse,i),n!==-1||(n=A.call(this._weekdaysParse,i),n!==-1)?n:(n=A.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function ni(e,t,r){var s,n,a;if(this._weekdaysParseExact)return si.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=de([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 ai(e){if(!this.isValid())return e!=null?this:NaN;var t=nt(this,"Day");return e!=null?(e=Ba(e,this.localeData()),this.add(e-t,"d")):t}function ii(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 oi(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Za(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function li(e){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||hr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(O(this,"_weekdaysRegex")||(this._weekdaysRegex=Qa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function di(e){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||hr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(O(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xa),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ci(e){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||hr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(O(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ka),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hr(){function e(m,g){return g.length-m.length}var t=[],r=[],s=[],n=[],a,i,o,d,u;for(a=0;a<7;a++)i=de([2e3,1]).day(a),o=xe(this.weekdaysMin(i,"")),d=xe(this.weekdaysShort(i,"")),u=xe(this.weekdays(i,"")),t.push(o),r.push(d),s.push(u),n.push(o),n.push(d),n.push(u);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 mr(){return this.hours()%12||12}function ui(){return this.hours()||24}p("H",["HH",2],0,"hour");p("h",["hh",2],0,mr);p("k",["kk",2],0,ui);p("hmm",0,0,function(){return""+mr.apply(this)+le(this.minutes(),2)});p("hmmss",0,0,function(){return""+mr.apply(this)+le(this.minutes(),2)+le(this.seconds(),2)});p("Hmm",0,0,function(){return""+this.hours()+le(this.minutes(),2)});p("Hmmss",0,0,function(){return""+this.hours()+le(this.minutes(),2)+le(this.seconds(),2)});function bs(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}bs("a",!0);bs("A",!1);function xs(e,t){return t._meridiemParse}h("a",xs);h("A",xs);h("H",I,cr);h("h",I,Je);h("k",I,Je);h("HH",I,J);h("hh",I,J);h("kk",I,J);h("hmm",os);h("hmmss",ls);h("Hmm",os);h("Hmmss",ls);j(["H","HH"],V);j(["k","kk"],function(e,t,r){var s=_(e);t[V]=s===24?0:s});j(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});j(["h","hh"],function(e,t,r){t[V]=_(e),x(r).bigHour=!0});j("hmm",function(e,t,r){var s=e.length-2;t[V]=_(e.substr(0,s)),t[re]=_(e.substr(s)),x(r).bigHour=!0});j("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[V]=_(e.substr(0,s)),t[re]=_(e.substr(s,2)),t[be]=_(e.substr(n)),x(r).bigHour=!0});j("Hmm",function(e,t,r){var s=e.length-2;t[V]=_(e.substr(0,s)),t[re]=_(e.substr(s))});j("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[V]=_(e.substr(0,s)),t[re]=_(e.substr(s,2)),t[be]=_(e.substr(n))});function fi(e){return(e+"").toLowerCase().charAt(0)==="p"}var hi=/[ap]\.?m?\.?/i,mi=Qe("Hours",!0);function pi(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var vs={calendar:sa,longDateFormat:oa,invalidDate:da,ordinal:ua,dayOfMonthOrdinalParse:fa,relativeTime:ma,months:ja,monthsShort:us,week:Va,weekdays:qa,weekdaysMin:Ja,weekdaysShort:gs,meridiemParse:hi},L={},et={},ot;function yi(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 Wr(e){return e&&e.toLowerCase().replace("_","-")}function gi(e){for(var t=0,r,s,n,a;t<e.length;){for(a=Wr(e[t]).split("-"),r=a.length,s=Wr(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=Wt(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&yi(a,s)>=r-1)break;r--}t++}return ot}function bi(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Wt(e){var t=null,r;if(L[e]===void 0&&typeof module<"u"&&module&&module.exports&&bi(e))try{t=ot._abbr,r=require,r("./locale/"+e),Te(t)}catch{L[e]=null}return L[e]}function Te(e,t){var r;return e&&(q(t)?r=we(e):r=pr(e,t),r?ot=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function pr(e,t){if(t!==null){var r,s=vs;if(t.abbr=e,L[e]!=null)ss("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=L[e]._config;else if(t.parentLocale!=null)if(L[t.parentLocale]!=null)s=L[t.parentLocale]._config;else if(r=Wt(t.parentLocale),r!=null)s=r._config;else return et[t.parentLocale]||(et[t.parentLocale]=[]),et[t.parentLocale].push({name:e,config:t}),null;return L[e]=new ar($t(s,t)),et[e]&&et[e].forEach(function(n){pr(n.name,n.config)}),Te(e),L[e]}else return delete L[e],null}function xi(e,t){if(t!=null){var r,s,n=vs;L[e]!=null&&L[e].parentLocale!=null?L[e].set($t(L[e]._config,t)):(s=Wt(e),s!=null&&(n=s._config),t=$t(n,t),s==null&&(t.abbr=e),r=new ar(t),r.parentLocale=L[e],L[e]=r),Te(e)}else L[e]!=null&&(L[e].parentLocale!=null?(L[e]=L[e].parentLocale,e===Te()&&Te(e)):L[e]!=null&&delete L[e]);return L[e]}function we(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!se(e)){if(t=Wt(e),t)return t;e=[e]}return gi(e)}function vi(){return Bt(L)}function yr(e){var t,r=e._a;return r&&x(e).overflow===-2&&(t=r[ge]<0||r[ge]>11?ge:r[oe]<1||r[oe]>ur(r[G],r[ge])?oe:r[V]<0||r[V]>24||r[V]===24&&(r[re]!==0||r[be]!==0||r[Re]!==0)?V:r[re]<0||r[re]>59?re:r[be]<0||r[be]>59?be:r[Re]<0||r[Re]>999?Re:-1,x(e)._overflowDayOfYear&&(t<G||t>oe)&&(t=oe),x(e)._overflowWeeks&&t===-1&&(t=Sa),x(e)._overflowWeekday&&t===-1&&(t=Ma),x(e).overflow=t),e}var _i=/^\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)?)?$/,wi=/^\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)?)?$/,ki=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["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]],Vt=[["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/]],Si=/^\/?Date\((-?\d+)/i,Mi=/^(?:(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}))$/,Di={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 _s(e){var t,r,s=e._i,n=_i.exec(s)||wi.exec(s),a,i,o,d,u=mt.length,m=Vt.length;if(n){for(x(e).iso=!0,t=0,r=u;t<r;t++)if(mt[t][1].exec(n[1])){i=mt[t][0],a=mt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=m;t<r;t++)if(Vt[t][1].exec(n[3])){o=(n[2]||" ")+Vt[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(n[4])if(ki.exec(n[4]))d="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(d||""),br(e)}else e._isValid=!1}function Oi(e,t,r,s,n,a){var i=[Ni(e),us.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Ni(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Yi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ji(e,t,r){if(e){var s=gs.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return x(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ti(e,t,r){if(e)return Di[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function ws(e){var t=Mi.exec(Yi(e._i)),r;if(t){if(r=Oi(t[4],t[3],t[2],t[5],t[6],t[7]),!ji(t[1],r,e))return;e._a=r,e._tzm=Ti(t[8],t[9],t[10]),e._d=at.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),x(e).rfc2822=!0}else e._isValid=!1}function Ci(e){var t=Si.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(_s(e),e._isValid===!1)delete e._isValid;else return;if(ws(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:f.createFromInputFallback(e)}f.createFromInputFallback=ee("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 Ae(e,t,r){return e??t??r}function Pi(e){var t=new Date(f.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gr(e){var t,r,s=[],n,a,i;if(!e._d){for(n=Pi(e),e._w&&e._a[oe]==null&&e._a[ge]==null&&Ri(e),e._dayOfYear!=null&&(i=Ae(e._a[G],n[G]),(e._dayOfYear>st(i)||e._dayOfYear===0)&&(x(e)._overflowDayOfYear=!0),r=at(i,0,e._dayOfYear),e._a[ge]=r.getUTCMonth(),e._a[oe]=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[V]===24&&e._a[re]===0&&e._a[be]===0&&e._a[Re]===0&&(e._nextDay=!0,e._a[V]=0),e._d=(e._useUTC?at:za).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[V]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(x(e).weekdayMismatch=!0)}}function Ri(e){var t,r,s,n,a,i,o,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Ae(t.GG,e._a[G],it(W(),1,4).year),s=Ae(t.W,1),n=Ae(t.E,1),(n<1||n>7)&&(d=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=it(W(),a,i),r=Ae(t.gg,e._a[G],u.year),s=Ae(t.w,u.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>ve(r,a,i)?x(e)._overflowWeeks=!0:d!=null?x(e)._overflowWeekday=!0:(o=ys(r,s,n,a,i),e._a[G]=o.year,e._dayOfYear=o.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function br(e){if(e._f===f.ISO_8601){_s(e);return}if(e._f===f.RFC_2822){ws(e);return}e._a=[],x(e).empty=!0;var t=""+e._i,r,s,n,a,i,o=t.length,d=0,u,m;for(n=ns(e._f,e._locale).match(ir)||[],m=n.length,r=0;r<m;r++)a=n[r],s=(t.match(_a(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&x(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),d+=s.length),He[a]?(s?x(e).empty=!1:x(e).unusedTokens.push(a),ka(a,s,e)):e._strict&&!s&&x(e).unusedTokens.push(a);x(e).charsLeftOver=o-d,t.length>0&&x(e).unusedInput.push(t),e._a[V]<=12&&x(e).bigHour===!0&&e._a[V]>0&&(x(e).bigHour=void 0),x(e).parsedDateParts=e._a.slice(0),x(e).meridiem=e._meridiem,e._a[V]=Wi(e._locale,e._a[V],e._meridiem),u=x(e).era,u!==null&&(e._a[G]=e._locale.erasConvertYear(u,e._a[G])),gr(e),yr(e)}function Wi(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 Ii(e){var t,r,s,n,a,i,o=!1,d=e._f.length;if(d===0){x(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<d;n++)a=0,i=!1,t=nr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],br(t),sr(t)&&(i=!0),a+=x(t).charsLeftOver,a+=x(t).unusedTokens.length*10,x(t).score=a,o?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(o=!0));Ye(e,r||t)}function Li(e){if(!e._d){var t=or(e._i),r=t.day===void 0?t.date:t.day;e._a=ts([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),gr(e)}}function Fi(e){var t=new dt(yr(ks(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ks(e){var t=e._i,r=e._f;return e._locale=e._locale||we(e._l),t===null||r===void 0&&t===""?Nt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ne(t)?new dt(yr(t)):(lt(t)?e._d=t:se(r)?Ii(e):r?br(e):Ei(e),sr(e)||(e._d=null),e))}function Ei(e){var t=e._i;q(t)?e._d=new Date(f.now()):lt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ci(e):se(t)?(e._a=ts(t.slice(0),function(r){return parseInt(r,10)}),gr(e)):We(t)?Li(e):_e(t)?e._d=new Date(t):f.createFromInputFallback(e)}function Ss(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),(We(e)&&rr(e)||se(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,Fi(a)}function W(e,t,r,s){return Ss(e,t,r,s,!1)}var zi=ee("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=W.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Nt()}),Ai=ee("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=W.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Nt()});function Ms(e,t){var r,s;if(t.length===1&&se(t[0])&&(t=t[0]),!t.length)return W();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function Vi(){var e=[].slice.call(arguments,0);return Ms("isBefore",e)}function Ui(){var e=[].slice.call(arguments,0);return Ms("isAfter",e)}var Hi=function(){return Date.now?Date.now():+new Date},tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Gi(e){var t,r=!1,s,n=tt.length;for(t in e)if(O(e,t)&&!(A.call(tt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[tt[s]]){if(r)return!1;parseFloat(e[tt[s]])!==_(e[tt[s]])&&(r=!0)}return!0}function $i(){return this._isValid}function Bi(){return ae(NaN)}function It(e){var t=or(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,d=t.minute||0,u=t.second||0,m=t.millisecond||0;this._isValid=Gi(t),this._milliseconds=+m+u*1e3+d*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=we(),this._bubble()}function gt(e){return e instanceof It}function qt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Zi(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++)_(e[i])!==_(t[i])&&a++;return a+n}function Ds(e,t){p(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+le(~~(r/60),2)+t+le(~~r%60,2)})}Ds("Z",":");Ds("ZZ","");h("Z",Pt);h("ZZ",Pt);j(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=xr(Pt,e)});var qi=/([\+\-]|\d\d)/gi;function xr(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(qi)||["-",0,0],a=+(n[1]*60)+_(n[2]),a===0?0:n[0]==="+"?a:-a)}function vr(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(ne(e)||lt(e)?e.valueOf():W(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),f.updateOffset(r,!1),r):W(e).local()}function Jt(e){return-Math.round(e._d.getTimezoneOffset())}f.updateOffset=function(){};function Ji(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=xr(Pt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Jt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?Ys(this,ae(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Jt(this)}function Qi(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Xi(e){return this.utcOffset(0,e)}function Ki(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this}function eo(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=xr(xa,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function to(e){return this.isValid()?(e=e?W(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ro(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function so(){if(!q(this._isDSTShifted))return this._isDSTShifted;var e={},t;return nr(e,this),e=ks(e),e._a?(t=e._isUTC?de(e._a):W(e._a),this._isDSTShifted=this.isValid()&&Zi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function no(){return this.isValid()?!this._isUTC:!1}function ao(){return this.isValid()?this._isUTC:!1}function Os(){return this.isValid()?this._isUTC&&this._offset===0:!1}var io=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ae(e,t){var r=e,s=null,n,a,i;return gt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:_e(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=io.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:_(s[oe])*n,h:_(s[V])*n,m:_(s[re])*n,s:_(s[be])*n,ms:_(qt(s[Re]*1e3))*n}):(s=oo.exec(e))?(n=s[1]==="-"?-1:1,r={y:Pe(s[2],n),M:Pe(s[3],n),w:Pe(s[4],n),d:Pe(s[5],n),h:Pe(s[6],n),m:Pe(s[7],n),s:Pe(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=lo(W(r.from),W(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new It(r),gt(e)&&O(e,"_locale")&&(a._locale=e._locale),gt(e)&&O(e,"_isValid")&&(a._isValid=e._isValid),a}ae.fn=It.prototype;ae.invalid=Bi;function Pe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ir(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 lo(e,t){var r;return e.isValid()&&t.isValid()?(t=vr(t,e),e.isBefore(t)?r=Ir(e,t):(r=Ir(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Ns(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(ss(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=ae(r,s),Ys(this,n,e),this}}function Ys(e,t,r,s){var n=t._milliseconds,a=qt(t._days),i=qt(t._months);e.isValid()&&(s=s??!0,i&&hs(e,nt(e,"Month")+i*r),a&&cs(e,"Date",nt(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&f.updateOffset(e,a||i))}var co=Ns(1,"add"),uo=Ns(-1,"subtract");function js(e){return typeof e=="string"||e instanceof String}function fo(e){return ne(e)||lt(e)||js(e)||_e(e)||mo(e)||ho(e)||e===null||e===void 0}function ho(e){var t=We(e)&&!rr(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||O(e,a);return t&&r}function mo(e){var t=se(e),r=!1;return t&&(r=e.filter(function(s){return!_e(s)&&js(e)}).length===0),t&&r}function po(e){var t=We(e)&&!rr(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||O(e,a);return t&&r}function yo(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 go(e,t){arguments.length===1&&(arguments[0]?fo(arguments[0])?(e=arguments[0],t=void 0):po(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||W(),s=vr(r,this).startOf("day"),n=f.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,W(r)))}function bo(){return new dt(this)}function xo(e,t){var r=ne(e)?e:W(e);return this.isValid()&&r.isValid()?(t=te(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function vo(e,t){var r=ne(e)?e:W(e);return this.isValid()&&r.isValid()?(t=te(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function _o(e,t,r,s){var n=ne(e)?e:W(e),a=ne(t)?t:W(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 wo(e,t){var r=ne(e)?e:W(e),s;return this.isValid()&&r.isValid()?(t=te(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 ko(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function So(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Mo(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=vr(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=te(t),t){case"year":a=bt(this,s)/12;break;case"month":a=bt(this,s);break;case"quarter":a=bt(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:K(a)}function bt(e,t){if(e.date()<t.date())return-bt(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}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Do(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Oo(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?yt(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",yt(r,"Z")):yt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function No(){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 Yo(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=yt(this,e);return this.localeData().postformat(t)}function jo(e,t){return this.isValid()&&(ne(e)&&e.isValid()||W(e).isValid())?ae({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function To(e){return this.from(W(),e)}function Co(e,t){return this.isValid()&&(ne(e)&&e.isValid()||W(e).isValid())?ae({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Po(e){return this.to(W(),e)}function Ts(e){var t;return e===void 0?this._locale._abbr:(t=we(e),t!=null&&(this._locale=t),this)}var Cs=ee("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 Ps(){return this._locale}var kt=1e3,Ge=60*kt,St=60*Ge,Rs=(365*400+97)*24*St;function $e(e,t){return(e%t+t)%t}function Ws(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Rs:new Date(e,t,r).valueOf()}function Is(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Rs:Date.UTC(e,t,r)}function Ro(e){var t,r;if(e=te(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Is:Ws,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-=$e(t+(this._isUTC?0:this.utcOffset()*Ge),St);break;case"minute":t=this._d.valueOf(),t-=$e(t,Ge);break;case"second":t=this._d.valueOf(),t-=$e(t,kt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function Wo(e){var t,r;if(e=te(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Is:Ws,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+=St-$e(t+(this._isUTC?0:this.utcOffset()*Ge),St)-1;break;case"minute":t=this._d.valueOf(),t+=Ge-$e(t,Ge)-1;break;case"second":t=this._d.valueOf(),t+=kt-$e(t,kt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function Io(){return this._d.valueOf()-(this._offset||0)*6e4}function Lo(){return Math.floor(this.valueOf()/1e3)}function Fo(){return new Date(this.valueOf())}function Eo(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zo(){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 Ao(){return this.isValid()?this.toISOString():null}function Vo(){return sr(this)}function Uo(){return Ye({},x(this))}function Ho(){return x(this).overflow}function Go(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr");p("NN",0,0,"eraAbbr");p("NNN",0,0,"eraAbbr");p("NNNN",0,0,"eraName");p("NNNNN",0,0,"eraNarrow");p("y",["y",1],"yo","eraYear");p("y",["yy",2],0,"eraYear");p("y",["yyy",3],0,"eraYear");p("y",["yyyy",4],0,"eraYear");h("N",_r);h("NN",_r);h("NNN",_r);h("NNNN",rl);h("NNNNN",sl);j(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?x(r).era=n:x(r).invalidEra=e});h("y",qe);h("yy",qe);h("yyy",qe);h("yyyy",qe);h("yo",nl);j(["y","yy","yyy","yyyy"],G);j(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[G]=r._locale.eraYearOrdinalParse(e,n):t[G]=parseInt(e,10)});function $o(e,t){var r,s,n,a=this._eras||we("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=f(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=f(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function Bo(e,t,r){var s,n,a=this.eras(),i,o,d;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),d=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===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,o,d].indexOf(e)>=0)return a[s]}function Zo(e,t){var r=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*r}function qo(){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 Jo(){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 Qo(){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 Xo(){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()-f(n[e].since).year())*r+n[e].offset;return this.year()}function Ko(e){return O(this,"_erasNameRegex")||wr.call(this),e?this._erasNameRegex:this._erasRegex}function el(e){return O(this,"_erasAbbrRegex")||wr.call(this),e?this._erasAbbrRegex:this._erasRegex}function tl(e){return O(this,"_erasNarrowRegex")||wr.call(this),e?this._erasNarrowRegex:this._erasRegex}function _r(e,t){return t.erasAbbrRegex(e)}function rl(e,t){return t.erasNameRegex(e)}function sl(e,t){return t.erasNarrowRegex(e)}function nl(e,t){return t._eraYearOrdinalRegex||qe}function wr(){var e=[],t=[],r=[],s=[],n,a,i,o,d,u=this.eras();for(n=0,a=u.length;n<a;++n)i=xe(u[n].name),o=xe(u[n].abbr),d=xe(u[n].narrow),t.push(i),e.push(o),r.push(d),s.push(i),s.push(o),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")}p(0,["gg",2],0,function(){return this.weekYear()%100});p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Lt(e,t){p(0,[e,e.length],0,t)}Lt("gggg","weekYear");Lt("ggggg","weekYear");Lt("GGGG","isoWeekYear");Lt("GGGGG","isoWeekYear");h("G",Ct);h("g",Ct);h("GG",I,J);h("gg",I,J);h("GGGG",dr,lr);h("gggg",dr,lr);h("GGGGG",Tt,Yt);h("ggggg",Tt,Yt);ut(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=_(e)});ut(["gg","GG"],function(e,t,r,s){t[s]=f.parseTwoDigitYear(e)});function al(e){return Ls.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function il(e){return Ls.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ol(){return ve(this.year(),1,4)}function ll(){return ve(this.isoWeekYear(),1,4)}function dl(){var e=this.localeData()._week;return ve(this.year(),e.dow,e.doy)}function cl(){var e=this.localeData()._week;return ve(this.weekYear(),e.dow,e.doy)}function Ls(e,t,r,s,n){var a;return e==null?it(this,s,n).year:(a=ve(e,s,n),t>a&&(t=a),ul.call(this,e,t,r,s,n))}function ul(e,t,r,s,n){var a=ys(e,t,r,s,n),i=at(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}p("Q",0,"Qo","quarter");h("Q",as);j("Q",function(e,t){t[ge]=(_(e)-1)*3});function fl(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date");h("D",I,Je);h("DD",I,J);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});j(["D","DD"],oe);j("Do",function(e,t){t[oe]=_(e.match(I)[0])});var Fs=Qe("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",jt);h("DDDD",is);j(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_(e)});function hl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute");h("m",I,cr);h("mm",I,J);j(["m","mm"],re);var ml=Qe("Minutes",!1);p("s",["ss",2],0,"second");h("s",I,cr);h("ss",I,J);j(["s","ss"],be);var pl=Qe("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)});p(0,["SS",2],0,function(){return~~(this.millisecond()/10)});p(0,["SSS",3],0,"millisecond");p(0,["SSSS",4],0,function(){return this.millisecond()*10});p(0,["SSSSS",5],0,function(){return this.millisecond()*100});p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});h("S",jt,as);h("SS",jt,J);h("SSS",jt,is);var je,Es;for(je="SSSS";je.length<=9;je+="S")h(je,qe);function yl(e,t){t[Re]=_(("0."+e)*1e3)}for(je="S";je.length<=9;je+="S")j(je,yl);Es=Qe("Milliseconds",!1);p("z",0,0,"zoneAbbr");p("zz",0,0,"zoneName");function gl(){return this._isUTC?"UTC":""}function bl(){return this._isUTC?"Coordinated Universal Time":""}var c=dt.prototype;c.add=co;c.calendar=go;c.clone=bo;c.diff=Mo;c.endOf=Wo;c.format=Yo;c.from=jo;c.fromNow=To;c.to=Co;c.toNow=Po;c.get=Oa;c.invalidAt=Ho;c.isAfter=xo;c.isBefore=vo;c.isBetween=_o;c.isSame=wo;c.isSameOrAfter=ko;c.isSameOrBefore=So;c.isValid=Vo;c.lang=Cs;c.locale=Ts;c.localeData=Ps;c.max=Ai;c.min=zi;c.parsingFlags=Uo;c.set=Na;c.startOf=Ro;c.subtract=uo;c.toArray=Eo;c.toObject=zo;c.toDate=Fo;c.toISOString=Oo;c.inspect=No;typeof Symbol<"u"&&Symbol.for!=null&&(c[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});c.toJSON=Ao;c.toString=Do;c.unix=Lo;c.valueOf=Io;c.creationData=Go;c.eraName=qo;c.eraNarrow=Jo;c.eraAbbr=Qo;c.eraYear=Xo;c.year=ds;c.isLeapYear=Da;c.weekYear=al;c.isoWeekYear=il;c.quarter=c.quarters=fl;c.month=ms;c.daysInMonth=La;c.week=c.weeks=Ga;c.isoWeek=c.isoWeeks=$a;c.weeksInYear=dl;c.weeksInWeekYear=cl;c.isoWeeksInYear=ol;c.isoWeeksInISOWeekYear=ll;c.date=Fs;c.day=c.days=ai;c.weekday=ii;c.isoWeekday=oi;c.dayOfYear=hl;c.hour=c.hours=mi;c.minute=c.minutes=ml;c.second=c.seconds=pl;c.millisecond=c.milliseconds=Es;c.utcOffset=Ji;c.utc=Xi;c.local=Ki;c.parseZone=eo;c.hasAlignedHourOffset=to;c.isDST=ro;c.isLocal=no;c.isUtcOffset=ao;c.isUtc=Os;c.isUTC=Os;c.zoneAbbr=gl;c.zoneName=bl;c.dates=ee("dates accessor is deprecated. Use date instead.",Fs);c.months=ee("months accessor is deprecated. Use month instead",ms);c.years=ee("years accessor is deprecated. Use year instead",ds);c.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Qi);c.isDSTShifted=ee("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",so);function xl(e){return W(e*1e3)}function vl(){return W.apply(null,arguments).parseZone()}function zs(e){return e}var N=ar.prototype;N.calendar=na;N.longDateFormat=la;N.invalidDate=ca;N.ordinal=ha;N.preparse=zs;N.postformat=zs;N.relativeTime=pa;N.pastFuture=ya;N.set=ra;N.eras=$o;N.erasParse=Bo;N.erasConvertYear=Zo;N.erasAbbrRegex=el;N.erasNameRegex=Ko;N.erasNarrowRegex=tl;N.months=Pa;N.monthsShort=Ra;N.monthsParse=Ia;N.monthsRegex=Ea;N.monthsShortRegex=Fa;N.week=Aa;N.firstDayOfYear=Ha;N.firstDayOfWeek=Ua;N.weekdays=ei;N.weekdaysMin=ri;N.weekdaysShort=ti;N.weekdaysParse=ni;N.weekdaysRegex=li;N.weekdaysShortRegex=di;N.weekdaysMinRegex=ci;N.isPM=fi;N.meridiem=pi;function Mt(e,t,r,s){var n=we(),a=de().set(s,t);return n[r](a,e)}function As(e,t,r){if(_e(e)&&(t=e,e=void 0),e=e||"",t!=null)return Mt(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Mt(e,s,r,"month");return n}function kr(e,t,r,s){typeof e=="boolean"?(_e(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,_e(t)&&(r=t,t=void 0),t=t||"");var n=we(),a=e?n._week.dow:0,i,o=[];if(r!=null)return Mt(t,(r+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Mt(t,(i+a)%7,s,"day");return o}function _l(e,t){return As(e,t,"months")}function wl(e,t){return As(e,t,"monthsShort")}function kl(e,t,r){return kr(e,t,r,"weekdays")}function Sl(e,t,r){return kr(e,t,r,"weekdaysShort")}function Ml(e,t,r){return kr(e,t,r,"weekdaysMin")}Te("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=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});f.lang=ee("moment.lang is deprecated. Use moment.locale instead.",Te);f.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",we);var pe=Math.abs;function Dl(){var e=this._data;return this._milliseconds=pe(this._milliseconds),this._days=pe(this._days),this._months=pe(this._months),e.milliseconds=pe(e.milliseconds),e.seconds=pe(e.seconds),e.minutes=pe(e.minutes),e.hours=pe(e.hours),e.months=pe(e.months),e.years=pe(e.years),this}function Vs(e,t,r,s){var n=ae(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function Ol(e,t){return Vs(this,e,t,1)}function Nl(e,t){return Vs(this,e,t,-1)}function Lr(e){return e<0?Math.floor(e):Math.ceil(e)}function Yl(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,o,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Lr(Qt(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=K(e/1e3),s.seconds=n%60,a=K(n/60),s.minutes=a%60,i=K(a/60),s.hours=i%24,t+=K(i/24),d=K(Us(t)),r+=d,t-=Lr(Qt(d)),o=K(r/12),r%=12,s.days=t,s.months=r,s.years=o,this}function Us(e){return e*4800/146097}function Qt(e){return e*146097/4800}function jl(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=te(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Us(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Qt(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 ke(e){return function(){return this.as(e)}}var Hs=ke("ms"),Tl=ke("s"),Cl=ke("m"),Pl=ke("h"),Rl=ke("d"),Wl=ke("w"),Il=ke("M"),Ll=ke("Q"),Fl=ke("y"),El=Hs;function zl(){return ae(this)}function Al(e){return e=te(e),this.isValid()?this[e+"s"]():NaN}function Ie(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vl=Ie("milliseconds"),Ul=Ie("seconds"),Hl=Ie("minutes"),Gl=Ie("hours"),$l=Ie("days"),Bl=Ie("months"),Zl=Ie("years");function ql(){return K(this.days()/7)}var ye=Math.round,Ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jl(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function Ql(e,t,r,s){var n=ae(e).abs(),a=ye(n.as("s")),i=ye(n.as("m")),o=ye(n.as("h")),d=ye(n.as("d")),u=ye(n.as("M")),m=ye(n.as("w")),g=ye(n.as("y")),y=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||o<=1&&["h"]||o<r.h&&["hh",o]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(y=y||m<=1&&["w"]||m<r.w&&["ww",m]),y=y||u<=1&&["M"]||u<r.M&&["MM",u]||g<=1&&["y"]||["yy",g],y[2]=t,y[3]=+e>0,y[4]=s,Jl.apply(null,y)}function Xl(e){return e===void 0?ye:typeof e=="function"?(ye=e,!0):!1}function Kl(e,t){return Ve[e]===void 0?!1:t===void 0?Ve[e]:(Ve[e]=t,e==="s"&&(Ve.ss=t-1),!0)}function ed(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=Ve,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},Ve,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=Ql(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var Ut=Math.abs;function ze(e){return(e>0)-(e<0)||+e}function Ft(){if(!this.isValid())return this.localeData().invalidDate();var e=Ut(this._milliseconds)/1e3,t=Ut(this._days),r=Ut(this._months),s,n,a,i,o=this.asSeconds(),d,u,m,g;return o?(s=K(e/60),n=K(s/60),e%=60,s%=60,a=K(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=o<0?"-":"",u=ze(this._months)!==ze(o)?"-":"",m=ze(this._days)!==ze(o)?"-":"",g=ze(this._milliseconds)!==ze(o)?"-":"",d+"P"+(a?u+a+"Y":"")+(r?u+r+"M":"")+(t?m+t+"D":"")+(n||s||e?"T":"")+(n?g+n+"H":"")+(s?g+s+"M":"")+(e?g+i+"S":"")):"P0D"}var k=It.prototype;k.isValid=$i;k.abs=Dl;k.add=Ol;k.subtract=Nl;k.as=jl;k.asMilliseconds=Hs;k.asSeconds=Tl;k.asMinutes=Cl;k.asHours=Pl;k.asDays=Rl;k.asWeeks=Wl;k.asMonths=Il;k.asQuarters=Ll;k.asYears=Fl;k.valueOf=El;k._bubble=Yl;k.clone=zl;k.get=Al;k.milliseconds=Vl;k.seconds=Ul;k.minutes=Hl;k.hours=Gl;k.days=$l;k.weeks=ql;k.months=Bl;k.years=Zl;k.humanize=ed;k.toISOString=Ft;k.toString=Ft;k.toJSON=Ft;k.locale=Ts;k.localeData=Ps;k.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ft);k.lang=Cs;p("X",0,0,"unix");p("x",0,0,"valueOf");h("x",Ct);h("X",va);j("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});j("x",function(e,t,r){r._d=new Date(_(e))});//! moment.js
|
|
10
|
+
f.version="2.30.1";ea(W);f.fn=c;f.min=Vi;f.max=Ui;f.now=Hi;f.utc=de;f.unix=xl;f.months=_l;f.isDate=lt;f.locale=Te;f.invalid=Nt;f.duration=ae;f.isMoment=ne;f.weekdays=kl;f.parseZone=vl;f.localeData=we;f.isDuration=gt;f.monthsShort=wl;f.weekdaysMin=Ml;f.defineLocale=pr;f.updateLocale=xi;f.locales=vi;f.weekdaysShort=Sl;f.normalizeUnits=te;f.relativeTimeRounding=Xl;f.relativeTimeThreshold=Kl;f.calendarFormat=yo;f.prototype=c;f.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 Gs=v.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...o},d)=>{const u=v.useMemo(()=>{const m=Math.abs(f().diff(f(s),"minutes"));if(m<60)return`há ${m} minutos`;const g=Math.abs(f().diff(f(s),"hours"));return g<24?`há ${g} horas`:`há ${Math.abs(f().diff(f(s),"days"))} dias`},[s]);return l.jsxs(er,{ref:d,icon:null,className:w(!n&&"border-transparent bg-lightGray",e),...o,children:[l.jsxs("div",{className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&l.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),l.jsx(R,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),l.jsx(R,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:u})]}),l.jsx(R,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),l.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[l.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:l.jsx(Xn,{className:"size-4","aria-hidden":"true"})}),l.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:l.jsx(Kn,{className:"size-4","aria-hidden":"true"})})]})]})});Gs.displayName="Notification";function td(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function rd(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=td(e,t.key);return r==null||r===""?null:l.jsx(R,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const $s={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},Dt=v.forwardRef(({className:e,...t},r)=>l.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[l.jsx("input",{ref:r,type:"checkbox",className:w("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}),l.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:l.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));Dt.displayName="TableCheckbox";function sd({className:e}){return l.jsx("svg",{className:w("size-5 shrink-0",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M8 9l4-4 4 4M8 15l4 4 4-4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}const Ot=v.forwardRef(({className:e,align:t="left",sortable:r,sorted:s,onSort:n,children:a,...i},o)=>l.jsx("th",{ref:o,className:w("border-b border-neutral-divider-secondary px-5 py-2",e),...i,children:l.jsxs("span",{className:w("flex items-center gap-1.5",$s[t??"left"],r&&"cursor-pointer select-none"),onClick:r?n:void 0,children:[l.jsx(R,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:a}),r&&l.jsx(sd,{className:w(s&&"text-agilys-primary")})]})}));Ot.displayName="TableHeadCell";function Xt({align:e="left",className:t,children:r,onClick:s}){return l.jsx("td",{onClick:s,className:w("border-b border-neutral-divider-secondary px-5 py-3",t),children:l.jsx(R,{className:w("flex items-center gap-2",$s[e??"left"]),children:r})})}function nd(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}function ad({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:o,onSelectionChange:d,sortKey:u,sortDirection:m,onSortChange:g,onRowClick:y,shadow:z=!1,border:F=!0,className:S,...M}){const Y=e.length+(i?1:0),E=o??[],U=t.map((T,B)=>nd(T,B,r)),$=U.length>0&&U.every(T=>E.includes(T)),ue=()=>{d&&d($?[]:U)},fe=T=>{d&&d(E.includes(T)?E.filter(B=>B!==T):[...E,T])};return l.jsx("div",{className:w("w-full overflow-x-auto rounded-lg",F&&"border border-neutral-divider-secondary",z&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:l.jsxs("table",{className:w("w-full border-collapse font-sans",S),...M,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[i&&l.jsx(Ot,{align:"center",className:"w-11",children:l.jsx(Dt,{checked:$,onChange:ue,"aria-label":"Selecionar todas as linhas"})}),e.map((T,B)=>l.jsx(Ot,{align:T.align,sortable:!!T.key&&!!g,sorted:T.key&&u===T.key?m:!1,onSort:()=>T.key&&(g==null?void 0:g(T.key)),children:T.label},T.key??`column-${B}`))]})}),l.jsx("tbody",{children:s?l.jsx("tr",{children:l.jsx("td",{colSpan:Y,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(R,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:Y,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(R,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((T,B)=>{const he=U[B];return l.jsxs("tr",{onClick:y?()=>y(T):void 0,className:w(B%2===0?"bg-neutral-surface-lightest":"bg-white",y&&"cursor-pointer"),children:[i&&l.jsx(Xt,{align:"center",onClick:Q=>Q.stopPropagation(),children:l.jsx(Dt,{checked:E.includes(he),onChange:()=>fe(he),"aria-label":"Selecionar linha"})}),e.map((Q,Se)=>l.jsx(Xt,{align:Q.align,className:Q.className,children:rd(T,Q)},Q.key??`column-${Se}`))]},he)})})]})})}const Bs=Be("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 id(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 od={sm:"caption",md:"bodySm",lg:"body"},Sr=v.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const o=t??"md";return l.jsx("span",{ref:i,className:w(Bs({size:t}),e),...a,children:r?l.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&l.jsx(R,{as:"span",variant:od[o],weight:"medium",className:"text-inherit leading-none",children:id(n)})})});Sr.displayName="Avatar";function ld({src:e,name:t,description:r,size:s="md",className:n}){return l.jsxs("div",{className:w("flex min-w-0 items-center gap-2",n),children:[l.jsx(Sr,{src:e,name:t,size:s}),l.jsxs("div",{className:"flex min-w-0 flex-col",children:[l.jsx(R,{as:"span",variant:"body",className:"truncate",children:t}),r&&l.jsx(R,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}const rt="ellipsis";function pt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function dd(e,t,r){if(r*2+5>=t)return pt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,o=a<t-1;return!i&&o?[...pt(1,3+r*2),rt,t]:i&&!o?[1,rt,...pt(t-(2+r*2),t)]:[1,rt,...pt(n,a),rt,t]}function Fr({direction:e,className:t}){return l.jsx("svg",{className:w("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.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 Zs=v.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{if(t<=1)return null;const o=dd(e,t,s),d=u=>{u<1||u>t||u===e||r(u)};return l.jsxs("nav",{ref:i,"aria-label":"Paginação",className:w("flex items-center gap-1 font-sans",n),...a,children:[l.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:l.jsx(Fr,{direction:"left"})}),o.map((u,m)=>u===rt?l.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:l.jsx(R,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${m}`):l.jsx("button",{type:"button","aria-current":u===e?"page":void 0,onClick:()=>d(u),className:w("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",u===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:l.jsx(R,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:u})},u)),l.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:l.jsx(Fr,{direction:"right"})})]})});Zs.displayName="Pagination";const Mr=Be("flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_1px_2px_0px_rgba(0,0,0,0.25)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",{variants:{hasError:{true:"ring-2 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),qs=v.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,error:i,disabled:o,id:d,...u},m)=>{const g=v.useId(),y=d??g,z=typeof i=="string"?i:i==null?void 0:i.message,F=!!z,S=`${y}-error`;return l.jsxs("div",{className:w("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&l.jsx(R,{as:"label",htmlFor:y,variant:"body",className:"text-neutral-text-primary",children:r}),l.jsxs("div",{className:w(Mr({hasError:F}),o&&"pointer-events-none opacity-50"),children:[s&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:s}),l.jsx("input",{ref:m,id:y,disabled:o,"aria-invalid":F||void 0,"aria-describedby":F?S:void 0,className:w("w-full min-w-0 flex-1 bg-transparent font-sans text-xs leading-relaxed font-normal text-black placeholder:font-sans placeholder:text-xs placeholder:leading-relaxed placeholder:font-normal placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...u}),n&&l.jsx("span",{className:w("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),F&&l.jsx(R,{as:"span",id:S,role:"alert",variant:"caption",className:"text-danger-60",children:z})]})});qs.displayName="Input";const Js=v.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,placeholder:i="Selecione",label:o,name:d,leftIcon:u,rightIcon:m,bgIcon:g=!1,error:y,disabled:z,id:F,onKeyDown:S,...M},Y)=>{const E=v.useId(),U=F??E,$=`${U}-listbox`,ue=typeof y=="string"?y:y==null?void 0:y.message,fe=!!ue,T=`${U}-error`,B=s!==void 0,[he,Q]=v.useState(n),Se=B?s:he,D=r.findIndex(C=>C.value===Se),Le=D>=0?r[D]:void 0,[H,ie]=v.useState(!1),[Me,Ce]=v.useState(D),Fe=v.useRef(null),De=v.useRef(null),ft=v.useCallback(C=>{De.current=C,typeof Y=="function"?Y(C):Y&&(Y.current=C)},[Y]);v.useEffect(()=>{if(!H)return;const C=Z=>{var Ee;(Ee=Fe.current)!=null&&Ee.contains(Z.target)||ie(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[H]),v.useEffect(()=>{H&&Ce(D>=0?D:0)},[H,D]);const X=C=>{var Z;B||Q(C.value),a==null||a(C.value,C),ie(!1),(Z=De.current)==null||Z.focus()},Xs=C=>{if(S==null||S(C),!C.defaultPrevented)switch(C.key){case"ArrowDown":if(C.preventDefault(),!H){ie(!0);break}Ce(Z=>Math.min(Z+1,r.length-1));break;case"ArrowUp":if(C.preventDefault(),!H){ie(!0);break}Ce(Z=>Math.max(Z-1,0));break;case"Enter":case" ":C.preventDefault(),H?r[Me]&&X(r[Me]):ie(!0);break;case"Escape":H&&(C.preventDefault(),ie(!1));break}};return l.jsxs("div",{ref:Fe,className:w("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[o&&l.jsx(R,{as:"label",htmlFor:U,variant:"body",className:"text-neutral-text-primary",children:o}),l.jsxs("div",{className:w(Mr({hasError:fe}),z&&"pointer-events-none opacity-50"),children:[u&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:u}),l.jsx("button",{ref:ft,type:"button",id:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":H,"aria-controls":$,"aria-invalid":fe||void 0,"aria-describedby":fe?T:void 0,disabled:z,onClick:()=>ie(C=>!C),onKeyDown:Xs,className:w("w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black focus:outline-none disabled:cursor-not-allowed",!Le&&"text-neutral-secondary/60",e),...M,children:Le?Le.label:i}),l.jsx("span",{className:w("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",H&&"rotate-180",g&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:m??l.jsx(Qn,{className:"size-4"})})]}),d&&l.jsx("input",{type:"hidden",name:d,value:Se??""}),H&&l.jsx("ul",{id:$,role:"listbox","aria-labelledby":o?U:void 0,className:"absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:r.map((C,Z)=>{const Ee=Z===D,Ks=Z===Me;return l.jsx("li",{id:`${$}-option-${Z}`,role:"option","aria-selected":Ee,onMouseEnter:()=>Ce(Z),onClick:()=>X(C),className:w("cursor-pointer truncate px-3 py-2",Ks||Ee&&"bg-lightGray"),children:l.jsx(R,{as:"span",variant:"bodySm",weight:Ee?"medium":"regular",className:"truncate text-black",children:C.label})},Z)})}),fe&&l.jsx(R,{as:"span",id:T,role:"alert",variant:"caption",className:"text-danger-60",children:ue})]})});Js.displayName="Select";function cd(){return l.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const Qs=v.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,className:o,contentClassName:d,...u},m)=>{const g=v.useId(),y=v.useRef(null),[z,F]=v.useState(!1);return v.useEffect(()=>F(!0),[]),v.useEffect(()=>{var Y;if(!e)return;const S=document.body.style.overflow;document.body.style.overflow="hidden",(Y=y.current)==null||Y.focus();const M=E=>{E.key==="Escape"&&t()};return document.addEventListener("keydown",M),()=>{document.body.style.overflow=S,document.removeEventListener("keydown",M)}},[e,t]),!e||!z?null:en.createPortal(l.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:l.jsxs("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":r?g:void 0,onClick:S=>S.stopPropagation(),className:w("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",o),...u,children:[i&&l.jsx("button",{ref:y,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:l.jsx(cd,{})}),r&&l.jsx("div",{className:"pr-8",children:l.jsx(R,{as:"h2",id:g,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),l.jsx("div",{className:w("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",d),children:s}),n&&l.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:n})]})}),document.body)});Qs.displayName="Modal";exports.Avatar=Sr;exports.AvatarColumn=ld;exports.Badge=Jr;exports.Button=Zr;exports.Card=er;exports.Input=qs;exports.Modal=Qs;exports.Notification=Gs;exports.Pagination=Zs;exports.Select=Js;exports.Table=ad;exports.TableCell=Xt;exports.TableCheckbox=Dt;exports.TableHeadCell=Ot;exports.Text=R;exports.avatarVariants=Bs;exports.badgeVariants=qr;exports.buttonVariants=Br;exports.cardVariants=Qr;exports.cn=w;exports.inputVariants=Mr;exports.textVariants=$r;
|
|
2
11
|
//# sourceMappingURL=agilys-design-system.cjs.map
|