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