@sysvale/cuida 3.104.3 → 3.105.0

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.
@@ -66,7 +66,7 @@ __p += '`),at&&(oe+=`' +
66
66
  function print() { __p += __j.call(arguments, '') }
67
67
  `:`;
68
68
  `)+oe+`return __p
69
- }`;var qe=O6(function(){return pt(E,Me+"return "+oe).apply(n,I)});if(qe.source=oe,Sp(qe))throw qe;return qe}function $se(c){return yt(c).toLowerCase()}function Tse(c){return yt(c).toUpperCase()}function Ise(c,u,p){if(c=yt(c),c&&(p||u===n))return Pv(c);if(!c||!(u=li(u)))return c;var b=Gi(c),C=Gi(u),E=Rv(b,C),I=Fv(b,C)+1;return Ea(b,E,I).join("")}function Ase(c,u,p){if(c=yt(c),c&&(p||u===n))return c.slice(0,Wv(c)+1);if(!c||!(u=li(u)))return c;var b=Gi(c),C=Fv(b,Gi(u))+1;return Ea(b,0,C).join("")}function Nse(c,u,p){if(c=yt(c),c&&(p||u===n))return c.replace(Or,"");if(!c||!(u=li(u)))return c;var b=Gi(c),C=Rv(b,Gi(u));return Ea(b,C).join("")}function Lse(c,u){var p=W,b=ie;if(Ut(u)){var C="separator"in u?u.separator:C;p="length"in u?Ue(u.length):p,b="omission"in u?li(u.omission):b}c=yt(c);var E=c.length;if(Ao(c)){var I=Gi(c);E=I.length}if(p>=E)return c;var z=p-No(b);if(z<1)return b;var F=I?Ea(I,0,z).join(""):c.slice(0,z);if(C===n)return F+b;if(I&&(z+=F.length-z),Mp(C)){if(c.slice(z).search(C)){var te,ne=F;for(C.global||(C=H0(C.source,yt(un.exec(C))+"g")),C.lastIndex=0;te=C.exec(ne);)var oe=te.index;F=F.slice(0,oe===n?z:oe)}}else if(c.indexOf(li(C),z)!=z){var ve=F.lastIndexOf(C);ve>-1&&(F=F.slice(0,ve))}return F+b}function zse(c){return c=yt(c),c&&ft.test(c)?c.replace(Be,fte):c}var Pse=Wo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Ep=V_("toUpperCase");function E6(c,u,p){return c=yt(c),u=p?n:u,u===n?lte(c)?gte(c):Qee(c):c.match(u)||[]}var O6=Ge(function(c,u){try{return mn(c,n,u)}catch(p){return Sp(p)?p:new Fe(p)}}),Rse=Fr(function(c,u){return Bi(u,function(p){p=ur(p),Pr(c,p,xp(c[p],c))}),c});function Fse(c){var u=c==null?0:c.length,p=Te();return c=u?Ft(c,function(b){if(typeof b[1]!="function")throw new Di(o);return[p(b[0]),b[1]]}):[],Ge(function(b){for(var C=-1;++C<u;){var E=c[C];if(mn(E[0],this,b))return mn(E[1],this,b)}})}function Hse(c){return fne(Oi(c,m))}function Op(c){return function(){return c}}function Wse(c,u){return c==null||c!==c?u:c}var Yse=T_(),Use=T_(!0);function Xn(c){return c}function Vp(c){return c_(typeof c=="function"?c:Oi(c,m))}function jse(c){return u_(Oi(c,m))}function qse(c,u){return h_(c,Oi(u,m))}var Gse=Ge(function(c,u){return function(p){return Pc(p,c,u)}}),Kse=Ge(function(c,u){return function(p){return Pc(c,p,u)}});function $p(c,u,p){var b=gn(u),C=ah(u,b);p==null&&!(Ut(u)&&(C.length||!b.length))&&(p=u,u=c,c=this,C=ah(u,gn(u)));var E=!(Ut(p)&&"chain"in p)||!!p.chain,I=Wr(c);return Bi(C,function(z){var F=u[z];c[z]=F,I&&(c.prototype[z]=function(){var te=this.__chain__;if(E||te){var ne=c(this.__wrapped__),oe=ne.__actions__=Gn(this.__actions__);return oe.push({func:F,args:arguments,thisArg:c}),ne.__chain__=te,ne}return F.apply(c,xa([this.value()],arguments))})}),c}function Zse(){return Ke._===this&&(Ke._=kte),this}function Tp(){}function Xse(c){return c=Ue(c),Ge(function(u){return f_(u,c)})}var Jse=dp(Ft),Qse=dp(Iv),eoe=dp(A0);function V6(c){return yp(c)?N0(ur(c)):One(c)}function toe(c){return function(u){return c==null?n:vs(c,u)}}var noe=A_(),ioe=A_(!0);function Ip(){return[]}function Ap(){return!1}function roe(){return{}}function aoe(){return""}function soe(){return!0}function ooe(c,u){if(c=Ue(c),c<1||c>pe)return[];var p=ge,b=Vn(c,ge);u=Te(u),c-=ge;for(var C=P0(b,u);++p<c;)u(p);return C}function loe(c){return We(c)?Ft(c,ur):ci(c)?[c]:Gn(X_(yt(c)))}function coe(c){var u=++_te;return yt(c)+u}var doe=uh(function(c,u){return c+u},0),uoe=up("ceil"),hoe=uh(function(c,u){return c/u},1),foe=up("floor");function poe(c){return c&&c.length?rh(c,Xn,Z0):n}function moe(c,u){return c&&c.length?rh(c,Te(u,2),Z0):n}function goe(c){return Lv(c,Xn)}function yoe(c,u){return Lv(c,Te(u,2))}function boe(c){return c&&c.length?rh(c,Xn,ep):n}function voe(c,u){return c&&c.length?rh(c,Te(u,2),ep):n}var _oe=uh(function(c,u){return c*u},1),woe=up("round"),koe=uh(function(c,u){return c-u},0);function xoe(c){return c&&c.length?z0(c,Xn):0}function Coe(c,u){return c&&c.length?z0(c,Te(u,2)):0}return B.after=jre,B.ary=l6,B.assign=Tae,B.assignIn=k6,B.assignInWith=Ch,B.assignWith=Iae,B.at=Aae,B.before=c6,B.bind=xp,B.bindAll=Rse,B.bindKey=d6,B.castArray=rae,B.chain=a6,B.chunk=fie,B.compact=pie,B.concat=mie,B.cond=Fse,B.conforms=Hse,B.constant=Op,B.countBy=xre,B.create=Nae,B.curry=u6,B.curryRight=h6,B.debounce=f6,B.defaults=Lae,B.defaultsDeep=zae,B.defer=qre,B.delay=Gre,B.difference=gie,B.differenceBy=yie,B.differenceWith=bie,B.drop=vie,B.dropRight=_ie,B.dropRightWhile=wie,B.dropWhile=kie,B.fill=xie,B.filter=Sre,B.flatMap=Dre,B.flatMapDeep=Ere,B.flatMapDepth=Ore,B.flatten=t6,B.flattenDeep=Cie,B.flattenDepth=Sie,B.flip=Kre,B.flow=Yse,B.flowRight=Use,B.fromPairs=Mie,B.functions=Uae,B.functionsIn=jae,B.groupBy=Vre,B.initial=Die,B.intersection=Eie,B.intersectionBy=Oie,B.intersectionWith=Vie,B.invert=Gae,B.invertBy=Kae,B.invokeMap=Tre,B.iteratee=Vp,B.keyBy=Ire,B.keys=gn,B.keysIn=Zn,B.map=bh,B.mapKeys=Xae,B.mapValues=Jae,B.matches=jse,B.matchesProperty=qse,B.memoize=_h,B.merge=Qae,B.mergeWith=x6,B.method=Gse,B.methodOf=Kse,B.mixin=$p,B.negate=wh,B.nthArg=Xse,B.omit=ese,B.omitBy=tse,B.once=Zre,B.orderBy=Are,B.over=Jse,B.overArgs=Xre,B.overEvery=Qse,B.overSome=eoe,B.partial=Cp,B.partialRight=p6,B.partition=Nre,B.pick=nse,B.pickBy=C6,B.property=V6,B.propertyOf=toe,B.pull=Aie,B.pullAll=i6,B.pullAllBy=Nie,B.pullAllWith=Lie,B.pullAt=zie,B.range=noe,B.rangeRight=ioe,B.rearg=Jre,B.reject=Pre,B.remove=Pie,B.rest=Qre,B.reverse=wp,B.sampleSize=Fre,B.set=rse,B.setWith=ase,B.shuffle=Hre,B.slice=Rie,B.sortBy=Ure,B.sortedUniq=qie,B.sortedUniqBy=Gie,B.split=Dse,B.spread=eae,B.tail=Kie,B.take=Zie,B.takeRight=Xie,B.takeRightWhile=Jie,B.takeWhile=Qie,B.tap=pre,B.throttle=tae,B.thru=yh,B.toArray=v6,B.toPairs=S6,B.toPairsIn=M6,B.toPath=loe,B.toPlainObject=w6,B.transform=sse,B.unary=nae,B.union=ere,B.unionBy=tre,B.unionWith=nre,B.uniq=ire,B.uniqBy=rre,B.uniqWith=are,B.unset=ose,B.unzip=kp,B.unzipWith=r6,B.update=lse,B.updateWith=cse,B.values=jo,B.valuesIn=dse,B.without=sre,B.words=E6,B.wrap=iae,B.xor=ore,B.xorBy=lre,B.xorWith=cre,B.zip=dre,B.zipObject=ure,B.zipObjectDeep=hre,B.zipWith=fre,B.entries=S6,B.entriesIn=M6,B.extend=k6,B.extendWith=Ch,$p(B,B),B.add=doe,B.attempt=O6,B.camelCase=pse,B.capitalize=B6,B.ceil=uoe,B.clamp=use,B.clone=aae,B.cloneDeep=oae,B.cloneDeepWith=lae,B.cloneWith=sae,B.conformsTo=cae,B.deburr=D6,B.defaultTo=Wse,B.divide=hoe,B.endsWith=mse,B.eq=Zi,B.escape=gse,B.escapeRegExp=yse,B.every=Cre,B.find=Mre,B.findIndex=Q_,B.findKey=Pae,B.findLast=Bre,B.findLastIndex=e6,B.findLastKey=Rae,B.floor=foe,B.forEach=s6,B.forEachRight=o6,B.forIn=Fae,B.forInRight=Hae,B.forOwn=Wae,B.forOwnRight=Yae,B.get=Bp,B.gt=dae,B.gte=uae,B.has=qae,B.hasIn=Dp,B.head=n6,B.identity=Xn,B.includes=$re,B.indexOf=Bie,B.inRange=hse,B.invoke=Zae,B.isArguments=ks,B.isArray=We,B.isArrayBuffer=hae,B.isArrayLike=Kn,B.isArrayLikeObject=tn,B.isBoolean=fae,B.isBuffer=Oa,B.isDate=pae,B.isElement=mae,B.isEmpty=gae,B.isEqual=yae,B.isEqualWith=bae,B.isError=Sp,B.isFinite=vae,B.isFunction=Wr,B.isInteger=m6,B.isLength=kh,B.isMap=g6,B.isMatch=_ae,B.isMatchWith=wae,B.isNaN=kae,B.isNative=xae,B.isNil=Sae,B.isNull=Cae,B.isNumber=y6,B.isObject=Ut,B.isObjectLike=Gt,B.isPlainObject=Uc,B.isRegExp=Mp,B.isSafeInteger=Mae,B.isSet=b6,B.isString=xh,B.isSymbol=ci,B.isTypedArray=Uo,B.isUndefined=Bae,B.isWeakMap=Dae,B.isWeakSet=Eae,B.join=$ie,B.kebabCase=bse,B.last=$i,B.lastIndexOf=Tie,B.lowerCase=vse,B.lowerFirst=_se,B.lt=Oae,B.lte=Vae,B.max=poe,B.maxBy=moe,B.mean=goe,B.meanBy=yoe,B.min=boe,B.minBy=voe,B.stubArray=Ip,B.stubFalse=Ap,B.stubObject=roe,B.stubString=aoe,B.stubTrue=soe,B.multiply=_oe,B.nth=Iie,B.noConflict=Zse,B.noop=Tp,B.now=vh,B.pad=wse,B.padEnd=kse,B.padStart=xse,B.parseInt=Cse,B.random=fse,B.reduce=Lre,B.reduceRight=zre,B.repeat=Sse,B.replace=Mse,B.result=ise,B.round=woe,B.runInContext=P,B.sample=Rre,B.size=Wre,B.snakeCase=Bse,B.some=Yre,B.sortedIndex=Fie,B.sortedIndexBy=Hie,B.sortedIndexOf=Wie,B.sortedLastIndex=Yie,B.sortedLastIndexBy=Uie,B.sortedLastIndexOf=jie,B.startCase=Ese,B.startsWith=Ose,B.subtract=koe,B.sum=xoe,B.sumBy=Coe,B.template=Vse,B.times=ooe,B.toFinite=Yr,B.toInteger=Ue,B.toLength=_6,B.toLower=$se,B.toNumber=Ti,B.toSafeInteger=$ae,B.toString=yt,B.toUpper=Tse,B.trim=Ise,B.trimEnd=Ase,B.trimStart=Nse,B.truncate=Lse,B.unescape=zse,B.uniqueId=coe,B.upperCase=Pse,B.upperFirst=Ep,B.each=s6,B.eachRight=o6,B.first=n6,$p(B,function(){var c={};return cr(B,function(u,p){Ct.call(B.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),B.VERSION=r,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Bi(["drop","take"],function(c,u){tt.prototype[c]=function(p){p=p===n?1:fn(Ue(p),0);var b=this.__filtered__&&!u?new tt(this):this.clone();return b.__filtered__?b.__takeCount__=Vn(p,b.__takeCount__):b.__views__.push({size:Vn(p,ge),type:c+(b.__dir__<0?"Right":"")}),b},tt.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Bi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==ye||p==Z;tt.prototype[c]=function(C){var E=this.clone();return E.__iteratees__.push({iteratee:Te(C,3),type:p}),E.__filtered__=E.__filtered__||b,E}}),Bi(["head","last"],function(c,u){var p="take"+(u?"Right":"");tt.prototype[c]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");tt.prototype[c]=function(){return this.__filtered__?new tt(this):this[p](1)}}),tt.prototype.compact=function(){return this.filter(Xn)},tt.prototype.find=function(c){return this.filter(c).head()},tt.prototype.findLast=function(c){return this.reverse().find(c)},tt.prototype.invokeMap=Ge(function(c,u){return typeof c=="function"?new tt(this):this.map(function(p){return Pc(p,c,u)})}),tt.prototype.reject=function(c){return this.filter(wh(Te(c)))},tt.prototype.slice=function(c,u){c=Ue(c);var p=this;return p.__filtered__&&(c>0||u<0)?new tt(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=Ue(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},tt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},tt.prototype.toArray=function(){return this.take(ge)},cr(tt.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),C=B[b?"take"+(u=="last"?"Right":""):u],E=b||/^find/.test(u);C&&(B.prototype[u]=function(){var I=this.__wrapped__,z=b?[1]:arguments,F=I instanceof tt,te=z[0],ne=F||We(I),oe=function(Je){var at=C.apply(B,xa([Je],z));return b&&ve?at[0]:at};ne&&p&&typeof te=="function"&&te.length!=1&&(F=ne=!1);var ve=this.__chain__,Me=!!this.__actions__.length,Ie=E&&!ve,qe=F&&!Me;if(!E&&ne){I=qe?I:new tt(this);var Ae=c.apply(I,z);return Ae.__actions__.push({func:yh,args:[oe],thisArg:n}),new Ei(Ae,ve)}return Ie&&qe?c.apply(this,z):(Ae=this.thru(oe),Ie?b?Ae.value()[0]:Ae.value():Ae)})}),Bi(["pop","push","shift","sort","splice","unshift"],function(c){var u=Wu[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);B.prototype[c]=function(){var C=arguments;if(b&&!this.__chain__){var E=this.value();return u.apply(We(E)?E:[],C)}return this[p](function(I){return u.apply(We(I)?I:[],C)})}}),cr(tt.prototype,function(c,u){var p=B[u];if(p){var b=p.name+"";Ct.call(Ro,b)||(Ro[b]=[]),Ro[b].push({name:u,func:p})}}),Ro[dh(n,x).name]=[{name:"wrapper",func:n}],tt.prototype.clone=zte,tt.prototype.reverse=Pte,tt.prototype.value=Rte,B.prototype.at=mre,B.prototype.chain=gre,B.prototype.commit=yre,B.prototype.next=bre,B.prototype.plant=_re,B.prototype.reverse=wre,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=kre,B.prototype.first=B.prototype.head,$c&&(B.prototype[$c]=vre),B},Lo=yte();Rt?((Rt.exports=Lo)._=Lo,ot._=Lo):Ke._=Lo}).call(yn)}(du,du.exports);var ri=du.exports;const Sf={components:{CdsIcon:ke},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},textMessage:{type:String,default:"Arraste o arquivo aqui ou pesquise no seu dispositivo"},errorMessage:{type:String,default:"Valor inválido"},disabled:{type:Boolean,default:!1}},data(){return{file:this.modelValue&&!ri.isEmpty(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state,invalidExtensionError:null}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,r,a)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${r!==a.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}return this.errorMessage}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"},formatFilename(){if(this.file instanceof File&&this.file.name.length>16){const t=this.file.name.split(".");return t.length>2?`arquivo.${ri.last(t)}`:`${t[0].substring(0,16)}....${t[1]}`}return this.file.name}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");n=n[n.length-1].trim();const r=e.filter(a=>a===n).length>0;return this.invalidExtensionError=!r,r},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},c4=()=>{i.useCssVars(t=>({"3c7a40a8":t.textAlignmentResolver}))},d4=Sf.setup;Sf.setup=d4?(t,e)=>(c4(),d4(t,e)):c4;const $V=["accept"],TV={key:0,class:"file-input__container"},IV={key:0},AV={key:1},NV={key:1,class:"file-input__container"},LV={key:1},zV={key:0,class:"file-input__alert-container"};function PV(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.createElementVNode("div",{class:i.normalizeClass(["file-input text-center",{"file-input--drag-state":a.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!a.isValid,"file-input--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...l)=>s.dropHandler&&s.dropHandler(...l)),onClick:e[7]||(e[7]=(...l)=>s.linkClick&&s.linkClick(...l))},[i.withDirectives(i.createElementVNode("input",{ref:"fileInput",type:"file",accept:s.acceptString,onChange:e[0]||(e[0]=(...l)=>s.handleFormFileChange&&s.handleFormFileChange(...l))},null,40,$V),[[i.vShow,!1]]),a.file?(i.openBlock(),i.createElementBlock("div",NV,[i.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:i.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",LV," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[i.createElementVNode("div",null,i.toDisplayString(s.formatFilename),1),i.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=i.withModifiers((...l)=>s.handleRemove&&s.handleRemove(...l),["stop"]))},[i.createVNode(o,{height:"18",width:"18",name:"x-outline",class:i.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(i.openBlock(),i.createElementBlock("div",TV,[i.createVNode(o,{name:"upload-cloud-outline",class:i.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",AV," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",IV,i.toDisplayString(n.textMessage),1))],2)]))],34)]),a.internalState==="invalid"?(i.openBlock(),i.createElementBlock("div",zV,i.toDisplayString(s.computedAllowedMessage),1)):i.createCommentVNode("",!0)],64)}const u4=Q(Sf,[["render",PV],["__scopeId","data-v-33f6f0ff"]]),RV={class:"file-viewer__image"},FV={key:0,class:"file-viewer__extension"},HV={class:"file-viewer__info"},WV={class:"file-viewer__label"},YV={class:"file-viewer__file-name"},UV={key:0,class:"file-viewer__backdrop"},jV={class:"file-viewer__visualizer-header"},qV={class:"file-viewer__visualizer-label"},GV={class:"file-viewer__visualizer-actions"},KV={key:0},ZV={key:1,class:"file-viewer__visualizer-empty-state"},XV=Q({__name:"FileViewer",props:{label:{type:String,required:!0,default:"Comprovante de residência"},fileUrl:{type:String,required:!0,default:"https://images.pexels.com/photos/1254140/pexels-photo-1254140.jpeg"},variant:{type:String,default:"green",validator:t=>au.find(e=>e.name===t)}},emits:["close","download-click"],setup(t,{emit:e}){const n=e,r=t,a=i.ref(!1),s=i.ref(!1),o=["jpg","jpeg","png","webp"],l=i.computed(()=>{if(r.fileUrl){const k=ri.last(r.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),x=ri.get(k,"1",null);if(x)return x.toLowerCase()}return"file"}),d=i.computed(()=>r.label.length>50?r.label.substring(0,50):r.label),h=()=>{a.value=!0},f=()=>{a.value=!1},m=()=>{s.value=!s.value,y(s.value)},g=()=>{s.value=!1,y(s.value),n("close",!0)},y=w=>{document.body.style.overflow=w?"hidden":"auto"},_=i.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(w,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref:"fileViewer",class:i.normalizeClass(["file-viewer",`file-viewer--${t.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:i.withKeys(g,["esc"])},[i.createElementVNode("div",RV,[a.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["file-viewer__icon",`file-viewer__icon--${t.variant}`])},[i.createVNode(ke,{height:"32",width:"32",name:"image-outline"})],2)):(i.openBlock(),i.createElementBlock("div",FV,i.toDisplayString(l.value),1))]),i.createElementVNode("div",HV,[i.createElementVNode("div",WV,i.toDisplayString(d.value),1),i.createElementVNode("div",YV,i.toDisplayString(t.fileUrl),1),i.createElementVNode("div",null,[i.createElementVNode("a",{class:i.normalizeClass(["file-viewer__download",`file-viewer__download--${t.variant}`]),onClick:k[0]||(k[0]=i.withModifiers(x=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),s.value?(i.openBlock(),i.createElementBlock("div",UV,[i.createElementVNode("div",jV,[i.createElementVNode("div",qV,i.toDisplayString(d.value),1),i.createElementVNode("div",GV,[i.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=x=>n("download-click",!0))},[i.createVNode(ke,{height:"24",width:"24",name:"download-cloud-outline"}),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",KV," Baixar arquivo "))]),i.createVNode(ke,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:g})])]),i.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:g},[o.includes(l.value)?(i.openBlock(),i.createBlock(Kl,{key:0,class:"file-viewer__visualizer-image",src:t.fileUrl,onClick:k[2]||(k[2]=i.withModifiers(()=>{},["stop"]))},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",ZV,[i.createVNode(Kl,{src:"https://i.imgur.com/d842Bek.png",width:"100",height:"100"}),k[3]||(k[3]=i.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):i.createCommentVNode("",!0)],64))}},[["__scopeId","data-v-c35f914b"]]);function ec(t=""){const e="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",r=t.length;let a=t.split(""),s;for(let o=0;o<r;o+=1)s=e.indexOf(t[o]),s!==-1&&(a[o]=n[s]);return a=a.join(""),a=a.split(".").join(""),a=a.split("-").join(""),a=a.split("/").join(""),a}const JV={props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:qr()}},computed:{inputClass(){let t="";const e="filter-select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled&&(t+=` ${e}--disabled`),t+=` ${e}--${jh.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"],document.querySelector("body").addEventListener("click",this.closeFilterSelect)},methods:{filterOptions(){const t=ec(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>ec(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=sl(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=sl(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const r=t.getBoundingClientRect(),a=this.$refs["filter-select-options"],s=a.getBoundingClientRect();n==="up"&&r.top<=s.top&&(a.scrollTop+=e),n==="down"&&r.top>=s.bottom&&(a.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")},closeFilterSelect(t){this.$refs.filterSelectRef&&!this.$refs.filterSelectRef.contains(t.target)&&this.hide()}}},QV={ref:"cds-filter-select",class:"filter-select"},e$={class:"filter-select__label"},t$={for:"cds-filter-select"},n$=["id","onkeypress","placeholder","disabled","readonly"],i$={key:0,class:"option__container"},r$=["onMouseover"],a$={key:1,class:"option__container"};function s$(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",QV,[i.createElementVNode("div",{ref:"filterSelectRef",class:i.normalizeClass(["filter-select__container",s.inputClass]),onKeydown:[e[6]||(e[6]=i.withKeys(i.withModifiers((...o)=>s.activateSelectionOnEnter&&s.activateSelectionOnEnter(...o),["prevent"]),["enter"])),e[7]||(e[7]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowDown&&s.highlightOnArrowDown(...o),["prevent"]),["arrow-down"])),e[8]||(e[8]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowUp&&s.highlightOnArrowUp(...o),["prevent"]),["arrow-up"]))],onClick:e[9]||(e[9]=(...o)=>s.activateSelectionOnClick&&s.activateSelectionOnClick(...o))},[i.createElementVNode("label",e$,[i.createElementVNode("div",t$,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel),1)])]),i.withDirectives(i.createElementVNode("input",{id:t.$attrs.id||a.id,ref:"filter-select-input","onUpdate:modelValue":e[0]||(e[0]=o=>a.localValue[n.optionsField]=o),type:"text",autocomplete:"off",onkeypress:`return ${a.allowSearch};`,class:i.normalizeClass(s.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:e[1]||(e[1]=(...o)=>s.filterOptions&&s.filterOptions(...o)),onFocus:e[2]||(e[2]=(...o)=>s.activeSelection&&s.activeSelection(...o)),onBlur:e[3]||(e[3]=(...o)=>s.hide&&s.hide(...o))},null,42,n$),[[i.vModelText,a.localValue[n.optionsField]]]),i.withDirectives(i.createElementVNode("div",{ref:"filter-select-options",class:i.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":a.direction==="down","filter-select__options--up":a.direction==="up"}])},[a.localOptions.length>0?(i.openBlock(),i.createElementBlock("ul",i$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.localOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,ref_for:!0,ref:`${o[n.optionsField]}-${l}`,class:"option__text",onMousedown:e[4]||(e[4]=(...d)=>s.selectItem&&s.selectItem(...d)),onMouseover:d=>s.highlightOnMouseOver(l),onMouseout:e[5]||(e[5]=d=>s.unhighlightOnMouseOut())},i.toDisplayString(o[n.optionsField]),41,r$))),128))])):(i.openBlock(),i.createElementBlock("ul",a$,e[10]||(e[10]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,a.active]]),i.createElementVNode("span",{class:i.normalizeClass(a.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)],512)}const o$=Q(JV,[["render",s$],["__scopeId","data-v-a234b486"]]),l$={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},c$={id:"cds-pulsar"};function d$(t,e,n,r,a,s){const o=i.resolveDirective("cds-floatify");return i.withDirectives((i.openBlock(),i.createElementBlock("div",c$,[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const h4=Q(l$,[["render",d$],["__scopeId","data-v-6f878a26"]]),u$={components:{CdsPulsar:h4,CdsIcon:ke},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},startOnScroll:{type:Boolean,default:!1,required:!1},url:{type:String,default:""},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){this.isActive=t,this.handleEventAnimation()}},mounted(){this.handleEventAnimation(),document.querySelector("body").addEventListener("click",this.closeFloatingAssistant)},methods:{handleEventAnimation(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,this.startOnScroll?window.addEventListener("scroll",this.startAnimation):this.startAnimation()},startAnimation(){this.startOnScroll?this.isScrolledIntoView()&&setTimeout(()=>{document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation)},1e3):setTimeout(()=>{document.getElementById(this.id).classList.add("animation")},1e3)},isScrolledIntoView(){const{top:t,bottom:e}=document.getElementById(this.id).getBoundingClientRect();return t>=0&&e<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1},closeFloatingAssistant(t){this.$refs.floatingAssistantRef&&!this.$refs.floatingAssistantRef.contains(t.target)&&this.collapse()}}},h$=["id"],f$=["id"],p$={key:0},m$={key:1},g$={key:0,class:"floating-assistant__content"},y$={key:0,class:"floating-assistant__footer"},b$=["href"],v$={key:1,class:"floating-assistant__subtitle"},_$={key:2};function w$(t,e,n,r,a,s){const o=i.resolveComponent("cds-pulsar"),l=i.resolveComponent("cds-icon"),d=i.resolveDirective("cds-floatify");return i.openBlock(),i.createElementBlock("div",{id:a.id,class:i.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!a.isActive}])},[i.createVNode(o,{id:a.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:a.containerId,class:"floating-assistant__container"},[i.createElementVNode("div",{ref:"floatingAssistantRef",class:i.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":a.isExpanded,"floating-assistant__dropdown--confirmation":a.waitingConfirmation}]),onClick:e[3]||(e[3]=(...h)=>s.expand&&s.expand(...h))},[a.waitingConfirmation?(i.openBlock(),i.createElementBlock("div",p$,[e[4]||(e[4]=i.createTextVNode(" Ocultar dica para sempre? ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=h=>s.confirmationHandle(!0))}," Sim ",2),e[5]||(e[5]=i.createTextVNode(" / ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=h=>s.confirmationHandle(!1))}," Não ",2)])):(i.openBlock(),i.createElementBlock("div",m$,[i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__title--${n.variant}`)},i.toDisplayString(n.title),3),a.isExpanded?(i.openBlock(),i.createElementBlock("div",g$,[i.renderSlot(t.$slots,"default",{},void 0,!0),n.url?(i.openBlock(),i.createElementBlock("span",y$,[e[6]||(e[6]=i.createTextVNode(" Você pode saber mais ")),i.createElementVNode("a",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,b$),e[7]||(e[7]=i.createTextVNode(". "))])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",v$," Clique para mais informações "))])),a.isExpanded?(i.openBlock(),i.createElementBlock("div",_$,[i.createElementVNode("div",{onClick:e[2]||(e[2]=i.withModifiers((...h)=>s.close&&s.close(...h),["stop"]))},[i.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):i.createCommentVNode("",!0)],2)],8,f$)),[[d,a.pulsarId,a.position]])],10,h$)}const k$=Q(u$,[["render",w$],["__scopeId","data-v-01d1f93e"]]),x$={class:"floating-action-button__container"},C$=["onClick"],S$={class:"floating-action-button__subitem-label"},M$={class:"floating-action-button__subitem"},B$=Q({__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:t=>t.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(t,{emit:e}){i.useCssVars(y=>({"0a3aecd8":h.value,"005b6afb":l.value,"21ef27b0":f.value,"87db115e":d.value}));const n=t,r=e,a=i.ref(!1),s=i.ref(!1),o=i.ref(-1),l=i.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=i.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=i.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=i.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");i.watch(a,y=>{y||(s.value=!0,setTimeout(()=>{s.value=!1},500))});function m(){if(n.actions.length>0){o.value=a.value?-1:1,a.value=!a.value;return}r("main-button-click")}function g(y){a.value=!1,r("action-click",y)}return(y,_)=>(i.openBlock(),i.createElementBlock("div",x$,[a.value||s.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.actions,w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:i.normalizeClass(["floating-action-button__subitem-container",{exiting:s.value}]),onClick:k=>g(w)},[i.createElementVNode("div",S$,i.toDisplayString(w==null?void 0:w.label),1),i.createElementVNode("div",M$,[i.createVNode(ke,{name:w==null?void 0:w.icon,height:"32",width:"32"},null,8,["name"])])],10,C$))),128)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${t.variant}`]),onClick:m},[i.createVNode(i.Transition,{name:"icon-transition",mode:"out-in"},{default:i.withCtx(()=>[a.value?(i.openBlock(),i.createBlock(ke,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(i.openBlock(),i.createBlock(ke,{key:"main-icon",name:t.icon,height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}},[["__scopeId","data-v-3f44d904"]]),Mf={props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},targetId:{type:String,default:""},defaultPlacement:{type:String,default:null}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:qr()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(t){t?this.show():this.hide()},targetId(t){this.setPopper(t)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId),document.querySelector("body").addEventListener("click",this.closeRichTooltip)},methods:{setPopper(t){this.$nextTick(()=>{this.target=document.querySelector(`[id='${t}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=tl(this.target,this.popover,{placement:this.defaultPlacement===null?"bottom":this.defaultPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popover.classList.remove("popover-hide"),this.popover.classList.add("popover-show"),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.popover.classList.remove("popover-show"),this.popover.classList.add("popover-hide"),setTimeout(()=>{this.popover.removeAttribute("data-show")},350),this.$nextTick(()=>{this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})},closeRichTooltip(t){this.$refs.richTooltipRef&&!this.$refs.richTooltipRef.contains(t.target)&&this.hide()}}},f4=()=>{i.useCssVars(t=>({39058308:t.popoverWidth}))},p4=Mf.setup;Mf.setup=p4?(t,e)=>(f4(),p4(t,e)):f4;const D$=["id"];function E$(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{id:t.$attrs.id||a.id,ref:"richTooltipRef",class:"richTooltip"},[i.renderSlot(t.$slots,"default",{},void 0,!0)],8,D$)}const Bf=Q(Mf,[["render",E$],["__scopeId","data-v-bcda0e86"]]),Df={components:{CdsRichTooltip:Bf},props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:t=>t>=0&&t<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:qr()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let t=this.target-1;return t>=98&&(t=98),198*(1-t/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:Za}},m4=()=>{i.useCssVars(t=>({eaad879e:t.chartProgressValue,cfd9d6d6:t.targetValue}))},g4=Df.setup;Df.setup=g4?(t,e)=>(m4(),g4(t,e)):m4;const O$={class:"responsive-container"},V$=["id"],$$={transform:"scale(1.20) translate(-9.5 -12)"},T$={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},I$={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function A$(t,e,n,r,a,s){const o=i.resolveComponent("cds-rich-tooltip");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",O$,[i.createElementVNode("div",{class:"gauge-chart",style:i.normalizeStyle(s.progressStyle)},[(i.openBlock(),i.createElementBlock("svg",{id:a.uniqueKey,class:i.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:e[0]||(e[0]=l=>a.showPopover=!0),onMouseleave:e[1]||(e[1]=l=>a.showPopover=!1)},[e[5]||(e[5]=i.createElementVNode("linearGradient",{id:"gradient",x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},[i.createElementVNode("stop",{class:"stop",offset:"1%"}),i.createElementVNode("stop",{class:"stop-2",offset:"99%"})],-1)),i.createElementVNode("g",$$,[e[3]||(e[3]=i.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),e[4]||(e[4]=i.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90"},null,-1)),n.showTarget?(i.openBlock(),i.createElementBlock("path",{key:0,fill:"none",class:i.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):i.createCommentVNode("",!0)]),i.createElementVNode("text",T$,i.toDisplayString(s.formatedValue),1),i.createElementVNode("text",I$,i.toDisplayString(n.subtitle),1)],42,V$))],4),s.hasSlot(t.$slots,"popover")?(i.openBlock(),i.createBlock(o,{key:0,modelValue:a.showPopover,"onUpdate:modelValue":e[2]||(e[2]=l=>a.showPopover=l),"default-placement":"top","target-id":a.uniqueKey},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):i.createCommentVNode("",!0)])])}const N$=Q(Df,[["render",A$],["__scopeId","data-v-0c7cac1e"]]),L$={class:"grid-item"},z$=Q({__name:"GridItem",props:{colSpan:{type:[Number,String],default:"auto"},rowSpan:{type:[Number,String],default:"1"},colStart:{type:[Number,String],default:"auto"},rowStart:{type:[Number,String],default:"auto"},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},subGrid:{type:Boolean,default:!1},justify:{type:String,default:"auto"},align:{type:String,default:"auto"},direction:{type:String,default:"row"}},setup(t){i.useCssVars(o=>({"74e6f3ab":t.align,"00119c0e":a.value,"057d4122":s.value,"0cc4bb96":n.value,"5597afb4":r.value,"7a019494":t.justify,"5912a125":t.direction}));const e=t,n=i.computed(()=>{if(!e.colSpan&&!e.colStart)return"auto";const o=e.colStart?e.colStart:1,l=e.colSpan?`span ${e.colSpan}`:1;return`${o} / ${l}`}),r=i.computed(()=>{if(!e.rowSpan&&!e.rowStart)return"auto";const o=e.rowStart?e.rowStart:1,l=e.rowSpan?`span ${e.rowSpan}`:1;return`${o} / ${l}`}),a=i.computed(()=>e.subGrid?"grid":"block"),s=i.computed(()=>{let o="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap}px`:e.gap:(e.rowGap?Number.isFinite(e.rowGap)?o=`${e.rowGap}px`:o=e.rowGap:o="0px",e.colGap?Number.isFinite(e.colGap)?o+=` ${e.colGap}px`:o+=` ${e.colGap}`:o+=" 0px",o)});return(o,l)=>(i.openBlock(),i.createElementBlock("div",L$,[i.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),Ef={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:[String,null],default:null},caseSensitive:{type:Boolean,default:!1}},data(){return{substrings:[]}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},slotString(){return this.hasSlots?this.$slots.default()[0].children:""},normalizedSlotString(){return this.normalize(this.slotString)},normalizedHighlightText(){return this.normalize(this.highlightedText)},isAValidSubstring(){return this.normalizedSlotString.includes(this.normalizedHighlightText)},paddingResolver(){return this.highlightedText?"4px 1px":"4px"},dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(t){const e={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]"},n={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]",A:"[AÁÀÂÃ]",Á:"[AÁÀÂÃ]",À:"[AÁÀÂÃ]",Â:"[AÁÀÂÃ]",Ã:"[AÁÀÂÃ]",E:"[EÉÊ]",É:"[EÉÊ]",Ê:"[EÉÊ]",I:"[IÍ]",Í:"[IÍ]",O:"[OÓÔÕ]",Ó:"[OÓÔÕ]",Ô:"[OÓÔÕ]",Õ:"[OÓÔÕ]",U:"[UÚÜ]",Ú:"[UÚÜ]",Ü:"[UÚÜ]"};return this.caseSensitive?t==null?void 0:t.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,r=>n[r]||r):t==null?void 0:t.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,r=>e[r]||r)},splitContent(){let t=this.caseSensitive?"g":"gi",e=new RegExp(`(${this.normalizedHighlightText})`,t),n=this.slotString.split(e);this.substrings=n.map((r,a)=>({string:r,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,t).test(this.caseSensitive?r:r==null?void 0:r.toLowerCase()),id:a}))}}},y4=()=>{i.useCssVars(t=>({"6b796b56":t.paddingResolver}))},b4=Ef.setup;Ef.setup=b4?(t,e)=>(y4(),b4(t,e)):y4;function P$(t,e,n,r,a,s){return n.highlightedText&&s.isAValidSubstring?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(a.substrings,o=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:o.id},[o.highlighted?(i.openBlock(),i.createElementBlock("mark",{key:0,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},i.toDisplayString(o.string),7)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.string),1)],64))],64))),128)):(i.openBlock(),i.createElementBlock("mark",{key:1,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],6))}const v4=Q(Ef,[["render",P$],["__scopeId","data-v-3c7c0a20"]]),_4=["sm","md","lg"],R$={components:{CdsIcon:ke,CdsTooltip:td},props:{size:{type:String,default:"md",validator:t=>_4.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:_4,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},F$={id:"cds-icon-button"};function H$(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",F$,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:a.innerTooltipText},{default:i.withCtx(()=>[i.createElementVNode("button",{class:i.normalizeClass(["cds-icon-button__container",s.computedModifiers]),onClick:e[0]||(e[0]=(...l)=>s.clickHandler&&s.clickHandler(...l))},[(i.openBlock(),i.createBlock(o,{key:a.inputControlPanel,name:a.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const uu=Q(R$,[["render",H$],["__scopeId","data-v-ad879e60"]]);var hu={exports:{}};hu.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",a=1,s=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",_="[object GeneratorFunction]",w="[object Map]",k="[object Number]",x="[object Null]",M="[object Object]",O="[object Promise]",S="[object Proxy]",V="[object RegExp]",T="[object Set]",N="[object String]",A="[object Symbol]",R="[object Undefined]",W="[object WeakMap]",ie="[object ArrayBuffer]",G="[object DataView]",re="[object Float32Array]",ye="[object Float64Array]",ee="[object Int8Array]",Z="[object Int16Array]",he="[object Int32Array]",pe="[object Uint8Array]",J="[object Uint8ClampedArray]",H="[object Uint16Array]",ge="[object Uint32Array]",fe=/[\\^$.*+?()[\]{}|]/g,$e=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,_e={};_e[re]=_e[ye]=_e[ee]=_e[Z]=_e[he]=_e[pe]=_e[J]=_e[H]=_e[ge]=!0,_e[l]=_e[d]=_e[ie]=_e[f]=_e[G]=_e[m]=_e[g]=_e[y]=_e[w]=_e[k]=_e[M]=_e[V]=_e[T]=_e[N]=_e[W]=!1;var Le=typeof yn=="object"&&yn&&yn.Object===Object&&yn,nt=typeof self=="object"&&self&&self.Object===Object&&self,ae=Le||nt||Function("return this")(),xe=e&&!e.nodeType&&e,Ne=xe&&!0&&t&&!t.nodeType&&t,Ze=Ne&&Ne.exports===xe,He=Ze&&Le.process,et=function(){try{return He&&He.binding&&He.binding("util")}catch{}}(),dt=et&&et.isTypedArray;function vt(v,D){for(var L=-1,K=v==null?0:v.length,Pe=0,De=[];++L<K;){var it=v[L];D(it,L,v)&&(De[Pe++]=it)}return De}function ht(v,D){for(var L=-1,K=D.length,Pe=v.length;++L<K;)v[Pe+L]=D[L];return v}function _t(v,D){for(var L=-1,K=v==null?0:v.length;++L<K;)if(D(v[L],L,v))return!0;return!1}function Jt(v,D){for(var L=-1,K=Array(v);++L<v;)K[L]=D(L);return K}function Qt(v){return function(D){return v(D)}}function mt(v,D){return v.has(D)}function st(v,D){return v==null?void 0:v[D]}function At(v){var D=-1,L=Array(v.size);return v.forEach(function(K,Pe){L[++D]=[Pe,K]}),L}function Mt(v,D){return function(L){return v(D(L))}}function Ot(v){var D=-1,L=Array(v.size);return v.forEach(function(K){L[++D]=K}),L}var Bt=Array.prototype,an=Function.prototype,Vt=Object.prototype,le=ae["__core-js_shared__"],ze=an.toString,je=Vt.hasOwnProperty,se=function(){var v=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Oe=Vt.toString,Se=RegExp("^"+ze.call(je).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=Ze?ae.Buffer:void 0,de=ae.Symbol,we=ae.Uint8Array,j=Vt.propertyIsEnumerable,$=Bt.splice,q=de?de.toStringTag:void 0,ce=Object.getOwnPropertySymbols,Be=Y?Y.isBuffer:void 0,Xe=Mt(Object.keys,Object),ft=On(ae,"DataView"),$t=On(ae,"Map"),cn=On(ae,"Promise"),en=On(ae,"Set"),qn=On(ae,"WeakMap"),wt=On(Object,"create"),Nn=vn(ft),Dn=vn($t),ai=vn(cn),Ui=vn(en),Or=vn(qn),bo=de?de.prototype:void 0,ss=bo?bo.valueOf:void 0;function dn(v){var D=-1,L=v==null?0:v.length;for(this.clear();++D<L;){var K=v[D];this.set(K[0],K[1])}}function uc(){this.__data__=wt?wt(null):{},this.size=0}function hc(v){var D=this.has(v)&&delete this.__data__[v];return this.size-=D?1:0,D}function fc(v){var D=this.__data__;if(wt){var L=D[v];return L===r?void 0:L}return je.call(D,v)?D[v]:void 0}function pc(v){var D=this.__data__;return wt?D[v]!==void 0:je.call(D,v)}function mc(v,D){var L=this.__data__;return this.size+=this.has(v)?0:1,L[v]=wt&&D===void 0?r:D,this}dn.prototype.clear=uc,dn.prototype.delete=hc,dn.prototype.get=fc,dn.prototype.has=pc,dn.prototype.set=mc;function un(v){var D=-1,L=v==null?0:v.length;for(this.clear();++D<L;){var K=v[D];this.set(K[0],K[1])}}function gc(){this.__data__=[],this.size=0}function yc(v){var D=this.__data__,L=$r(D,v);if(L<0)return!1;var K=D.length-1;return L==K?D.pop():$.call(D,L,1),--this.size,!0}function bc(v){var D=this.__data__,L=$r(D,v);return L<0?void 0:D[L][1]}function vc(v){return $r(this.__data__,v)>-1}function _c(v,D){var L=this.__data__,K=$r(L,v);return K<0?(++this.size,L.push([v,D])):L[K][1]=D,this}un.prototype.clear=gc,un.prototype.delete=yc,un.prototype.get=bc,un.prototype.has=vc,un.prototype.set=_c;function En(v){var D=-1,L=v==null?0:v.length;for(this.clear();++D<L;){var K=v[D];this.set(K[0],K[1])}}function ga(){this.size=0,this.__data__={hash:new dn,map:new($t||un),string:new dn}}function wc(v){var D=Ln(this,v).delete(v);return this.size-=D?1:0,D}function ya(v){return Ln(this,v).get(v)}function kc(v){return Ln(this,v).has(v)}function xc(v,D){var L=Ln(this,v),K=L.size;return L.set(v,D),this.size+=L.size==K?0:1,this}En.prototype.clear=ga,En.prototype.delete=wc,En.prototype.get=ya,En.prototype.has=kc,En.prototype.set=xc;function ba(v){var D=-1,L=v==null?0:v.length;for(this.__data__=new En;++D<L;)this.add(v[D])}function os(v){return this.__data__.set(v,r),this}function Vr(v){return this.__data__.has(v)}ba.prototype.add=ba.prototype.push=os,ba.prototype.has=Vr;function si(v){var D=this.__data__=new un(v);this.size=D.size}function ls(){this.__data__=new un,this.size=0}function Cc(v){var D=this.__data__,L=D.delete(v);return this.size=D.size,L}function Sc(v){return this.__data__.get(v)}function Mc(v){return this.__data__.has(v)}function vo(v,D){var L=this.__data__;if(L instanceof un){var K=L.__data__;if(!$t||K.length<n-1)return K.push([v,D]),this.size=++L.size,this;L=this.__data__=new En(K)}return L.set(v,D),this.size=L.size,this}si.prototype.clear=ls,si.prototype.delete=Cc,si.prototype.get=Sc,si.prototype.has=Mc,si.prototype.set=vo;function _o(v,D){var L=va(v),K=!L&&ds(v),Pe=!L&&!K&&_a(v),De=!L&&!K&&!Pe&&To(v),it=L||K||Pe||De,rt=it?Jt(v.length,String):[],Ke=rt.length;for(var ot in v)je.call(v,ot)&&!(it&&(ot=="length"||Pe&&(ot=="offset"||ot=="parent")||De&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||Mo(ot,Ke)))&&rt.push(ot);return rt}function $r(v,D){for(var L=v.length;L--;)if(Vo(v[L][0],D))return L;return-1}function Tr(v,D,L){var K=D(v);return va(v)?K:ht(K,L(v))}function Ir(v){return v==null?v===void 0?R:x:q&&q in Object(v)?xi(v):Oo(v)}function cs(v){return Si(v)&&Ir(v)==l}function Ar(v,D,L,K,Pe){return v===D?!0:v==null||D==null||!Si(v)&&!Si(D)?v!==v&&D!==D:wo(v,D,L,K,Ar,Pe)}function wo(v,D,L,K,Pe,De){var it=va(v),rt=va(D),Ke=it?d:Ci(v),ot=rt?d:Ci(D);Ke=Ke==l?M:Ke,ot=ot==l?M:ot;var Rt=Ke==M,_n=ot==M,Yt=Ke==ot;if(Yt&&_a(v)){if(!_a(D))return!1;it=!0,Rt=!1}if(Yt&&!Rt)return De||(De=new si),it||To(v)?Nr(v,D,L,K,Pe,De):Dc(v,D,Ke,L,K,Pe,De);if(!(L&a)){var xt=Rt&&je.call(v,"__wrapped__"),sn=_n&&je.call(D,"__wrapped__");if(xt||sn){var qi=xt?v.value():v,Mi=sn?D.value():D;return De||(De=new si),Pe(qi,Mi,L,K,De)}}return Yt?(De||(De=new si),Co(v,D,L,K,Pe,De)):!1}function Bc(v){if(!$o(v)||Do(v))return!1;var D=wa(v)?Se:$e;return D.test(vn(v))}function ko(v){return Si(v)&&hs(v.length)&&!!_e[Ir(v)]}function xo(v){if(!Eo(v))return Xe(v);var D=[];for(var L in Object(v))je.call(v,L)&&L!="constructor"&&D.push(L);return D}function Nr(v,D,L,K,Pe,De){var it=L&a,rt=v.length,Ke=D.length;if(rt!=Ke&&!(it&&Ke>rt))return!1;var ot=De.get(v);if(ot&&De.get(D))return ot==D;var Rt=-1,_n=!0,Yt=L&s?new ba:void 0;for(De.set(v,D),De.set(D,v);++Rt<rt;){var xt=v[Rt],sn=D[Rt];if(K)var qi=it?K(sn,xt,Rt,D,v,De):K(xt,sn,Rt,v,D,De);if(qi!==void 0){if(qi)continue;_n=!1;break}if(Yt){if(!_t(D,function(Mi,lr){if(!mt(Yt,lr)&&(xt===Mi||Pe(xt,Mi,L,K,De)))return Yt.push(lr)})){_n=!1;break}}else if(!(xt===sn||Pe(xt,sn,L,K,De))){_n=!1;break}}return De.delete(v),De.delete(D),_n}function Dc(v,D,L,K,Pe,De,it){switch(L){case G:if(v.byteLength!=D.byteLength||v.byteOffset!=D.byteOffset)return!1;v=v.buffer,D=D.buffer;case ie:return!(v.byteLength!=D.byteLength||!De(new we(v),new we(D)));case f:case m:case k:return Vo(+v,+D);case g:return v.name==D.name&&v.message==D.message;case V:case N:return v==D+"";case w:var rt=At;case T:var Ke=K&a;if(rt||(rt=Ot),v.size!=D.size&&!Ke)return!1;var ot=it.get(v);if(ot)return ot==D;K|=s,it.set(v,D);var Rt=Nr(rt(v),rt(D),K,Pe,De,it);return it.delete(v),Rt;case A:if(ss)return ss.call(v)==ss.call(D)}return!1}function Co(v,D,L,K,Pe,De){var it=L&a,rt=ji(v),Ke=rt.length,ot=ji(D),Rt=ot.length;if(Ke!=Rt&&!it)return!1;for(var _n=Ke;_n--;){var Yt=rt[_n];if(!(it?Yt in D:je.call(D,Yt)))return!1}var xt=De.get(v);if(xt&&De.get(D))return xt==D;var sn=!0;De.set(v,D),De.set(D,v);for(var qi=it;++_n<Ke;){Yt=rt[_n];var Mi=v[Yt],lr=D[Yt];if(K)var Oc=it?K(lr,Mi,Yt,D,v,De):K(Mi,lr,Yt,v,D,De);if(!(Oc===void 0?Mi===lr||Pe(Mi,lr,L,K,De):Oc)){sn=!1;break}qi||(qi=Yt=="constructor")}if(sn&&!qi){var ps=v.constructor,mn=D.constructor;ps!=mn&&"constructor"in v&&"constructor"in D&&!(typeof ps=="function"&&ps instanceof ps&&typeof mn=="function"&&mn instanceof mn)&&(sn=!1)}return De.delete(v),De.delete(D),sn}function ji(v){return Tr(v,fs,So)}function Ln(v,D){var L=v.__data__;return Bo(D)?L[typeof D=="string"?"string":"hash"]:L.map}function On(v,D){var L=st(v,D);return Bc(L)?L:void 0}function xi(v){var D=je.call(v,q),L=v[q];try{v[q]=void 0;var K=!0}catch{}var Pe=Oe.call(v);return K&&(D?v[q]=L:delete v[q]),Pe}var So=ce?function(v){return v==null?[]:(v=Object(v),vt(ce(v),function(D){return j.call(v,D)}))}:kt,Ci=Ir;(ft&&Ci(new ft(new ArrayBuffer(1)))!=G||$t&&Ci(new $t)!=w||cn&&Ci(cn.resolve())!=O||en&&Ci(new en)!=T||qn&&Ci(new qn)!=W)&&(Ci=function(v){var D=Ir(v),L=D==M?v.constructor:void 0,K=L?vn(L):"";if(K)switch(K){case Nn:return G;case Dn:return w;case ai:return O;case Ui:return T;case Or:return W}return D});function Mo(v,D){return D=D??o,!!D&&(typeof v=="number"||Ve.test(v))&&v>-1&&v%1==0&&v<D}function Bo(v){var D=typeof v;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?v!=="__proto__":v===null}function Do(v){return!!se&&se in v}function Eo(v){var D=v&&v.constructor,L=typeof D=="function"&&D.prototype||Vt;return v===L}function Oo(v){return Oe.call(v)}function vn(v){if(v!=null){try{return ze.call(v)}catch{}try{return v+""}catch{}}return""}function Vo(v,D){return v===D||v!==v&&D!==D}var ds=cs(function(){return arguments}())?cs:function(v){return Si(v)&&je.call(v,"callee")&&!j.call(v,"callee")},va=Array.isArray;function us(v){return v!=null&&hs(v.length)&&!wa(v)}var _a=Be||gt;function Ec(v,D){return Ar(v,D)}function wa(v){if(!$o(v))return!1;var D=Ir(v);return D==y||D==_||D==h||D==S}function hs(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function $o(v){var D=typeof v;return v!=null&&(D=="object"||D=="function")}function Si(v){return v!=null&&typeof v=="object"}var To=dt?Qt(dt):ko;function fs(v){return us(v)?_o(v):xo(v)}function kt(){return[]}function gt(){return!1}t.exports=Ec}(hu,hu.exports);var W$=hu.exports;const Qs=Wh(W$),Y$={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>ln(n.title)||ln(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Fi.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Fi}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Xs,getSlotName(t){return t.name},handleClick(t,e){this.$emit("tab-click",{event:t,item:e}),!this.internalActiveTab.disableTabChange&&(this.$emit("change",{event:t,item:e}),this.internalActiveTab=e)},isActive(t){return Qs(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},U$={id:"inner-tabs"},j$={class:"inner-tabs__header-container"},q$={class:"inner-tabs__header"},G$=["onClick"],K$={class:"inner-tabs__content"};function Z$(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",U$,[i.createElementVNode("div",j$,[i.createElementVNode("ul",q$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:`${l}-${o.name}-tab`,role:"presentation"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",s.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>s.handleClick(d,o)},i.toDisplayString(o.title),11,G$),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(o)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)]))),128))])]),i.createElementVNode("div",K$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("div",{key:`${l}-${o.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",s.isActive(o)?"content__pane--active":"content__pane--inactive"])},[i.renderSlot(t.$slots,s.getSlotName(o))],2))),128))])])}const X$=Q(Y$,[["render",Z$]]),J$={key:0,class:"landscape-overlay"},Q$={class:"landscape-overlay__container"},eT=["src"],tT={class:"landscape-overlay__title"},nT={class:"landscape-overlay__subtitle"},iT={key:0,class:"landscape-overlay__button"},rT=Q({__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:t=>["mobile","landscape"].includes(t.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:t=>Fi.includes(t.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(!1),s=i.ref(""),o=i.ref(""),l=i.ref(""),d=i.computed(()=>Xa("smartphone")||Xa("tablet")),h=i.computed(()=>window.outerWidth>window.outerHeight&&d.value);return i.watch(a,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),i.watchEffect(()=>{!d.value&&!h.value&&(a.value=!1)}),i.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(a.value=!0,n.title===""?s.value="Acesse o conteúdo por um computador":s.value=n.title,n.description===""?o.value="Esta tela não é otimizada para navegação em celular.":o.value=n.description,l.value="/img/page-not-responsive.svg");return}n.blockInteraction==="landscape"&&h.value&&(a.value=!0,n.title===""?s.value="Rotacione seu dispositivo":s.value=n.title,n.description===""?o.value="Este conteúdo é otimizado para a visualização em modo retrato.":o.value=n.description,l.value="/img/smartphone-rotation.svg")}),(f,m)=>a.value?(i.openBlock(),i.createElementBlock("div",J$,[i.createElementVNode("div",Q$,[i.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,eT),i.createElementVNode("span",tT,i.toDisplayString(s.value),1),i.createElementVNode("span",nT,i.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(i.openBlock(),i.createElementBlock("div",iT,[i.createVNode(ei,{variant:t.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=g=>r("button-click"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.buttonText),1)]),_:1},8,["variant"])])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)}},[["__scopeId","data-v-a0718af5"]]);var aT=Object.defineProperty,sT=(t,e,n)=>e in t?aT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e,n)=>(sT(t,typeof e!="symbol"?e+"":e,n),n),fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oT=Object.prototype,lT=oT.hasOwnProperty;function cT(t,e){return t!=null&&lT.call(t,e)}var dT=cT,uT=Array.isArray,Hi=uT,hT=typeof fu=="object"&&fu&&fu.Object===Object&&fu,k4=hT,fT=k4,pT=typeof self=="object"&&self&&self.Object===Object&&self,mT=fT||pT||Function("return this")(),rr=mT,gT=rr,yT=gT.Symbol,pu=yT,x4=pu,C4=Object.prototype,bT=C4.hasOwnProperty,vT=C4.toString,tc=x4?x4.toStringTag:void 0;function _T(t){var e=bT.call(t,tc),n=t[tc];try{t[tc]=void 0;var r=!0}catch{}var a=vT.call(t);return r&&(e?t[tc]=n:delete t[tc]),a}var wT=_T,kT=Object.prototype,xT=kT.toString;function CT(t){return xT.call(t)}var ST=CT,S4=pu,MT=wT,BT=ST,DT="[object Null]",ET="[object Undefined]",M4=S4?S4.toStringTag:void 0;function OT(t){return t==null?t===void 0?ET:DT:M4&&M4 in Object(t)?MT(t):BT(t)}var ar=OT;function VT(t){return t!=null&&typeof t=="object"}var Wi=VT,$T=ar,TT=Wi,IT="[object Symbol]";function AT(t){return typeof t=="symbol"||TT(t)&&$T(t)==IT}var Of=AT,NT=Hi,LT=Of,zT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PT=/^\w*$/;function RT(t,e){if(NT(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||LT(t)?!0:PT.test(t)||!zT.test(t)||e!=null&&t in Object(e)}var Vf=RT;function FT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Cr=FT,HT=ar,WT=Cr,YT="[object AsyncFunction]",UT="[object Function]",jT="[object GeneratorFunction]",qT="[object Proxy]";function GT(t){if(!WT(t))return!1;var e=HT(t);return e==UT||e==jT||e==YT||e==qT}var Qa=GT,KT=rr,ZT=KT["__core-js_shared__"],XT=ZT,$f=XT,B4=function(){var t=/[^.]+$/.exec($f&&$f.keys&&$f.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function JT(t){return!!B4&&B4 in t}var QT=JT,eI=Function.prototype,tI=eI.toString;function nI(t){if(t!=null){try{return tI.call(t)}catch{}try{return t+""}catch{}}return""}var D4=nI,iI=Qa,rI=QT,aI=Cr,sI=D4,oI=/[\\^$.*+?()[\]{}|]/g,lI=/^\[object .+?Constructor\]$/,cI=Function.prototype,dI=Object.prototype,uI=cI.toString,hI=dI.hasOwnProperty,fI=RegExp("^"+uI.call(hI).replace(oI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pI(t){if(!aI(t)||rI(t))return!1;var e=iI(t)?fI:lI;return e.test(sI(t))}var mI=pI;function gI(t,e){return t==null?void 0:t[e]}var yI=gI,bI=mI,vI=yI;function _I(t,e){var n=vI(t,e);return bI(n)?n:void 0}var es=_I,wI=es,kI=wI(Object,"create"),mu=kI,E4=mu;function xI(){this.__data__=E4?E4(null):{},this.size=0}var CI=xI;function SI(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var MI=SI,BI=mu,DI="__lodash_hash_undefined__",EI=Object.prototype,OI=EI.hasOwnProperty;function VI(t){var e=this.__data__;if(BI){var n=e[t];return n===DI?void 0:n}return OI.call(e,t)?e[t]:void 0}var $I=VI,TI=mu,II=Object.prototype,AI=II.hasOwnProperty;function NI(t){var e=this.__data__;return TI?e[t]!==void 0:AI.call(e,t)}var LI=NI,zI=mu,PI="__lodash_hash_undefined__";function RI(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=zI&&e===void 0?PI:e,this}var FI=RI,HI=CI,WI=MI,YI=$I,UI=LI,jI=FI;function eo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=HI,eo.prototype.delete=WI,eo.prototype.get=YI,eo.prototype.has=UI,eo.prototype.set=jI;var qI=eo;function GI(){this.__data__=[],this.size=0}var KI=GI;function ZI(t,e){return t===e||t!==t&&e!==e}var to=ZI,XI=to;function JI(t,e){for(var n=t.length;n--;)if(XI(t[n][0],e))return n;return-1}var gu=JI,QI=gu,eA=Array.prototype,tA=eA.splice;function nA(t){var e=this.__data__,n=QI(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():tA.call(e,n,1),--this.size,!0}var iA=nA,rA=gu;function aA(t){var e=this.__data__,n=rA(e,t);return n<0?void 0:e[n][1]}var sA=aA,oA=gu;function lA(t){return oA(this.__data__,t)>-1}var cA=lA,dA=gu;function uA(t,e){var n=this.__data__,r=dA(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var hA=uA,fA=KI,pA=iA,mA=sA,gA=cA,yA=hA;function no(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}no.prototype.clear=fA,no.prototype.delete=pA,no.prototype.get=mA,no.prototype.has=gA,no.prototype.set=yA;var yu=no,bA=es,vA=rr,_A=bA(vA,"Map"),Tf=_A,O4=qI,wA=yu,kA=Tf;function xA(){this.size=0,this.__data__={hash:new O4,map:new(kA||wA),string:new O4}}var CA=xA;function SA(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var MA=SA,BA=MA;function DA(t,e){var n=t.__data__;return BA(e)?n[typeof e=="string"?"string":"hash"]:n.map}var bu=DA,EA=bu;function OA(t){var e=EA(this,t).delete(t);return this.size-=e?1:0,e}var VA=OA,$A=bu;function TA(t){return $A(this,t).get(t)}var IA=TA,AA=bu;function NA(t){return AA(this,t).has(t)}var LA=NA,zA=bu;function PA(t,e){var n=zA(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var RA=PA,FA=CA,HA=VA,WA=IA,YA=LA,UA=RA;function io(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}io.prototype.clear=FA,io.prototype.delete=HA,io.prototype.get=WA,io.prototype.has=YA,io.prototype.set=UA;var If=io,V4=If,jA="Expected a function";function Af(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(jA);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var o=t.apply(this,r);return n.cache=s.set(a,o)||s,o};return n.cache=new(Af.Cache||V4),n}Af.Cache=V4;var qA=Af,GA=qA,KA=500;function ZA(t){var e=GA(t,function(r){return n.size===KA&&n.clear(),r}),n=e.cache;return e}var XA=ZA,JA=XA,QA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eN=/\\(\\)?/g,tN=JA(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(QA,function(n,r,a,s){e.push(a?s.replace(eN,"$1"):r||n)}),e}),nN=tN;function iN(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var rN=iN,$4=pu,aN=rN,sN=Hi,oN=Of,T4=$4?$4.prototype:void 0,I4=T4?T4.toString:void 0;function A4(t){if(typeof t=="string")return t;if(sN(t))return aN(t,A4)+"";if(oN(t))return I4?I4.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var lN=A4,cN=lN;function dN(t){return t==null?"":cN(t)}var uN=dN,hN=Hi,fN=Vf,pN=nN,mN=uN;function gN(t,e){return hN(t)?t:fN(t,e)?[t]:pN(mN(t))}var N4=gN,yN=ar,bN=Wi,vN="[object Arguments]";function _N(t){return bN(t)&&yN(t)==vN}var wN=_N,L4=wN,kN=Wi,z4=Object.prototype,xN=z4.hasOwnProperty,CN=z4.propertyIsEnumerable,SN=L4(function(){return arguments}())?L4:function(t){return kN(t)&&xN.call(t,"callee")&&!CN.call(t,"callee")},Nf=SN,MN=9007199254740991,BN=/^(?:0|[1-9]\d*)$/;function DN(t,e){var n=typeof t;return e=e??MN,!!e&&(n=="number"||n!="symbol"&&BN.test(t))&&t>-1&&t%1==0&&t<e}var Lf=DN,EN=9007199254740991;function ON(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=EN}var zf=ON,VN=Of;function $N(t){if(typeof t=="string"||VN(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var vu=$N,TN=N4,IN=Nf,AN=Hi,NN=Lf,LN=zf,zN=vu;function PN(t,e,n){e=TN(e,t);for(var r=-1,a=e.length,s=!1;++r<a;){var o=zN(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=a?s:(a=t==null?0:t.length,!!a&&LN(a)&&NN(o,a)&&(AN(t)||IN(t)))}var P4=PN,RN=dT,FN=P4;function HN(t,e){return t!=null&&FN(t,e,RN)}var R4=HN,WN=ar,YN=Wi,UN="[object Date]";function jN(t){return YN(t)&&WN(t)==UN}var qN=jN;function GN(t){return function(e){return t(e)}}var F4=GN,nc={},KN={get exports(){return nc},set exports(t){nc=t}};(function(t,e){var n=k4,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===r,o=s&&n.process,l=function(){try{var d=a&&a.require&&a.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();t.exports=l})(KN,nc);var ZN=qN,XN=F4,H4=nc,W4=H4&&H4.isDate,JN=W4?XN(W4):ZN,QN=JN,eL=ar,tL=Hi,nL=Wi,iL="[object String]";function rL(t){return typeof t=="string"||!tL(t)&&nL(t)&&eL(t)==iL}var sr=rL;function aL(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Y4=aL,sL=yu;function oL(){this.__data__=new sL,this.size=0}var lL=oL;function cL(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var dL=cL;function uL(t){return this.__data__.get(t)}var hL=uL;function fL(t){return this.__data__.has(t)}var pL=fL,mL=yu,gL=Tf,yL=If,bL=200;function vL(t,e){var n=this.__data__;if(n instanceof mL){var r=n.__data__;if(!gL||r.length<bL-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yL(r)}return n.set(t,e),this.size=n.size,this}var _L=vL,wL=yu,kL=lL,xL=dL,CL=hL,SL=pL,ML=_L;function ro(t){var e=this.__data__=new wL(t);this.size=e.size}ro.prototype.clear=kL,ro.prototype.delete=xL,ro.prototype.get=CL,ro.prototype.has=SL,ro.prototype.set=ML;var Pf=ro,BL="__lodash_hash_undefined__";function DL(t){return this.__data__.set(t,BL),this}var EL=DL;function OL(t){return this.__data__.has(t)}var VL=OL,$L=If,TL=EL,IL=VL;function _u(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new $L;++e<n;)this.add(t[e])}_u.prototype.add=_u.prototype.push=TL,_u.prototype.has=IL;var AL=_u;function NL(t,e){return t.has(e)}var LL=NL,zL=AL,PL=Y4,RL=LL,FL=1,HL=2;function WL(t,e,n,r,a,s){var o=n&FL,l=t.length,d=e.length;if(l!=d&&!(o&&d>l))return!1;var h=s.get(t),f=s.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,y=n&HL?new zL:void 0;for(s.set(t,e),s.set(e,t);++m<l;){var _=t[m],w=e[m];if(r)var k=o?r(w,_,m,e,t,s):r(_,w,m,t,e,s);if(k!==void 0){if(k)continue;g=!1;break}if(y){if(!PL(e,function(x,M){if(!RL(y,M)&&(_===x||a(_,x,n,r,s)))return y.push(M)})){g=!1;break}}else if(!(_===w||a(_,w,n,r,s))){g=!1;break}}return s.delete(t),s.delete(e),g}var U4=WL,YL=rr,UL=YL.Uint8Array,j4=UL;function jL(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}var qL=jL;function GL(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var KL=GL,q4=pu,G4=j4,ZL=to,XL=U4,JL=qL,QL=KL,ez=1,tz=2,nz="[object Boolean]",iz="[object Date]",rz="[object Error]",az="[object Map]",sz="[object Number]",oz="[object RegExp]",lz="[object Set]",cz="[object String]",dz="[object Symbol]",uz="[object ArrayBuffer]",hz="[object DataView]",K4=q4?q4.prototype:void 0,Rf=K4?K4.valueOf:void 0;function fz(t,e,n,r,a,s,o){switch(n){case hz:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case uz:return!(t.byteLength!=e.byteLength||!s(new G4(t),new G4(e)));case nz:case iz:case sz:return ZL(+t,+e);case rz:return t.name==e.name&&t.message==e.message;case oz:case cz:return t==e+"";case az:var l=JL;case lz:var d=r&ez;if(l||(l=QL),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;r|=tz,o.set(t,e);var f=XL(l(t),l(e),r,a,s,o);return o.delete(t),f;case dz:if(Rf)return Rf.call(t)==Rf.call(e)}return!1}var pz=fz;function mz(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var gz=mz,yz=gz,bz=Hi;function vz(t,e,n){var r=e(t);return bz(t)?r:yz(r,n(t))}var _z=vz;function wz(t,e){for(var n=-1,r=t==null?0:t.length,a=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[a++]=o)}return s}var kz=wz;function xz(){return[]}var Cz=xz,Sz=kz,Mz=Cz,Bz=Object.prototype,Dz=Bz.propertyIsEnumerable,Z4=Object.getOwnPropertySymbols,Ez=Z4?function(t){return t==null?[]:(t=Object(t),Sz(Z4(t),function(e){return Dz.call(t,e)}))}:Mz,Oz=Ez;function Vz(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var $z=Vz,ao={},Tz={get exports(){return ao},set exports(t){ao=t}};function Iz(){return!1}var Az=Iz;(function(t,e){var n=rr,r=Az,a=e&&!e.nodeType&&e,s=a&&!0&&t&&!t.nodeType&&t,o=s&&s.exports===a,l=o?n.Buffer:void 0,d=l?l.isBuffer:void 0,h=d||r;t.exports=h})(Tz,ao);var Nz=ar,Lz=zf,zz=Wi,Pz="[object Arguments]",Rz="[object Array]",Fz="[object Boolean]",Hz="[object Date]",Wz="[object Error]",Yz="[object Function]",Uz="[object Map]",jz="[object Number]",qz="[object Object]",Gz="[object RegExp]",Kz="[object Set]",Zz="[object String]",Xz="[object WeakMap]",Jz="[object ArrayBuffer]",Qz="[object DataView]",eP="[object Float32Array]",tP="[object Float64Array]",nP="[object Int8Array]",iP="[object Int16Array]",rP="[object Int32Array]",aP="[object Uint8Array]",sP="[object Uint8ClampedArray]",oP="[object Uint16Array]",lP="[object Uint32Array]",zt={};zt[eP]=zt[tP]=zt[nP]=zt[iP]=zt[rP]=zt[aP]=zt[sP]=zt[oP]=zt[lP]=!0,zt[Pz]=zt[Rz]=zt[Jz]=zt[Fz]=zt[Qz]=zt[Hz]=zt[Wz]=zt[Yz]=zt[Uz]=zt[jz]=zt[qz]=zt[Gz]=zt[Kz]=zt[Zz]=zt[Xz]=!1;function cP(t){return zz(t)&&Lz(t.length)&&!!zt[Nz(t)]}var dP=cP,uP=dP,hP=F4,X4=nc,J4=X4&&X4.isTypedArray,fP=J4?hP(J4):uP,Ff=fP,pP=$z,mP=Nf,gP=Hi,yP=ao,bP=Lf,vP=Ff,_P=Object.prototype,wP=_P.hasOwnProperty;function kP(t,e){var n=gP(t),r=!n&&mP(t),a=!n&&!r&&yP(t),s=!n&&!r&&!a&&vP(t),o=n||r||a||s,l=o?pP(t.length,String):[],d=l.length;for(var h in t)(e||wP.call(t,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||bP(h,d)))&&l.push(h);return l}var Q4=kP,xP=Object.prototype;function CP(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||xP;return t===n}var Hf=CP;function SP(t,e){return function(n){return t(e(n))}}var eb=SP,MP=eb,BP=MP(Object.keys,Object),DP=BP,EP=Hf,OP=DP,VP=Object.prototype,$P=VP.hasOwnProperty;function TP(t){if(!EP(t))return OP(t);var e=[];for(var n in Object(t))$P.call(t,n)&&n!="constructor"&&e.push(n);return e}var IP=TP,AP=Qa,NP=zf;function LP(t){return t!=null&&NP(t.length)&&!AP(t)}var ic=LP,zP=Q4,PP=IP,RP=ic;function FP(t){return RP(t)?zP(t):PP(t)}var Wf=FP,HP=_z,WP=Oz,YP=Wf;function UP(t){return HP(t,YP,WP)}var jP=UP,tb=jP,qP=1,GP=Object.prototype,KP=GP.hasOwnProperty;function ZP(t,e,n,r,a,s){var o=n&qP,l=tb(t),d=l.length,h=tb(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=l[m];if(!(o?g in e:KP.call(e,g)))return!1}var y=s.get(t),_=s.get(e);if(y&&_)return y==e&&_==t;var w=!0;s.set(t,e),s.set(e,t);for(var k=o;++m<d;){g=l[m];var x=t[g],M=e[g];if(r)var O=o?r(M,x,g,e,t,s):r(x,M,g,t,e,s);if(!(O===void 0?x===M||a(x,M,n,r,s):O)){w=!1;break}k||(k=g=="constructor")}if(w&&!k){var S=t.constructor,V=e.constructor;S!=V&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof V=="function"&&V instanceof V)&&(w=!1)}return s.delete(t),s.delete(e),w}var XP=ZP,JP=es,QP=rr,eR=JP(QP,"DataView"),tR=eR,nR=es,iR=rr,rR=nR(iR,"Promise"),aR=rR,sR=es,oR=rr,lR=sR(oR,"Set"),cR=lR,dR=es,uR=rr,hR=dR(uR,"WeakMap"),fR=hR,Yf=tR,Uf=Tf,jf=aR,qf=cR,Gf=fR,nb=ar,so=D4,ib="[object Map]",pR="[object Object]",rb="[object Promise]",ab="[object Set]",sb="[object WeakMap]",ob="[object DataView]",mR=so(Yf),gR=so(Uf),yR=so(jf),bR=so(qf),vR=so(Gf),ts=nb;(Yf&&ts(new Yf(new ArrayBuffer(1)))!=ob||Uf&&ts(new Uf)!=ib||jf&&ts(jf.resolve())!=rb||qf&&ts(new qf)!=ab||Gf&&ts(new Gf)!=sb)&&(ts=function(t){var e=nb(t),n=e==pR?t.constructor:void 0,r=n?so(n):"";if(r)switch(r){case mR:return ob;case gR:return ib;case yR:return rb;case bR:return ab;case vR:return sb}return e});var _R=ts,Kf=Pf,wR=U4,kR=pz,xR=XP,lb=_R,cb=Hi,db=ao,CR=Ff,SR=1,ub="[object Arguments]",hb="[object Array]",wu="[object Object]",MR=Object.prototype,fb=MR.hasOwnProperty;function BR(t,e,n,r,a,s){var o=cb(t),l=cb(e),d=o?hb:lb(t),h=l?hb:lb(e);d=d==ub?wu:d,h=h==ub?wu:h;var f=d==wu,m=h==wu,g=d==h;if(g&&db(t)){if(!db(e))return!1;o=!0,f=!1}if(g&&!f)return s||(s=new Kf),o||CR(t)?wR(t,e,n,r,a,s):kR(t,e,d,n,r,a,s);if(!(n&SR)){var y=f&&fb.call(t,"__wrapped__"),_=m&&fb.call(e,"__wrapped__");if(y||_){var w=y?t.value():t,k=_?e.value():e;return s||(s=new Kf),a(w,k,n,r,s)}}return g?(s||(s=new Kf),xR(t,e,n,r,a,s)):!1}var DR=BR,ER=DR,pb=Wi;function mb(t,e,n,r,a){return t===e?!0:t==null||e==null||!pb(t)&&!pb(e)?t!==t&&e!==e:ER(t,e,n,r,mb,a)}var gb=mb,OR=Pf,VR=gb,$R=1,TR=2;function IR(t,e,n,r){var a=n.length,s=a,o=!r;if(t==null)return!s;for(t=Object(t);a--;){var l=n[a];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<s;){l=n[a];var d=l[0],h=t[d],f=l[1];if(o&&l[2]){if(h===void 0&&!(d in t))return!1}else{var m=new OR;if(r)var g=r(h,f,d,t,e,m);if(!(g===void 0?VR(f,h,$R|TR,r,m):g))return!1}}return!0}var AR=IR,NR=Cr;function LR(t){return t===t&&!NR(t)}var yb=LR,zR=yb,PR=Wf;function RR(t){for(var e=PR(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,zR(a)]}return e}var FR=RR;function HR(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var bb=HR,WR=AR,YR=FR,UR=bb;function jR(t){var e=YR(t);return e.length==1&&e[0][2]?UR(e[0][0],e[0][1]):function(n){return n===t||WR(n,t,e)}}var qR=jR,GR=N4,KR=vu;function ZR(t,e){e=GR(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[KR(e[n++])];return n&&n==r?t:void 0}var vb=ZR,XR=vb;function JR(t,e,n){var r=t==null?void 0:XR(t,e);return r===void 0?n:r}var ns=JR;function QR(t,e){return t!=null&&e in Object(t)}var eF=QR,tF=eF,nF=P4;function iF(t,e){return t!=null&&nF(t,e,tF)}var rF=iF,aF=gb,sF=ns,oF=rF,lF=Vf,cF=yb,dF=bb,uF=vu,hF=1,fF=2;function pF(t,e){return lF(t)&&cF(e)?dF(uF(t),e):function(n){var r=sF(n,t);return r===void 0&&r===e?oF(n,t):aF(e,r,hF|fF)}}var mF=pF;function gF(t){return t}var Zf=gF;function yF(t){return function(e){return e==null?void 0:e[t]}}var bF=yF,vF=vb;function _F(t){return function(e){return vF(e,t)}}var wF=_F,kF=bF,xF=wF,CF=Vf,SF=vu;function MF(t){return CF(t)?kF(SF(t)):xF(t)}var BF=MF,DF=qR,EF=mF,OF=Zf,VF=Hi,$F=BF;function TF(t){return typeof t=="function"?t:t==null?OF:typeof t=="object"?VF(t)?EF(t[0],t[1]):DF(t):$F(t)}var _b=TF;function IF(t){return function(e,n,r){for(var a=-1,s=Object(e),o=r(e),l=o.length;l--;){var d=o[t?l:++a];if(n(s[d],d,s)===!1)break}return e}}var AF=IF,NF=AF,LF=NF(),wb=LF,zF=wb,PF=Wf;function RF(t,e){return t&&zF(t,e,PF)}var kb=RF,FF=ic;function HF(t,e){return function(n,r){if(n==null)return n;if(!FF(n))return t(n,r);for(var a=n.length,s=e?a:-1,o=Object(n);(e?s--:++s<a)&&r(o[s],s,o)!==!1;);return n}}var WF=HF,YF=kb,UF=WF,jF=UF(YF),qF=jF,GF=qF;function KF(t,e){var n;return GF(t,function(r,a,s){return n=e(r,a,s),!n}),!!n}var ZF=KF,XF=to,JF=ic,QF=Lf,eH=Cr;function tH(t,e,n){if(!eH(n))return!1;var r=typeof e;return(r=="number"?JF(n)&&QF(e,n.length):r=="string"&&e in n)?XF(n[e],t):!1}var Xf=tH,nH=Y4,iH=_b,rH=ZF,aH=Hi,sH=Xf;function oH(t,e,n){var r=aH(t)?nH:rH;return n&&sH(t,e,n)&&(e=void 0),r(t,iH(e))}var lH=oH,cH=ar,dH=Wi,uH="[object Boolean]";function hH(t){return t===!0||t===!1||dH(t)&&cH(t)==uH}var fH=hH,pH=ar,mH=Wi,gH="[object Number]";function yH(t){return typeof t=="number"||mH(t)&&pH(t)==gH}var Yi=yH,bH=es,vH=function(){try{var t=bH(Object,"defineProperty");return t({},"",{}),t}catch{}}(),xb=vH,Cb=xb;function _H(t,e,n){e=="__proto__"&&Cb?Cb(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var ku=_H,wH=ku,kH=to,xH=Object.prototype,CH=xH.hasOwnProperty;function SH(t,e,n){var r=t[e];(!(CH.call(t,e)&&kH(r,n))||n===void 0&&!(e in t))&&wH(t,e,n)}var MH=SH,BH=ku,DH=kb,EH=_b;function OH(t,e){var n={};return e=EH(e),DH(t,function(r,a,s){BH(n,a,e(r,a,s))}),n}var VH=OH;function $H(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Sb=$H,TH=Sb,Mb=Math.max;function IH(t,e,n){return e=Mb(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=Mb(r.length-e,0),o=Array(s);++a<s;)o[a]=r[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=r[a];return l[e]=n(o),TH(t,this,l)}}var AH=IH;function NH(t){return function(){return t}}var LH=NH,zH=LH,Bb=xb,PH=Zf,RH=Bb?function(t,e){return Bb(t,"toString",{configurable:!0,enumerable:!1,value:zH(e),writable:!0})}:PH,FH=RH,HH=800,WH=16,YH=Date.now;function UH(t){var e=0,n=0;return function(){var r=YH(),a=WH-(r-n);if(n=r,a>0){if(++e>=HH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var jH=UH,qH=FH,GH=jH,KH=GH(qH),ZH=KH,XH=Zf,JH=AH,QH=ZH;function eW(t,e){return QH(JH(t,e,XH),t+"")}var Jf=eW;function tW(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var nW=tW,iW=Cr,rW=Hf,aW=nW,sW=Object.prototype,oW=sW.hasOwnProperty;function lW(t){if(!iW(t))return aW(t);var e=rW(t),n=[];for(var r in t)r=="constructor"&&(e||!oW.call(t,r))||n.push(r);return n}var cW=lW,dW=Q4,uW=cW,hW=ic;function fW(t){return hW(t)?dW(t,!0):uW(t)}var Qf=fW,pW=Jf,mW=to,gW=Xf,yW=Qf,Db=Object.prototype,bW=Db.hasOwnProperty,vW=pW(function(t,e){t=Object(t);var n=-1,r=e.length,a=r>2?e[2]:void 0;for(a&&gW(e[0],e[1],a)&&(r=1);++n<r;)for(var s=e[n],o=yW(s),l=-1,d=o.length;++l<d;){var h=o[l],f=t[h];(f===void 0||mW(f,Db[h])&&!bW.call(t,h))&&(t[h]=s[h])}return t}),Eb=vW,_W=ku,wW=to;function kW(t,e,n){(n!==void 0&&!wW(t[e],n)||n===void 0&&!(e in t))&&_W(t,e,n)}var Ob=kW,xu={},xW={get exports(){return xu},set exports(t){xu=t}};(function(t,e){var n=rr,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===r,o=s?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=l?l(m):new h.constructor(m);return h.copy(g),g}t.exports=d})(xW,xu);var Vb=j4;function CW(t){var e=new t.constructor(t.byteLength);return new Vb(e).set(new Vb(t)),e}var SW=CW,MW=SW;function BW(t,e){var n=e?MW(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var DW=BW;function EW(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var OW=EW,VW=Cr,$b=Object.create,$W=function(){function t(){}return function(e){if(!VW(e))return{};if($b)return $b(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),TW=$W,IW=eb,AW=IW(Object.getPrototypeOf,Object),Tb=AW,NW=TW,LW=Tb,zW=Hf;function PW(t){return typeof t.constructor=="function"&&!zW(t)?NW(LW(t)):{}}var RW=PW,FW=ic,HW=Wi;function WW(t){return HW(t)&&FW(t)}var YW=WW,UW=ar,jW=Tb,qW=Wi,GW="[object Object]",KW=Function.prototype,ZW=Object.prototype,Ib=KW.toString,XW=ZW.hasOwnProperty,JW=Ib.call(Object);function QW(t){if(!qW(t)||UW(t)!=GW)return!1;var e=jW(t);if(e===null)return!0;var n=XW.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Ib.call(n)==JW}var eY=QW;function tY(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Ab=tY,nY=MH,iY=ku;function rY(t,e,n,r){var a=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var l=e[s],d=r?r(n[l],t[l],l,n,t):void 0;d===void 0&&(d=t[l]),a?iY(n,l,d):nY(n,l,d)}return n}var aY=rY,sY=aY,oY=Qf;function lY(t){return sY(t,oY(t))}var cY=lY,Nb=Ob,dY=xu,uY=DW,hY=OW,fY=RW,Lb=Nf,zb=Hi,pY=YW,mY=ao,gY=Qa,yY=Cr,bY=eY,vY=Ff,Pb=Ab,_Y=cY;function wY(t,e,n,r,a,s,o){var l=Pb(t,n),d=Pb(e,n),h=o.get(d);if(h){Nb(t,n,h);return}var f=s?s(l,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=zb(d),y=!g&&mY(d),_=!g&&!y&&vY(d);f=d,g||y||_?zb(l)?f=l:pY(l)?f=hY(l):y?(m=!1,f=dY(d,!0)):_?(m=!1,f=uY(d,!0)):f=[]:bY(d)||Lb(d)?(f=l,Lb(l)?f=_Y(l):(!yY(l)||gY(l))&&(f=fY(d))):m=!1}m&&(o.set(d,f),a(f,d,r,s,o),o.delete(d)),Nb(t,n,f)}var kY=wY,xY=Pf,CY=Ob,SY=wb,MY=kY,BY=Cr,DY=Qf,EY=Ab;function Rb(t,e,n,r,a){t!==e&&SY(e,function(s,o){if(a||(a=new xY),BY(s))MY(t,e,o,n,Rb,r,a);else{var l=r?r(EY(t,o),s,o+"",t,e,a):void 0;l===void 0&&(l=s),CY(t,o,l)}},DY)}var Fb=Rb,OY=Fb,Hb=Cr;function Wb(t,e,n,r,a,s){return Hb(t)&&Hb(e)&&(s.set(e,t),OY(t,e,void 0,Wb,s),s.delete(e)),t}var VY=Wb,$Y=Jf,TY=Xf;function IY(t){return $Y(function(e,n){var r=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(a--,s):void 0,o&&TY(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),e=Object(e);++r<a;){var l=n[r];l&&t(e,l,r,s)}return e})}var AY=IY,NY=Fb,LY=AY,zY=LY(function(t,e,n,r){NY(t,e,n,r)}),PY=zY,RY=Sb,FY=Jf,HY=VY,WY=PY,YY=FY(function(t){return t.push(void 0,HY),RY(WY,void 0,t)}),rc=YY;function UY(t){return t&&t.length?t[0]:void 0}var Yb=UY;function jY(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var oo=jY;const qY=t=>Object.prototype.toString.call(t).slice(8,-1),lo=t=>QN(t)&&!isNaN(t.getTime()),Sr=t=>qY(t)==="Object",Ub=R4,jb=(t,e)=>lH(e,n=>R4(t,n)),St=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},wi=t=>Array.isArray(t),Mr=t=>wi(t)&&t.length>0,Cu=t=>t==null?null:document&&sr(t)?document.querySelector(t):t.$el??t,da=(t,e,n,r=void 0)=>{t.removeEventListener(e,n,r)},ua=(t,e,n,r=void 0)=>(t.addEventListener(e,n,r),()=>da(t,e,n,r)),Su=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Mu=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},qb=(t,...e)=>{const n={};let r;for(r in t)e.includes(r)||(n[r]=t[r]);return n},Gb=(t,e)=>{const n={};return e.forEach(r=>{r in t&&(n[r]=t[r])}),n};function GY(t,e,n){return Math.min(Math.max(t,e),n)}var Bu={},KY={get exports(){return Bu},set exports(t){Bu=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}t.exports=e.default})(KY,Bu);const ZY=w4(Bu);var Du={},XY={get exports(){return Du},set exports(t){Du=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}t.exports=e.default})(XY,Du);const Kb=w4(Du);function JY(t,e){var n=nU(e);return n.formatToParts?eU(n,t):tU(n,t)}var QY={year:0,month:1,day:2,hour:3,minute:4,second:5};function eU(t,e){try{for(var n=t.formatToParts(e),r=[],a=0;a<n.length;a++){var s=QY[n[a].type];s>=0&&(r[s]=parseInt(n[a].value,10))}return r}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function tU(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var e0={};function nU(t){if(!e0[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=e==="06/25/2014, 00:00:00"||e==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";e0[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e0[t]}function Zb(t,e,n,r,a,s,o){var l=new Date(0);return l.setUTCFullYear(t,e,n),l.setUTCHours(r,a,s,o),l}var Xb=36e5,iU=6e4,t0={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function rU(t,e,n){var r,a;if(!t||(r=t0.timezoneZ.exec(t),r))return 0;var s;if(r=t0.timezoneHH.exec(t),r)return s=parseInt(r[1],10),Jb(s)?-(s*Xb):NaN;if(r=t0.timezoneHHMM.exec(t),r){s=parseInt(r[1],10);var o=parseInt(r[2],10);return Jb(s,o)?(a=Math.abs(s)*Xb+o*iU,s>0?-a:a):NaN}if(oU(t)){e=new Date(e||Date.now());var l=aU(e),d=n0(l,t),h=sU(e,d,t);return-h}return NaN}function aU(t){return Zb(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function n0(t,e){var n=JY(t,e),r=Zb(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=t.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,r-a}function sU(t,e,n){var r=t.getTime(),a=r-e,s=n0(new Date(a),n);if(e===s)return e;a-=s-e;var o=n0(new Date(a),n);return s===o?s:Math.max(s,o)}function Jb(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var Qb={};function oU(t){if(Qb[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),Qb[t]=!0,!0}catch{return!1}}var lU=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const cU=lU;var i0=36e5,e5=6e4,dU=2,In={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:cU};function uU(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=e,r=n.additionalDigits==null?dU:ZY(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var a=hU(t),s=fU(a.date,r),o=s.year,l=s.restDateString,d=pU(l,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(a.time&&(f=mU(a.time),isNaN(f)))return new Date(NaN);if(a.timeZone||n.timeZone){if(m=rU(a.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=Kb(new Date(h+f)),m=Kb(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function hU(t){var e={},n=In.dateTimePattern.exec(t),r;if(n?(e.date=n[1],r=n[3]):(n=In.datePattern.exec(t),n?(e.date=n[1],r=n[2]):(e.date=null,r=t)),r){var a=In.timeZone.exec(r);a?(e.time=r.replace(a[1],""),e.timeZone=a[1].trim()):e.time=r}return e}function fU(t,e){var n=In.YYY[e],r=In.YYYYY[e],a;if(a=In.YYYY.exec(t)||r.exec(t),a){var s=a[1];return{year:parseInt(s,10),restDateString:t.slice(s.length)}}if(a=In.YY.exec(t)||n.exec(t),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:t.slice(o.length)}}return{year:null}}function pU(t,e){if(e===null)return null;var n,r,a,s;if(t.length===0)return r=new Date(0),r.setUTCFullYear(e),r;if(n=In.MM.exec(t),n)return r=new Date(0),a=parseInt(n[1],10)-1,i5(e,a)?(r.setUTCFullYear(e,a),r):new Date(NaN);if(n=In.DDD.exec(t),n){r=new Date(0);var o=parseInt(n[1],10);return bU(e,o)?(r.setUTCFullYear(e,0,o),r):new Date(NaN)}if(n=In.MMDD.exec(t),n){r=new Date(0),a=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return i5(e,a,l)?(r.setUTCFullYear(e,a,l),r):new Date(NaN)}if(n=In.Www.exec(t),n)return s=parseInt(n[1],10)-1,r5(e,s)?t5(e,s):new Date(NaN);if(n=In.WwwD.exec(t),n){s=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return r5(e,s,d)?t5(e,s,d):new Date(NaN)}return null}function mU(t){var e,n,r;if(e=In.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),r0(n)?n%24*i0:NaN;if(e=In.HHMM.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),r0(n,r)?n%24*i0+r*e5:NaN;if(e=In.HHMMSS.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var a=parseFloat(e[3].replace(",","."));return r0(n,r,a)?n%24*i0+r*e5+a*1e3:NaN}return null}function t5(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var a=r.getUTCDay()||7,s=e*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}var gU=[31,28,31,30,31,30,31,31,30,31,30,31],yU=[31,29,31,30,31,30,31,31,30,31,30,31];function n5(t){return t%400===0||t%4===0&&t%100!==0}function i5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var r=n5(t);if(r&&n>yU[e]||!r&&n>gU[e])return!1}return!0}function bU(t,e){if(e<1)return!1;var n=n5(t);return!(n&&e>366||!n&&e>365)}function r5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function r0(t,e,n){return!(t!=null&&(t<0||t>=25)||e!=null&&(e<0||e>=60)||n!=null&&(n<0||n>=60))}function Mn(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Eu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Eu=function(n){return typeof n}:Eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Eu(t)}function Br(t){Mn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Eu(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function co(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var vU={};function a0(){return vU}function is(t,e){var n,r,a,s,o,l,d,h;Mn(1,arguments);var f=a0(),m=co((n=(r=(a=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Br(t),y=g.getDay(),_=(y<m?7:0)+y-m;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}function a5(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var _U=6048e5;function wU(t,e,n){Mn(2,arguments);var r=is(t,n),a=is(e,n),s=r.getTime()-a5(r),o=a.getTime()-a5(a);return Math.round((s-o)/_U)}function kU(t){Mn(1,arguments);var e=Br(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function xU(t){Mn(1,arguments);var e=Br(t);return e.setDate(1),e.setHours(0,0,0,0),e}function CU(t,e){return Mn(1,arguments),wU(kU(t),xU(t),e)+1}function SU(t,e){var n,r,a,s,o,l,d,h;Mn(1,arguments);var f=Br(t),m=f.getFullYear(),g=a0(),y=co((n=(r=(a=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&r!==void 0?r:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setFullYear(m+1,0,y),_.setHours(0,0,0,0);var w=is(_,e),k=new Date(0);k.setFullYear(m,0,y),k.setHours(0,0,0,0);var x=is(k,e);return f.getTime()>=w.getTime()?m+1:f.getTime()>=x.getTime()?m:m-1}function MU(t,e){var n,r,a,s,o,l,d,h;Mn(1,arguments);var f=a0(),m=co((n=(r=(a=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=SU(t,e),y=new Date(0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);var _=is(y,e);return _}var BU=6048e5;function DU(t,e){Mn(1,arguments);var n=Br(t),r=is(n,e).getTime()-MU(n,e).getTime();return Math.round(r/BU)+1}function Ou(t){return Mn(1,arguments),is(t,{weekStartsOn:1})}function EU(t){Mn(1,arguments);var e=Br(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=Ou(r),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=Ou(s);return e.getTime()>=a.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function OU(t){Mn(1,arguments);var e=EU(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=Ou(n);return r}var VU=6048e5;function $U(t){Mn(1,arguments);var e=Br(t),n=Ou(e).getTime()-OU(e).getTime();return Math.round(n/VU)+1}function An(t,e){Mn(2,arguments);var n=Br(t),r=co(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Vu(t,e){Mn(2,arguments);var n=Br(t),r=co(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return a>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),a),n)}function s5(t,e){Mn(2,arguments);var n=co(e);return Vu(t,n*12)}const TU={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function IU({monthComps:t,prevMonthComps:e,nextMonthComps:n},r){const a=[],{firstDayOfWeek:s,firstWeekday:o,isoWeeknumbers:l,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<s?Bn:0)-s;let g=!0,y=!1,_=!1,w=0;const k=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let x=e.numDays-m+1,M=e.numDays-x+1,O=Math.floor((x-1)/Bn+1),S=1,V=e.numWeeks,T=1,N=e.month,A=e.year;const R=new Date,W=R.getDate(),ie=R.getMonth()+1,G=R.getFullYear();for(let re=1;re<=lj;re++){for(let ye=1,ee=s;ye<=Bn;ye++,ee+=ee===Bn?1-Bn:1){g&&ee===o&&(x=1,M=t.numDays,O=Math.floor((x-1)/Bn+1),S=Math.floor((h-x)/Bn+1),V=1,T=f,N=t.month,A=t.year,g=!1,y=!0);const Z=r.getDateFromParams(A,N,x,0,0,0,0),he=r.getDateFromParams(A,N,x,12,0,0,0),pe=r.getDateFromParams(A,N,x,23,59,59,999),J=Z,H=`${St(A,4)}-${St(N,2)}-${St(x,2)}`,ge=ye,fe=Bn-ye,$e=d[re-1],Ve=l[re-1],_e=x===W&&N===ie&&A===G,Le=y&&x===1,nt=y&&x===h,ae=re===1,xe=re===f,Ne=ye===1,Ze=ye===Bn,He=C5(A,N,x);a.push({locale:r,id:H,position:++w,label:x.toString(),ariaLabel:k.format(new Date(A,N-1,x)),day:x,dayFromEnd:M,weekday:ee,weekdayPosition:ge,weekdayPositionFromEnd:fe,weekdayOrdinal:O,weekdayOrdinalFromEnd:S,week:V,weekFromEnd:T,weekPosition:re,weeknumber:$e,isoWeeknumber:Ve,month:N,year:A,date:J,startDate:Z,endDate:pe,noonDate:he,dayIndex:He,isToday:_e,isFirstDay:Le,isLastDay:nt,isDisabled:!y,isFocusable:!y,isFocused:!1,inMonth:y,inPrevMonth:g,inNextMonth:_,onTop:ae,onBottom:xe,onLeft:Ne,onRight:Ze,classes:[`id-${H}`,`day-${x}`,`day-from-end-${M}`,`weekday-${ee}`,`weekday-position-${ge}`,`weekday-ordinal-${O}`,`weekday-ordinal-from-end-${S}`,`week-${V}`,`week-from-end-${T}`,{"is-today":_e,"is-first-day":Le,"is-last-day":nt,"in-month":y,"in-prev-month":g,"in-next-month":_,"on-top":ae,"on-bottom":xe,"on-left":Ne,"on-right":Ze}]}),y&&nt?(y=!1,_=!0,x=1,M=h,O=1,S=Math.floor((h-x)/Bn+1),V=1,T=n.numWeeks,N=n.month,A=n.year):(x++,M--,O=Math.floor((x-1)/Bn+1),S=Math.floor((h-x)/Bn+1))}V++,T--}return a}function AU(t,e,n,r){const a=t.reduce((s,o,l)=>{const d=Math.floor(l/7);let h=s[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},s[d]=h),h.days.push(o),s},Array(t.length/Bn));return a.forEach(s=>{const o=s.days[0],l=s.days[s.days.length-1];o.month===l.month?s.title=`${r.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?s.title=`${r.formatDate(o.date,"MMM")} - ${r.formatDate(l.date,"MMM YYYY")}`:s.title=`${r.formatDate(o.date,"MMM YYYY")} - ${r.formatDate(l.date,"MMM YYYY")}`}),a}function NU(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function LU(t,e){return`${e}.${St(t,2)}`}function o5(t,e,n){return Gb(n.getDateParts(n.toDate(t)),TU[e])}function l5({day:t,week:e,month:n,year:r},a,s,o){if(s==="daily"&&t){const l=new Date(r,n-1,t),d=An(l,a);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(s==="weekly"&&e){const d=o.getMonthParts(n,r).firstDayOfMonth,h=An(d,(e-1+a)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(r,n-1,1),d=Vu(l,a);return{month:d.getMonth()+1,year:d.getFullYear()}}}function or(t){return t!=null&&t.month!=null&&t.year!=null}function s0(t,e){return!or(t)||!or(e)?!1:(t=t,e=e,t.year!==e.year?t.year<e.year:t.month&&e.month&&t.month!==e.month?t.month<e.month:t.week&&e.week&&t.week!==e.week?t.week<e.week:t.day&&e.day&&t.day!==e.day?t.day<e.day:!1)}function $u(t,e){return!or(t)||!or(e)?!1:(t=t,e=e,t.year!==e.year?t.year>e.year:t.month&&e.month&&t.month!==e.month?t.month>e.month:t.week&&e.week&&t.week!==e.week?t.week>e.week:t.day&&e.day&&t.day!==e.day?t.day>e.day:!1)}function zU(t,e,n){return(t||!1)&&!s0(t,e)&&!$u(t,n)}function PU(t,e){return!t&&e||t&&!e?!1:!t&&!e?!0:(t=t,e=e,t.year===e.year&&t.month===e.month&&t.week===e.week&&t.day===e.day)}function RU(t,e,n,r){if(!or(t)||!or(e))return[];const a=[];for(;!$u(t,e);)a.push(t),t=l5(t,1,n,r);return a}function c5(t){const{day:e,week:n,month:r,year:a}=t;let s=`${a}-${St(r,2)}`;return n&&(s=`${s}-w${n}`),e&&(s=`${s}-${St(e,2)}`),s}function FU(t,e){const{month:n,year:r,showWeeknumbers:a,showIsoWeeknumbers:s}=t,o=new Date(r,n-1,15),l=e.getMonthParts(n,r),d=e.getPrevMonthParts(n,r),h=e.getNextMonthParts(n,r),f=IU({monthComps:l,prevMonthComps:d,nextMonthComps:h},e),m=AU(f,a,s,e),g=NU(m[0],e);return{id:c5(t),month:n,year:r,monthTitle:e.formatDate(o,e.masks.title),shortMonthLabel:e.formatDate(o,"MMM"),monthLabel:e.formatDate(o,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:l,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:g}}function HU(t,e){const{day:n,week:r,view:a,trimWeeks:s}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let l=o.days.find(h=>h.inMonth);n?l=o.days.find(h=>h.day===n&&h.inMonth)||l:r&&(l=o.days.find(h=>h.week===r&&h.inMonth));const d=o.weeks[l.week-1];o.viewWeeks=[d],o.viewDays=[l],o.week=l.week,o.weekTitle=d.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=r||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,s?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class d5{constructor(e,n,r){Ee(this,"keys",[]),Ee(this,"store",{}),this.size=e,this.createKey=n,this.createItem=r}get(...e){const n=this.createKey(...e);return this.store[n]}getOrSet(...e){const n=this.createKey(...e);if(this.store[n])return this.store[n];const r=this.createItem(...e);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(n),this.store[n]=r,r}}class uo{constructor(e,n=new Tu){Ee(this,"order"),Ee(this,"locale"),Ee(this,"start",null),Ee(this,"end",null),Ee(this,"repeat",null);var r;this.locale=n;const{start:a,end:s,span:o,order:l,repeat:d}=e;lo(a)&&(this.start=n.getDateParts(a)),lo(s)?this.end=n.getDateParts(s):this.start!=null&&o&&(this.end=n.getDateParts(An(this.start.date,o-1))),this.order=l??0,d&&(this.repeat=new Iu({from:(r=this.start)==null?void 0:r.date,...d},{locale:this.locale}))}static fromMany(e,n){return(wi(e)?e:[e]).filter(r=>r).map(r=>uo.from(r,n))}static from(e,n){if(e instanceof uo)return e;const r={start:null,end:null};return e!=null&&(wi(e)?(r.start=e[0]??null,r.end=e[1]??null):Sr(e)?Object.assign(r,e):(r.start=e,r.end=e)),r.start!=null&&(r.start=new Date(r.start)),r.end!=null&&(r.end=new Date(r.end)),new uo(r,n)}get opts(){const{order:e,locale:n}=this;return{order:e,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:n}=this;return e&&n&&e.year===n.year&&e.month===n.month&&e.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var n,r;return((n=this.start)==null?void 0:n.dayIndex)===e.dayIndex||!!((r=this.repeat)!=null&&r.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var n,r;return this.intersectsDayRange(((n=e.start)==null?void 0:n.dayIndex)??-1/0,((r=e.end)==null?void 0:r.dayIndex)??1/0)}intersectsDayRange(e,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<e)}}class WU{constructor(){Ee(this,"records",{})}render(e,n,r){var a,s,o,l;let d=null;const h=r[0].dayIndex,f=r[r.length-1].dayIndex;return n.hasRepeat?r.forEach(m=>{var g,y;if(n.startsOnDay(m)){const _=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((g=n.start)==null?void 0:g.time)??0,endDay:m.dayIndex+_-1,endTime:((y=n.end)==null?void 0:y.time)??Au},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((a=n.start)==null?void 0:a.dayIndex)??-1/0,startTime:((s=n.start)==null?void 0:s.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(e).push(d)),d}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(s=>s.data.key===e)}cellExists(e,n){const r=this.records[e];return r==null?!1:r.ranges.some(a=>a.startDay<=n&&a.endDay>=n)}getCells(e){const n=Object.values(this.records),r=[],{dayIndex:a}=e;return n.forEach(({data:s,ranges:o})=>{o.filter(l=>l.startDay<=a&&l.endDay>=a).forEach(l=>{const d=a===l.startDay,h=a===l.endDay,f=d?l.startTime:0,m=new Date(e.startDate.getTime()+f),g=h?l.endTime:Au,y=new Date(e.endDate.getTime()+g),_=f===0&&g===Au,w=s.order||0;r.push({...l,data:s,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:y,allDay:_,order:w})})}),r.sort((s,o)=>s.order-o.order),r}}const Dr={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Dr.en=Dr["en-US"],Dr.es=Dr["es-ES"],Dr.no=Dr.nb,Dr.zh=Dr["zh-CN"];const YU=Object.entries(Dr).reduce((t,[e,{dow:n,L:r}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:r}},t),{}),UU={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:YU,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},o0=i.reactive(UU),jU=i.computed(()=>VH(o0.locales,t=>(t.masks=rc(t.masks,o0.masks),t))),ha=t=>typeof window<"u"&&Ub(window.__vcalendar__,t)?ns(window.__vcalendar__,t):ns(o0,t),qU=12,GU=5;function KU(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;sr(t)?r=t:Ub(t,"id")&&(r=t.id),r=(r||n).toLowerCase();const a=Object.keys(e),s=d=>a.find(h=>h.toLowerCase()===d);r=s(r)||s(r.substring(0,2))||n;const o={...e["en-IE"],...e[r],id:r,monthCacheSize:qU,pageCacheSize:GU};return Sr(t)?rc(t,o):o}class Tu{constructor(e=void 0,n){Ee(this,"id"),Ee(this,"daysInWeek"),Ee(this,"firstDayOfWeek"),Ee(this,"masks"),Ee(this,"timezone"),Ee(this,"hourLabels"),Ee(this,"dayNames"),Ee(this,"dayNamesShort"),Ee(this,"dayNamesShorter"),Ee(this,"dayNamesNarrow"),Ee(this,"monthNames"),Ee(this,"monthNamesShort"),Ee(this,"relativeTimeNames"),Ee(this,"amPm",["am","pm"]),Ee(this,"monthCache"),Ee(this,"pageCache");const{id:r,firstDayOfWeek:a,masks:s,monthCacheSize:o,pageCacheSize:l}=KU(e,jU.value);this.monthCache=new d5(o,yj,bj),this.pageCache=new d5(l,c5,FU),this.id=r,this.daysInWeek=Bn,this.firstDayOfWeek=GY(a,1,Bn),this.masks=s,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=u0("long",this.id),this.dayNamesShort=u0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=u0("narrow",this.id),this.monthNames=D5("long",this.id),this.monthNamesShort=D5("short",this.id),this.relativeTimeNames=wj(this.id)}formatDate(e,n){return Mj(e,n,this)}parseDate(e,n){return E5(e,n,this)}toDate(e,n={}){const r=new Date(NaN);let a=r;const{fillDate:s,mask:o,patch:l,rules:d}=n;if(Yi(e)?(n.type="number",a=new Date(+e)):sr(e)?(n.type="string",a=e?E5(e,o||"iso",this):r):lo(e)?(n.type="date",a=new Date(e.getTime())):c0(e)&&(n.type="object",a=this.getDateFromParts(e)),a&&(l||d)){let h=this.getDateParts(a);if(l&&s!=null){const f=this.getDateParts(this.toDate(s));h=this.getDateParts(this.toDate({...f,...Gb(h,oj[l])}))}d&&(h=Sj(h,d)),a=this.getDateFromParts(h)}return a||r}toDateOrNull(e,n={}){const r=this.toDate(e,n);return isNaN(r.getTime())?null:r}fromDate(e,{type:n,mask:r}={}){switch(n){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,r||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return uo.from(e,this)}ranges(e){return uo.fromMany(e,this)}getDateParts(e){return gj(e,this)}getDateFromParts(e){return M5(e,this.timezone)}getDateFromParams(e,n,r,a,s,o,l){return this.getDateFromParts({year:e,month:n,day:r,hours:a,minutes:s,seconds:o,milliseconds:l})}getPage(e){const n=this.pageCache.getOrSet(e,this);return HU(e,n)}getMonthParts(e,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(e,n,r)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,n){return e===1?this.getMonthParts(12,n-1):this.getMonthParts(e-1,n)}getNextMonthParts(e,n){return e===12?this.getMonthParts(1,n+1):this.getMonthParts(e+1,n)}getHourLabels(){return _j().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var ho=(t=>(t.Any="any",t.All="all",t))(ho||{}),u5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(u5||{}),h5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(h5||{}),f5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(f5||{});class ZU{constructor(e,n,r){Ee(this,"validated",!0),this.type=e,this.interval=n,this.from=r,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:n}=e;switch(this.type){case"days":return d0(this.from.date,n)%this.interval===0;case"weeks":return pj(this.from.date,n)%this.interval===0;case"months":return mj(this.from.date,n)%this.interval===0;case"years":return S5(this.from.date,n)%this.interval===0;default:return!1}}}class fo{constructor(e,n,r,a){Ee(this,"components",[]),this.type=e,this.validator=r,this.getter=a,this.components=this.normalizeComponents(n)}static create(e,n){switch(e){case"days":return new XU(n);case"weekdays":return new JU(n);case"weeks":return new QU(n);case"months":return new ej(n);case"years":return new tj(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!wi(e))return[];const n=[];return e.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(e){return this.getter(e).some(a=>this.components.includes(a))}}class XU extends fo{constructor(e){super("days",e,rj,({day:n,dayFromEnd:r})=>[n,-r])}}class JU extends fo{constructor(e){super("weekdays",e,l0,({weekday:n})=>[n])}}class QU extends fo{constructor(e){super("weeks",e,aj,({week:n,weekFromEnd:r})=>[n,-r])}}class ej extends fo{constructor(e){super("months",e,sj,({month:n})=>[n])}}class tj extends fo{constructor(e){super("years",e,Yi,({year:n})=>[n])}}class nj{constructor(e,n){Ee(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!p5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!l0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(e){const n=[];return e.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!p5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!l0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(e){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:a}=e;return this.components.some(([s,o])=>(s===r||s===-a)&&n===o)}}class ij{constructor(e){Ee(this,"type","function"),Ee(this,"validated",!0),this.fn=e,Qa(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return this.validated?this.fn(e):!0}}class Iu{constructor(e,n={},r){Ee(this,"validated",!0),Ee(this,"config"),Ee(this,"type",ho.Any),Ee(this,"from"),Ee(this,"until"),Ee(this,"rules",[]),Ee(this,"locale",new Tu),this.parent=r,n.locale&&(this.locale=n.locale),this.config=e,Qa(e)?(this.type=ho.All,this.rules=[new ij(e)]):wi(e)?(this.type=ho.Any,this.rules=e.map(a=>new Iu(a,n,this))):Sr(e)?(this.type=ho.All,this.from=e.from?this.locale.getDateParts(e.from):r==null?void 0:r.from,this.until=e.until?this.locale.getDateParts(e.until):r==null?void 0:r.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const n=[];if(e.every&&(sr(e.every)&&(e.every=[1,`${e.every}s`]),wi(e.every))){const[r=1,a=u5.Days]=e.every;n.push(new ZU(a,r,this.from))}return Object.values(h5).forEach(r=>{r in e&&n.push(fo.create(r,e[r]))}),Object.values(f5).forEach(r=>{r in e&&n.push(new nj(r,e[r]))}),e.on!=null&&(wi(e.on)||(e.on=[e.on]),n.push(new Iu(e.on,{locale:this.locale},this.parent))),n}passes(e){return this.validated?this.from&&e.dayIndex<=this.from.dayIndex||this.until&&e.dayIndex>=this.until.dayIndex?!1:this.type===ho.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function rj(t){return Yi(t)?t>=1&&t<=31:!1}function l0(t){return Yi(t)?t>=1&&t<=7:!1}function aj(t){return Yi(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function sj(t){return Yi(t)?t>=1&&t<=12:!1}function p5(t){return!(!Yi(t)||t<-5||t>5||t===0)}const oj={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Bn=7,lj=6,m5=1e3,g5=m5*60,y5=g5*60,Au=y5*24,cj=[31,28,31,30,31,30,31,31,30,31,30,31],dj=["L","iso"],ac={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},b5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,uj=/\[([^]*?)\]/gm,v5={D(t){return t.day},DD(t){return St(t.day,2)},d(t){return t.weekday-1},dd(t){return St(t.weekday-1,2)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return St(t.month,2)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substr(2)},YYYY(t){return St(t.year,4)},h(t){return t.hours%12||12},hh(t){return St(t.hours%12||12,2)},H(t){return t.hours},HH(t){return St(t.hours,2)},m(t){return t.minutes},mm(t){return St(t.minutes,2)},s(t){return t.seconds},ss(t){return St(t.seconds,2)},S(t){return Math.round(t.milliseconds/100)},SS(t){return St(Math.round(t.milliseconds/10),2)},SSS(t){return St(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${St(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${St(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${St(Math.floor(Math.abs(e)/60),2)}:${St(Math.abs(e)%60,2)}`}},fa=/\d\d?/,hj=/\d{3}/,fj=/\d{4}/,sc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,_5=()=>{},w5=t=>(e,n,r)=>{const a=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(e.month=a)},Et={D:[fa,(t,e)=>{t.day=e}],Do:[new RegExp(fa.source+sc.source),(t,e)=>{t.day=parseInt(e,10)}],d:[fa,_5],W:[sc,_5],M:[fa,(t,e)=>{t.month=e-1}],MMM:[sc,w5("monthNamesShort")],MMMM:[sc,w5("monthNames")],YY:[fa,(t,e)=>{const r=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?r-1:r}${e}`}],YYYY:[fj,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[hj,(t,e)=>{t.milliseconds=e}],h:[fa,(t,e)=>{t.hours=e}],m:[fa,(t,e)=>{t.minutes=e}],s:[fa,(t,e)=>{t.seconds=e}],a:[sc,(t,e,n)=>{const r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{e==="Z"&&(e="+00:00");const n=`${e}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);t.timezoneOffset=n[0]==="+"?r:-r}}]};Et.DD=Et.D,Et.dd=Et.d,Et.WWWW=Et.WWW=Et.WW=Et.W,Et.MM=Et.M,Et.mm=Et.m,Et.hh=Et.H=Et.HH=Et.h,Et.ss=Et.s,Et.A=Et.a,Et.ZZZZ=Et.ZZZ=Et.ZZ=Et.Z;function k5(t,e){return(Mr(t)&&t||[sr(t)&&t||"YYYY-MM-DD"]).map(n=>dj.reduce((r,a)=>r.replace(a,e.masks[a]||""),n))}function c0(t){return Sr(t)&&"year"in t&&"month"in t&&"day"in t}function x5(t,e=1){const n=t.getDay()+1,r=n>=e?e-n:-(7-(e-n));return An(t,r)}function C5(t,e,n){const r=Date.UTC(t,e-1,n);return d0(new Date(0),new Date(r))}function d0(t,e){return Math.round((e.getTime()-t.getTime())/Au)}function pj(t,e){return Math.ceil(d0(x5(t),x5(e))/7)}function S5(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function mj(t,e){return S5(t,e)*12+(e.getMonth()-t.getMonth())}function M5(t,e=""){const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:s=n.getDate(),hours:o=0,minutes:l=0,seconds:d=0,milliseconds:h=0}=t;if(e){const f=`${St(r,4)}-${St(a,2)}-${St(s,2)}T${St(o,2)}:${St(l,2)}:${St(d,2)}.${St(h,3)}`;return uU(f,{timeZone:e})}return new Date(r,a-1,s,o,l,d,h)}function gj(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const r=n.getMilliseconds(),a=n.getSeconds(),s=n.getMinutes(),o=n.getHours(),l=r+a*m5+s*g5+o*y5,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,y=n.getDay()+1,_=Math.floor((m-1)/7+1),w=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),x=f.numWeeks-k+1,M=f.weeknumbers[k],O=C5(h,d,m);return{milliseconds:r,seconds:a,minutes:s,hours:o,time:l,day:m,dayFromEnd:g,weekday:y,weekdayOrdinal:_,weekdayOrdinalFromEnd:w,week:k,weekFromEnd:x,weeknumber:M,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:O,timezoneOffset:0,isValid:!0}}function yj(t,e,n){return`${e}-${t}-${n}`}function bj(t,e,n){const r=e%4===0&&e%100!==0||e%400===0,a=new Date(e,t-1,1),s=a.getDay()+1,o=t===2&&r?29:cj[t-1],l=n-1,d=CU(a,{weekStartsOn:l}),h=[],f=[];for(let m=0;m<d;m++){const g=An(a,m*7);h.push(DU(g,{weekStartsOn:l})),f.push($U(g))}return{firstDayOfWeek:n,firstDayOfMonth:a,inLeapYear:r,firstWeekday:s,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function vj(){const t=[];for(let a=0;a<Bn;a++)t.push(M5({year:2020,month:1,day:5+a,hours:12}));return t}function u0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return vj().map(r=>n.format(r))}function _j(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function wj(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((r,a)=>{const s=n.formatToParts(100,a);return r[a]=s[1].unit,r},{})}function B5(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function D5(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return B5().map(r=>n.format(r))}function kj(t,e,n){return Yi(e)?e===t:wi(e)?e.includes(t):Qa(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function oc(t,e,n){const r=[],[a,s,o]=e;for(let l=a;l<=s;l++)(n==null||kj(l,n,t))&&r.push({value:l,label:St(l,o)});return r}function xj(t,e){return{milliseconds:oc(t,ac.milliseconds,e.milliseconds),seconds:oc(t,ac.seconds,e.seconds),minutes:oc(t,ac.minutes,e.minutes),hours:oc(t,ac.hours,e.hours)}}function Cj(t,e,n,r){const s=oc(t,e,r).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const d=Math.abs(o-n);return Math.abs(l.value-n)<d?l.value:o},NaN);return isNaN(s)?n:s}function Sj(t,e){const n={...t};return Object.entries(e).forEach(([r,a])=>{const s=ac[r],o=t[r];n[r]=Cj(t,s,o,a)}),n}function E5(t,e,n){return k5(e,n).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let s=t;if(s.length>1e3)return!1;let o=!0;const l={};if(a.replace(b5,f=>{if(Et[f]){const m=Et[f],g=s.search(m[0]);~g?s.replace(m[0],y=>(m[1](l,y,n),s=s.substr(g+y.length),y)):o=!1}return Et[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let h;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,h=new Date(Date.UTC(l.year||d.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):h=n.getDateFromParts({year:l.year||d.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),h}).find(a=>a)||new Date(t)}function Mj(t,e,n){if(t==null)return"";let r=k5(e,n)[0];/Z$/.test(r)&&(n.timezone="utc");const a=[];r=r.replace(uj,(o,l)=>(a.push(l),"??"));const s=n.getDateParts(t);return r=r.replace(b5,o=>o in v5?v5[o](s,n):o.slice(1,o.length-1)),r.replace(/\?\?/g,()=>a.shift())}let Bj=0;class O5{constructor(e,n,r){Ee(this,"key",""),Ee(this,"hashcode",""),Ee(this,"highlight",null),Ee(this,"content",null),Ee(this,"dot",null),Ee(this,"bar",null),Ee(this,"event",null),Ee(this,"popover",null),Ee(this,"customData",null),Ee(this,"ranges"),Ee(this,"hasRanges",!1),Ee(this,"order",0),Ee(this,"pinPage",!1),Ee(this,"maxRepeatSpan",0),Ee(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++Bj),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(a??[]),this.hasRanges=!!Mr(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,o)=>Math.max(s,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const r=this.ranges.filter(o=>!o.hasRepeat);for(const o of r)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const a=this.ranges.filter(o=>o.hasRepeat);if(!a.length)return!1;let s=e;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(An(s.date,-this.maxRepeatSpan)));s.dayIndex<=n.dayIndex;){for(const o of a)if(o.startsOnDay(s))return!0;s=this.locale.getDateParts(An(s.date,1))}return!1}}function h0(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function lc(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function V5(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function $5(t){const{visibility:e}=t,n=e==="click",r=e==="hover",a=e==="hover-focus",s=e==="focus";t.autoHide=!n;let o=!1,l=!1;const d=_=>{n&&(V5({...t,target:t.target||_.currentTarget}),_.stopPropagation())},h=_=>{o||(o=!0,(r||a)&&h0({...t,target:t.target||_.currentTarget}))},f=()=>{o&&(o=!1,(r||a&&!l)&&lc(t))},m=_=>{l||(l=!0,(s||a)&&h0({...t,target:t.target||_.currentTarget}))},g=_=>{l&&!Su(_.currentTarget,_.relatedTarget)&&(l=!1,(s||a&&!o)&&lc(t))},y={};switch(t.visibility){case"click":y.click=d;break;case"hover":y.mousemove=h,y.mouseleave=f;break;case"focus":y.focusin=m,y.focusout=g;break;case"hover-focus":y.mousemove=h,y.mouseleave=f,y.focusin=m,y.focusout=g;break}return y}const T5=t=>{const e=Cu(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete e.popoverHandlers)},I5=(t,e)=>{const n=Cu(t);if(n==null)return;const r=[],a=$5(e);Object.entries(a).forEach(([s,o])=>{r.push(ua(n,s,o))}),n.popoverHandlers=r},A5={mounted(t,e){const{value:n}=e;n&&I5(t,n)},updated(t,e){const{oldValue:n,value:r}=e,a=n==null?void 0:n.visibility,s=r==null?void 0:r.visibility;a!==s&&(a&&(T5(t),s||lc(n)),s&&I5(t,r))},unmounted(t){T5(t)}},Dj=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!t||!t.addEventListener||!Qa(e))return null;let s=0,o=0,l=null,d=!1;function h(m){const g=m.changedTouches[0];s=g.screenX,o=g.screenY,l=new Date().getTime(),d=!0}function f(m){if(!d||!l)return;d=!1;const g=m.changedTouches[0],y=g.screenX-s,_=g.screenY-o;if(new Date().getTime()-l<n&&Math.abs(y)>=r&&Math.abs(_)<=a){const k={toLeft:!1,toRight:!1};y<0?k.toLeft=!0:k.toRight=!0,e(k)}}return ua(t,"touchstart",h,{passive:!0}),ua(t,"touchend",f,{passive:!0}),()=>{da(t,"touchstart",h),da(t,"touchend",f)}},Nu={},Ej=(t,e=10)=>{Nu[t]=Date.now()+e},Oj=(t,e)=>{if(t in Nu){const n=Nu[t];if(Date.now()<n)return;delete Nu[t]}e()};function N5(){return typeof window<"u"}function Vj(t){return N5()&&t in window}function $j(t){const e=i.ref(!1),n=i.computed(()=>e.value?"dark":"light");let r,a;function s(y){e.value=y.matches}function o(){Vj("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",s),e.value=r.matches)}function l(){const{selector:y=":root",darkClass:_="dark"}=t.value,w=document.querySelector(y);e.value=w.classList.contains(_)}function d(y){const{selector:_=":root",darkClass:w="dark"}=y;if(N5()&&_&&w){const k=document.querySelector(_);k&&(a=new MutationObserver(l),a.observe(k,{attributes:!0,attributeFilter:["class"]}),e.value=k.classList.contains(w))}}function h(){m();const y=typeof t.value;y==="string"&&t.value.toLowerCase()==="system"?o():y==="object"?d(t.value):e.value=!!t.value}const f=i.watch(()=>t.value,()=>h(),{immediate:!0});function m(){r&&(r.removeEventListener("change",s),r=void 0),a&&(a.disconnect(),a=void 0)}function g(){m(),f()}return i.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const Tj=["base","start","end","startEnd"],Ij=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Aj={base:{},start:{},end:{}};function f0(t,e,n=Aj){let r=t,a={};e===!0||sr(e)?(r=sr(e)?e:r,a={...n}):Sr(e)&&(jb(e,Tj)?a={...e}:a={base:{...e},start:{...e},end:{...e}});const s=rc(a,{start:a.startEnd,end:a.startEnd},n);return Object.entries(s).forEach(([o,l])=>{let d=r;l===!0||sr(l)?(d=sr(l)?l:d,s[o]={color:d}):Sr(l)&&(jb(l,Ij)?s[o]={...l}:s[o]={}),rc(s[o],{color:d})}),s}class Nj{constructor(){Ee(this,"type","highlight")}normalizeConfig(e,n){return f0(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:r},a){const{key:s,highlight:o}=e;if(!o)return;const{highlights:l}=a,{base:d,start:h,end:f}=o;n&&r?l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):r?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...f,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...d,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class p0{constructor(e,n){Ee(this,"type",""),Ee(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return f0(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:r},a){const{key:s}=e,o=e[this.type];if(!s||!o)return;const l=a[this.collectionType],{base:d,start:h,end:f}=o;n?l.push({...h,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):r?l.push({...f,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...d,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class Lj extends p0{constructor(){super("content","content")}normalizeConfig(e,n){return f0("base",n)}}class zj extends p0{constructor(){super("dot","dots")}}class Pj extends p0{constructor(){super("bar","bars")}}class Rj{constructor(e){Ee(this,"color"),Ee(this,"renderers",[new Lj,new Nj,new zj,new Pj]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(n=>{const r=n.type;e[r]!=null&&(e[r]=n.normalizeConfig(this.color,e[r]))})}prepareRender(e={}){return this.renderers.forEach(n=>{n.prepareRender(e)}),e}render(e,n){this.renderers.forEach(r=>{r.render(e,n)})}}const L5=Symbol("__vc_base_context__"),z5={color:{type:String,default:()=>ha("color")},isDark:{type:[Boolean,String,Object],default:()=>ha("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function P5(t){const e=i.computed(()=>t.color??""),n=i.computed(()=>t.isDark??!1),{displayMode:r}=$j(n),a=i.computed(()=>new Rj(e.value)),s=i.computed(()=>{if(t.locale instanceof Tu)return t.locale;const g=Sr(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new Tu(g,t.timezone)}),o=i.computed(()=>s.value.masks),l=i.computed(()=>t.minDate),d=i.computed(()=>t.maxDate),h=i.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return l.value!=null&&g.push({start:null,end:An(s.value.toDate(l.value),-1)}),d.value!=null&&g.push({start:An(s.value.toDate(d.value),1),end:null}),s.value.ranges(g)}),f=i.computed(()=>new O5({key:"disabled",dates:h.value,order:100},a.value,s.value)),m={color:e,isDark:n,displayMode:r,theme:a,locale:s,masks:o,minDate:l,maxDate:d,disabledDates:h,disabledAttribute:f};return i.provide(L5,m),m}function Fj(t){return i.inject(L5,()=>P5(t),!0)}function R5(t){return`__vc_slot_${t}__`}function F5(t,e={}){Object.keys(t).forEach(n=>{i.provide(R5(e[n]??n),t[n])})}function H5(t){return i.inject(R5(t),null)}const Hj={...z5,view:{type:String,default:"monthly",validator(t){return["daily","weekly","monthly"].includes(t)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>ha("titlePosition")},navVisibility:{type:String,default:()=>ha("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},Wj=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],W5=Symbol("__vc_calendar_context__");function Yj(t,{slots:e,emit:n}){const r=i.ref(null),a=i.ref(null),s=i.ref(new Date().getDate()),o=i.ref(!1),l=i.ref(Symbol()),d=i.ref(Symbol()),h=i.ref(t.view),f=i.ref([]),m=i.ref("");let g=null,y=null;F5(e);const{theme:_,color:w,displayMode:k,locale:x,masks:M,minDate:O,maxDate:S,disabledAttribute:V,disabledDates:T}=Fj(t),N=i.computed(()=>t.rows*t.columns),A=i.computed(()=>t.step||N.value),R=i.computed(()=>Yb(f.value)??null),W=i.computed(()=>oo(f.value)??null),ie=i.computed(()=>t.minPage||(O.value?fe(O.value):null)),G=i.computed(()=>t.maxPage||(S.value?fe(S.value):null)),re=i.computed(()=>t.navVisibility),ye=i.computed(()=>!!t.showWeeknumbers),ee=i.computed(()=>!!t.showIsoWeeknumbers),Z=i.computed(()=>h.value==="monthly"),he=i.computed(()=>h.value==="weekly"),pe=i.computed(()=>h.value==="daily"),J=()=>{o.value=!0,n("transition-start")},H=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},ge=(j,$,q=h.value)=>l5(j,$,q,x.value),fe=j=>o5(j,h.value,x.value),$e=j=>{!V.value||!xe.value||(j.isDisabled=xe.value.cellExists(V.value.key,j.dayIndex))},Ve=j=>{j.isFocusable=j.inMonth&&j.day===s.value},_e=(j,$)=>{for(const q of j)for(const ce of q.days)if($(ce)===!1)return},Le=i.computed(()=>f.value.reduce((j,$)=>(j.push(...$.viewDays),j),[])),nt=i.computed(()=>{const j=[];return(t.attributes||[]).forEach(($,q)=>{!$||!$.dates||j.push(new O5({...$,order:$.order||0},_.value,x.value))}),V.value&&j.push(V.value),j}),ae=i.computed(()=>Mr(nt.value)),xe=i.computed(()=>{const j=new WU;return nt.value.forEach($=>{$.ranges.forEach(q=>{j.render($,q,Le.value)})}),j}),Ne=i.computed(()=>Le.value.reduce((j,$)=>(j[$.dayIndex]={day:$,cells:[]},j[$.dayIndex].cells.push(...xe.value.getCells($)),j),{})),Ze=(j,$)=>{const q=t.showWeeknumbers||t.showIsoWeeknumbers;return q==null?"":fH(q)?q?"left":"":q.startsWith("right")?$>1?"right":q:j>1?"left":q},He=()=>{var j,$;if(!ae.value)return null;const q=nt.value.find(Xe=>Xe.pinPage)||nt.value[0];if(!q||!q.hasRanges)return null;const[ce]=q.ranges,Be=((j=ce.start)==null?void 0:j.date)||(($=ce.end)==null?void 0:$.date);return Be?fe(Be):null},et=()=>{if(or(R.value))return R.value;const j=He();return or(j)?j:fe(new Date)},dt=(j,$={})=>{const{view:q=h.value,position:ce=1,force:Be}=$,Xe=ce>0?1-ce:-(N.value+ce);let ft=ge(j,Xe,q),$t=ge(ft,N.value-1,q);return Be||(s0(ft,ie.value)?ft=ie.value:$u($t,G.value)&&(ft=ge(G.value,1-N.value)),$t=ge(ft,N.value-1)),{fromPage:ft,toPage:$t}},vt=(j,$,q="")=>{if(q==="none"||q==="fade")return q;if((j==null?void 0:j.view)!==($==null?void 0:$.view))return"fade";const ce=$u($,j),Be=s0($,j);return!ce&&!Be?"fade":q==="slide-v"?Be?"slide-down":"slide-up":Be?"slide-right":"slide-left"},ht=(j={})=>new Promise(($,q)=>{const{position:ce=1,force:Be=!1,transition:Xe}=j,ft=or(j.page)?j.page:et(),{fromPage:$t}=dt(ft,{position:ce,force:Be}),cn=[];for(let en=0;en<N.value;en++){const qn=ge($t,en),wt=en+1,Nn=Math.ceil(wt/t.columns),Dn=t.rows-Nn+1,ai=wt%t.columns||t.columns,Ui=t.columns-ai+1,Or=Ze(ai,Ui);cn.push(x.value.getPage({...qn,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:wt,row:Nn,rowFromEnd:Dn,column:ai,columnFromEnd:Ui,showWeeknumbers:ye.value,showIsoWeeknumbers:ee.value,weeknumberPosition:Or}))}m.value=vt(f.value[0],cn[0],Xe),f.value=cn,m.value&&m.value!=="none"?g={resolve:$,reject:q}:$(!0)}),_t=j=>{const $=R.value??fe(new Date);return ge($,j)},Jt=(j,$={})=>{const q=or(j)?j:fe(j);return Object.assign($,dt(q,{...$,force:!0})),RU($.fromPage,$.toPage,h.value,x.value).map(Be=>zU(Be,ie.value,G.value)).some(Be=>Be)},Qt=(j,$={})=>Jt(_t(j),$),mt=i.computed(()=>Qt(-A.value)),st=i.computed(()=>Qt(A.value)),At=async(j,$={})=>!$.force&&!Jt(j,$)?!1:($.fromPage&&!PU($.fromPage,R.value)&&(lc({id:l.value,hideDelay:0}),$.view&&(Ej("view",10),h.value=$.view),await ht({...$,page:$.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Mt=(j,$={})=>At(_t(j),$),Ot=()=>Mt(-A.value),Bt=()=>Mt(A.value),an=j=>{const $=Z.value?".in-month":"",q=`.id-${x.value.getDayId(j)}${$}`,ce=`${q}.vc-focusable, ${q} .vc-focusable`,Be=r.value;if(Be){const Xe=Be.querySelector(ce);if(Xe)return Xe.focus(),!0}return!1},Vt=async(j,$={})=>an(j)?!0:(await At(j,$),an(j)),le=(j,$)=>{s.value=j.day,n("dayclick",j,$)},ze=(j,$)=>{n("daymouseenter",j,$)},je=(j,$)=>{n("daymouseleave",j,$)},se=(j,$)=>{s.value=j.day,a.value=j,j.isFocused=!0,n("dayfocusin",j,$)},Oe=(j,$)=>{a.value=null,j.isFocused=!1,n("dayfocusout",j,$)},Se=(j,$)=>{n("daykeydown",j,$);const q=j.noonDate;let ce=null;switch($.key){case"ArrowLeft":{ce=An(q,-1);break}case"ArrowRight":{ce=An(q,1);break}case"ArrowUp":{ce=An(q,-7);break}case"ArrowDown":{ce=An(q,7);break}case"Home":{ce=An(q,-j.weekdayPosition+1);break}case"End":{ce=An(q,j.weekdayPositionFromEnd);break}case"PageUp":{$.altKey?ce=s5(q,-1):ce=Vu(q,-1);break}case"PageDown":{$.altKey?ce=s5(q,1):ce=Vu(q,1);break}}ce&&($.preventDefault(),Vt(ce).catch())},Y=j=>{const $=a.value;$!=null&&Se($,j)},de=(j,$)=>{n("weeknumberclick",j,$)};ht({page:t.initialPage,position:t.initialPagePosition}),i.onMounted(()=>{!t.disablePageSwipe&&r.value&&(y=Dj(r.value,({toLeft:j=!1,toRight:$=!1})=>{j?Bt():$&&Ot()},ha("touch")))}),i.onUnmounted(()=>{f.value=[],y&&y()}),i.watch(()=>x.value,()=>{ht()}),i.watch(()=>N.value,()=>ht()),i.watch(()=>t.view,()=>h.value=t.view),i.watch(()=>h.value,()=>{Oj("view",()=>{ht()}),n("update:view",h.value)}),i.watch(()=>s.value,()=>{_e(f.value,j=>Ve(j))}),i.watchEffect(()=>{n("update:pages",f.value),_e(f.value,j=>{$e(j),Ve(j)})});const we={emit:n,containerRef:r,focusedDay:a,inTransition:o,navPopoverId:l,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:_,color:w,displayMode:k,locale:x,masks:M,attributes:nt,disabledAttribute:V,disabledDates:T,attributeContext:xe,days:Le,dayCells:Ne,count:N,step:A,firstPage:R,lastPage:W,canMovePrev:mt,canMoveNext:st,minPage:ie,maxPage:G,isMonthly:Z,isWeekly:he,isDaily:pe,navVisibility:re,showWeeknumbers:ye,showIsoWeeknumbers:ee,getDateAddress:fe,canMove:Jt,canMoveBy:Qt,move:At,moveBy:Mt,movePrev:Ot,moveNext:Bt,onTransitionBeforeEnter:J,onTransitionAfterEnter:H,tryFocusDate:an,focusDate:Vt,onKeydown:Y,onDayKeydown:Se,onDayClick:le,onDayMouseenter:ze,onDayMouseleave:je,onDayFocusin:se,onDayFocusout:Oe,onWeeknumberClick:de};return i.provide(W5,we),we}function rs(){const t=i.inject(W5);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const Uj=i.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const r=i.ref();let a=null,s=null;const o=i.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function l(H){H&&(o.direction=H.split("-")[0])}function d({placement:H,options:ge}){l(H||(ge==null?void 0:ge.placement))}const h=i.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=i.computed(()=>{const H=o.direction==="left"||o.direction==="right";let ge="";if(o.placement){const fe=o.placement.split("-");fe.length>1&&(ge=fe[1])}return["start","top","left"].includes(ge)?H?"top":"left":["end","bottom","right"].includes(ge)?H?"bottom":"right":H?"middle":"center"});function m(){s&&(s.destroy(),s=null)}function g(){i.nextTick(()=>{const H=Cu(o.target);!H||!r.value||(s&&s.state.elements.reference!==H&&m(),s?s.update():s=tl(H,r.value,h.value))})}function y(H){Object.assign(o,qb(H,"force"))}function _(H,ge){clearTimeout(n),H>0?n=setTimeout(ge,H):ge()}function w(H){return!H||!s?!1:Cu(H)===s.state.elements.reference}async function k(H={}){o.force||(H.force&&(o.force=!0),_(H.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),y({...H,isVisible:!0}),g()}))}function x(H={}){s&&(H.target&&!w(H.target)||o.force||(H.force&&(o.force=!0),_(H.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function M(H={}){H.target!=null&&(o.isVisible&&w(H.target)?x(H):k(H))}function O(H){if(!s)return;const ge=s.state.elements.reference;if(!r.value||!ge)return;const fe=H.target;Su(r.value,fe)||Su(ge,fe)||x({force:!0})}function S(H){(H.key==="Esc"||H.key==="Escape")&&x()}function V({detail:H}){!H.id||H.id!==t.id||k(H)}function T({detail:H}){!H.id||H.id!==t.id||x(H)}function N({detail:H}){!H.id||H.id!==t.id||M(H)}function A(){ua(document,"keydown",S),ua(document,"click",O),ua(document,"show-popover",V),ua(document,"hide-popover",T),ua(document,"toggle-popover",N)}function R(){da(document,"keydown",S),da(document,"click",O),da(document,"show-popover",V),da(document,"hide-popover",T),da(document,"toggle-popover",N)}function W(H){e("before-show",H)}function ie(H){o.force=!1,e("after-show",H)}function G(H){e("before-hide",H)}function re(H){o.force=!1,m(),e("after-hide",H)}function ye(H){H.stopPropagation()}function ee(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function Z(){if(o.isHovered=!1,!s)return;const H=s.state.elements.reference;o.autoHide&&!o.isFocused&&(!H||H!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&x()}function he(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function pe(H){["focus","hover-focus"].includes(o.visibility)&&(!H.relatedTarget||!Su(r.value,H.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&x())}function J(){a!=null&&(a.disconnect(),a=null)}return i.watch(()=>r.value,H=>{J(),H&&(a=new ResizeObserver(()=>{s&&s.update()}),a.observe(H))}),i.watch(()=>o.placement,l,{immediate:!0}),i.onMounted(()=>{A()}),i.onUnmounted(()=>{m(),J(),R()}),{...i.toRefs(o),popoverRef:r,alignment:f,hide:x,setupPopper:g,beforeEnter:W,afterEnter:ie,beforeLeave:G,afterLeave:re,onClick:ye,onMouseOver:ee,onMouseLeave:Z,onFocusIn:he,onFocusOut:pe}}}),pa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};function jj(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[i.createVNode(i.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:i.withCtx(()=>[t.isVisible?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[i.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[i.createTextVNode(i.toDisplayString(t.data),1)]),i.createElementVNode("span",{class:i.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):i.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const m0=pa(Uj,[["render",jj]]),qj={class:"vc-day-popover-row"},Gj={key:0,class:"vc-day-popover-row-indicator"},Kj={class:"vc-day-popover-row-label"},Zj=i.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=i.computed(()=>{const{content:r,highlight:a,dot:s,bar:o,popover:l}=e.attribute;return l&&l.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(r,a)=>(i.openBlock(),i.createElementBlock("div",qj,[i.unref(n)?(i.openBlock(),i.createElementBlock("div",Gj,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).class)},null,2)])):i.createCommentVNode("",!0),i.createElementVNode("div",Kj,[i.renderSlot(r.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),Xj={inheritAttrs:!1},ki=i.defineComponent({...Xj,__name:"CalendarSlot",props:{name:null},setup(t){const n=H5(t.name);return(r,a)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(n)),i.normalizeProps(i.mergeProps({key:0},r.$attrs)),null,16)):i.renderSlot(r.$slots,"default",{key:1})}}),Jj={class:"vc-day-popover-container"},Qj={key:0,class:"vc-day-popover-header"},eq=i.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:r,masks:a,locale:s}=rs();function o(d,h){return s.value.formatDate(d,h)}function l(d){return s.value.formatDate(d.date,a.value.dayPopover)}return(d,h)=>(i.openBlock(),i.createBlock(m0,{id:i.unref(e),class:i.normalizeClass([`vc-${i.unref(r)}`,`vc-${i.unref(n)}`])},{default:i.withCtx(({data:{day:f,attributes:m},hide:g})=>[i.createVNode(ki,{name:"day-popover",day:f,"day-title":l(f),attributes:m,format:o,masks:i.unref(a),hide:g},{default:i.withCtx(()=>[i.createElementVNode("div",Jj,[i.unref(a).dayPopover?(i.openBlock(),i.createElementBlock("div",Qj,i.toDisplayString(l(f)),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,y=>(i.openBlock(),i.createBlock(Zj,{key:y.key,attribute:y},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),tq={},nq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},iq=[i.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function rq(t,e){return i.openBlock(),i.createElementBlock("svg",nq,iq)}const aq=pa(tq,[["render",rq]]),sq={},oq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},lq=[i.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function cq(t,e){return i.openBlock(),i.createElementBlock("svg",oq,lq)}const dq=pa(sq,[["render",cq]]),uq={},hq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},fq=[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function pq(t,e){return i.openBlock(),i.createElementBlock("svg",hq,fq)}const mq=pa(uq,[["render",pq]]),gq={},yq={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},bq=[i.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function vq(t,e){return i.openBlock(),i.createElementBlock("svg",yq,bq)}const _q=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:mq,IconChevronLeft:dq,IconChevronRight:aq,IconClock:pa(gq,[["render",vq]])},Symbol.toStringTag,{value:"Module"})),po=i.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=i.computed(()=>e.width||e.size),r=i.computed(()=>e.height||e.size),a=i.computed(()=>_q[`Icon${e.name}`]);return(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(a)),{width:i.unref(n),height:i.unref(r),class:"vc-base-icon"},null,8,["width","height"]))}}),wq=["disabled"],kq={key:1,class:"vc-title-wrapper"},xq={type:"button",class:"vc-title"},Cq=["disabled"],Y5=i.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:n,navVisibility:r,canMovePrev:a,movePrev:s,canMoveNext:o,moveNext:l}=rs(),d=i.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=i.computed(()=>{const{page:w}=e;return{id:n.value,visibility:r.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:w},isInteractive:!0}}),f=i.computed(()=>e.page.titlePosition.includes("left")),m=i.computed(()=>e.page.titlePosition.includes("right")),g=i.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),y=i.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),_=i.computed(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(w,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:i.normalizeStyle(i.unref(_))},[i.unref(y).prev?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!i.unref(a),onClick:k[0]||(k[0]=(...x)=>i.unref(s)&&i.unref(s)(...x)),onKeydown:k[1]||(k[1]=i.withKeys((...x)=>i.unref(s)&&i.unref(s)(...x),["space","enter"]))},[i.createVNode(ki,{name:"header-prev-button",disabled:!i.unref(a)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,wq)):i.createCommentVNode("",!0),i.unref(y).title?(i.openBlock(),i.createElementBlock("div",kq,[i.createVNode(ki,{name:"header-title-wrapper"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("button",xq,[i.createVNode(ki,{name:"header-title",title:t.page.title},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[i.unref(A5),i.unref(h)]])]),_:1})])):i.createCommentVNode("",!0),i.unref(y).next?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!i.unref(o),onClick:k[2]||(k[2]=(...x)=>i.unref(l)&&i.unref(l)(...x)),onKeydown:k[3]||(k[3]=i.withKeys((...x)=>i.unref(l)&&i.unref(l)(...x),["space","enter"]))},[i.createVNode(ki,{name:"header-next-button",disabled:!i.unref(o)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Cq)):i.createCommentVNode("",!0)],6))}}),U5=Symbol("__vc_page_context__");function Sq(t){const{locale:e,getDateAddress:n,canMove:r}=rs();function a(l,d){const{month:h,year:f}=n(new Date);return B5().map((m,g)=>{const y=g+1;return{month:y,year:l,id:LU(y,l),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:y===t.value.month&&l===t.value.year,isCurrent:y===h&&l===f,isDisabled:!r({month:y,year:l},{position:t.value.position})}})}function s(l,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=l;g<=d;g+=1){const y=[...Array(12).keys()].some(_=>r({month:_+1,year:g},{position:f}));m.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===t.value.year,isCurrent:g===h,isDisabled:!y})}return m}const o={page:t,getMonthItems:a,getYearItems:s};return i.provide(U5,o),o}function j5(){const t=i.inject(U5);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Mq={class:"vc-nav-header"},Bq=["disabled"],Dq=["disabled"],Eq={class:"vc-nav-items"},Oq=["data-id","aria-label","disabled","onClick","onKeydown"],Vq=i.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=rs(),{page:r,getMonthItems:a,getYearItems:s}=j5(),o=i.ref(!0),l=12,d=i.ref(r.value.year),h=i.ref(g(r.value.year)),f=i.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const fe=f.value.querySelector(".vc-nav-item:not(:disabled)");fe&&fe.focus()},10)}function g(fe){return Math.floor(fe/l)}function y(){o.value=!o.value}function _(fe){return fe*l}function w(fe){return l*(fe+1)-1}function k(){he.value&&(o.value&&M(),S())}function x(){pe.value&&(o.value&&O(),V())}function M(){d.value--}function O(){d.value++}function S(){h.value--}function V(){h.value++}const T=i.computed(()=>a(d.value,e.value.navMonths).map(fe=>({...fe,click:()=>n({month:fe.month,year:fe.year},{position:r.value.position})}))),N=i.computed(()=>a(d.value-1,e.value.navMonths)),A=i.computed(()=>N.value.some(fe=>!fe.isDisabled)),R=i.computed(()=>a(d.value+1,e.value.navMonths)),W=i.computed(()=>R.value.some(fe=>!fe.isDisabled)),ie=i.computed(()=>s(_(h.value),w(h.value)).map(fe=>({...fe,click:()=>{d.value=fe.year,o.value=!0,m()}}))),G=i.computed(()=>s(_(h.value-1),w(h.value-1))),re=i.computed(()=>G.value.some(fe=>!fe.isDisabled)),ye=i.computed(()=>s(_(h.value+1),w(h.value+1))),ee=i.computed(()=>ye.value.some(fe=>!fe.isDisabled)),Z=i.computed(()=>o.value?T.value:ie.value),he=i.computed(()=>o.value?A.value:re.value),pe=i.computed(()=>o.value?W.value:ee.value),J=i.computed(()=>Yb(ie.value.map(fe=>fe.year))),H=i.computed(()=>oo(ie.value.map(fe=>fe.year))),ge=i.computed(()=>o.value?d.value:`${J.value} - ${H.value}`);return i.watchEffect(()=>{d.value=r.value.year,m()}),i.watch(()=>d.value,fe=>h.value=g(fe)),i.onMounted(()=>m()),(fe,$e)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[i.createElementVNode("div",Mq,[i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!i.unref(he),onClick:k,onKeydown:$e[0]||($e[0]=Ve=>i.unref(Mu)(Ve,k))},[i.createVNode(ki,{name:"nav-prev-button",move:k,disabled:!i.unref(he)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Bq),i.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:y,onKeydown:$e[1]||($e[1]=Ve=>i.unref(Mu)(Ve,y))},i.toDisplayString(i.unref(ge)),33),i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!i.unref(pe),onClick:x,onKeydown:$e[2]||($e[2]=Ve=>i.unref(Mu)(Ve,x))},[i.createVNode(ki,{name:"nav-next-button",move:x,disabled:!i.unref(pe)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Dq)]),i.createElementVNode("div",Eq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Z),Ve=>(i.openBlock(),i.createElementBlock("button",{key:Ve.label,type:"button","data-id":Ve.id,"aria-label":Ve.ariaLabel,class:i.normalizeClass(["vc-nav-item vc-focus",[Ve.isActive?"is-active":Ve.isCurrent?"is-current":""]]),disabled:Ve.isDisabled,onClick:Ve.click,onKeydown:_e=>i.unref(Mu)(_e,Ve.click)},i.toDisplayString(Ve.label),43,Oq))),128))])],512))}}),q5=i.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return Sq(i.toRef(e,"page")),(n,r)=>i.renderSlot(n.$slots,"default")}}),$q=i.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:r}=rs();return(a,s)=>(i.openBlock(),i.createBlock(m0,{id:i.unref(e),class:i.normalizeClass(["vc-nav-popover-container",`vc-${i.unref(n)}`,`vc-${i.unref(r)}`])},{default:i.withCtx(({data:o})=>[i.createVNode(q5,{page:o.page},{default:i.withCtx(()=>[i.createVNode(ki,{name:"nav"},{default:i.withCtx(()=>[i.createVNode(Vq)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),Tq=i.defineComponent({directives:{popover:A5},components:{CalendarSlot:ki},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:r,dayPopoverId:a,onDayClick:s,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=rs(),m=i.computed(()=>t.day),g=i.computed(()=>r.value.getCells(m.value)),y=i.computed(()=>g.value.map(ee=>ee.data)),_=i.computed(()=>({...m.value,attributes:y.value,attributeCells:g.value}));function w({data:ee},{popovers:Z}){const{key:he,customData:pe,popover:J}=ee;if(!J)return;const H=Eb({key:he,customData:pe,attribute:ee},{...J},{visibility:J.label?"hover":"click",placement:"bottom",isInteractive:!J.label});Z.splice(0,0,H)}const k=i.computed(()=>{const ee={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(Z=>{n.value.render(Z,ee),w(Z,ee)}),ee}),x=i.computed(()=>k.value.highlights),M=i.computed(()=>!!Mr(x.value)),O=i.computed(()=>k.value.content),S=i.computed(()=>k.value.dots),V=i.computed(()=>!!Mr(S.value)),T=i.computed(()=>k.value.bars),N=i.computed(()=>!!Mr(T.value)),A=i.computed(()=>k.value.popovers),R=i.computed(()=>A.value.map(ee=>ee.attribute)),W=H5("day-content"),ie=i.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!W},{"is-not-in-month":!t.day.inMonth}]),G=i.computed(()=>{let ee;m.value.isFocusable?ee="0":ee="-1";const Z=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},ns(oo(x.value),"contentClass"),ns(oo(O.value),"class")||""],he={...ns(oo(x.value),"contentStyle"),...ns(oo(O.value),"style")};return{class:Z,style:he,tabindex:ee,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),re=i.computed(()=>({click(ee){s(_.value,ee)},mouseenter(ee){o(_.value,ee)},mouseleave(ee){l(_.value,ee)},focusin(ee){d(_.value,ee)},focusout(ee){h(_.value,ee)},keydown(ee){f(_.value,ee)}})),ye=i.computed(()=>Mr(A.value)?Eb({id:a.value,data:{day:m,attributes:R.value}},...A.value):null);return{attributes:y,attributeCells:g,bars:T,dayClasses:ie,dayContentProps:G,dayContentEvents:re,dayPopover:ye,glyphs:k,dots:S,hasDots:V,hasBars:N,highlights:x,hasHighlights:M,locale:e,popovers:A}}}),Iq={key:0,class:"vc-highlights vc-day-layer"},Aq={key:1,class:"vc-day-layer vc-day-box-center-bottom"},Nq={class:"vc-dots"},Lq={key:2,class:"vc-day-layer vc-day-box-center-bottom"},zq={class:"vc-bars"};function Pq(t,e,n,r,a,s){const o=i.resolveComponent("CalendarSlot"),l=i.resolveDirective("popover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.dayClasses)},[t.hasHighlights?(i.openBlock(),i.createElementBlock("div",Iq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(h)},[i.createElementVNode("div",{class:i.normalizeClass(f),style:i.normalizeStyle(m)},null,6)],2))),128))])):i.createCommentVNode("",!0),i.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(t.dayContentProps,i.toHandlers(t.dayContentEvents,!0)),[i.createTextVNode(i.toDisplayString(t.day.label),1)],16)),[[l,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(i.openBlock(),i.createElementBlock("div",Aq,[i.createElementVNode("div",Nq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.dots,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0),t.hasBars?(i.openBlock(),i.createElementBlock("div",Lq,[i.createElementVNode("div",zq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.bars,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0)],2)}const Rq=pa(Tq,[["render",Pq]]),Fq={class:"vc-weekdays"},Hq=["onClick"],Wq={inheritAttrs:!1},Yq=i.defineComponent({...Wq,__name:"CalendarPage",setup(t){const{page:e}=j5(),{onWeeknumberClick:n}=rs();return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-pane",`row-${i.unref(e).row}`,`row-from-end-${i.unref(e).rowFromEnd}`,`column-${i.unref(e).column}`,`column-from-end-${i.unref(e).columnFromEnd}`]),ref:"pane"},[i.createVNode(Y5,{page:i.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),i.createElementVNode("div",{class:i.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${i.unref(e).weeknumberPosition}`]:i.unref(e).weeknumberPosition}])},[i.createElementVNode("div",Fq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).weekdays,({weekday:s,label:o},l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(`vc-weekday vc-weekday-${s}`)},i.toDisplayString(o),3))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).viewWeeks,s=>(i.openBlock(),i.createElementBlock("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[i.unref(e).weeknumberPosition?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["vc-weeknumber",`is-${i.unref(e).weeknumberPosition}`])},[i.createElementVNode("span",{class:i.normalizeClass(["vc-weeknumber-content"]),onClick:o=>i.unref(n)(s,o)},i.toDisplayString(s.weeknumberDisplay),9,Hq)],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.days,o=>(i.openBlock(),i.createBlock(Rq,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),Uq=i.defineComponent({components:{CalendarHeader:Y5,CalendarPage:Yq,CalendarNavPopover:$q,CalendarDayPopover:eq,CalendarPageProvider:q5,CalendarSlot:ki},props:Hj,emit:Wj,setup(t,{emit:e,slots:n}){return Yj(t,{emit:e,slots:n})}}),jq={class:"vc-pane-header-wrapper"};function qq(t,e,n,r,a,s){const o=i.resolveComponent("CalendarHeader"),l=i.resolveComponent("CalendarPage"),d=i.resolveComponent("CalendarSlot"),h=i.resolveComponent("CalendarPageProvider"),f=i.resolveComponent("CalendarDayPopover"),m=i.resolveComponent("CalendarNavPopover");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=i.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[i.createElementVNode("div",{class:i.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[i.createElementVNode("div",jq,[t.firstPage?(i.openBlock(),i.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:i.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.pages,g=>(i.openBlock(),i.createBlock(h,{key:g.id,page:g},{default:i.withCtx(()=>[i.createVNode(d,{name:"page",page:g},{default:i.withCtx(()=>[i.createVNode(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),i.createVNode(d,{name:"footer"})],2)],16),i.createVNode(f),i.createVNode(m)],64)}const Gq=pa(Uq,[["render",qq]]),G5=Symbol("__vc_date_picker_context__"),Kq={...z5,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>ha("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>ha("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},Zq=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function Xq(t,{emit:e,slots:n}){F5(n,{footer:"dp-footer"});const r=P5(t),{locale:a,masks:s,disabledAttribute:o}=r,l=i.ref(!1),d=i.ref(Symbol()),h=i.ref(null),f=i.ref(null),m=i.ref(["",""]),g=i.ref(null),y=i.ref(null);let _,w,k=!0;const x=i.computed(()=>t.isRange||t.modelModifiers.range===!0),M=i.computed(()=>x.value&&h.value!=null?h.value.start:null),O=i.computed(()=>x.value&&h.value!=null?h.value.end:null),S=i.computed(()=>t.mode.toLowerCase()==="date"),V=i.computed(()=>t.mode.toLowerCase()==="datetime"),T=i.computed(()=>t.mode.toLowerCase()==="time"),N=i.computed(()=>!!f.value),A=i.computed(()=>{let $="date";t.modelModifiers.number&&($="number"),t.modelModifiers.string&&($="string");const q=s.value.modelValue||"iso";return $e({type:$,mask:q})}),R=i.computed(()=>Qt(f.value??h.value)),W=i.computed(()=>T.value?t.is24hr?s.value.inputTime24hr:s.value.inputTime:V.value?t.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),ie=i.computed(()=>/[Hh]/g.test(W.value)),G=i.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(W.value)),re=i.computed(()=>{if(ie.value&&G.value)return"dateTime";if(G.value)return"date";if(ie.value)return"time"}),ye=i.computed(()=>{var $;const q=(($=g.value)==null?void 0:$.$el.previousElementSibling)??void 0;return rc({},t.popover,ha("datePicker.popover"),{target:q})}),ee=i.computed(()=>$5({...ye.value,id:d.value})),Z=i.computed(()=>x.value?{start:m.value[0],end:m.value[1]}:m.value[0]),he=i.computed(()=>{const $=["start","end"].map(q=>({input:ht(q),change:_t(q),keyup:Jt,...t.popover&&ee.value}));return x.value?{start:$[0],end:$[1]}:$[0]}),pe=i.computed(()=>{if(!nt(h.value))return null;const $={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:q,bar:ce,highlight:Be,content:Xe}=$;return!q&&!ce&&!Be&&!Xe&&($.highlight=!0),$}),J=i.computed(()=>{if(!x.value||!nt(f.value))return null;const $={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:q,bar:ce,highlight:Be,content:Xe}=$;return!q&&!ce&&!Be&&!Xe&&($.highlight={startEnd:{fillMode:"outline"}}),$}),H=i.computed(()=>{const $=wi(t.attributes)?[...t.attributes]:[];return J.value?$.unshift(J.value):pe.value&&$.unshift(pe.value),$}),ge=i.computed(()=>$e(t.rules==="auto"?fe():t.rules??{}));function fe(){const $={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},q=S.value?0:t.timeAccuracy;return[0,1].map(ce=>{switch(q){case 0:return{hours:$.hr[ce],minutes:$.min[ce],seconds:$.sec[ce],milliseconds:$.ms[ce]};case 1:return{minutes:$.min[ce],seconds:$.sec[ce],milliseconds:$.ms[ce]};case 3:return{milliseconds:$.ms[ce]};case 4:return{};default:return{seconds:$.sec[ce],milliseconds:$.ms[ce]}}})}function $e($){return wi($)?$.length===1?[$[0],$[0]]:$:[$,$]}function Ve($){return $e($).map((q,ce)=>({...q,rules:ge.value[ce]}))}function _e($){return $==null?!1:Yi($)?!isNaN($):lo($)?!isNaN($.getTime()):sr($)?$!=="":c0($)}function Le($){return Sr($)&&"start"in $&&"end"in $&&_e($.start??null)&&_e($.end??null)}function nt($){return Le($)||_e($)}function ae($,q){if($==null&&q==null)return!0;if($==null||q==null)return!1;const ce=lo($),Be=lo(q);return ce&&Be?$.getTime()===q.getTime():ce||Be?!1:ae($.start,q.start)&&ae($.end,q.end)}function xe($){return!nt($)||!o.value?!1:o.value.intersectsRange(a.value.range($))}function Ne($,q,ce,Be){if(!nt($))return null;if(Le($)){const Xe=a.value.toDate($.start,{...q[0],fillDate:M.value??void 0,patch:ce}),ft=a.value.toDate($.end,{...q[1],fillDate:O.value??void 0,patch:ce});return Oe({start:Xe,end:ft},Be)}return a.value.toDateOrNull($,{...q[0],fillDate:h.value,patch:ce})}function Ze($,q){return Le($)?{start:a.value.fromDate($.start,q[0]),end:a.value.fromDate($.end,q[1])}:x.value?null:a.value.fromDate($,q[0])}function He($,q={}){return clearTimeout(_),new Promise(ce=>{const{debounce:Be=0,...Xe}=q;Be>0?_=window.setTimeout(()=>{ce(et($,Xe))},Be):ce(et($,Xe))})}function et($,{config:q=A.value,patch:ce="dateTime",clearIfEqual:Be=!1,formatInput:Xe=!0,hidePopover:ft=!1,dragging:$t=N.value,targetPriority:cn,moveToValue:en=!1}={}){const qn=Ve(q);let wt=Ne($,qn,ce,cn);if(xe(wt)){if($t)return null;wt=h.value,ft=!1}else wt==null&&t.isRequired?wt=h.value:wt!=null&&ae(h.value,wt)&&Be&&(wt=null);const Dn=$t?f:h,ai=!ae(Dn.value,wt);Dn.value=wt,$t||(f.value=null);const Ui=Ze(wt,A.value);return ai&&(k=!1,e($t?"drag":"update:modelValue",Ui),i.nextTick(()=>k=!0)),ft&&!$t&&je(),Xe&&dt(),en&&i.nextTick(()=>de(cn??"start")),Ui}function dt(){i.nextTick(()=>{const $=Ve({type:"string",mask:W.value}),q=Ze(f.value??h.value,$);x.value?m.value=[q&&q.start,q&&q.end]:m.value=[q,""]})}function vt($,q,ce){m.value.splice(q==="start"?0:1,1,$);const Be=x.value?{start:m.value[0],end:m.value[1]||m.value[0]}:$,Xe={type:"string",mask:W.value};He(Be,{...ce,config:Xe,patch:re.value,targetPriority:q,moveToValue:!0})}function ht($){return q=>{t.updateOnInput&&vt(q.currentTarget.value,$,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function _t($){return q=>{vt(q.currentTarget.value,$,{formatInput:!0,hidePopover:!1})}}function Jt($){$.key==="Escape"&&He(h.value,{formatInput:!0,hidePopover:!0})}function Qt($){return x.value?[$&&$.start?a.value.getDateParts($.start):null,$&&$.end?a.value.getDateParts($.end):null]:[$?a.value.getDateParts($):null]}function mt(){f.value=null,dt()}function st($){e("popover-will-show",$)}function At($){e("popover-did-show",$)}function Mt($){mt(),e("popover-will-hide",$)}function Ot($){e("popover-did-hide",$)}function Bt($){const q={patch:"date",formatInput:!0,hidePopover:!0};if(x.value){const ce=!N.value;ce?w={start:$.startDate,end:$.endDate}:w!=null&&(w.end=$.date),He(w,{...q,dragging:ce})}else He($.date,{...q,clearIfEqual:!t.isRequired})}function an($,q){Bt($),e("dayclick",$,q)}function Vt($,q){switch(q.key){case" ":case"Enter":{Bt($),q.preventDefault();break}case"Escape":je()}e("daykeydown",$,q)}function le($,q){!N.value||w==null||(w.end=$.date,He(Oe(w),{patch:"date",formatInput:!0}))}function ze($={}){h0({...ye.value,...$,isInteractive:!0,id:d.value})}function je($={}){lc({hideDelay:10,force:!0,...ye.value,...$,id:d.value})}function se($){V5({...ye.value,...$,isInteractive:!0,id:d.value})}function Oe($,q){const{start:ce,end:Be}=$;if(ce>Be)switch(q){case"start":return{start:ce,end:ce};case"end":return{start:Be,end:Be};default:return{start:Be,end:ce}}return{start:ce,end:Be}}async function Se($,q={}){return y.value==null?!1:y.value.move($,q)}async function Y($,q={}){return y.value==null?!1:y.value.moveBy($,q)}async function de($,q={}){const ce=h.value;if(y.value==null||!nt(ce))return!1;const Be=$!=="end",Xe=Be?1:-1,ft=Le(ce)?Be?ce.start:ce.end:ce,$t=o5(ft,"monthly",a.value);return y.value.move($t,{position:Xe,...q})}i.watch(()=>t.isRange,$=>{$&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),i.watch(()=>x.value,()=>{et(null,{formatInput:!0})}),i.watch(()=>W.value,()=>dt()),i.watch(()=>t.modelValue,$=>{k&&et($,{formatInput:!0,hidePopover:!1})}),i.watch(()=>ge.value,()=>{Sr(t.rules)&&et(t.modelValue,{formatInput:!0,hidePopover:!1})}),i.watch(()=>t.timezone,()=>{et(h.value,{formatInput:!0})});const we=$e(A.value);h.value=Ne(t.modelValue??null,we,"dateTime"),i.onMounted(()=>{et(t.modelValue,{formatInput:!0,hidePopover:!1})}),i.nextTick(()=>l.value=!0);const j={...r,showCalendar:l,datePickerPopoverId:d,popoverRef:g,popoverEvents:ee,calendarRef:y,isRange:x,isTimeMode:T,isDateTimeMode:V,is24hr:i.toRef(t,"is24hr"),hideTimeHeader:i.toRef(t,"hideTimeHeader"),timeAccuracy:i.toRef(t,"timeAccuracy"),isDragging:N,inputValue:Z,inputEvents:he,dateParts:R,attributes:H,rules:ge,move:Se,moveBy:Y,moveToValue:de,updateValue:He,showPopover:ze,hidePopover:je,togglePopover:se,onDayClick:an,onDayKeydown:Vt,onDayMouseEnter:le,onPopoverBeforeShow:st,onPopoverAfterShow:At,onPopoverBeforeHide:Mt,onPopoverAfterHide:Ot};return i.provide(G5,j),j}function g0(){const t=i.inject(G5);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const Jq=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],Qq=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function eG(t){const e=g0(),{locale:n,isRange:r,isTimeMode:a,dateParts:s,rules:o,is24hr:l,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(G){G=Object.assign(y.value,G);let re=null;if(r.value){const ye=g.value?G:s.value[0],ee=g.value?s.value[1]:G;re={start:ye,end:ee}}else re=G;f(re,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=i.computed(()=>t.position===0),y=i.computed(()=>s.value[t.position]||{isValid:!1}),_=i.computed(()=>c0(y.value)),w=i.computed(()=>!!y.value.isValid),k=i.computed(()=>!d.value&&w.value),x=i.computed(()=>{if(!_.value)return null;let G=n.value.toDate(y.value);return y.value.hours===24&&(G=new Date(G.getTime()-1)),G}),M=i.computed({get(){return y.value.hours},set(G){m({hours:G})}}),O=i.computed({get(){return y.value.minutes},set(G){m({minutes:G})}}),S=i.computed({get(){return y.value.seconds},set(G){m({seconds:G})}}),V=i.computed({get(){return y.value.milliseconds},set(G){m({milliseconds:G})}}),T=i.computed({get(){return y.value.hours<12},set(G){G=String(G).toLowerCase()=="true";let re=M.value;G&&re>=12?re-=12:!G&&re<12&&(re+=12),m({hours:re})}}),N=i.computed(()=>xj(y.value,o.value[t.position])),A=i.computed(()=>Jq.filter(G=>N.value.hours.some(re=>re.value===G.value))),R=i.computed(()=>Qq.filter(G=>N.value.hours.some(re=>re.value===G.value))),W=i.computed(()=>l.value?N.value.hours:T.value?A.value:R.value),ie=i.computed(()=>{const G=[];return Mr(A.value)&&G.push({value:!0,label:"AM"}),Mr(R.value)&&G.push({value:!1,label:"PM"}),G});return{...e,showHeader:k,timeAccuracy:h,parts:y,isValid:w,date:x,hours:M,minutes:O,seconds:S,milliseconds:V,options:N,hourOptions:W,isAM:T,isAMOptions:ie,is24hr:l}}const tG=["value"],nG=["value","disabled"],iG={key:1,class:"vc-base-sizer","aria-hidden":"true"},rG={inheritAttrs:!1},cc=i.defineComponent({...rG,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,n=i.computed(()=>{const r=e.options.find(a=>a.value===e.modelValue);return r==null?void 0:r.label});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[i.createElementVNode("select",i.mergeProps(r.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:a[0]||(a[0]=s=>r.$emit("update:modelValue",s.target.value))}),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.options,s=>(i.openBlock(),i.createElementBlock("option",{key:s.value,value:s.value,disabled:s.disabled},i.toDisplayString(s.label),9,nG))),128))],16,tG),t.showIcon?(i.openBlock(),i.createBlock(po,{key:0,name:"ChevronDown",size:"18"})):i.createCommentVNode("",!0),t.fitContent?(i.openBlock(),i.createElementBlock("div",iG,i.toDisplayString(i.unref(n)),1)):i.createCommentVNode("",!0)],2))}}),aG={key:0,class:"vc-time-header"},sG={class:"vc-time-weekday"},oG={class:"vc-time-month"},lG={class:"vc-time-day"},cG={class:"vc-time-year"},dG={class:"vc-time-select-group"},uG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),hG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),fG=i.createElementVNode("span",{class:"vc-time-decimal"},".",-1),K5=i.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const r=eG(t);e(r);const{locale:a,isValid:s,date:o,hours:l,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:y,isAM:_,isAMOptions:w,is24hr:k,showHeader:x,timeAccuracy:M}=r;return(O,S)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-time-picker",[{"vc-invalid":!i.unref(s),"vc-attached":!i.unref(y)}]])},[i.createVNode(ki,{name:"time-header"},{default:i.withCtx(()=>[i.unref(x)&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",aG,[i.createElementVNode("span",sG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"WWW")),1),i.createElementVNode("span",oG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"MMM")),1),i.createElementVNode("span",lG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"D")),1),i.createElementVNode("span",cG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"YYYY")),1)])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",dG,[i.createVNode(po,{name:"Clock",size:"17"}),i.createVNode(cc,{modelValue:i.unref(l),"onUpdate:modelValue":S[0]||(S[0]=V=>i.isRef(l)?l.value=V:null),modelModifiers:{number:!0},options:i.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),i.unref(M)>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[uG,i.createVNode(cc,{modelValue:i.unref(d),"onUpdate:modelValue":S[1]||(S[1]=V=>i.isRef(d)?d.value=V:null),modelModifiers:{number:!0},options:i.unref(m).minutes,class:"vc-time-select-minutes","align-left":i.unref(M)===2},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[hG,i.createVNode(cc,{modelValue:i.unref(h),"onUpdate:modelValue":S[2]||(S[2]=V=>i.isRef(h)?h.value=V:null),modelModifiers:{number:!0},options:i.unref(m).seconds,class:"vc-time-select-seconds","align-left":i.unref(M)===3},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[fG,i.createVNode(cc,{modelValue:i.unref(f),"onUpdate:modelValue":S[3]||(S[3]=V=>i.isRef(f)?f.value=V:null),modelModifiers:{number:!0},options:i.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):i.createCommentVNode("",!0),i.unref(k)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(cc,{key:3,modelValue:i.unref(_),"onUpdate:modelValue":S[4]||(S[4]=V=>i.isRef(_)?_.value=V:null),options:i.unref(w)},null,8,["modelValue","options"]))])],2))}}),Z5=i.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:r,displayMode:a,isDateTimeMode:s,isTimeMode:o,isRange:l,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=g0(),m=l.value?[0,1]:[0];return(g,y)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`vc-container vc-bordered vc-${i.unref(r)} vc-${i.unref(a)}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(K5,{key:_,position:_},null,8,["position"]))),128))],2)):(i.openBlock(),i.createBlock(Gq,{key:1,attributes:i.unref(e),ref_key:"calendarRef",ref:n,onDayclick:i.unref(d),onDaymouseenter:i.unref(h),onDaykeydown:i.unref(f)},{footer:i.withCtx(()=>[i.unref(s)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(K5,{key:_,position:_},null,8,["position"]))),128)):i.createCommentVNode("",!0),i.createVNode(ki,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),pG={inheritAttrs:!1},mG=i.defineComponent({...pG,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:r,popoverRef:a,onPopoverBeforeShow:s,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:d}=g0();return(h,f)=>(i.openBlock(),i.createBlock(m0,{id:i.unref(e),placement:"bottom-start",class:i.normalizeClass(`vc-date-picker-content vc-${i.unref(n)} vc-${i.unref(r)}`),ref_key:"popoverRef",ref:a,onBeforeShow:i.unref(s),onAfterShow:i.unref(o),onBeforeHide:i.unref(l),onAfterHide:i.unref(d)},{default:i.withCtx(()=>[i.createVNode(Z5,i.normalizeProps(i.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),gG=i.defineComponent({inheritAttrs:!1,emits:Zq,props:Kq,components:{DatePickerBase:Z5,DatePickerPopover:mG},setup(t,e){const n=Xq(t,e),r=i.reactive(qb(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}});function yG(t,e,n,r,a,s){const o=i.resolveComponent("DatePickerPopover"),l=i.resolveComponent("DatePickerBase");return t.$slots.default?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(t.$slots,"default",i.normalizeProps(i.guardReactiveProps(t.slotCtx))),i.createVNode(o,i.normalizeProps(i.guardReactiveProps(t.$attrs)),null,16)],64)):(i.openBlock(),i.createBlock(l,i.normalizeProps(i.mergeProps({key:1},t.$attrs)),null,16))}const bG=pa(gG,[["render",yG]]),mo=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),y0={components:{VDatePicker:bG,CdsChevron:Vs,CdsIcon:ke},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||mo(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||mo(t)},maxDate:{type:String,default:"",validator:t=>t===""||mo(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:yi,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let t="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:kr,updateColorData(){this.variantColorData=this.paleteBuilder(yi.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=mo(this.modelValue.start)&&mo(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=mo(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||ri.isEmpty(t)?null:`${t.start} a ${t.end}`}}},X5=()=>{i.useCssVars(t=>({"2a014cba":t.inlineCalendarTrailColor,"60dfc8d0":t.inlineCalendarTextColor,"311f6c80":t.inlineCalendarDotColor}))},J5=y0.setup;y0.setup=J5?(t,e)=>(X5(),J5(t,e)):X5;const vG={key:0},_G={key:1,class:"inline-date-input__label"},wG={class:"label__content",for:"cds-text-input"},kG=["value","disabled","placeholder","onClick"],xG={class:"inline-date-input__icon"};function CG(t,e,n,r,a,s){const o=i.resolveComponent("cds-chevron"),l=i.resolveComponent("cds-icon"),d=i.resolveComponent("v-date-picker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["inline-date-input__container",s.dateInputClassContainer])},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",vG,[i.renderSlot(t.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",_G,[i.createElementVNode("div",wG,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel)+": ",1)])]))]),i.createVNode(d,{id:"cds--inline-date-input",modelValue:a.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>a.internalDate=h),s.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?a.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:i.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[i.createElementVNode("div",{class:i.normalizeClass(s.inputClass)},[i.createElementVNode("input",i.mergeProps({value:s.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},i.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>a.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>a.isBeingFocused=!1)}),null,16,kG),i.createElementVNode("div",xG,[i.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const SG=Q(y0,[["render",CG],["__scopeId","data-v-fd91d96d"]]),MG=["onClick"],BG={key:1,class:"list__body"},DG={class:"list__content"},EG={class:"list__actions"},OG={key:1},VG=Q({__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:t=>Fi.includes(t)},clickable:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){i.useCssVars(l=>({c2849558:s.value}));const{isMobile:n}=iu(),r=e,a=t,s=i.computed(()=>a.clickable?"pointer":"");function o(l){!a.clickable&&!n.value||r("click",l)}return(l,d)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"list",onClick:m=>o(h)},[i.unref(Zl)("item")?i.renderSlot(l.$slots,"item",{key:0,item:h},void 0,!0):(i.openBlock(),i.createElementBlock("div",BG,[i.createElementVNode("div",{class:i.normalizeClass(["list__title",`list__title--${t.variant}`])},i.toDisplayString(h.title),3),i.createElementVNode("div",DG,i.toDisplayString(h.content),1)])),i.createElementVNode("div",EG,[i.unref(n)?(i.openBlock(),i.createBlock(ke,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(i.openBlock(),i.createElementBlock("div",OG,[i.renderSlot(l.$slots,"actions",{item:h},void 0,!0)]))])],8,MG))),128))}},[["__scopeId","data-v-59486d91"]]),$G={};function TG(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",null,e[0]||(e[0]=[i.createElementVNode("div",{class:"loading-bar__container"},[i.createElementVNode("div",{class:"loading-bar"})],-1)]))}const IG=Q($G,[["render",TG],["__scopeId","data-v-59f3ef96"]]),AG=Q({__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(t){i.useCssVars(h=>({e0a02066:r.value,"31f71fda":s.value,"51509f9e":a.value}));const e=t,n=i.ref(0),r=i.computed(()=>`${n.value}%`),a=i.computed(()=>n.value===0?"none":"width 0.5s"),s=i.computed(()=>Xa("smartphone")||Xa("tablet")?"4px":"3px");i.watch(()=>e.modelValue,h=>{if(h){o(),l();return}d()});function o(){n.value=1}function l(){if(n.value>0&&n.value<90){if(n.value+=Math.floor(Math.random()*16+10),n.value>=90){n.value=90;return}let h=Math.floor(Math.random()*(e.intervalTime*1.4-e.intervalTime*.5)+e.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`loading-indicator--${t.variant}`)},null,2))}},[["__scopeId","data-v-fe0c8374"]]),NG={class:"mobile-navbar"},LG={class:"mobile-navbar__items"},zG={key:0,class:"mobile-navbar__item-text"},PG=Q({__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:t=>t.length>0&&t.lenght<=5&&t.every(e=>e.route.path&&e.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>({}),required:!0}},emits:["item-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(n.items[0]),s=i.ref(0),o=i.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${s.value*100}%)`})),l=i.computed(()=>{let f="";switch(s.value){case 0:f+="mobile-navbar__indicator--first ";break;case n.items.length-1:f+="mobile-navbar__indicator--last ";break;default:f+="mobile-navbar__indicator ";break}return f.concat(`mobile-navbar__indicator--${n.variant}`)});i.watchEffect(()=>{s.value=n.items.findIndex(f=>f.label===a.value.label)}),i.watch(n.activeItem,f=>{a.value=f}),i.onMounted(()=>a.value=n.activeItem||n.items[0]);function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f){a.value=f,r("item-click",f)}return(f,m)=>{const g=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",NG,[i.createElementVNode("div",LG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,y=>(i.openBlock(),i.createBlock(g,{key:y,class:"mobile-navbar__item-link",to:d(y),onClick:_=>h(y)},{default:i.withCtx(()=>{var _,w;return[i.createElementVNode("div",{class:i.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((_=a.value)==null?void 0:_.label)===y.label,[`mobile-navbar__item--active--${t.variant}`]:((w=a.value)==null?void 0:w.label)===y.label}])},[i.createVNode(ke,{height:"20",width:"20",name:y.icon},null,8,["name"]),t.showLabel?(i.openBlock(),i.createElementBlock("div",zG,i.toDisplayString(y.label),1)):i.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),i.createElementVNode("div",{class:i.normalizeClass(l.value),style:i.normalizeStyle(o.value)},null,6)])])}}},[["__scopeId","data-v-9bc49d6e"]]),RG={class:"mobile-navigation__header"},FG={class:"mobile-navigation__title"},HG={class:"mobile-navigation__sidebar-header"},WG={class:"mobile-navigation__sidebar-logo"},YG=["src"],UG={class:"mobile-navigation__sidebar-content"},jG={class:"mobile-navigation__sidebar-items"},qG={class:"mobile-navigation__sidebar-footer"},GG={class:"mobile-navigation__sidebar-user-text"},KG=Q({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(n.activeItem),s=i.ref(!1),o=i.computed(()=>n.light?"light":"dark"),l=i.computed(()=>{let w=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(w+=" mobile-navigation--sticky"),w});i.watch(s,async(w,k)=>{w!==k&&_(w)}),i.watch(()=>n.activeItem,w=>{a.value=w});const d=()=>{s.value=!0},h=()=>{s.value=!1},f=w=>ri.isEqual(w,a.value),m=w=>{ri.isEmpty(n.activeItem)&&(a.value=w),s.value=!1,r("item-click",w)},g=({route:w,path:k})=>{const x=ri.isEmpty(w)?k:w;return x instanceof String?{path:x}:x},y=w=>g(w)?g(w).path:null,_=w=>{document.body.style.overflow=w?"hidden":"auto"};return(w,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${t.variant}`)},[i.createElementVNode("div",RG,[i.createElementVNode("div",FG,i.toDisplayString(a.value.label??""),1),i.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[i.createVNode(ke,{name:"menu-outline"})])]),i.createElementVNode("div",{class:i.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":s.value}])},[i.createElementVNode("div",HG,[i.createElementVNode("div",WG,[i.renderSlot(w.$slots,"sidebar-logo",{},()=>[i.createElementVNode("img",{src:t.sidebarLogo},null,8,YG)],!0)]),i.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[i.createVNode(ke,{name:"x-outline"})])]),i.createElementVNode("div",UG,[i.createElementVNode("div",jG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,M=>(i.openBlock(),i.createBlock(x,{key:M.label,to:y(M),class:i.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:O=>m(M)},{default:i.withCtx(()=>[i.createVNode(ke,{name:M.icon,width:"24",height:"24"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),i.createElementVNode("div",qG,[i.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>r("profile-click"))},[i.createVNode(cl,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),i.createElementVNode("div",GG,[i.createElementVNode("p",null,i.toDisplayString(t.user.name??""),1),i.createElementVNode("p",null,i.toDisplayString(t.user.role??""),1)])]),i.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=M=>r("logout"))},[i.createVNode(ke,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),ZG=["teal","green","blue","indigo","violet","pink","red","orange","amber"],XG={components:{CdsIcon:ke,CdsButton:ei,CdsScrollable:ed},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Título"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>ZG.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)},cancelHandle(){this.noCloseCancelButton||(this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)),this.$emit("cancel")}}},JG={key:0,class:"cds-modal__backdrop"},QG={key:0},eK={class:"cds-modal__header"},tK={key:1,class:"cds-modal__body"},nK={key:1,class:"cds-modal__footer"};function iK(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-scrollable"),d=i.resolveComponent("cds-button"),h=i.resolveDirective("cds-click-outside");return a.innerValue?(i.openBlock(),i.createElementBlock("div",JG,[a.innerValue?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("header",QG,[i.renderSlot(t.$slots,"header",{},()=>[i.createElementVNode("div",eK,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),n.noCloseButton?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),i.createElementVNode("section",null,[n.scrollable?(i.openBlock(),i.createBlock(l,{key:0,class:"cds-modal__body"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(i.openBlock(),i.createElementBlock("div",tK,[i.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",nK,[i.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:s.cancelHandle())},null,8,["text","disabled"])),i.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:s.closeHandle]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const Q5=Q(XG,[["render",iK],["__scopeId","data-v-57e87b69"]]),rK={ref:"monthAndYearPicker",class:"month-and-year-picker"},aK={class:"month-and-year-picker__icon"},sK={class:"dropdown__header"},oK=Q({__name:"MonthAndYearPicker",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){i.useCssVars(V=>({"2f8edad3":V.dateInputContainerWidth,"8869d91a":i.unref(J3),"3eb18a02":i.unref(X3)}));const e=i.useModel(t,"modelValue"),n=t,r=i.ref(!1),a=i.ref("down"),s=i.ref(ue.now().setLocale("pt-BR")),{clickedOutside:o,setTargetElement:l}=e4(),d=i.useTemplateRef("monthAndYearPicker"),h=i.computed(()=>s.value.toFormat("yyyy")),f=i.computed(()=>s.value.toFormat("MMMM/yyyy")),m=i.computed(()=>ue.fromFormat(n.minDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.minDate:ue.fromFormat(`${h.value}-01-01`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd")),g=i.computed(()=>ue.fromFormat(n.maxDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.maxDate:ue.fromFormat(`${h.value}-12-31`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd"));i.watch(o,V=>{V&&r.value&&(r.value=!1)}),i.watch(d,V=>{V&&l(V)});function y(V){s.value=s.value?s.value:ue.now().setLocale("pt-BR").toFormat("dd/MM/yyyy"),r.value=!r.value;let[T,N,A]=s.value.toFormat("dd/MM/yyyy").split("/");N=V.index,s.value=ue.fromObject({year:A,month:N}).setLocale("pt-BR"),e.value=s.value.toFormat("yyyy-MM")}const _=i.computed(()=>n.minDate?ue.fromFormat(n.minDate,"yyyy-MM-dd"):null),w=i.computed(()=>n.maxDate?ue.fromFormat(n.maxDate,"yyyy-MM-dd"):null);function k(){return _.value?s.value.minus({year:1}).startOf("year")>=_.value.startOf("year"):!0}function x(){return w.value?s.value.plus({year:1}).startOf("year")<=w.value.startOf("year"):!0}function M(){k()&&(s.value=s.value.minus({year:1}))}function O(){x()&&(s.value=s.value.plus({year:1}))}function S(){n.disabled||(a.value=Z3(d,340,n.mobile||n.floatingLabel),r.value=!r.value)}return(V,T)=>(i.openBlock(),i.createElementBlock("div",rK,[i.createVNode(ca,i.mergeProps({ref:"baseInput"},n,{modelValue:f.value,"onUpdate:modelValue":T[0]||(T[0]=N=>f.value=N),type:"text","floating-label":t.floatingLabel||t.mobile,readonly:!0,onClick:S}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",aK,[i.createVNode(ke,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label"]),i.createVNode(i.Transition,{name:"month-and-year-picker-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`month-and-year-picker__dropdown--${a.value}`),onMousedown:T[2]||(T[2]=i.withModifiers((...N)=>V.handleCalendarMouseDown&&V.handleCalendarMouseDown(...N),["prevent"]))},[i.createElementVNode("div",sK,[i.createElementVNode("span",{class:"dropdown__month-and-title--no-hover",onClick:T[1]||(T[1]=(...N)=>V.toggleYearPickerDisplay&&V.toggleYearPickerDisplay(...N))},i.toDisplayString(h.value),1),i.createVNode(Dt,null,{default:i.withCtx(()=>[i.createVNode(ke,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["dropdown__right-caret",{"dropdown__caret--disabled":!k()}]),onClick:M},null,8,["class"]),i.createVNode(ke,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["dropdown__left-caret",{"dropdown__caret--disabled":!x()}]),onClick:O},null,8,["class"])]),_:1})]),i.createVNode(Q3,{ref:"monthPicker","selected-date":e.value,"min-date":m.value,"max-date":g.value,variant:t.variant,onClick:y},null,8,["selected-date","min-date","max-date","variant"])],34),[[i.vShow,r.value]])]),_:1})],512))}},[["__scopeId","data-v-a5ed7b60"]]),lK={ref:"cds-select",class:"select"},cK={key:0,class:"option__container"},dK=["onMouseover"],uK={key:1,class:"option__container"},hK={__name:"Select",props:i.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inválido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object]},modelModifiers:{}}),emits:i.mergeModels({...la},["update:modelValue"]),setup(t,{expose:e,emit:n}){var Le,nt;i.useCssVars(ae=>({"46fb8e6a":ie.value,"4b29257c":A.value}));const r=i.useModel(t,"modelValue"),a=t,s=n,o=i.ref(0),l=i.ref(!1),d=i.ref(null),h=i.ref(!1),f=i.ref([]),m=i.ref([]),g=i.ref({value:"",id:""}),y=i.ref(""),_=i.ref("down"),w=i.ref(qr()),k=i.useTemplateRef("baseInput"),x=i.useTemplateRef("cds-select"),M=i.useTemplateRef("select-options"),O=i.ref({}),{emitClick:S,emitFocus:V,emitBlur:T,emitKeydown:N}=oa(s),A=i.computed(()=>a.mobile?"9px":"6px"),R=i.computed(()=>{let ae="";const xe=a.mobile?"select__mobile-input":"select__input";return ae+=` ${xe}--${jh.find(Ne=>Ne===a.width)}`,ae+=a.fluid?` ${xe}--fluid`:` ${xe}--fit`,ae+=a.searchable?` ${xe}--searchable`:"",ae}),W=i.computed(()=>({"select__options--thin":a.width==="thin","select__options--default":a.width==="default","select__options--wide":a.width==="wide","select__options--fluid":a.fluid,"select__options--down":_.value==="down","select__options--up":_.value==="up"})),ie=i.computed(()=>a.fluid?"100%":"fit-content"),G=i.computed(()=>jh.some(ae=>ae===a.width)||a.fluid);i.watch(()=>a.searchable,(ae,xe)=>{ae!==xe&&(h.value=ae)},{immediate:!0}),i.watch(()=>a.options,(ae,xe)=>{ae!==xe&&(f.value=ae,m.value=ae)},{immediate:!0}),i.watch(r,(ae,xe)=>{ae!==xe&&ae!==g.value&&(ae instanceof Object?g.value=ae:g.value={id:ae,value:ae})},{immediate:!0}),i.watch(g,ae=>{ae===r.value||f.value.filter(Ne=>JSON.stringify(Ne)===JSON.stringify(ae)).length===0||(a.returnValue?r.value=ae[a.optionsField]:r.value=ae)},{deep:!0}),i.onMounted(()=>{d.value=`cds-select-${w.value}`,y.value=x.value});function re(){const ae=ec(g.value[a.optionsField]),xe=new RegExp(ae,"i");f.value=a.options.filter(Ne=>ec(Ne[a.optionsField]).search(xe)>=0)}function ye(){a.disabled||(_e(),i.nextTick().then(()=>{const ae=f.value[o.value];O.value[`${ae[a.optionsField]}-${o.value}`].classList.add("highlight")}),V())}function ee(){a.disabled||(l.value=!l.value,_e(),typeof f.value[o.value]>"u"?f.value=m.value:g.value=sl(f.value[o.value]),k.value.blur())}function Z(){let ae=y.value.getBoundingClientRect();ae.top+ae.height+286<window.innerHeight?_.value="down":_.value="up",!a.disabled&&(l.value=!l.value,S(),k.value.focus())}function he(){g.value=a.options.some(ae=>{var xe,Ne;return((xe=ae[a.optionsField])==null?void 0:xe.toLowerCase())===((Ne=g.value[a.optionsField])==null?void 0:Ne.toLowerCase())})?g.value:{},f.value=m.value,l.value=!1,T()}function pe(){g.value=sl(f.value[o.value])}function J(ae){const xe=f.value[ae];return O.value[`${xe[a.optionsField]}-${ae}`]}function H(ae,xe,Ne){const Ze=ae.getBoundingClientRect(),He=M.value,et=He.getBoundingClientRect();Ne==="up"&&Ze.top<=et.top&&(He.scrollTop+=xe),Ne==="down"&&Ze.top>=et.bottom&&(He.scrollTop+=xe)}function ge(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const ae=J(o.value),xe=J(o.value-1);ae.classList.add("highlight"),xe.classList.remove("highlight"),H(ae,37,"down")}function fe(){if(!l.value||o.value===0)return;const ae=J(o.value),xe=J(o.value-1);ae.classList.remove("highlight"),xe.classList.add("highlight"),H(ae,-37,"up"),o.value-=1}function $e(ae){o.value=ae,J(o.value).classList.add("highlight")}function Ve(){J(o.value).classList.remove("highlight")}function _e(){f.value.forEach((ae,xe)=>{const Ne=f.value[xe];O.value[`${Ne[a.optionsField]}-${xe}`].classList.remove("highlight")})}return e({componentRef:(Le=k.value)==null?void 0:Le.componentRef,isFocused:(nt=k.value)==null?void 0:nt.isFocused,focus:()=>{var ae;return(ae=k.value)==null?void 0:ae.focus()},blur:()=>{var ae;return(ae=k.value)==null?void 0:ae.blur()},clear:()=>{var ae;return(ae=k.value)==null?void 0:ae.clear()},select:()=>{var ae;return(ae=k.value)==null?void 0:ae.select()}}),(ae,xe)=>(i.openBlock(),i.createElementBlock("div",lK,[i.createElementVNode("div",{class:i.normalizeClass(["select__container",t.fluid?"select__container--fluid":"select__container--fit"])},[i.createVNode(ca,i.mergeProps({id:ae.$attrs.id||d.value,ref:"baseInput"},{...ae.$attrs,...a},{modelValue:g.value[t.optionsField],"onUpdate:modelValue":xe[0]||(xe[0]=Ne=>g.value[t.optionsField]=Ne),type:"text",autocomplete:"off",onkeypress:`return ${h.value};`,placeholder:t.placeholder,disabled:t.disabled,readonly:!t.searchable,"support-link-url":t.supportLinkUrl||t.linkUrl,"support-link":t.supportLink||t.linkText,"floating-label":t.floatingLabel||t.mobile,class:R.value,fluid:G.value,onKeydown:[i.withKeys(i.withModifiers(ee,["prevent"]),["enter"]),i.withKeys(i.withModifiers(ge,["prevent"]),["arrow-down"]),i.withKeys(i.withModifiers(fe,["prevent"]),["arrow-up"]),i.unref(N)],onClick:Z,onInput:re,onFocus:ye,onBlur:he}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(l.value?"select__chevron--opened":"select__chevron--closed")},null,2)]),_:1},16,["id","modelValue","onkeypress","placeholder","disabled","readonly","support-link-url","support-link","floating-label","class","fluid","onKeydown"]),i.withDirectives(i.createElementVNode("div",{ref:"select-options",class:i.normalizeClass(["select__options",W.value])},[f.value.length>0?(i.openBlock(),i.createElementBlock("ul",cK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(Ne,Ze)=>(i.openBlock(),i.createElementBlock("li",{key:Ne.id||Ne,ref_for:!0,ref:He=>{O.value[`${Ne[t.optionsField]}-${Ze}`]=He},class:"option__text",onMousedown:pe,onMouseover:He=>$e(Ze),onMouseout:xe[1]||(xe[1]=He=>Ve())},i.toDisplayString(Ne[t.optionsField]),41,dK))),128))])):(i.openBlock(),i.createElementBlock("ul",uK,xe[2]||(xe[2]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,l.value]])],2)],512))}},ev=Q(hK,[["__scopeId","data-v-335b0e1c"]]),fK={class:"multi-file-input"},pK={class:"multi-file-input__file-container"},mK={class:"multi-file-input__box"},gK={class:"multi-file-input__badges_section"},yK={class:"multi-file-input__badge-content"},bK={key:0,class:"multi-file-input__empty-state"},vK={key:1,class:"multi-file-input__list-container"},_K={class:"multi-file-input__list"},wK={class:"multi-file-input__actions"},kK={key:0,class:"multi-file-input__alert"},xK={class:"multi-file-input__footer"},CK=Q({__name:"MultiFileInput",props:{documents:{type:Array,required:!0},variant:{type:String,default:"green"},submitButtonText:{type:String,default:"Enviar"},buttonSecondary:{type:Boolean,default:!1}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(0),s=i.ref({}),o=i.ref([]),l=i.ref(n.documents.map(x=>({id:Xl(),value:x.name,required:x.required,active:!1,file:null}))),d=i.computed(()=>o.value.filter(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id}).map(x=>x.selectedLabel.id)),h=i.computed(()=>{const x={},M=[];return d.value.forEach(O=>{x[O]?x[O]+=1:x[O]=1}),Object.keys(x).forEach(O=>{x[O]>1&&M.push(O)}),M}),f=i.computed(()=>w()&&h.value.length==0&&k());i.watch(()=>o.value,()=>{l.value.forEach(x=>{x.active=d.value.includes(x.id)})},{deep:!0});function m(x){x.name&&(o.value.push({file:x,selectedLabel:null}),a.value+=1,s.value=null)}function g(x){const M=o.value.indexOf(x);M>-1&&o.value.splice(M,1)}function y(x){var M;return h.value.includes((M=x.selectedLabel)==null?void 0:M.id)}function _(){r("submit",o.value)}function w(){return o.value.every(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(x=>x.required).every(x=>x.active)}return(x,M)=>(i.openBlock(),i.createElementBlock("div",fK,[i.createElementVNode("div",pK,[(i.openBlock(),i.createBlock(u4,i.mergeProps({key:a.value,modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=O=>s.value=O)},x.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),i.createElementVNode("div",mK,[M[2]||(M[2]=i.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),i.createElementVNode("div",gK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,O=>(i.openBlock(),i.createBlock(Am,{key:O,variant:O.active?t.variant:"gray"},{default:i.withCtx(()=>[i.createElementVNode("div",yK,[O.active?(i.openBlock(),i.createBlock(ke,{key:0,name:"check-outline",height:"16",width:"16"})):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(O.value)+" "+i.toDisplayString(O.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(i.openBlock(),i.createElementBlock("div",bK," Os arquivos adicionados serão exibidos aqui ")):(i.openBlock(),i.createElementBlock("div",vK,[M[1]||(M[1]=i.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),i.createElementVNode("div",_K,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,O=>(i.openBlock(),i.createElementBlock("div",{key:O,class:"multi-file-input__list-item"},[i.createElementVNode("div",{class:i.normalizeClass(["multi-file-input__item",`multi-file-input__item--${t.variant}`])},[i.createTextVNode(i.toDisplayString(O.file.name)+" ",1),i.createElementVNode("div",null,[i.createElementVNode("div",wK,[i.createVNode(ev,{modelValue:O.selectedLabel,"onUpdate:modelValue":S=>O.selectedLabel=S,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),i.createVNode(uu,{icon:"trash-outline",size:"lg",onClick:S=>g(O)},null,8,["onClick"])]),y(O)?(i.openBlock(),i.createElementBlock("div",kK," Arquivo duplicado. ")):i.createCommentVNode("",!0)])],2)]))),128))])])),i.createElementVNode("div",xK,[i.createVNode(ei,{secondary:t.buttonSecondary,variant:t.variant,disabled:!f.value,onButtonClick:_},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}},[["__scopeId","data-v-c736096e"]]);function b0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function SK(t){return(...e)=>!t(...e)}function MK(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function tv(t,e,n,r){return e?t.filter(a=>MK(r(a,n),e)).sort((a,s)=>r(a,n).length-r(s,n).length):t}function BK(t){return t.filter(e=>!e.$isLabel)}function v0(t,e){return n=>n.reduce((r,a)=>a[t]&&a[t].length?(r.push({$groupLabel:a[e],$isLabel:!0}),r.concat(a[t])):r,[])}function DK(t,e,n,r,a){return s=>s.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=tv(o[n],t,e,a);return l.length?{[r]:o[r],[n]:l}:[]})}const nv=(...t)=>e=>t.reduce((n,r)=>r(n),e);var EK={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return b0(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):tv(n,e,this.label,this.customLabel):n=this.groupValues?v0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(SK(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return nv(DK(e,n,this.groupValues,this.groupLabel,this.customLabel),v0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return nv(v0(this.groupValues,this.groupLabel),BK)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(b0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return b0(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],r=this.internalValue.filter(a=>n.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",r)}else{let n=e[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},OK={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},iv={name:"vue-multiselect",mixins:[EK,OK],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const VK={ref:"tags",class:"multiselect__tags"},$K={class:"multiselect__tags-wrap"},TK={class:"multiselect__spinner"},IK={key:0},AK={class:"multiselect__option"},NK={class:"multiselect__option"},LK=i.createTextVNode("No elements found. Consider changing the search query."),zK={class:"multiselect__option"},PK=i.createTextVNode("List is empty.");function RK(t,e,n,r,a,s){return i.openBlock(),i.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=i.withKeys(i.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=i.withKeys(i.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=i.withKeys(i.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=i.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[i.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[i.createVNode("div",{onMousedown:e[1]||(e[1]=i.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(t.$slots,"clear",{search:t.search}),i.createVNode("div",VK,[i.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:s.visibleValues,isOpen:t.isOpen},()=>[i.withDirectives(i.createVNode("div",$K,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.visibleValues,(o,l)=>i.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(i.openBlock(),i.createBlock("span",{class:"multiselect__tag",key:l},[i.createVNode("span",{textContent:i.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),i.createVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:i.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[i.vShow,s.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?i.renderSlot(t.$slots,"limit",{key:0},()=>[i.createVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"loading",{},()=>[i.withDirectives(i.createVNode("div",TK,null,512),[[i.vShow,n.loading]])])]),_:3}),t.searchable?(i.openBlock(),i.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:s.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=i.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=i.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=i.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=i.withKeys(i.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=i.withKeys(i.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=i.withKeys(i.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=i.withKeys(i.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):i.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(i.openBlock(),i.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=i.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[i.renderSlot(t.$slots,"singleLabel",{option:s.singleValue},()=>[i.createTextVNode(i.toDisplayString(t.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(i.openBlock(),i.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=i.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[i.renderSlot(t.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect"},{default:i.withCtx(()=>[i.withDirectives(i.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=i.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[i.createVNode("ul",{class:"multiselect__content",style:s.contentStyle,role:"listbox",id:"listbox-"+t.id},[i.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(i.openBlock(),i.createBlock("li",IK,[i.createVNode("span",AK,[i.renderSlot(t.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(i.openBlock(!0),i.createBlock(i.Fragment,{key:1},i.renderList(t.filteredOptions,(o,l)=>(i.openBlock(),i.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock("span",{key:0,class:[t.optionHighlight(l,o),"multiselect__option"],onClick:i.withModifiers(d=>t.select(o),["stop"]),onMouseenter:i.withModifiers(d=>t.pointerSet(l),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[i.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[i.createVNode("span",null,i.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(i.openBlock(),i.createBlock("span",{key:1,"data-select":t.groupSelect&&s.selectGroupLabelText,"data-deselect":t.groupSelect&&s.deselectGroupLabelText,class:[t.groupHighlight(l,o),"multiselect__option"],onMouseenter:i.withModifiers(d=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:i.withModifiers(d=>t.selectGroup(o),["prevent"])},[i.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[i.createVNode("span",null,i.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):i.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createVNode("li",null,[i.createVNode("span",NK,[i.renderSlot(t.$slots,"noResult",{search:t.search},()=>[LK])])],512),[[i.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),i.withDirectives(i.createVNode("li",null,[i.createVNode("span",zK,[i.renderSlot(t.$slots,"noOptions",{},()=>[PK])])],512),[[i.vShow,n.showNoOptions&&(t.options.length===0||s.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),i.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[i.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}iv.render=RK;const go=0,yo=1,Lu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),_0={components:{Multiselect:iv,CdsDivider:ol,CdsCheckbox:ru,CdsSpacer:tu},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},state:{type:String,default:"default"},options:{type:Array,required:!0,default:()=>[]},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:Lu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:yi,uniqueKey:qr()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} opções selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer seleção":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais opções"},isGroupMode(){return this.internalOptions[go]&&this.internalOptions[go].$status||this.internalOptions[yo]&&this.internalOptions[yo].$status},attrs(){const{label:t,trackBy:e,options:n,...r}=this.$attrs;return r},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(t){const e=Lu(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){if(this.hideSelectAll)return;const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[go].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[yo].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[go].options=this.internalOptions[go].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[yo].options=this.internalOptions[yo].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Lu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=Lu(this.options);t=t.map(e=>(this.selectedValue.some(r=>r[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[go].options=this.selectedValue,this.internalOptions[yo].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},rv=()=>{i.useCssVars(t=>({c756d324:t.inputBackgroundColor,"1ad913b3":t.resolveMultiselectHeight,"4bf72a49":t.resolveMultiselectTop}))},av=_0.setup;_0.setup=av?(t,e)=>(rv(),av(t,e)):rv;const FK=["data-cds-multiselect-identifier"],HK={key:0},WK=["for"],YK={key:0,class:"label__required-indicator"},UK={key:1,class:"cds-multiselect__grouped-divider"},jK={key:0,class:"cds-multiselect__group-label"},qK={key:1,class:"cds-multiselect__option"},GK={class:"option__checkbox"},KK=["id","onUpdate:modelValue","name"],ZK=["id","for","onClick"],XK={key:0,class:"multiselect__single"},JK={key:1},QK={key:0,class:"clustered-multiselect__error-message"};function eZ(t,e,n,r,a,s){const o=i.resolveComponent("cds-checkbox"),l=i.resolveComponent("cds-spacer"),d=i.resolveComponent("cds-divider"),h=i.resolveComponent("multiselect",!0);return i.openBlock(),i.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":a.uniqueKey},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",HK,[i.renderSlot(t.$slots,"label")])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[i.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${a.uniqueKey}`},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",YK," * ")):i.createCommentVNode("",!0)],8,WK)],2))]),i.createVNode(h,i.mergeProps({id:`clustered-multiselect-${a.uniqueKey}`,ref:"cds-multiselect"},s.attrs,{modelValue:a.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>a.selectedValue=f),options:a.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":a.groupValues,"group-label":a.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:s.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:s.handleClose,onSelect:s.selectItem,onRemove:s.unselectItem,onSearchChange:s.handleSearchChange}),{beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,[n.hideSelectAll?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>s.toggleSelectAll&&s.toggleSelectAll(...f))},[i.createVNode(l,{"margin-left":"2"},{default:i.withCtx(()=>[i.createVNode(o,{id:`select-all-input-id-${a.uniqueKey}`,modelValue:a.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>a.selectAllValue=f),label:s.selectAllFancyMessage,indeterminate:a.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),s.isGroupMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",UK,[i.createVNode(d,{dimmed:""})]))],512),[[i.vShow,!a.queryString&&n.options.length]])]),option:i.withCtx(({option:f})=>[f.$isLabel?(i.openBlock(),i.createElementBlock("div",jK,[i.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(i.openBlock(),i.createElementBlock("div",qK,[i.createElementVNode("div",GK,[i.withDirectives(i.createElementVNode("input",{id:`input-${f[n.optionsField]}-${a.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${a.uniqueKey}`,value:!0},null,8,KK),[[i.vModelCheckbox,f.isSelected]]),i.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${a.uniqueKey}`,class:i.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>s.addItemViaCustomCheckbox(f)},null,10,ZK)]),i.createTextVNode(" "+i.toDisplayString(f[n.optionsField]),1)]))]),selection:i.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(i.openBlock(),i.createElementBlock("span",XK,i.toDisplayString(s.selectedFancyMessage(f.length)),1)):(i.openBlock(),i.createElementBlock("span",JK))]),noResult:i.withCtx(()=>[e[3]||(e[3]=i.createTextVNode(' Nenhum resultado encontrado para: "')),i.createElementVNode("strong",null,i.toDisplayString(a.queryString),1),e[4]||(e[4]=i.createTextVNode('" '))]),noOptions:i.withCtx(()=>e[5]||(e[5]=[i.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",QK,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)],8,FK)}const tZ=Q(_0,[["render",eZ]]),nZ={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const r=ln(n.path)&&ln(n.route),a=ln(n.items)||n.items.filter(s=>ln(s.path)&&ln(s.route)).length;return ln(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Fi.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Fi}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Xs,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return Qs(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=ln(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},iZ={id:"nav-bar"};function rZ(t,e,n,r,a,s){const o=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",iZ,[i.createElementVNode("ul",{class:i.normalizeClass({"nav-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,d)=>(i.openBlock(),i.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:i.normalizeClass(["nav-bar__item-container",s.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[i.createVNode(o,{to:s.routerPushTo(l),class:i.normalizeClass(["nav-bar__item",s.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>s.handleClick(h,l)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(l)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)],2))),128))],2)])}const aZ=Q(nZ,[["render",rZ]]),sZ={mounted(t,e){const n=s=>{if(s==0)return"R$ 0,00";if(!s)return"";let o=String(s).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let r=!1;const a=s=>{if(r)return;r=!0;let o=String(s.target.value||""),l=o.replace(/\D/g,""),d=parseFloat(l)/100;const h=n(o);s.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),t.dispatchEvent(f),r=!1};t.addEventListener("input",a),t.value=n(e.value||""),t._inputHandler=a},updated(t,e){const n=r=>{if(!r)return"";let a=String(r).replace(/\D/g,"");return(parseFloat(a)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};t.value=n(e.value||"")},unmounted(t){t._inputHandler&&t.removeEventListener("input",t._inputHandler)}},sv=t=>{let e=t.replace("R$","");return e=e.replaceAll(".",""),e=e.replace(/(.*),(\d{2})/g,"$1.$2"),+e},oZ={__name:"NumberInput",props:i.mergeModels({label:{type:String,default:"Valor"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},supportingText:{type:[String,Array],default:""},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Number,String]},modelModifiers:{},unmaskedValue:{type:[Number,String,null]},unmaskedValueModifiers:{}}),emits:i.mergeModels({...la},["update:modelValue","update:unmaskedValue"]),setup(t,{expose:e,emit:n}){var M,O;const r=Ql,a=i.useTemplateRef("baseInput"),s=i.useModel(t,"modelValue"),o=i.useModel(t,"unmaskedValue"),l=t,d=n,h=i.ref(""),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:_}=oa(d);let w={};i.watch(s,(S,V)=>{S!==V&&(h.value=S)},{immediate:!0}),i.watch(h,(S,V)=>{if(S!==V){let T=String(S);l.money?(o.value=sv(T),s.value=T):l.mask?(h.value=T,s.value=T,o.value=+T.replace(/\D/g,"")):T.length>15?h.value=+T.slice(0,15):(s.value=+T,o.value=+T)}}),i.onMounted(()=>{l.money&&a.value&&a.value.componentRef&&(w={value:s.value,oldValue:"",instance:a.value.componentRef,modifiers:{},arg:null},sZ.mounted(a.value.componentRef,w))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),g()}function x(){s.value=h.value,m()}return e({componentRef:(M=a.value)==null?void 0:M.componentRef,isFocused:(O=a.value)==null?void 0:O.isFocused,focus:()=>{var S;return(S=a.value)==null?void 0:S.focus()},blur:()=>{var S;return(S=a.value)==null?void 0:S.blur()},clear:()=>{var S;return(S=a.value)==null?void 0:S.clear()},select:()=>{var S;return(S=a.value)==null?void 0:S.select()}}),(S,V)=>(i.openBlock(),i.createElementBlock("div",null,[t.money?(i.openBlock(),i.createBlock(ca,i.mergeProps({key:0,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=T=>h.value=T),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):t.mask?i.withDirectives((i.openBlock(),i.createBlock(ca,i.mergeProps({key:1,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[1]||(V[1]=T=>h.value=T),type:"tel","floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[i.unref(r),t.mask]]):(i.openBlock(),i.createBlock(ca,i.mergeProps({key:2,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[2]||(V[2]=T=>h.value=T),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,type:"number",onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}},lZ={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},cZ={class:"overlay"};function dZ(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",cZ,[i.createElementVNode("div",{class:i.normalizeClass(s.computedSpinnerClass)},null,2)])}const uZ=Q(lZ,[["render",dZ],["__scopeId","data-v-2022bd33"]]),hZ={},fZ={class:"page-container__container"};function pZ(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",fZ,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const ov=Q(hZ,[["render",pZ],["__scopeId","data-v-2f5908a0"]]),w0={directives:{cdstip:al},components:{CdsIcon:ke,CdsAvatar:cl,CdsRichTooltip:Bf,CdsPopover:ll},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const r=ln(n.path)&&ln(n.route),a=ln(n.items)||n.items.filter(s=>ln(s.path)&&ln(s.route)).length;return ln(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},showProfileMenu:{type:Boolean,default:!1},profileMenuItems:{type:Array,default:()=>[]},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsibleState:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:Fi,expandItemControl:0,itemsWithVisibilityController:[],logoutTooltipText:"Sair",showPopover:!1,showSearchButtonShortCut:!0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"},collapsedTooltipClass(){return this.collapsed?"Maximizar":"Minimizar"},shouldShowProfileMenu(){var t;return this.showProfileMenu&&((t=this.profileMenuItems)==null?void 0:t.length)>0},avatarCursorResolver(){return this.shouldShowProfileMenu?"pointer":"default"},computedSearchButtonJustify(){return this.collapsed?"center":"space-between"}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},collapsibleState:{handler(t){this.collapsed=t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0},collapsed(t){if(t){this.showUncollapsedItems=!1,this.showSearchButtonShortCut=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500),setTimeout(()=>{this.showSearchButtonShortCut=!0},250)}},created(){this.internalActiveItem=this.activeItem,this.collapsed=this.collapsibleState,this.items.forEach((t,e)=>{this.itemsWithVisibilityController.push({name:t.label,index:e,show:!1})})},methods:{colorHexCode:Xs,handleClick(t,e){if(!Qs(this.internalActiveItem,e)){this.internalActiveItem=e,this.showUncollapsedItems=!0,this.expandItemControl+=1;return}if(e.items&&e.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}e.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return t.items&&t.items.length>0&&(e=t.items.some(r=>Qs(r,this.internalActiveItem))),n=Qs(this.internalActiveItem,t),e||n},resolveRoute({route:t,path:e}){const n=ln(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},handleCollapse(){this.$emit("collapse-click",!this.collapsed),this.collapsed=!this.collapsed},resolveItemCollapse(t){return!!t.items&&t.items.length>0&&this.isActive(t)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(t){return this.resolveItemCollapse(t)?"caret-up-outline":"caret-down-outline"},handleProfileMenuOptionClick(t){this.$emit("profile-menu-option-click",t),this.showPopover=!1},handleLogoClick(){this.$emit("logo-click")}}},lv=()=>{i.useCssVars(t=>({"3043686a":t.avatarCursorResolver,"5b550093":t.computedSearchButtonJustify}))},cv=w0.setup;w0.setup=cv?(t,e)=>(lv(),cv(t,e)):lv;const mZ={class:"side-bar__header"},gZ=["src"],yZ={class:"search-button__text-container"},bZ={key:0},vZ=["onMouseleave"],_Z=["onClick"],wZ=["id","onMouseover"],kZ={class:"side-bar__subitem-container"},xZ={class:"side-bar__subitems"},CZ=["href","target","onClick"],SZ={key:0,class:"side-bar__subitem-link"},MZ={key:1},BZ={class:"side-bar__subitems--collapsed"},DZ={class:"side-bar__tooltip-title"},EZ=["href","onClick"],OZ={key:0,class:"side-bar__subitem-link"},VZ={key:0},$Z={key:0},TZ={class:"dropdown-button__dropdown"},IZ=["onClick"],AZ={class:"dropdown__text"};function NZ(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("router-link"),d=i.resolveComponent("cds-rich-tooltip"),h=i.resolveComponent("cds-avatar"),f=i.resolveComponent("cds-popover"),m=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.mainClass)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${n.variant}`)},[i.createElementVNode("div",mZ,[i.createElementVNode("div",{class:"side-bar__logo",onClick:e[0]||(e[0]=(...g)=>s.handleLogoClick&&s.handleLogoClick(...g))},[a.collapsed?i.createCommentVNode("",!0):i.renderSlot(t.$slots,"logo",{key:0},()=>[i.createElementVNode("img",{src:n.logoImage},null,8,gZ)])]),n.collapsible?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:e[1]||(e[1]=(...g)=>s.handleCollapse&&s.handleCollapse(...g))},[a.collapsed?(i.openBlock(),i.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(i.openBlock(),i.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])),[[m,s.collapsedTooltipClass]]):i.createCommentVNode("",!0)]),n.searchButton?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":n.light}]),onClick:e[2]||(e[2]=g=>t.$emit("search-button-click"))},[i.createElementVNode("div",yZ,[i.createVNode(o,{height:"20",width:"20",name:"search-outline"}),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",bZ,"Busca")):i.createCommentVNode("",!0)]),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":n.light}])}," Ctrl + K ",2)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass({"side-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(g,y)=>(i.openBlock(),i.createElementBlock("li",{key:`${y}-${g.name}-item`,role:"presentation",onMouseleave:_=>a.itemsWithVisibilityController[y].show=!1},[i.createElementVNode("div",{class:i.normalizeClass(["side-bar__item-container",s.isActive(g)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:_=>s.handleClick(_,g)},[g.items||g.type==="link"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,id:g.label,class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:_=>a.itemsWithVisibilityController[y].show=!0},[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)]),g.items&&g.items.length>0?(i.openBlock(),i.createBlock(o,{key:a.expandItemControl,name:s.resolveCollapsibleItemIcon(g),class:i.normalizeClass({item__caret:s.isActive(g)}),width:"16",height:"16"},null,8,["name","class"])):i.createCommentVNode("",!0)],42,wZ)),[[m,a.collapsed&&g.type==="link"?g.label:null]]):i.withDirectives((i.openBlock(),i.createBlock(l,{key:1,to:s.routerPushTo(g),class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:_=>s.handleClick(_,g)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)])]),_:2},1032,["to","class","onClick"])),[[m,a.collapsed?g.label:null]])],10,_Z),a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.Transition,{key:0,name:"collapse"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",kZ,[i.createElementVNode("div",xZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:i.normalizeClass(["side-bar__subitem",s.isActive(_)&&(_==null?void 0:_.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:(_==null?void 0:_.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",SZ,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],10,CZ))),128))])],512),[[i.vShow,s.resolveItemCollapse(g)]])]),_:2},1024)),g.items&&a.collapsed?(i.openBlock(),i.createElementBlock("div",MZ,[i.createVNode(d,{modelValue:a.itemsWithVisibilityController[y].show,"onUpdate:modelValue":_=>a.itemsWithVisibilityController[y].show=_,"target-id":g.label,"default-placement":"bottom-start",width:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",BZ,[i.createElementVNode("p",DZ,i.toDisplayString(g.label),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:"side-bar__subitem",href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",OZ,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],8,EZ))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):i.createCommentVNode("",!0)],40,vZ))),128))],2)],2),i.createElementVNode("div",{class:i.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[i.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:e[3]||(e[3]=i.withModifiers(g=>a.showPopover=!a.showPopover,["stop"]))},[i.createVNode(h,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",VZ,[i.createElementVNode("p",null,i.toDisplayString(n.userName),1),i.createElementVNode("p",null,i.toDisplayString(n.userRole),1)]))]),_:1})]),i.createElementVNode("ul",null,[n.showLogout?i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[4]||(e[4]=g=>t.$emit("logout",!0))},[i.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])),[[m,a.logoutTooltipText]]):i.createCommentVNode("",!0)]),s.shouldShowProfileMenu?(i.openBlock(),i.createElementBlock("div",$Z,[i.createVNode(f,{modelValue:a.showPopover,"onUpdate:modelValue":e[5]||(e[5]=g=>a.showPopover=g),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",TZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.profileMenuItems,(g,y)=>(i.openBlock(),i.createElementBlock("div",{key:y},[i.createElementVNode("div",{class:"dropdown__container",onClick:_=>s.handleProfileMenuOptionClick(g)},[i.createVNode(o,{class:"dropdown__icon",height:"22",width:"22",name:g.icon},null,8,["name"]),i.createElementVNode("span",AZ,i.toDisplayString(g.name),1)],8,IZ)]))),128))])]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)],2)],2)}const dv=Q(w0,[["render",NZ]]),LZ={class:"secondary-navigation__container"},zZ={class:"secondary-navigation__content"},PZ={key:1},RZ=["onClick","onMouseover"],FZ={class:"secondary-navigation__content"},HZ={key:1},uv=Q({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(n.activeItem.key),s=i.ref(null),o=i.ref(0),l=i.computed(()=>n.light?"light":"dark");i.watch(n.activeItem,w=>{a.value=w.key});const d=w=>{o.value=w},h=w=>{if(!w.route)return null;const{path:k,name:x}=w.route;return k instanceof String?{path:k}:{name:x}},f=w=>{g(w.key)||(s.value=null,a.value=w.key,r("item-click",w.key))},m=w=>a.value===w,g=w=>n.items.find(k=>{var x;return k.key===w&&((x=k==null?void 0:k.subitems)==null?void 0:x.length)>0}),y=(w,k)=>{s.value=w,a.value=k,r("item-click",w)},_=w=>s.value===w;return(w,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[i.createElementVNode("div",LZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,M=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:M.key},[g(M.key)?(i.openBlock(),i.createElementBlock("div",PZ,[i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:O=>f(M),onMouseover:O=>d(M.key),onMouseleave:k[0]||(k[0]=O=>d(-1))},[i.createElementVNode("div",FZ,[i.createTextVNode(i.toDisplayString(M.label)+" ",1),M.key!==o.value?(i.openBlock(),i.createBlock(ke,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(i.openBlock(),i.createElementBlock("div",HZ,[i.createVNode(ke,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(M.subitems,O=>(i.openBlock(),i.createBlock(x,{key:O.key,to:h(O),class:i.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":_(O.key)}]),onClick:S=>y(O.key,M.key)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(O.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):i.createCommentVNode("",!0)])],42,RZ)])):(i.openBlock(),i.createBlock(x,{key:0,class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:O=>f(M)},{default:i.withCtx(()=>[i.createElementVNode("div",zZ,i.toDisplayString(M.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=i.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=i.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),WZ={class:"page-layout"},YZ={class:"page-layout__content"},UZ=Q({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},showProfileMenu:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},profileMenuItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","popover-item-click","navigation-item-click"],setup(t,{emit:e}){i.useCssVars(o=>({"36685eea":s.value}));const n=t,r=e,a=i.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),s=i.computed(()=>a.value?"54px":"0px");return(o,l)=>{var d;return i.openBlock(),i.createElementBlock("div",WZ,[i.createVNode(dv,{variant:t.variant,"active-item":t.sideBarActiveItem,light:t.light,"user-name":t.user.name??"","user-role":t.user.role??"","user-picture":t.user.picture??null,collapsible:t.collapsibleSideBar,items:t.sideBarItems,"logo-image":t.logos.default,"collapsed-logo-image":t.logos.collapsed,"show-profile-menu":t.showProfileMenu,"profile-menu-items":t.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>r("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>r("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>r("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>r("sidebar-settings",h))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image","show-profile-menu","profile-menu-items"]),i.createElementVNode("div",YZ,[((d=t.navigationItems)==null?void 0:d.length)>0?(i.openBlock(),i.createBlock(uv,{key:0,light:t.light,"active-item":t.navigationActiveItem,items:t.navigationItems,onItemClick:l[4]||(l[4]=h=>r("navigation-item-click",h))},null,8,["light","active-item","items"])):i.createCommentVNode("",!0),i.createVNode(ov,{class:"page-layout__container"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),jZ={components:{CdsLink:Jl},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=(n=this.subtitle)==null?void 0:n.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},qZ={class:"page-header__title"},GZ={key:0,class:"d-flex"},KZ={class:"page-header__subtitle"},ZZ={key:1,class:"page-header__subtitle"},XZ={class:"page-header__aside-slot"};function JZ(t,e,n,r,a,s){const o=i.resolveComponent("cds-link");return i.openBlock(),i.createElementBlock("header",{class:i.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[i.createElementVNode("div",null,[i.createElementVNode("p",qZ,i.toDisplayString(n.title),1),a.splitedSubtitle.length>0?(i.openBlock(),i.createElementBlock("div",GZ,[i.createElementVNode("span",KZ,[i.createTextVNode(i.toDisplayString(a.splitedSubtitle[0])+" ",1),i.createVNode(o,{href:a.url,bold:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.fancyUrl),1)]),_:1},8,["href"]),i.createTextVNode(" "+i.toDisplayString(a.splitedSubtitle[1]),1)])])):(i.openBlock(),i.createElementBlock("div",ZZ,i.toDisplayString(n.subtitle),1))]),i.createElementVNode("div",XZ,[i.renderSlot(t.$slots,"aside")])],2)}const QZ=Q(jZ,[["render",JZ]]);class jn{constructor(e,n,r,a=null){this.index=e,this.value=n,this.selected=r,this.text=a||n}}const eX={components:{CdsChevron:Vs},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new jn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new jn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?gf("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new jn(0,"first",!1,"<<"),new jn(1,"back",!1,"<"),...this.mountPagesArray(),new jn(7,"forward",!1,">"),new jn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new jn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const r=this.selectedPage.value-4+n;e[n-2]=new jn(n+1,r,this.selectedPage.value===r)}return e}for(let n=2;n<t;n++){const r=this.pageCount-6+n;e[n-2]=new jn(n,r,this.selectedPage.value===r)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new jn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new jn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new jn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new jn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new jn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},tX=["onClick"],nX={key:3};function iX(t,e,n,r,a,s){const o=i.resolveComponent("cds-chevron");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.computedContainerClass)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.pages,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(s.resolveButtonClass(l)),onClick:h=>s.handlePageClick(l)},[d===0?(i.openBlock(),i.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===0?(i.openBlock(),i.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===1?(i.openBlock(),i.createBlock(o,{key:2,direction:"left"})):i.createCommentVNode("",!0),d>=2&&d<=a.pages.length-3?(i.openBlock(),i.createElementBlock("span",nX,i.toDisplayString(l.text),1)):i.createCommentVNode("",!0),d===a.pages.length-2?(i.openBlock(),i.createBlock(o,{key:4,direction:"right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0)],10,tX))),128))],2)}const rX=Q(eX,[["render",iX],["__scopeId","data-v-c81c79f6"]]),aX={components:{CdsBox:Gl,CdsDivider:ol},props:{title:{type:String,default:"Título",required:!0},subtitle:{type:String,default:"Subtítulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},sX={class:"panel-card__header"},oX={class:"panel-card__title"},lX={class:"panel-card__subtitle"};function cX(t,e,n,r,a,s){const o=i.resolveComponent("cds-divider"),l=i.resolveComponent("cds-box");return i.openBlock(),i.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",sX,[i.createElementVNode("div",null,[i.createElementVNode("span",oX,i.toDisplayString(n.title),1),e[0]||(e[0]=i.createElementVNode("br",null,null,-1)),i.createElementVNode("span",lX,i.toDisplayString(n.subtitle),1)]),i.createElementVNode("div",null,[i.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),i.createVNode(o,{dimmed:""}),i.createElementVNode("div",{class:i.normalizeClass(s.contentClass)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const dX=Q(aX,[["render",cX],["__scopeId","data-v-e1c5a182"]]),uX={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){let t="";switch(this.state){case"valid":t="pin-input--valid";break;case"invalid":t="pin-input--invalid";break;default:t="pin-input"}return this.mobile?`${t} pin-input--mobile`:t}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.innerValue.splice(e-1,1,t.key),e<this.length&&this.$refs[`pin-input${e+1}`][0].focus(),e===this.length&&this.$emit("update:modelValue",this.innerValue.join(""))}}},hX={class:"pin-input__container"},fX=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function pX(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",hX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.length,(o,l)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{id:`pin-input${o}`,key:l,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>a.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:i.normalizeClass(["pin-input",s.computedClass]),autocomplete:"off",onKeydown:i.withKeys(i.withModifiers(d=>s.handleBack(o),["stop"]),["delete"]),onKeypress:d=>s.changeInputContent(d,o),onInput:d=>s.handleInput(d,o),onFocus:d=>s.fixCursorPosition(o)},null,42,fX)),[[i.vModelDynamic,a.innerValue[o-1]]])),128))])}const mX=Q(uX,[["render",pX],["__scopeId","data-v-4e202c49"]]),k0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},hv=()=>{i.useCssVars(t=>({bf5feb56:t.textDirection}))},fv=k0.setup;k0.setup=fv?(t,e)=>(hv(),fv(t,e)):hv;const gX={class:"progress-bar"},yX={class:"progress-bar__content"};function bX(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",gX,[n.showText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},i.toDisplayString(s.formatedvalue),3)):i.createCommentVNode("",!0),i.createElementVNode("div",yX,[i.createElementVNode("div",{class:i.normalizeClass(`progress-bar__indicator--${n.variant}`),style:i.normalizeStyle(s.progressIndicatorStyle)},null,6)])])}const vX=Q(k0,[["render",bX],["__scopeId","data-v-d3a3d8d6"]]),_X={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Xs}},wX=["stroke-width"],kX=["stroke-dasharray","stroke-width"];function xX(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[i.createElementVNode("path",{class:"progress-circular__ring-background","stroke-width":s.stroke,d:`M18 2.0845
69
+ }`;var qe=O6(function(){return pt(E,Me+"return "+oe).apply(n,I)});if(qe.source=oe,Sp(qe))throw qe;return qe}function $se(c){return yt(c).toLowerCase()}function Tse(c){return yt(c).toUpperCase()}function Ise(c,u,p){if(c=yt(c),c&&(p||u===n))return Pv(c);if(!c||!(u=li(u)))return c;var b=Gi(c),C=Gi(u),E=Rv(b,C),I=Fv(b,C)+1;return Ea(b,E,I).join("")}function Ase(c,u,p){if(c=yt(c),c&&(p||u===n))return c.slice(0,Wv(c)+1);if(!c||!(u=li(u)))return c;var b=Gi(c),C=Fv(b,Gi(u))+1;return Ea(b,0,C).join("")}function Nse(c,u,p){if(c=yt(c),c&&(p||u===n))return c.replace(Or,"");if(!c||!(u=li(u)))return c;var b=Gi(c),C=Rv(b,Gi(u));return Ea(b,C).join("")}function Lse(c,u){var p=W,b=ie;if(Ut(u)){var C="separator"in u?u.separator:C;p="length"in u?Ue(u.length):p,b="omission"in u?li(u.omission):b}c=yt(c);var E=c.length;if(Ao(c)){var I=Gi(c);E=I.length}if(p>=E)return c;var z=p-No(b);if(z<1)return b;var F=I?Ea(I,0,z).join(""):c.slice(0,z);if(C===n)return F+b;if(I&&(z+=F.length-z),Mp(C)){if(c.slice(z).search(C)){var te,ne=F;for(C.global||(C=H0(C.source,yt(un.exec(C))+"g")),C.lastIndex=0;te=C.exec(ne);)var oe=te.index;F=F.slice(0,oe===n?z:oe)}}else if(c.indexOf(li(C),z)!=z){var ve=F.lastIndexOf(C);ve>-1&&(F=F.slice(0,ve))}return F+b}function zse(c){return c=yt(c),c&&ft.test(c)?c.replace(Be,fte):c}var Pse=Wo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Ep=V_("toUpperCase");function E6(c,u,p){return c=yt(c),u=p?n:u,u===n?lte(c)?gte(c):Qee(c):c.match(u)||[]}var O6=Ge(function(c,u){try{return mn(c,n,u)}catch(p){return Sp(p)?p:new Fe(p)}}),Rse=Fr(function(c,u){return Bi(u,function(p){p=ur(p),Pr(c,p,xp(c[p],c))}),c});function Fse(c){var u=c==null?0:c.length,p=Te();return c=u?Ft(c,function(b){if(typeof b[1]!="function")throw new Di(o);return[p(b[0]),b[1]]}):[],Ge(function(b){for(var C=-1;++C<u;){var E=c[C];if(mn(E[0],this,b))return mn(E[1],this,b)}})}function Hse(c){return fne(Oi(c,m))}function Op(c){return function(){return c}}function Wse(c,u){return c==null||c!==c?u:c}var Yse=T_(),Use=T_(!0);function Xn(c){return c}function Vp(c){return c_(typeof c=="function"?c:Oi(c,m))}function jse(c){return u_(Oi(c,m))}function qse(c,u){return h_(c,Oi(u,m))}var Gse=Ge(function(c,u){return function(p){return Pc(p,c,u)}}),Kse=Ge(function(c,u){return function(p){return Pc(c,p,u)}});function $p(c,u,p){var b=gn(u),C=ah(u,b);p==null&&!(Ut(u)&&(C.length||!b.length))&&(p=u,u=c,c=this,C=ah(u,gn(u)));var E=!(Ut(p)&&"chain"in p)||!!p.chain,I=Wr(c);return Bi(C,function(z){var F=u[z];c[z]=F,I&&(c.prototype[z]=function(){var te=this.__chain__;if(E||te){var ne=c(this.__wrapped__),oe=ne.__actions__=Gn(this.__actions__);return oe.push({func:F,args:arguments,thisArg:c}),ne.__chain__=te,ne}return F.apply(c,xa([this.value()],arguments))})}),c}function Zse(){return Ke._===this&&(Ke._=kte),this}function Tp(){}function Xse(c){return c=Ue(c),Ge(function(u){return f_(u,c)})}var Jse=dp(Ft),Qse=dp(Iv),eoe=dp(A0);function V6(c){return yp(c)?N0(ur(c)):One(c)}function toe(c){return function(u){return c==null?n:vs(c,u)}}var noe=A_(),ioe=A_(!0);function Ip(){return[]}function Ap(){return!1}function roe(){return{}}function aoe(){return""}function soe(){return!0}function ooe(c,u){if(c=Ue(c),c<1||c>pe)return[];var p=ge,b=Vn(c,ge);u=Te(u),c-=ge;for(var C=P0(b,u);++p<c;)u(p);return C}function loe(c){return We(c)?Ft(c,ur):ci(c)?[c]:Gn(X_(yt(c)))}function coe(c){var u=++_te;return yt(c)+u}var doe=uh(function(c,u){return c+u},0),uoe=up("ceil"),hoe=uh(function(c,u){return c/u},1),foe=up("floor");function poe(c){return c&&c.length?rh(c,Xn,Z0):n}function moe(c,u){return c&&c.length?rh(c,Te(u,2),Z0):n}function goe(c){return Lv(c,Xn)}function yoe(c,u){return Lv(c,Te(u,2))}function boe(c){return c&&c.length?rh(c,Xn,ep):n}function voe(c,u){return c&&c.length?rh(c,Te(u,2),ep):n}var _oe=uh(function(c,u){return c*u},1),woe=up("round"),koe=uh(function(c,u){return c-u},0);function xoe(c){return c&&c.length?z0(c,Xn):0}function Coe(c,u){return c&&c.length?z0(c,Te(u,2)):0}return B.after=jre,B.ary=l6,B.assign=Tae,B.assignIn=k6,B.assignInWith=Ch,B.assignWith=Iae,B.at=Aae,B.before=c6,B.bind=xp,B.bindAll=Rse,B.bindKey=d6,B.castArray=rae,B.chain=a6,B.chunk=fie,B.compact=pie,B.concat=mie,B.cond=Fse,B.conforms=Hse,B.constant=Op,B.countBy=xre,B.create=Nae,B.curry=u6,B.curryRight=h6,B.debounce=f6,B.defaults=Lae,B.defaultsDeep=zae,B.defer=qre,B.delay=Gre,B.difference=gie,B.differenceBy=yie,B.differenceWith=bie,B.drop=vie,B.dropRight=_ie,B.dropRightWhile=wie,B.dropWhile=kie,B.fill=xie,B.filter=Sre,B.flatMap=Dre,B.flatMapDeep=Ere,B.flatMapDepth=Ore,B.flatten=t6,B.flattenDeep=Cie,B.flattenDepth=Sie,B.flip=Kre,B.flow=Yse,B.flowRight=Use,B.fromPairs=Mie,B.functions=Uae,B.functionsIn=jae,B.groupBy=Vre,B.initial=Die,B.intersection=Eie,B.intersectionBy=Oie,B.intersectionWith=Vie,B.invert=Gae,B.invertBy=Kae,B.invokeMap=Tre,B.iteratee=Vp,B.keyBy=Ire,B.keys=gn,B.keysIn=Zn,B.map=bh,B.mapKeys=Xae,B.mapValues=Jae,B.matches=jse,B.matchesProperty=qse,B.memoize=_h,B.merge=Qae,B.mergeWith=x6,B.method=Gse,B.methodOf=Kse,B.mixin=$p,B.negate=wh,B.nthArg=Xse,B.omit=ese,B.omitBy=tse,B.once=Zre,B.orderBy=Are,B.over=Jse,B.overArgs=Xre,B.overEvery=Qse,B.overSome=eoe,B.partial=Cp,B.partialRight=p6,B.partition=Nre,B.pick=nse,B.pickBy=C6,B.property=V6,B.propertyOf=toe,B.pull=Aie,B.pullAll=i6,B.pullAllBy=Nie,B.pullAllWith=Lie,B.pullAt=zie,B.range=noe,B.rangeRight=ioe,B.rearg=Jre,B.reject=Pre,B.remove=Pie,B.rest=Qre,B.reverse=wp,B.sampleSize=Fre,B.set=rse,B.setWith=ase,B.shuffle=Hre,B.slice=Rie,B.sortBy=Ure,B.sortedUniq=qie,B.sortedUniqBy=Gie,B.split=Dse,B.spread=eae,B.tail=Kie,B.take=Zie,B.takeRight=Xie,B.takeRightWhile=Jie,B.takeWhile=Qie,B.tap=pre,B.throttle=tae,B.thru=yh,B.toArray=v6,B.toPairs=S6,B.toPairsIn=M6,B.toPath=loe,B.toPlainObject=w6,B.transform=sse,B.unary=nae,B.union=ere,B.unionBy=tre,B.unionWith=nre,B.uniq=ire,B.uniqBy=rre,B.uniqWith=are,B.unset=ose,B.unzip=kp,B.unzipWith=r6,B.update=lse,B.updateWith=cse,B.values=jo,B.valuesIn=dse,B.without=sre,B.words=E6,B.wrap=iae,B.xor=ore,B.xorBy=lre,B.xorWith=cre,B.zip=dre,B.zipObject=ure,B.zipObjectDeep=hre,B.zipWith=fre,B.entries=S6,B.entriesIn=M6,B.extend=k6,B.extendWith=Ch,$p(B,B),B.add=doe,B.attempt=O6,B.camelCase=pse,B.capitalize=B6,B.ceil=uoe,B.clamp=use,B.clone=aae,B.cloneDeep=oae,B.cloneDeepWith=lae,B.cloneWith=sae,B.conformsTo=cae,B.deburr=D6,B.defaultTo=Wse,B.divide=hoe,B.endsWith=mse,B.eq=Zi,B.escape=gse,B.escapeRegExp=yse,B.every=Cre,B.find=Mre,B.findIndex=Q_,B.findKey=Pae,B.findLast=Bre,B.findLastIndex=e6,B.findLastKey=Rae,B.floor=foe,B.forEach=s6,B.forEachRight=o6,B.forIn=Fae,B.forInRight=Hae,B.forOwn=Wae,B.forOwnRight=Yae,B.get=Bp,B.gt=dae,B.gte=uae,B.has=qae,B.hasIn=Dp,B.head=n6,B.identity=Xn,B.includes=$re,B.indexOf=Bie,B.inRange=hse,B.invoke=Zae,B.isArguments=ks,B.isArray=We,B.isArrayBuffer=hae,B.isArrayLike=Kn,B.isArrayLikeObject=tn,B.isBoolean=fae,B.isBuffer=Oa,B.isDate=pae,B.isElement=mae,B.isEmpty=gae,B.isEqual=yae,B.isEqualWith=bae,B.isError=Sp,B.isFinite=vae,B.isFunction=Wr,B.isInteger=m6,B.isLength=kh,B.isMap=g6,B.isMatch=_ae,B.isMatchWith=wae,B.isNaN=kae,B.isNative=xae,B.isNil=Sae,B.isNull=Cae,B.isNumber=y6,B.isObject=Ut,B.isObjectLike=Gt,B.isPlainObject=Uc,B.isRegExp=Mp,B.isSafeInteger=Mae,B.isSet=b6,B.isString=xh,B.isSymbol=ci,B.isTypedArray=Uo,B.isUndefined=Bae,B.isWeakMap=Dae,B.isWeakSet=Eae,B.join=$ie,B.kebabCase=bse,B.last=$i,B.lastIndexOf=Tie,B.lowerCase=vse,B.lowerFirst=_se,B.lt=Oae,B.lte=Vae,B.max=poe,B.maxBy=moe,B.mean=goe,B.meanBy=yoe,B.min=boe,B.minBy=voe,B.stubArray=Ip,B.stubFalse=Ap,B.stubObject=roe,B.stubString=aoe,B.stubTrue=soe,B.multiply=_oe,B.nth=Iie,B.noConflict=Zse,B.noop=Tp,B.now=vh,B.pad=wse,B.padEnd=kse,B.padStart=xse,B.parseInt=Cse,B.random=fse,B.reduce=Lre,B.reduceRight=zre,B.repeat=Sse,B.replace=Mse,B.result=ise,B.round=woe,B.runInContext=P,B.sample=Rre,B.size=Wre,B.snakeCase=Bse,B.some=Yre,B.sortedIndex=Fie,B.sortedIndexBy=Hie,B.sortedIndexOf=Wie,B.sortedLastIndex=Yie,B.sortedLastIndexBy=Uie,B.sortedLastIndexOf=jie,B.startCase=Ese,B.startsWith=Ose,B.subtract=koe,B.sum=xoe,B.sumBy=Coe,B.template=Vse,B.times=ooe,B.toFinite=Yr,B.toInteger=Ue,B.toLength=_6,B.toLower=$se,B.toNumber=Ti,B.toSafeInteger=$ae,B.toString=yt,B.toUpper=Tse,B.trim=Ise,B.trimEnd=Ase,B.trimStart=Nse,B.truncate=Lse,B.unescape=zse,B.uniqueId=coe,B.upperCase=Pse,B.upperFirst=Ep,B.each=s6,B.eachRight=o6,B.first=n6,$p(B,function(){var c={};return cr(B,function(u,p){Ct.call(B.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),B.VERSION=r,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Bi(["drop","take"],function(c,u){tt.prototype[c]=function(p){p=p===n?1:fn(Ue(p),0);var b=this.__filtered__&&!u?new tt(this):this.clone();return b.__filtered__?b.__takeCount__=Vn(p,b.__takeCount__):b.__views__.push({size:Vn(p,ge),type:c+(b.__dir__<0?"Right":"")}),b},tt.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Bi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==ye||p==Z;tt.prototype[c]=function(C){var E=this.clone();return E.__iteratees__.push({iteratee:Te(C,3),type:p}),E.__filtered__=E.__filtered__||b,E}}),Bi(["head","last"],function(c,u){var p="take"+(u?"Right":"");tt.prototype[c]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");tt.prototype[c]=function(){return this.__filtered__?new tt(this):this[p](1)}}),tt.prototype.compact=function(){return this.filter(Xn)},tt.prototype.find=function(c){return this.filter(c).head()},tt.prototype.findLast=function(c){return this.reverse().find(c)},tt.prototype.invokeMap=Ge(function(c,u){return typeof c=="function"?new tt(this):this.map(function(p){return Pc(p,c,u)})}),tt.prototype.reject=function(c){return this.filter(wh(Te(c)))},tt.prototype.slice=function(c,u){c=Ue(c);var p=this;return p.__filtered__&&(c>0||u<0)?new tt(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=Ue(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},tt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},tt.prototype.toArray=function(){return this.take(ge)},cr(tt.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),C=B[b?"take"+(u=="last"?"Right":""):u],E=b||/^find/.test(u);C&&(B.prototype[u]=function(){var I=this.__wrapped__,z=b?[1]:arguments,F=I instanceof tt,te=z[0],ne=F||We(I),oe=function(Je){var at=C.apply(B,xa([Je],z));return b&&ve?at[0]:at};ne&&p&&typeof te=="function"&&te.length!=1&&(F=ne=!1);var ve=this.__chain__,Me=!!this.__actions__.length,Ie=E&&!ve,qe=F&&!Me;if(!E&&ne){I=qe?I:new tt(this);var Ae=c.apply(I,z);return Ae.__actions__.push({func:yh,args:[oe],thisArg:n}),new Ei(Ae,ve)}return Ie&&qe?c.apply(this,z):(Ae=this.thru(oe),Ie?b?Ae.value()[0]:Ae.value():Ae)})}),Bi(["pop","push","shift","sort","splice","unshift"],function(c){var u=Wu[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);B.prototype[c]=function(){var C=arguments;if(b&&!this.__chain__){var E=this.value();return u.apply(We(E)?E:[],C)}return this[p](function(I){return u.apply(We(I)?I:[],C)})}}),cr(tt.prototype,function(c,u){var p=B[u];if(p){var b=p.name+"";Ct.call(Ro,b)||(Ro[b]=[]),Ro[b].push({name:u,func:p})}}),Ro[dh(n,x).name]=[{name:"wrapper",func:n}],tt.prototype.clone=zte,tt.prototype.reverse=Pte,tt.prototype.value=Rte,B.prototype.at=mre,B.prototype.chain=gre,B.prototype.commit=yre,B.prototype.next=bre,B.prototype.plant=_re,B.prototype.reverse=wre,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=kre,B.prototype.first=B.prototype.head,$c&&(B.prototype[$c]=vre),B},Lo=yte();Rt?((Rt.exports=Lo)._=Lo,ot._=Lo):Ke._=Lo}).call(yn)}(du,du.exports);var ri=du.exports;const Sf={components:{CdsIcon:ke},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},textMessage:{type:String,default:"Arraste o arquivo aqui ou pesquise no seu dispositivo"},errorMessage:{type:String,default:"Valor inválido"},disabled:{type:Boolean,default:!1}},data(){return{file:this.modelValue&&!ri.isEmpty(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state,invalidExtensionError:null}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,r,a)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${r!==a.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}return this.errorMessage}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"},formatFilename(){if(this.file instanceof File&&this.file.name.length>16){const t=this.file.name.split(".");return t.length>2?`arquivo.${ri.last(t)}`:`${t[0].substring(0,16)}....${t[1]}`}return this.file.name}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");n=n[n.length-1].trim();const r=e.filter(a=>a===n).length>0;return this.invalidExtensionError=!r,r},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},c4=()=>{i.useCssVars(t=>({"3c7a40a8":t.textAlignmentResolver}))},d4=Sf.setup;Sf.setup=d4?(t,e)=>(c4(),d4(t,e)):c4;const $V=["accept"],TV={key:0,class:"file-input__container"},IV={key:0},AV={key:1},NV={key:1,class:"file-input__container"},LV={key:1},zV={key:0,class:"file-input__alert-container"};function PV(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.createElementVNode("div",{class:i.normalizeClass(["file-input text-center",{"file-input--drag-state":a.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!a.isValid,"file-input--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...l)=>s.dropHandler&&s.dropHandler(...l)),onClick:e[7]||(e[7]=(...l)=>s.linkClick&&s.linkClick(...l))},[i.withDirectives(i.createElementVNode("input",{ref:"fileInput",type:"file",accept:s.acceptString,onChange:e[0]||(e[0]=(...l)=>s.handleFormFileChange&&s.handleFormFileChange(...l))},null,40,$V),[[i.vShow,!1]]),a.file?(i.openBlock(),i.createElementBlock("div",NV,[i.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:i.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",LV," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[i.createElementVNode("div",null,i.toDisplayString(s.formatFilename),1),i.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=i.withModifiers((...l)=>s.handleRemove&&s.handleRemove(...l),["stop"]))},[i.createVNode(o,{height:"18",width:"18",name:"x-outline",class:i.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(i.openBlock(),i.createElementBlock("div",TV,[i.createVNode(o,{name:"upload-cloud-outline",class:i.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",AV," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",IV,i.toDisplayString(n.textMessage),1))],2)]))],34)]),a.internalState==="invalid"?(i.openBlock(),i.createElementBlock("div",zV,i.toDisplayString(s.computedAllowedMessage),1)):i.createCommentVNode("",!0)],64)}const u4=Q(Sf,[["render",PV],["__scopeId","data-v-33f6f0ff"]]),RV={class:"file-viewer__image"},FV={key:0,class:"file-viewer__extension"},HV={class:"file-viewer__info"},WV={class:"file-viewer__label"},YV={class:"file-viewer__file-name"},UV={key:0,class:"file-viewer__backdrop"},jV={class:"file-viewer__visualizer-header"},qV={class:"file-viewer__visualizer-label"},GV={class:"file-viewer__visualizer-actions"},KV={key:0},ZV={key:1,class:"file-viewer__visualizer-empty-state"},XV=Q({__name:"FileViewer",props:{label:{type:String,required:!0,default:"Comprovante de residência"},fileUrl:{type:String,required:!0,default:"https://images.pexels.com/photos/1254140/pexels-photo-1254140.jpeg"},variant:{type:String,default:"green",validator:t=>au.find(e=>e.name===t)}},emits:["close","download-click"],setup(t,{emit:e}){const n=e,r=t,a=i.ref(!1),s=i.ref(!1),o=["jpg","jpeg","png","webp"],l=i.computed(()=>{if(r.fileUrl){const k=ri.last(r.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),x=ri.get(k,"1",null);if(x)return x.toLowerCase()}return"file"}),d=i.computed(()=>r.label.length>50?r.label.substring(0,50):r.label),h=()=>{a.value=!0},f=()=>{a.value=!1},m=()=>{s.value=!s.value,y(s.value)},g=()=>{s.value=!1,y(s.value),n("close",!0)},y=w=>{document.body.style.overflow=w?"hidden":"auto"},_=i.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(w,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref:"fileViewer",class:i.normalizeClass(["file-viewer",`file-viewer--${t.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:i.withKeys(g,["esc"])},[i.createElementVNode("div",RV,[a.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["file-viewer__icon",`file-viewer__icon--${t.variant}`])},[i.createVNode(ke,{height:"32",width:"32",name:"image-outline"})],2)):(i.openBlock(),i.createElementBlock("div",FV,i.toDisplayString(l.value),1))]),i.createElementVNode("div",HV,[i.createElementVNode("div",WV,i.toDisplayString(d.value),1),i.createElementVNode("div",YV,i.toDisplayString(t.fileUrl),1),i.createElementVNode("div",null,[i.createElementVNode("a",{class:i.normalizeClass(["file-viewer__download",`file-viewer__download--${t.variant}`]),onClick:k[0]||(k[0]=i.withModifiers(x=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),s.value?(i.openBlock(),i.createElementBlock("div",UV,[i.createElementVNode("div",jV,[i.createElementVNode("div",qV,i.toDisplayString(d.value),1),i.createElementVNode("div",GV,[i.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=x=>n("download-click",!0))},[i.createVNode(ke,{height:"24",width:"24",name:"download-cloud-outline"}),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",KV," Baixar arquivo "))]),i.createVNode(ke,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:g})])]),i.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:g},[o.includes(l.value)?(i.openBlock(),i.createBlock(Kl,{key:0,class:"file-viewer__visualizer-image",src:t.fileUrl,onClick:k[2]||(k[2]=i.withModifiers(()=>{},["stop"]))},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",ZV,[i.createVNode(Kl,{src:"https://i.imgur.com/d842Bek.png",width:"100",height:"100"}),k[3]||(k[3]=i.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):i.createCommentVNode("",!0)],64))}},[["__scopeId","data-v-c35f914b"]]);function ec(t=""){const e="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",r=t.length;let a=t.split(""),s;for(let o=0;o<r;o+=1)s=e.indexOf(t[o]),s!==-1&&(a[o]=n[s]);return a=a.join(""),a=a.split(".").join(""),a=a.split("-").join(""),a=a.split("/").join(""),a}const JV={props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:qr()}},computed:{inputClass(){let t="";const e="filter-select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled&&(t+=` ${e}--disabled`),t+=` ${e}--${jh.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"],document.querySelector("body").addEventListener("click",this.closeFilterSelect)},methods:{filterOptions(){const t=ec(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>ec(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=sl(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=sl(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const r=t.getBoundingClientRect(),a=this.$refs["filter-select-options"],s=a.getBoundingClientRect();n==="up"&&r.top<=s.top&&(a.scrollTop+=e),n==="down"&&r.top>=s.bottom&&(a.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")},closeFilterSelect(t){this.$refs.filterSelectRef&&!this.$refs.filterSelectRef.contains(t.target)&&this.hide()}}},QV={ref:"cds-filter-select",class:"filter-select"},e$={class:"filter-select__label"},t$={for:"cds-filter-select"},n$=["id","onkeypress","placeholder","disabled","readonly"],i$={key:0,class:"option__container"},r$=["onMouseover"],a$={key:1,class:"option__container"};function s$(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",QV,[i.createElementVNode("div",{ref:"filterSelectRef",class:i.normalizeClass(["filter-select__container",s.inputClass]),onKeydown:[e[6]||(e[6]=i.withKeys(i.withModifiers((...o)=>s.activateSelectionOnEnter&&s.activateSelectionOnEnter(...o),["prevent"]),["enter"])),e[7]||(e[7]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowDown&&s.highlightOnArrowDown(...o),["prevent"]),["arrow-down"])),e[8]||(e[8]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowUp&&s.highlightOnArrowUp(...o),["prevent"]),["arrow-up"]))],onClick:e[9]||(e[9]=(...o)=>s.activateSelectionOnClick&&s.activateSelectionOnClick(...o))},[i.createElementVNode("label",e$,[i.createElementVNode("div",t$,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel),1)])]),i.withDirectives(i.createElementVNode("input",{id:t.$attrs.id||a.id,ref:"filter-select-input","onUpdate:modelValue":e[0]||(e[0]=o=>a.localValue[n.optionsField]=o),type:"text",autocomplete:"off",onkeypress:`return ${a.allowSearch};`,class:i.normalizeClass(s.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:e[1]||(e[1]=(...o)=>s.filterOptions&&s.filterOptions(...o)),onFocus:e[2]||(e[2]=(...o)=>s.activeSelection&&s.activeSelection(...o)),onBlur:e[3]||(e[3]=(...o)=>s.hide&&s.hide(...o))},null,42,n$),[[i.vModelText,a.localValue[n.optionsField]]]),i.withDirectives(i.createElementVNode("div",{ref:"filter-select-options",class:i.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":a.direction==="down","filter-select__options--up":a.direction==="up"}])},[a.localOptions.length>0?(i.openBlock(),i.createElementBlock("ul",i$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.localOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,ref_for:!0,ref:`${o[n.optionsField]}-${l}`,class:"option__text",onMousedown:e[4]||(e[4]=(...d)=>s.selectItem&&s.selectItem(...d)),onMouseover:d=>s.highlightOnMouseOver(l),onMouseout:e[5]||(e[5]=d=>s.unhighlightOnMouseOut())},i.toDisplayString(o[n.optionsField]),41,r$))),128))])):(i.openBlock(),i.createElementBlock("ul",a$,e[10]||(e[10]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,a.active]]),i.createElementVNode("span",{class:i.normalizeClass(a.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)],512)}const o$=Q(JV,[["render",s$],["__scopeId","data-v-a234b486"]]),l$={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},c$={id:"cds-pulsar"};function d$(t,e,n,r,a,s){const o=i.resolveDirective("cds-floatify");return i.withDirectives((i.openBlock(),i.createElementBlock("div",c$,[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const h4=Q(l$,[["render",d$],["__scopeId","data-v-6f878a26"]]),u$={components:{CdsPulsar:h4,CdsIcon:ke},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},startOnScroll:{type:Boolean,default:!1,required:!1},url:{type:String,default:""},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){this.isActive=t,this.handleEventAnimation()}},mounted(){this.handleEventAnimation(),document.querySelector("body").addEventListener("click",this.closeFloatingAssistant)},methods:{handleEventAnimation(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,this.startOnScroll?window.addEventListener("scroll",this.startAnimation):this.startAnimation()},startAnimation(){this.startOnScroll?this.isScrolledIntoView()&&setTimeout(()=>{document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation)},1e3):setTimeout(()=>{document.getElementById(this.id).classList.add("animation")},1e3)},isScrolledIntoView(){const{top:t,bottom:e}=document.getElementById(this.id).getBoundingClientRect();return t>=0&&e<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1},closeFloatingAssistant(t){this.$refs.floatingAssistantRef&&!this.$refs.floatingAssistantRef.contains(t.target)&&this.collapse()}}},h$=["id"],f$=["id"],p$={key:0},m$={key:1},g$={key:0,class:"floating-assistant__content"},y$={key:0,class:"floating-assistant__footer"},b$=["href"],v$={key:1,class:"floating-assistant__subtitle"},_$={key:2};function w$(t,e,n,r,a,s){const o=i.resolveComponent("cds-pulsar"),l=i.resolveComponent("cds-icon"),d=i.resolveDirective("cds-floatify");return i.openBlock(),i.createElementBlock("div",{id:a.id,class:i.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!a.isActive}])},[i.createVNode(o,{id:a.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:a.containerId,class:"floating-assistant__container"},[i.createElementVNode("div",{ref:"floatingAssistantRef",class:i.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":a.isExpanded,"floating-assistant__dropdown--confirmation":a.waitingConfirmation}]),onClick:e[3]||(e[3]=(...h)=>s.expand&&s.expand(...h))},[a.waitingConfirmation?(i.openBlock(),i.createElementBlock("div",p$,[e[4]||(e[4]=i.createTextVNode(" Ocultar dica para sempre? ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=h=>s.confirmationHandle(!0))}," Sim ",2),e[5]||(e[5]=i.createTextVNode(" / ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=h=>s.confirmationHandle(!1))}," Não ",2)])):(i.openBlock(),i.createElementBlock("div",m$,[i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__title--${n.variant}`)},i.toDisplayString(n.title),3),a.isExpanded?(i.openBlock(),i.createElementBlock("div",g$,[i.renderSlot(t.$slots,"default",{},void 0,!0),n.url?(i.openBlock(),i.createElementBlock("span",y$,[e[6]||(e[6]=i.createTextVNode(" Você pode saber mais ")),i.createElementVNode("a",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,b$),e[7]||(e[7]=i.createTextVNode(". "))])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",v$," Clique para mais informações "))])),a.isExpanded?(i.openBlock(),i.createElementBlock("div",_$,[i.createElementVNode("div",{onClick:e[2]||(e[2]=i.withModifiers((...h)=>s.close&&s.close(...h),["stop"]))},[i.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):i.createCommentVNode("",!0)],2)],8,f$)),[[d,a.pulsarId,a.position]])],10,h$)}const k$=Q(u$,[["render",w$],["__scopeId","data-v-01d1f93e"]]),x$={class:"floating-action-button__container"},C$=["onClick"],S$={class:"floating-action-button__subitem-label"},M$={class:"floating-action-button__subitem"},B$=Q({__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:t=>t.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(t,{emit:e}){i.useCssVars(y=>({"0a3aecd8":h.value,"005b6afb":l.value,"21ef27b0":f.value,"87db115e":d.value}));const n=t,r=e,a=i.ref(!1),s=i.ref(!1),o=i.ref(-1),l=i.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=i.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=i.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=i.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");i.watch(a,y=>{y||(s.value=!0,setTimeout(()=>{s.value=!1},500))});function m(){if(n.actions.length>0){o.value=a.value?-1:1,a.value=!a.value;return}r("main-button-click")}function g(y){a.value=!1,r("action-click",y)}return(y,_)=>(i.openBlock(),i.createElementBlock("div",x$,[a.value||s.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.actions,w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:i.normalizeClass(["floating-action-button__subitem-container",{exiting:s.value}]),onClick:k=>g(w)},[i.createElementVNode("div",S$,i.toDisplayString(w==null?void 0:w.label),1),i.createElementVNode("div",M$,[i.createVNode(ke,{name:w==null?void 0:w.icon,height:"32",width:"32"},null,8,["name"])])],10,C$))),128)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${t.variant}`]),onClick:m},[i.createVNode(i.Transition,{name:"icon-transition",mode:"out-in"},{default:i.withCtx(()=>[a.value?(i.openBlock(),i.createBlock(ke,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(i.openBlock(),i.createBlock(ke,{key:"main-icon",name:t.icon,height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}},[["__scopeId","data-v-3f44d904"]]),Mf={props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},targetId:{type:String,default:""},defaultPlacement:{type:String,default:null}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:qr()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(t){t?this.show():this.hide()},targetId(t){this.setPopper(t)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId),document.querySelector("body").addEventListener("click",this.closeRichTooltip)},methods:{setPopper(t){this.$nextTick(()=>{this.target=document.querySelector(`[id='${t}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=tl(this.target,this.popover,{placement:this.defaultPlacement===null?"bottom":this.defaultPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popover.classList.remove("popover-hide"),this.popover.classList.add("popover-show"),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.popover.classList.remove("popover-show"),this.popover.classList.add("popover-hide"),setTimeout(()=>{this.popover.removeAttribute("data-show")},350),this.$nextTick(()=>{this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})},closeRichTooltip(t){this.$refs.richTooltipRef&&!this.$refs.richTooltipRef.contains(t.target)&&this.hide()}}},f4=()=>{i.useCssVars(t=>({39058308:t.popoverWidth}))},p4=Mf.setup;Mf.setup=p4?(t,e)=>(f4(),p4(t,e)):f4;const D$=["id"];function E$(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{id:t.$attrs.id||a.id,ref:"richTooltipRef",class:"richTooltip"},[i.renderSlot(t.$slots,"default",{},void 0,!0)],8,D$)}const Bf=Q(Mf,[["render",E$],["__scopeId","data-v-bcda0e86"]]),Df={components:{CdsRichTooltip:Bf},props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:t=>t>=0&&t<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:qr()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let t=this.target-1;return t>=98&&(t=98),198*(1-t/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:Za}},m4=()=>{i.useCssVars(t=>({eaad879e:t.chartProgressValue,cfd9d6d6:t.targetValue}))},g4=Df.setup;Df.setup=g4?(t,e)=>(m4(),g4(t,e)):m4;const O$={class:"responsive-container"},V$=["id"],$$={transform:"scale(1.20) translate(-9.5 -12)"},T$={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},I$={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function A$(t,e,n,r,a,s){const o=i.resolveComponent("cds-rich-tooltip");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",O$,[i.createElementVNode("div",{class:"gauge-chart",style:i.normalizeStyle(s.progressStyle)},[(i.openBlock(),i.createElementBlock("svg",{id:a.uniqueKey,class:i.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:e[0]||(e[0]=l=>a.showPopover=!0),onMouseleave:e[1]||(e[1]=l=>a.showPopover=!1)},[e[5]||(e[5]=i.createElementVNode("linearGradient",{id:"gradient",x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},[i.createElementVNode("stop",{class:"stop",offset:"1%"}),i.createElementVNode("stop",{class:"stop-2",offset:"99%"})],-1)),i.createElementVNode("g",$$,[e[3]||(e[3]=i.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),e[4]||(e[4]=i.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90"},null,-1)),n.showTarget?(i.openBlock(),i.createElementBlock("path",{key:0,fill:"none",class:i.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):i.createCommentVNode("",!0)]),i.createElementVNode("text",T$,i.toDisplayString(s.formatedValue),1),i.createElementVNode("text",I$,i.toDisplayString(n.subtitle),1)],42,V$))],4),s.hasSlot(t.$slots,"popover")?(i.openBlock(),i.createBlock(o,{key:0,modelValue:a.showPopover,"onUpdate:modelValue":e[2]||(e[2]=l=>a.showPopover=l),"default-placement":"top","target-id":a.uniqueKey},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):i.createCommentVNode("",!0)])])}const N$=Q(Df,[["render",A$],["__scopeId","data-v-0c7cac1e"]]),L$={class:"grid-item"},z$=Q({__name:"GridItem",props:{colSpan:{type:[Number,String],default:"auto"},rowSpan:{type:[Number,String],default:"1"},colStart:{type:[Number,String],default:"auto"},rowStart:{type:[Number,String],default:"auto"},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},subGrid:{type:Boolean,default:!1},justify:{type:String,default:"auto"},align:{type:String,default:"auto"},direction:{type:String,default:"row"}},setup(t){i.useCssVars(o=>({"74e6f3ab":t.align,"00119c0e":a.value,"057d4122":s.value,"0cc4bb96":n.value,"5597afb4":r.value,"7a019494":t.justify,"5912a125":t.direction}));const e=t,n=i.computed(()=>{if(!e.colSpan&&!e.colStart)return"auto";const o=e.colStart?e.colStart:1,l=e.colSpan?`span ${e.colSpan}`:1;return`${o} / ${l}`}),r=i.computed(()=>{if(!e.rowSpan&&!e.rowStart)return"auto";const o=e.rowStart?e.rowStart:1,l=e.rowSpan?`span ${e.rowSpan}`:1;return`${o} / ${l}`}),a=i.computed(()=>e.subGrid?"grid":"block"),s=i.computed(()=>{let o="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap}px`:e.gap:(e.rowGap?Number.isFinite(e.rowGap)?o=`${e.rowGap}px`:o=e.rowGap:o="0px",e.colGap?Number.isFinite(e.colGap)?o+=` ${e.colGap}px`:o+=` ${e.colGap}`:o+=" 0px",o)});return(o,l)=>(i.openBlock(),i.createElementBlock("div",L$,[i.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),Ef={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:[String,null],default:null},caseSensitive:{type:Boolean,default:!1}},data(){return{substrings:[]}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},slotString(){return this.hasSlots?this.$slots.default()[0].children:""},normalizedSlotString(){return this.normalize(this.slotString)},normalizedHighlightText(){return this.normalize(this.highlightedText)},isAValidSubstring(){return this.normalizedSlotString.includes(this.normalizedHighlightText)},paddingResolver(){return this.highlightedText?"4px 1px":"4px"},dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(t){const e={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]"},n={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]",A:"[AÁÀÂÃ]",Á:"[AÁÀÂÃ]",À:"[AÁÀÂÃ]",Â:"[AÁÀÂÃ]",Ã:"[AÁÀÂÃ]",E:"[EÉÊ]",É:"[EÉÊ]",Ê:"[EÉÊ]",I:"[IÍ]",Í:"[IÍ]",O:"[OÓÔÕ]",Ó:"[OÓÔÕ]",Ô:"[OÓÔÕ]",Õ:"[OÓÔÕ]",U:"[UÚÜ]",Ú:"[UÚÜ]",Ü:"[UÚÜ]"};return this.caseSensitive?t==null?void 0:t.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,r=>n[r]||r):t==null?void 0:t.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,r=>e[r]||r)},splitContent(){let t=this.caseSensitive?"g":"gi",e=new RegExp(`(${this.normalizedHighlightText})`,t),n=this.slotString.split(e);this.substrings=n.map((r,a)=>({string:r,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,t).test(this.caseSensitive?r:r==null?void 0:r.toLowerCase()),id:a}))}}},y4=()=>{i.useCssVars(t=>({"6b796b56":t.paddingResolver}))},b4=Ef.setup;Ef.setup=b4?(t,e)=>(y4(),b4(t,e)):y4;function P$(t,e,n,r,a,s){return n.highlightedText&&s.isAValidSubstring?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(a.substrings,o=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:o.id},[o.highlighted?(i.openBlock(),i.createElementBlock("mark",{key:0,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},i.toDisplayString(o.string),7)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.string),1)],64))],64))),128)):(i.openBlock(),i.createElementBlock("mark",{key:1,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],6))}const v4=Q(Ef,[["render",P$],["__scopeId","data-v-3c7c0a20"]]),_4=["sm","md","lg"],R$={components:{CdsIcon:ke,CdsTooltip:td},props:{size:{type:String,default:"md",validator:t=>_4.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:_4,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},F$={id:"cds-icon-button"};function H$(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",F$,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:a.innerTooltipText},{default:i.withCtx(()=>[i.createElementVNode("button",{class:i.normalizeClass(["cds-icon-button__container",s.computedModifiers]),onClick:e[0]||(e[0]=(...l)=>s.clickHandler&&s.clickHandler(...l))},[(i.openBlock(),i.createBlock(o,{key:a.inputControlPanel,name:a.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const uu=Q(R$,[["render",H$],["__scopeId","data-v-ad879e60"]]);var hu={exports:{}};hu.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",a=1,s=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",_="[object GeneratorFunction]",w="[object Map]",k="[object Number]",x="[object Null]",M="[object Object]",O="[object Promise]",S="[object Proxy]",V="[object RegExp]",T="[object Set]",N="[object String]",A="[object Symbol]",R="[object Undefined]",W="[object WeakMap]",ie="[object ArrayBuffer]",G="[object DataView]",re="[object Float32Array]",ye="[object Float64Array]",ee="[object Int8Array]",Z="[object Int16Array]",he="[object Int32Array]",pe="[object Uint8Array]",J="[object Uint8ClampedArray]",H="[object Uint16Array]",ge="[object Uint32Array]",fe=/[\\^$.*+?()[\]{}|]/g,$e=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,_e={};_e[re]=_e[ye]=_e[ee]=_e[Z]=_e[he]=_e[pe]=_e[J]=_e[H]=_e[ge]=!0,_e[l]=_e[d]=_e[ie]=_e[f]=_e[G]=_e[m]=_e[g]=_e[y]=_e[w]=_e[k]=_e[M]=_e[V]=_e[T]=_e[N]=_e[W]=!1;var Le=typeof yn=="object"&&yn&&yn.Object===Object&&yn,nt=typeof self=="object"&&self&&self.Object===Object&&self,ae=Le||nt||Function("return this")(),xe=e&&!e.nodeType&&e,Ne=xe&&!0&&t&&!t.nodeType&&t,Ze=Ne&&Ne.exports===xe,He=Ze&&Le.process,et=function(){try{return He&&He.binding&&He.binding("util")}catch{}}(),dt=et&&et.isTypedArray;function vt(v,D){for(var L=-1,K=v==null?0:v.length,Pe=0,De=[];++L<K;){var it=v[L];D(it,L,v)&&(De[Pe++]=it)}return De}function ht(v,D){for(var L=-1,K=D.length,Pe=v.length;++L<K;)v[Pe+L]=D[L];return v}function _t(v,D){for(var L=-1,K=v==null?0:v.length;++L<K;)if(D(v[L],L,v))return!0;return!1}function Jt(v,D){for(var L=-1,K=Array(v);++L<v;)K[L]=D(L);return K}function Qt(v){return function(D){return v(D)}}function mt(v,D){return v.has(D)}function st(v,D){return v==null?void 0:v[D]}function At(v){var D=-1,L=Array(v.size);return v.forEach(function(K,Pe){L[++D]=[Pe,K]}),L}function Mt(v,D){return function(L){return v(D(L))}}function Ot(v){var D=-1,L=Array(v.size);return v.forEach(function(K){L[++D]=K}),L}var Bt=Array.prototype,an=Function.prototype,Vt=Object.prototype,le=ae["__core-js_shared__"],ze=an.toString,je=Vt.hasOwnProperty,se=function(){var v=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Oe=Vt.toString,Se=RegExp("^"+ze.call(je).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=Ze?ae.Buffer:void 0,de=ae.Symbol,we=ae.Uint8Array,j=Vt.propertyIsEnumerable,$=Bt.splice,q=de?de.toStringTag:void 0,ce=Object.getOwnPropertySymbols,Be=Y?Y.isBuffer:void 0,Xe=Mt(Object.keys,Object),ft=On(ae,"DataView"),$t=On(ae,"Map"),cn=On(ae,"Promise"),en=On(ae,"Set"),qn=On(ae,"WeakMap"),wt=On(Object,"create"),Nn=vn(ft),Dn=vn($t),ai=vn(cn),Ui=vn(en),Or=vn(qn),bo=de?de.prototype:void 0,ss=bo?bo.valueOf:void 0;function dn(v){var D=-1,L=v==null?0:v.length;for(this.clear();++D<L;){var K=v[D];this.set(K[0],K[1])}}function uc(){this.__data__=wt?wt(null):{},this.size=0}function hc(v){var D=this.has(v)&&delete this.__data__[v];return this.size-=D?1:0,D}function fc(v){var D=this.__data__;if(wt){var L=D[v];return L===r?void 0:L}return je.call(D,v)?D[v]:void 0}function pc(v){var D=this.__data__;return wt?D[v]!==void 0:je.call(D,v)}function mc(v,D){var L=this.__data__;return this.size+=this.has(v)?0:1,L[v]=wt&&D===void 0?r:D,this}dn.prototype.clear=uc,dn.prototype.delete=hc,dn.prototype.get=fc,dn.prototype.has=pc,dn.prototype.set=mc;function un(v){var D=-1,L=v==null?0:v.length;for(this.clear();++D<L;){var K=v[D];this.set(K[0],K[1])}}function gc(){this.__data__=[],this.size=0}function yc(v){var D=this.__data__,L=$r(D,v);if(L<0)return!1;var K=D.length-1;return L==K?D.pop():$.call(D,L,1),--this.size,!0}function bc(v){var D=this.__data__,L=$r(D,v);return L<0?void 0:D[L][1]}function vc(v){return $r(this.__data__,v)>-1}function _c(v,D){var L=this.__data__,K=$r(L,v);return K<0?(++this.size,L.push([v,D])):L[K][1]=D,this}un.prototype.clear=gc,un.prototype.delete=yc,un.prototype.get=bc,un.prototype.has=vc,un.prototype.set=_c;function En(v){var D=-1,L=v==null?0:v.length;for(this.clear();++D<L;){var K=v[D];this.set(K[0],K[1])}}function ga(){this.size=0,this.__data__={hash:new dn,map:new($t||un),string:new dn}}function wc(v){var D=Ln(this,v).delete(v);return this.size-=D?1:0,D}function ya(v){return Ln(this,v).get(v)}function kc(v){return Ln(this,v).has(v)}function xc(v,D){var L=Ln(this,v),K=L.size;return L.set(v,D),this.size+=L.size==K?0:1,this}En.prototype.clear=ga,En.prototype.delete=wc,En.prototype.get=ya,En.prototype.has=kc,En.prototype.set=xc;function ba(v){var D=-1,L=v==null?0:v.length;for(this.__data__=new En;++D<L;)this.add(v[D])}function os(v){return this.__data__.set(v,r),this}function Vr(v){return this.__data__.has(v)}ba.prototype.add=ba.prototype.push=os,ba.prototype.has=Vr;function si(v){var D=this.__data__=new un(v);this.size=D.size}function ls(){this.__data__=new un,this.size=0}function Cc(v){var D=this.__data__,L=D.delete(v);return this.size=D.size,L}function Sc(v){return this.__data__.get(v)}function Mc(v){return this.__data__.has(v)}function vo(v,D){var L=this.__data__;if(L instanceof un){var K=L.__data__;if(!$t||K.length<n-1)return K.push([v,D]),this.size=++L.size,this;L=this.__data__=new En(K)}return L.set(v,D),this.size=L.size,this}si.prototype.clear=ls,si.prototype.delete=Cc,si.prototype.get=Sc,si.prototype.has=Mc,si.prototype.set=vo;function _o(v,D){var L=va(v),K=!L&&ds(v),Pe=!L&&!K&&_a(v),De=!L&&!K&&!Pe&&To(v),it=L||K||Pe||De,rt=it?Jt(v.length,String):[],Ke=rt.length;for(var ot in v)je.call(v,ot)&&!(it&&(ot=="length"||Pe&&(ot=="offset"||ot=="parent")||De&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||Mo(ot,Ke)))&&rt.push(ot);return rt}function $r(v,D){for(var L=v.length;L--;)if(Vo(v[L][0],D))return L;return-1}function Tr(v,D,L){var K=D(v);return va(v)?K:ht(K,L(v))}function Ir(v){return v==null?v===void 0?R:x:q&&q in Object(v)?xi(v):Oo(v)}function cs(v){return Si(v)&&Ir(v)==l}function Ar(v,D,L,K,Pe){return v===D?!0:v==null||D==null||!Si(v)&&!Si(D)?v!==v&&D!==D:wo(v,D,L,K,Ar,Pe)}function wo(v,D,L,K,Pe,De){var it=va(v),rt=va(D),Ke=it?d:Ci(v),ot=rt?d:Ci(D);Ke=Ke==l?M:Ke,ot=ot==l?M:ot;var Rt=Ke==M,_n=ot==M,Yt=Ke==ot;if(Yt&&_a(v)){if(!_a(D))return!1;it=!0,Rt=!1}if(Yt&&!Rt)return De||(De=new si),it||To(v)?Nr(v,D,L,K,Pe,De):Dc(v,D,Ke,L,K,Pe,De);if(!(L&a)){var xt=Rt&&je.call(v,"__wrapped__"),sn=_n&&je.call(D,"__wrapped__");if(xt||sn){var qi=xt?v.value():v,Mi=sn?D.value():D;return De||(De=new si),Pe(qi,Mi,L,K,De)}}return Yt?(De||(De=new si),Co(v,D,L,K,Pe,De)):!1}function Bc(v){if(!$o(v)||Do(v))return!1;var D=wa(v)?Se:$e;return D.test(vn(v))}function ko(v){return Si(v)&&hs(v.length)&&!!_e[Ir(v)]}function xo(v){if(!Eo(v))return Xe(v);var D=[];for(var L in Object(v))je.call(v,L)&&L!="constructor"&&D.push(L);return D}function Nr(v,D,L,K,Pe,De){var it=L&a,rt=v.length,Ke=D.length;if(rt!=Ke&&!(it&&Ke>rt))return!1;var ot=De.get(v);if(ot&&De.get(D))return ot==D;var Rt=-1,_n=!0,Yt=L&s?new ba:void 0;for(De.set(v,D),De.set(D,v);++Rt<rt;){var xt=v[Rt],sn=D[Rt];if(K)var qi=it?K(sn,xt,Rt,D,v,De):K(xt,sn,Rt,v,D,De);if(qi!==void 0){if(qi)continue;_n=!1;break}if(Yt){if(!_t(D,function(Mi,lr){if(!mt(Yt,lr)&&(xt===Mi||Pe(xt,Mi,L,K,De)))return Yt.push(lr)})){_n=!1;break}}else if(!(xt===sn||Pe(xt,sn,L,K,De))){_n=!1;break}}return De.delete(v),De.delete(D),_n}function Dc(v,D,L,K,Pe,De,it){switch(L){case G:if(v.byteLength!=D.byteLength||v.byteOffset!=D.byteOffset)return!1;v=v.buffer,D=D.buffer;case ie:return!(v.byteLength!=D.byteLength||!De(new we(v),new we(D)));case f:case m:case k:return Vo(+v,+D);case g:return v.name==D.name&&v.message==D.message;case V:case N:return v==D+"";case w:var rt=At;case T:var Ke=K&a;if(rt||(rt=Ot),v.size!=D.size&&!Ke)return!1;var ot=it.get(v);if(ot)return ot==D;K|=s,it.set(v,D);var Rt=Nr(rt(v),rt(D),K,Pe,De,it);return it.delete(v),Rt;case A:if(ss)return ss.call(v)==ss.call(D)}return!1}function Co(v,D,L,K,Pe,De){var it=L&a,rt=ji(v),Ke=rt.length,ot=ji(D),Rt=ot.length;if(Ke!=Rt&&!it)return!1;for(var _n=Ke;_n--;){var Yt=rt[_n];if(!(it?Yt in D:je.call(D,Yt)))return!1}var xt=De.get(v);if(xt&&De.get(D))return xt==D;var sn=!0;De.set(v,D),De.set(D,v);for(var qi=it;++_n<Ke;){Yt=rt[_n];var Mi=v[Yt],lr=D[Yt];if(K)var Oc=it?K(lr,Mi,Yt,D,v,De):K(Mi,lr,Yt,v,D,De);if(!(Oc===void 0?Mi===lr||Pe(Mi,lr,L,K,De):Oc)){sn=!1;break}qi||(qi=Yt=="constructor")}if(sn&&!qi){var ps=v.constructor,mn=D.constructor;ps!=mn&&"constructor"in v&&"constructor"in D&&!(typeof ps=="function"&&ps instanceof ps&&typeof mn=="function"&&mn instanceof mn)&&(sn=!1)}return De.delete(v),De.delete(D),sn}function ji(v){return Tr(v,fs,So)}function Ln(v,D){var L=v.__data__;return Bo(D)?L[typeof D=="string"?"string":"hash"]:L.map}function On(v,D){var L=st(v,D);return Bc(L)?L:void 0}function xi(v){var D=je.call(v,q),L=v[q];try{v[q]=void 0;var K=!0}catch{}var Pe=Oe.call(v);return K&&(D?v[q]=L:delete v[q]),Pe}var So=ce?function(v){return v==null?[]:(v=Object(v),vt(ce(v),function(D){return j.call(v,D)}))}:kt,Ci=Ir;(ft&&Ci(new ft(new ArrayBuffer(1)))!=G||$t&&Ci(new $t)!=w||cn&&Ci(cn.resolve())!=O||en&&Ci(new en)!=T||qn&&Ci(new qn)!=W)&&(Ci=function(v){var D=Ir(v),L=D==M?v.constructor:void 0,K=L?vn(L):"";if(K)switch(K){case Nn:return G;case Dn:return w;case ai:return O;case Ui:return T;case Or:return W}return D});function Mo(v,D){return D=D??o,!!D&&(typeof v=="number"||Ve.test(v))&&v>-1&&v%1==0&&v<D}function Bo(v){var D=typeof v;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?v!=="__proto__":v===null}function Do(v){return!!se&&se in v}function Eo(v){var D=v&&v.constructor,L=typeof D=="function"&&D.prototype||Vt;return v===L}function Oo(v){return Oe.call(v)}function vn(v){if(v!=null){try{return ze.call(v)}catch{}try{return v+""}catch{}}return""}function Vo(v,D){return v===D||v!==v&&D!==D}var ds=cs(function(){return arguments}())?cs:function(v){return Si(v)&&je.call(v,"callee")&&!j.call(v,"callee")},va=Array.isArray;function us(v){return v!=null&&hs(v.length)&&!wa(v)}var _a=Be||gt;function Ec(v,D){return Ar(v,D)}function wa(v){if(!$o(v))return!1;var D=Ir(v);return D==y||D==_||D==h||D==S}function hs(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function $o(v){var D=typeof v;return v!=null&&(D=="object"||D=="function")}function Si(v){return v!=null&&typeof v=="object"}var To=dt?Qt(dt):ko;function fs(v){return us(v)?_o(v):xo(v)}function kt(){return[]}function gt(){return!1}t.exports=Ec}(hu,hu.exports);var W$=hu.exports;const Qs=Wh(W$),Y$={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>ln(n.title)||ln(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Fi.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Fi}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Xs,getSlotName(t){return t.name},handleClick(t,e){this.$emit("tab-click",{event:t,item:e}),!this.internalActiveTab.disableTabChange&&(this.$emit("change",{event:t,item:e}),this.internalActiveTab=e)},isActive(t){return Qs(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},U$={id:"inner-tabs"},j$={class:"inner-tabs__header-container"},q$={class:"inner-tabs__header"},G$=["onClick"],K$={class:"inner-tabs__content"};function Z$(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",U$,[i.createElementVNode("div",j$,[i.createElementVNode("ul",q$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:`${l}-${o.name}-tab`,role:"presentation"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",s.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>s.handleClick(d,o)},i.toDisplayString(o.title),11,G$),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(o)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)]))),128))])]),i.createElementVNode("div",K$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("div",{key:`${l}-${o.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",s.isActive(o)?"content__pane--active":"content__pane--inactive"])},[i.renderSlot(t.$slots,s.getSlotName(o))],2))),128))])])}const X$=Q(Y$,[["render",Z$]]),J$={key:0,class:"landscape-overlay"},Q$={class:"landscape-overlay__container"},eT=["src"],tT={class:"landscape-overlay__title"},nT={class:"landscape-overlay__subtitle"},iT={key:0,class:"landscape-overlay__button"},rT=Q({__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:t=>["mobile","landscape"].includes(t.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:t=>Fi.includes(t.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(!1),s=i.ref(""),o=i.ref(""),l=i.ref(""),d=i.computed(()=>Xa("smartphone")||Xa("tablet")),h=i.computed(()=>window.outerWidth>window.outerHeight&&d.value);return i.watch(a,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),i.watchEffect(()=>{!d.value&&!h.value&&(a.value=!1)}),i.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(a.value=!0,n.title===""?s.value="Acesse o conteúdo por um computador":s.value=n.title,n.description===""?o.value="Esta tela não é otimizada para navegação em celular.":o.value=n.description,l.value="/img/page-not-responsive.svg");return}n.blockInteraction==="landscape"&&h.value&&(a.value=!0,n.title===""?s.value="Rotacione seu dispositivo":s.value=n.title,n.description===""?o.value="Este conteúdo é otimizado para a visualização em modo retrato.":o.value=n.description,l.value="/img/smartphone-rotation.svg")}),(f,m)=>a.value?(i.openBlock(),i.createElementBlock("div",J$,[i.createElementVNode("div",Q$,[i.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,eT),i.createElementVNode("span",tT,i.toDisplayString(s.value),1),i.createElementVNode("span",nT,i.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(i.openBlock(),i.createElementBlock("div",iT,[i.createVNode(ei,{variant:t.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=g=>r("button-click"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.buttonText),1)]),_:1},8,["variant"])])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)}},[["__scopeId","data-v-a0718af5"]]);var aT=Object.defineProperty,sT=(t,e,n)=>e in t?aT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e,n)=>(sT(t,typeof e!="symbol"?e+"":e,n),n),fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oT=Object.prototype,lT=oT.hasOwnProperty;function cT(t,e){return t!=null&&lT.call(t,e)}var dT=cT,uT=Array.isArray,Hi=uT,hT=typeof fu=="object"&&fu&&fu.Object===Object&&fu,k4=hT,fT=k4,pT=typeof self=="object"&&self&&self.Object===Object&&self,mT=fT||pT||Function("return this")(),rr=mT,gT=rr,yT=gT.Symbol,pu=yT,x4=pu,C4=Object.prototype,bT=C4.hasOwnProperty,vT=C4.toString,tc=x4?x4.toStringTag:void 0;function _T(t){var e=bT.call(t,tc),n=t[tc];try{t[tc]=void 0;var r=!0}catch{}var a=vT.call(t);return r&&(e?t[tc]=n:delete t[tc]),a}var wT=_T,kT=Object.prototype,xT=kT.toString;function CT(t){return xT.call(t)}var ST=CT,S4=pu,MT=wT,BT=ST,DT="[object Null]",ET="[object Undefined]",M4=S4?S4.toStringTag:void 0;function OT(t){return t==null?t===void 0?ET:DT:M4&&M4 in Object(t)?MT(t):BT(t)}var ar=OT;function VT(t){return t!=null&&typeof t=="object"}var Wi=VT,$T=ar,TT=Wi,IT="[object Symbol]";function AT(t){return typeof t=="symbol"||TT(t)&&$T(t)==IT}var Of=AT,NT=Hi,LT=Of,zT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PT=/^\w*$/;function RT(t,e){if(NT(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||LT(t)?!0:PT.test(t)||!zT.test(t)||e!=null&&t in Object(e)}var Vf=RT;function FT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Cr=FT,HT=ar,WT=Cr,YT="[object AsyncFunction]",UT="[object Function]",jT="[object GeneratorFunction]",qT="[object Proxy]";function GT(t){if(!WT(t))return!1;var e=HT(t);return e==UT||e==jT||e==YT||e==qT}var Qa=GT,KT=rr,ZT=KT["__core-js_shared__"],XT=ZT,$f=XT,B4=function(){var t=/[^.]+$/.exec($f&&$f.keys&&$f.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function JT(t){return!!B4&&B4 in t}var QT=JT,eI=Function.prototype,tI=eI.toString;function nI(t){if(t!=null){try{return tI.call(t)}catch{}try{return t+""}catch{}}return""}var D4=nI,iI=Qa,rI=QT,aI=Cr,sI=D4,oI=/[\\^$.*+?()[\]{}|]/g,lI=/^\[object .+?Constructor\]$/,cI=Function.prototype,dI=Object.prototype,uI=cI.toString,hI=dI.hasOwnProperty,fI=RegExp("^"+uI.call(hI).replace(oI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pI(t){if(!aI(t)||rI(t))return!1;var e=iI(t)?fI:lI;return e.test(sI(t))}var mI=pI;function gI(t,e){return t==null?void 0:t[e]}var yI=gI,bI=mI,vI=yI;function _I(t,e){var n=vI(t,e);return bI(n)?n:void 0}var es=_I,wI=es,kI=wI(Object,"create"),mu=kI,E4=mu;function xI(){this.__data__=E4?E4(null):{},this.size=0}var CI=xI;function SI(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var MI=SI,BI=mu,DI="__lodash_hash_undefined__",EI=Object.prototype,OI=EI.hasOwnProperty;function VI(t){var e=this.__data__;if(BI){var n=e[t];return n===DI?void 0:n}return OI.call(e,t)?e[t]:void 0}var $I=VI,TI=mu,II=Object.prototype,AI=II.hasOwnProperty;function NI(t){var e=this.__data__;return TI?e[t]!==void 0:AI.call(e,t)}var LI=NI,zI=mu,PI="__lodash_hash_undefined__";function RI(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=zI&&e===void 0?PI:e,this}var FI=RI,HI=CI,WI=MI,YI=$I,UI=LI,jI=FI;function eo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=HI,eo.prototype.delete=WI,eo.prototype.get=YI,eo.prototype.has=UI,eo.prototype.set=jI;var qI=eo;function GI(){this.__data__=[],this.size=0}var KI=GI;function ZI(t,e){return t===e||t!==t&&e!==e}var to=ZI,XI=to;function JI(t,e){for(var n=t.length;n--;)if(XI(t[n][0],e))return n;return-1}var gu=JI,QI=gu,eA=Array.prototype,tA=eA.splice;function nA(t){var e=this.__data__,n=QI(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():tA.call(e,n,1),--this.size,!0}var iA=nA,rA=gu;function aA(t){var e=this.__data__,n=rA(e,t);return n<0?void 0:e[n][1]}var sA=aA,oA=gu;function lA(t){return oA(this.__data__,t)>-1}var cA=lA,dA=gu;function uA(t,e){var n=this.__data__,r=dA(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var hA=uA,fA=KI,pA=iA,mA=sA,gA=cA,yA=hA;function no(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}no.prototype.clear=fA,no.prototype.delete=pA,no.prototype.get=mA,no.prototype.has=gA,no.prototype.set=yA;var yu=no,bA=es,vA=rr,_A=bA(vA,"Map"),Tf=_A,O4=qI,wA=yu,kA=Tf;function xA(){this.size=0,this.__data__={hash:new O4,map:new(kA||wA),string:new O4}}var CA=xA;function SA(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var MA=SA,BA=MA;function DA(t,e){var n=t.__data__;return BA(e)?n[typeof e=="string"?"string":"hash"]:n.map}var bu=DA,EA=bu;function OA(t){var e=EA(this,t).delete(t);return this.size-=e?1:0,e}var VA=OA,$A=bu;function TA(t){return $A(this,t).get(t)}var IA=TA,AA=bu;function NA(t){return AA(this,t).has(t)}var LA=NA,zA=bu;function PA(t,e){var n=zA(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var RA=PA,FA=CA,HA=VA,WA=IA,YA=LA,UA=RA;function io(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}io.prototype.clear=FA,io.prototype.delete=HA,io.prototype.get=WA,io.prototype.has=YA,io.prototype.set=UA;var If=io,V4=If,jA="Expected a function";function Af(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(jA);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var o=t.apply(this,r);return n.cache=s.set(a,o)||s,o};return n.cache=new(Af.Cache||V4),n}Af.Cache=V4;var qA=Af,GA=qA,KA=500;function ZA(t){var e=GA(t,function(r){return n.size===KA&&n.clear(),r}),n=e.cache;return e}var XA=ZA,JA=XA,QA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eN=/\\(\\)?/g,tN=JA(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(QA,function(n,r,a,s){e.push(a?s.replace(eN,"$1"):r||n)}),e}),nN=tN;function iN(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var rN=iN,$4=pu,aN=rN,sN=Hi,oN=Of,T4=$4?$4.prototype:void 0,I4=T4?T4.toString:void 0;function A4(t){if(typeof t=="string")return t;if(sN(t))return aN(t,A4)+"";if(oN(t))return I4?I4.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var lN=A4,cN=lN;function dN(t){return t==null?"":cN(t)}var uN=dN,hN=Hi,fN=Vf,pN=nN,mN=uN;function gN(t,e){return hN(t)?t:fN(t,e)?[t]:pN(mN(t))}var N4=gN,yN=ar,bN=Wi,vN="[object Arguments]";function _N(t){return bN(t)&&yN(t)==vN}var wN=_N,L4=wN,kN=Wi,z4=Object.prototype,xN=z4.hasOwnProperty,CN=z4.propertyIsEnumerable,SN=L4(function(){return arguments}())?L4:function(t){return kN(t)&&xN.call(t,"callee")&&!CN.call(t,"callee")},Nf=SN,MN=9007199254740991,BN=/^(?:0|[1-9]\d*)$/;function DN(t,e){var n=typeof t;return e=e??MN,!!e&&(n=="number"||n!="symbol"&&BN.test(t))&&t>-1&&t%1==0&&t<e}var Lf=DN,EN=9007199254740991;function ON(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=EN}var zf=ON,VN=Of;function $N(t){if(typeof t=="string"||VN(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var vu=$N,TN=N4,IN=Nf,AN=Hi,NN=Lf,LN=zf,zN=vu;function PN(t,e,n){e=TN(e,t);for(var r=-1,a=e.length,s=!1;++r<a;){var o=zN(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=a?s:(a=t==null?0:t.length,!!a&&LN(a)&&NN(o,a)&&(AN(t)||IN(t)))}var P4=PN,RN=dT,FN=P4;function HN(t,e){return t!=null&&FN(t,e,RN)}var R4=HN,WN=ar,YN=Wi,UN="[object Date]";function jN(t){return YN(t)&&WN(t)==UN}var qN=jN;function GN(t){return function(e){return t(e)}}var F4=GN,nc={},KN={get exports(){return nc},set exports(t){nc=t}};(function(t,e){var n=k4,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===r,o=s&&n.process,l=function(){try{var d=a&&a.require&&a.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();t.exports=l})(KN,nc);var ZN=qN,XN=F4,H4=nc,W4=H4&&H4.isDate,JN=W4?XN(W4):ZN,QN=JN,eL=ar,tL=Hi,nL=Wi,iL="[object String]";function rL(t){return typeof t=="string"||!tL(t)&&nL(t)&&eL(t)==iL}var sr=rL;function aL(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Y4=aL,sL=yu;function oL(){this.__data__=new sL,this.size=0}var lL=oL;function cL(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var dL=cL;function uL(t){return this.__data__.get(t)}var hL=uL;function fL(t){return this.__data__.has(t)}var pL=fL,mL=yu,gL=Tf,yL=If,bL=200;function vL(t,e){var n=this.__data__;if(n instanceof mL){var r=n.__data__;if(!gL||r.length<bL-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yL(r)}return n.set(t,e),this.size=n.size,this}var _L=vL,wL=yu,kL=lL,xL=dL,CL=hL,SL=pL,ML=_L;function ro(t){var e=this.__data__=new wL(t);this.size=e.size}ro.prototype.clear=kL,ro.prototype.delete=xL,ro.prototype.get=CL,ro.prototype.has=SL,ro.prototype.set=ML;var Pf=ro,BL="__lodash_hash_undefined__";function DL(t){return this.__data__.set(t,BL),this}var EL=DL;function OL(t){return this.__data__.has(t)}var VL=OL,$L=If,TL=EL,IL=VL;function _u(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new $L;++e<n;)this.add(t[e])}_u.prototype.add=_u.prototype.push=TL,_u.prototype.has=IL;var AL=_u;function NL(t,e){return t.has(e)}var LL=NL,zL=AL,PL=Y4,RL=LL,FL=1,HL=2;function WL(t,e,n,r,a,s){var o=n&FL,l=t.length,d=e.length;if(l!=d&&!(o&&d>l))return!1;var h=s.get(t),f=s.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,y=n&HL?new zL:void 0;for(s.set(t,e),s.set(e,t);++m<l;){var _=t[m],w=e[m];if(r)var k=o?r(w,_,m,e,t,s):r(_,w,m,t,e,s);if(k!==void 0){if(k)continue;g=!1;break}if(y){if(!PL(e,function(x,M){if(!RL(y,M)&&(_===x||a(_,x,n,r,s)))return y.push(M)})){g=!1;break}}else if(!(_===w||a(_,w,n,r,s))){g=!1;break}}return s.delete(t),s.delete(e),g}var U4=WL,YL=rr,UL=YL.Uint8Array,j4=UL;function jL(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}var qL=jL;function GL(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var KL=GL,q4=pu,G4=j4,ZL=to,XL=U4,JL=qL,QL=KL,ez=1,tz=2,nz="[object Boolean]",iz="[object Date]",rz="[object Error]",az="[object Map]",sz="[object Number]",oz="[object RegExp]",lz="[object Set]",cz="[object String]",dz="[object Symbol]",uz="[object ArrayBuffer]",hz="[object DataView]",K4=q4?q4.prototype:void 0,Rf=K4?K4.valueOf:void 0;function fz(t,e,n,r,a,s,o){switch(n){case hz:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case uz:return!(t.byteLength!=e.byteLength||!s(new G4(t),new G4(e)));case nz:case iz:case sz:return ZL(+t,+e);case rz:return t.name==e.name&&t.message==e.message;case oz:case cz:return t==e+"";case az:var l=JL;case lz:var d=r&ez;if(l||(l=QL),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;r|=tz,o.set(t,e);var f=XL(l(t),l(e),r,a,s,o);return o.delete(t),f;case dz:if(Rf)return Rf.call(t)==Rf.call(e)}return!1}var pz=fz;function mz(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var gz=mz,yz=gz,bz=Hi;function vz(t,e,n){var r=e(t);return bz(t)?r:yz(r,n(t))}var _z=vz;function wz(t,e){for(var n=-1,r=t==null?0:t.length,a=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[a++]=o)}return s}var kz=wz;function xz(){return[]}var Cz=xz,Sz=kz,Mz=Cz,Bz=Object.prototype,Dz=Bz.propertyIsEnumerable,Z4=Object.getOwnPropertySymbols,Ez=Z4?function(t){return t==null?[]:(t=Object(t),Sz(Z4(t),function(e){return Dz.call(t,e)}))}:Mz,Oz=Ez;function Vz(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var $z=Vz,ao={},Tz={get exports(){return ao},set exports(t){ao=t}};function Iz(){return!1}var Az=Iz;(function(t,e){var n=rr,r=Az,a=e&&!e.nodeType&&e,s=a&&!0&&t&&!t.nodeType&&t,o=s&&s.exports===a,l=o?n.Buffer:void 0,d=l?l.isBuffer:void 0,h=d||r;t.exports=h})(Tz,ao);var Nz=ar,Lz=zf,zz=Wi,Pz="[object Arguments]",Rz="[object Array]",Fz="[object Boolean]",Hz="[object Date]",Wz="[object Error]",Yz="[object Function]",Uz="[object Map]",jz="[object Number]",qz="[object Object]",Gz="[object RegExp]",Kz="[object Set]",Zz="[object String]",Xz="[object WeakMap]",Jz="[object ArrayBuffer]",Qz="[object DataView]",eP="[object Float32Array]",tP="[object Float64Array]",nP="[object Int8Array]",iP="[object Int16Array]",rP="[object Int32Array]",aP="[object Uint8Array]",sP="[object Uint8ClampedArray]",oP="[object Uint16Array]",lP="[object Uint32Array]",zt={};zt[eP]=zt[tP]=zt[nP]=zt[iP]=zt[rP]=zt[aP]=zt[sP]=zt[oP]=zt[lP]=!0,zt[Pz]=zt[Rz]=zt[Jz]=zt[Fz]=zt[Qz]=zt[Hz]=zt[Wz]=zt[Yz]=zt[Uz]=zt[jz]=zt[qz]=zt[Gz]=zt[Kz]=zt[Zz]=zt[Xz]=!1;function cP(t){return zz(t)&&Lz(t.length)&&!!zt[Nz(t)]}var dP=cP,uP=dP,hP=F4,X4=nc,J4=X4&&X4.isTypedArray,fP=J4?hP(J4):uP,Ff=fP,pP=$z,mP=Nf,gP=Hi,yP=ao,bP=Lf,vP=Ff,_P=Object.prototype,wP=_P.hasOwnProperty;function kP(t,e){var n=gP(t),r=!n&&mP(t),a=!n&&!r&&yP(t),s=!n&&!r&&!a&&vP(t),o=n||r||a||s,l=o?pP(t.length,String):[],d=l.length;for(var h in t)(e||wP.call(t,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||bP(h,d)))&&l.push(h);return l}var Q4=kP,xP=Object.prototype;function CP(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||xP;return t===n}var Hf=CP;function SP(t,e){return function(n){return t(e(n))}}var eb=SP,MP=eb,BP=MP(Object.keys,Object),DP=BP,EP=Hf,OP=DP,VP=Object.prototype,$P=VP.hasOwnProperty;function TP(t){if(!EP(t))return OP(t);var e=[];for(var n in Object(t))$P.call(t,n)&&n!="constructor"&&e.push(n);return e}var IP=TP,AP=Qa,NP=zf;function LP(t){return t!=null&&NP(t.length)&&!AP(t)}var ic=LP,zP=Q4,PP=IP,RP=ic;function FP(t){return RP(t)?zP(t):PP(t)}var Wf=FP,HP=_z,WP=Oz,YP=Wf;function UP(t){return HP(t,YP,WP)}var jP=UP,tb=jP,qP=1,GP=Object.prototype,KP=GP.hasOwnProperty;function ZP(t,e,n,r,a,s){var o=n&qP,l=tb(t),d=l.length,h=tb(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=l[m];if(!(o?g in e:KP.call(e,g)))return!1}var y=s.get(t),_=s.get(e);if(y&&_)return y==e&&_==t;var w=!0;s.set(t,e),s.set(e,t);for(var k=o;++m<d;){g=l[m];var x=t[g],M=e[g];if(r)var O=o?r(M,x,g,e,t,s):r(x,M,g,t,e,s);if(!(O===void 0?x===M||a(x,M,n,r,s):O)){w=!1;break}k||(k=g=="constructor")}if(w&&!k){var S=t.constructor,V=e.constructor;S!=V&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof V=="function"&&V instanceof V)&&(w=!1)}return s.delete(t),s.delete(e),w}var XP=ZP,JP=es,QP=rr,eR=JP(QP,"DataView"),tR=eR,nR=es,iR=rr,rR=nR(iR,"Promise"),aR=rR,sR=es,oR=rr,lR=sR(oR,"Set"),cR=lR,dR=es,uR=rr,hR=dR(uR,"WeakMap"),fR=hR,Yf=tR,Uf=Tf,jf=aR,qf=cR,Gf=fR,nb=ar,so=D4,ib="[object Map]",pR="[object Object]",rb="[object Promise]",ab="[object Set]",sb="[object WeakMap]",ob="[object DataView]",mR=so(Yf),gR=so(Uf),yR=so(jf),bR=so(qf),vR=so(Gf),ts=nb;(Yf&&ts(new Yf(new ArrayBuffer(1)))!=ob||Uf&&ts(new Uf)!=ib||jf&&ts(jf.resolve())!=rb||qf&&ts(new qf)!=ab||Gf&&ts(new Gf)!=sb)&&(ts=function(t){var e=nb(t),n=e==pR?t.constructor:void 0,r=n?so(n):"";if(r)switch(r){case mR:return ob;case gR:return ib;case yR:return rb;case bR:return ab;case vR:return sb}return e});var _R=ts,Kf=Pf,wR=U4,kR=pz,xR=XP,lb=_R,cb=Hi,db=ao,CR=Ff,SR=1,ub="[object Arguments]",hb="[object Array]",wu="[object Object]",MR=Object.prototype,fb=MR.hasOwnProperty;function BR(t,e,n,r,a,s){var o=cb(t),l=cb(e),d=o?hb:lb(t),h=l?hb:lb(e);d=d==ub?wu:d,h=h==ub?wu:h;var f=d==wu,m=h==wu,g=d==h;if(g&&db(t)){if(!db(e))return!1;o=!0,f=!1}if(g&&!f)return s||(s=new Kf),o||CR(t)?wR(t,e,n,r,a,s):kR(t,e,d,n,r,a,s);if(!(n&SR)){var y=f&&fb.call(t,"__wrapped__"),_=m&&fb.call(e,"__wrapped__");if(y||_){var w=y?t.value():t,k=_?e.value():e;return s||(s=new Kf),a(w,k,n,r,s)}}return g?(s||(s=new Kf),xR(t,e,n,r,a,s)):!1}var DR=BR,ER=DR,pb=Wi;function mb(t,e,n,r,a){return t===e?!0:t==null||e==null||!pb(t)&&!pb(e)?t!==t&&e!==e:ER(t,e,n,r,mb,a)}var gb=mb,OR=Pf,VR=gb,$R=1,TR=2;function IR(t,e,n,r){var a=n.length,s=a,o=!r;if(t==null)return!s;for(t=Object(t);a--;){var l=n[a];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<s;){l=n[a];var d=l[0],h=t[d],f=l[1];if(o&&l[2]){if(h===void 0&&!(d in t))return!1}else{var m=new OR;if(r)var g=r(h,f,d,t,e,m);if(!(g===void 0?VR(f,h,$R|TR,r,m):g))return!1}}return!0}var AR=IR,NR=Cr;function LR(t){return t===t&&!NR(t)}var yb=LR,zR=yb,PR=Wf;function RR(t){for(var e=PR(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,zR(a)]}return e}var FR=RR;function HR(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var bb=HR,WR=AR,YR=FR,UR=bb;function jR(t){var e=YR(t);return e.length==1&&e[0][2]?UR(e[0][0],e[0][1]):function(n){return n===t||WR(n,t,e)}}var qR=jR,GR=N4,KR=vu;function ZR(t,e){e=GR(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[KR(e[n++])];return n&&n==r?t:void 0}var vb=ZR,XR=vb;function JR(t,e,n){var r=t==null?void 0:XR(t,e);return r===void 0?n:r}var ns=JR;function QR(t,e){return t!=null&&e in Object(t)}var eF=QR,tF=eF,nF=P4;function iF(t,e){return t!=null&&nF(t,e,tF)}var rF=iF,aF=gb,sF=ns,oF=rF,lF=Vf,cF=yb,dF=bb,uF=vu,hF=1,fF=2;function pF(t,e){return lF(t)&&cF(e)?dF(uF(t),e):function(n){var r=sF(n,t);return r===void 0&&r===e?oF(n,t):aF(e,r,hF|fF)}}var mF=pF;function gF(t){return t}var Zf=gF;function yF(t){return function(e){return e==null?void 0:e[t]}}var bF=yF,vF=vb;function _F(t){return function(e){return vF(e,t)}}var wF=_F,kF=bF,xF=wF,CF=Vf,SF=vu;function MF(t){return CF(t)?kF(SF(t)):xF(t)}var BF=MF,DF=qR,EF=mF,OF=Zf,VF=Hi,$F=BF;function TF(t){return typeof t=="function"?t:t==null?OF:typeof t=="object"?VF(t)?EF(t[0],t[1]):DF(t):$F(t)}var _b=TF;function IF(t){return function(e,n,r){for(var a=-1,s=Object(e),o=r(e),l=o.length;l--;){var d=o[t?l:++a];if(n(s[d],d,s)===!1)break}return e}}var AF=IF,NF=AF,LF=NF(),wb=LF,zF=wb,PF=Wf;function RF(t,e){return t&&zF(t,e,PF)}var kb=RF,FF=ic;function HF(t,e){return function(n,r){if(n==null)return n;if(!FF(n))return t(n,r);for(var a=n.length,s=e?a:-1,o=Object(n);(e?s--:++s<a)&&r(o[s],s,o)!==!1;);return n}}var WF=HF,YF=kb,UF=WF,jF=UF(YF),qF=jF,GF=qF;function KF(t,e){var n;return GF(t,function(r,a,s){return n=e(r,a,s),!n}),!!n}var ZF=KF,XF=to,JF=ic,QF=Lf,eH=Cr;function tH(t,e,n){if(!eH(n))return!1;var r=typeof e;return(r=="number"?JF(n)&&QF(e,n.length):r=="string"&&e in n)?XF(n[e],t):!1}var Xf=tH,nH=Y4,iH=_b,rH=ZF,aH=Hi,sH=Xf;function oH(t,e,n){var r=aH(t)?nH:rH;return n&&sH(t,e,n)&&(e=void 0),r(t,iH(e))}var lH=oH,cH=ar,dH=Wi,uH="[object Boolean]";function hH(t){return t===!0||t===!1||dH(t)&&cH(t)==uH}var fH=hH,pH=ar,mH=Wi,gH="[object Number]";function yH(t){return typeof t=="number"||mH(t)&&pH(t)==gH}var Yi=yH,bH=es,vH=function(){try{var t=bH(Object,"defineProperty");return t({},"",{}),t}catch{}}(),xb=vH,Cb=xb;function _H(t,e,n){e=="__proto__"&&Cb?Cb(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var ku=_H,wH=ku,kH=to,xH=Object.prototype,CH=xH.hasOwnProperty;function SH(t,e,n){var r=t[e];(!(CH.call(t,e)&&kH(r,n))||n===void 0&&!(e in t))&&wH(t,e,n)}var MH=SH,BH=ku,DH=kb,EH=_b;function OH(t,e){var n={};return e=EH(e),DH(t,function(r,a,s){BH(n,a,e(r,a,s))}),n}var VH=OH;function $H(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Sb=$H,TH=Sb,Mb=Math.max;function IH(t,e,n){return e=Mb(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=Mb(r.length-e,0),o=Array(s);++a<s;)o[a]=r[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=r[a];return l[e]=n(o),TH(t,this,l)}}var AH=IH;function NH(t){return function(){return t}}var LH=NH,zH=LH,Bb=xb,PH=Zf,RH=Bb?function(t,e){return Bb(t,"toString",{configurable:!0,enumerable:!1,value:zH(e),writable:!0})}:PH,FH=RH,HH=800,WH=16,YH=Date.now;function UH(t){var e=0,n=0;return function(){var r=YH(),a=WH-(r-n);if(n=r,a>0){if(++e>=HH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var jH=UH,qH=FH,GH=jH,KH=GH(qH),ZH=KH,XH=Zf,JH=AH,QH=ZH;function eW(t,e){return QH(JH(t,e,XH),t+"")}var Jf=eW;function tW(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var nW=tW,iW=Cr,rW=Hf,aW=nW,sW=Object.prototype,oW=sW.hasOwnProperty;function lW(t){if(!iW(t))return aW(t);var e=rW(t),n=[];for(var r in t)r=="constructor"&&(e||!oW.call(t,r))||n.push(r);return n}var cW=lW,dW=Q4,uW=cW,hW=ic;function fW(t){return hW(t)?dW(t,!0):uW(t)}var Qf=fW,pW=Jf,mW=to,gW=Xf,yW=Qf,Db=Object.prototype,bW=Db.hasOwnProperty,vW=pW(function(t,e){t=Object(t);var n=-1,r=e.length,a=r>2?e[2]:void 0;for(a&&gW(e[0],e[1],a)&&(r=1);++n<r;)for(var s=e[n],o=yW(s),l=-1,d=o.length;++l<d;){var h=o[l],f=t[h];(f===void 0||mW(f,Db[h])&&!bW.call(t,h))&&(t[h]=s[h])}return t}),Eb=vW,_W=ku,wW=to;function kW(t,e,n){(n!==void 0&&!wW(t[e],n)||n===void 0&&!(e in t))&&_W(t,e,n)}var Ob=kW,xu={},xW={get exports(){return xu},set exports(t){xu=t}};(function(t,e){var n=rr,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===r,o=s?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=l?l(m):new h.constructor(m);return h.copy(g),g}t.exports=d})(xW,xu);var Vb=j4;function CW(t){var e=new t.constructor(t.byteLength);return new Vb(e).set(new Vb(t)),e}var SW=CW,MW=SW;function BW(t,e){var n=e?MW(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var DW=BW;function EW(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var OW=EW,VW=Cr,$b=Object.create,$W=function(){function t(){}return function(e){if(!VW(e))return{};if($b)return $b(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),TW=$W,IW=eb,AW=IW(Object.getPrototypeOf,Object),Tb=AW,NW=TW,LW=Tb,zW=Hf;function PW(t){return typeof t.constructor=="function"&&!zW(t)?NW(LW(t)):{}}var RW=PW,FW=ic,HW=Wi;function WW(t){return HW(t)&&FW(t)}var YW=WW,UW=ar,jW=Tb,qW=Wi,GW="[object Object]",KW=Function.prototype,ZW=Object.prototype,Ib=KW.toString,XW=ZW.hasOwnProperty,JW=Ib.call(Object);function QW(t){if(!qW(t)||UW(t)!=GW)return!1;var e=jW(t);if(e===null)return!0;var n=XW.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Ib.call(n)==JW}var eY=QW;function tY(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Ab=tY,nY=MH,iY=ku;function rY(t,e,n,r){var a=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var l=e[s],d=r?r(n[l],t[l],l,n,t):void 0;d===void 0&&(d=t[l]),a?iY(n,l,d):nY(n,l,d)}return n}var aY=rY,sY=aY,oY=Qf;function lY(t){return sY(t,oY(t))}var cY=lY,Nb=Ob,dY=xu,uY=DW,hY=OW,fY=RW,Lb=Nf,zb=Hi,pY=YW,mY=ao,gY=Qa,yY=Cr,bY=eY,vY=Ff,Pb=Ab,_Y=cY;function wY(t,e,n,r,a,s,o){var l=Pb(t,n),d=Pb(e,n),h=o.get(d);if(h){Nb(t,n,h);return}var f=s?s(l,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=zb(d),y=!g&&mY(d),_=!g&&!y&&vY(d);f=d,g||y||_?zb(l)?f=l:pY(l)?f=hY(l):y?(m=!1,f=dY(d,!0)):_?(m=!1,f=uY(d,!0)):f=[]:bY(d)||Lb(d)?(f=l,Lb(l)?f=_Y(l):(!yY(l)||gY(l))&&(f=fY(d))):m=!1}m&&(o.set(d,f),a(f,d,r,s,o),o.delete(d)),Nb(t,n,f)}var kY=wY,xY=Pf,CY=Ob,SY=wb,MY=kY,BY=Cr,DY=Qf,EY=Ab;function Rb(t,e,n,r,a){t!==e&&SY(e,function(s,o){if(a||(a=new xY),BY(s))MY(t,e,o,n,Rb,r,a);else{var l=r?r(EY(t,o),s,o+"",t,e,a):void 0;l===void 0&&(l=s),CY(t,o,l)}},DY)}var Fb=Rb,OY=Fb,Hb=Cr;function Wb(t,e,n,r,a,s){return Hb(t)&&Hb(e)&&(s.set(e,t),OY(t,e,void 0,Wb,s),s.delete(e)),t}var VY=Wb,$Y=Jf,TY=Xf;function IY(t){return $Y(function(e,n){var r=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(a--,s):void 0,o&&TY(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),e=Object(e);++r<a;){var l=n[r];l&&t(e,l,r,s)}return e})}var AY=IY,NY=Fb,LY=AY,zY=LY(function(t,e,n,r){NY(t,e,n,r)}),PY=zY,RY=Sb,FY=Jf,HY=VY,WY=PY,YY=FY(function(t){return t.push(void 0,HY),RY(WY,void 0,t)}),rc=YY;function UY(t){return t&&t.length?t[0]:void 0}var Yb=UY;function jY(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var oo=jY;const qY=t=>Object.prototype.toString.call(t).slice(8,-1),lo=t=>QN(t)&&!isNaN(t.getTime()),Sr=t=>qY(t)==="Object",Ub=R4,jb=(t,e)=>lH(e,n=>R4(t,n)),St=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},wi=t=>Array.isArray(t),Mr=t=>wi(t)&&t.length>0,Cu=t=>t==null?null:document&&sr(t)?document.querySelector(t):t.$el??t,da=(t,e,n,r=void 0)=>{t.removeEventListener(e,n,r)},ua=(t,e,n,r=void 0)=>(t.addEventListener(e,n,r),()=>da(t,e,n,r)),Su=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Mu=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},qb=(t,...e)=>{const n={};let r;for(r in t)e.includes(r)||(n[r]=t[r]);return n},Gb=(t,e)=>{const n={};return e.forEach(r=>{r in t&&(n[r]=t[r])}),n};function GY(t,e,n){return Math.min(Math.max(t,e),n)}var Bu={},KY={get exports(){return Bu},set exports(t){Bu=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}t.exports=e.default})(KY,Bu);const ZY=w4(Bu);var Du={},XY={get exports(){return Du},set exports(t){Du=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}t.exports=e.default})(XY,Du);const Kb=w4(Du);function JY(t,e){var n=nU(e);return n.formatToParts?eU(n,t):tU(n,t)}var QY={year:0,month:1,day:2,hour:3,minute:4,second:5};function eU(t,e){try{for(var n=t.formatToParts(e),r=[],a=0;a<n.length;a++){var s=QY[n[a].type];s>=0&&(r[s]=parseInt(n[a].value,10))}return r}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function tU(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var e0={};function nU(t){if(!e0[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=e==="06/25/2014, 00:00:00"||e==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";e0[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e0[t]}function Zb(t,e,n,r,a,s,o){var l=new Date(0);return l.setUTCFullYear(t,e,n),l.setUTCHours(r,a,s,o),l}var Xb=36e5,iU=6e4,t0={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function rU(t,e,n){var r,a;if(!t||(r=t0.timezoneZ.exec(t),r))return 0;var s;if(r=t0.timezoneHH.exec(t),r)return s=parseInt(r[1],10),Jb(s)?-(s*Xb):NaN;if(r=t0.timezoneHHMM.exec(t),r){s=parseInt(r[1],10);var o=parseInt(r[2],10);return Jb(s,o)?(a=Math.abs(s)*Xb+o*iU,s>0?-a:a):NaN}if(oU(t)){e=new Date(e||Date.now());var l=aU(e),d=n0(l,t),h=sU(e,d,t);return-h}return NaN}function aU(t){return Zb(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function n0(t,e){var n=JY(t,e),r=Zb(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=t.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,r-a}function sU(t,e,n){var r=t.getTime(),a=r-e,s=n0(new Date(a),n);if(e===s)return e;a-=s-e;var o=n0(new Date(a),n);return s===o?s:Math.max(s,o)}function Jb(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var Qb={};function oU(t){if(Qb[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),Qb[t]=!0,!0}catch{return!1}}var lU=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const cU=lU;var i0=36e5,e5=6e4,dU=2,In={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:cU};function uU(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=e,r=n.additionalDigits==null?dU:ZY(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var a=hU(t),s=fU(a.date,r),o=s.year,l=s.restDateString,d=pU(l,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(a.time&&(f=mU(a.time),isNaN(f)))return new Date(NaN);if(a.timeZone||n.timeZone){if(m=rU(a.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=Kb(new Date(h+f)),m=Kb(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function hU(t){var e={},n=In.dateTimePattern.exec(t),r;if(n?(e.date=n[1],r=n[3]):(n=In.datePattern.exec(t),n?(e.date=n[1],r=n[2]):(e.date=null,r=t)),r){var a=In.timeZone.exec(r);a?(e.time=r.replace(a[1],""),e.timeZone=a[1].trim()):e.time=r}return e}function fU(t,e){var n=In.YYY[e],r=In.YYYYY[e],a;if(a=In.YYYY.exec(t)||r.exec(t),a){var s=a[1];return{year:parseInt(s,10),restDateString:t.slice(s.length)}}if(a=In.YY.exec(t)||n.exec(t),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:t.slice(o.length)}}return{year:null}}function pU(t,e){if(e===null)return null;var n,r,a,s;if(t.length===0)return r=new Date(0),r.setUTCFullYear(e),r;if(n=In.MM.exec(t),n)return r=new Date(0),a=parseInt(n[1],10)-1,i5(e,a)?(r.setUTCFullYear(e,a),r):new Date(NaN);if(n=In.DDD.exec(t),n){r=new Date(0);var o=parseInt(n[1],10);return bU(e,o)?(r.setUTCFullYear(e,0,o),r):new Date(NaN)}if(n=In.MMDD.exec(t),n){r=new Date(0),a=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return i5(e,a,l)?(r.setUTCFullYear(e,a,l),r):new Date(NaN)}if(n=In.Www.exec(t),n)return s=parseInt(n[1],10)-1,r5(e,s)?t5(e,s):new Date(NaN);if(n=In.WwwD.exec(t),n){s=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return r5(e,s,d)?t5(e,s,d):new Date(NaN)}return null}function mU(t){var e,n,r;if(e=In.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),r0(n)?n%24*i0:NaN;if(e=In.HHMM.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),r0(n,r)?n%24*i0+r*e5:NaN;if(e=In.HHMMSS.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var a=parseFloat(e[3].replace(",","."));return r0(n,r,a)?n%24*i0+r*e5+a*1e3:NaN}return null}function t5(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var a=r.getUTCDay()||7,s=e*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}var gU=[31,28,31,30,31,30,31,31,30,31,30,31],yU=[31,29,31,30,31,30,31,31,30,31,30,31];function n5(t){return t%400===0||t%4===0&&t%100!==0}function i5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var r=n5(t);if(r&&n>yU[e]||!r&&n>gU[e])return!1}return!0}function bU(t,e){if(e<1)return!1;var n=n5(t);return!(n&&e>366||!n&&e>365)}function r5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function r0(t,e,n){return!(t!=null&&(t<0||t>=25)||e!=null&&(e<0||e>=60)||n!=null&&(n<0||n>=60))}function Mn(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Eu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Eu=function(n){return typeof n}:Eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Eu(t)}function Br(t){Mn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Eu(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function co(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var vU={};function a0(){return vU}function is(t,e){var n,r,a,s,o,l,d,h;Mn(1,arguments);var f=a0(),m=co((n=(r=(a=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Br(t),y=g.getDay(),_=(y<m?7:0)+y-m;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}function a5(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var _U=6048e5;function wU(t,e,n){Mn(2,arguments);var r=is(t,n),a=is(e,n),s=r.getTime()-a5(r),o=a.getTime()-a5(a);return Math.round((s-o)/_U)}function kU(t){Mn(1,arguments);var e=Br(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function xU(t){Mn(1,arguments);var e=Br(t);return e.setDate(1),e.setHours(0,0,0,0),e}function CU(t,e){return Mn(1,arguments),wU(kU(t),xU(t),e)+1}function SU(t,e){var n,r,a,s,o,l,d,h;Mn(1,arguments);var f=Br(t),m=f.getFullYear(),g=a0(),y=co((n=(r=(a=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&r!==void 0?r:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setFullYear(m+1,0,y),_.setHours(0,0,0,0);var w=is(_,e),k=new Date(0);k.setFullYear(m,0,y),k.setHours(0,0,0,0);var x=is(k,e);return f.getTime()>=w.getTime()?m+1:f.getTime()>=x.getTime()?m:m-1}function MU(t,e){var n,r,a,s,o,l,d,h;Mn(1,arguments);var f=a0(),m=co((n=(r=(a=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=SU(t,e),y=new Date(0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);var _=is(y,e);return _}var BU=6048e5;function DU(t,e){Mn(1,arguments);var n=Br(t),r=is(n,e).getTime()-MU(n,e).getTime();return Math.round(r/BU)+1}function Ou(t){return Mn(1,arguments),is(t,{weekStartsOn:1})}function EU(t){Mn(1,arguments);var e=Br(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=Ou(r),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=Ou(s);return e.getTime()>=a.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function OU(t){Mn(1,arguments);var e=EU(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=Ou(n);return r}var VU=6048e5;function $U(t){Mn(1,arguments);var e=Br(t),n=Ou(e).getTime()-OU(e).getTime();return Math.round(n/VU)+1}function An(t,e){Mn(2,arguments);var n=Br(t),r=co(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Vu(t,e){Mn(2,arguments);var n=Br(t),r=co(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return a>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),a),n)}function s5(t,e){Mn(2,arguments);var n=co(e);return Vu(t,n*12)}const TU={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function IU({monthComps:t,prevMonthComps:e,nextMonthComps:n},r){const a=[],{firstDayOfWeek:s,firstWeekday:o,isoWeeknumbers:l,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<s?Bn:0)-s;let g=!0,y=!1,_=!1,w=0;const k=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let x=e.numDays-m+1,M=e.numDays-x+1,O=Math.floor((x-1)/Bn+1),S=1,V=e.numWeeks,T=1,N=e.month,A=e.year;const R=new Date,W=R.getDate(),ie=R.getMonth()+1,G=R.getFullYear();for(let re=1;re<=lj;re++){for(let ye=1,ee=s;ye<=Bn;ye++,ee+=ee===Bn?1-Bn:1){g&&ee===o&&(x=1,M=t.numDays,O=Math.floor((x-1)/Bn+1),S=Math.floor((h-x)/Bn+1),V=1,T=f,N=t.month,A=t.year,g=!1,y=!0);const Z=r.getDateFromParams(A,N,x,0,0,0,0),he=r.getDateFromParams(A,N,x,12,0,0,0),pe=r.getDateFromParams(A,N,x,23,59,59,999),J=Z,H=`${St(A,4)}-${St(N,2)}-${St(x,2)}`,ge=ye,fe=Bn-ye,$e=d[re-1],Ve=l[re-1],_e=x===W&&N===ie&&A===G,Le=y&&x===1,nt=y&&x===h,ae=re===1,xe=re===f,Ne=ye===1,Ze=ye===Bn,He=C5(A,N,x);a.push({locale:r,id:H,position:++w,label:x.toString(),ariaLabel:k.format(new Date(A,N-1,x)),day:x,dayFromEnd:M,weekday:ee,weekdayPosition:ge,weekdayPositionFromEnd:fe,weekdayOrdinal:O,weekdayOrdinalFromEnd:S,week:V,weekFromEnd:T,weekPosition:re,weeknumber:$e,isoWeeknumber:Ve,month:N,year:A,date:J,startDate:Z,endDate:pe,noonDate:he,dayIndex:He,isToday:_e,isFirstDay:Le,isLastDay:nt,isDisabled:!y,isFocusable:!y,isFocused:!1,inMonth:y,inPrevMonth:g,inNextMonth:_,onTop:ae,onBottom:xe,onLeft:Ne,onRight:Ze,classes:[`id-${H}`,`day-${x}`,`day-from-end-${M}`,`weekday-${ee}`,`weekday-position-${ge}`,`weekday-ordinal-${O}`,`weekday-ordinal-from-end-${S}`,`week-${V}`,`week-from-end-${T}`,{"is-today":_e,"is-first-day":Le,"is-last-day":nt,"in-month":y,"in-prev-month":g,"in-next-month":_,"on-top":ae,"on-bottom":xe,"on-left":Ne,"on-right":Ze}]}),y&&nt?(y=!1,_=!0,x=1,M=h,O=1,S=Math.floor((h-x)/Bn+1),V=1,T=n.numWeeks,N=n.month,A=n.year):(x++,M--,O=Math.floor((x-1)/Bn+1),S=Math.floor((h-x)/Bn+1))}V++,T--}return a}function AU(t,e,n,r){const a=t.reduce((s,o,l)=>{const d=Math.floor(l/7);let h=s[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},s[d]=h),h.days.push(o),s},Array(t.length/Bn));return a.forEach(s=>{const o=s.days[0],l=s.days[s.days.length-1];o.month===l.month?s.title=`${r.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?s.title=`${r.formatDate(o.date,"MMM")} - ${r.formatDate(l.date,"MMM YYYY")}`:s.title=`${r.formatDate(o.date,"MMM YYYY")} - ${r.formatDate(l.date,"MMM YYYY")}`}),a}function NU(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function LU(t,e){return`${e}.${St(t,2)}`}function o5(t,e,n){return Gb(n.getDateParts(n.toDate(t)),TU[e])}function l5({day:t,week:e,month:n,year:r},a,s,o){if(s==="daily"&&t){const l=new Date(r,n-1,t),d=An(l,a);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(s==="weekly"&&e){const d=o.getMonthParts(n,r).firstDayOfMonth,h=An(d,(e-1+a)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(r,n-1,1),d=Vu(l,a);return{month:d.getMonth()+1,year:d.getFullYear()}}}function or(t){return t!=null&&t.month!=null&&t.year!=null}function s0(t,e){return!or(t)||!or(e)?!1:(t=t,e=e,t.year!==e.year?t.year<e.year:t.month&&e.month&&t.month!==e.month?t.month<e.month:t.week&&e.week&&t.week!==e.week?t.week<e.week:t.day&&e.day&&t.day!==e.day?t.day<e.day:!1)}function $u(t,e){return!or(t)||!or(e)?!1:(t=t,e=e,t.year!==e.year?t.year>e.year:t.month&&e.month&&t.month!==e.month?t.month>e.month:t.week&&e.week&&t.week!==e.week?t.week>e.week:t.day&&e.day&&t.day!==e.day?t.day>e.day:!1)}function zU(t,e,n){return(t||!1)&&!s0(t,e)&&!$u(t,n)}function PU(t,e){return!t&&e||t&&!e?!1:!t&&!e?!0:(t=t,e=e,t.year===e.year&&t.month===e.month&&t.week===e.week&&t.day===e.day)}function RU(t,e,n,r){if(!or(t)||!or(e))return[];const a=[];for(;!$u(t,e);)a.push(t),t=l5(t,1,n,r);return a}function c5(t){const{day:e,week:n,month:r,year:a}=t;let s=`${a}-${St(r,2)}`;return n&&(s=`${s}-w${n}`),e&&(s=`${s}-${St(e,2)}`),s}function FU(t,e){const{month:n,year:r,showWeeknumbers:a,showIsoWeeknumbers:s}=t,o=new Date(r,n-1,15),l=e.getMonthParts(n,r),d=e.getPrevMonthParts(n,r),h=e.getNextMonthParts(n,r),f=IU({monthComps:l,prevMonthComps:d,nextMonthComps:h},e),m=AU(f,a,s,e),g=NU(m[0],e);return{id:c5(t),month:n,year:r,monthTitle:e.formatDate(o,e.masks.title),shortMonthLabel:e.formatDate(o,"MMM"),monthLabel:e.formatDate(o,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:l,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:g}}function HU(t,e){const{day:n,week:r,view:a,trimWeeks:s}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let l=o.days.find(h=>h.inMonth);n?l=o.days.find(h=>h.day===n&&h.inMonth)||l:r&&(l=o.days.find(h=>h.week===r&&h.inMonth));const d=o.weeks[l.week-1];o.viewWeeks=[d],o.viewDays=[l],o.week=l.week,o.weekTitle=d.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=r||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,s?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class d5{constructor(e,n,r){Ee(this,"keys",[]),Ee(this,"store",{}),this.size=e,this.createKey=n,this.createItem=r}get(...e){const n=this.createKey(...e);return this.store[n]}getOrSet(...e){const n=this.createKey(...e);if(this.store[n])return this.store[n];const r=this.createItem(...e);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(n),this.store[n]=r,r}}class uo{constructor(e,n=new Tu){Ee(this,"order"),Ee(this,"locale"),Ee(this,"start",null),Ee(this,"end",null),Ee(this,"repeat",null);var r;this.locale=n;const{start:a,end:s,span:o,order:l,repeat:d}=e;lo(a)&&(this.start=n.getDateParts(a)),lo(s)?this.end=n.getDateParts(s):this.start!=null&&o&&(this.end=n.getDateParts(An(this.start.date,o-1))),this.order=l??0,d&&(this.repeat=new Iu({from:(r=this.start)==null?void 0:r.date,...d},{locale:this.locale}))}static fromMany(e,n){return(wi(e)?e:[e]).filter(r=>r).map(r=>uo.from(r,n))}static from(e,n){if(e instanceof uo)return e;const r={start:null,end:null};return e!=null&&(wi(e)?(r.start=e[0]??null,r.end=e[1]??null):Sr(e)?Object.assign(r,e):(r.start=e,r.end=e)),r.start!=null&&(r.start=new Date(r.start)),r.end!=null&&(r.end=new Date(r.end)),new uo(r,n)}get opts(){const{order:e,locale:n}=this;return{order:e,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:n}=this;return e&&n&&e.year===n.year&&e.month===n.month&&e.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var n,r;return((n=this.start)==null?void 0:n.dayIndex)===e.dayIndex||!!((r=this.repeat)!=null&&r.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var n,r;return this.intersectsDayRange(((n=e.start)==null?void 0:n.dayIndex)??-1/0,((r=e.end)==null?void 0:r.dayIndex)??1/0)}intersectsDayRange(e,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<e)}}class WU{constructor(){Ee(this,"records",{})}render(e,n,r){var a,s,o,l;let d=null;const h=r[0].dayIndex,f=r[r.length-1].dayIndex;return n.hasRepeat?r.forEach(m=>{var g,y;if(n.startsOnDay(m)){const _=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((g=n.start)==null?void 0:g.time)??0,endDay:m.dayIndex+_-1,endTime:((y=n.end)==null?void 0:y.time)??Au},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((a=n.start)==null?void 0:a.dayIndex)??-1/0,startTime:((s=n.start)==null?void 0:s.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(e).push(d)),d}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(s=>s.data.key===e)}cellExists(e,n){const r=this.records[e];return r==null?!1:r.ranges.some(a=>a.startDay<=n&&a.endDay>=n)}getCells(e){const n=Object.values(this.records),r=[],{dayIndex:a}=e;return n.forEach(({data:s,ranges:o})=>{o.filter(l=>l.startDay<=a&&l.endDay>=a).forEach(l=>{const d=a===l.startDay,h=a===l.endDay,f=d?l.startTime:0,m=new Date(e.startDate.getTime()+f),g=h?l.endTime:Au,y=new Date(e.endDate.getTime()+g),_=f===0&&g===Au,w=s.order||0;r.push({...l,data:s,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:y,allDay:_,order:w})})}),r.sort((s,o)=>s.order-o.order),r}}const Dr={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Dr.en=Dr["en-US"],Dr.es=Dr["es-ES"],Dr.no=Dr.nb,Dr.zh=Dr["zh-CN"];const YU=Object.entries(Dr).reduce((t,[e,{dow:n,L:r}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:r}},t),{}),UU={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:YU,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},o0=i.reactive(UU),jU=i.computed(()=>VH(o0.locales,t=>(t.masks=rc(t.masks,o0.masks),t))),ha=t=>typeof window<"u"&&Ub(window.__vcalendar__,t)?ns(window.__vcalendar__,t):ns(o0,t),qU=12,GU=5;function KU(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;sr(t)?r=t:Ub(t,"id")&&(r=t.id),r=(r||n).toLowerCase();const a=Object.keys(e),s=d=>a.find(h=>h.toLowerCase()===d);r=s(r)||s(r.substring(0,2))||n;const o={...e["en-IE"],...e[r],id:r,monthCacheSize:qU,pageCacheSize:GU};return Sr(t)?rc(t,o):o}class Tu{constructor(e=void 0,n){Ee(this,"id"),Ee(this,"daysInWeek"),Ee(this,"firstDayOfWeek"),Ee(this,"masks"),Ee(this,"timezone"),Ee(this,"hourLabels"),Ee(this,"dayNames"),Ee(this,"dayNamesShort"),Ee(this,"dayNamesShorter"),Ee(this,"dayNamesNarrow"),Ee(this,"monthNames"),Ee(this,"monthNamesShort"),Ee(this,"relativeTimeNames"),Ee(this,"amPm",["am","pm"]),Ee(this,"monthCache"),Ee(this,"pageCache");const{id:r,firstDayOfWeek:a,masks:s,monthCacheSize:o,pageCacheSize:l}=KU(e,jU.value);this.monthCache=new d5(o,yj,bj),this.pageCache=new d5(l,c5,FU),this.id=r,this.daysInWeek=Bn,this.firstDayOfWeek=GY(a,1,Bn),this.masks=s,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=u0("long",this.id),this.dayNamesShort=u0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=u0("narrow",this.id),this.monthNames=D5("long",this.id),this.monthNamesShort=D5("short",this.id),this.relativeTimeNames=wj(this.id)}formatDate(e,n){return Mj(e,n,this)}parseDate(e,n){return E5(e,n,this)}toDate(e,n={}){const r=new Date(NaN);let a=r;const{fillDate:s,mask:o,patch:l,rules:d}=n;if(Yi(e)?(n.type="number",a=new Date(+e)):sr(e)?(n.type="string",a=e?E5(e,o||"iso",this):r):lo(e)?(n.type="date",a=new Date(e.getTime())):c0(e)&&(n.type="object",a=this.getDateFromParts(e)),a&&(l||d)){let h=this.getDateParts(a);if(l&&s!=null){const f=this.getDateParts(this.toDate(s));h=this.getDateParts(this.toDate({...f,...Gb(h,oj[l])}))}d&&(h=Sj(h,d)),a=this.getDateFromParts(h)}return a||r}toDateOrNull(e,n={}){const r=this.toDate(e,n);return isNaN(r.getTime())?null:r}fromDate(e,{type:n,mask:r}={}){switch(n){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,r||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return uo.from(e,this)}ranges(e){return uo.fromMany(e,this)}getDateParts(e){return gj(e,this)}getDateFromParts(e){return M5(e,this.timezone)}getDateFromParams(e,n,r,a,s,o,l){return this.getDateFromParts({year:e,month:n,day:r,hours:a,minutes:s,seconds:o,milliseconds:l})}getPage(e){const n=this.pageCache.getOrSet(e,this);return HU(e,n)}getMonthParts(e,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(e,n,r)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,n){return e===1?this.getMonthParts(12,n-1):this.getMonthParts(e-1,n)}getNextMonthParts(e,n){return e===12?this.getMonthParts(1,n+1):this.getMonthParts(e+1,n)}getHourLabels(){return _j().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var ho=(t=>(t.Any="any",t.All="all",t))(ho||{}),u5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(u5||{}),h5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(h5||{}),f5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(f5||{});class ZU{constructor(e,n,r){Ee(this,"validated",!0),this.type=e,this.interval=n,this.from=r,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:n}=e;switch(this.type){case"days":return d0(this.from.date,n)%this.interval===0;case"weeks":return pj(this.from.date,n)%this.interval===0;case"months":return mj(this.from.date,n)%this.interval===0;case"years":return S5(this.from.date,n)%this.interval===0;default:return!1}}}class fo{constructor(e,n,r,a){Ee(this,"components",[]),this.type=e,this.validator=r,this.getter=a,this.components=this.normalizeComponents(n)}static create(e,n){switch(e){case"days":return new XU(n);case"weekdays":return new JU(n);case"weeks":return new QU(n);case"months":return new ej(n);case"years":return new tj(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!wi(e))return[];const n=[];return e.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(e){return this.getter(e).some(a=>this.components.includes(a))}}class XU extends fo{constructor(e){super("days",e,rj,({day:n,dayFromEnd:r})=>[n,-r])}}class JU extends fo{constructor(e){super("weekdays",e,l0,({weekday:n})=>[n])}}class QU extends fo{constructor(e){super("weeks",e,aj,({week:n,weekFromEnd:r})=>[n,-r])}}class ej extends fo{constructor(e){super("months",e,sj,({month:n})=>[n])}}class tj extends fo{constructor(e){super("years",e,Yi,({year:n})=>[n])}}class nj{constructor(e,n){Ee(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!p5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!l0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(e){const n=[];return e.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!p5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!l0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(e){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:a}=e;return this.components.some(([s,o])=>(s===r||s===-a)&&n===o)}}class ij{constructor(e){Ee(this,"type","function"),Ee(this,"validated",!0),this.fn=e,Qa(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return this.validated?this.fn(e):!0}}class Iu{constructor(e,n={},r){Ee(this,"validated",!0),Ee(this,"config"),Ee(this,"type",ho.Any),Ee(this,"from"),Ee(this,"until"),Ee(this,"rules",[]),Ee(this,"locale",new Tu),this.parent=r,n.locale&&(this.locale=n.locale),this.config=e,Qa(e)?(this.type=ho.All,this.rules=[new ij(e)]):wi(e)?(this.type=ho.Any,this.rules=e.map(a=>new Iu(a,n,this))):Sr(e)?(this.type=ho.All,this.from=e.from?this.locale.getDateParts(e.from):r==null?void 0:r.from,this.until=e.until?this.locale.getDateParts(e.until):r==null?void 0:r.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const n=[];if(e.every&&(sr(e.every)&&(e.every=[1,`${e.every}s`]),wi(e.every))){const[r=1,a=u5.Days]=e.every;n.push(new ZU(a,r,this.from))}return Object.values(h5).forEach(r=>{r in e&&n.push(fo.create(r,e[r]))}),Object.values(f5).forEach(r=>{r in e&&n.push(new nj(r,e[r]))}),e.on!=null&&(wi(e.on)||(e.on=[e.on]),n.push(new Iu(e.on,{locale:this.locale},this.parent))),n}passes(e){return this.validated?this.from&&e.dayIndex<=this.from.dayIndex||this.until&&e.dayIndex>=this.until.dayIndex?!1:this.type===ho.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function rj(t){return Yi(t)?t>=1&&t<=31:!1}function l0(t){return Yi(t)?t>=1&&t<=7:!1}function aj(t){return Yi(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function sj(t){return Yi(t)?t>=1&&t<=12:!1}function p5(t){return!(!Yi(t)||t<-5||t>5||t===0)}const oj={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Bn=7,lj=6,m5=1e3,g5=m5*60,y5=g5*60,Au=y5*24,cj=[31,28,31,30,31,30,31,31,30,31,30,31],dj=["L","iso"],ac={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},b5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,uj=/\[([^]*?)\]/gm,v5={D(t){return t.day},DD(t){return St(t.day,2)},d(t){return t.weekday-1},dd(t){return St(t.weekday-1,2)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return St(t.month,2)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substr(2)},YYYY(t){return St(t.year,4)},h(t){return t.hours%12||12},hh(t){return St(t.hours%12||12,2)},H(t){return t.hours},HH(t){return St(t.hours,2)},m(t){return t.minutes},mm(t){return St(t.minutes,2)},s(t){return t.seconds},ss(t){return St(t.seconds,2)},S(t){return Math.round(t.milliseconds/100)},SS(t){return St(Math.round(t.milliseconds/10),2)},SSS(t){return St(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${St(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${St(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${St(Math.floor(Math.abs(e)/60),2)}:${St(Math.abs(e)%60,2)}`}},fa=/\d\d?/,hj=/\d{3}/,fj=/\d{4}/,sc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,_5=()=>{},w5=t=>(e,n,r)=>{const a=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(e.month=a)},Et={D:[fa,(t,e)=>{t.day=e}],Do:[new RegExp(fa.source+sc.source),(t,e)=>{t.day=parseInt(e,10)}],d:[fa,_5],W:[sc,_5],M:[fa,(t,e)=>{t.month=e-1}],MMM:[sc,w5("monthNamesShort")],MMMM:[sc,w5("monthNames")],YY:[fa,(t,e)=>{const r=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?r-1:r}${e}`}],YYYY:[fj,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[hj,(t,e)=>{t.milliseconds=e}],h:[fa,(t,e)=>{t.hours=e}],m:[fa,(t,e)=>{t.minutes=e}],s:[fa,(t,e)=>{t.seconds=e}],a:[sc,(t,e,n)=>{const r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{e==="Z"&&(e="+00:00");const n=`${e}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);t.timezoneOffset=n[0]==="+"?r:-r}}]};Et.DD=Et.D,Et.dd=Et.d,Et.WWWW=Et.WWW=Et.WW=Et.W,Et.MM=Et.M,Et.mm=Et.m,Et.hh=Et.H=Et.HH=Et.h,Et.ss=Et.s,Et.A=Et.a,Et.ZZZZ=Et.ZZZ=Et.ZZ=Et.Z;function k5(t,e){return(Mr(t)&&t||[sr(t)&&t||"YYYY-MM-DD"]).map(n=>dj.reduce((r,a)=>r.replace(a,e.masks[a]||""),n))}function c0(t){return Sr(t)&&"year"in t&&"month"in t&&"day"in t}function x5(t,e=1){const n=t.getDay()+1,r=n>=e?e-n:-(7-(e-n));return An(t,r)}function C5(t,e,n){const r=Date.UTC(t,e-1,n);return d0(new Date(0),new Date(r))}function d0(t,e){return Math.round((e.getTime()-t.getTime())/Au)}function pj(t,e){return Math.ceil(d0(x5(t),x5(e))/7)}function S5(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function mj(t,e){return S5(t,e)*12+(e.getMonth()-t.getMonth())}function M5(t,e=""){const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:s=n.getDate(),hours:o=0,minutes:l=0,seconds:d=0,milliseconds:h=0}=t;if(e){const f=`${St(r,4)}-${St(a,2)}-${St(s,2)}T${St(o,2)}:${St(l,2)}:${St(d,2)}.${St(h,3)}`;return uU(f,{timeZone:e})}return new Date(r,a-1,s,o,l,d,h)}function gj(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const r=n.getMilliseconds(),a=n.getSeconds(),s=n.getMinutes(),o=n.getHours(),l=r+a*m5+s*g5+o*y5,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,y=n.getDay()+1,_=Math.floor((m-1)/7+1),w=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),x=f.numWeeks-k+1,M=f.weeknumbers[k],O=C5(h,d,m);return{milliseconds:r,seconds:a,minutes:s,hours:o,time:l,day:m,dayFromEnd:g,weekday:y,weekdayOrdinal:_,weekdayOrdinalFromEnd:w,week:k,weekFromEnd:x,weeknumber:M,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:O,timezoneOffset:0,isValid:!0}}function yj(t,e,n){return`${e}-${t}-${n}`}function bj(t,e,n){const r=e%4===0&&e%100!==0||e%400===0,a=new Date(e,t-1,1),s=a.getDay()+1,o=t===2&&r?29:cj[t-1],l=n-1,d=CU(a,{weekStartsOn:l}),h=[],f=[];for(let m=0;m<d;m++){const g=An(a,m*7);h.push(DU(g,{weekStartsOn:l})),f.push($U(g))}return{firstDayOfWeek:n,firstDayOfMonth:a,inLeapYear:r,firstWeekday:s,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function vj(){const t=[];for(let a=0;a<Bn;a++)t.push(M5({year:2020,month:1,day:5+a,hours:12}));return t}function u0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return vj().map(r=>n.format(r))}function _j(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function wj(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((r,a)=>{const s=n.formatToParts(100,a);return r[a]=s[1].unit,r},{})}function B5(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function D5(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return B5().map(r=>n.format(r))}function kj(t,e,n){return Yi(e)?e===t:wi(e)?e.includes(t):Qa(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function oc(t,e,n){const r=[],[a,s,o]=e;for(let l=a;l<=s;l++)(n==null||kj(l,n,t))&&r.push({value:l,label:St(l,o)});return r}function xj(t,e){return{milliseconds:oc(t,ac.milliseconds,e.milliseconds),seconds:oc(t,ac.seconds,e.seconds),minutes:oc(t,ac.minutes,e.minutes),hours:oc(t,ac.hours,e.hours)}}function Cj(t,e,n,r){const s=oc(t,e,r).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const d=Math.abs(o-n);return Math.abs(l.value-n)<d?l.value:o},NaN);return isNaN(s)?n:s}function Sj(t,e){const n={...t};return Object.entries(e).forEach(([r,a])=>{const s=ac[r],o=t[r];n[r]=Cj(t,s,o,a)}),n}function E5(t,e,n){return k5(e,n).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let s=t;if(s.length>1e3)return!1;let o=!0;const l={};if(a.replace(b5,f=>{if(Et[f]){const m=Et[f],g=s.search(m[0]);~g?s.replace(m[0],y=>(m[1](l,y,n),s=s.substr(g+y.length),y)):o=!1}return Et[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let h;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,h=new Date(Date.UTC(l.year||d.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):h=n.getDateFromParts({year:l.year||d.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),h}).find(a=>a)||new Date(t)}function Mj(t,e,n){if(t==null)return"";let r=k5(e,n)[0];/Z$/.test(r)&&(n.timezone="utc");const a=[];r=r.replace(uj,(o,l)=>(a.push(l),"??"));const s=n.getDateParts(t);return r=r.replace(b5,o=>o in v5?v5[o](s,n):o.slice(1,o.length-1)),r.replace(/\?\?/g,()=>a.shift())}let Bj=0;class O5{constructor(e,n,r){Ee(this,"key",""),Ee(this,"hashcode",""),Ee(this,"highlight",null),Ee(this,"content",null),Ee(this,"dot",null),Ee(this,"bar",null),Ee(this,"event",null),Ee(this,"popover",null),Ee(this,"customData",null),Ee(this,"ranges"),Ee(this,"hasRanges",!1),Ee(this,"order",0),Ee(this,"pinPage",!1),Ee(this,"maxRepeatSpan",0),Ee(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++Bj),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(a??[]),this.hasRanges=!!Mr(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,o)=>Math.max(s,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const r=this.ranges.filter(o=>!o.hasRepeat);for(const o of r)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const a=this.ranges.filter(o=>o.hasRepeat);if(!a.length)return!1;let s=e;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(An(s.date,-this.maxRepeatSpan)));s.dayIndex<=n.dayIndex;){for(const o of a)if(o.startsOnDay(s))return!0;s=this.locale.getDateParts(An(s.date,1))}return!1}}function h0(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function lc(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function V5(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function $5(t){const{visibility:e}=t,n=e==="click",r=e==="hover",a=e==="hover-focus",s=e==="focus";t.autoHide=!n;let o=!1,l=!1;const d=_=>{n&&(V5({...t,target:t.target||_.currentTarget}),_.stopPropagation())},h=_=>{o||(o=!0,(r||a)&&h0({...t,target:t.target||_.currentTarget}))},f=()=>{o&&(o=!1,(r||a&&!l)&&lc(t))},m=_=>{l||(l=!0,(s||a)&&h0({...t,target:t.target||_.currentTarget}))},g=_=>{l&&!Su(_.currentTarget,_.relatedTarget)&&(l=!1,(s||a&&!o)&&lc(t))},y={};switch(t.visibility){case"click":y.click=d;break;case"hover":y.mousemove=h,y.mouseleave=f;break;case"focus":y.focusin=m,y.focusout=g;break;case"hover-focus":y.mousemove=h,y.mouseleave=f,y.focusin=m,y.focusout=g;break}return y}const T5=t=>{const e=Cu(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete e.popoverHandlers)},I5=(t,e)=>{const n=Cu(t);if(n==null)return;const r=[],a=$5(e);Object.entries(a).forEach(([s,o])=>{r.push(ua(n,s,o))}),n.popoverHandlers=r},A5={mounted(t,e){const{value:n}=e;n&&I5(t,n)},updated(t,e){const{oldValue:n,value:r}=e,a=n==null?void 0:n.visibility,s=r==null?void 0:r.visibility;a!==s&&(a&&(T5(t),s||lc(n)),s&&I5(t,r))},unmounted(t){T5(t)}},Dj=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!t||!t.addEventListener||!Qa(e))return null;let s=0,o=0,l=null,d=!1;function h(m){const g=m.changedTouches[0];s=g.screenX,o=g.screenY,l=new Date().getTime(),d=!0}function f(m){if(!d||!l)return;d=!1;const g=m.changedTouches[0],y=g.screenX-s,_=g.screenY-o;if(new Date().getTime()-l<n&&Math.abs(y)>=r&&Math.abs(_)<=a){const k={toLeft:!1,toRight:!1};y<0?k.toLeft=!0:k.toRight=!0,e(k)}}return ua(t,"touchstart",h,{passive:!0}),ua(t,"touchend",f,{passive:!0}),()=>{da(t,"touchstart",h),da(t,"touchend",f)}},Nu={},Ej=(t,e=10)=>{Nu[t]=Date.now()+e},Oj=(t,e)=>{if(t in Nu){const n=Nu[t];if(Date.now()<n)return;delete Nu[t]}e()};function N5(){return typeof window<"u"}function Vj(t){return N5()&&t in window}function $j(t){const e=i.ref(!1),n=i.computed(()=>e.value?"dark":"light");let r,a;function s(y){e.value=y.matches}function o(){Vj("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",s),e.value=r.matches)}function l(){const{selector:y=":root",darkClass:_="dark"}=t.value,w=document.querySelector(y);e.value=w.classList.contains(_)}function d(y){const{selector:_=":root",darkClass:w="dark"}=y;if(N5()&&_&&w){const k=document.querySelector(_);k&&(a=new MutationObserver(l),a.observe(k,{attributes:!0,attributeFilter:["class"]}),e.value=k.classList.contains(w))}}function h(){m();const y=typeof t.value;y==="string"&&t.value.toLowerCase()==="system"?o():y==="object"?d(t.value):e.value=!!t.value}const f=i.watch(()=>t.value,()=>h(),{immediate:!0});function m(){r&&(r.removeEventListener("change",s),r=void 0),a&&(a.disconnect(),a=void 0)}function g(){m(),f()}return i.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const Tj=["base","start","end","startEnd"],Ij=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Aj={base:{},start:{},end:{}};function f0(t,e,n=Aj){let r=t,a={};e===!0||sr(e)?(r=sr(e)?e:r,a={...n}):Sr(e)&&(jb(e,Tj)?a={...e}:a={base:{...e},start:{...e},end:{...e}});const s=rc(a,{start:a.startEnd,end:a.startEnd},n);return Object.entries(s).forEach(([o,l])=>{let d=r;l===!0||sr(l)?(d=sr(l)?l:d,s[o]={color:d}):Sr(l)&&(jb(l,Ij)?s[o]={...l}:s[o]={}),rc(s[o],{color:d})}),s}class Nj{constructor(){Ee(this,"type","highlight")}normalizeConfig(e,n){return f0(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:r},a){const{key:s,highlight:o}=e;if(!o)return;const{highlights:l}=a,{base:d,start:h,end:f}=o;n&&r?l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):r?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...f,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...d,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class p0{constructor(e,n){Ee(this,"type",""),Ee(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return f0(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:r},a){const{key:s}=e,o=e[this.type];if(!s||!o)return;const l=a[this.collectionType],{base:d,start:h,end:f}=o;n?l.push({...h,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):r?l.push({...f,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...d,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class Lj extends p0{constructor(){super("content","content")}normalizeConfig(e,n){return f0("base",n)}}class zj extends p0{constructor(){super("dot","dots")}}class Pj extends p0{constructor(){super("bar","bars")}}class Rj{constructor(e){Ee(this,"color"),Ee(this,"renderers",[new Lj,new Nj,new zj,new Pj]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(n=>{const r=n.type;e[r]!=null&&(e[r]=n.normalizeConfig(this.color,e[r]))})}prepareRender(e={}){return this.renderers.forEach(n=>{n.prepareRender(e)}),e}render(e,n){this.renderers.forEach(r=>{r.render(e,n)})}}const L5=Symbol("__vc_base_context__"),z5={color:{type:String,default:()=>ha("color")},isDark:{type:[Boolean,String,Object],default:()=>ha("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function P5(t){const e=i.computed(()=>t.color??""),n=i.computed(()=>t.isDark??!1),{displayMode:r}=$j(n),a=i.computed(()=>new Rj(e.value)),s=i.computed(()=>{if(t.locale instanceof Tu)return t.locale;const g=Sr(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new Tu(g,t.timezone)}),o=i.computed(()=>s.value.masks),l=i.computed(()=>t.minDate),d=i.computed(()=>t.maxDate),h=i.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return l.value!=null&&g.push({start:null,end:An(s.value.toDate(l.value),-1)}),d.value!=null&&g.push({start:An(s.value.toDate(d.value),1),end:null}),s.value.ranges(g)}),f=i.computed(()=>new O5({key:"disabled",dates:h.value,order:100},a.value,s.value)),m={color:e,isDark:n,displayMode:r,theme:a,locale:s,masks:o,minDate:l,maxDate:d,disabledDates:h,disabledAttribute:f};return i.provide(L5,m),m}function Fj(t){return i.inject(L5,()=>P5(t),!0)}function R5(t){return`__vc_slot_${t}__`}function F5(t,e={}){Object.keys(t).forEach(n=>{i.provide(R5(e[n]??n),t[n])})}function H5(t){return i.inject(R5(t),null)}const Hj={...z5,view:{type:String,default:"monthly",validator(t){return["daily","weekly","monthly"].includes(t)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>ha("titlePosition")},navVisibility:{type:String,default:()=>ha("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},Wj=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],W5=Symbol("__vc_calendar_context__");function Yj(t,{slots:e,emit:n}){const r=i.ref(null),a=i.ref(null),s=i.ref(new Date().getDate()),o=i.ref(!1),l=i.ref(Symbol()),d=i.ref(Symbol()),h=i.ref(t.view),f=i.ref([]),m=i.ref("");let g=null,y=null;F5(e);const{theme:_,color:w,displayMode:k,locale:x,masks:M,minDate:O,maxDate:S,disabledAttribute:V,disabledDates:T}=Fj(t),N=i.computed(()=>t.rows*t.columns),A=i.computed(()=>t.step||N.value),R=i.computed(()=>Yb(f.value)??null),W=i.computed(()=>oo(f.value)??null),ie=i.computed(()=>t.minPage||(O.value?fe(O.value):null)),G=i.computed(()=>t.maxPage||(S.value?fe(S.value):null)),re=i.computed(()=>t.navVisibility),ye=i.computed(()=>!!t.showWeeknumbers),ee=i.computed(()=>!!t.showIsoWeeknumbers),Z=i.computed(()=>h.value==="monthly"),he=i.computed(()=>h.value==="weekly"),pe=i.computed(()=>h.value==="daily"),J=()=>{o.value=!0,n("transition-start")},H=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},ge=(j,$,q=h.value)=>l5(j,$,q,x.value),fe=j=>o5(j,h.value,x.value),$e=j=>{!V.value||!xe.value||(j.isDisabled=xe.value.cellExists(V.value.key,j.dayIndex))},Ve=j=>{j.isFocusable=j.inMonth&&j.day===s.value},_e=(j,$)=>{for(const q of j)for(const ce of q.days)if($(ce)===!1)return},Le=i.computed(()=>f.value.reduce((j,$)=>(j.push(...$.viewDays),j),[])),nt=i.computed(()=>{const j=[];return(t.attributes||[]).forEach(($,q)=>{!$||!$.dates||j.push(new O5({...$,order:$.order||0},_.value,x.value))}),V.value&&j.push(V.value),j}),ae=i.computed(()=>Mr(nt.value)),xe=i.computed(()=>{const j=new WU;return nt.value.forEach($=>{$.ranges.forEach(q=>{j.render($,q,Le.value)})}),j}),Ne=i.computed(()=>Le.value.reduce((j,$)=>(j[$.dayIndex]={day:$,cells:[]},j[$.dayIndex].cells.push(...xe.value.getCells($)),j),{})),Ze=(j,$)=>{const q=t.showWeeknumbers||t.showIsoWeeknumbers;return q==null?"":fH(q)?q?"left":"":q.startsWith("right")?$>1?"right":q:j>1?"left":q},He=()=>{var j,$;if(!ae.value)return null;const q=nt.value.find(Xe=>Xe.pinPage)||nt.value[0];if(!q||!q.hasRanges)return null;const[ce]=q.ranges,Be=((j=ce.start)==null?void 0:j.date)||(($=ce.end)==null?void 0:$.date);return Be?fe(Be):null},et=()=>{if(or(R.value))return R.value;const j=He();return or(j)?j:fe(new Date)},dt=(j,$={})=>{const{view:q=h.value,position:ce=1,force:Be}=$,Xe=ce>0?1-ce:-(N.value+ce);let ft=ge(j,Xe,q),$t=ge(ft,N.value-1,q);return Be||(s0(ft,ie.value)?ft=ie.value:$u($t,G.value)&&(ft=ge(G.value,1-N.value)),$t=ge(ft,N.value-1)),{fromPage:ft,toPage:$t}},vt=(j,$,q="")=>{if(q==="none"||q==="fade")return q;if((j==null?void 0:j.view)!==($==null?void 0:$.view))return"fade";const ce=$u($,j),Be=s0($,j);return!ce&&!Be?"fade":q==="slide-v"?Be?"slide-down":"slide-up":Be?"slide-right":"slide-left"},ht=(j={})=>new Promise(($,q)=>{const{position:ce=1,force:Be=!1,transition:Xe}=j,ft=or(j.page)?j.page:et(),{fromPage:$t}=dt(ft,{position:ce,force:Be}),cn=[];for(let en=0;en<N.value;en++){const qn=ge($t,en),wt=en+1,Nn=Math.ceil(wt/t.columns),Dn=t.rows-Nn+1,ai=wt%t.columns||t.columns,Ui=t.columns-ai+1,Or=Ze(ai,Ui);cn.push(x.value.getPage({...qn,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:wt,row:Nn,rowFromEnd:Dn,column:ai,columnFromEnd:Ui,showWeeknumbers:ye.value,showIsoWeeknumbers:ee.value,weeknumberPosition:Or}))}m.value=vt(f.value[0],cn[0],Xe),f.value=cn,m.value&&m.value!=="none"?g={resolve:$,reject:q}:$(!0)}),_t=j=>{const $=R.value??fe(new Date);return ge($,j)},Jt=(j,$={})=>{const q=or(j)?j:fe(j);return Object.assign($,dt(q,{...$,force:!0})),RU($.fromPage,$.toPage,h.value,x.value).map(Be=>zU(Be,ie.value,G.value)).some(Be=>Be)},Qt=(j,$={})=>Jt(_t(j),$),mt=i.computed(()=>Qt(-A.value)),st=i.computed(()=>Qt(A.value)),At=async(j,$={})=>!$.force&&!Jt(j,$)?!1:($.fromPage&&!PU($.fromPage,R.value)&&(lc({id:l.value,hideDelay:0}),$.view&&(Ej("view",10),h.value=$.view),await ht({...$,page:$.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Mt=(j,$={})=>At(_t(j),$),Ot=()=>Mt(-A.value),Bt=()=>Mt(A.value),an=j=>{const $=Z.value?".in-month":"",q=`.id-${x.value.getDayId(j)}${$}`,ce=`${q}.vc-focusable, ${q} .vc-focusable`,Be=r.value;if(Be){const Xe=Be.querySelector(ce);if(Xe)return Xe.focus(),!0}return!1},Vt=async(j,$={})=>an(j)?!0:(await At(j,$),an(j)),le=(j,$)=>{s.value=j.day,n("dayclick",j,$)},ze=(j,$)=>{n("daymouseenter",j,$)},je=(j,$)=>{n("daymouseleave",j,$)},se=(j,$)=>{s.value=j.day,a.value=j,j.isFocused=!0,n("dayfocusin",j,$)},Oe=(j,$)=>{a.value=null,j.isFocused=!1,n("dayfocusout",j,$)},Se=(j,$)=>{n("daykeydown",j,$);const q=j.noonDate;let ce=null;switch($.key){case"ArrowLeft":{ce=An(q,-1);break}case"ArrowRight":{ce=An(q,1);break}case"ArrowUp":{ce=An(q,-7);break}case"ArrowDown":{ce=An(q,7);break}case"Home":{ce=An(q,-j.weekdayPosition+1);break}case"End":{ce=An(q,j.weekdayPositionFromEnd);break}case"PageUp":{$.altKey?ce=s5(q,-1):ce=Vu(q,-1);break}case"PageDown":{$.altKey?ce=s5(q,1):ce=Vu(q,1);break}}ce&&($.preventDefault(),Vt(ce).catch())},Y=j=>{const $=a.value;$!=null&&Se($,j)},de=(j,$)=>{n("weeknumberclick",j,$)};ht({page:t.initialPage,position:t.initialPagePosition}),i.onMounted(()=>{!t.disablePageSwipe&&r.value&&(y=Dj(r.value,({toLeft:j=!1,toRight:$=!1})=>{j?Bt():$&&Ot()},ha("touch")))}),i.onUnmounted(()=>{f.value=[],y&&y()}),i.watch(()=>x.value,()=>{ht()}),i.watch(()=>N.value,()=>ht()),i.watch(()=>t.view,()=>h.value=t.view),i.watch(()=>h.value,()=>{Oj("view",()=>{ht()}),n("update:view",h.value)}),i.watch(()=>s.value,()=>{_e(f.value,j=>Ve(j))}),i.watchEffect(()=>{n("update:pages",f.value),_e(f.value,j=>{$e(j),Ve(j)})});const we={emit:n,containerRef:r,focusedDay:a,inTransition:o,navPopoverId:l,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:_,color:w,displayMode:k,locale:x,masks:M,attributes:nt,disabledAttribute:V,disabledDates:T,attributeContext:xe,days:Le,dayCells:Ne,count:N,step:A,firstPage:R,lastPage:W,canMovePrev:mt,canMoveNext:st,minPage:ie,maxPage:G,isMonthly:Z,isWeekly:he,isDaily:pe,navVisibility:re,showWeeknumbers:ye,showIsoWeeknumbers:ee,getDateAddress:fe,canMove:Jt,canMoveBy:Qt,move:At,moveBy:Mt,movePrev:Ot,moveNext:Bt,onTransitionBeforeEnter:J,onTransitionAfterEnter:H,tryFocusDate:an,focusDate:Vt,onKeydown:Y,onDayKeydown:Se,onDayClick:le,onDayMouseenter:ze,onDayMouseleave:je,onDayFocusin:se,onDayFocusout:Oe,onWeeknumberClick:de};return i.provide(W5,we),we}function rs(){const t=i.inject(W5);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const Uj=i.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const r=i.ref();let a=null,s=null;const o=i.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function l(H){H&&(o.direction=H.split("-")[0])}function d({placement:H,options:ge}){l(H||(ge==null?void 0:ge.placement))}const h=i.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=i.computed(()=>{const H=o.direction==="left"||o.direction==="right";let ge="";if(o.placement){const fe=o.placement.split("-");fe.length>1&&(ge=fe[1])}return["start","top","left"].includes(ge)?H?"top":"left":["end","bottom","right"].includes(ge)?H?"bottom":"right":H?"middle":"center"});function m(){s&&(s.destroy(),s=null)}function g(){i.nextTick(()=>{const H=Cu(o.target);!H||!r.value||(s&&s.state.elements.reference!==H&&m(),s?s.update():s=tl(H,r.value,h.value))})}function y(H){Object.assign(o,qb(H,"force"))}function _(H,ge){clearTimeout(n),H>0?n=setTimeout(ge,H):ge()}function w(H){return!H||!s?!1:Cu(H)===s.state.elements.reference}async function k(H={}){o.force||(H.force&&(o.force=!0),_(H.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),y({...H,isVisible:!0}),g()}))}function x(H={}){s&&(H.target&&!w(H.target)||o.force||(H.force&&(o.force=!0),_(H.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function M(H={}){H.target!=null&&(o.isVisible&&w(H.target)?x(H):k(H))}function O(H){if(!s)return;const ge=s.state.elements.reference;if(!r.value||!ge)return;const fe=H.target;Su(r.value,fe)||Su(ge,fe)||x({force:!0})}function S(H){(H.key==="Esc"||H.key==="Escape")&&x()}function V({detail:H}){!H.id||H.id!==t.id||k(H)}function T({detail:H}){!H.id||H.id!==t.id||x(H)}function N({detail:H}){!H.id||H.id!==t.id||M(H)}function A(){ua(document,"keydown",S),ua(document,"click",O),ua(document,"show-popover",V),ua(document,"hide-popover",T),ua(document,"toggle-popover",N)}function R(){da(document,"keydown",S),da(document,"click",O),da(document,"show-popover",V),da(document,"hide-popover",T),da(document,"toggle-popover",N)}function W(H){e("before-show",H)}function ie(H){o.force=!1,e("after-show",H)}function G(H){e("before-hide",H)}function re(H){o.force=!1,m(),e("after-hide",H)}function ye(H){H.stopPropagation()}function ee(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function Z(){if(o.isHovered=!1,!s)return;const H=s.state.elements.reference;o.autoHide&&!o.isFocused&&(!H||H!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&x()}function he(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function pe(H){["focus","hover-focus"].includes(o.visibility)&&(!H.relatedTarget||!Su(r.value,H.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&x())}function J(){a!=null&&(a.disconnect(),a=null)}return i.watch(()=>r.value,H=>{J(),H&&(a=new ResizeObserver(()=>{s&&s.update()}),a.observe(H))}),i.watch(()=>o.placement,l,{immediate:!0}),i.onMounted(()=>{A()}),i.onUnmounted(()=>{m(),J(),R()}),{...i.toRefs(o),popoverRef:r,alignment:f,hide:x,setupPopper:g,beforeEnter:W,afterEnter:ie,beforeLeave:G,afterLeave:re,onClick:ye,onMouseOver:ee,onMouseLeave:Z,onFocusIn:he,onFocusOut:pe}}}),pa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};function jj(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[i.createVNode(i.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:i.withCtx(()=>[t.isVisible?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[i.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[i.createTextVNode(i.toDisplayString(t.data),1)]),i.createElementVNode("span",{class:i.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):i.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const m0=pa(Uj,[["render",jj]]),qj={class:"vc-day-popover-row"},Gj={key:0,class:"vc-day-popover-row-indicator"},Kj={class:"vc-day-popover-row-label"},Zj=i.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=i.computed(()=>{const{content:r,highlight:a,dot:s,bar:o,popover:l}=e.attribute;return l&&l.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(r,a)=>(i.openBlock(),i.createElementBlock("div",qj,[i.unref(n)?(i.openBlock(),i.createElementBlock("div",Gj,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).class)},null,2)])):i.createCommentVNode("",!0),i.createElementVNode("div",Kj,[i.renderSlot(r.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),Xj={inheritAttrs:!1},ki=i.defineComponent({...Xj,__name:"CalendarSlot",props:{name:null},setup(t){const n=H5(t.name);return(r,a)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(n)),i.normalizeProps(i.mergeProps({key:0},r.$attrs)),null,16)):i.renderSlot(r.$slots,"default",{key:1})}}),Jj={class:"vc-day-popover-container"},Qj={key:0,class:"vc-day-popover-header"},eq=i.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:r,masks:a,locale:s}=rs();function o(d,h){return s.value.formatDate(d,h)}function l(d){return s.value.formatDate(d.date,a.value.dayPopover)}return(d,h)=>(i.openBlock(),i.createBlock(m0,{id:i.unref(e),class:i.normalizeClass([`vc-${i.unref(r)}`,`vc-${i.unref(n)}`])},{default:i.withCtx(({data:{day:f,attributes:m},hide:g})=>[i.createVNode(ki,{name:"day-popover",day:f,"day-title":l(f),attributes:m,format:o,masks:i.unref(a),hide:g},{default:i.withCtx(()=>[i.createElementVNode("div",Jj,[i.unref(a).dayPopover?(i.openBlock(),i.createElementBlock("div",Qj,i.toDisplayString(l(f)),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,y=>(i.openBlock(),i.createBlock(Zj,{key:y.key,attribute:y},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),tq={},nq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},iq=[i.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function rq(t,e){return i.openBlock(),i.createElementBlock("svg",nq,iq)}const aq=pa(tq,[["render",rq]]),sq={},oq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},lq=[i.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function cq(t,e){return i.openBlock(),i.createElementBlock("svg",oq,lq)}const dq=pa(sq,[["render",cq]]),uq={},hq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},fq=[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function pq(t,e){return i.openBlock(),i.createElementBlock("svg",hq,fq)}const mq=pa(uq,[["render",pq]]),gq={},yq={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},bq=[i.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function vq(t,e){return i.openBlock(),i.createElementBlock("svg",yq,bq)}const _q=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:mq,IconChevronLeft:dq,IconChevronRight:aq,IconClock:pa(gq,[["render",vq]])},Symbol.toStringTag,{value:"Module"})),po=i.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=i.computed(()=>e.width||e.size),r=i.computed(()=>e.height||e.size),a=i.computed(()=>_q[`Icon${e.name}`]);return(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(a)),{width:i.unref(n),height:i.unref(r),class:"vc-base-icon"},null,8,["width","height"]))}}),wq=["disabled"],kq={key:1,class:"vc-title-wrapper"},xq={type:"button",class:"vc-title"},Cq=["disabled"],Y5=i.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:n,navVisibility:r,canMovePrev:a,movePrev:s,canMoveNext:o,moveNext:l}=rs(),d=i.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=i.computed(()=>{const{page:w}=e;return{id:n.value,visibility:r.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:w},isInteractive:!0}}),f=i.computed(()=>e.page.titlePosition.includes("left")),m=i.computed(()=>e.page.titlePosition.includes("right")),g=i.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),y=i.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),_=i.computed(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(w,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:i.normalizeStyle(i.unref(_))},[i.unref(y).prev?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!i.unref(a),onClick:k[0]||(k[0]=(...x)=>i.unref(s)&&i.unref(s)(...x)),onKeydown:k[1]||(k[1]=i.withKeys((...x)=>i.unref(s)&&i.unref(s)(...x),["space","enter"]))},[i.createVNode(ki,{name:"header-prev-button",disabled:!i.unref(a)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,wq)):i.createCommentVNode("",!0),i.unref(y).title?(i.openBlock(),i.createElementBlock("div",kq,[i.createVNode(ki,{name:"header-title-wrapper"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("button",xq,[i.createVNode(ki,{name:"header-title",title:t.page.title},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[i.unref(A5),i.unref(h)]])]),_:1})])):i.createCommentVNode("",!0),i.unref(y).next?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!i.unref(o),onClick:k[2]||(k[2]=(...x)=>i.unref(l)&&i.unref(l)(...x)),onKeydown:k[3]||(k[3]=i.withKeys((...x)=>i.unref(l)&&i.unref(l)(...x),["space","enter"]))},[i.createVNode(ki,{name:"header-next-button",disabled:!i.unref(o)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Cq)):i.createCommentVNode("",!0)],6))}}),U5=Symbol("__vc_page_context__");function Sq(t){const{locale:e,getDateAddress:n,canMove:r}=rs();function a(l,d){const{month:h,year:f}=n(new Date);return B5().map((m,g)=>{const y=g+1;return{month:y,year:l,id:LU(y,l),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:y===t.value.month&&l===t.value.year,isCurrent:y===h&&l===f,isDisabled:!r({month:y,year:l},{position:t.value.position})}})}function s(l,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=l;g<=d;g+=1){const y=[...Array(12).keys()].some(_=>r({month:_+1,year:g},{position:f}));m.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===t.value.year,isCurrent:g===h,isDisabled:!y})}return m}const o={page:t,getMonthItems:a,getYearItems:s};return i.provide(U5,o),o}function j5(){const t=i.inject(U5);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Mq={class:"vc-nav-header"},Bq=["disabled"],Dq=["disabled"],Eq={class:"vc-nav-items"},Oq=["data-id","aria-label","disabled","onClick","onKeydown"],Vq=i.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=rs(),{page:r,getMonthItems:a,getYearItems:s}=j5(),o=i.ref(!0),l=12,d=i.ref(r.value.year),h=i.ref(g(r.value.year)),f=i.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const fe=f.value.querySelector(".vc-nav-item:not(:disabled)");fe&&fe.focus()},10)}function g(fe){return Math.floor(fe/l)}function y(){o.value=!o.value}function _(fe){return fe*l}function w(fe){return l*(fe+1)-1}function k(){he.value&&(o.value&&M(),S())}function x(){pe.value&&(o.value&&O(),V())}function M(){d.value--}function O(){d.value++}function S(){h.value--}function V(){h.value++}const T=i.computed(()=>a(d.value,e.value.navMonths).map(fe=>({...fe,click:()=>n({month:fe.month,year:fe.year},{position:r.value.position})}))),N=i.computed(()=>a(d.value-1,e.value.navMonths)),A=i.computed(()=>N.value.some(fe=>!fe.isDisabled)),R=i.computed(()=>a(d.value+1,e.value.navMonths)),W=i.computed(()=>R.value.some(fe=>!fe.isDisabled)),ie=i.computed(()=>s(_(h.value),w(h.value)).map(fe=>({...fe,click:()=>{d.value=fe.year,o.value=!0,m()}}))),G=i.computed(()=>s(_(h.value-1),w(h.value-1))),re=i.computed(()=>G.value.some(fe=>!fe.isDisabled)),ye=i.computed(()=>s(_(h.value+1),w(h.value+1))),ee=i.computed(()=>ye.value.some(fe=>!fe.isDisabled)),Z=i.computed(()=>o.value?T.value:ie.value),he=i.computed(()=>o.value?A.value:re.value),pe=i.computed(()=>o.value?W.value:ee.value),J=i.computed(()=>Yb(ie.value.map(fe=>fe.year))),H=i.computed(()=>oo(ie.value.map(fe=>fe.year))),ge=i.computed(()=>o.value?d.value:`${J.value} - ${H.value}`);return i.watchEffect(()=>{d.value=r.value.year,m()}),i.watch(()=>d.value,fe=>h.value=g(fe)),i.onMounted(()=>m()),(fe,$e)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[i.createElementVNode("div",Mq,[i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!i.unref(he),onClick:k,onKeydown:$e[0]||($e[0]=Ve=>i.unref(Mu)(Ve,k))},[i.createVNode(ki,{name:"nav-prev-button",move:k,disabled:!i.unref(he)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Bq),i.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:y,onKeydown:$e[1]||($e[1]=Ve=>i.unref(Mu)(Ve,y))},i.toDisplayString(i.unref(ge)),33),i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!i.unref(pe),onClick:x,onKeydown:$e[2]||($e[2]=Ve=>i.unref(Mu)(Ve,x))},[i.createVNode(ki,{name:"nav-next-button",move:x,disabled:!i.unref(pe)},{default:i.withCtx(()=>[i.createVNode(po,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Dq)]),i.createElementVNode("div",Eq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Z),Ve=>(i.openBlock(),i.createElementBlock("button",{key:Ve.label,type:"button","data-id":Ve.id,"aria-label":Ve.ariaLabel,class:i.normalizeClass(["vc-nav-item vc-focus",[Ve.isActive?"is-active":Ve.isCurrent?"is-current":""]]),disabled:Ve.isDisabled,onClick:Ve.click,onKeydown:_e=>i.unref(Mu)(_e,Ve.click)},i.toDisplayString(Ve.label),43,Oq))),128))])],512))}}),q5=i.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return Sq(i.toRef(e,"page")),(n,r)=>i.renderSlot(n.$slots,"default")}}),$q=i.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:r}=rs();return(a,s)=>(i.openBlock(),i.createBlock(m0,{id:i.unref(e),class:i.normalizeClass(["vc-nav-popover-container",`vc-${i.unref(n)}`,`vc-${i.unref(r)}`])},{default:i.withCtx(({data:o})=>[i.createVNode(q5,{page:o.page},{default:i.withCtx(()=>[i.createVNode(ki,{name:"nav"},{default:i.withCtx(()=>[i.createVNode(Vq)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),Tq=i.defineComponent({directives:{popover:A5},components:{CalendarSlot:ki},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:r,dayPopoverId:a,onDayClick:s,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=rs(),m=i.computed(()=>t.day),g=i.computed(()=>r.value.getCells(m.value)),y=i.computed(()=>g.value.map(ee=>ee.data)),_=i.computed(()=>({...m.value,attributes:y.value,attributeCells:g.value}));function w({data:ee},{popovers:Z}){const{key:he,customData:pe,popover:J}=ee;if(!J)return;const H=Eb({key:he,customData:pe,attribute:ee},{...J},{visibility:J.label?"hover":"click",placement:"bottom",isInteractive:!J.label});Z.splice(0,0,H)}const k=i.computed(()=>{const ee={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(Z=>{n.value.render(Z,ee),w(Z,ee)}),ee}),x=i.computed(()=>k.value.highlights),M=i.computed(()=>!!Mr(x.value)),O=i.computed(()=>k.value.content),S=i.computed(()=>k.value.dots),V=i.computed(()=>!!Mr(S.value)),T=i.computed(()=>k.value.bars),N=i.computed(()=>!!Mr(T.value)),A=i.computed(()=>k.value.popovers),R=i.computed(()=>A.value.map(ee=>ee.attribute)),W=H5("day-content"),ie=i.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!W},{"is-not-in-month":!t.day.inMonth}]),G=i.computed(()=>{let ee;m.value.isFocusable?ee="0":ee="-1";const Z=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},ns(oo(x.value),"contentClass"),ns(oo(O.value),"class")||""],he={...ns(oo(x.value),"contentStyle"),...ns(oo(O.value),"style")};return{class:Z,style:he,tabindex:ee,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),re=i.computed(()=>({click(ee){s(_.value,ee)},mouseenter(ee){o(_.value,ee)},mouseleave(ee){l(_.value,ee)},focusin(ee){d(_.value,ee)},focusout(ee){h(_.value,ee)},keydown(ee){f(_.value,ee)}})),ye=i.computed(()=>Mr(A.value)?Eb({id:a.value,data:{day:m,attributes:R.value}},...A.value):null);return{attributes:y,attributeCells:g,bars:T,dayClasses:ie,dayContentProps:G,dayContentEvents:re,dayPopover:ye,glyphs:k,dots:S,hasDots:V,hasBars:N,highlights:x,hasHighlights:M,locale:e,popovers:A}}}),Iq={key:0,class:"vc-highlights vc-day-layer"},Aq={key:1,class:"vc-day-layer vc-day-box-center-bottom"},Nq={class:"vc-dots"},Lq={key:2,class:"vc-day-layer vc-day-box-center-bottom"},zq={class:"vc-bars"};function Pq(t,e,n,r,a,s){const o=i.resolveComponent("CalendarSlot"),l=i.resolveDirective("popover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.dayClasses)},[t.hasHighlights?(i.openBlock(),i.createElementBlock("div",Iq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(h)},[i.createElementVNode("div",{class:i.normalizeClass(f),style:i.normalizeStyle(m)},null,6)],2))),128))])):i.createCommentVNode("",!0),i.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(t.dayContentProps,i.toHandlers(t.dayContentEvents,!0)),[i.createTextVNode(i.toDisplayString(t.day.label),1)],16)),[[l,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(i.openBlock(),i.createElementBlock("div",Aq,[i.createElementVNode("div",Nq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.dots,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0),t.hasBars?(i.openBlock(),i.createElementBlock("div",Lq,[i.createElementVNode("div",zq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.bars,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0)],2)}const Rq=pa(Tq,[["render",Pq]]),Fq={class:"vc-weekdays"},Hq=["onClick"],Wq={inheritAttrs:!1},Yq=i.defineComponent({...Wq,__name:"CalendarPage",setup(t){const{page:e}=j5(),{onWeeknumberClick:n}=rs();return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-pane",`row-${i.unref(e).row}`,`row-from-end-${i.unref(e).rowFromEnd}`,`column-${i.unref(e).column}`,`column-from-end-${i.unref(e).columnFromEnd}`]),ref:"pane"},[i.createVNode(Y5,{page:i.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),i.createElementVNode("div",{class:i.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${i.unref(e).weeknumberPosition}`]:i.unref(e).weeknumberPosition}])},[i.createElementVNode("div",Fq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).weekdays,({weekday:s,label:o},l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(`vc-weekday vc-weekday-${s}`)},i.toDisplayString(o),3))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).viewWeeks,s=>(i.openBlock(),i.createElementBlock("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[i.unref(e).weeknumberPosition?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["vc-weeknumber",`is-${i.unref(e).weeknumberPosition}`])},[i.createElementVNode("span",{class:i.normalizeClass(["vc-weeknumber-content"]),onClick:o=>i.unref(n)(s,o)},i.toDisplayString(s.weeknumberDisplay),9,Hq)],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.days,o=>(i.openBlock(),i.createBlock(Rq,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),Uq=i.defineComponent({components:{CalendarHeader:Y5,CalendarPage:Yq,CalendarNavPopover:$q,CalendarDayPopover:eq,CalendarPageProvider:q5,CalendarSlot:ki},props:Hj,emit:Wj,setup(t,{emit:e,slots:n}){return Yj(t,{emit:e,slots:n})}}),jq={class:"vc-pane-header-wrapper"};function qq(t,e,n,r,a,s){const o=i.resolveComponent("CalendarHeader"),l=i.resolveComponent("CalendarPage"),d=i.resolveComponent("CalendarSlot"),h=i.resolveComponent("CalendarPageProvider"),f=i.resolveComponent("CalendarDayPopover"),m=i.resolveComponent("CalendarNavPopover");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=i.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[i.createElementVNode("div",{class:i.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[i.createElementVNode("div",jq,[t.firstPage?(i.openBlock(),i.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:i.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.pages,g=>(i.openBlock(),i.createBlock(h,{key:g.id,page:g},{default:i.withCtx(()=>[i.createVNode(d,{name:"page",page:g},{default:i.withCtx(()=>[i.createVNode(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),i.createVNode(d,{name:"footer"})],2)],16),i.createVNode(f),i.createVNode(m)],64)}const Gq=pa(Uq,[["render",qq]]),G5=Symbol("__vc_date_picker_context__"),Kq={...z5,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>ha("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>ha("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},Zq=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function Xq(t,{emit:e,slots:n}){F5(n,{footer:"dp-footer"});const r=P5(t),{locale:a,masks:s,disabledAttribute:o}=r,l=i.ref(!1),d=i.ref(Symbol()),h=i.ref(null),f=i.ref(null),m=i.ref(["",""]),g=i.ref(null),y=i.ref(null);let _,w,k=!0;const x=i.computed(()=>t.isRange||t.modelModifiers.range===!0),M=i.computed(()=>x.value&&h.value!=null?h.value.start:null),O=i.computed(()=>x.value&&h.value!=null?h.value.end:null),S=i.computed(()=>t.mode.toLowerCase()==="date"),V=i.computed(()=>t.mode.toLowerCase()==="datetime"),T=i.computed(()=>t.mode.toLowerCase()==="time"),N=i.computed(()=>!!f.value),A=i.computed(()=>{let $="date";t.modelModifiers.number&&($="number"),t.modelModifiers.string&&($="string");const q=s.value.modelValue||"iso";return $e({type:$,mask:q})}),R=i.computed(()=>Qt(f.value??h.value)),W=i.computed(()=>T.value?t.is24hr?s.value.inputTime24hr:s.value.inputTime:V.value?t.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),ie=i.computed(()=>/[Hh]/g.test(W.value)),G=i.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(W.value)),re=i.computed(()=>{if(ie.value&&G.value)return"dateTime";if(G.value)return"date";if(ie.value)return"time"}),ye=i.computed(()=>{var $;const q=(($=g.value)==null?void 0:$.$el.previousElementSibling)??void 0;return rc({},t.popover,ha("datePicker.popover"),{target:q})}),ee=i.computed(()=>$5({...ye.value,id:d.value})),Z=i.computed(()=>x.value?{start:m.value[0],end:m.value[1]}:m.value[0]),he=i.computed(()=>{const $=["start","end"].map(q=>({input:ht(q),change:_t(q),keyup:Jt,...t.popover&&ee.value}));return x.value?{start:$[0],end:$[1]}:$[0]}),pe=i.computed(()=>{if(!nt(h.value))return null;const $={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:q,bar:ce,highlight:Be,content:Xe}=$;return!q&&!ce&&!Be&&!Xe&&($.highlight=!0),$}),J=i.computed(()=>{if(!x.value||!nt(f.value))return null;const $={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:q,bar:ce,highlight:Be,content:Xe}=$;return!q&&!ce&&!Be&&!Xe&&($.highlight={startEnd:{fillMode:"outline"}}),$}),H=i.computed(()=>{const $=wi(t.attributes)?[...t.attributes]:[];return J.value?$.unshift(J.value):pe.value&&$.unshift(pe.value),$}),ge=i.computed(()=>$e(t.rules==="auto"?fe():t.rules??{}));function fe(){const $={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},q=S.value?0:t.timeAccuracy;return[0,1].map(ce=>{switch(q){case 0:return{hours:$.hr[ce],minutes:$.min[ce],seconds:$.sec[ce],milliseconds:$.ms[ce]};case 1:return{minutes:$.min[ce],seconds:$.sec[ce],milliseconds:$.ms[ce]};case 3:return{milliseconds:$.ms[ce]};case 4:return{};default:return{seconds:$.sec[ce],milliseconds:$.ms[ce]}}})}function $e($){return wi($)?$.length===1?[$[0],$[0]]:$:[$,$]}function Ve($){return $e($).map((q,ce)=>({...q,rules:ge.value[ce]}))}function _e($){return $==null?!1:Yi($)?!isNaN($):lo($)?!isNaN($.getTime()):sr($)?$!=="":c0($)}function Le($){return Sr($)&&"start"in $&&"end"in $&&_e($.start??null)&&_e($.end??null)}function nt($){return Le($)||_e($)}function ae($,q){if($==null&&q==null)return!0;if($==null||q==null)return!1;const ce=lo($),Be=lo(q);return ce&&Be?$.getTime()===q.getTime():ce||Be?!1:ae($.start,q.start)&&ae($.end,q.end)}function xe($){return!nt($)||!o.value?!1:o.value.intersectsRange(a.value.range($))}function Ne($,q,ce,Be){if(!nt($))return null;if(Le($)){const Xe=a.value.toDate($.start,{...q[0],fillDate:M.value??void 0,patch:ce}),ft=a.value.toDate($.end,{...q[1],fillDate:O.value??void 0,patch:ce});return Oe({start:Xe,end:ft},Be)}return a.value.toDateOrNull($,{...q[0],fillDate:h.value,patch:ce})}function Ze($,q){return Le($)?{start:a.value.fromDate($.start,q[0]),end:a.value.fromDate($.end,q[1])}:x.value?null:a.value.fromDate($,q[0])}function He($,q={}){return clearTimeout(_),new Promise(ce=>{const{debounce:Be=0,...Xe}=q;Be>0?_=window.setTimeout(()=>{ce(et($,Xe))},Be):ce(et($,Xe))})}function et($,{config:q=A.value,patch:ce="dateTime",clearIfEqual:Be=!1,formatInput:Xe=!0,hidePopover:ft=!1,dragging:$t=N.value,targetPriority:cn,moveToValue:en=!1}={}){const qn=Ve(q);let wt=Ne($,qn,ce,cn);if(xe(wt)){if($t)return null;wt=h.value,ft=!1}else wt==null&&t.isRequired?wt=h.value:wt!=null&&ae(h.value,wt)&&Be&&(wt=null);const Dn=$t?f:h,ai=!ae(Dn.value,wt);Dn.value=wt,$t||(f.value=null);const Ui=Ze(wt,A.value);return ai&&(k=!1,e($t?"drag":"update:modelValue",Ui),i.nextTick(()=>k=!0)),ft&&!$t&&je(),Xe&&dt(),en&&i.nextTick(()=>de(cn??"start")),Ui}function dt(){i.nextTick(()=>{const $=Ve({type:"string",mask:W.value}),q=Ze(f.value??h.value,$);x.value?m.value=[q&&q.start,q&&q.end]:m.value=[q,""]})}function vt($,q,ce){m.value.splice(q==="start"?0:1,1,$);const Be=x.value?{start:m.value[0],end:m.value[1]||m.value[0]}:$,Xe={type:"string",mask:W.value};He(Be,{...ce,config:Xe,patch:re.value,targetPriority:q,moveToValue:!0})}function ht($){return q=>{t.updateOnInput&&vt(q.currentTarget.value,$,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function _t($){return q=>{vt(q.currentTarget.value,$,{formatInput:!0,hidePopover:!1})}}function Jt($){$.key==="Escape"&&He(h.value,{formatInput:!0,hidePopover:!0})}function Qt($){return x.value?[$&&$.start?a.value.getDateParts($.start):null,$&&$.end?a.value.getDateParts($.end):null]:[$?a.value.getDateParts($):null]}function mt(){f.value=null,dt()}function st($){e("popover-will-show",$)}function At($){e("popover-did-show",$)}function Mt($){mt(),e("popover-will-hide",$)}function Ot($){e("popover-did-hide",$)}function Bt($){const q={patch:"date",formatInput:!0,hidePopover:!0};if(x.value){const ce=!N.value;ce?w={start:$.startDate,end:$.endDate}:w!=null&&(w.end=$.date),He(w,{...q,dragging:ce})}else He($.date,{...q,clearIfEqual:!t.isRequired})}function an($,q){Bt($),e("dayclick",$,q)}function Vt($,q){switch(q.key){case" ":case"Enter":{Bt($),q.preventDefault();break}case"Escape":je()}e("daykeydown",$,q)}function le($,q){!N.value||w==null||(w.end=$.date,He(Oe(w),{patch:"date",formatInput:!0}))}function ze($={}){h0({...ye.value,...$,isInteractive:!0,id:d.value})}function je($={}){lc({hideDelay:10,force:!0,...ye.value,...$,id:d.value})}function se($){V5({...ye.value,...$,isInteractive:!0,id:d.value})}function Oe($,q){const{start:ce,end:Be}=$;if(ce>Be)switch(q){case"start":return{start:ce,end:ce};case"end":return{start:Be,end:Be};default:return{start:Be,end:ce}}return{start:ce,end:Be}}async function Se($,q={}){return y.value==null?!1:y.value.move($,q)}async function Y($,q={}){return y.value==null?!1:y.value.moveBy($,q)}async function de($,q={}){const ce=h.value;if(y.value==null||!nt(ce))return!1;const Be=$!=="end",Xe=Be?1:-1,ft=Le(ce)?Be?ce.start:ce.end:ce,$t=o5(ft,"monthly",a.value);return y.value.move($t,{position:Xe,...q})}i.watch(()=>t.isRange,$=>{$&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),i.watch(()=>x.value,()=>{et(null,{formatInput:!0})}),i.watch(()=>W.value,()=>dt()),i.watch(()=>t.modelValue,$=>{k&&et($,{formatInput:!0,hidePopover:!1})}),i.watch(()=>ge.value,()=>{Sr(t.rules)&&et(t.modelValue,{formatInput:!0,hidePopover:!1})}),i.watch(()=>t.timezone,()=>{et(h.value,{formatInput:!0})});const we=$e(A.value);h.value=Ne(t.modelValue??null,we,"dateTime"),i.onMounted(()=>{et(t.modelValue,{formatInput:!0,hidePopover:!1})}),i.nextTick(()=>l.value=!0);const j={...r,showCalendar:l,datePickerPopoverId:d,popoverRef:g,popoverEvents:ee,calendarRef:y,isRange:x,isTimeMode:T,isDateTimeMode:V,is24hr:i.toRef(t,"is24hr"),hideTimeHeader:i.toRef(t,"hideTimeHeader"),timeAccuracy:i.toRef(t,"timeAccuracy"),isDragging:N,inputValue:Z,inputEvents:he,dateParts:R,attributes:H,rules:ge,move:Se,moveBy:Y,moveToValue:de,updateValue:He,showPopover:ze,hidePopover:je,togglePopover:se,onDayClick:an,onDayKeydown:Vt,onDayMouseEnter:le,onPopoverBeforeShow:st,onPopoverAfterShow:At,onPopoverBeforeHide:Mt,onPopoverAfterHide:Ot};return i.provide(G5,j),j}function g0(){const t=i.inject(G5);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const Jq=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],Qq=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function eG(t){const e=g0(),{locale:n,isRange:r,isTimeMode:a,dateParts:s,rules:o,is24hr:l,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(G){G=Object.assign(y.value,G);let re=null;if(r.value){const ye=g.value?G:s.value[0],ee=g.value?s.value[1]:G;re={start:ye,end:ee}}else re=G;f(re,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=i.computed(()=>t.position===0),y=i.computed(()=>s.value[t.position]||{isValid:!1}),_=i.computed(()=>c0(y.value)),w=i.computed(()=>!!y.value.isValid),k=i.computed(()=>!d.value&&w.value),x=i.computed(()=>{if(!_.value)return null;let G=n.value.toDate(y.value);return y.value.hours===24&&(G=new Date(G.getTime()-1)),G}),M=i.computed({get(){return y.value.hours},set(G){m({hours:G})}}),O=i.computed({get(){return y.value.minutes},set(G){m({minutes:G})}}),S=i.computed({get(){return y.value.seconds},set(G){m({seconds:G})}}),V=i.computed({get(){return y.value.milliseconds},set(G){m({milliseconds:G})}}),T=i.computed({get(){return y.value.hours<12},set(G){G=String(G).toLowerCase()=="true";let re=M.value;G&&re>=12?re-=12:!G&&re<12&&(re+=12),m({hours:re})}}),N=i.computed(()=>xj(y.value,o.value[t.position])),A=i.computed(()=>Jq.filter(G=>N.value.hours.some(re=>re.value===G.value))),R=i.computed(()=>Qq.filter(G=>N.value.hours.some(re=>re.value===G.value))),W=i.computed(()=>l.value?N.value.hours:T.value?A.value:R.value),ie=i.computed(()=>{const G=[];return Mr(A.value)&&G.push({value:!0,label:"AM"}),Mr(R.value)&&G.push({value:!1,label:"PM"}),G});return{...e,showHeader:k,timeAccuracy:h,parts:y,isValid:w,date:x,hours:M,minutes:O,seconds:S,milliseconds:V,options:N,hourOptions:W,isAM:T,isAMOptions:ie,is24hr:l}}const tG=["value"],nG=["value","disabled"],iG={key:1,class:"vc-base-sizer","aria-hidden":"true"},rG={inheritAttrs:!1},cc=i.defineComponent({...rG,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,n=i.computed(()=>{const r=e.options.find(a=>a.value===e.modelValue);return r==null?void 0:r.label});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[i.createElementVNode("select",i.mergeProps(r.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:a[0]||(a[0]=s=>r.$emit("update:modelValue",s.target.value))}),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.options,s=>(i.openBlock(),i.createElementBlock("option",{key:s.value,value:s.value,disabled:s.disabled},i.toDisplayString(s.label),9,nG))),128))],16,tG),t.showIcon?(i.openBlock(),i.createBlock(po,{key:0,name:"ChevronDown",size:"18"})):i.createCommentVNode("",!0),t.fitContent?(i.openBlock(),i.createElementBlock("div",iG,i.toDisplayString(i.unref(n)),1)):i.createCommentVNode("",!0)],2))}}),aG={key:0,class:"vc-time-header"},sG={class:"vc-time-weekday"},oG={class:"vc-time-month"},lG={class:"vc-time-day"},cG={class:"vc-time-year"},dG={class:"vc-time-select-group"},uG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),hG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),fG=i.createElementVNode("span",{class:"vc-time-decimal"},".",-1),K5=i.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const r=eG(t);e(r);const{locale:a,isValid:s,date:o,hours:l,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:y,isAM:_,isAMOptions:w,is24hr:k,showHeader:x,timeAccuracy:M}=r;return(O,S)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-time-picker",[{"vc-invalid":!i.unref(s),"vc-attached":!i.unref(y)}]])},[i.createVNode(ki,{name:"time-header"},{default:i.withCtx(()=>[i.unref(x)&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",aG,[i.createElementVNode("span",sG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"WWW")),1),i.createElementVNode("span",oG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"MMM")),1),i.createElementVNode("span",lG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"D")),1),i.createElementVNode("span",cG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"YYYY")),1)])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",dG,[i.createVNode(po,{name:"Clock",size:"17"}),i.createVNode(cc,{modelValue:i.unref(l),"onUpdate:modelValue":S[0]||(S[0]=V=>i.isRef(l)?l.value=V:null),modelModifiers:{number:!0},options:i.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),i.unref(M)>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[uG,i.createVNode(cc,{modelValue:i.unref(d),"onUpdate:modelValue":S[1]||(S[1]=V=>i.isRef(d)?d.value=V:null),modelModifiers:{number:!0},options:i.unref(m).minutes,class:"vc-time-select-minutes","align-left":i.unref(M)===2},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[hG,i.createVNode(cc,{modelValue:i.unref(h),"onUpdate:modelValue":S[2]||(S[2]=V=>i.isRef(h)?h.value=V:null),modelModifiers:{number:!0},options:i.unref(m).seconds,class:"vc-time-select-seconds","align-left":i.unref(M)===3},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[fG,i.createVNode(cc,{modelValue:i.unref(f),"onUpdate:modelValue":S[3]||(S[3]=V=>i.isRef(f)?f.value=V:null),modelModifiers:{number:!0},options:i.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):i.createCommentVNode("",!0),i.unref(k)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(cc,{key:3,modelValue:i.unref(_),"onUpdate:modelValue":S[4]||(S[4]=V=>i.isRef(_)?_.value=V:null),options:i.unref(w)},null,8,["modelValue","options"]))])],2))}}),Z5=i.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:r,displayMode:a,isDateTimeMode:s,isTimeMode:o,isRange:l,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=g0(),m=l.value?[0,1]:[0];return(g,y)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`vc-container vc-bordered vc-${i.unref(r)} vc-${i.unref(a)}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(K5,{key:_,position:_},null,8,["position"]))),128))],2)):(i.openBlock(),i.createBlock(Gq,{key:1,attributes:i.unref(e),ref_key:"calendarRef",ref:n,onDayclick:i.unref(d),onDaymouseenter:i.unref(h),onDaykeydown:i.unref(f)},{footer:i.withCtx(()=>[i.unref(s)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(K5,{key:_,position:_},null,8,["position"]))),128)):i.createCommentVNode("",!0),i.createVNode(ki,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),pG={inheritAttrs:!1},mG=i.defineComponent({...pG,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:r,popoverRef:a,onPopoverBeforeShow:s,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:d}=g0();return(h,f)=>(i.openBlock(),i.createBlock(m0,{id:i.unref(e),placement:"bottom-start",class:i.normalizeClass(`vc-date-picker-content vc-${i.unref(n)} vc-${i.unref(r)}`),ref_key:"popoverRef",ref:a,onBeforeShow:i.unref(s),onAfterShow:i.unref(o),onBeforeHide:i.unref(l),onAfterHide:i.unref(d)},{default:i.withCtx(()=>[i.createVNode(Z5,i.normalizeProps(i.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),gG=i.defineComponent({inheritAttrs:!1,emits:Zq,props:Kq,components:{DatePickerBase:Z5,DatePickerPopover:mG},setup(t,e){const n=Xq(t,e),r=i.reactive(qb(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}});function yG(t,e,n,r,a,s){const o=i.resolveComponent("DatePickerPopover"),l=i.resolveComponent("DatePickerBase");return t.$slots.default?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(t.$slots,"default",i.normalizeProps(i.guardReactiveProps(t.slotCtx))),i.createVNode(o,i.normalizeProps(i.guardReactiveProps(t.$attrs)),null,16)],64)):(i.openBlock(),i.createBlock(l,i.normalizeProps(i.mergeProps({key:1},t.$attrs)),null,16))}const bG=pa(gG,[["render",yG]]),mo=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),y0={components:{VDatePicker:bG,CdsChevron:Vs,CdsIcon:ke},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||mo(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||mo(t)},maxDate:{type:String,default:"",validator:t=>t===""||mo(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:yi,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let t="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:kr,updateColorData(){this.variantColorData=this.paleteBuilder(yi.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=mo(this.modelValue.start)&&mo(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=mo(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||ri.isEmpty(t)?null:`${t.start} a ${t.end}`}}},X5=()=>{i.useCssVars(t=>({"2a014cba":t.inlineCalendarTrailColor,"60dfc8d0":t.inlineCalendarTextColor,"311f6c80":t.inlineCalendarDotColor}))},J5=y0.setup;y0.setup=J5?(t,e)=>(X5(),J5(t,e)):X5;const vG={key:0},_G={key:1,class:"inline-date-input__label"},wG={class:"label__content",for:"cds-text-input"},kG=["value","disabled","placeholder","onClick"],xG={class:"inline-date-input__icon"};function CG(t,e,n,r,a,s){const o=i.resolveComponent("cds-chevron"),l=i.resolveComponent("cds-icon"),d=i.resolveComponent("v-date-picker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["inline-date-input__container",s.dateInputClassContainer])},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",vG,[i.renderSlot(t.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",_G,[i.createElementVNode("div",wG,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel)+": ",1)])]))]),i.createVNode(d,{id:"cds--inline-date-input",modelValue:a.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>a.internalDate=h),s.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?a.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:i.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[i.createElementVNode("div",{class:i.normalizeClass(s.inputClass)},[i.createElementVNode("input",i.mergeProps({value:s.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},i.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>a.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>a.isBeingFocused=!1)}),null,16,kG),i.createElementVNode("div",xG,[i.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const SG=Q(y0,[["render",CG],["__scopeId","data-v-fd91d96d"]]),MG=["onClick"],BG={key:1,class:"list__body"},DG={class:"list__content"},EG={class:"list__actions"},OG={key:1},VG=Q({__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:t=>Fi.includes(t)},clickable:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){i.useCssVars(l=>({c2849558:s.value}));const{isMobile:n}=iu(),r=e,a=t,s=i.computed(()=>a.clickable?"pointer":"");function o(l){!a.clickable&&!n.value||r("click",l)}return(l,d)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"list",onClick:m=>o(h)},[i.unref(Zl)("item")?i.renderSlot(l.$slots,"item",{key:0,item:h},void 0,!0):(i.openBlock(),i.createElementBlock("div",BG,[i.createElementVNode("div",{class:i.normalizeClass(["list__title",`list__title--${t.variant}`])},i.toDisplayString(h.title),3),i.createElementVNode("div",DG,i.toDisplayString(h.content),1)])),i.createElementVNode("div",EG,[i.unref(n)?(i.openBlock(),i.createBlock(ke,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(i.openBlock(),i.createElementBlock("div",OG,[i.renderSlot(l.$slots,"actions",{item:h},void 0,!0)]))])],8,MG))),128))}},[["__scopeId","data-v-59486d91"]]),$G={};function TG(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",null,e[0]||(e[0]=[i.createElementVNode("div",{class:"loading-bar__container"},[i.createElementVNode("div",{class:"loading-bar"})],-1)]))}const IG=Q($G,[["render",TG],["__scopeId","data-v-59f3ef96"]]),AG=Q({__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(t){i.useCssVars(h=>({e0a02066:r.value,"31f71fda":s.value,"51509f9e":a.value}));const e=t,n=i.ref(0),r=i.computed(()=>`${n.value}%`),a=i.computed(()=>n.value===0?"none":"width 0.5s"),s=i.computed(()=>Xa("smartphone")||Xa("tablet")?"4px":"3px");i.watch(()=>e.modelValue,h=>{if(h){o(),l();return}d()});function o(){n.value=1}function l(){if(n.value>0&&n.value<90){if(n.value+=Math.floor(Math.random()*16+10),n.value>=90){n.value=90;return}let h=Math.floor(Math.random()*(e.intervalTime*1.4-e.intervalTime*.5)+e.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`loading-indicator--${t.variant}`)},null,2))}},[["__scopeId","data-v-fe0c8374"]]),NG={class:"mobile-navbar"},LG={class:"mobile-navbar__items"},zG={key:0,class:"mobile-navbar__item-text"},PG=Q({__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:t=>t.length>0&&t.lenght<=5&&t.every(e=>e.route.path&&e.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>({}),required:!0}},emits:["item-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(n.items[0]),s=i.ref(0),o=i.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${s.value*100}%)`})),l=i.computed(()=>{let f="";switch(s.value){case 0:f+="mobile-navbar__indicator--first ";break;case n.items.length-1:f+="mobile-navbar__indicator--last ";break;default:f+="mobile-navbar__indicator ";break}return f.concat(`mobile-navbar__indicator--${n.variant}`)});i.watchEffect(()=>{s.value=n.items.findIndex(f=>f.label===a.value.label)}),i.watch(n.activeItem,f=>{a.value=f}),i.onMounted(()=>a.value=n.activeItem||n.items[0]);function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f){a.value=f,r("item-click",f)}return(f,m)=>{const g=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",NG,[i.createElementVNode("div",LG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,y=>(i.openBlock(),i.createBlock(g,{key:y,class:"mobile-navbar__item-link",to:d(y),onClick:_=>h(y)},{default:i.withCtx(()=>{var _,w;return[i.createElementVNode("div",{class:i.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((_=a.value)==null?void 0:_.label)===y.label,[`mobile-navbar__item--active--${t.variant}`]:((w=a.value)==null?void 0:w.label)===y.label}])},[i.createVNode(ke,{height:"20",width:"20",name:y.icon},null,8,["name"]),t.showLabel?(i.openBlock(),i.createElementBlock("div",zG,i.toDisplayString(y.label),1)):i.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),i.createElementVNode("div",{class:i.normalizeClass(l.value),style:i.normalizeStyle(o.value)},null,6)])])}}},[["__scopeId","data-v-9bc49d6e"]]),RG={class:"mobile-navigation__header"},FG={class:"mobile-navigation__title"},HG={class:"mobile-navigation__sidebar-header"},WG={class:"mobile-navigation__sidebar-logo"},YG=["src"],UG={class:"mobile-navigation__sidebar-content"},jG={class:"mobile-navigation__sidebar-items"},qG={class:"mobile-navigation__sidebar-footer"},GG={class:"mobile-navigation__sidebar-user-text"},KG=Q({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(n.activeItem),s=i.ref(!1),o=i.computed(()=>n.light?"light":"dark"),l=i.computed(()=>{let w=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(w+=" mobile-navigation--sticky"),w});i.watch(s,async(w,k)=>{w!==k&&_(w)}),i.watch(()=>n.activeItem,w=>{a.value=w});const d=()=>{s.value=!0},h=()=>{s.value=!1},f=w=>ri.isEqual(w,a.value),m=w=>{ri.isEmpty(n.activeItem)&&(a.value=w),s.value=!1,r("item-click",w)},g=({route:w,path:k})=>{const x=ri.isEmpty(w)?k:w;return x instanceof String?{path:x}:x},y=w=>g(w)?g(w).path:null,_=w=>{document.body.style.overflow=w?"hidden":"auto"};return(w,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${t.variant}`)},[i.createElementVNode("div",RG,[i.createElementVNode("div",FG,i.toDisplayString(a.value.label??""),1),i.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[i.createVNode(ke,{name:"menu-outline"})])]),i.createElementVNode("div",{class:i.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":s.value}])},[i.createElementVNode("div",HG,[i.createElementVNode("div",WG,[i.renderSlot(w.$slots,"sidebar-logo",{},()=>[i.createElementVNode("img",{src:t.sidebarLogo},null,8,YG)],!0)]),i.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[i.createVNode(ke,{name:"x-outline"})])]),i.createElementVNode("div",UG,[i.createElementVNode("div",jG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,M=>(i.openBlock(),i.createBlock(x,{key:M.label,to:y(M),class:i.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:O=>m(M)},{default:i.withCtx(()=>[i.createVNode(ke,{name:M.icon,width:"24",height:"24"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),i.createElementVNode("div",qG,[i.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>r("profile-click"))},[i.createVNode(cl,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),i.createElementVNode("div",GG,[i.createElementVNode("p",null,i.toDisplayString(t.user.name??""),1),i.createElementVNode("p",null,i.toDisplayString(t.user.role??""),1)])]),i.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=M=>r("logout"))},[i.createVNode(ke,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),ZG=["teal","green","blue","indigo","violet","pink","red","orange","amber"],XG={components:{CdsIcon:ke,CdsButton:ei,CdsScrollable:ed},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Título"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>ZG.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)},cancelHandle(){this.noCloseCancelButton||(this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)),this.$emit("cancel")}}},JG={key:0,class:"cds-modal__backdrop"},QG={key:0},eK={class:"cds-modal__header"},tK={key:1,class:"cds-modal__body"},nK={key:1,class:"cds-modal__footer"};function iK(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-scrollable"),d=i.resolveComponent("cds-button"),h=i.resolveDirective("cds-click-outside");return a.innerValue?(i.openBlock(),i.createElementBlock("div",JG,[a.innerValue?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("header",QG,[i.renderSlot(t.$slots,"header",{},()=>[i.createElementVNode("div",eK,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),n.noCloseButton?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),i.createElementVNode("section",null,[n.scrollable?(i.openBlock(),i.createBlock(l,{key:0,class:"cds-modal__body"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(i.openBlock(),i.createElementBlock("div",tK,[i.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",nK,[i.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:s.cancelHandle())},null,8,["text","disabled"])),i.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:s.closeHandle]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const Q5=Q(XG,[["render",iK],["__scopeId","data-v-57e87b69"]]),rK={ref:"monthAndYearPicker",class:"month-and-year-picker"},aK={class:"month-and-year-picker__icon"},sK={class:"dropdown__header"},oK=Q({__name:"MonthAndYearPicker",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){i.useCssVars(V=>({"2f8edad3":V.dateInputContainerWidth,"8869d91a":i.unref(J3),"3eb18a02":i.unref(X3)}));const e=i.useModel(t,"modelValue"),n=t,r=i.ref(!1),a=i.ref("down"),s=i.ref(ue.now().setLocale("pt-BR")),{clickedOutside:o,setTargetElement:l}=e4(),d=i.useTemplateRef("monthAndYearPicker"),h=i.computed(()=>s.value.toFormat("yyyy")),f=i.computed(()=>s.value.toFormat("MMMM/yyyy")),m=i.computed(()=>ue.fromFormat(n.minDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.minDate:ue.fromFormat(`${h.value}-01-01`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd")),g=i.computed(()=>ue.fromFormat(n.maxDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.maxDate:ue.fromFormat(`${h.value}-12-31`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd"));i.watch(o,V=>{V&&r.value&&(r.value=!1)}),i.watch(d,V=>{V&&l(V)});function y(V){s.value=s.value?s.value:ue.now().setLocale("pt-BR").toFormat("dd/MM/yyyy"),r.value=!r.value;let[T,N,A]=s.value.toFormat("dd/MM/yyyy").split("/");N=V.index,s.value=ue.fromObject({year:A,month:N}).setLocale("pt-BR"),e.value=s.value.toFormat("yyyy-MM")}const _=i.computed(()=>n.minDate?ue.fromFormat(n.minDate,"yyyy-MM-dd"):null),w=i.computed(()=>n.maxDate?ue.fromFormat(n.maxDate,"yyyy-MM-dd"):null);function k(){return _.value?s.value.minus({year:1}).startOf("year")>=_.value.startOf("year"):!0}function x(){return w.value?s.value.plus({year:1}).startOf("year")<=w.value.startOf("year"):!0}function M(){k()&&(s.value=s.value.minus({year:1}))}function O(){x()&&(s.value=s.value.plus({year:1}))}function S(){n.disabled||(a.value=Z3(d,340,n.mobile||n.floatingLabel),r.value=!r.value)}return(V,T)=>(i.openBlock(),i.createElementBlock("div",rK,[i.createVNode(ca,i.mergeProps({ref:"baseInput"},n,{modelValue:f.value,"onUpdate:modelValue":T[0]||(T[0]=N=>f.value=N),type:"text","floating-label":t.floatingLabel||t.mobile,readonly:!0,onClick:S}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",aK,[i.createVNode(ke,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label"]),i.createVNode(i.Transition,{name:"month-and-year-picker-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`month-and-year-picker__dropdown--${a.value}`),onMousedown:T[2]||(T[2]=i.withModifiers((...N)=>V.handleCalendarMouseDown&&V.handleCalendarMouseDown(...N),["prevent"]))},[i.createElementVNode("div",sK,[i.createElementVNode("span",{class:"dropdown__month-and-title--no-hover",onClick:T[1]||(T[1]=(...N)=>V.toggleYearPickerDisplay&&V.toggleYearPickerDisplay(...N))},i.toDisplayString(h.value),1),i.createVNode(Dt,null,{default:i.withCtx(()=>[i.createVNode(ke,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["dropdown__right-caret",{"dropdown__caret--disabled":!k()}]),onClick:M},null,8,["class"]),i.createVNode(ke,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["dropdown__left-caret",{"dropdown__caret--disabled":!x()}]),onClick:O},null,8,["class"])]),_:1})]),i.createVNode(Q3,{ref:"monthPicker","selected-date":e.value,"min-date":m.value,"max-date":g.value,variant:t.variant,onClick:y},null,8,["selected-date","min-date","max-date","variant"])],34),[[i.vShow,r.value]])]),_:1})],512))}},[["__scopeId","data-v-a5ed7b60"]]),lK={ref:"cds-select",class:"select"},cK={key:0,class:"option__container"},dK=["onMouseover"],uK={key:1,class:"option__container"},hK={__name:"Select",props:i.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inválido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object]},modelModifiers:{}}),emits:i.mergeModels({...la},["update:modelValue"]),setup(t,{expose:e,emit:n}){var Le,nt;i.useCssVars(ae=>({"46fb8e6a":ie.value,"4b29257c":A.value}));const r=i.useModel(t,"modelValue"),a=t,s=n,o=i.ref(0),l=i.ref(!1),d=i.ref(null),h=i.ref(!1),f=i.ref([]),m=i.ref([]),g=i.ref({value:"",id:""}),y=i.ref(""),_=i.ref("down"),w=i.ref(qr()),k=i.useTemplateRef("baseInput"),x=i.useTemplateRef("cds-select"),M=i.useTemplateRef("select-options"),O=i.ref({}),{emitClick:S,emitFocus:V,emitBlur:T,emitKeydown:N}=oa(s),A=i.computed(()=>a.mobile?"9px":"6px"),R=i.computed(()=>{let ae="";const xe=a.mobile?"select__mobile-input":"select__input";return ae+=` ${xe}--${jh.find(Ne=>Ne===a.width)}`,ae+=a.fluid?` ${xe}--fluid`:` ${xe}--fit`,ae+=a.searchable?` ${xe}--searchable`:"",ae}),W=i.computed(()=>({"select__options--thin":a.width==="thin","select__options--default":a.width==="default","select__options--wide":a.width==="wide","select__options--fluid":a.fluid,"select__options--down":_.value==="down","select__options--up":_.value==="up"})),ie=i.computed(()=>a.fluid?"100%":"fit-content"),G=i.computed(()=>jh.some(ae=>ae===a.width)||a.fluid);i.watch(()=>a.searchable,(ae,xe)=>{ae!==xe&&(h.value=ae)},{immediate:!0}),i.watch(()=>a.options,(ae,xe)=>{ae!==xe&&(f.value=ae,m.value=ae)},{immediate:!0}),i.watch(r,(ae,xe)=>{ae!==xe&&ae!==g.value&&(ae instanceof Object?g.value=ae:g.value={id:ae,value:ae})},{immediate:!0}),i.watch(g,ae=>{ae===r.value||f.value.filter(Ne=>JSON.stringify(Ne)===JSON.stringify(ae)).length===0||(a.returnValue?r.value=ae[a.optionsField]:r.value=ae)},{deep:!0}),i.onMounted(()=>{d.value=`cds-select-${w.value}`,y.value=x.value});function re(){const ae=ec(g.value[a.optionsField]),xe=new RegExp(ae,"i");f.value=a.options.filter(Ne=>ec(Ne[a.optionsField]).search(xe)>=0)}function ye(){a.disabled||(_e(),i.nextTick().then(()=>{const ae=f.value[o.value];O.value[`${ae[a.optionsField]}-${o.value}`].classList.add("highlight")}),V())}function ee(){a.disabled||(l.value=!l.value,_e(),typeof f.value[o.value]>"u"?f.value=m.value:g.value=sl(f.value[o.value]),k.value.blur())}function Z(){let ae=y.value.getBoundingClientRect();ae.top+ae.height+286<window.innerHeight?_.value="down":_.value="up",!a.disabled&&(l.value=!l.value,S(),k.value.focus())}function he(){g.value=a.options.some(ae=>{var xe,Ne;return((xe=ae[a.optionsField])==null?void 0:xe.toLowerCase())===((Ne=g.value[a.optionsField])==null?void 0:Ne.toLowerCase())})?g.value:{},f.value=m.value,l.value=!1,T()}function pe(){g.value=sl(f.value[o.value])}function J(ae){const xe=f.value[ae];return O.value[`${xe[a.optionsField]}-${ae}`]}function H(ae,xe,Ne){const Ze=ae.getBoundingClientRect(),He=M.value,et=He.getBoundingClientRect();Ne==="up"&&Ze.top<=et.top&&(He.scrollTop+=xe),Ne==="down"&&Ze.top>=et.bottom&&(He.scrollTop+=xe)}function ge(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const ae=J(o.value),xe=J(o.value-1);ae.classList.add("highlight"),xe.classList.remove("highlight"),H(ae,37,"down")}function fe(){if(!l.value||o.value===0)return;const ae=J(o.value),xe=J(o.value-1);ae.classList.remove("highlight"),xe.classList.add("highlight"),H(ae,-37,"up"),o.value-=1}function $e(ae){o.value=ae,J(o.value).classList.add("highlight")}function Ve(){J(o.value).classList.remove("highlight")}function _e(){f.value.forEach((ae,xe)=>{const Ne=f.value[xe];O.value[`${Ne[a.optionsField]}-${xe}`].classList.remove("highlight")})}return e({componentRef:(Le=k.value)==null?void 0:Le.componentRef,isFocused:(nt=k.value)==null?void 0:nt.isFocused,focus:()=>{var ae;return(ae=k.value)==null?void 0:ae.focus()},blur:()=>{var ae;return(ae=k.value)==null?void 0:ae.blur()},clear:()=>{var ae;return(ae=k.value)==null?void 0:ae.clear()},select:()=>{var ae;return(ae=k.value)==null?void 0:ae.select()}}),(ae,xe)=>(i.openBlock(),i.createElementBlock("div",lK,[i.createElementVNode("div",{class:i.normalizeClass(["select__container",t.fluid?"select__container--fluid":"select__container--fit"])},[i.createVNode(ca,i.mergeProps({id:ae.$attrs.id||d.value,ref:"baseInput"},{...ae.$attrs,...a},{modelValue:g.value[t.optionsField],"onUpdate:modelValue":xe[0]||(xe[0]=Ne=>g.value[t.optionsField]=Ne),type:"text",autocomplete:"off",onkeypress:`return ${h.value};`,placeholder:t.placeholder,disabled:t.disabled,readonly:!t.searchable,"support-link-url":t.supportLinkUrl||t.linkUrl,"support-link":t.supportLink||t.linkText,"floating-label":t.floatingLabel||t.mobile,class:R.value,fluid:G.value,onKeydown:[i.withKeys(i.withModifiers(ee,["prevent"]),["enter"]),i.withKeys(i.withModifiers(ge,["prevent"]),["arrow-down"]),i.withKeys(i.withModifiers(fe,["prevent"]),["arrow-up"]),i.unref(N)],onClick:Z,onInput:re,onFocus:ye,onBlur:he}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(l.value?"select__chevron--opened":"select__chevron--closed")},null,2)]),_:1},16,["id","modelValue","onkeypress","placeholder","disabled","readonly","support-link-url","support-link","floating-label","class","fluid","onKeydown"]),i.withDirectives(i.createElementVNode("div",{ref:"select-options",class:i.normalizeClass(["select__options",W.value])},[f.value.length>0?(i.openBlock(),i.createElementBlock("ul",cK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(Ne,Ze)=>(i.openBlock(),i.createElementBlock("li",{key:Ne.id||Ne,ref_for:!0,ref:He=>{O.value[`${Ne[t.optionsField]}-${Ze}`]=He},class:"option__text",onMousedown:pe,onMouseover:He=>$e(Ze),onMouseout:xe[1]||(xe[1]=He=>Ve())},i.toDisplayString(Ne[t.optionsField]),41,dK))),128))])):(i.openBlock(),i.createElementBlock("ul",uK,xe[2]||(xe[2]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,l.value]])],2)],512))}},ev=Q(hK,[["__scopeId","data-v-335b0e1c"]]),fK={class:"multi-file-input"},pK={class:"multi-file-input__file-container"},mK={class:"multi-file-input__box"},gK={class:"multi-file-input__badges_section"},yK={class:"multi-file-input__badge-content"},bK={key:0,class:"multi-file-input__empty-state"},vK={key:1,class:"multi-file-input__list-container"},_K={class:"multi-file-input__list"},wK={class:"multi-file-input__actions"},kK={key:0,class:"multi-file-input__alert"},xK={class:"multi-file-input__footer"},CK=Q({__name:"MultiFileInput",props:{documents:{type:Array,required:!0},variant:{type:String,default:"green"},submitButtonText:{type:String,default:"Enviar"},buttonSecondary:{type:Boolean,default:!1}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(0),s=i.ref({}),o=i.ref([]),l=i.ref(n.documents.map(x=>({id:Xl(),value:x.name,required:x.required,active:!1,file:null}))),d=i.computed(()=>o.value.filter(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id}).map(x=>x.selectedLabel.id)),h=i.computed(()=>{const x={},M=[];return d.value.forEach(O=>{x[O]?x[O]+=1:x[O]=1}),Object.keys(x).forEach(O=>{x[O]>1&&M.push(O)}),M}),f=i.computed(()=>w()&&h.value.length==0&&k());i.watch(()=>o.value,()=>{l.value.forEach(x=>{x.active=d.value.includes(x.id)})},{deep:!0});function m(x){x.name&&(o.value.push({file:x,selectedLabel:null}),a.value+=1,s.value=null)}function g(x){const M=o.value.indexOf(x);M>-1&&o.value.splice(M,1)}function y(x){var M;return h.value.includes((M=x.selectedLabel)==null?void 0:M.id)}function _(){r("submit",o.value)}function w(){return o.value.every(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(x=>x.required).every(x=>x.active)}return(x,M)=>(i.openBlock(),i.createElementBlock("div",fK,[i.createElementVNode("div",pK,[(i.openBlock(),i.createBlock(u4,i.mergeProps({key:a.value,modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=O=>s.value=O)},x.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),i.createElementVNode("div",mK,[M[2]||(M[2]=i.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),i.createElementVNode("div",gK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,O=>(i.openBlock(),i.createBlock(Am,{key:O,variant:O.active?t.variant:"gray"},{default:i.withCtx(()=>[i.createElementVNode("div",yK,[O.active?(i.openBlock(),i.createBlock(ke,{key:0,name:"check-outline",height:"16",width:"16"})):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(O.value)+" "+i.toDisplayString(O.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(i.openBlock(),i.createElementBlock("div",bK," Os arquivos adicionados serão exibidos aqui ")):(i.openBlock(),i.createElementBlock("div",vK,[M[1]||(M[1]=i.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),i.createElementVNode("div",_K,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,O=>(i.openBlock(),i.createElementBlock("div",{key:O,class:"multi-file-input__list-item"},[i.createElementVNode("div",{class:i.normalizeClass(["multi-file-input__item",`multi-file-input__item--${t.variant}`])},[i.createTextVNode(i.toDisplayString(O.file.name)+" ",1),i.createElementVNode("div",null,[i.createElementVNode("div",wK,[i.createVNode(ev,{modelValue:O.selectedLabel,"onUpdate:modelValue":S=>O.selectedLabel=S,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),i.createVNode(uu,{icon:"trash-outline",size:"lg",onClick:S=>g(O)},null,8,["onClick"])]),y(O)?(i.openBlock(),i.createElementBlock("div",kK," Arquivo duplicado. ")):i.createCommentVNode("",!0)])],2)]))),128))])])),i.createElementVNode("div",xK,[i.createVNode(ei,{secondary:t.buttonSecondary,variant:t.variant,disabled:!f.value,onButtonClick:_},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}},[["__scopeId","data-v-c736096e"]]);function b0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function SK(t){return(...e)=>!t(...e)}function MK(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function tv(t,e,n,r){return e?t.filter(a=>MK(r(a,n),e)).sort((a,s)=>r(a,n).length-r(s,n).length):t}function BK(t){return t.filter(e=>!e.$isLabel)}function v0(t,e){return n=>n.reduce((r,a)=>a[t]&&a[t].length?(r.push({$groupLabel:a[e],$isLabel:!0}),r.concat(a[t])):r,[])}function DK(t,e,n,r,a){return s=>s.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=tv(o[n],t,e,a);return l.length?{[r]:o[r],[n]:l}:[]})}const nv=(...t)=>e=>t.reduce((n,r)=>r(n),e);var EK={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return b0(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):tv(n,e,this.label,this.customLabel):n=this.groupValues?v0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(SK(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return nv(DK(e,n,this.groupValues,this.groupLabel,this.customLabel),v0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return nv(v0(this.groupValues,this.groupLabel),BK)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(b0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return b0(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],r=this.internalValue.filter(a=>n.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",r)}else{let n=e[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},OK={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},iv={name:"vue-multiselect",mixins:[EK,OK],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const VK={ref:"tags",class:"multiselect__tags"},$K={class:"multiselect__tags-wrap"},TK={class:"multiselect__spinner"},IK={key:0},AK={class:"multiselect__option"},NK={class:"multiselect__option"},LK=i.createTextVNode("No elements found. Consider changing the search query."),zK={class:"multiselect__option"},PK=i.createTextVNode("List is empty.");function RK(t,e,n,r,a,s){return i.openBlock(),i.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=i.withKeys(i.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=i.withKeys(i.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=i.withKeys(i.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=i.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[i.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[i.createVNode("div",{onMousedown:e[1]||(e[1]=i.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(t.$slots,"clear",{search:t.search}),i.createVNode("div",VK,[i.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:s.visibleValues,isOpen:t.isOpen},()=>[i.withDirectives(i.createVNode("div",$K,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.visibleValues,(o,l)=>i.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(i.openBlock(),i.createBlock("span",{class:"multiselect__tag",key:l},[i.createVNode("span",{textContent:i.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),i.createVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:i.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[i.vShow,s.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?i.renderSlot(t.$slots,"limit",{key:0},()=>[i.createVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"loading",{},()=>[i.withDirectives(i.createVNode("div",TK,null,512),[[i.vShow,n.loading]])])]),_:3}),t.searchable?(i.openBlock(),i.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:s.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=i.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=i.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=i.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=i.withKeys(i.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=i.withKeys(i.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=i.withKeys(i.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=i.withKeys(i.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):i.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(i.openBlock(),i.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=i.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[i.renderSlot(t.$slots,"singleLabel",{option:s.singleValue},()=>[i.createTextVNode(i.toDisplayString(t.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(i.openBlock(),i.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=i.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[i.renderSlot(t.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect"},{default:i.withCtx(()=>[i.withDirectives(i.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=i.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[i.createVNode("ul",{class:"multiselect__content",style:s.contentStyle,role:"listbox",id:"listbox-"+t.id},[i.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(i.openBlock(),i.createBlock("li",IK,[i.createVNode("span",AK,[i.renderSlot(t.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(i.openBlock(!0),i.createBlock(i.Fragment,{key:1},i.renderList(t.filteredOptions,(o,l)=>(i.openBlock(),i.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock("span",{key:0,class:[t.optionHighlight(l,o),"multiselect__option"],onClick:i.withModifiers(d=>t.select(o),["stop"]),onMouseenter:i.withModifiers(d=>t.pointerSet(l),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[i.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[i.createVNode("span",null,i.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(i.openBlock(),i.createBlock("span",{key:1,"data-select":t.groupSelect&&s.selectGroupLabelText,"data-deselect":t.groupSelect&&s.deselectGroupLabelText,class:[t.groupHighlight(l,o),"multiselect__option"],onMouseenter:i.withModifiers(d=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:i.withModifiers(d=>t.selectGroup(o),["prevent"])},[i.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[i.createVNode("span",null,i.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):i.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createVNode("li",null,[i.createVNode("span",NK,[i.renderSlot(t.$slots,"noResult",{search:t.search},()=>[LK])])],512),[[i.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),i.withDirectives(i.createVNode("li",null,[i.createVNode("span",zK,[i.renderSlot(t.$slots,"noOptions",{},()=>[PK])])],512),[[i.vShow,n.showNoOptions&&(t.options.length===0||s.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),i.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[i.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}iv.render=RK;const go=0,yo=1,Lu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),_0={components:{Multiselect:iv,CdsDivider:ol,CdsCheckbox:ru,CdsSpacer:tu},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},state:{type:String,default:"default"},options:{type:Array,required:!0,default:()=>[]},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:Lu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:yi,uniqueKey:qr()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} opções selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer seleção":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais opções"},isGroupMode(){return this.internalOptions[go]&&this.internalOptions[go].$status||this.internalOptions[yo]&&this.internalOptions[yo].$status},attrs(){const{label:t,trackBy:e,options:n,...r}=this.$attrs;return r},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(t){const e=Lu(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){if(this.hideSelectAll)return;const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[go].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[yo].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[go].options=this.internalOptions[go].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[yo].options=this.internalOptions[yo].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Lu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=Lu(this.options);t=t.map(e=>(this.selectedValue.some(r=>r[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[go].options=this.selectedValue,this.internalOptions[yo].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},rv=()=>{i.useCssVars(t=>({"77b643b7":t.inputBackgroundColor,"30be1708":t.resolveMultiselectHeight,"4669b3c0":t.resolveMultiselectTop}))},av=_0.setup;_0.setup=av?(t,e)=>(rv(),av(t,e)):rv;const FK=["data-cds-multiselect-identifier"],HK={key:0},WK=["for"],YK={key:0,class:"label__required-indicator"},UK={key:1,class:"cds-multiselect__grouped-divider"},jK={key:0,class:"cds-multiselect__group-label"},qK={key:1,class:"cds-multiselect__option"},GK={class:"option__checkbox"},KK=["id","onUpdate:modelValue","name"],ZK=["id","for","onClick"],XK={key:0,class:"multiselect__single"},JK={key:1},QK={key:0,class:"clustered-multiselect__error-message"};function eZ(t,e,n,r,a,s){const o=i.resolveComponent("cds-checkbox"),l=i.resolveComponent("cds-spacer"),d=i.resolveComponent("cds-divider"),h=i.resolveComponent("multiselect",!0);return i.openBlock(),i.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":a.uniqueKey},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",HK,[i.renderSlot(t.$slots,"label")])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[i.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${a.uniqueKey}`},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",YK," * ")):i.createCommentVNode("",!0)],8,WK)],2))]),i.createVNode(h,i.mergeProps({id:`clustered-multiselect-${a.uniqueKey}`,ref:"cds-multiselect"},s.attrs,{modelValue:a.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>a.selectedValue=f),options:a.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":a.groupValues,"group-label":a.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:s.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:s.handleClose,onSelect:s.selectItem,onRemove:s.unselectItem,onSearchChange:s.handleSearchChange}),{beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,[n.hideSelectAll?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>s.toggleSelectAll&&s.toggleSelectAll(...f))},[i.createVNode(l,{"margin-left":"2"},{default:i.withCtx(()=>[i.createVNode(o,{id:`select-all-input-id-${a.uniqueKey}`,modelValue:a.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>a.selectAllValue=f),label:s.selectAllFancyMessage,indeterminate:a.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),s.isGroupMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",UK,[i.createVNode(d,{dimmed:""})]))],512),[[i.vShow,!a.queryString&&n.options.length]])]),option:i.withCtx(({option:f})=>[f.$isLabel?(i.openBlock(),i.createElementBlock("div",jK,[i.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(i.openBlock(),i.createElementBlock("div",qK,[i.createElementVNode("div",GK,[i.withDirectives(i.createElementVNode("input",{id:`input-${f[n.optionsField]}-${a.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${a.uniqueKey}`,value:!0},null,8,KK),[[i.vModelCheckbox,f.isSelected]]),i.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${a.uniqueKey}`,class:i.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>s.addItemViaCustomCheckbox(f)},null,10,ZK)]),i.renderSlot(t.$slots,"option",{option:f,optionField:n.optionsField},()=>[i.createTextVNode(i.toDisplayString(f[n.optionsField]),1)])]))]),selection:i.withCtx(({values:f,isOpen:m})=>[i.renderSlot(t.$slots,"selection",{values:f,isOpen:m,unselectItem:s.unselectItem},()=>[f.length&&!m?(i.openBlock(),i.createElementBlock("span",XK,i.toDisplayString(s.selectedFancyMessage(f.length)),1)):(i.openBlock(),i.createElementBlock("span",JK))])]),noResult:i.withCtx(()=>[e[3]||(e[3]=i.createTextVNode(' Nenhum resultado encontrado para: "')),i.createElementVNode("strong",null,i.toDisplayString(a.queryString),1),e[4]||(e[4]=i.createTextVNode('" '))]),noOptions:i.withCtx(()=>e[5]||(e[5]=[i.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:3},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",QK,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)],8,FK)}const tZ=Q(_0,[["render",eZ]]),nZ={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const r=ln(n.path)&&ln(n.route),a=ln(n.items)||n.items.filter(s=>ln(s.path)&&ln(s.route)).length;return ln(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Fi.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Fi}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Xs,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return Qs(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=ln(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},iZ={id:"nav-bar"};function rZ(t,e,n,r,a,s){const o=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",iZ,[i.createElementVNode("ul",{class:i.normalizeClass({"nav-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,d)=>(i.openBlock(),i.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:i.normalizeClass(["nav-bar__item-container",s.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[i.createVNode(o,{to:s.routerPushTo(l),class:i.normalizeClass(["nav-bar__item",s.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>s.handleClick(h,l)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(l)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)],2))),128))],2)])}const aZ=Q(nZ,[["render",rZ]]),sZ={mounted(t,e){const n=s=>{if(s==0)return"R$ 0,00";if(!s)return"";let o=String(s).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let r=!1;const a=s=>{if(r)return;r=!0;let o=String(s.target.value||""),l=o.replace(/\D/g,""),d=parseFloat(l)/100;const h=n(o);s.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),t.dispatchEvent(f),r=!1};t.addEventListener("input",a),t.value=n(e.value||""),t._inputHandler=a},updated(t,e){const n=r=>{if(!r)return"";let a=String(r).replace(/\D/g,"");return(parseFloat(a)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};t.value=n(e.value||"")},unmounted(t){t._inputHandler&&t.removeEventListener("input",t._inputHandler)}},sv=t=>{let e=t.replace("R$","");return e=e.replaceAll(".",""),e=e.replace(/(.*),(\d{2})/g,"$1.$2"),+e},oZ={__name:"NumberInput",props:i.mergeModels({label:{type:String,default:"Valor"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},supportingText:{type:[String,Array],default:""},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Number,String]},modelModifiers:{},unmaskedValue:{type:[Number,String,null]},unmaskedValueModifiers:{}}),emits:i.mergeModels({...la},["update:modelValue","update:unmaskedValue"]),setup(t,{expose:e,emit:n}){var M,O;const r=Ql,a=i.useTemplateRef("baseInput"),s=i.useModel(t,"modelValue"),o=i.useModel(t,"unmaskedValue"),l=t,d=n,h=i.ref(""),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:_}=oa(d);let w={};i.watch(s,(S,V)=>{S!==V&&(h.value=S)},{immediate:!0}),i.watch(h,(S,V)=>{if(S!==V){let T=String(S);l.money?(o.value=sv(T),s.value=T):l.mask?(h.value=T,s.value=T,o.value=+T.replace(/\D/g,"")):T.length>15?h.value=+T.slice(0,15):(s.value=+T,o.value=+T)}}),i.onMounted(()=>{l.money&&a.value&&a.value.componentRef&&(w={value:s.value,oldValue:"",instance:a.value.componentRef,modifiers:{},arg:null},sZ.mounted(a.value.componentRef,w))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),g()}function x(){s.value=h.value,m()}return e({componentRef:(M=a.value)==null?void 0:M.componentRef,isFocused:(O=a.value)==null?void 0:O.isFocused,focus:()=>{var S;return(S=a.value)==null?void 0:S.focus()},blur:()=>{var S;return(S=a.value)==null?void 0:S.blur()},clear:()=>{var S;return(S=a.value)==null?void 0:S.clear()},select:()=>{var S;return(S=a.value)==null?void 0:S.select()}}),(S,V)=>(i.openBlock(),i.createElementBlock("div",null,[t.money?(i.openBlock(),i.createBlock(ca,i.mergeProps({key:0,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=T=>h.value=T),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):t.mask?i.withDirectives((i.openBlock(),i.createBlock(ca,i.mergeProps({key:1,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[1]||(V[1]=T=>h.value=T),type:"tel","floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[i.unref(r),t.mask]]):(i.openBlock(),i.createBlock(ca,i.mergeProps({key:2,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[2]||(V[2]=T=>h.value=T),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,type:"number",onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}},lZ={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},cZ={class:"overlay"};function dZ(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",cZ,[i.createElementVNode("div",{class:i.normalizeClass(s.computedSpinnerClass)},null,2)])}const uZ=Q(lZ,[["render",dZ],["__scopeId","data-v-2022bd33"]]),hZ={},fZ={class:"page-container__container"};function pZ(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",fZ,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const ov=Q(hZ,[["render",pZ],["__scopeId","data-v-2f5908a0"]]),w0={directives:{cdstip:al},components:{CdsIcon:ke,CdsAvatar:cl,CdsRichTooltip:Bf,CdsPopover:ll},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const r=ln(n.path)&&ln(n.route),a=ln(n.items)||n.items.filter(s=>ln(s.path)&&ln(s.route)).length;return ln(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},showProfileMenu:{type:Boolean,default:!1},profileMenuItems:{type:Array,default:()=>[]},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsibleState:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:Fi,expandItemControl:0,itemsWithVisibilityController:[],logoutTooltipText:"Sair",showPopover:!1,showSearchButtonShortCut:!0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"},collapsedTooltipClass(){return this.collapsed?"Maximizar":"Minimizar"},shouldShowProfileMenu(){var t;return this.showProfileMenu&&((t=this.profileMenuItems)==null?void 0:t.length)>0},avatarCursorResolver(){return this.shouldShowProfileMenu?"pointer":"default"},computedSearchButtonJustify(){return this.collapsed?"center":"space-between"}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},collapsibleState:{handler(t){this.collapsed=t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0},collapsed(t){if(t){this.showUncollapsedItems=!1,this.showSearchButtonShortCut=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500),setTimeout(()=>{this.showSearchButtonShortCut=!0},250)}},created(){this.internalActiveItem=this.activeItem,this.collapsed=this.collapsibleState,this.items.forEach((t,e)=>{this.itemsWithVisibilityController.push({name:t.label,index:e,show:!1})})},methods:{colorHexCode:Xs,handleClick(t,e){if(!Qs(this.internalActiveItem,e)){this.internalActiveItem=e,this.showUncollapsedItems=!0,this.expandItemControl+=1;return}if(e.items&&e.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}e.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return t.items&&t.items.length>0&&(e=t.items.some(r=>Qs(r,this.internalActiveItem))),n=Qs(this.internalActiveItem,t),e||n},resolveRoute({route:t,path:e}){const n=ln(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},handleCollapse(){this.$emit("collapse-click",!this.collapsed),this.collapsed=!this.collapsed},resolveItemCollapse(t){return!!t.items&&t.items.length>0&&this.isActive(t)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(t){return this.resolveItemCollapse(t)?"caret-up-outline":"caret-down-outline"},handleProfileMenuOptionClick(t){this.$emit("profile-menu-option-click",t),this.showPopover=!1},handleLogoClick(){this.$emit("logo-click")}}},lv=()=>{i.useCssVars(t=>({"3043686a":t.avatarCursorResolver,"5b550093":t.computedSearchButtonJustify}))},cv=w0.setup;w0.setup=cv?(t,e)=>(lv(),cv(t,e)):lv;const mZ={class:"side-bar__header"},gZ=["src"],yZ={class:"search-button__text-container"},bZ={key:0},vZ=["onMouseleave"],_Z=["onClick"],wZ=["id","onMouseover"],kZ={class:"side-bar__subitem-container"},xZ={class:"side-bar__subitems"},CZ=["href","target","onClick"],SZ={key:0,class:"side-bar__subitem-link"},MZ={key:1},BZ={class:"side-bar__subitems--collapsed"},DZ={class:"side-bar__tooltip-title"},EZ=["href","onClick"],OZ={key:0,class:"side-bar__subitem-link"},VZ={key:0},$Z={key:0},TZ={class:"dropdown-button__dropdown"},IZ=["onClick"],AZ={class:"dropdown__text"};function NZ(t,e,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("router-link"),d=i.resolveComponent("cds-rich-tooltip"),h=i.resolveComponent("cds-avatar"),f=i.resolveComponent("cds-popover"),m=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.mainClass)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${n.variant}`)},[i.createElementVNode("div",mZ,[i.createElementVNode("div",{class:"side-bar__logo",onClick:e[0]||(e[0]=(...g)=>s.handleLogoClick&&s.handleLogoClick(...g))},[a.collapsed?i.createCommentVNode("",!0):i.renderSlot(t.$slots,"logo",{key:0},()=>[i.createElementVNode("img",{src:n.logoImage},null,8,gZ)])]),n.collapsible?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:e[1]||(e[1]=(...g)=>s.handleCollapse&&s.handleCollapse(...g))},[a.collapsed?(i.openBlock(),i.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(i.openBlock(),i.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])),[[m,s.collapsedTooltipClass]]):i.createCommentVNode("",!0)]),n.searchButton?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":n.light}]),onClick:e[2]||(e[2]=g=>t.$emit("search-button-click"))},[i.createElementVNode("div",yZ,[i.createVNode(o,{height:"20",width:"20",name:"search-outline"}),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",bZ,"Busca")):i.createCommentVNode("",!0)]),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":n.light}])}," Ctrl + K ",2)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass({"side-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(g,y)=>(i.openBlock(),i.createElementBlock("li",{key:`${y}-${g.name}-item`,role:"presentation",onMouseleave:_=>a.itemsWithVisibilityController[y].show=!1},[i.createElementVNode("div",{class:i.normalizeClass(["side-bar__item-container",s.isActive(g)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:_=>s.handleClick(_,g)},[g.items||g.type==="link"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,id:g.label,class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:_=>a.itemsWithVisibilityController[y].show=!0},[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)]),g.items&&g.items.length>0?(i.openBlock(),i.createBlock(o,{key:a.expandItemControl,name:s.resolveCollapsibleItemIcon(g),class:i.normalizeClass({item__caret:s.isActive(g)}),width:"16",height:"16"},null,8,["name","class"])):i.createCommentVNode("",!0)],42,wZ)),[[m,a.collapsed&&g.type==="link"?g.label:null]]):i.withDirectives((i.openBlock(),i.createBlock(l,{key:1,to:s.routerPushTo(g),class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:_=>s.handleClick(_,g)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)])]),_:2},1032,["to","class","onClick"])),[[m,a.collapsed?g.label:null]])],10,_Z),a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.Transition,{key:0,name:"collapse"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",kZ,[i.createElementVNode("div",xZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:i.normalizeClass(["side-bar__subitem",s.isActive(_)&&(_==null?void 0:_.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:(_==null?void 0:_.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",SZ,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],10,CZ))),128))])],512),[[i.vShow,s.resolveItemCollapse(g)]])]),_:2},1024)),g.items&&a.collapsed?(i.openBlock(),i.createElementBlock("div",MZ,[i.createVNode(d,{modelValue:a.itemsWithVisibilityController[y].show,"onUpdate:modelValue":_=>a.itemsWithVisibilityController[y].show=_,"target-id":g.label,"default-placement":"bottom-start",width:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",BZ,[i.createElementVNode("p",DZ,i.toDisplayString(g.label),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:"side-bar__subitem",href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",OZ,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],8,EZ))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):i.createCommentVNode("",!0)],40,vZ))),128))],2)],2),i.createElementVNode("div",{class:i.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[i.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:e[3]||(e[3]=i.withModifiers(g=>a.showPopover=!a.showPopover,["stop"]))},[i.createVNode(h,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",VZ,[i.createElementVNode("p",null,i.toDisplayString(n.userName),1),i.createElementVNode("p",null,i.toDisplayString(n.userRole),1)]))]),_:1})]),i.createElementVNode("ul",null,[n.showLogout?i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[4]||(e[4]=g=>t.$emit("logout",!0))},[i.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])),[[m,a.logoutTooltipText]]):i.createCommentVNode("",!0)]),s.shouldShowProfileMenu?(i.openBlock(),i.createElementBlock("div",$Z,[i.createVNode(f,{modelValue:a.showPopover,"onUpdate:modelValue":e[5]||(e[5]=g=>a.showPopover=g),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",TZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.profileMenuItems,(g,y)=>(i.openBlock(),i.createElementBlock("div",{key:y},[i.createElementVNode("div",{class:"dropdown__container",onClick:_=>s.handleProfileMenuOptionClick(g)},[i.createVNode(o,{class:"dropdown__icon",height:"22",width:"22",name:g.icon},null,8,["name"]),i.createElementVNode("span",AZ,i.toDisplayString(g.name),1)],8,IZ)]))),128))])]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)],2)],2)}const dv=Q(w0,[["render",NZ]]),LZ={class:"secondary-navigation__container"},zZ={class:"secondary-navigation__content"},PZ={key:1},RZ=["onClick","onMouseover"],FZ={class:"secondary-navigation__content"},HZ={key:1},uv=Q({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(t,{emit:e}){const n=t,r=e,a=i.ref(n.activeItem.key),s=i.ref(null),o=i.ref(0),l=i.computed(()=>n.light?"light":"dark");i.watch(n.activeItem,w=>{a.value=w.key});const d=w=>{o.value=w},h=w=>{if(!w.route)return null;const{path:k,name:x}=w.route;return k instanceof String?{path:k}:{name:x}},f=w=>{g(w.key)||(s.value=null,a.value=w.key,r("item-click",w.key))},m=w=>a.value===w,g=w=>n.items.find(k=>{var x;return k.key===w&&((x=k==null?void 0:k.subitems)==null?void 0:x.length)>0}),y=(w,k)=>{s.value=w,a.value=k,r("item-click",w)},_=w=>s.value===w;return(w,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[i.createElementVNode("div",LZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,M=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:M.key},[g(M.key)?(i.openBlock(),i.createElementBlock("div",PZ,[i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:O=>f(M),onMouseover:O=>d(M.key),onMouseleave:k[0]||(k[0]=O=>d(-1))},[i.createElementVNode("div",FZ,[i.createTextVNode(i.toDisplayString(M.label)+" ",1),M.key!==o.value?(i.openBlock(),i.createBlock(ke,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(i.openBlock(),i.createElementBlock("div",HZ,[i.createVNode(ke,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(M.subitems,O=>(i.openBlock(),i.createBlock(x,{key:O.key,to:h(O),class:i.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":_(O.key)}]),onClick:S=>y(O.key,M.key)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(O.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):i.createCommentVNode("",!0)])],42,RZ)])):(i.openBlock(),i.createBlock(x,{key:0,class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:O=>f(M)},{default:i.withCtx(()=>[i.createElementVNode("div",zZ,i.toDisplayString(M.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=i.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=i.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),WZ={class:"page-layout"},YZ={class:"page-layout__content"},UZ=Q({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},showProfileMenu:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},profileMenuItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","popover-item-click","navigation-item-click"],setup(t,{emit:e}){i.useCssVars(o=>({"36685eea":s.value}));const n=t,r=e,a=i.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),s=i.computed(()=>a.value?"54px":"0px");return(o,l)=>{var d;return i.openBlock(),i.createElementBlock("div",WZ,[i.createVNode(dv,{variant:t.variant,"active-item":t.sideBarActiveItem,light:t.light,"user-name":t.user.name??"","user-role":t.user.role??"","user-picture":t.user.picture??null,collapsible:t.collapsibleSideBar,items:t.sideBarItems,"logo-image":t.logos.default,"collapsed-logo-image":t.logos.collapsed,"show-profile-menu":t.showProfileMenu,"profile-menu-items":t.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>r("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>r("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>r("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>r("sidebar-settings",h))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image","show-profile-menu","profile-menu-items"]),i.createElementVNode("div",YZ,[((d=t.navigationItems)==null?void 0:d.length)>0?(i.openBlock(),i.createBlock(uv,{key:0,light:t.light,"active-item":t.navigationActiveItem,items:t.navigationItems,onItemClick:l[4]||(l[4]=h=>r("navigation-item-click",h))},null,8,["light","active-item","items"])):i.createCommentVNode("",!0),i.createVNode(ov,{class:"page-layout__container"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),jZ={components:{CdsLink:Jl},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=(n=this.subtitle)==null?void 0:n.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},qZ={class:"page-header__title"},GZ={key:0,class:"d-flex"},KZ={class:"page-header__subtitle"},ZZ={key:1,class:"page-header__subtitle"},XZ={class:"page-header__aside-slot"};function JZ(t,e,n,r,a,s){const o=i.resolveComponent("cds-link");return i.openBlock(),i.createElementBlock("header",{class:i.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[i.createElementVNode("div",null,[i.createElementVNode("p",qZ,i.toDisplayString(n.title),1),a.splitedSubtitle.length>0?(i.openBlock(),i.createElementBlock("div",GZ,[i.createElementVNode("span",KZ,[i.createTextVNode(i.toDisplayString(a.splitedSubtitle[0])+" ",1),i.createVNode(o,{href:a.url,bold:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.fancyUrl),1)]),_:1},8,["href"]),i.createTextVNode(" "+i.toDisplayString(a.splitedSubtitle[1]),1)])])):(i.openBlock(),i.createElementBlock("div",ZZ,i.toDisplayString(n.subtitle),1))]),i.createElementVNode("div",XZ,[i.renderSlot(t.$slots,"aside")])],2)}const QZ=Q(jZ,[["render",JZ]]);class jn{constructor(e,n,r,a=null){this.index=e,this.value=n,this.selected=r,this.text=a||n}}const eX={components:{CdsChevron:Vs},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new jn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new jn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?gf("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new jn(0,"first",!1,"<<"),new jn(1,"back",!1,"<"),...this.mountPagesArray(),new jn(7,"forward",!1,">"),new jn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new jn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const r=this.selectedPage.value-4+n;e[n-2]=new jn(n+1,r,this.selectedPage.value===r)}return e}for(let n=2;n<t;n++){const r=this.pageCount-6+n;e[n-2]=new jn(n,r,this.selectedPage.value===r)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new jn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new jn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new jn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new jn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new jn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},tX=["onClick"],nX={key:3};function iX(t,e,n,r,a,s){const o=i.resolveComponent("cds-chevron");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.computedContainerClass)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.pages,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(s.resolveButtonClass(l)),onClick:h=>s.handlePageClick(l)},[d===0?(i.openBlock(),i.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===0?(i.openBlock(),i.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===1?(i.openBlock(),i.createBlock(o,{key:2,direction:"left"})):i.createCommentVNode("",!0),d>=2&&d<=a.pages.length-3?(i.openBlock(),i.createElementBlock("span",nX,i.toDisplayString(l.text),1)):i.createCommentVNode("",!0),d===a.pages.length-2?(i.openBlock(),i.createBlock(o,{key:4,direction:"right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0)],10,tX))),128))],2)}const rX=Q(eX,[["render",iX],["__scopeId","data-v-c81c79f6"]]),aX={components:{CdsBox:Gl,CdsDivider:ol},props:{title:{type:String,default:"Título",required:!0},subtitle:{type:String,default:"Subtítulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},sX={class:"panel-card__header"},oX={class:"panel-card__title"},lX={class:"panel-card__subtitle"};function cX(t,e,n,r,a,s){const o=i.resolveComponent("cds-divider"),l=i.resolveComponent("cds-box");return i.openBlock(),i.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",sX,[i.createElementVNode("div",null,[i.createElementVNode("span",oX,i.toDisplayString(n.title),1),e[0]||(e[0]=i.createElementVNode("br",null,null,-1)),i.createElementVNode("span",lX,i.toDisplayString(n.subtitle),1)]),i.createElementVNode("div",null,[i.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),i.createVNode(o,{dimmed:""}),i.createElementVNode("div",{class:i.normalizeClass(s.contentClass)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const dX=Q(aX,[["render",cX],["__scopeId","data-v-e1c5a182"]]),uX={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){let t="";switch(this.state){case"valid":t="pin-input--valid";break;case"invalid":t="pin-input--invalid";break;default:t="pin-input"}return this.mobile?`${t} pin-input--mobile`:t}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.innerValue.splice(e-1,1,t.key),e<this.length&&this.$refs[`pin-input${e+1}`][0].focus(),e===this.length&&this.$emit("update:modelValue",this.innerValue.join(""))}}},hX={class:"pin-input__container"},fX=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function pX(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",hX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.length,(o,l)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{id:`pin-input${o}`,key:l,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>a.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:i.normalizeClass(["pin-input",s.computedClass]),autocomplete:"off",onKeydown:i.withKeys(i.withModifiers(d=>s.handleBack(o),["stop"]),["delete"]),onKeypress:d=>s.changeInputContent(d,o),onInput:d=>s.handleInput(d,o),onFocus:d=>s.fixCursorPosition(o)},null,42,fX)),[[i.vModelDynamic,a.innerValue[o-1]]])),128))])}const mX=Q(uX,[["render",pX],["__scopeId","data-v-4e202c49"]]),k0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},hv=()=>{i.useCssVars(t=>({bf5feb56:t.textDirection}))},fv=k0.setup;k0.setup=fv?(t,e)=>(hv(),fv(t,e)):hv;const gX={class:"progress-bar"},yX={class:"progress-bar__content"};function bX(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("div",gX,[n.showText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},i.toDisplayString(s.formatedvalue),3)):i.createCommentVNode("",!0),i.createElementVNode("div",yX,[i.createElementVNode("div",{class:i.normalizeClass(`progress-bar__indicator--${n.variant}`),style:i.normalizeStyle(s.progressIndicatorStyle)},null,6)])])}const vX=Q(k0,[["render",bX],["__scopeId","data-v-d3a3d8d6"]]),_X={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Xs}},wX=["stroke-width"],kX=["stroke-dasharray","stroke-width"];function xX(t,e,n,r,a,s){return i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[i.createElementVNode("path",{class:"progress-circular__ring-background","stroke-width":s.stroke,d:`M18 2.0845
70
70
  a 15.9155 15.9155 0 0 1 0 31.831
71
71
  a 15.9155 15.9155 0 0 1 0 -31.831`},null,8,wX),i.createElementVNode("path",{class:i.normalizeClass(`progress-circular__ring-progress--${n.variant}`),"stroke-dasharray":s.normalizedDashArray,"stroke-width":s.stroke-1,style:i.normalizeStyle(s.circleIndicatorStyle),d:`M18 2.0845
72
72
  a 15.9155 15.9155 0 0 1 0 31.831