sm-click-library-ui 0.0.401 → 0.0.403
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-Dk18UPb1.js → index-DEKL5bT5.js} +1878 -1857
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +10 -10
- package/dist/style.css +1 -1
- package/dist/tailwind.css +14 -4
- package/dist/{web-z5DEGjDH.js → web-XtbV4Gxs.js} +2 -2
- package/dist/{web-gjv-L0-1.js → web-nqeV5F3J.js} +2 -2
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
(function(ut,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],t):(ut=typeof globalThis<"u"?globalThis:ut||self,t(ut["sm-click-library-ui"]={},ut.Vue,ut.Pinia))})(this,function(ut,t,It){"use strict";var Ov=Object.defineProperty;var Fv=(ut,t,It)=>t in ut?Ov(ut,t,{enumerable:!0,configurable:!0,writable:!0,value:It}):ut[t]=It;var ve=(ut,t,It)=>Fv(ut,typeof t!="symbol"?t+"":t,It);function l0(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function ri(e){return typeof e=="function"?e():t.unref(e)}const oi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const c0=Object.prototype.toString,d0=e=>c0.call(e)==="[object Object]",_n=()=>{},u0=f0();function f0(){var e,a;return oi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((a=window==null?void 0:window.navigator)==null?void 0:a.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function nn(e){var a;const n=ri(e);return(a=n==null?void 0:n.$el)!=null?a:n}const ii=oi?window:void 0;function Cr(...e){let a,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,a=ii):[a,n,r,o]=e,!a)return _n;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),c=t.watch(()=>[nn(a),ri(o)],([u,f])=>{if(s(),!u)return;const d=d0(f)?{...f}:f;i.push(...n.flatMap(p=>r.map(h=>l(u,p,h,d))))},{immediate:!0,flush:"post"}),m=()=>{c(),s()};return l0(m),m}let si=!1;function li(e,a,n={}){const{window:r=ii,ignore:o=[],capture:i=!0,detectIframe:s=!1}=n;if(!r)return _n;u0&&!si&&(si=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",_n)),r.document.documentElement.addEventListener("click",_n));let l=!0;const c=d=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(h=>h===d.target||d.composedPath().includes(h));{const h=nn(p);return h&&(d.target===h||d.composedPath().includes(h))}}),u=[Cr(r,"click",d=>{const p=nn(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}a(d)}},{passive:!0,capture:i}),Cr(r,"pointerdown",d=>{const p=nn(e);l=!c(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),s&&Cr(r,"blur",d=>{setTimeout(()=>{var p;const h=nn(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&a(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}const je=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},m0={class:"line-clamp-2 uppercase text-xs truncate text-white"},h0={key:0,class:"select_widget_lib"},ci=je({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(e,{emit:a}){const n=e,r=t.ref(!1),o=t.ref(null);t.computed(()=>n.selectConfig.some(l=>l.freeSlot));const i=()=>{r.value=!r.value};return li(o,()=>{r.value&&(r.value=!1)}),(l,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"target",ref:o,class:"relative w-full"},[t.createElementVNode("button",{onClick:i,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[t.createElementVNode("div",null,[t.createElementVNode("p",m0,t.toDisplayString(e.config.title),1)]),t.createElementVNode("div",null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([r.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},c[0]||(c[0]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1)]),2))])]),r.value?(t.openBlock(),t.createElementBlock("section",h0,[t.createElementVNode("div",null,[t.renderSlot(l.$slots,"free-slot",{},void 0,!0)])])):t.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-970e6830"]]),p0={key:0,class:"modal_head"},g0={class:"modal_responsive"},y0={class:"flex min-h-full items-center justify-center text-center sm:p-0"},k0={class:"modal_tittle text-current"},b0={class:"flex items-center gap-3"},x0=["innerHTML"],w0={class:"text-xl font-semibold flex items-center gap-2"},v0={class:"bg-base-200"},E0={class:"text-center"},C0={class:"modal_end_button"},di=je({__name:"simple_modal",props:{isOpen:{type:Boolean,default:!1},header:{type:Object,default:{title:"title",svg:"<svg class='w-5 mr-2 text-primary inline-block' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'> <path d='M18 3h-5.7a2 2 0 0 0-1.4.6L3.6 11a2 2 0 0 0 0 2.8l6.6 6.6a2 2 0 0 0 2.8 0l7.4-7.5a2 2 0 0 0 .6-1.4V6a3 3 0 0 0-3-3Zm-2.4 6.4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z' /> </svg>"}},size:{type:String,default:"md:w-1/2 xl:w-1/3"}},emits:["update:isOpen","close"],setup(e,{emit:a}){const n=e,r=a,o=()=>{r("update:isOpen",!n.isOpen),n.isOpen&&r("close")};return(i,s)=>{var l,c;return e.isOpen?(t.openBlock(),t.createElementBlock("div",p0,[s[2]||(s[2]=t.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),t.createElementVNode("div",g0,[t.createElementVNode("div",y0,[t.createElementVNode("div",{class:t.normalizeClass(["z-50 w-full shadow rounded-2xl shadow-black",e.size])},[t.createElementVNode("div",k0,[t.createElementVNode("section",b0,[t.createElementVNode("div",{innerHTML:(l=e.header)==null?void 0:l.svg},null,8,x0),t.createElementVNode("div",null,[t.createElementVNode("h3",w0,[t.createElementVNode("p",null,t.toDisplayString((c=e.header)==null?void 0:c.title),1)]),t.createElementVNode("div",null,[t.renderSlot(i.$slots,"header",{},void 0,!0)])])]),t.createElementVNode("button",{onClick:s[0]||(s[0]=m=>o()),class:"modal_close_button"},s[1]||(s[1]=[t.createElementVNode("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]))]),t.createElementVNode("div",v0,[t.createElementVNode("div",E0,[t.renderSlot(i.$slots,"body",{},void 0,!0)])]),t.createElementVNode("div",C0,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])],2)])])])):t.createCommentVNode("",!0)}}},[["__scopeId","data-v-3fe54e4c"]]),S0={class:"simple_card_header"},M0={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},B0={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},A0={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},V0={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},_0={class:"simple_card_title"},N0={class:"simple_card_descripiton"},ui={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(e){const a=e,n=t.computed(()=>({simple_card_success:a.typeCard==="success",simple_card_info:a.typeCard==="info",simple_card_alert:a.typeCard==="alert",simple_card_error:a.typeCard==="error"}));return(r,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([n.value,"simple_card"])},[t.createElementVNode("div",S0,[e.typeCard==="success"?(t.openBlock(),t.createElementBlock("svg",M0,o[0]||(o[0]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)]))):t.createCommentVNode("",!0),e.typeCard==="info"?(t.openBlock(),t.createElementBlock("svg",B0,o[1]||(o[1]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)]))):t.createCommentVNode("",!0),e.typeCard==="alert"?(t.openBlock(),t.createElementBlock("svg",A0,o[2]||(o[2]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)]))):t.createCommentVNode("",!0),e.typeCard==="error"?(t.openBlock(),t.createElementBlock("svg",V0,o[3]||(o[3]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)]))):t.createCommentVNode("",!0),t.createElementVNode("p",_0,t.toDisplayString(e.content.title),1)]),t.createElementVNode("section",N0,[t.createElementVNode("p",null,t.toDisplayString(e.content.description),1)])],2))}};function fi(e,a){return function(){return e.apply(a,arguments)}}const{toString:D0}=Object.prototype,{getPrototypeOf:Sr}=Object,{iterator:Nn,toStringTag:mi}=Symbol,Dn=(e=>a=>{const n=D0.call(a);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),a=>Dn(a)===e),Tn=e=>a=>typeof a===e,{isArray:Fa}=Array,rn=Tn("undefined");function T0(e){return e!==null&&!rn(e)&&e.constructor!==null&&!rn(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hi=Pt("ArrayBuffer");function P0(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&hi(e.buffer),a}const O0=Tn("string"),Mt=Tn("function"),pi=Tn("number"),Pn=e=>e!==null&&typeof e=="object",F0=e=>e===!0||e===!1,On=e=>{if(Dn(e)!=="object")return!1;const a=Sr(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(mi in e)&&!(Nn in e)},L0=Pt("Date"),$0=Pt("File"),R0=Pt("Blob"),H0=Pt("FileList"),z0=e=>Pn(e)&&Mt(e.pipe),I0=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((a=Dn(e))==="formdata"||a==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},G0=Pt("URLSearchParams"),[j0,q0,W0,Y0]=["ReadableStream","Request","Response","Headers"].map(Pt),U0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,a,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fa(e))for(r=0,o=e.length;r<o;r++)a.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(r=0;r<s;r++)l=i[r],a.call(null,e[l],l,e)}}function gi(e,a){a=a.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],a===o.toLowerCase())return o;return null}const Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yi=e=>!rn(e)&&e!==Ea;function Mr(){const{caseless:e}=yi(this)&&this||{},a={},n=(r,o)=>{const i=e&&gi(a,o)||o;On(a[i])&&On(r)?a[i]=Mr(a[i],r):On(r)?a[i]=Mr({},r):Fa(r)?a[i]=r.slice():a[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&on(arguments[r],n);return a}const X0=(e,a,n,{allOwnKeys:r}={})=>(on(a,(o,i)=>{n&&Mt(o)?e[i]=fi(o,n):e[i]=o},{allOwnKeys:r}),e),Z0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Q0=(e,a,n,r)=>{e.prototype=Object.create(a.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),n&&Object.assign(e.prototype,n)},K0=(e,a,n,r)=>{let o,i,s;const l={};if(a=a||{},e==null)return a;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=n!==!1&&Sr(e)}while(e&&(!n||n(e,a))&&e!==Object.prototype);return a},J0=(e,a,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=a.length;const r=e.indexOf(a,n);return r!==-1&&r===n},ec=e=>{if(!e)return null;if(Fa(e))return e;let a=e.length;if(!pi(a))return null;const n=new Array(a);for(;a-- >0;)n[a]=e[a];return n},tc=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Sr(Uint8Array)),ac=(e,a)=>{const r=(e&&e[Nn]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;a.call(e,i[0],i[1])}},nc=(e,a)=>{let n;const r=[];for(;(n=e.exec(a))!==null;)r.push(n);return r},rc=Pt("HTMLFormElement"),oc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ki=(({hasOwnProperty:e})=>(a,n)=>e.call(a,n))(Object.prototype),ic=Pt("RegExp"),bi=(e,a)=>{const n=Object.getOwnPropertyDescriptors(e),r={};on(n,(o,i)=>{let s;(s=a(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},sc=e=>{bi(e,(a,n)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mt(r)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lc=(e,a)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Fa(e)?r(e):r(String(e).split(a)),n},cc=()=>{},dc=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a;function uc(e){return!!(e&&Mt(e.append)&&e[mi]==="FormData"&&e[Nn])}const fc=e=>{const a=new Array(10),n=(r,o)=>{if(Pn(r)){if(a.indexOf(r)>=0)return;if(!("toJSON"in r)){a[o]=r;const i=Fa(r)?[]:{};return on(r,(s,l)=>{const c=n(s,o+1);!rn(c)&&(i[l]=c)}),a[o]=void 0,i}}return r};return n(e,0)},mc=Pt("AsyncFunction"),hc=e=>e&&(Pn(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),xi=((e,a)=>e?setImmediate:a?((n,r)=>(Ea.addEventListener("message",({source:o,data:i})=>{o===Ea&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ea.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mt(Ea.postMessage)),pc=typeof queueMicrotask<"u"?queueMicrotask.bind(Ea):typeof process<"u"&&process.nextTick||xi,se={isArray:Fa,isArrayBuffer:hi,isBuffer:T0,isFormData:I0,isArrayBufferView:P0,isString:O0,isNumber:pi,isBoolean:F0,isObject:Pn,isPlainObject:On,isReadableStream:j0,isRequest:q0,isResponse:W0,isHeaders:Y0,isUndefined:rn,isDate:L0,isFile:$0,isBlob:R0,isRegExp:ic,isFunction:Mt,isStream:z0,isURLSearchParams:G0,isTypedArray:tc,isFileList:H0,forEach:on,merge:Mr,extend:X0,trim:U0,stripBOM:Z0,inherits:Q0,toFlatObject:K0,kindOf:Dn,kindOfTest:Pt,endsWith:J0,toArray:ec,forEachEntry:ac,matchAll:nc,isHTMLForm:rc,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:bi,freezeMethods:sc,toObjectSet:lc,toCamelCase:oc,noop:cc,toFiniteNumber:dc,findKey:gi,global:Ea,isContextDefined:yi,isSpecCompliantForm:uc,toJSONObject:fc,isAsyncFn:mc,isThenable:hc,setImmediate:xi,asap:pc,isIterable:e=>e!=null&&Mt(e[Nn])};function Te(e,a,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}se.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}});const wi=Te.prototype,vi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vi[e]={value:e}}),Object.defineProperties(Te,vi),Object.defineProperty(wi,"isAxiosError",{value:!0}),Te.from=(e,a,n,r,o,i)=>{const s=Object.create(wi);return se.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Te.call(s,e.message,a,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const gc=null;function Br(e){return se.isPlainObject(e)||se.isArray(e)}function Ei(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function Ci(e,a,n){return e?e.concat(a).map(function(o,i){return o=Ei(o),!n&&i?"["+o+"]":o}).join(n?".":""):a}function yc(e){return se.isArray(e)&&!e.some(Br)}const kc=se.toFlatObject(se,{},null,function(a){return/^is[A-Z]/.test(a)});function Fn(e,a,n){if(!se.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,k){return!se.isUndefined(k[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(a);if(!se.isFunction(o))throw new TypeError("visitor must be a function");function m(h){if(h===null)return"";if(se.isDate(h))return h.toISOString();if(se.isBoolean(h))return h.toString();if(!c&&se.isBlob(h))throw new Te("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(h)||se.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,k){let v=h;if(h&&!k&&typeof h=="object"){if(se.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(se.isArray(h)&&yc(h)||(se.isFileList(h)||se.endsWith(g,"[]"))&&(v=se.toArray(h)))return g=Ei(g),v.forEach(function(b,A){!(se.isUndefined(b)||b===null)&&a.append(s===!0?Ci([g],A,i):s===null?g:g+"[]",m(b))}),!1}return Br(h)?!0:(a.append(Ci(k,g,i),m(h)),!1)}const f=[],d=Object.assign(kc,{defaultVisitor:u,convertValue:m,isVisitable:Br});function p(h,g){if(!se.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),se.forEach(h,function(v,x){(!(se.isUndefined(v)||v===null)&&o.call(a,v,se.isString(x)?x.trim():x,g,d))===!0&&p(v,g?g.concat(x):[x])}),f.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return p(e),a}function Si(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Ar(e,a){this._pairs=[],e&&Fn(e,this,a)}const Mi=Ar.prototype;Mi.append=function(a,n){this._pairs.push([a,n])},Mi.toString=function(a){const n=a?function(r){return a.call(this,r,Si)}:Si;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bi(e,a,n){if(!a)return e;const r=n&&n.encode||bc;se.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(a,n):i=se.isURLSearchParams(a)?a.toString():new Ar(a,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ai{constructor(){this.handlers=[]}use(a,n,r){return this.handlers.push({fulfilled:a,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){se.forEach(this.handlers,function(r){r!==null&&a(r)})}}const Vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ar,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Vr=typeof window<"u"&&typeof document<"u",_r=typeof navigator=="object"&&navigator||void 0,wc=Vr&&(!_r||["ReactNative","NativeScript","NS"].indexOf(_r.product)<0),vc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ec=Vr&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vr,hasStandardBrowserEnv:wc,hasStandardBrowserWebWorkerEnv:vc,navigator:_r,origin:Ec},Symbol.toStringTag,{value:"Module"})),...xc};function Cc(e,a){return Fn(e,new gt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return gt.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Sc(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Mc(e){const a={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],a[i]=e[i];return a}function _i(e){function a(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&se.isArray(o)?o.length:s,c?(se.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!se.isObject(o[s]))&&(o[s]=[]),a(n,r,o[s],i)&&se.isArray(o[s])&&(o[s]=Mc(o[s])),!l)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,o)=>{a(Sc(r),o,n,0)}),n}return null}function Bc(e,a,n){if(se.isString(e))try{return(a||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const sn={transitional:Vi,adapter:["xhr","http","fetch"],transformRequest:[function(a,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=se.isObject(a);if(i&&se.isHTMLForm(a)&&(a=new FormData(a)),se.isFormData(a))return o?JSON.stringify(_i(a)):a;if(se.isArrayBuffer(a)||se.isBuffer(a)||se.isStream(a)||se.isFile(a)||se.isBlob(a)||se.isReadableStream(a))return a;if(se.isArrayBufferView(a))return a.buffer;if(se.isURLSearchParams(a))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cc(a,this.formSerializer).toString();if((l=se.isFileList(a))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Fn(l?{"files[]":a}:a,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Bc(a)):a}],transformResponse:[function(a){const n=this.transitional||sn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(se.isResponse(a)||se.isReadableStream(a))return a;if(a&&se.isString(a)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(a)}catch(l){if(s)throw l.name==="SyntaxError"?Te.from(l,Te.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{sn.headers[e]={}});const Ac=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vc=e=>{const a={};let n,r,o;return e&&e.split(`
|
|
1
|
+
(function(ut,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],t):(ut=typeof globalThis<"u"?globalThis:ut||self,t(ut["sm-click-library-ui"]={},ut.Vue,ut.Pinia))})(this,function(ut,t,It){"use strict";var Ov=Object.defineProperty;var Fv=(ut,t,It)=>t in ut?Ov(ut,t,{enumerable:!0,configurable:!0,writable:!0,value:It}):ut[t]=It;var ve=(ut,t,It)=>Fv(ut,typeof t!="symbol"?t+"":t,It);function l0(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function ri(e){return typeof e=="function"?e():t.unref(e)}const oi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const c0=Object.prototype.toString,d0=e=>c0.call(e)==="[object Object]",_n=()=>{},u0=f0();function f0(){var e,a;return oi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((a=window==null?void 0:window.navigator)==null?void 0:a.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function nn(e){var a;const n=ri(e);return(a=n==null?void 0:n.$el)!=null?a:n}const ii=oi?window:void 0;function Cr(...e){let a,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,a=ii):[a,n,r,o]=e,!a)return _n;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),c=t.watch(()=>[nn(a),ri(o)],([u,f])=>{if(s(),!u)return;const d=d0(f)?{...f}:f;i.push(...n.flatMap(p=>r.map(h=>l(u,p,h,d))))},{immediate:!0,flush:"post"}),m=()=>{c(),s()};return l0(m),m}let si=!1;function li(e,a,n={}){const{window:r=ii,ignore:o=[],capture:i=!0,detectIframe:s=!1}=n;if(!r)return _n;u0&&!si&&(si=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",_n)),r.document.documentElement.addEventListener("click",_n));let l=!0;const c=d=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(h=>h===d.target||d.composedPath().includes(h));{const h=nn(p);return h&&(d.target===h||d.composedPath().includes(h))}}),u=[Cr(r,"click",d=>{const p=nn(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}a(d)}},{passive:!0,capture:i}),Cr(r,"pointerdown",d=>{const p=nn(e);l=!c(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),s&&Cr(r,"blur",d=>{setTimeout(()=>{var p;const h=nn(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&a(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}const je=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},m0={class:"line-clamp-2 uppercase text-xs truncate text-white"},h0={key:0,class:"select_widget_lib"},ci=je({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(e,{emit:a}){const n=e,r=t.ref(!1),o=t.ref(null);t.computed(()=>n.selectConfig.some(l=>l.freeSlot));const i=()=>{r.value=!r.value};return li(o,()=>{r.value&&(r.value=!1)}),(l,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"target",ref:o,class:"relative w-full"},[t.createElementVNode("button",{onClick:i,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[t.createElementVNode("div",null,[t.createElementVNode("p",m0,t.toDisplayString(e.config.title),1)]),t.createElementVNode("div",null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([r.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},c[0]||(c[0]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1)]),2))])]),r.value?(t.openBlock(),t.createElementBlock("section",h0,[t.createElementVNode("div",null,[t.renderSlot(l.$slots,"free-slot",{},void 0,!0)])])):t.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-970e6830"]]),p0={key:0,class:"modal_head"},g0={class:"modal_responsive"},y0={class:"flex min-h-full items-center justify-center text-center sm:p-0"},k0={class:"modal_tittle text-current bg-base-300 border-base-100"},b0={class:"flex items-center gap-3"},x0=["innerHTML"],w0={class:"text-xl font-semibold flex items-center gap-2"},v0={class:"bg-base-200"},E0={class:"text-center"},C0={class:"modal_end_button border-base-100 bg-base-300"},di=je({__name:"simple_modal",props:{isOpen:{type:Boolean,default:!1},header:{type:Object,default:{title:"title",svg:"<svg class='w-5 mr-2 text-primary inline-block' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'> <path d='M18 3h-5.7a2 2 0 0 0-1.4.6L3.6 11a2 2 0 0 0 0 2.8l6.6 6.6a2 2 0 0 0 2.8 0l7.4-7.5a2 2 0 0 0 .6-1.4V6a3 3 0 0 0-3-3Zm-2.4 6.4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z' /> </svg>"}},size:{type:String,default:"md:w-1/2 xl:w-1/3"}},emits:["update:isOpen","close"],setup(e,{emit:a}){const n=e,r=a,o=()=>{r("update:isOpen",!n.isOpen),n.isOpen&&r("close")};return(i,s)=>(t.openBlock(),t.createBlock(t.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>{var l,c;return[e.isOpen?(t.openBlock(),t.createElementBlock("div",p0,[s[2]||(s[2]=t.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),t.createElementVNode("div",g0,[t.createElementVNode("div",y0,[t.createElementVNode("div",{class:t.normalizeClass(["z-50 w-full shadow rounded-2xl shadow-black",e.size])},[t.createElementVNode("div",k0,[t.createElementVNode("section",b0,[t.createElementVNode("div",{innerHTML:(l=e.header)==null?void 0:l.svg},null,8,x0),t.createElementVNode("div",null,[t.createElementVNode("h3",w0,[t.createElementVNode("p",null,t.toDisplayString((c=e.header)==null?void 0:c.title),1)]),t.createElementVNode("div",null,[t.renderSlot(i.$slots,"header",{},void 0,!0)])])]),t.createElementVNode("button",{onClick:s[0]||(s[0]=m=>o()),class:"modal_close_button bg-base-200/40"},s[1]||(s[1]=[t.createElementVNode("svg",{class:"size-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)]))]),t.createElementVNode("div",v0,[t.createElementVNode("div",E0,[t.renderSlot(i.$slots,"body",{},void 0,!0)])]),t.createElementVNode("div",C0,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])],2)])])])):t.createCommentVNode("",!0)]}),_:3}))}},[["__scopeId","data-v-2db3c09c"]]),S0={class:"simple_card_header"},M0={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},B0={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},A0={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},V0={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},_0={class:"simple_card_title"},N0={class:"simple_card_descripiton"},ui={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(e){const a=e,n=t.computed(()=>({simple_card_success:a.typeCard==="success",simple_card_info:a.typeCard==="info",simple_card_alert:a.typeCard==="alert",simple_card_error:a.typeCard==="error"}));return(r,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([n.value,"simple_card"])},[t.createElementVNode("div",S0,[e.typeCard==="success"?(t.openBlock(),t.createElementBlock("svg",M0,o[0]||(o[0]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)]))):t.createCommentVNode("",!0),e.typeCard==="info"?(t.openBlock(),t.createElementBlock("svg",B0,o[1]||(o[1]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)]))):t.createCommentVNode("",!0),e.typeCard==="alert"?(t.openBlock(),t.createElementBlock("svg",A0,o[2]||(o[2]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)]))):t.createCommentVNode("",!0),e.typeCard==="error"?(t.openBlock(),t.createElementBlock("svg",V0,o[3]||(o[3]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)]))):t.createCommentVNode("",!0),t.createElementVNode("p",_0,t.toDisplayString(e.content.title),1)]),t.createElementVNode("section",N0,[t.createElementVNode("p",null,t.toDisplayString(e.content.description),1)])],2))}};function fi(e,a){return function(){return e.apply(a,arguments)}}const{toString:D0}=Object.prototype,{getPrototypeOf:Sr}=Object,{iterator:Nn,toStringTag:mi}=Symbol,Dn=(e=>a=>{const n=D0.call(a);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),a=>Dn(a)===e),Tn=e=>a=>typeof a===e,{isArray:Fa}=Array,rn=Tn("undefined");function T0(e){return e!==null&&!rn(e)&&e.constructor!==null&&!rn(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hi=Pt("ArrayBuffer");function P0(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&hi(e.buffer),a}const O0=Tn("string"),Mt=Tn("function"),pi=Tn("number"),Pn=e=>e!==null&&typeof e=="object",F0=e=>e===!0||e===!1,On=e=>{if(Dn(e)!=="object")return!1;const a=Sr(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(mi in e)&&!(Nn in e)},L0=Pt("Date"),$0=Pt("File"),R0=Pt("Blob"),H0=Pt("FileList"),z0=e=>Pn(e)&&Mt(e.pipe),I0=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((a=Dn(e))==="formdata"||a==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},G0=Pt("URLSearchParams"),[j0,q0,W0,Y0]=["ReadableStream","Request","Response","Headers"].map(Pt),U0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,a,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fa(e))for(r=0,o=e.length;r<o;r++)a.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(r=0;r<s;r++)l=i[r],a.call(null,e[l],l,e)}}function gi(e,a){a=a.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],a===o.toLowerCase())return o;return null}const Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yi=e=>!rn(e)&&e!==Ea;function Mr(){const{caseless:e}=yi(this)&&this||{},a={},n=(r,o)=>{const i=e&&gi(a,o)||o;On(a[i])&&On(r)?a[i]=Mr(a[i],r):On(r)?a[i]=Mr({},r):Fa(r)?a[i]=r.slice():a[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&on(arguments[r],n);return a}const X0=(e,a,n,{allOwnKeys:r}={})=>(on(a,(o,i)=>{n&&Mt(o)?e[i]=fi(o,n):e[i]=o},{allOwnKeys:r}),e),Z0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Q0=(e,a,n,r)=>{e.prototype=Object.create(a.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),n&&Object.assign(e.prototype,n)},K0=(e,a,n,r)=>{let o,i,s;const l={};if(a=a||{},e==null)return a;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=n!==!1&&Sr(e)}while(e&&(!n||n(e,a))&&e!==Object.prototype);return a},J0=(e,a,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=a.length;const r=e.indexOf(a,n);return r!==-1&&r===n},ec=e=>{if(!e)return null;if(Fa(e))return e;let a=e.length;if(!pi(a))return null;const n=new Array(a);for(;a-- >0;)n[a]=e[a];return n},tc=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Sr(Uint8Array)),ac=(e,a)=>{const r=(e&&e[Nn]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;a.call(e,i[0],i[1])}},nc=(e,a)=>{let n;const r=[];for(;(n=e.exec(a))!==null;)r.push(n);return r},rc=Pt("HTMLFormElement"),oc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ki=(({hasOwnProperty:e})=>(a,n)=>e.call(a,n))(Object.prototype),ic=Pt("RegExp"),bi=(e,a)=>{const n=Object.getOwnPropertyDescriptors(e),r={};on(n,(o,i)=>{let s;(s=a(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},sc=e=>{bi(e,(a,n)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mt(r)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lc=(e,a)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Fa(e)?r(e):r(String(e).split(a)),n},cc=()=>{},dc=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a;function uc(e){return!!(e&&Mt(e.append)&&e[mi]==="FormData"&&e[Nn])}const fc=e=>{const a=new Array(10),n=(r,o)=>{if(Pn(r)){if(a.indexOf(r)>=0)return;if(!("toJSON"in r)){a[o]=r;const i=Fa(r)?[]:{};return on(r,(s,l)=>{const c=n(s,o+1);!rn(c)&&(i[l]=c)}),a[o]=void 0,i}}return r};return n(e,0)},mc=Pt("AsyncFunction"),hc=e=>e&&(Pn(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),xi=((e,a)=>e?setImmediate:a?((n,r)=>(Ea.addEventListener("message",({source:o,data:i})=>{o===Ea&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ea.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mt(Ea.postMessage)),pc=typeof queueMicrotask<"u"?queueMicrotask.bind(Ea):typeof process<"u"&&process.nextTick||xi,se={isArray:Fa,isArrayBuffer:hi,isBuffer:T0,isFormData:I0,isArrayBufferView:P0,isString:O0,isNumber:pi,isBoolean:F0,isObject:Pn,isPlainObject:On,isReadableStream:j0,isRequest:q0,isResponse:W0,isHeaders:Y0,isUndefined:rn,isDate:L0,isFile:$0,isBlob:R0,isRegExp:ic,isFunction:Mt,isStream:z0,isURLSearchParams:G0,isTypedArray:tc,isFileList:H0,forEach:on,merge:Mr,extend:X0,trim:U0,stripBOM:Z0,inherits:Q0,toFlatObject:K0,kindOf:Dn,kindOfTest:Pt,endsWith:J0,toArray:ec,forEachEntry:ac,matchAll:nc,isHTMLForm:rc,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:bi,freezeMethods:sc,toObjectSet:lc,toCamelCase:oc,noop:cc,toFiniteNumber:dc,findKey:gi,global:Ea,isContextDefined:yi,isSpecCompliantForm:uc,toJSONObject:fc,isAsyncFn:mc,isThenable:hc,setImmediate:xi,asap:pc,isIterable:e=>e!=null&&Mt(e[Nn])};function Te(e,a,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}se.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}});const wi=Te.prototype,vi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vi[e]={value:e}}),Object.defineProperties(Te,vi),Object.defineProperty(wi,"isAxiosError",{value:!0}),Te.from=(e,a,n,r,o,i)=>{const s=Object.create(wi);return se.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Te.call(s,e.message,a,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const gc=null;function Br(e){return se.isPlainObject(e)||se.isArray(e)}function Ei(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function Ci(e,a,n){return e?e.concat(a).map(function(o,i){return o=Ei(o),!n&&i?"["+o+"]":o}).join(n?".":""):a}function yc(e){return se.isArray(e)&&!e.some(Br)}const kc=se.toFlatObject(se,{},null,function(a){return/^is[A-Z]/.test(a)});function Fn(e,a,n){if(!se.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!se.isUndefined(b[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(a);if(!se.isFunction(o))throw new TypeError("visitor must be a function");function m(h){if(h===null)return"";if(se.isDate(h))return h.toISOString();if(se.isBoolean(h))return h.toString();if(!c&&se.isBlob(h))throw new Te("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(h)||se.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,b){let v=h;if(h&&!b&&typeof h=="object"){if(se.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(se.isArray(h)&&yc(h)||(se.isFileList(h)||se.endsWith(g,"[]"))&&(v=se.toArray(h)))return g=Ei(g),v.forEach(function(k,A){!(se.isUndefined(k)||k===null)&&a.append(s===!0?Ci([g],A,i):s===null?g:g+"[]",m(k))}),!1}return Br(h)?!0:(a.append(Ci(b,g,i),m(h)),!1)}const f=[],d=Object.assign(kc,{defaultVisitor:u,convertValue:m,isVisitable:Br});function p(h,g){if(!se.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),se.forEach(h,function(v,x){(!(se.isUndefined(v)||v===null)&&o.call(a,v,se.isString(x)?x.trim():x,g,d))===!0&&p(v,g?g.concat(x):[x])}),f.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return p(e),a}function Si(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Ar(e,a){this._pairs=[],e&&Fn(e,this,a)}const Mi=Ar.prototype;Mi.append=function(a,n){this._pairs.push([a,n])},Mi.toString=function(a){const n=a?function(r){return a.call(this,r,Si)}:Si;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bi(e,a,n){if(!a)return e;const r=n&&n.encode||bc;se.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(a,n):i=se.isURLSearchParams(a)?a.toString():new Ar(a,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ai{constructor(){this.handlers=[]}use(a,n,r){return this.handlers.push({fulfilled:a,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){se.forEach(this.handlers,function(r){r!==null&&a(r)})}}const Vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ar,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Vr=typeof window<"u"&&typeof document<"u",_r=typeof navigator=="object"&&navigator||void 0,wc=Vr&&(!_r||["ReactNative","NativeScript","NS"].indexOf(_r.product)<0),vc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ec=Vr&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vr,hasStandardBrowserEnv:wc,hasStandardBrowserWebWorkerEnv:vc,navigator:_r,origin:Ec},Symbol.toStringTag,{value:"Module"})),...xc};function Cc(e,a){return Fn(e,new gt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return gt.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Sc(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Mc(e){const a={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],a[i]=e[i];return a}function _i(e){function a(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&se.isArray(o)?o.length:s,c?(se.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!se.isObject(o[s]))&&(o[s]=[]),a(n,r,o[s],i)&&se.isArray(o[s])&&(o[s]=Mc(o[s])),!l)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,o)=>{a(Sc(r),o,n,0)}),n}return null}function Bc(e,a,n){if(se.isString(e))try{return(a||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const sn={transitional:Vi,adapter:["xhr","http","fetch"],transformRequest:[function(a,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=se.isObject(a);if(i&&se.isHTMLForm(a)&&(a=new FormData(a)),se.isFormData(a))return o?JSON.stringify(_i(a)):a;if(se.isArrayBuffer(a)||se.isBuffer(a)||se.isStream(a)||se.isFile(a)||se.isBlob(a)||se.isReadableStream(a))return a;if(se.isArrayBufferView(a))return a.buffer;if(se.isURLSearchParams(a))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cc(a,this.formSerializer).toString();if((l=se.isFileList(a))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Fn(l?{"files[]":a}:a,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Bc(a)):a}],transformResponse:[function(a){const n=this.transitional||sn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(se.isResponse(a)||se.isReadableStream(a))return a;if(a&&se.isString(a)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(a)}catch(l){if(s)throw l.name==="SyntaxError"?Te.from(l,Te.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{sn.headers[e]={}});const Ac=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vc=e=>{const a={};let n,r,o;return e&&e.split(`
|
|
2
2
|
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||a[n]&&Ac[n])&&(n==="set-cookie"?a[n]?a[n].push(r):a[n]=[r]:a[n]=a[n]?a[n]+", "+r:r)}),a},Ni=Symbol("internals");function ln(e){return e&&String(e).trim().toLowerCase()}function Ln(e){return e===!1||e==null?e:se.isArray(e)?e.map(Ln):String(e)}function _c(e){const a=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)a[r[1]]=r[2];return a}const Nc=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nr(e,a,n,r,o){if(se.isFunction(r))return r.call(this,a,n);if(o&&(a=n),!!se.isString(a)){if(se.isString(r))return a.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(a)}}function Dc(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,n,r)=>n.toUpperCase()+r)}function Tc(e,a){const n=se.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,a,o,i,s)},configurable:!0})})}let Bt=class{constructor(a){a&&this.set(a)}set(a,n,r){const o=this;function i(l,c,m){const u=ln(c);if(!u)throw new Error("header name must be a non-empty string");const f=se.findKey(o,u);(!f||o[f]===void 0||m===!0||m===void 0&&o[f]!==!1)&&(o[f||c]=Ln(l))}const s=(l,c)=>se.forEach(l,(m,u)=>i(m,u,c));if(se.isPlainObject(a)||a instanceof this.constructor)s(a,n);else if(se.isString(a)&&(a=a.trim())&&!Nc(a))s(Vc(a),n);else if(se.isObject(a)&&se.isIterable(a)){let l={},c,m;for(const u of a){if(!se.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[m=u[0]]=(c=l[m])?se.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}s(l,n)}else a!=null&&i(n,a,r);return this}get(a,n){if(a=ln(a),a){const r=se.findKey(this,a);if(r){const o=this[r];if(!n)return o;if(n===!0)return _c(o);if(se.isFunction(n))return n.call(this,o,r);if(se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,n){if(a=ln(a),a){const r=se.findKey(this,a);return!!(r&&this[r]!==void 0&&(!n||Nr(this,this[r],r,n)))}return!1}delete(a,n){const r=this;let o=!1;function i(s){if(s=ln(s),s){const l=se.findKey(r,s);l&&(!n||Nr(r,r[l],l,n))&&(delete r[l],o=!0)}}return se.isArray(a)?a.forEach(i):i(a),o}clear(a){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!a||Nr(this,this[i],i,a,!0))&&(delete this[i],o=!0)}return o}normalize(a){const n=this,r={};return se.forEach(this,(o,i)=>{const s=se.findKey(r,i);if(s){n[s]=Ln(o),delete n[i];return}const l=a?Dc(i):String(i).trim();l!==i&&delete n[i],n[l]=Ln(o),r[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const n=Object.create(null);return se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=a&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,n])=>a+": "+n).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...n){const r=new this(a);return n.forEach(o=>r.set(o)),r}static accessor(a){const r=(this[Ni]=this[Ni]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=ln(s);r[l]||(Tc(o,s),r[l]=!0)}return se.isArray(a)?a.forEach(i):i(a),this}};Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(Bt.prototype,({value:e},a)=>{let n=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(r){this[n]=r}}}),se.freezeMethods(Bt);function Dr(e,a){const n=this||sn,r=a||n,o=Bt.from(r.headers);let i=r.data;return se.forEach(e,function(l){i=l.call(n,i,o.normalize(),a?a.status:void 0)}),o.normalize(),i}function Di(e){return!!(e&&e.__CANCEL__)}function La(e,a,n){Te.call(this,e??"canceled",Te.ERR_CANCELED,a,n),this.name="CanceledError"}se.inherits(La,Te,{__CANCEL__:!0});function Ti(e,a,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):a(new Te("Request failed with status code "+n.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Pc(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Oc(e,a){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return a=a!==void 0?a:1e3,function(c){const m=Date.now(),u=r[i];s||(s=m),n[o]=c,r[o]=m;let f=i,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),m-s<a)return;const p=u&&m-u;return p?Math.round(d*1e3/p):void 0}}function Fc(e,a){let n=0,r=1e3/a,o,i;const s=(m,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,m)};return[(...m)=>{const u=Date.now(),f=u-n;f>=r?s(m,u):(o=m,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const $n=(e,a,n=3)=>{let r=0;const o=Oc(50,250);return Fc(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,m=o(c),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:m||void 0,estimated:m&&l&&u?(l-s)/m:void 0,event:i,lengthComputable:l!=null,[a?"download":"upload"]:!0};e(f)},n)},Pi=(e,a)=>{const n=e!=null;return[r=>a[0]({lengthComputable:n,total:e,loaded:r}),a[1]]},Oi=e=>(...a)=>se.asap(()=>e(...a)),Lc=gt.hasStandardBrowserEnv?((e,a)=>n=>(n=new URL(n,gt.origin),e.protocol===n.protocol&&e.host===n.host&&(a||e.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,$c=gt.hasStandardBrowserEnv?{write(e,a,n,r,o,i){const s=[e+"="+encodeURIComponent(a)];se.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),se.isString(r)&&s.push("path="+r),se.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hc(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Fi(e,a,n){let r=!Rc(a);return e&&(r||n==!1)?Hc(e,a):a}const Li=e=>e instanceof Bt?{...e}:e;function Ca(e,a){a=a||{};const n={};function r(m,u,f,d){return se.isPlainObject(m)&&se.isPlainObject(u)?se.merge.call({caseless:d},m,u):se.isPlainObject(u)?se.merge({},u):se.isArray(u)?u.slice():u}function o(m,u,f,d){if(se.isUndefined(u)){if(!se.isUndefined(m))return r(void 0,m,f,d)}else return r(m,u,f,d)}function i(m,u){if(!se.isUndefined(u))return r(void 0,u)}function s(m,u){if(se.isUndefined(u)){if(!se.isUndefined(m))return r(void 0,m)}else return r(void 0,u)}function l(m,u,f){if(f in a)return r(m,u);if(f in e)return r(void 0,m)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(m,u,f)=>o(Li(m),Li(u),f,!0)};return se.forEach(Object.keys(Object.assign({},e,a)),function(u){const f=c[u]||o,d=f(e[u],a[u],u);se.isUndefined(d)&&f!==l||(n[u]=d)}),n}const $i=e=>{const a=Ca({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=a;a.headers=s=Bt.from(s),a.url=Bi(Fi(a.baseURL,a.url,a.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(se.isFormData(n)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[m,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(a)),r||r!==!1&&Lc(a.url))){const m=o&&i&&$c.read(i);m&&s.set(o,m)}return a},zc=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=$i(e);let i=o.data;const s=Bt.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:m}=o,u,f,d,p,h;function g(){p&&p(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function v(){if(!k)return;const b=Bt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:b,config:e,request:k};Ti(function(N){n(N),g()},function(N){r(N),g()},_),k=null}"onloadend"in k?k.onloadend=v:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(v)},k.onabort=function(){k&&(r(new Te("Request aborted",Te.ECONNABORTED,e,k)),k=null)},k.onerror=function(){r(new Te("Network Error",Te.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Vi;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new Te(A,_.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,k)),k=null},i===void 0&&s.setContentType(null),"setRequestHeader"in k&&se.forEach(s.toJSON(),function(A,_){k.setRequestHeader(_,A)}),se.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),m&&([d,h]=$n(m,!0),k.addEventListener("progress",d)),c&&k.upload&&([f,p]=$n(c),k.upload.addEventListener("progress",f),k.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=b=>{k&&(r(!b||b.type?new La(null,e,k):b),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=Pc(o.url);if(x&>.protocols.indexOf(x)===-1){r(new Te("Unsupported protocol "+x+":",Te.ERR_BAD_REQUEST,e));return}k.send(i||null)})},Ic=(e,a)=>{const{length:n}=e=e?e.filter(Boolean):[];if(a||n){let r=new AbortController,o;const i=function(m){if(!o){o=!0,l();const u=m instanceof Error?m:this.reason;r.abort(u instanceof Te?u:new La(u instanceof Error?u.message:u))}};let s=a&&setTimeout(()=>{s=null,i(new Te(`timeout ${a} of ms exceeded`,Te.ETIMEDOUT))},a);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(i):m.removeEventListener("abort",i)}),e=null)};e.forEach(m=>m.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>se.asap(l),c}},Gc=function*(e,a){let n=e.byteLength;if(n<a){yield e;return}let r=0,o;for(;r<n;)o=r+a,yield e.slice(r,o),r=o},jc=async function*(e,a){for await(const n of qc(e))yield*Gc(n,a)},qc=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const a=e.getReader();try{for(;;){const{done:n,value:r}=await a.read();if(n)break;yield r}}finally{await a.cancel()}},Ri=(e,a,n,r)=>{const o=jc(e,a);let i=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:m,value:u}=await o.next();if(m){l(),c.close();return}let f=u.byteLength;if(n){let d=i+=f;n(d)}c.enqueue(new Uint8Array(u))}catch(m){throw l(m),m}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Rn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Rn&&typeof ReadableStream=="function",Wc=Rn&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zi=(e,...a)=>{try{return!!e(...a)}catch{return!1}},Yc=Hi&&zi(()=>{let e=!1;const a=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a}),Ii=64*1024,Tr=Hi&&zi(()=>se.isReadableStream(new Response("").body)),Hn={stream:Tr&&(e=>e.body)};Rn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Hn[a]&&(Hn[a]=se.isFunction(e[a])?n=>n[a]():(n,r)=>{throw new Te(`Response type '${a}' is not supported`,Te.ERR_NOT_SUPPORT,r)})})})(new Response);const Uc=async e=>{if(e==null)return 0;if(se.isBlob(e))return e.size;if(se.isSpecCompliantForm(e))return(await new Request(gt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(se.isArrayBufferView(e)||se.isArrayBuffer(e))return e.byteLength;if(se.isURLSearchParams(e)&&(e=e+""),se.isString(e))return(await Wc(e)).byteLength},Xc=async(e,a)=>{const n=se.toFiniteNumber(e.getContentLength());return n??Uc(a)},Pr={http:gc,xhr:zc,fetch:Rn&&(async e=>{let{url:a,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:m,headers:u,withCredentials:f="same-origin",fetchOptions:d}=$i(e);m=m?(m+"").toLowerCase():"text";let p=Ic([o,i&&i.toAbortSignal()],s),h;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let k;try{if(c&&Yc&&n!=="get"&&n!=="head"&&(k=await Xc(u,r))!==0){let _=new Request(a,{method:"POST",body:r,duplex:"half"}),O;if(se.isFormData(r)&&(O=_.headers.get("content-type"))&&u.setContentType(O),_.body){const[N,S]=Pi(k,$n(Oi(c)));r=Ri(_.body,Ii,N,S)}}se.isString(f)||(f=f?"include":"omit");const v="credentials"in Request.prototype;h=new Request(a,{...d,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:v?f:void 0});let x=await fetch(h,d);const b=Tr&&(m==="stream"||m==="response");if(Tr&&(l||b&&g)){const _={};["status","statusText","headers"].forEach(B=>{_[B]=x[B]});const O=se.toFiniteNumber(x.headers.get("content-length")),[N,S]=l&&Pi(O,$n(Oi(l),!0))||[];x=new Response(Ri(x.body,Ii,N,()=>{S&&S(),g&&g()}),_)}m=m||"text";let A=await Hn[se.findKey(Hn,m)||"text"](x,e);return!b&&g&&g(),await new Promise((_,O)=>{Ti(_,O,{data:A,headers:Bt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:h})})}catch(v){throw g&&g(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,h),{cause:v.cause||v}):Te.from(v,v&&v.code,e,h)}})};se.forEach(Pr,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Gi=e=>`- ${e}`,Zc=e=>se.isFunction(e)||e===null||e===!1,ji={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:a}=e;let n,r;const o={};for(let i=0;i<a;i++){n=e[i];let s;if(r=n,!Zc(n)&&(r=Pr[(s=String(n)).toLowerCase()],r===void 0))throw new Te(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...n){const r=new this(a);return n.forEach(o=>r.set(o)),r}static accessor(a){const r=(this[Ni]=this[Ni]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=ln(s);r[l]||(Tc(o,s),r[l]=!0)}return se.isArray(a)?a.forEach(i):i(a),this}};Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(Bt.prototype,({value:e},a)=>{let n=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(r){this[n]=r}}}),se.freezeMethods(Bt);function Dr(e,a){const n=this||sn,r=a||n,o=Bt.from(r.headers);let i=r.data;return se.forEach(e,function(l){i=l.call(n,i,o.normalize(),a?a.status:void 0)}),o.normalize(),i}function Di(e){return!!(e&&e.__CANCEL__)}function La(e,a,n){Te.call(this,e??"canceled",Te.ERR_CANCELED,a,n),this.name="CanceledError"}se.inherits(La,Te,{__CANCEL__:!0});function Ti(e,a,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):a(new Te("Request failed with status code "+n.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Pc(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Oc(e,a){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return a=a!==void 0?a:1e3,function(c){const m=Date.now(),u=r[i];s||(s=m),n[o]=c,r[o]=m;let f=i,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),m-s<a)return;const p=u&&m-u;return p?Math.round(d*1e3/p):void 0}}function Fc(e,a){let n=0,r=1e3/a,o,i;const s=(m,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,m)};return[(...m)=>{const u=Date.now(),f=u-n;f>=r?s(m,u):(o=m,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const $n=(e,a,n=3)=>{let r=0;const o=Oc(50,250);return Fc(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,m=o(c),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:m||void 0,estimated:m&&l&&u?(l-s)/m:void 0,event:i,lengthComputable:l!=null,[a?"download":"upload"]:!0};e(f)},n)},Pi=(e,a)=>{const n=e!=null;return[r=>a[0]({lengthComputable:n,total:e,loaded:r}),a[1]]},Oi=e=>(...a)=>se.asap(()=>e(...a)),Lc=gt.hasStandardBrowserEnv?((e,a)=>n=>(n=new URL(n,gt.origin),e.protocol===n.protocol&&e.host===n.host&&(a||e.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,$c=gt.hasStandardBrowserEnv?{write(e,a,n,r,o,i){const s=[e+"="+encodeURIComponent(a)];se.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),se.isString(r)&&s.push("path="+r),se.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hc(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Fi(e,a,n){let r=!Rc(a);return e&&(r||n==!1)?Hc(e,a):a}const Li=e=>e instanceof Bt?{...e}:e;function Ca(e,a){a=a||{};const n={};function r(m,u,f,d){return se.isPlainObject(m)&&se.isPlainObject(u)?se.merge.call({caseless:d},m,u):se.isPlainObject(u)?se.merge({},u):se.isArray(u)?u.slice():u}function o(m,u,f,d){if(se.isUndefined(u)){if(!se.isUndefined(m))return r(void 0,m,f,d)}else return r(m,u,f,d)}function i(m,u){if(!se.isUndefined(u))return r(void 0,u)}function s(m,u){if(se.isUndefined(u)){if(!se.isUndefined(m))return r(void 0,m)}else return r(void 0,u)}function l(m,u,f){if(f in a)return r(m,u);if(f in e)return r(void 0,m)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(m,u,f)=>o(Li(m),Li(u),f,!0)};return se.forEach(Object.keys(Object.assign({},e,a)),function(u){const f=c[u]||o,d=f(e[u],a[u],u);se.isUndefined(d)&&f!==l||(n[u]=d)}),n}const $i=e=>{const a=Ca({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=a;a.headers=s=Bt.from(s),a.url=Bi(Fi(a.baseURL,a.url,a.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(se.isFormData(n)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[m,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(a)),r||r!==!1&&Lc(a.url))){const m=o&&i&&$c.read(i);m&&s.set(o,m)}return a},zc=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=$i(e);let i=o.data;const s=Bt.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:m}=o,u,f,d,p,h;function g(){p&&p(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const k=Bt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:k,config:e,request:b};Ti(function(N){n(N),g()},function(N){r(N),g()},_),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(r(new Te("Request aborted",Te.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new Te("Network Error",Te.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Vi;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new Te(A,_.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,b)),b=null},i===void 0&&s.setContentType(null),"setRequestHeader"in b&&se.forEach(s.toJSON(),function(A,_){b.setRequestHeader(_,A)}),se.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),m&&([d,h]=$n(m,!0),b.addEventListener("progress",d)),c&&b.upload&&([f,p]=$n(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=k=>{b&&(r(!k||k.type?new La(null,e,b):k),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=Pc(o.url);if(x&>.protocols.indexOf(x)===-1){r(new Te("Unsupported protocol "+x+":",Te.ERR_BAD_REQUEST,e));return}b.send(i||null)})},Ic=(e,a)=>{const{length:n}=e=e?e.filter(Boolean):[];if(a||n){let r=new AbortController,o;const i=function(m){if(!o){o=!0,l();const u=m instanceof Error?m:this.reason;r.abort(u instanceof Te?u:new La(u instanceof Error?u.message:u))}};let s=a&&setTimeout(()=>{s=null,i(new Te(`timeout ${a} of ms exceeded`,Te.ETIMEDOUT))},a);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(i):m.removeEventListener("abort",i)}),e=null)};e.forEach(m=>m.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>se.asap(l),c}},Gc=function*(e,a){let n=e.byteLength;if(n<a){yield e;return}let r=0,o;for(;r<n;)o=r+a,yield e.slice(r,o),r=o},jc=async function*(e,a){for await(const n of qc(e))yield*Gc(n,a)},qc=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const a=e.getReader();try{for(;;){const{done:n,value:r}=await a.read();if(n)break;yield r}}finally{await a.cancel()}},Ri=(e,a,n,r)=>{const o=jc(e,a);let i=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:m,value:u}=await o.next();if(m){l(),c.close();return}let f=u.byteLength;if(n){let d=i+=f;n(d)}c.enqueue(new Uint8Array(u))}catch(m){throw l(m),m}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Rn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Rn&&typeof ReadableStream=="function",Wc=Rn&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zi=(e,...a)=>{try{return!!e(...a)}catch{return!1}},Yc=Hi&&zi(()=>{let e=!1;const a=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a}),Ii=64*1024,Tr=Hi&&zi(()=>se.isReadableStream(new Response("").body)),Hn={stream:Tr&&(e=>e.body)};Rn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Hn[a]&&(Hn[a]=se.isFunction(e[a])?n=>n[a]():(n,r)=>{throw new Te(`Response type '${a}' is not supported`,Te.ERR_NOT_SUPPORT,r)})})})(new Response);const Uc=async e=>{if(e==null)return 0;if(se.isBlob(e))return e.size;if(se.isSpecCompliantForm(e))return(await new Request(gt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(se.isArrayBufferView(e)||se.isArrayBuffer(e))return e.byteLength;if(se.isURLSearchParams(e)&&(e=e+""),se.isString(e))return(await Wc(e)).byteLength},Xc=async(e,a)=>{const n=se.toFiniteNumber(e.getContentLength());return n??Uc(a)},Pr={http:gc,xhr:zc,fetch:Rn&&(async e=>{let{url:a,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:m,headers:u,withCredentials:f="same-origin",fetchOptions:d}=$i(e);m=m?(m+"").toLowerCase():"text";let p=Ic([o,i&&i.toAbortSignal()],s),h;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(c&&Yc&&n!=="get"&&n!=="head"&&(b=await Xc(u,r))!==0){let _=new Request(a,{method:"POST",body:r,duplex:"half"}),T;if(se.isFormData(r)&&(T=_.headers.get("content-type"))&&u.setContentType(T),_.body){const[N,S]=Pi(b,$n(Oi(c)));r=Ri(_.body,Ii,N,S)}}se.isString(f)||(f=f?"include":"omit");const v="credentials"in Request.prototype;h=new Request(a,{...d,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:v?f:void 0});let x=await fetch(h,d);const k=Tr&&(m==="stream"||m==="response");if(Tr&&(l||k&&g)){const _={};["status","statusText","headers"].forEach(B=>{_[B]=x[B]});const T=se.toFiniteNumber(x.headers.get("content-length")),[N,S]=l&&Pi(T,$n(Oi(l),!0))||[];x=new Response(Ri(x.body,Ii,N,()=>{S&&S(),g&&g()}),_)}m=m||"text";let A=await Hn[se.findKey(Hn,m)||"text"](x,e);return!k&&g&&g(),await new Promise((_,T)=>{Ti(_,T,{data:A,headers:Bt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:h})})}catch(v){throw g&&g(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,h),{cause:v.cause||v}):Te.from(v,v&&v.code,e,h)}})};se.forEach(Pr,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Gi=e=>`- ${e}`,Zc=e=>se.isFunction(e)||e===null||e===!1,ji={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:a}=e;let n,r;const o={};for(let i=0;i<a;i++){n=e[i];let s;if(r=n,!Zc(n)&&(r=Pr[(s=String(n)).toLowerCase()],r===void 0))throw new Te(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
4
4
|
`+i.map(Gi).join(`
|
|
5
5
|
`):" "+Gi(i[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Pr};function Or(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new La(null,e)}function qi(e){return Or(e),e.headers=Bt.from(e.headers),e.data=Dr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ji.getAdapter(e.adapter||sn.adapter)(e).then(function(r){return Or(e),r.data=Dr.call(e,e.transformResponse,r),r.headers=Bt.from(r.headers),r},function(r){return Di(r)||(Or(e),r&&r.response&&(r.response.data=Dr.call(e,e.transformResponse,r.response),r.response.headers=Bt.from(r.response.headers))),Promise.reject(r)})}const Wi="1.10.0",zn={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{zn[e]=function(r){return typeof r===e||"a"+(a<1?"n ":" ")+e}});const Yi={};zn.transitional=function(a,n,r){function o(i,s){return"[Axios v"+Wi+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(a===!1)throw new Te(o(s," has been removed"+(n?" in "+n:"")),Te.ERR_DEPRECATED);return n&&!Yi[s]&&(Yi[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),a?a(i,s,l):!0}},zn.spelling=function(a){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${a}`),!0)};function Qc(e,a,n){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=a[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new Te("option "+i+" must be "+c,Te.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Te("Unknown option "+i,Te.ERR_BAD_OPTION)}}const In={assertOptions:Qc,validators:zn},Gt=In.validators;let Sa=class{constructor(a){this.defaults=a||{},this.interceptors={request:new Ai,response:new Ai}}async request(a,n){try{return await this._request(a,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
-
`+i):r.stack=i}catch{}}throw r}}_request(a,n){typeof a=="string"?(n=n||{},n.url=a):n=a||{},n=Ca(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&In.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),o!=null&&(se.isFunction(o)?n.paramsSerializer={serialize:o}:In.assertOptions(o,{encode:Gt.function,serialize:Gt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),In.assertOptions(n,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&se.merge(i.common,i[n.method]);i&&se.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Bt.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const m=[];this.interceptors.response.forEach(function(g){m.push(g.fulfilled,g.rejected)});let u,f=0,d;if(!c){const h=[qi.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,m),d=h.length,u=Promise.resolve(n);f<d;)u=u.then(h[f++],h[f++]);return u}d=l.length;let p=n;for(f=0;f<d;){const h=l[f++],g=l[f++];try{p=h(p)}catch(k){g.call(this,k);break}}try{u=qi.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,d=m.length;f<d;)u=u.then(m[f++],m[f++]);return u}getUri(a){a=Ca(this.defaults,a);const n=Fi(a.baseURL,a.url,a.allowAbsoluteUrls);return Bi(n,a.params,a.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(a){Sa.prototype[a]=function(n,r){return this.request(Ca(r||{},{method:a,url:n,data:(r||{}).data}))}}),se.forEach(["post","put","patch"],function(a){function n(r){return function(i,s,l){return this.request(Ca(l||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Sa.prototype[a]=n(),Sa.prototype[a+"Form"]=n(!0)});let Kc=class i0{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},a(function(i,s,l){r.reason||(r.reason=new La(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const n=this._listeners.indexOf(a);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const a=new AbortController,n=r=>{a.abort(r)};return this.subscribe(n),a.signal.unsubscribe=()=>this.unsubscribe(n),a.signal}static source(){let a;return{token:new i0(function(o){a=o}),cancel:a}}};function Jc(e){return function(n){return e.apply(null,n)}}function e2(e){return se.isObject(e)&&e.isAxiosError===!0}const Fr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fr).forEach(([e,a])=>{Fr[a]=e});function Ui(e){const a=new Sa(e),n=fi(Sa.prototype.request,a);return se.extend(n,Sa.prototype,a,{allOwnKeys:!0}),se.extend(n,a,null,{allOwnKeys:!0}),n.create=function(o){return Ui(Ca(e,o))},n}const Qe=Ui(sn);Qe.Axios=Sa,Qe.CanceledError=La,Qe.CancelToken=Kc,Qe.isCancel=Di,Qe.VERSION=Wi,Qe.toFormData=Fn,Qe.AxiosError=Te,Qe.Cancel=Qe.CanceledError,Qe.all=function(a){return Promise.all(a)},Qe.spread=Jc,Qe.isAxiosError=e2,Qe.mergeConfig=Ca,Qe.AxiosHeaders=Bt,Qe.formToJSON=e=>_i(se.isHTMLForm(e)?new FormData(e):e),Qe.getAdapter=ji.getAdapter,Qe.HttpStatusCode=Fr,Qe.default=Qe;const{Axios:Wv,AxiosError:Yv,CanceledError:Uv,isCancel:Xv,CancelToken:Zv,VERSION:Qv,all:Kv,Cancel:Jv,isAxiosError:eE,spread:tE,toFormData:aE,AxiosHeaders:nE,HttpStatusCode:rE,formToJSON:oE,getAdapter:iE,mergeConfig:sE}=Qe,Xi=It.defineStore("auth",{state:()=>({jwtToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQwMDY5MzIyLCJpYXQiOjE3Mzk5ODI5MjIsImp0aSI6IjcyZjcxYjgzY2I5YTQ1MWFhMmYyODQ0OTlmZGFkZWIxIiwidXNlcl9pZCI6ImU4YTAwNWZhLTk0YjUtNDRiOC05ZDkwLWZjNzJmYzI0NjRhOSJ9.IOzqjqDpRRfqsvqhzEsGDLhQOKWapjzFycNG3Qv8k0U"}),actions:{setToken(e){this.jwtToken=e},clearToken(){this.jwtToken=null}},getters:{getToken:e=>e.jwtToken}}),ra=Qe.create({baseURL:"https://back.dev-smclick.com.br/"});ra.interceptors.request.use(e=>{const n=Xi().getToken;return n&&(e.headers.Authorization=`Bearer ${n}`),e},e=>Promise.reject(e));const t2="v1/api/attendances/attendant/",a2="v1/api/attendances/department/",Lr="v1/api/attendances/internal_chat/",n2="v1/api/instances/instance/",$r=It.defineStore("instance",{state:()=>({instances:[],count:null,loaded:!1}),actions:{async fetchInstances(e=""){try{let a=`${n2}`;const n=await ra.get(a);this.instances=n.data,await Promise.all(this.instances.map(async r=>{r.isLoading=!0;try{const o=r.last_instance_status;o==="DISCONNECTED"||o==="UNDEFINED"?r.status=!1:r.status=!0}catch(o){console.log(o),r.status="Offline"}r.isLoading=!1})),this.count=this.instances.length,this.loaded=!0}catch(a){console.log("Erro ao buscar instâncias:",a),this.loaded=!0}},removeInstance(e){this.instances=this.instances.filter(a=>a.id!==e),this.count=this.instances.length},addInstance(e){const a=this.instances.findIndex(n=>n.id===e.id);a!==-1?this.instances[a]=e:this.instances.push(e),this.count=this.instances.length}}}),r2={class:"w-full relative text-current"},o2={class:"flex cursor-pointer justify-between items-center"},i2={key:0},s2={key:0},l2={key:1,class:"flex items-center gap-2"},c2={class:"flex gap-3 items-center flex-shrink-0"},d2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},u2={key:1,class:"relative"},f2={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"w-5 h-5 absolute -bottom-2 -right-2 rounded-full bi bi-meta",viewBox:"0 0 16 16"},m2={class:"my-auto text-center mx-auto group-hover:inline-block"},h2={key:1,class:"flex justify-center"},p2={class:"w-full"},g2={key:1,class:"flex items-center gap-2 justify-center"},y2={class:"flex px-4 items-center gap-2"},k2={key:0,class:"absolute top-[48px] w-full z-20 text-sm"},b2={class:"gap-2 rounded-b-lg flex overflow-y-auto p-2 shadow shadow-black dark:shadow-gray-400 bg-base-300 max-h-[200px] flex-col"},x2={class:"select-none cursor-pointer w-full"},w2=["onClick","disabled"],v2={class:"flex w-full items-center pl-2 gap-3"},E2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},C2={key:1,class:"relative"},S2={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"w-4 h-4 absolute flex-shrink-0 -bottom-2 -right-2 rounded-full bi bi-meta",viewBox:"0 0 16 16"},M2={key:0,class:"w-6 h-6 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},B2={class:"w-full text-center"},A2={class:"my-auto text-center mx-auto group-hover:inline-block"},V2={key:1,class:"flex justify-center"},_2={class:"flex min-w-[50px] text-sm text-center items-center my-auto flex-shrink-0 px-1 justify-center"},N2={key:1,class:"p-4"},Zi={__name:"index",props:{modelValue:{type:Object,default:null},type:{type:String},webhooks:{type:Boolean,default:void 0}},emits:["update:modelValue","function","component-mounted"],setup(e,{emit:a}){const n=$r(),r=t.ref(!1),o=t.ref(null),i=e,s=a;function l(c){o.value=c,s("function",c)}return t.watch(()=>i.modelValue,c=>{o.value=c},{immediate:!0}),t.watch(o,c=>{s("update:modelValue",c)}),t.onMounted(async()=>{if(o.value){const c=n.instances.find(m=>m.id===o.value.id);c&&(o.value.status=c.status)}s("component-mounted")}),(c,m)=>{const u=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("main",r2,[t.createElementVNode("div",{class:t.normalizeClass([{"rounded-b-none":r.value},"rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])},[t.createElementVNode("div",o2,[t.createElementVNode("p",{onClick:m[0]||(m[0]=f=>r.value=!r.value),class:"w-full p-3 px-4 select-none"},[t.unref(n).loaded?(t.openBlock(),t.createElementBlock("div",i2,[o.value?(t.openBlock(),t.createElementBlock("span",l2,[t.createElementVNode("header",c2,[o.value.type==="whatsapp-qrcode"?(t.openBlock(),t.createElementBlock("svg",d2,m[3]||(m[3]=[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)]))):o.value.type==="whatsapp-api-official"?(t.openBlock(),t.createElementBlock("div",u2,[m[5]||(m[5]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(t.openBlock(),t.createElementBlock("svg",f2,m[4]||(m[4]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])))])):t.createCommentVNode("",!0),o.value&&o.value.status!==void 0?(t.openBlock(),t.createBlock(u,{key:2,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("main",{class:t.normalizeClass(["p-1 rounded text-sm px-3",{"bg-red-500":o.value.status===!1,"bg-green-500":o.value.status===!0,"bg-purple-500":o.value.status==="Offline"}])},[t.createElementVNode("div",m2,t.toDisplayString(o.value.status===!0?"Conectada":o.value.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:t.withCtx(()=>[o.value.isLoading?(t.openBlock(),t.createElementBlock("div",h2,m[6]||(m[6]=[t.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([{"bg-red-500":o.value.status===!1,"bg-green-500":o.value.status===!0,"bg-purple-500":o.value.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("div",p2,t.toDisplayString(o.value.name),1)])):(t.openBlock(),t.createElementBlock("span",s2,t.toDisplayString(t.unref(n).instances?t.unref(n).instances.length:"Sem")+" Instâncias disponíveis",1))])):(t.openBlock(),t.createElementBlock("div",g2,m[7]||(m[7]=[t.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),t.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),t.createTextVNode("Inicializando instâncias...")])))]),t.createElementVNode("footer",y2,[t.createElementVNode("button",{onClick:m[1]||(m[1]=f=>(o.value=null,r.value=!1))},m[8]||(m[8]=[t.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])),t.createElementVNode("button",{onClick:m[2]||(m[2]=f=>r.value=!r.value)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([{"rotate-180":r.value},"w-4 h-4 ease-out transition"]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},m[9]||(m[9]=[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))])])])],2),r.value?(t.openBlock(),t.createElementBlock("nav",k2,[t.createElementVNode("ul",b2,[t.unref(n).instances.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(n).instances,(f,d)=>(t.openBlock(),t.createElementBlock("li",x2,[t.createElementVNode("button",{class:t.normalizeClass([o.value&&o.value.id===f.id?"bg-base-100":"bg-base-200 hover:bg-base-100","flex rounded-md justify-between items-center p-2 px-1 w-full"]),onClick:p=>(o.value=f,r.value=!1,l(f)),disabled:o.value&&o.value.id===f.id||e.type&&f.type!==e.type||e.webhooks!==void 0&&e.webhooks!==f.webhooks},[t.createElementVNode("div",v2,[f.type==="whatsapp-qrcode"?(t.openBlock(),t.createElementBlock("svg",E2,m[10]||(m[10]=[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)]))):f.type==="whatsapp-api-official"?(t.openBlock(),t.createElementBlock("div",C2,[m[12]||(m[12]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(t.openBlock(),t.createElementBlock("svg",S2,m[11]||(m[11]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])))])):t.createCommentVNode("",!0),t.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(e.type&&f.type!==e.type?"Não é possível utilizar esse tipo de Instância neste recurso":e.webhooks===!0?"Essa instância está com o Atendimento desabilitado":"Essa aplicação é somente para instâncias sem atendimento habilitado."),1)]),default:t.withCtx(()=>[e.type&&f.type!==e.type||e.webhooks!==void 0&&e.webhooks!==f.webhooks?(t.openBlock(),t.createElementBlock("svg",M2,m[13]||(m[13]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1)]))):t.createCommentVNode("",!0)]),_:2},1024),t.createElementVNode("p",B2,t.toDisplayString(f.name),1),t.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("main",{class:t.normalizeClass(["p-1 rounded px-3",{"bg-red-500":f.status===!1,"bg-green-500":f.status===!0,"bg-purple-500":f.status==="Offline"}])},[t.createElementVNode("div",A2,t.toDisplayString(f.status===!0?"Conectada":f.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:t.withCtx(()=>[f.isLoading?(t.openBlock(),t.createElementBlock("div",V2,m[14]||(m[14]=[t.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([{"bg-red-500":f.status===!1,"bg-green-500":f.status===!0,"bg-purple-500":f.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:2},1024)]),t.createElementVNode("div",_2,[f.telephone?(t.openBlock(),t.createBlock(u,{key:0,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(f.telephone?`${f.telephone}`:""),1)]),default:t.withCtx(()=>[m[15]||(m[15]=t.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1))]),_:2,__:[15]},1024)):t.createCommentVNode("",!0)])],10,w2)]))),256)):(t.openBlock(),t.createElementBlock("div",N2," Sem instâncias disponíveis"))])])):t.createCommentVNode("",!0)])}}};function Ce(e){const a=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&a==="[object Date]"?new e.constructor(+e):typeof e=="number"||a==="[object Number]"||typeof e=="string"||a==="[object String]"?new Date(e):new Date(NaN)}function Re(e,a){return e instanceof Date?new e.constructor(a):new Date(a)}function Ot(e,a){const n=Ce(e);return isNaN(a)?Re(e,NaN):(a&&n.setDate(n.getDate()+a),n)}function Ft(e,a){const n=Ce(e);if(isNaN(a))return Re(e,NaN);if(!a)return n;const r=n.getDate(),o=Re(e,n.getTime());o.setMonth(n.getMonth()+a+1,0);const i=o.getDate();return r>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function Qi(e,a){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:s=0,minutes:l=0,seconds:c=0}=a,m=Ce(e),u=r||n?Ft(m,r+n*12):m,f=i||o?Ot(u,i+o*7):u,d=l+s*60,h=(c+d*60)*1e3;return Re(e,f.getTime()+h)}function D2(e,a){const n=+Ce(e);return Re(e,n+a)}const Ki=6048e5,T2=864e5,P2=6e4,Ji=36e5,O2=1e3;function F2(e,a){return D2(e,a*Ji)}let L2={};function Ma(){return L2}function Lt(e,a){var l,c,m,u;const n=Ma(),r=(a==null?void 0:a.weekStartsOn)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,o=Ce(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $a(e){return Lt(e,{weekStartsOn:1})}function es(e){const a=Ce(e),n=a.getFullYear(),r=Re(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=$a(r),i=Re(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=$a(i);return a.getTime()>=o.getTime()?n+1:a.getTime()>=s.getTime()?n:n-1}function ts(e){const a=Ce(e);return a.setHours(0,0,0,0),a}function Gn(e){const a=Ce(e),n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),+e-+n}function as(e,a){const n=ts(e),r=ts(a),o=+n-Gn(n),i=+r-Gn(r);return Math.round((o-i)/T2)}function $2(e){const a=es(e),n=Re(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),$a(n)}function R2(e,a){const n=a*3;return Ft(e,n)}function Rr(e,a){return Ft(e,a*12)}function ns(e,a){const n=Ce(e),r=Ce(a),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function rs(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function cn(e){if(!rs(e)&&typeof e!="number")return!1;const a=Ce(e);return!isNaN(Number(a))}function os(e){const a=Ce(e);return Math.trunc(a.getMonth()/3)+1}function H2(e,a){const n=Ce(e),r=Ce(a);return n.getFullYear()-r.getFullYear()}function z2(e,a){const n=Ce(e),r=Ce(a),o=ns(n,r),i=Math.abs(H2(n,r));n.setFullYear(1584),r.setFullYear(1584);const s=ns(n,r)===-o,l=o*(i-+s);return l===0?0:l}function is(e,a){const n=Ce(e.start),r=Ce(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(Ce(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function Ba(e){const a=Ce(e),n=a.getMonth(),r=n-n%3;return a.setMonth(r,1),a.setHours(0,0,0,0),a}function I2(e,a){const n=Ce(e.start),r=Ce(e.end);let o=+n>+r;const i=o?+Ba(n):+Ba(r);let s=Ba(o?r:n),l=1;const c=[];for(;+s<=i;)c.push(Ce(s)),s=R2(s,l);return o?c.reverse():c}function G2(e){const a=Ce(e);return a.setDate(1),a.setHours(0,0,0,0),a}function ss(e){const a=Ce(e),n=a.getFullYear();return a.setFullYear(n+1,0,0),a.setHours(23,59,59,999),a}function dn(e){const a=Ce(e),n=Re(e,0);return n.setFullYear(a.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ls(e,a){var l,c,m,u;const n=Ma(),r=(a==null?void 0:a.weekStartsOn)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,o=Ce(e),i=o.getDay(),s=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function cs(e){const a=Ce(e),n=a.getMonth(),r=n-n%3+3;return a.setMonth(r,0),a.setHours(23,59,59,999),a}const j2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},q2=(e,a,n)=>{let r;const o=j2[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hr(e){return(a={})=>{const n=a.width?String(a.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const W2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},U2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},X2={date:Hr({formats:W2,defaultWidth:"full"}),time:Hr({formats:Y2,defaultWidth:"full"}),dateTime:Hr({formats:U2,defaultWidth:"full"})},Z2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q2=(e,a,n,r)=>Z2[e];function un(e){return(a,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(a):a;return o[i]}}const K2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ed={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},td={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ad={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rd={ordinalNumber:(e,a)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:un({values:K2,defaultWidth:"wide"}),quarter:un({values:J2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:un({values:ed,defaultWidth:"wide"}),day:un({values:td,defaultWidth:"wide"}),dayPeriod:un({values:ad,defaultWidth:"wide",formattingValues:nd,defaultFormattingWidth:"wide"})};function fn(e){return(a,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=a.match(o);if(!i)return null;const s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?id(l,f=>f.test(s)):od(l,f=>f.test(s));let m;m=e.valueCallback?e.valueCallback(c):c,m=n.valueCallback?n.valueCallback(m):m;const u=a.slice(s.length);return{value:m,rest:u}}}function od(e,a){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&a(e[n]))return n}function id(e,a){for(let n=0;n<e.length;n++)if(a(e[n]))return n}function sd(e){return(a,n={})=>{const r=a.match(e.matchPattern);if(!r)return null;const o=r[0],i=a.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=a.slice(o.length);return{value:s,rest:l}}}const ld=/^(\d+)(th|st|nd|rd)?/i,cd=/\d+/i,dd={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ud={any:[/^b/i,/^(a|c)/i]},fd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},md={any:[/1/i,/2/i,/3/i,/4/i]},hd={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pd={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kd={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xd={ordinalNumber:sd({matchPattern:ld,parsePattern:cd,valueCallback:e=>parseInt(e,10)}),era:fn({matchPatterns:dd,defaultMatchWidth:"wide",parsePatterns:ud,defaultParseWidth:"any"}),quarter:fn({matchPatterns:fd,defaultMatchWidth:"wide",parsePatterns:md,defaultParseWidth:"any",valueCallback:e=>e+1}),month:fn({matchPatterns:hd,defaultMatchWidth:"wide",parsePatterns:pd,defaultParseWidth:"any"}),day:fn({matchPatterns:gd,defaultMatchWidth:"wide",parsePatterns:yd,defaultParseWidth:"any"}),dayPeriod:fn({matchPatterns:kd,defaultMatchWidth:"any",parsePatterns:bd,defaultParseWidth:"any"})},ds={code:"en-US",formatDistance:q2,formatLong:X2,formatRelative:Q2,localize:rd,match:xd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wd(e){const a=Ce(e);return as(a,dn(a))+1}function zr(e){const a=Ce(e),n=+$a(a)-+$2(a);return Math.round(n/Ki)+1}function Ir(e,a){var u,f,d,p;const n=Ce(e),r=n.getFullYear(),o=Ma(),i=(a==null?void 0:a.firstWeekContainsDate)??((f=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(d=o.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=Re(e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=Lt(s,a),c=Re(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const m=Lt(c,a);return n.getTime()>=l.getTime()?r+1:n.getTime()>=m.getTime()?r:r-1}function vd(e,a){var l,c,m,u;const n=Ma(),r=(a==null?void 0:a.firstWeekContainsDate)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.firstWeekContainsDate)??1,o=Ir(e,a),i=Re(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Lt(i,a)}function Gr(e,a){const n=Ce(e),r=+Lt(n,a)-+vd(n,a);return Math.round(r/Ki)+1}function Ie(e,a){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(a,"0");return n+r}const oa={y(e,a){const n=e.getFullYear(),r=n>0?n:1-n;return Ie(a==="yy"?r%100:r,a.length)},M(e,a){const n=e.getMonth();return a==="M"?String(n+1):Ie(n+1,2)},d(e,a){return Ie(e.getDate(),a.length)},a(e,a){const n=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,a){return Ie(e.getHours()%12||12,a.length)},H(e,a){return Ie(e.getHours(),a.length)},m(e,a){return Ie(e.getMinutes(),a.length)},s(e,a){return Ie(e.getSeconds(),a.length)},S(e,a){const n=a.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ie(o,a.length)}},Ra={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},us={G:function(e,a,n){const r=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return oa.y(e,a)},Y:function(e,a,n,r){const o=Ir(e,r),i=o>0?o:1-o;if(a==="YY"){const s=i%100;return Ie(s,2)}return a==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ie(i,a.length)},R:function(e,a){const n=es(e);return Ie(n,a.length)},u:function(e,a){const n=e.getFullYear();return Ie(n,a.length)},Q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return Ie(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return Ie(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){const r=e.getMonth();switch(a){case"M":case"MM":return oa.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){const r=e.getMonth();switch(a){case"L":return String(r+1);case"LL":return Ie(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){const o=Gr(e,r);return a==="wo"?n.ordinalNumber(o,{unit:"week"}):Ie(o,a.length)},I:function(e,a,n){const r=zr(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):Ie(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):oa.d(e,a)},D:function(e,a,n){const r=wd(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ie(r,a.length)},E:function(e,a,n){const r=e.getDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(i);case"ee":return Ie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(i);case"cc":return Ie(i,a.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,n){const r=e.getDay(),o=r===0?7:r;switch(a){case"i":return String(o);case"ii":return Ie(o,a.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){const o=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,n){const r=e.getHours();let o;switch(r===12?o=Ra.noon:r===0?o=Ra.midnight:o=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,n){const r=e.getHours();let o;switch(r>=17?o=Ra.evening:r>=12?o=Ra.afternoon:r>=4?o=Ra.morning:o=Ra.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return oa.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):oa.H(e,a)},K:function(e,a,n){const r=e.getHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ie(r,a.length)},k:function(e,a,n){let r=e.getHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ie(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):oa.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):oa.s(e,a)},S:function(e,a){return oa.S(e,a)},X:function(e,a,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(a){case"X":return ms(r);case"XXXX":case"XX":return Aa(r);case"XXXXX":case"XXX":default:return Aa(r,":")}},x:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"x":return ms(r);case"xxxx":case"xx":return Aa(r);case"xxxxx":case"xxx":default:return Aa(r,":")}},O:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+fs(r,":");case"OOOO":default:return"GMT"+Aa(r,":")}},z:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+fs(r,":");case"zzzz":default:return"GMT"+Aa(r,":")}},t:function(e,a,n){const r=Math.trunc(e.getTime()/1e3);return Ie(r,a.length)},T:function(e,a,n){const r=e.getTime();return Ie(r,a.length)}};function fs(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+a+Ie(i,2)}function ms(e,a){return e%60===0?(e>0?"-":"+")+Ie(Math.abs(e)/60,2):Aa(e,a)}function Aa(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ie(Math.trunc(r/60),2),i=Ie(r%60,2);return n+o+a+i}const hs=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},ps=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},jr={p:ps,P:(e,a)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return hs(e,a);let i;switch(r){case"P":i=a.dateTime({width:"short"});break;case"PP":i=a.dateTime({width:"medium"});break;case"PPP":i=a.dateTime({width:"long"});break;case"PPPP":default:i=a.dateTime({width:"full"});break}return i.replace("{{date}}",hs(r,a)).replace("{{time}}",ps(o,a))}},Ed=/^D+$/,Cd=/^Y+$/,Sd=["D","DD","YY","YYYY"];function gs(e){return Ed.test(e)}function ys(e){return Cd.test(e)}function qr(e,a,n){const r=Md(e,a,n);if(console.warn(r),Sd.includes(e))throw new RangeError(r)}function Md(e,a,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Bd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ad=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vd=/^'([^]*?)'?$/,_d=/''/g,Nd=/[a-zA-Z]/;function jt(e,a,n){var u,f,d,p,h,g,k,v;const r=Ma(),o=(n==null?void 0:n.locale)??r.locale??ds,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((v=(k=r.locale)==null?void 0:k.options)==null?void 0:v.weekStartsOn)??0,l=Ce(e);if(!cn(l))throw new RangeError("Invalid time value");let c=a.match(Ad).map(x=>{const b=x[0];if(b==="p"||b==="P"){const A=jr[b];return A(x,o.formatLong)}return x}).join("").match(Bd).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const b=x[0];if(b==="'")return{isToken:!1,value:Dd(x)};if(us[b])return{isToken:!0,value:x};if(b.match(Nd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const m={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(x=>{if(!x.isToken)return x.value;const b=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ys(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&gs(b))&&qr(b,a,String(e));const A=us[b[0]];return A(l,b,o.localize,m)}).join("")}function Dd(e){const a=e.match(Vd);return a?a[1].replace(_d,"'"):e}function Td(e){return Ce(e).getDay()}function Pd(e){const a=Ce(e),n=a.getFullYear(),r=a.getMonth(),o=Re(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Od(){return Object.assign({},Ma())}function Qt(e){return Ce(e).getHours()}function Fd(e){let n=Ce(e).getDay();return n===0&&(n=7),n}function ia(e){return Ce(e).getMinutes()}function Oe(e){return Ce(e).getMonth()}function Ha(e){return Ce(e).getSeconds()}function Ve(e){return Ce(e).getFullYear()}function za(e,a){const n=Ce(e),r=Ce(a);return n.getTime()>r.getTime()}function mn(e,a){const n=Ce(e),r=Ce(a);return+n<+r}function Ia(e,a){const n=Ce(e),r=Ce(a);return+n==+r}function Ld(e,a){const n=a instanceof Date?Re(a,0):new a(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const $d=10;class ks{constructor(){ve(this,"subPriority",0)}validate(a,n){return!0}}class Rd extends ks{constructor(a,n,r,o,i){super(),this.value=a,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(a,n){return this.validateValue(a,this.value,n)}set(a,n,r){return this.setValue(a,n,this.value,r)}}class Hd extends ks{constructor(){super(...arguments);ve(this,"priority",$d);ve(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Re(n,Ld(n,Date))}}class He{run(a,n,r,o){const i=this.parse(a,n,r,o);return i?{setter:new Rd(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(a,n,r){return!0}}class zd extends He{constructor(){super(...arguments);ve(this,"priority",140);ve(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}set(n,r,o){return r.era=o,n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}const rt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},qt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ot(e,a){return e&&{value:a(e.value),rest:e.rest}}function Ke(e,a){const n=a.match(e);return n?{value:parseInt(n[0],10),rest:a.slice(n[0].length)}:null}function Wt(e,a){const n=a.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:a.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*Ji+i*P2+s*O2),rest:a.slice(n[0].length)}}function bs(e){return Ke(rt.anyDigitsSigned,e)}function et(e,a){switch(e){case 1:return Ke(rt.singleDigit,a);case 2:return Ke(rt.twoDigits,a);case 3:return Ke(rt.threeDigits,a);case 4:return Ke(rt.fourDigits,a);default:return Ke(new RegExp("^\\d{1,"+e+"}"),a)}}function jn(e,a){switch(e){case 1:return Ke(rt.singleDigitSigned,a);case 2:return Ke(rt.twoDigitsSigned,a);case 3:return Ke(rt.threeDigitsSigned,a);case 4:return Ke(rt.fourDigitsSigned,a);default:return Ke(new RegExp("^-?\\d{1,"+e+"}"),a)}}function Wr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function xs(e,a){const n=a>0,r=n?a:1-a;let o;if(r<=50)o=e||100;else{const i=r+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function ws(e){return e%400===0||e%4===0&&e%100!==0}class Id extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return ot(et(4,n),i);case"yo":return ot(o.ordinalNumber(n,{unit:"year"}),i);default:return ot(et(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o){const i=n.getFullYear();if(o.isTwoDigitYear){const l=xs(o.year,i);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class Gd extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return ot(et(4,n),i);case"Yo":return ot(o.ordinalNumber(n,{unit:"year"}),i);default:return ot(et(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o,i){const s=Ir(n,i);if(o.isTwoDigitYear){const c=xs(o.year,s);return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),Lt(n,i)}const l=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(l,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),Lt(n,i)}}class jd extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return jn(r==="R"?4:r.length,n)}set(n,r,o){const i=Re(n,0);return i.setFullYear(o,0,4),i.setHours(0,0,0,0),$a(i)}}class qd extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return jn(r==="u"?4:r.length,n)}set(n,r,o){return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class Wd extends He{constructor(){super(...arguments);ve(this,"priority",120);ve(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"Q":case"QQ":return et(r.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class Yd extends He{constructor(){super(...arguments);ve(this,"priority",120);ve(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"q":case"qq":return et(r.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class Ud extends He{constructor(){super(...arguments);ve(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ve(this,"priority",110)}parse(n,r,o){const i=s=>s-1;switch(r){case"M":return ot(Ke(rt.month,n),i);case"MM":return ot(et(2,n),i);case"Mo":return ot(o.ordinalNumber(n,{unit:"month"}),i);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}class Xd extends He{constructor(){super(...arguments);ve(this,"priority",110);ve(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,o){const i=s=>s-1;switch(r){case"L":return ot(Ke(rt.month,n),i);case"LL":return ot(et(2,n),i);case"Lo":return ot(o.ordinalNumber(n,{unit:"month"}),i);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}function Zd(e,a,n){const r=Ce(e),o=Gr(r,n)-a;return r.setDate(r.getDate()-o*7),r}class Qd extends He{constructor(){super(...arguments);ve(this,"priority",100);ve(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,o){switch(r){case"w":return Ke(rt.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o,i){return Lt(Zd(n,o,i),i)}}function Kd(e,a){const n=Ce(e),r=zr(n)-a;return n.setDate(n.getDate()-r*7),n}class Jd extends He{constructor(){super(...arguments);ve(this,"priority",100);ve(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,o){switch(r){case"I":return Ke(rt.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o){return $a(Kd(n,o))}}const e3=[31,28,31,30,31,30,31,31,30,31,30,31],t3=[31,29,31,30,31,30,31,31,30,31,30,31];class a3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"subPriority",1);ve(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"d":return Ke(rt.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return et(r.length,n)}}validate(n,r){const o=n.getFullYear(),i=ws(o),s=n.getMonth();return i?r>=1&&r<=t3[s]:r>=1&&r<=e3[s]}set(n,r,o){return n.setDate(o),n.setHours(0,0,0,0),n}}class n3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"subpriority",1);ve(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,o){switch(r){case"D":case"DD":return Ke(rt.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return et(r.length,n)}}validate(n,r){const o=n.getFullYear();return ws(o)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,o){return n.setMonth(0,o),n.setHours(0,0,0,0),n}}function Yr(e,a,n){var f,d,p,h;const r=Ma(),o=(n==null?void 0:n.weekStartsOn)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,i=Ce(e),s=i.getDay(),c=(a%7+7)%7,m=7-o,u=a<0||a>6?a-(s+m)%7:(c+m)%7-(s+m)%7;return Ot(i,u)}class r3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=Yr(n,o,i),n.setHours(0,0,0,0),n}}class o3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return ot(et(r.length,n),s);case"eo":return ot(o.ordinalNumber(n,{unit:"day"}),s);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=Yr(n,o,i),n.setHours(0,0,0,0),n}}class i3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return ot(et(r.length,n),s);case"co":return ot(o.ordinalNumber(n,{unit:"day"}),s);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=Yr(n,o,i),n.setHours(0,0,0,0),n}}function s3(e,a){const n=Ce(e),r=Fd(n),o=a-r;return Ot(n,o)}class l3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,o){const i=s=>s===0?7:s;switch(r){case"i":case"ii":return et(r.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return ot(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return ot(o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return ot(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return ot(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,o){return n=s3(n,o),n.setHours(0,0,0,0),n}}class c3 extends He{constructor(){super(...arguments);ve(this,"priority",80);ve(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(Wr(o),0,0,0),n}}class d3 extends He{constructor(){super(...arguments);ve(this,"priority",80);ve(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(Wr(o),0,0,0),n}}class u3 extends He{constructor(){super(...arguments);ve(this,"priority",80);ve(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(Wr(o),0,0,0),n}}class f3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,o){switch(r){case"h":return Ke(rt.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,o){const i=n.getHours()>=12;return i&&o<12?n.setHours(o+12,0,0,0):!i&&o===12?n.setHours(0,0,0,0):n.setHours(o,0,0,0),n}}class m3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,o){switch(r){case"H":return Ke(rt.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,o){return n.setHours(o,0,0,0),n}}class h3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,o){switch(r){case"K":return Ke(rt.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.getHours()>=12&&o<12?n.setHours(o+12,0,0,0):n.setHours(o,0,0,0),n}}class p3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,o){switch(r){case"k":return Ke(rt.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,o){const i=o<=24?o%24:o;return n.setHours(i,0,0,0),n}}class g3 extends He{constructor(){super(...arguments);ve(this,"priority",60);ve(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"m":return Ke(rt.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setMinutes(o,0,0),n}}class y3 extends He{constructor(){super(...arguments);ve(this,"priority",50);ve(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"s":return Ke(rt.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setSeconds(o,0),n}}class k3 extends He{constructor(){super(...arguments);ve(this,"priority",30);ve(this,"incompatibleTokens",["t","T"])}parse(n,r){const o=i=>Math.trunc(i*Math.pow(10,-r.length+3));return ot(et(r.length,n),o)}set(n,r,o){return n.setMilliseconds(o),n}}class b3 extends He{constructor(){super(...arguments);ve(this,"priority",10);ve(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Wt(qt.basicOptionalMinutes,n);case"XX":return Wt(qt.basic,n);case"XXXX":return Wt(qt.basicOptionalSeconds,n);case"XXXXX":return Wt(qt.extendedOptionalSeconds,n);case"XXX":default:return Wt(qt.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Re(n,n.getTime()-Gn(n)-o)}}class x3 extends He{constructor(){super(...arguments);ve(this,"priority",10);ve(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Wt(qt.basicOptionalMinutes,n);case"xx":return Wt(qt.basic,n);case"xxxx":return Wt(qt.basicOptionalSeconds,n);case"xxxxx":return Wt(qt.extendedOptionalSeconds,n);case"xxx":default:return Wt(qt.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Re(n,n.getTime()-Gn(n)-o)}}class w3 extends He{constructor(){super(...arguments);ve(this,"priority",40);ve(this,"incompatibleTokens","*")}parse(n){return bs(n)}set(n,r,o){return[Re(n,o*1e3),{timestampIsSet:!0}]}}class v3 extends He{constructor(){super(...arguments);ve(this,"priority",20);ve(this,"incompatibleTokens","*")}parse(n){return bs(n)}set(n,r,o){return[Re(n,o),{timestampIsSet:!0}]}}const E3={G:new zd,y:new Id,Y:new Gd,R:new jd,u:new qd,Q:new Wd,q:new Yd,M:new Ud,L:new Xd,w:new Qd,I:new Jd,d:new a3,D:new n3,E:new r3,e:new o3,c:new i3,i:new l3,a:new c3,b:new d3,B:new u3,h:new f3,H:new m3,K:new h3,k:new p3,m:new g3,s:new y3,S:new k3,X:new b3,x:new x3,t:new w3,T:new v3},C3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M3=/^'([^]*?)'?$/,B3=/''/g,A3=/\S/,V3=/[a-zA-Z]/;function Ur(e,a,n,r){var g,k,v,x,b,A,_,O;const o=Od(),i=(r==null?void 0:r.locale)??o.locale??ds,s=(r==null?void 0:r.firstWeekContainsDate)??((k=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:k.firstWeekContainsDate)??o.firstWeekContainsDate??((x=(v=o.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((A=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:A.weekStartsOn)??o.weekStartsOn??((O=(_=o.locale)==null?void 0:_.options)==null?void 0:O.weekStartsOn)??0;if(a==="")return e===""?Ce(n):Re(n,NaN);const c={firstWeekContainsDate:s,weekStartsOn:l,locale:i},m=[new Hd],u=a.match(S3).map(N=>{const S=N[0];if(S in jr){const B=jr[S];return B(N,i.formatLong)}return N}).join("").match(C3),f=[];for(let N of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&ys(N)&&qr(N,a,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&gs(N)&&qr(N,a,e);const S=N[0],B=E3[S];if(B){const{incompatibleTokens:G}=B;if(Array.isArray(G)){const Q=f.find(U=>G.includes(U.token)||U.token===S);if(Q)throw new RangeError(`The format string mustn't contain \`${Q.fullToken}\` and \`${N}\` at the same time`)}else if(B.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${N}\` and any other token at the same time`);f.push({token:S,fullToken:N});const T=B.run(e,N,i.match,c);if(!T)return Re(n,NaN);m.push(T.setter),e=T.rest}else{if(S.match(V3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(N==="''"?N="'":S==="'"&&(N=_3(N)),e.indexOf(N)===0)e=e.slice(N.length);else return Re(n,NaN)}}if(e.length>0&&A3.test(e))return Re(n,NaN);const d=m.map(N=>N.priority).sort((N,S)=>S-N).filter((N,S,B)=>B.indexOf(N)===S).map(N=>m.filter(S=>S.priority===N).sort((S,B)=>B.subPriority-S.subPriority)).map(N=>N[0]);let p=Ce(n);if(isNaN(p.getTime()))return Re(n,NaN);const h={};for(const N of d){if(!N.validate(p,c))return Re(n,NaN);const S=N.set(p,h,c);Array.isArray(S)?(p=S[0],Object.assign(h,S[1])):p=S}return Re(n,p)}function _3(e){return e.match(M3)[1].replace(B3,"'")}function vs(e,a){const n=Ba(e),r=Ba(a);return+n==+r}function N3(e,a){return Ot(e,-a)}function Es(e,a){const n=Ce(e),r=n.getFullYear(),o=n.getDate(),i=Re(e,0);i.setFullYear(r,a,15),i.setHours(0,0,0,0);const s=Pd(i);return n.setMonth(a,Math.min(o,s)),n}function We(e,a){let n=Ce(e);return isNaN(+n)?Re(e,NaN):(a.year!=null&&n.setFullYear(a.year),a.month!=null&&(n=Es(n,a.month)),a.date!=null&&n.setDate(a.date),a.hours!=null&&n.setHours(a.hours),a.minutes!=null&&n.setMinutes(a.minutes),a.seconds!=null&&n.setSeconds(a.seconds),a.milliseconds!=null&&n.setMilliseconds(a.milliseconds),n)}function D3(e,a){const n=Ce(e);return n.setHours(a),n}function Cs(e,a){const n=Ce(e);return n.setMilliseconds(a),n}function T3(e,a){const n=Ce(e);return n.setMinutes(a),n}function Ss(e,a){const n=Ce(e);return n.setSeconds(a),n}function Yt(e,a){const n=Ce(e);return isNaN(+n)?Re(e,NaN):(n.setFullYear(a),n)}function Ga(e,a){return Ft(e,-a)}function P3(e,a){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:s=0,minutes:l=0,seconds:c=0}=a,m=Ga(e,r+n*12),u=N3(m,i+o*7),f=l+s*60,p=(c+f*60)*1e3;return Re(e,u.getTime()-p)}function Ms(e,a){return Rr(e,-a)}function ja(){const e=t.useAttrs();return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...e},[t.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),t.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),t.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),t.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}ja.compatConfig={MODE:3};function Bs(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),t.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Bs.compatConfig={MODE:3};function Xr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Xr.compatConfig={MODE:3};function Zr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Zr.compatConfig={MODE:3};function Qr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),t.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}Qr.compatConfig={MODE:3};function Kr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Kr.compatConfig={MODE:3};function Jr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Jr.compatConfig={MODE:3};const At=(e,a)=>a?new Date(e.toLocaleString("en-US",{timeZone:a})):new Date(e),eo=(e,a,n)=>to(e,a,n)||ge(),O3=(e,a,n)=>{const r=a.dateInTz?At(new Date(e),a.dateInTz):ge(e);return n?vt(r,!0):r},to=(e,a,n)=>{if(!e)return null;const r=n?vt(ge(e),!0):ge(e);return a?a.exactMatch?O3(e,a,n):At(r,a.timezone):r},F3=e=>{if(!e)return 0;const a=new Date,n=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(a.toLocaleString("en-US",{timeZone:e})),o=r.getTimezoneOffset()/60;return(+n-+r)/(1e3*60*60)-o};var $t=(e=>(e.month="month",e.year="year",e))($t||{}),Va=(e=>(e.top="top",e.bottom="bottom",e))(Va||{}),_a=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(_a||{}),yt=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(yt||{});const L3=["timestamp","date","iso"];var xt=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(xt||{}),Ue=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(Ue||{});function As(e){return a=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)}function $3(e){return a=>jt(At(new Date(`2017-01-0${a}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const R3=(e,a,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map($3(e))}catch{o=r.map(As(a))}else o=r.map(As(a));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},ao=(e,a,n)=>{const r=[];for(let o=+e[0];o<=+e[1];o++)r.push({value:+o,text:Ps(o,a)});return n?r.reverse():r},Vs=(e,a,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"LLLL":"LLL";return r.map((s,l)=>{const c=jt(At(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(a,{month:n,timeZone:"UTC"});return r.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},H3=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],ct=e=>{const a=t.unref(e);return a!=null&&a.$el?a==null?void 0:a.$el:a},z3=e=>({type:"dot",...e??{}}),_s=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,no={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},ft=e=>e,Ns=e=>e===0?e:!e||isNaN(+e)?null:+e,Ds=e=>e===null,Ts=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},I3=e=>{const a=[],n=r=>r.filter(o=>o);for(let r=0;r<e.length;r+=3){const o=[e[r],e[r+1],e[r+2]];a.push(n(o))}return a},hn=(e,a,n)=>{const r=n!=null,o=a!=null;if(!r&&!o)return!1;const i=+n,s=+a;return r&&o?+e>i||+e<s:r?+e>i:o?+e<s:!1},qa=(e,a)=>I3(e).map(n=>n.map(r=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=a(r);return{...r,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),sa=(e,a,n=!1)=>{e&&a.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},G3=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function j3(e,a){let n=[...document.querySelectorAll(G3())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(a?r-1>=0:r+1<=n.length))return n[r+(a?-1:1)]}const ro=(e,a)=>e==null?void 0:e.querySelector(`[data-dp-element="${a}"]`),Ps=(e,a)=>new Intl.NumberFormat(a,{useGrouping:!1,style:"decimal"}).format(e),oo=e=>jt(e,"dd-MM-yyyy"),io=e=>Array.isArray(e),qn=(e,a)=>a.get(oo(e)),q3=(e,a)=>e?a?a instanceof Map?!!qn(e,a):a(ge(e)):!1:!0,wt=(e,a,n=!1,r)=>{if(e.key===Ue.enter||e.key===Ue.space)return n&&e.preventDefault(),a();if(r)return r(e)},Os=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some(e=>navigator.userAgent.includes(e))||navigator.userAgent.includes("Mac")&&"ontouchend"in document,Fs=(e,a,n,r,o,i)=>{const s=Ur(e,a.slice(0,e.length),new Date,{locale:i});return cn(s)&&rs(s)?r||o?s:We(s,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},W3=(e,a,n,r,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof a=="string")return Fs(e,a,s,r,o,i);if(Array.isArray(a)){let l=null;for(const c of a)if(l=Fs(e,c,s,r,o,i),l)break;return l}return typeof a=="function"?a(e):null},ge=e=>e?new Date(e):new Date,Y3=(e,a,n)=>{if(a){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},vt=(e,a)=>{const n=ge(JSON.parse(JSON.stringify(e))),r=We(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return a?G2(r):r},la=(e,a,n,r)=>{let o=e?ge(e):ge();return(a||a===0)&&(o=D3(o,+a)),(n||n===0)&&(o=T3(o,+n)),(r||r===0)&&(o=Ss(o,+r)),Cs(o,0)},tt=(e,a)=>!e||!a?!1:mn(vt(e),vt(a)),Fe=(e,a)=>!e||!a?!1:Ia(vt(e),vt(a)),it=(e,a)=>!e||!a?!1:za(vt(e),vt(a)),Wn=(e,a,n)=>e!=null&&e[0]&&e!=null&&e[1]?it(n,e[0])&&tt(n,e[1]):e!=null&&e[0]&&a?it(n,e[0])&&tt(n,a)||tt(n,e[0])&&it(n,a):!1,Rt=e=>{const a=We(new Date(e),{date:1});return vt(a)},so=(e,a,n)=>a&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===a?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},Na=e=>({hours:Qt(e),minutes:ia(e),seconds:Ha(e)}),Ls=(e,a)=>{if(a){const n=Ve(ge(a));if(n>e)return 12;if(n===e)return Oe(ge(a))}},$s=(e,a)=>{if(a){const n=Ve(ge(a));return n<e?-1:n===e?Oe(ge(a)):void 0}},Wa=e=>{if(e)return Ve(ge(e))},Rs=(e,a)=>{const n=it(e,a)?a:e,r=it(a,e)?a:e;return is({start:n,end:r})},U3=e=>{const a=Ft(e,1);return{month:Oe(a),year:Ve(a)}},Kt=(e,a)=>{const n=Lt(e,{weekStartsOn:+a}),r=ls(e,{weekStartsOn:+a});return[n,r]},Hs=(e,a)=>{const n={hours:Qt(ge()),minutes:ia(ge()),seconds:a?Ha(ge()):0};return Object.assign(n,e)},ca=(e,a,n)=>[We(ge(e),{date:1}),We(ge(),{month:a,year:n,date:1})],Jt=(e,a,n)=>{let r=e?ge(e):ge();return(a||a===0)&&(r=Es(r,a)),n&&(r=Yt(r,n)),r},zs=(e,a,n,r,o)=>{if(!r||o&&!a||!o&&!n)return!1;const i=o?Ft(e,1):Ga(e,1),s=[Oe(i),Ve(i)];return o?!Z3(...s,a):!X3(...s,n)},X3=(e,a,n)=>tt(...ca(n,e,a))||Fe(...ca(n,e,a)),Z3=(e,a,n)=>it(...ca(n,e,a))||Fe(...ca(n,e,a)),Is=(e,a,n,r,o,i,s)=>{if(typeof a=="function"&&!s)return a(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${jt(e[0],i,l)}${o&&!e[1]?"":r}${e[1]?jt(e[1],i,l):""}`:jt(e,i,l)},Ya=e=>{if(e)return null;throw new Error(no.prop("partial-range"))},Yn=(e,a)=>{if(a)return e();throw new Error(no.prop("range"))},lo=e=>Array.isArray(e)?cn(e[0])&&(e[1]?cn(e[1]):!0):e?cn(e):!1,Q3=(e,a)=>We(a??ge(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),co=(e,a,n,r)=>{if(!e)return!0;if(r){const o=n==="max"?mn(e,a):za(e,a),i={seconds:0,milliseconds:0};return o||Ia(We(e,i),We(a,i))}return n==="max"?e.getTime()<=a.getTime():e.getTime()>=a.getTime()},uo=(e,a,n)=>e?Q3(e,a):ge(n??a),Gs=(e,a,n,r,o)=>{if(Array.isArray(r)){const s=uo(e,r[0],a),l=uo(e,r[1],a);return co(r[0],s,n,!!a)&&co(r[1],l,n,!!a)&&o}const i=uo(e,r,a);return co(r,i,n,!!a)&&o},fo=e=>We(ge(),Na(e)),K3=(e,a)=>e instanceof Map?Array.from(e.values()).filter(n=>Ve(ge(n))===a).map(n=>Oe(n)):[],js=(e,a,n)=>typeof e=="function"?e({month:a,year:n}):!!e.months.find(r=>r.month===a&&r.year===n),mo=(e,a)=>typeof e=="function"?e(a):e.years.includes(a),qs=e=>jt(e,"yyyy-MM-dd"),pn=t.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Ws=()=>{const e=n=>{pn.menuFocused=n},a=n=>{pn.shiftKeyInMenu!==n&&(pn.shiftKeyInMenu=n)};return{control:t.computed(()=>({shiftKeyInMenu:pn.shiftKeyInMenu,menuFocused:pn.menuFocused})),setMenuFocused:e,setShiftKey:a}},Xe=t.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),ho=t.ref(null),Un=t.ref(!1),po=t.ref(!1),go=t.ref(!1),yo=t.ref(!1),kt=t.ref(0),st=t.ref(0),da=()=>{const e=t.computed(()=>Un.value?[...Xe.selectionGrid,Xe.actionRow].filter(f=>f.length):po.value?[...Xe.timePicker[0],...Xe.timePicker[1],yo.value?[]:[ho.value],Xe.actionRow].filter(f=>f.length):go.value?[...Xe.monthPicker,Xe.actionRow]:[Xe.monthYear,...Xe.calendar,Xe.time,Xe.actionRow].filter(f=>f.length)),a=f=>{kt.value=f?kt.value+1:kt.value-1;let d=null;e.value[st.value]&&(d=e.value[st.value][kt.value]),!d&&e.value[st.value+(f?1:-1)]?(st.value=st.value+(f?1:-1),kt.value=f?0:e.value[st.value].length-1):d||(kt.value=f?kt.value-1:kt.value+1)},n=f=>{st.value===0&&!f||st.value===e.value.length&&f||(st.value=f?st.value+1:st.value-1,e.value[st.value]?e.value[st.value]&&!e.value[st.value][kt.value]&&kt.value!==0&&(kt.value=e.value[st.value].length-1):st.value=f?st.value-1:st.value+1)},r=f=>{let d=null;e.value[st.value]&&(d=e.value[st.value][kt.value]),d?d.focus({preventScroll:!Un.value}):kt.value=f?kt.value-1:kt.value+1},o=()=>{a(!0),r(!0)},i=()=>{a(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},c=(f,d)=>{Xe[d]=f},m=(f,d)=>{Xe[d]=f},u=()=>{kt.value=0,st.value=0};return{buildMatrix:c,buildMultiLevelMatrix:m,setTimePickerBackRef:f=>{ho.value=f},setSelectionGrid:f=>{Un.value=f,u(),f||(Xe.selectionGrid=[])},setTimePicker:(f,d=!1)=>{po.value=f,yo.value=d,u(),f||(Xe.timePicker[0]=[],Xe.timePicker[1]=[])},setTimePickerElements:(f,d=0)=>{Xe.timePicker[d]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{Xe.monthYear=[],Xe.calendar=[],Xe.time=[],Xe.actionRow=[],Xe.selectionGrid=[],Xe.timePicker[0]=[],Xe.timePicker[1]=[],Un.value=!1,po.value=!1,yo.value=!1,go.value=!1,u(),ho.value=null},setMonthPicker:f=>{go.value=f,u()},refSets:Xe}},Ys=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),J3=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:a=>`Increment ${a}`,decrementValue:a=>`Decrement ${a}`,openTpOverlay:a=>`Open ${a} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:a=>`Month picker${a?" overlay":""}`,yearPicker:a=>`Year picker${a?" overlay":""}`,timeOverlay:a=>`${a} overlay`,...e??{}}),Us=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,eu=e=>{const a=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:Us(!1)};const r=a?e:{},o=a?r.count??!0:e,i=Us(o);return Object.assign(n,r,{count:i})},tu=(e,a,n)=>e||(typeof n=="string"?n:a),au=e=>typeof e=="boolean"?e?Ys({}):!1:Ys(e),nu=e=>{const a={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...a,...e??{},enabled:!0}:{...a,enabled:e}},ru=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),ou=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),iu=e=>{const a={input:!1};return typeof e=="object"?{...a,...e??{},enabled:!0}:{enabled:e,...a}},su=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,...e??{}}),lu=e=>{const a={dates:Array.isArray(e)?e.map(n=>ge(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...a,...e??{}}},cu=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},du=e=>{const a={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...a,...e}:{enabled:e,...a}},uu=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},ko=(e,a,n)=>new Map(e.map(r=>{const o=eo(r,a,n);return[oo(o),o]})),fu=(e,a)=>e.length?new Map(e.map(n=>{const r=eo(n.date,a);return[oo(r),n]})):null,mu=e=>{var a;return{minDate:to(e.minDate,e.timezone,e.isSpecific),maxDate:to(e.maxDate,e.timezone,e.isSpecific),disabledDates:io(e.disabledDates)?ko(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:io(e.allowedDates)?ko(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&io((a=e.highlight)==null?void 0:a.dates)?ko(e.highlight.dates,e.timezone):e.highlight,markers:fu(e.markers,e.timezone)}},hu=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},pu=e=>({...Object.fromEntries(Object.keys(e).map(a=>{const n=a,r=e[n],o=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(i=>[i,!0]));return[a,o]}))}),Ze=e=>{const a=()=>{const O=e.enableSeconds?":ss":"",N=e.enableMinutes?":mm":"";return e.is24?`HH${N}${O}`:`hh${N}${O} aa`},n=()=>{var O;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?a():e.weekPicker?`${((O=k.value)==null?void 0:O.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${a()}`:"MM/dd/yyyy"},r=O=>Hs(O,e.enableSeconds),o=()=>A.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,i=t.computed(()=>eu(e.multiCalendars)),s=t.computed(()=>o()),l=t.computed(()=>J3(e.ariaLabels)),c=t.computed(()=>ru(e.filters)),m=t.computed(()=>au(e.transitions)),u=t.computed(()=>ou(e.actionRow)),f=t.computed(()=>tu(e.previewFormat,e.format,n())),d=t.computed(()=>nu(e.textInput)),p=t.computed(()=>iu(e.inline)),h=t.computed(()=>su(e.config)),g=t.computed(()=>lu(e.highlight)),k=t.computed(()=>cu(e.weekNumbers)),v=t.computed(()=>uu(e.timezone)),x=t.computed(()=>hu(e.multiDates)),b=t.computed(()=>mu({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:g.value,markers:e.markers,timezone:v.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),A=t.computed(()=>du(e.range)),_=t.computed(()=>pu(e.ui));return{defaultedTransitions:m,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:u,defaultedPreviewFormat:f,defaultedTextInput:d,defaultedInline:p,defaultedConfig:h,defaultedHighlight:g,defaultedWeekNumbers:k,defaultedRange:A,propDates:b,defaultedTz:v,defaultedMultiDates:x,defaultedUI:_,getDefaultPattern:n,getDefaultStartTime:o}},gu=(e,a,n)=>{const r=t.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=Ze(a),m=t.ref(""),u=t.toRef(a,"format"),f=t.toRef(a,"formatLocale");t.watch(r,()=>{typeof a.onInternalModelChange=="function"&&e("internal-model-change",r.value,ce(!0))},{deep:!0}),t.watch(i,(z,he)=>{z.enabled!==he.enabled&&(r.value=null)}),t.watch(u,()=>{oe()});const d=z=>s.value.timezone&&s.value.convertModel?At(z,s.value.timezone):z,p=z=>{if(s.value.timezone&&s.value.convertModel){const he=F3(s.value.timezone);return F2(z,he)}return z},h=(z,he,ee=!1)=>Is(z,a.format,a.formatLocale,o.value.rangeSeparator,a.modelAuto,he??c(),ee),g=z=>z?a.modelType?w(z):{hours:Qt(z),minutes:ia(z),seconds:a.enableSeconds?Ha(z):0}:null,k=z=>a.modelType?w(z):{month:Oe(z),year:Ve(z)},v=z=>Array.isArray(z)?l.value.enabled?z.map(he=>x(he,Yt(ge(),he))):Yn(()=>[Yt(ge(),z[0]),z[1]?Yt(ge(),z[1]):Ya(i.value.partialRange)],i.value.enabled):Yt(ge(),+z),x=(z,he)=>(typeof z=="string"||typeof z=="number")&&a.modelType?V(z):he,b=z=>Array.isArray(z)?[x(z[0],la(null,+z[0].hours,+z[0].minutes,z[0].seconds)),x(z[1],la(null,+z[1].hours,+z[1].minutes,z[1].seconds))]:x(z,la(null,z.hours,z.minutes,z.seconds)),A=z=>{const he=We(ge(),{date:1});return Array.isArray(z)?l.value.enabled?z.map(ee=>x(ee,Jt(he,+ee.month,+ee.year))):Yn(()=>[x(z[0],Jt(he,+z[0].month,+z[0].year)),x(z[1],z[1]?Jt(he,+z[1].month,+z[1].year):Ya(i.value.partialRange))],i.value.enabled):x(z,Jt(he,+z.month,+z.year))},_=z=>{if(Array.isArray(z))return z.map(he=>V(he));throw new Error(no.dateArr("multi-dates"))},O=z=>{if(Array.isArray(z)&&i.value.enabled){const he=z[0],ee=z[1];return[ge(Array.isArray(he)?he[0]:null),Array.isArray(ee)&&ee.length?ge(ee[0]):null]}return ge(z[0])},N=z=>a.modelAuto?Array.isArray(z)?[V(z[0]),V(z[1])]:a.autoApply?[V(z)]:[V(z),null]:Array.isArray(z)?Yn(()=>z[1]?[V(z[0]),z[1]?V(z[1]):Ya(i.value.partialRange)]:[V(z[0])],i.value.enabled):V(z),S=()=>{Array.isArray(r.value)&&i.value.enabled&&r.value.length===1&&r.value.push(Ya(i.value.partialRange))},B=()=>{const z=r.value;return[w(z[0]),z[1]?w(z[1]):Ya(i.value.partialRange)]},G=()=>r.value[1]?B():w(ft(r.value[0])),T=()=>(r.value||[]).map(z=>w(z)),Q=(z=!1)=>(z||S(),a.modelAuto?G():l.value.enabled?T():Array.isArray(r.value)?Yn(()=>B(),i.value.enabled):w(ft(r.value))),U=z=>!z||Array.isArray(z)&&!z.length?null:a.timePicker?b(ft(z)):a.monthPicker?A(ft(z)):a.yearPicker?v(ft(z)):l.value.enabled?_(ft(z)):a.weekPicker?O(ft(z)):N(ft(z)),E=z=>{const he=U(z);lo(ft(he))?(r.value=ft(he),oe()):(r.value=null,m.value="")},D=()=>{const z=he=>jt(he,o.value.format);return`${z(r.value[0])} ${o.value.rangeSeparator} ${r.value[1]?z(r.value[1]):""}`},F=()=>n.value&&r.value?Array.isArray(r.value)?D():jt(r.value,o.value.format):h(r.value),q=()=>r.value?l.value.enabled?r.value.map(z=>h(z)).join("; "):o.value.enabled&&typeof o.value.format=="string"?F():h(r.value):"",oe=()=>{!a.format||typeof a.format=="string"||o.value.enabled&&typeof o.value.format=="string"?m.value=q():m.value=a.format(r.value)},V=z=>{if(a.utc){const he=new Date(z);return a.utc==="preserve"?new Date(he.getTime()+he.getTimezoneOffset()*6e4):he}return a.modelType?L3.includes(a.modelType)?d(new Date(z)):a.modelType==="format"&&(typeof a.format=="string"||!a.format)?d(Ur(z,c(),new Date,{locale:f.value})):d(Ur(z,a.modelType,new Date,{locale:f.value})):d(new Date(z))},w=z=>z?a.utc?Y3(z,a.utc==="preserve",a.enableSeconds):a.modelType?a.modelType==="timestamp"?+p(z):a.modelType==="iso"?p(z).toISOString():a.modelType==="format"&&(typeof a.format=="string"||!a.format)?h(p(z)):h(p(z),a.modelType,!0):p(z):"",X=(z,he=!1,ee=!1)=>{if(ee)return z;if(e("update:model-value",z),s.value.emitTimezone&&he){const fe=Array.isArray(z)?z.map(L=>At(ft(L),s.value.emitTimezone)):At(ft(z),s.value.emitTimezone);e("update:model-timezone-value",fe)}},K=z=>Array.isArray(r.value)?l.value.enabled?r.value.map(he=>z(he)):[z(r.value[0]),r.value[1]?z(r.value[1]):Ya(i.value.partialRange)]:z(ft(r.value)),W=()=>{if(Array.isArray(r.value)){const z=Kt(r.value[0],a.weekStart),he=r.value[1]?Kt(r.value[1],a.weekStart):[];return[z.map(ee=>ge(ee)),he.map(ee=>ge(ee))]}return Kt(r.value,a.weekStart).map(z=>ge(z))},M=(z,he)=>X(ft(K(z)),!1,he),J=z=>{const he=W();return z?he:e("update:model-value",W())},ce=(z=!1)=>(z||oe(),a.monthPicker?M(k,z):a.timePicker?M(g,z):a.yearPicker?M(Ve,z):a.weekPicker?J(z):X(Q(z),!0,z));return{inputValue:m,internalModelValue:r,checkBeforeEmit:()=>r.value?i.value.enabled?i.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:E,formatInputValue:oe,emitModelValue:ce}},yu=(e,a)=>{const{defaultedFilters:n,propDates:r}=Ze(e),{validateMonthYearInRange:o}=fa(e),i=(u,f)=>{let d=u;return n.value.months.includes(Oe(d))?(d=f?Ft(u,1):Ga(u,1),i(d,f)):d},s=(u,f)=>{let d=u;return n.value.years.includes(Ve(d))?(d=f?Rr(u,1):Ms(u,1),s(d,f)):d},l=(u,f=!1)=>{const d=We(ge(),{month:e.month,year:e.year});let p=u?Ft(d,1):Ga(d,1);e.disableYearSelect&&(p=Yt(p,e.year));let h=Oe(p),g=Ve(p);n.value.months.includes(h)&&(p=i(p,u),h=Oe(p),g=Ve(p)),n.value.years.includes(g)&&(p=s(p,u),g=Ve(p)),o(h,g,u,e.preventMinMaxNavigation)&&c(h,g,f)},c=(u,f,d)=>{a("update-month-year",{month:u,year:f,fromNav:d})},m=t.computed(()=>u=>zs(We(ge(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:l,isDisabled:m,updateMonthYear:c}},Xn={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},Ht={...Xn,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},ku=["title"],bu=["disabled"],xu=t.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...Ht},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:a}){const n=a,r=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:m,defaultedMultiDates:u}=Ze(r),{isTimeValid:f,isMonthValid:d}=fa(r),{buildMatrix:p}=da(),h=t.ref(null),g=t.ref(null),k=t.ref(!1),v=t.ref({}),x=t.ref(null),b=t.ref(null);t.onMounted(()=>{r.arrowNavigation&&p([ct(h),ct(g)],"actionRow"),A(),window.addEventListener("resize",A)}),t.onUnmounted(()=>{window.removeEventListener("resize",A)});const A=()=>{k.value=!1,setTimeout(()=>{var E,D;const F=(E=x.value)==null?void 0:E.getBoundingClientRect(),q=(D=b.value)==null?void 0:D.getBoundingClientRect();F&&q&&(v.value.maxWidth=`${q.width-F.width-20}px`),k.value=!0},0)},_=t.computed(()=>m.value.enabled&&!m.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),O=t.computed(()=>!f.value(r.internalModelValue)||!d.value(r.internalModelValue)||!_.value),N=()=>{const E=i.value;return r.timePicker||r.monthPicker,E(ft(r.internalModelValue))},S=()=>{const E=r.internalModelValue;return s.value.count>0?`${B(E[0])} - ${B(E[1])}`:[B(E[0]),B(E[1])]},B=E=>Is(E,i.value,r.formatLocale,l.value.rangeSeparator,r.modelAuto,i.value),G=t.computed(()=>!r.internalModelValue||!r.menuMount?"":typeof i.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?S():u.value.enabled?r.internalModelValue.map(E=>`${B(E)}`):r.modelAuto?`${B(r.internalModelValue[0])}`:`${B(r.internalModelValue[0])} -`:B(r.internalModelValue):N()),T=()=>u.value.enabled?"; ":" - ",Q=t.computed(()=>Array.isArray(G.value)?G.value.join(T()):G.value),U=()=>{f.value(r.internalModelValue)&&d.value(r.internalModelValue)&&_.value?n("select-date"):n("invalid-select")};return(E,D)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"actionRowRef",ref:b,class:"dp__action_row"},[E.$slots["action-row"]?t.renderSlot(E.$slots,"action-row",t.normalizeProps(t.mergeProps({key:0},{internalModelValue:E.internalModelValue,disabled:O.value,selectDate:()=>E.$emit("select-date"),closePicker:()=>E.$emit("close-picker")}))):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.unref(o).showPreview?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dp__selection_preview",title:Q.value,style:t.normalizeStyle(v.value)},[E.$slots["action-preview"]&&k.value?t.renderSlot(E.$slots,"action-preview",{key:0,value:E.internalModelValue}):t.createCommentVNode("",!0),!E.$slots["action-preview"]&&k.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Q.value),1)],64)):t.createCommentVNode("",!0)],12,ku)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[E.$slots["action-buttons"]?t.renderSlot(E.$slots,"action-buttons",{key:0,value:E.internalModelValue}):t.createCommentVNode("",!0),E.$slots["action-buttons"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!t.unref(c).enabled&&t.unref(o).showCancel?(t.openBlock(),t.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:h,type:"button",class:"dp__action_button dp__action_cancel",onClick:D[0]||(D[0]=F=>E.$emit("close-picker")),onKeydown:D[1]||(D[1]=F=>t.unref(wt)(F,()=>E.$emit("close-picker")))},t.toDisplayString(E.cancelText),545)):t.createCommentVNode("",!0),t.unref(o).showNow?(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:D[2]||(D[2]=F=>E.$emit("select-now")),onKeydown:D[3]||(D[3]=F=>t.unref(wt)(F,()=>E.$emit("select-now")))},t.toDisplayString(E.nowButtonLabel),33)):t.createCommentVNode("",!0),t.unref(o).showSelect?(t.openBlock(),t.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:g,type:"button",class:"dp__action_button dp__action_select",disabled:O.value,"data-test":"select-button",onKeydown:D[4]||(D[4]=F=>t.unref(wt)(F,()=>U())),onClick:U},t.toDisplayString(E.selectText),41,bu)):t.createCommentVNode("",!0)],64))],512)],64))],512))}}),wu=["role","aria-label","tabindex"],vu={class:"dp__selection_grid_header"},Eu=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],Cu=["aria-label"],gn=t.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:a,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:o,setMonthPicker:i}=da(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:m,defaultedConfig:u}=Ze(l),{hideNavigationButtons:f}=Kn(),d=t.ref(!1),p=t.ref(null),h=t.ref(null),g=t.ref([]),k=t.ref(),v=t.ref(null),x=t.ref(0),b=t.ref(null);t.onBeforeUpdate(()=>{p.value=null}),t.onMounted(()=>{t.nextTick().then(()=>T()),l.noOverlayFocus||_(),A(!0)}),t.onUnmounted(()=>A(!1));const A=K=>{var W;l.arrowNavigation&&((W=l.headerRefs)!=null&&W.length?i(K):r(K))},_=()=>{var K;const W=ct(h);W&&(m.value.enabled||(p.value?(K=p.value)==null||K.focus({preventScroll:!0}):W.focus({preventScroll:!0})),d.value=W.clientHeight<W.scrollHeight)},O=t.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),N=t.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),S=t.computed(()=>({dp__overlay_col:!0})),B=t.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:d.value,dp__button_bottom:l.isLast})),G=t.computed(()=>{var K,W;return{dp__overlay_container:!0,dp__container_flex:((K=l.items)==null?void 0:K.length)<=6,dp__container_block:((W=l.items)==null?void 0:W.length)>6}});t.watch(()=>l.items,()=>T(!1),{deep:!0});const T=(K=!0)=>{t.nextTick().then(()=>{const W=ct(p),M=ct(h),J=ct(v),ce=ct(b),z=J?J.getBoundingClientRect().height:0;M&&(M.getBoundingClientRect().height?x.value=M.getBoundingClientRect().height-z:x.value=u.value.modeHeight-z),W&&ce&&K&&(ce.scrollTop=W.offsetTop-ce.offsetTop-(x.value/2-W.getBoundingClientRect().height)-z)})},Q=K=>{K.disabled||s("selected",K.value)},U=()=>{s("toggle"),s("reset-flow")},E=()=>{l.escClose&&U()},D=(K,W,M,J)=>{K&&((W.active||W.value===l.focusValue)&&(p.value=K),l.arrowNavigation&&(Array.isArray(g.value[M])?g.value[M][J]=K:g.value[M]=[K],F()))},F=()=>{var K,W;const M=(K=l.headerRefs)!=null&&K.length?[l.headerRefs].concat(g.value):g.value.concat([l.skipButtonRef?[]:[v.value]]);o(ft(M),(W=l.headerRefs)!=null&&W.length?"monthPicker":"selectionGrid")},q=K=>{l.arrowNavigation||sa(K,u.value,!0)},oe=K=>{k.value=K,s("hover-value",K)},V=()=>{if(U(),!l.isLast){const K=ro(l.menuWrapRef??null,"action-row");if(K){const W=Ts(K);W==null||W.focus()}}},w=K=>{switch(K.key){case Ue.esc:return E();case Ue.arrowLeft:return q(K);case Ue.arrowRight:return q(K);case Ue.arrowUp:return q(K);case Ue.arrowDown:return q(K);default:return}},X=K=>{if(K.key===Ue.enter)return U();if(K.key===Ue.tab)return V()};return a({focusGrid:_}),(K,W)=>{var M;return t.openBlock(),t.createElementBlock("div",{ref_key:"gridWrapRef",ref:h,class:t.normalizeClass(O.value),style:t.normalizeStyle(N.value),role:K.useRelative?void 0:"dialog","aria-label":K.overlayLabel,tabindex:K.useRelative?void 0:"0",onKeydown:w,onClick:W[0]||(W[0]=t.withModifiers(()=>{},["prevent"]))},[t.createElementVNode("div",{ref_key:"containerRef",ref:b,class:t.normalizeClass(G.value),style:t.normalizeStyle({"--dp-overlay-height":`${x.value}px`}),role:"grid"},[t.createElementVNode("div",vu,[t.renderSlot(K.$slots,"header")]),K.$slots.overlay?t.renderSlot(K.$slots,"overlay",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(K.items,(J,ce)=>(t.openBlock(),t.createElementBlock("div",{key:ce,class:t.normalizeClass(["dp__overlay_row",{dp__flex_row:K.items.length>=3}]),role:"row"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(J,(z,he)=>(t.openBlock(),t.createElementBlock("div",{key:z.value,ref_for:!0,ref:ee=>D(ee,z,ce,he),role:"gridcell",class:t.normalizeClass(S.value),"aria-selected":z.active||void 0,"aria-disabled":z.disabled||void 0,tabindex:"0","data-test":z.text,onClick:t.withModifiers(ee=>Q(z),["prevent"]),onKeydown:ee=>t.unref(wt)(ee,()=>Q(z),!0),onMouseover:ee=>oe(z.value)},[t.createElementVNode("div",{class:t.normalizeClass(z.className)},[K.$slots.item?t.renderSlot(K.$slots,"item",{key:0,item:z}):t.createCommentVNode("",!0),K.$slots.item?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(z.text),1)],64))],2)],42,Eu))),128))],2))),128))],6),K.$slots["button-icon"]?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:v,type:"button","aria-label":(M=t.unref(c))==null?void 0:M.toggleOverlay,class:t.normalizeClass(B.value),tabindex:"0",onClick:U,onKeydown:X},[t.renderSlot(K.$slots,"button-icon")],42,Cu)),[[t.vShow,!t.unref(f)(K.hideNavigation,K.type)]]):t.createCommentVNode("",!0)],46,wu)}}}),Zn=t.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const a=e,n=t.computed(()=>a.multiCalendars>0?[...Array(a.multiCalendars).keys()]:[0]),r=t.computed(()=>({dp__instance_calendar:a.multiCalendars>0}));return(o,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(s,l)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:t.normalizeClass(r.value)},[t.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],2))}}),Su=["data-dp-element","aria-label","aria-disabled"],yn=t.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:a}){const n=a,r=t.ref(null);return t.onMounted(()=>n("set-ref",r)),(o,i)=>(t.openBlock(),t.createElementBlock("button",{ref_key:"elRef",ref:r,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>t.unref(wt)(s,()=>o.$emit("activate"),!0))},[t.createElementVNode("span",{class:t.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[t.renderSlot(o.$slots,"default")],2)],40,Su))}}),Mu=["aria-label","data-test"],Xs=t.defineComponent({__name:"YearModePicker",props:{...Ht,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:a}){const n=a,r=e,{showRightIcon:o,showLeftIcon:i}=Kn(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:m,defaultedUI:u}=Ze(r),{showTransition:f,transitionName:d}=kn(m),p=t.ref(!1),h=(v=!1,x)=>{p.value=!p.value,n("toggle-year-picker",{flow:v,show:x})},g=v=>{p.value=!1,n("year-select",v)},k=(v=!1)=>{n("handle-year",v)};return(v,x)=>{var b,A,_,O,N;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":p.value}])},[t.unref(i)(t.unref(l),e.instance)?(t.openBlock(),t.createBlock(yn,{key:0,ref:"mpPrevIconRef","aria-label":(b=t.unref(c))==null?void 0:b.prevYear,disabled:e.isDisabled(!1),class:t.normalizeClass((A=t.unref(u))==null?void 0:A.navBtnPrev),onActivate:x[0]||(x[0]=S=>k(!1))},{default:t.withCtx(()=>[v.$slots["arrow-left"]?t.renderSlot(v.$slots,"arrow-left",{key:0}):t.createCommentVNode("",!0),v.$slots["arrow-left"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Xr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0),t.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(_=t.unref(c))==null?void 0:_.openYearsOverlay}`,"data-test":`year-mode-btn-${e.instance}`,onClick:x[1]||(x[1]=()=>h(!1)),onKeydown:x[2]||(x[2]=t.withKeys(()=>h(!1),["enter"]))},[v.$slots.year?t.renderSlot(v.$slots,"year",{key:0,year:e.year}):t.createCommentVNode("",!0),v.$slots.year?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.year),1)],64))],40,Mu),t.unref(o)(t.unref(l),e.instance)?(t.openBlock(),t.createBlock(yn,{key:1,ref:"mpNextIconRef","aria-label":(O=t.unref(c))==null?void 0:O.nextYear,disabled:e.isDisabled(!0),class:t.normalizeClass((N=t.unref(u))==null?void 0:N.navBtnNext),onActivate:x[3]||(x[3]=S=>k(!0))},{default:t.withCtx(()=>[v.$slots["arrow-right"]?t.renderSlot(v.$slots,"arrow-right",{key:0}):t.createCommentVNode("",!0),v.$slots["arrow-right"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Zr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:t.unref(d)(e.showYearPicker),css:t.unref(f)},{default:t.withCtx(()=>{var S,B;return[e.showYearPicker?(t.openBlock(),t.createBlock(gn,{key:0,items:e.items,"text-input":v.textInput,"esc-close":v.escClose,config:v.config,"is-last":v.autoApply&&!t.unref(s).keepActionRow,"hide-navigation":v.hideNavigation,"aria-labels":v.ariaLabels,"overlay-label":(B=(S=t.unref(c))==null?void 0:S.yearPicker)==null?void 0:B.call(S,!0),type:"year",onToggle:h,onSelected:x[4]||(x[4]=G=>g(G))},t.createSlots({"button-icon":t.withCtx(()=>[v.$slots["calendar-icon"]?t.renderSlot(v.$slots,"calendar-icon",{key:0}):t.createCommentVNode("",!0),v.$slots["calendar-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(ja),{key:1}))]),_:2},[v.$slots["year-overlay-value"]?{name:"item",fn:t.withCtx(({item:G})=>[t.renderSlot(v.$slots,"year-overlay-value",{text:G.text,value:G.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):t.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),bo=(e,a,n)=>{if(a.value&&Array.isArray(a.value))if(a.value.some(r=>Fe(e,r))){const r=a.value.filter(o=>!Fe(o,e));a.value=r.length?r:null}else(n&&+n>a.value.length||!n)&&a.value.push(e);else a.value=[e]},xo=(e,a,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?tt(a,r[0])?(r.unshift(a),n("range-start",r[0]),n("range-start",r[1])):(r[1]=a,n("range-end",a)):(r=[a],n("range-start",a)),r},Qn=(e,a,n,r)=>{e&&(e[0]&&e[1]&&n&&a("auto-apply"),e[0]&&!e[1]&&r&&n&&a("auto-apply"))},Zs=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(a=>At(ge(a),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=At(ge(e.value),e.timezone))},Qs=(e,a,n,r)=>Array.isArray(a.value)&&(a.value.length===2||a.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(it(e,a.value[0])||Fe(e,a.value[0]))?[a.value[0],e]:r.value.fixedEnd&&(tt(e,a.value[1])||Fe(e,a.value[1]))?[e,a.value[1]]:(n("invalid-fixed-range",e),a.value):[],Ks=({multiCalendars:e,range:a,highlight:n,propDates:r,calendars:o,modelValue:i,props:s,filters:l,year:c,month:m,emit:u})=>{const f=t.computed(()=>ao(s.yearRange,s.locale,s.reverseYears)),d=t.ref([!1]),p=t.computed(()=>(G,T)=>{const Q=We(Rt(new Date),{month:m.value(G),year:c.value(G)}),U=T?ss(Q):dn(Q);return zs(U,r.value.maxDate,r.value.minDate,s.preventMinMaxNavigation,T)}),h=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],g=()=>{for(let G=0;G<e.value.count;G++)if(G===0)o.value[G]=o.value[0];else if(G===e.value.count-1&&h())o.value[G]={month:Oe(i.value[1]),year:Ve(i.value[1])};else{const T=We(ge(),o.value[G-1]);o.value[G]={month:Oe(T),year:Ve(Rr(T,1))}}},k=G=>{if(!G)return g();const T=We(ge(),o.value[G]);return o.value[0].year=Ve(Ms(T,e.value.count-1)),g()},v=(G,T)=>{const Q=z2(T,G);return a.value.showLastInRange&&Q>1?T:G},x=G=>s.focusStartDate||e.value.solo?G[0]:G[1]?v(G[0],G[1]):G[0],b=()=>{if(i.value){const G=Array.isArray(i.value)?x(i.value):i.value;o.value[0]={month:Oe(G),year:Ve(G)}}},A=()=>{b(),e.value.count&&g()};t.watch(i,(G,T)=>{s.isTextInputDate&&JSON.stringify(G??{})!==JSON.stringify(T??{})&&A()}),t.onMounted(()=>{A()});const _=(G,T)=>{o.value[T].year=G,u("update-month-year",{instance:T,year:G,month:o.value[T].month}),e.value.count&&!e.value.solo&&k(T)},O=t.computed(()=>G=>qa(f.value,T=>{var Q;const U=c.value(G)===T.value,E=hn(T.value,Wa(r.value.minDate),Wa(r.value.maxDate))||((Q=l.value.years)==null?void 0:Q.includes(c.value(G))),D=mo(n.value,T.value);return{active:U,disabled:E,highlighted:D}})),N=(G,T)=>{_(G,T),B(T)},S=(G,T=!1)=>{if(!p.value(G,T)){const Q=T?c.value(G)+1:c.value(G)-1;_(Q,G)}},B=(G,T=!1,Q)=>{T||u("reset-flow"),Q!==void 0?d.value[G]=Q:d.value[G]=!d.value[G],d.value[G]?u("overlay-toggle",{open:!0,overlay:yt.year}):(u("overlay-closed"),u("overlay-toggle",{open:!1,overlay:yt.year}))};return{isDisabled:p,groupedYears:O,showYearPicker:d,selectYear:_,toggleYearPicker:B,handleYearSelect:N,handleYear:S}},Bu=(e,a)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:m,defaultedFilters:u,defaultedMultiDates:f}=Ze(e),d=()=>{e.isTextInputDate&&A(Ve(ge(e.startDate)),0)},{modelValue:p,year:h,month:g,calendars:k}=bn(e,a,d),v=t.computed(()=>Vs(e.formatLocale,e.locale,e.monthNameFormat)),x=t.ref(null),{checkMinMaxRange:b}=fa(e),{selectYear:A,groupedYears:_,showYearPicker:O,toggleYearPicker:N,handleYearSelect:S,handleYear:B,isDisabled:G}=Ks({modelValue:p,multiCalendars:n,range:s,highlight:l,calendars:k,year:h,propDates:c,month:g,filters:u,props:e,emit:a});t.onMounted(()=>{e.startDate&&(p.value&&e.focusStartDate||!p.value)&&A(Ve(ge(e.startDate)),0)});const T=M=>M?{month:Oe(M),year:Ve(M)}:{month:null,year:null},Q=()=>p.value?Array.isArray(p.value)?p.value.map(M=>T(M)):T(p.value):T(),U=(M,J)=>{const ce=k.value[M],z=Q();return Array.isArray(z)?z.some(he=>he.year===(ce==null?void 0:ce.year)&&he.month===J):(ce==null?void 0:ce.year)===z.year&&J===z.month},E=(M,J,ce)=>{var z,he;const ee=Q();return Array.isArray(ee)?h.value(J)===((z=ee[ce])==null?void 0:z.year)&&M===((he=ee[ce])==null?void 0:he.month):!1},D=(M,J)=>{if(s.value.enabled){const ce=Q();if(Array.isArray(p.value)&&Array.isArray(ce)){const z=E(M,J,0)||E(M,J,1),he=Jt(Rt(ge()),M,h.value(J));return Wn(p.value,x.value,he)&&!z}return!1}return!1},F=t.computed(()=>M=>qa(v.value,J=>{var ce;const z=U(M,J.value),he=hn(J.value,Ls(h.value(M),c.value.minDate),$s(h.value(M),c.value.maxDate))||K3(c.value.disabledDates,h.value(M)).includes(J.value)||((ce=u.value.months)==null?void 0:ce.includes(J.value)),ee=D(J.value,M),fe=js(l.value,J.value,h.value(M));return{active:z,disabled:he,isBetween:ee,highlighted:fe}})),q=(M,J)=>Jt(Rt(ge()),M,h.value(J)),oe=(M,J)=>{const ce=p.value?p.value:Rt(new Date);p.value=Jt(ce,M,h.value(J)),a("auto-apply"),a("update-flow-step")},V=(M,J)=>{const ce=q(M,J);s.value.fixedEnd||s.value.fixedStart?p.value=Qs(ce,p,a,s):p.value?b(ce,p.value)&&(p.value=xo(p,q(M,J),a)):p.value=[q(M,J)],t.nextTick().then(()=>{Qn(p.value,a,e.autoApply,e.modelAuto)})},w=(M,J)=>{bo(q(M,J),p,f.value.limit),a("auto-apply",!0)},X=(M,J)=>(k.value[J].month=M,W(J,k.value[J].year,M),f.value.enabled?w(M,J):s.value.enabled?V(M,J):oe(M,J)),K=(M,J)=>{A(M,J),W(J,M,null)},W=(M,J,ce)=>{let z=ce;if(!z&&z!==0){const he=Q();z=Array.isArray(he)?he[M].month:he.month}a("update-month-year",{instance:M,year:J,month:z})};return{groupedMonths:F,groupedYears:_,year:h,isDisabled:G,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,showYearPicker:O,modelValue:p,presetDate:(M,J)=>{Zs({value:M,modelValue:p,range:s.value.enabled,timezone:J?void 0:m.value.timezone}),a("auto-apply")},setHoverDate:(M,J)=>{x.value=q(M,J)},selectMonth:X,selectYear:K,toggleYearPicker:N,handleYearSelect:S,handleYear:B,getModelMonthYear:Q}},Au=t.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...Ht},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=t.useSlots(),i=Vt(o,"yearMode"),s=e;t.onMounted(()=>{s.shadow||r("mount",null)});const{groupedMonths:l,groupedYears:c,year:m,isDisabled:u,defaultedMultiCalendars:f,defaultedConfig:d,showYearPicker:p,modelValue:h,presetDate:g,setHoverDate:k,selectMonth:v,selectYear:x,toggleYearPicker:b,handleYearSelect:A,handleYear:_,getModelMonthYear:O}=Bu(s,r);return a({getSidebarProps:()=>({modelValue:h,year:m,getModelMonthYear:O,selectMonth:v,selectYear:x,handleYear:_}),presetDate:g,toggleYearPicker:N=>b(0,N)}),(N,S)=>(t.openBlock(),t.createBlock(Zn,{"multi-calendars":t.unref(f).count,collapse:N.collapse,stretch:""},{default:t.withCtx(({instance:B})=>[N.$slots["top-extra"]?t.renderSlot(N.$slots,"top-extra",{key:0,value:N.internalModelValue}):t.createCommentVNode("",!0),N.$slots["month-year"]?t.renderSlot(N.$slots,"month-year",t.normalizeProps(t.mergeProps({key:1},{year:t.unref(m),months:t.unref(l)(B),years:t.unref(c)(B),selectMonth:t.unref(v),selectYear:t.unref(x),instance:B}))):(t.openBlock(),t.createBlock(gn,{key:2,items:t.unref(l)(B),"arrow-navigation":N.arrowNavigation,"is-last":N.autoApply&&!t.unref(d).keepActionRow,"esc-close":N.escClose,height:t.unref(d).modeHeight,config:N.config,"no-overlay-focus":!!(N.noOverlayFocus||N.textInput),"use-relative":"",type:"month",onSelected:G=>t.unref(v)(G,B),onHoverValue:G=>t.unref(k)(G,B)},t.createSlots({header:t.withCtx(()=>[t.createVNode(Xs,t.mergeProps(N.$props,{items:t.unref(c)(B),instance:B,"show-year-picker":t.unref(p)[B],year:t.unref(m)(B),"is-disabled":G=>t.unref(u)(B,G),onHandleYear:G=>t.unref(_)(B,G),onYearSelect:G=>t.unref(A)(G,B),onToggleYearPicker:G=>t.unref(b)(B,G==null?void 0:G.flow,G==null?void 0:G.show)}),t.createSlots({_:2},[t.renderList(t.unref(i),(G,T)=>({name:G,fn:t.withCtx(Q=>[t.renderSlot(N.$slots,G,t.normalizeProps(t.guardReactiveProps(Q)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[N.$slots["month-overlay-value"]?{name:"item",fn:t.withCtx(({item:G})=>[t.renderSlot(N.$slots,"month-overlay-value",{text:G.text,value:G.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),Vu=(e,a)=>{const n=()=>{e.isTextInputDate&&(u.value=Ve(ge(e.startDate)))},{modelValue:r}=bn(e,a,n),o=t.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:m}=Ze(e),u=t.ref();t.onMounted(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(u.value=Ve(ge(e.startDate)))});const f=g=>Array.isArray(r.value)?r.value.some(k=>Ve(k)===g):r.value?Ve(r.value)===g:!1,d=g=>c.value.enabled&&Array.isArray(r.value)?Wn(r.value,o.value,h(g)):!1,p=t.computed(()=>qa(ao(e.yearRange,e.locale,e.reverseYears),g=>{const k=f(g.value),v=hn(g.value,Wa(m.value.minDate),Wa(m.value.maxDate))||l.value.years.includes(g.value),x=d(g.value)&&!k,b=mo(i.value,g.value);return{active:k,disabled:v,isBetween:x,highlighted:b}})),h=g=>Yt(Rt(dn(new Date)),g);return{groupedYears:p,modelValue:r,focusYear:u,setHoverValue:g=>{o.value=Yt(Rt(new Date),g)},selectYear:g=>{var k;if(a("update-month-year",{instance:0,year:g}),s.value.enabled)return r.value?Array.isArray(r.value)&&(((k=r.value)==null?void 0:k.map(v=>Ve(v))).includes(g)?r.value=r.value.filter(v=>Ve(v)!==g):r.value.push(Yt(vt(ge()),g))):r.value=[Yt(vt(dn(ge())),g)],a("auto-apply",!0);c.value.enabled?(r.value=xo(r,h(g),a),t.nextTick().then(()=>{Qn(r.value,a,e.autoApply,e.modelAuto)})):(r.value=h(g),a("auto-apply"))}}},_u=t.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...Ht},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:a,emit:n}){const r=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:m}=Vu(o,r),{defaultedConfig:u}=Ze(o);return a({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,d)=>(t.openBlock(),t.createElementBlock("div",null,[f.$slots["top-extra"]?t.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):t.createCommentVNode("",!0),f.$slots["month-year"]?t.renderSlot(f.$slots,"month-year",t.normalizeProps(t.mergeProps({key:1},{years:t.unref(i),selectYear:t.unref(c)}))):(t.openBlock(),t.createBlock(gn,{key:2,items:t.unref(i),"is-last":f.autoApply&&!t.unref(u).keepActionRow,height:t.unref(u).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":t.unref(l),type:"year","use-relative":"",onSelected:t.unref(c),onHoverValue:t.unref(m)},t.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:t.withCtx(({item:p})=>[t.renderSlot(f.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),Nu={key:0,class:"dp__time_input"},Du=["data-test","aria-label","onKeydown","onClick","onMousedown"],Tu=["aria-label","disabled","data-test","onKeydown","onClick"],Pu=["data-test","aria-label","onKeydown","onClick","onMousedown"],Ou={key:0},Fu=["aria-label"],Lu=t.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...Ht},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:a,emit:n}){const r=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=da(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:m,defaultedConfig:u,defaultedRange:f}=Ze(o),{transitionName:d,showTransition:p}=kn(c),h=t.reactive({hours:!1,minutes:!1,seconds:!1}),g=t.ref("AM"),k=t.ref(null),v=t.ref([]),x=t.ref(),b=t.ref(!1);t.onMounted(()=>{r("mounted")});const A=y=>We(new Date,{hours:y.hours,minutes:y.minutes,seconds:o.enableSeconds?y.seconds:0,milliseconds:0}),_=t.computed(()=>y=>q(y,o[y])||N(y,o[y])),O=t.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),N=(y,P)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(y,P):!1,S=(y,P)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const I=P?+o[`${y}Increment`]:-+o[`${y}Increment`],H=o[y]+I;return!o.validateTime(y,H)}return!1},B=t.computed(()=>y=>!K(+o[y]+ +o[`${y}Increment`],y)||S(y,!0)),G=t.computed(()=>y=>!K(+o[y]-+o[`${y}Increment`],y)||S(y,!1)),T=(y,P)=>Qi(We(ge(),y),P),Q=(y,P)=>P3(We(ge(),y),P),U=t.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),E=t.computed(()=>{const y=[{type:"hours"}];return o.enableMinutes&&y.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&y.push({type:"",separator:!0},{type:"seconds"}),y}),D=t.computed(()=>E.value.filter(y=>!y.separator)),F=t.computed(()=>y=>{if(y==="hours"){const P=he(+o.hours);return{text:P<10?`0${P}`:`${P}`,value:P}}return{text:o[y]<10?`0${o[y]}`:`${o[y]}`,value:o[y]}}),q=(y,P)=>{var I;if(!o.disabledTimesConfig)return!1;const H=o.disabledTimesConfig(o.order,y==="hours"?P:void 0);return H[y]?!!((I=H[y])!=null&&I.includes(P)):!0},oe=(y,P)=>P!=="hours"||g.value==="AM"?y:y+12,V=y=>{const P=o.is24?24:12,I=y==="hours"?P:60,H=+o[`${y}GridIncrement`],te=y==="hours"&&!o.is24?H:0,j=[];for(let ne=te;ne<I;ne+=H)j.push({value:o.is24?ne:oe(ne,y),text:ne<10?`0${ne}`:`${ne}`});return y==="hours"&&!o.is24&&j.unshift({value:g.value==="PM"?12:0,text:"12"}),qa(j,ne=>({active:!1,disabled:m.value.times[y].includes(ne.value)||!K(ne.value,y)||q(y,ne.value)||N(y,ne.value)}))},w=y=>y>=0?y:59,X=y=>y>=0?y:23,K=(y,P)=>{const I=o.minTime?A(so(o.minTime)):null,H=o.maxTime?A(so(o.maxTime)):null,te=A(so(O.value,P,P==="minutes"||P==="seconds"?w(y):X(y)));return I&&H?(mn(te,H)||Ia(te,H))&&(za(te,I)||Ia(te,I)):I?za(te,I)||Ia(te,I):H?mn(te,H)||Ia(te,H):!0},W=y=>o[`no${y[0].toUpperCase()+y.slice(1)}Overlay`],M=y=>{W(y)||(h[y]=!h[y],h[y]?(b.value=!0,r("overlay-opened",y)):(b.value=!1,r("overlay-closed",y)))},J=y=>y==="hours"?Qt:y==="minutes"?ia:Ha,ce=()=>{x.value&&clearTimeout(x.value)},z=(y,P=!0,I)=>{const H=P?T:Q,te=P?+o[`${y}Increment`]:-+o[`${y}Increment`];K(+o[y]+te,y)&&r(`update:${y}`,J(y)(H({[y]:+o[y]},{[y]:+o[`${y}Increment`]}))),!(I!=null&&I.keyboard)&&u.value.timeArrowHoldThreshold&&(x.value=setTimeout(()=>{z(y,P)},u.value.timeArrowHoldThreshold))},he=y=>o.is24?y:(y>=12?g.value="PM":g.value="AM",H3(y)),ee=()=>{g.value==="PM"?(g.value="AM",r("update:hours",o.hours-12)):(g.value="PM",r("update:hours",o.hours+12)),r("am-pm-change",g.value)},fe=y=>{h[y]=!0},L=(y,P,I)=>{if(y&&o.arrowNavigation){Array.isArray(v.value[P])?v.value[P][I]=y:v.value[P]=[y];const H=v.value.reduce((te,j)=>j.map((ne,ue)=>[...te[ue]||[],j[ue]]),[]);s(o.closeTimePickerBtn),k.value&&(H[1]=H[1].concat(k.value)),i(H,o.order)}},C=(y,P)=>(M(y),r(`update:${y}`,P));return a({openChildCmp:fe}),(y,P)=>{var I;return y.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,(H,te)=>{var j,ne,ue;return t.openBlock(),t.createElementBlock("div",{key:te,class:t.normalizeClass(U.value)},[H.separator?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[b.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(":")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_for:!0,ref:ye=>L(ye,te,0),type:"button",class:t.normalizeClass({dp__btn:!0,dp__inc_dec_button:!y.timePickerInline,dp__inc_dec_button_inline:y.timePickerInline,dp__tp_inline_btn_top:y.timePickerInline,dp__inc_dec_button_disabled:B.value(H.type),"dp--hidden-el":b.value}),"data-test":`${H.type}-time-inc-btn-${o.order}`,"aria-label":(j=t.unref(l))==null?void 0:j.incrementValue(H.type),tabindex:"0",onKeydown:ye=>t.unref(wt)(ye,()=>z(H.type,!0,{keyboard:!0}),!0),onClick:ye=>t.unref(u).timeArrowHoldThreshold?void 0:z(H.type,!0),onMousedown:ye=>t.unref(u).timeArrowHoldThreshold?z(H.type,!0):void 0,onMouseup:ce},[o.timePickerInline?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.$slots["tp-inline-arrow-up"]?t.renderSlot(y.$slots,"tp-inline-arrow-up",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[P[2]||(P[2]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),P[3]||(P[3]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.$slots["arrow-up"]?t.renderSlot(y.$slots,"arrow-up",{key:0}):t.createCommentVNode("",!0),y.$slots["arrow-up"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Kr),{key:1}))],64))],42,Du),t.createElementVNode("button",{ref_for:!0,ref:ye=>L(ye,te,1),type:"button","aria-label":`${F.value(H.type).text}-${(ne=t.unref(l))==null?void 0:ne.openTpOverlay(H.type)}`,class:t.normalizeClass({dp__time_display:!0,dp__time_display_block:!y.timePickerInline,dp__time_display_inline:y.timePickerInline,"dp--time-invalid":_.value(H.type),"dp--time-overlay-btn":!_.value(H.type),"dp--hidden-el":b.value}),disabled:W(H.type),tabindex:"0","data-test":`${H.type}-toggle-overlay-btn-${o.order}`,onKeydown:ye=>t.unref(wt)(ye,()=>M(H.type),!0),onClick:ye=>M(H.type)},[y.$slots[H.type]?t.renderSlot(y.$slots,H.type,{key:0,text:F.value(H.type).text,value:F.value(H.type).value}):t.createCommentVNode("",!0),y.$slots[H.type]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.value(H.type).text),1)],64))],42,Tu),t.createElementVNode("button",{ref_for:!0,ref:ye=>L(ye,te,2),type:"button",class:t.normalizeClass({dp__btn:!0,dp__inc_dec_button:!y.timePickerInline,dp__inc_dec_button_inline:y.timePickerInline,dp__tp_inline_btn_bottom:y.timePickerInline,dp__inc_dec_button_disabled:G.value(H.type),"dp--hidden-el":b.value}),"data-test":`${H.type}-time-dec-btn-${o.order}`,"aria-label":(ue=t.unref(l))==null?void 0:ue.decrementValue(H.type),tabindex:"0",onKeydown:ye=>t.unref(wt)(ye,()=>z(H.type,!1,{keyboard:!0}),!0),onClick:ye=>t.unref(u).timeArrowHoldThreshold?void 0:z(H.type,!1),onMousedown:ye=>t.unref(u).timeArrowHoldThreshold?z(H.type,!1):void 0,onMouseup:ce},[o.timePickerInline?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.$slots["tp-inline-arrow-down"]?t.renderSlot(y.$slots,"tp-inline-arrow-down",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[P[4]||(P[4]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),P[5]||(P[5]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.$slots["arrow-down"]?t.renderSlot(y.$slots,"arrow-down",{key:0}):t.createCommentVNode("",!0),y.$slots["arrow-down"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Jr),{key:1}))],64))],42,Pu)],64))],2)}),128)),y.is24?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ou,[y.$slots["am-pm-button"]?t.renderSlot(y.$slots,"am-pm-button",{key:0,toggle:ee,value:g.value}):t.createCommentVNode("",!0),y.$slots["am-pm-button"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:k,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(I=t.unref(l))==null?void 0:I.amPmButton,tabindex:"0",onClick:ee,onKeydown:P[0]||(P[0]=H=>t.unref(wt)(H,()=>ee(),!0))},t.toDisplayString(g.value),41,Fu))])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,(H,te)=>(t.openBlock(),t.createBlock(t.Transition,{key:te,name:t.unref(d)(h[H.type]),css:t.unref(p)},{default:t.withCtx(()=>{var j,ne;return[h[H.type]?(t.openBlock(),t.createBlock(gn,{key:0,items:V(H.type),"is-last":y.autoApply&&!t.unref(u).keepActionRow,"esc-close":y.escClose,type:H.type,"text-input":y.textInput,config:y.config,"arrow-navigation":y.arrowNavigation,"aria-labels":y.ariaLabels,"overlay-label":(ne=(j=t.unref(l)).timeOverlay)==null?void 0:ne.call(j,H.type),onSelected:ue=>C(H.type,ue),onToggle:ue=>M(H.type),onResetFlow:P[1]||(P[1]=ue=>y.$emit("reset-flow"))},t.createSlots({"button-icon":t.withCtx(()=>[y.$slots["clock-icon"]?t.renderSlot(y.$slots,"clock-icon",{key:0}):t.createCommentVNode("",!0),y.$slots["clock-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.timePickerInline?t.unref(ja):t.unref(Qr)),{key:1}))]),_:2},[y.$slots[`${H.type}-overlay-value`]?{name:"item",fn:t.withCtx(({item:ue})=>[t.renderSlot(y.$slots,`${H.type}-overlay-value`,{text:ue.text,value:ue.value})]),key:"0"}:void 0,y.$slots[`${H.type}-overlay-header`]?{name:"header",fn:t.withCtx(()=>[t.renderSlot(y.$slots,`${H.type}-overlay-header`,{toggle:()=>M(H.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):t.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),$u={class:"dp--tp-wrap"},Ru=["aria-label","tabindex"],Hu=["role","aria-label","tabindex"],zu=["aria-label"],Js=t.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...Ht},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:a,emit:n}){const r=n,o=e,{buildMatrix:i,setTimePicker:s}=da(),l=t.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:m,defaultedTextInput:u,defaultedConfig:f,defaultedRange:d}=Ze(o),{transitionName:p,showTransition:h}=kn(c),{hideNavigationButtons:g}=Kn(),k=t.ref(null),v=t.ref(null),x=t.ref([]),b=t.ref(null),A=t.ref(!1);t.onMounted(()=>{r("mount"),!o.timePicker&&o.arrowNavigation?i([ct(k.value)],"time"):s(!0,o.timePicker)});const _=t.computed(()=>d.value.enabled&&o.modelAuto?_s(o.internalModelValue):!0),O=t.ref(!1),N=V=>({hours:Array.isArray(o.hours)?o.hours[V]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[V]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[V]:o.seconds}),S=t.computed(()=>{const V=[];if(d.value.enabled)for(let w=0;w<2;w++)V.push(N(w));else V.push(N(0));return V}),B=(V,w=!1,X="")=>{w||r("reset-flow"),O.value=V,r(V?"overlay-opened":"overlay-closed",yt.time),o.arrowNavigation&&s(V),t.nextTick(()=>{X!==""&&x.value[0]&&x.value[0].openChildCmp(X)})},G=t.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),T=Vt(l,"timePicker"),Q=(V,w,X)=>d.value.enabled?w===0?[V,S.value[1][X]]:[S.value[0][X],V]:V,U=V=>{r("update:hours",V)},E=V=>{r("update:minutes",V)},D=V=>{r("update:seconds",V)},F=()=>{if(b.value&&!u.value.enabled&&!o.noOverlayFocus){const V=Ts(b.value);V&&V.focus({preventScroll:!0})}},q=V=>{A.value=!1,r("overlay-closed",V)},oe=V=>{A.value=!0,r("overlay-opened",V)};return a({toggleTimePicker:B}),(V,w)=>{var X;return t.openBlock(),t.createElementBlock("div",$u,[!V.timePicker&&!V.timePickerInline?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:k,type:"button",class:t.normalizeClass({...G.value,"dp--hidden-el":O.value}),"aria-label":(X=t.unref(m))==null?void 0:X.openTimePicker,tabindex:V.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:w[0]||(w[0]=K=>t.unref(wt)(K,()=>B(!0))),onClick:w[1]||(w[1]=K=>B(!0))},[V.$slots["clock-icon"]?t.renderSlot(V.$slots,"clock-icon",{key:0}):t.createCommentVNode("",!0),V.$slots["clock-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Qr),{key:1}))],42,Ru)),[[t.vShow,!t.unref(g)(V.hideNavigation,"time")]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:t.unref(p)(O.value),css:t.unref(h)&&!V.timePickerInline},{default:t.withCtx(()=>{var K,W;return[O.value||V.timePicker||V.timePickerInline?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:b,role:V.timePickerInline?void 0:"dialog",class:t.normalizeClass({dp__overlay:!V.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!V.timePickerInline,"dp--overlay-relative":o.timePicker}),style:t.normalizeStyle(V.timePicker?{height:`${t.unref(f).modeHeight}px`}:void 0),"aria-label":(K=t.unref(m))==null?void 0:K.timePicker,tabindex:V.timePickerInline?void 0:0},[t.createElementVNode("div",{class:t.normalizeClass(V.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[V.$slots["time-picker-overlay"]?t.renderSlot(V.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:U,setMinutes:E,setSeconds:D}):t.createCommentVNode("",!0),V.$slots["time-picker-overlay"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(V.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,(M,J)=>t.withDirectives((t.openBlock(),t.createBlock(Lu,t.mergeProps({key:J,ref_for:!0},{...V.$props,order:J,hours:M.hours,minutes:M.minutes,seconds:M.seconds,closeTimePickerBtn:v.value,disabledTimesConfig:e.disabledTimesConfig,disabled:J===0?t.unref(d).fixedStart:t.unref(d).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:x,"validate-time":(ce,z)=>e.validateTime(ce,Q(z,J,ce)),"onUpdate:hours":ce=>U(Q(ce,J,"hours")),"onUpdate:minutes":ce=>E(Q(ce,J,"minutes")),"onUpdate:seconds":ce=>D(Q(ce,J,"seconds")),onMounted:F,onOverlayClosed:q,onOverlayOpened:oe,onAmPmChange:w[2]||(w[2]=ce=>V.$emit("am-pm-change",ce))}),t.createSlots({_:2},[t.renderList(t.unref(T),(ce,z)=>({name:ce,fn:t.withCtx(he=>[t.renderSlot(V.$slots,ce,t.mergeProps({ref_for:!0},he))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[t.vShow,J===0?!0:_.value]])),128))],2)),!V.timePicker&&!V.timePickerInline?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:v,type:"button",class:t.normalizeClass({...G.value,"dp--hidden-el":A.value}),"aria-label":(W=t.unref(m))==null?void 0:W.closeTimePicker,tabindex:"0",onKeydown:w[3]||(w[3]=M=>t.unref(wt)(M,()=>B(!1))),onClick:w[4]||(w[4]=M=>B(!1))},[V.$slots["calendar-icon"]?t.renderSlot(V.$slots,"calendar-icon",{key:0}):t.createCommentVNode("",!0),V.$slots["calendar-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(ja),{key:1}))],42,zu)),[[t.vShow,!t.unref(g)(V.hideNavigation,"time")]]):t.createCommentVNode("",!0)],2)],14,Hu)):t.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),el=(e,a,n,r)=>{const{defaultedRange:o}=Ze(e),i=(b,A)=>Array.isArray(a[b])?a[b][A]:a[b],s=b=>e.enableSeconds?Array.isArray(a.seconds)?a.seconds[b]:a.seconds:0,l=(b,A)=>b?A!==void 0?la(b,i("hours",A),i("minutes",A),s(A)):la(b,a.hours,a.minutes,s()):Ss(ge(),s(A)),c=(b,A)=>{a[b]=A},m=t.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),u=(b,A)=>{const _=Object.fromEntries(Object.keys(a).map(O=>O===b?[O,A]:[O,a[O]].slice()));if(m.value&&!o.value.disableTimeRangeValidation){const O=S=>n.value?la(n.value[S],_.hours[S],_.minutes[S],_.seconds[S]):null,N=S=>Cs(n.value[S],0);return!(Fe(O(0),O(1))&&(za(O(0),N(1))||mn(O(1),N(0))))}return!0},f=(b,A)=>{u(b,A)&&(c(b,A),r&&r())},d=b=>{f("hours",b)},p=b=>{f("minutes",b)},h=b=>{f("seconds",b)},g=(b,A,_,O)=>{A&&d(b),!A&&!_&&p(b),_&&h(b),n.value&&O(n.value)},k=b=>{if(b){const A=Array.isArray(b),_=A?[+b[0].hours,+b[1].hours]:+b.hours,O=A?[+b[0].minutes,+b[1].minutes]:+b.minutes,N=A?[+b[0].seconds,+b[1].seconds]:+b.seconds;c("hours",_),c("minutes",O),e.enableSeconds&&c("seconds",N)}},v=(b,A)=>{const _={hours:Array.isArray(a.hours)?a.hours[b]:a.hours,disabledArr:[]};return(A||A===0)&&(_.hours=A),Array.isArray(e.disabledTimes)&&(_.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[b])?e.disabledTimes[b]:e.disabledTimes),_},x=t.computed(()=>(b,A)=>{var _;if(Array.isArray(e.disabledTimes)){const{disabledArr:O,hours:N}=v(b,A),S=O.filter(B=>+B.hours===N);return((_=S[0])==null?void 0:_.minutes)==="*"?{hours:[N],minutes:void 0,seconds:void 0}:{hours:[],minutes:(S==null?void 0:S.map(B=>+B.minutes))??[],seconds:(S==null?void 0:S.map(B=>B.seconds?+B.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:d,updateMinutes:p,updateSeconds:h,getSetDateTime:l,updateTimeValues:g,getSecondsValue:s,assignStartTime:k,validateTime:u,disabledTimesConfig:x}},Iu=(e,a)=>{const n=()=>{e.isTextInputDate&&A()},{modelValue:r,time:o}=bn(e,a,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=Ze(e),{updateTimeValues:c,getSetDateTime:m,setTime:u,assignStartTime:f,disabledTimesConfig:d,validateTime:p}=el(e,o,r,h);function h(){a("update-flow-step")}const g=O=>{const{hours:N,minutes:S,seconds:B}=O;return{hours:+N,minutes:+S,seconds:B?+B:0}},k=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const N=g(e.startTime[0]),S=g(e.startTime[1]);return[We(ge(),N),We(ge(),S)]}const O=g(e.startTime);return We(ge(),O)}return s.value.enabled?[null,null]:null},v=()=>{if(s.value.enabled){const[O,N]=k();r.value=[At(m(O,0),l.value.timezone),At(m(N,1),l.value.timezone)]}else r.value=At(m(k()),l.value.timezone)},x=O=>Array.isArray(O)?[Na(ge(O[0])),Na(ge(O[1]))]:[Na(O??ge())],b=(O,N,S)=>{u("hours",O),u("minutes",N),u("seconds",e.enableSeconds?S:0)},A=()=>{const[O,N]=x(r.value);return s.value.enabled?b([O.hours,N.hours],[O.minutes,N.minutes],[O.seconds,N.seconds]):b(O.hours,O.minutes,O.seconds)};t.onMounted(()=>{if(!e.shadow)return f(i.value),r.value?A():v()});const _=()=>{Array.isArray(r.value)?r.value=r.value.map((O,N)=>O&&m(O,N)):r.value=m(r.value),a("time-update")};return{modelValue:r,time:o,disabledTimesConfig:d,updateTime:(O,N=!0,S=!1)=>{c(O,N,S,_)},validateTime:p}},Gu=t.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...Ht},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.useSlots(),s=Vt(i,"timePicker"),l=t.ref(null),{time:c,modelValue:m,disabledTimesConfig:u,updateTime:f,validateTime:d}=Iu(o,r);return t.onMounted(()=>{o.shadow||r("mount",null)}),a({getSidebarProps:()=>({modelValue:m,time:c,updateTime:f}),toggleTimePicker:(p,h=!1,g="")=>{var k;(k=l.value)==null||k.toggleTimePicker(p,h,g)}}),(p,h)=>(t.openBlock(),t.createBlock(Zn,{"multi-calendars":0,stretch:""},{default:t.withCtx(()=>[t.createVNode(Js,t.mergeProps({ref_key:"tpRef",ref:l},p.$props,{hours:t.unref(c).hours,minutes:t.unref(c).minutes,seconds:t.unref(c).seconds,"internal-model-value":p.internalModelValue,"disabled-times-config":t.unref(u),"validate-time":t.unref(d),"onUpdate:hours":h[0]||(h[0]=g=>t.unref(f)(g)),"onUpdate:minutes":h[1]||(h[1]=g=>t.unref(f)(g,!1)),"onUpdate:seconds":h[2]||(h[2]=g=>t.unref(f)(g,!1,!0)),onAmPmChange:h[3]||(h[3]=g=>p.$emit("am-pm-change",g)),onResetFlow:h[4]||(h[4]=g=>p.$emit("reset-flow")),onOverlayClosed:h[5]||(h[5]=g=>p.$emit("overlay-toggle",{open:!1,overlay:g})),onOverlayOpened:h[6]||(h[6]=g=>p.$emit("overlay-toggle",{open:!0,overlay:g}))}),t.createSlots({_:2},[t.renderList(t.unref(s),(g,k)=>({name:g,fn:t.withCtx(v=>[t.renderSlot(p.$slots,g,t.normalizeProps(t.guardReactiveProps(v)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),ju={class:"dp--header-wrap"},qu={key:0,class:"dp__month_year_wrap"},Wu={key:0},Yu={class:"dp__month_year_wrap"},Uu=["data-dp-element","aria-label","data-test","onClick","onKeydown"],Xu=t.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...Ht},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:a,emit:n}){const r=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:m,defaultedHighlight:u,propDates:f,defaultedUI:d}=Ze(o),{transitionName:p,showTransition:h}=kn(i),{buildMatrix:g}=da(),{handleMonthYearChange:k,isDisabled:v,updateMonthYear:x}=yu(o,r),{showLeftIcon:b,showRightIcon:A}=Kn(),_=t.ref(!1),O=t.ref(!1),N=t.ref(!1),S=t.ref([null,null,null,null]);t.onMounted(()=>{r("mount")});const B=W=>({get:()=>o[W],set:M=>{const J=W===$t.month?$t.year:$t.month;r("update-month-year",{[W]:M,[J]:o[J]}),W===$t.month?q(!0):oe(!0)}}),G=t.computed(B($t.month)),T=t.computed(B($t.year)),Q=t.computed(()=>W=>({month:o.month,year:o.year,items:W===$t.month?o.months:o.years,instance:o.instance,updateMonthYear:x,toggle:W===$t.month?q:oe})),U=t.computed(()=>o.months.find(M=>M.value===o.month)||{text:"",value:0}),E=t.computed(()=>qa(o.months,W=>{const M=o.month===W.value,J=hn(W.value,Ls(o.year,f.value.minDate),$s(o.year,f.value.maxDate))||c.value.months.includes(W.value),ce=js(u.value,W.value,o.year);return{active:M,disabled:J,highlighted:ce}})),D=t.computed(()=>qa(o.years,W=>{const M=o.year===W.value,J=hn(W.value,Wa(f.value.minDate),Wa(f.value.maxDate))||c.value.years.includes(W.value),ce=mo(u.value,W.value);return{active:M,disabled:J,highlighted:ce}})),F=(W,M,J)=>{J!==void 0?W.value=J:W.value=!W.value,W.value?(N.value=!0,r("overlay-opened",M)):(N.value=!1,r("overlay-closed",M))},q=(W=!1,M)=>{V(W),F(_,yt.month,M)},oe=(W=!1,M)=>{V(W),F(O,yt.year,M)},V=W=>{W||r("reset-flow")},w=(W,M)=>{o.arrowNavigation&&(S.value[M]=ct(W),g(S.value,"monthYear"))},X=t.computed(()=>{var W,M,J,ce,z,he;return[{type:$t.month,index:1,toggle:q,modelValue:G.value,updateModelValue:ee=>G.value=ee,text:U.value.text,showSelectionGrid:_.value,items:E.value,ariaLabel:(W=s.value)==null?void 0:W.openMonthsOverlay,overlayLabel:((J=(M=s.value).monthPicker)==null?void 0:J.call(M,!0))??void 0},{type:$t.year,index:2,toggle:oe,modelValue:T.value,updateModelValue:ee=>T.value=ee,text:Ps(o.year,o.locale),showSelectionGrid:O.value,items:D.value,ariaLabel:(ce=s.value)==null?void 0:ce.openYearsOverlay,overlayLabel:((he=(z=s.value).yearPicker)==null?void 0:he.call(z,!0))??void 0}]}),K=t.computed(()=>o.disableYearSelect?[X.value[0]]:o.yearFirst?[...X.value].reverse():X.value);return a({toggleMonthPicker:q,toggleYearPicker:oe,handleMonthYearChange:k}),(W,M)=>{var J,ce,z,he,ee,fe;return t.openBlock(),t.createElementBlock("div",ju,[W.$slots["month-year"]?(t.openBlock(),t.createElementBlock("div",qu,[t.renderSlot(W.$slots,"month-year",t.normalizeProps(t.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:t.unref(x),handleMonthYearChange:t.unref(k),instance:e.instance})))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.$slots["top-extra"]?(t.openBlock(),t.createElementBlock("div",Wu,[t.renderSlot(W.$slots,"top-extra",{value:W.internalModelValue})])):t.createCommentVNode("",!0),t.createElementVNode("div",Yu,[t.unref(b)(t.unref(l),e.instance)&&!W.vertical?(t.openBlock(),t.createBlock(yn,{key:0,"aria-label":(J=t.unref(s))==null?void 0:J.prevMonth,disabled:t.unref(v)(!1),class:t.normalizeClass((ce=t.unref(d))==null?void 0:ce.navBtnPrev),"el-name":"action-prev",onActivate:M[0]||(M[0]=L=>t.unref(k)(!1,!0)),onSetRef:M[1]||(M[1]=L=>w(L,0))},{default:t.withCtx(()=>[W.$slots["arrow-left"]?t.renderSlot(W.$slots,"arrow-left",{key:0}):t.createCommentVNode("",!0),W.$slots["arrow-left"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Xr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:W.disableYearSelect}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.value,(L,C)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:L.type},[t.createElementVNode("button",{ref_for:!0,ref:y=>w(y,C+1),type:"button","data-dp-element":`overlay-${L.type}`,class:t.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":N.value}]),"aria-label":`${L.text}-${L.ariaLabel}`,"data-test":`${L.type}-toggle-overlay-${e.instance}`,onClick:L.toggle,onKeydown:y=>t.unref(wt)(y,()=>L.toggle(),!0)},[W.$slots[L.type]?t.renderSlot(W.$slots,L.type,{key:0,text:L.text,value:o[L.type]}):t.createCommentVNode("",!0),W.$slots[L.type]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.text),1)],64))],42,Uu),t.createVNode(t.Transition,{name:t.unref(p)(L.showSelectionGrid),css:t.unref(h)},{default:t.withCtx(()=>[L.showSelectionGrid?(t.openBlock(),t.createBlock(gn,{key:0,items:L.items,"arrow-navigation":W.arrowNavigation,"hide-navigation":W.hideNavigation,"is-last":W.autoApply&&!t.unref(m).keepActionRow,"skip-button-ref":!1,config:W.config,type:L.type,"header-refs":[],"esc-close":W.escClose,"menu-wrap-ref":W.menuWrapRef,"text-input":W.textInput,"aria-labels":W.ariaLabels,"overlay-label":L.overlayLabel,onSelected:L.updateModelValue,onToggle:L.toggle},t.createSlots({"button-icon":t.withCtx(()=>[W.$slots["calendar-icon"]?t.renderSlot(W.$slots,"calendar-icon",{key:0}):t.createCommentVNode("",!0),W.$slots["calendar-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(ja),{key:1}))]),_:2},[W.$slots[`${L.type}-overlay-value`]?{name:"item",fn:t.withCtx(({item:y})=>[t.renderSlot(W.$slots,`${L.type}-overlay-value`,{text:y.text,value:y.value})]),key:"0"}:void 0,W.$slots[`${L.type}-overlay`]?{name:"overlay",fn:t.withCtx(()=>[t.renderSlot(W.$slots,`${L.type}-overlay`,t.mergeProps({ref_for:!0},Q.value(L.type)))]),key:"1"}:void 0,W.$slots[`${L.type}-overlay-header`]?{name:"header",fn:t.withCtx(()=>[t.renderSlot(W.$slots,`${L.type}-overlay-header`,{toggle:L.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):t.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),t.unref(b)(t.unref(l),e.instance)&&W.vertical?(t.openBlock(),t.createBlock(yn,{key:1,"aria-label":(z=t.unref(s))==null?void 0:z.prevMonth,"el-name":"action-prev",disabled:t.unref(v)(!1),class:t.normalizeClass((he=t.unref(d))==null?void 0:he.navBtnPrev),onActivate:M[2]||(M[2]=L=>t.unref(k)(!1,!0))},{default:t.withCtx(()=>[W.$slots["arrow-up"]?t.renderSlot(W.$slots,"arrow-up",{key:0}):t.createCommentVNode("",!0),W.$slots["arrow-up"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Kr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0),t.unref(A)(t.unref(l),e.instance)?(t.openBlock(),t.createBlock(yn,{key:2,ref:"rightIcon","el-name":"action-next",disabled:t.unref(v)(!0),"aria-label":(ee=t.unref(s))==null?void 0:ee.nextMonth,class:t.normalizeClass((fe=t.unref(d))==null?void 0:fe.navBtnNext),onActivate:M[3]||(M[3]=L=>t.unref(k)(!0,!0)),onSetRef:M[4]||(M[4]=L=>w(L,W.disableYearSelect?2:3))},{default:t.withCtx(()=>[W.$slots[W.vertical?"arrow-down":"arrow-right"]?t.renderSlot(W.$slots,W.vertical?"arrow-down":"arrow-right",{key:0}):t.createCommentVNode("",!0),W.$slots[W.vertical?"arrow-down":"arrow-right"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(W.vertical?t.unref(Jr):t.unref(Zr)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):t.createCommentVNode("",!0)])],64))])}}}),Zu={class:"dp__calendar_header",role:"row"},Qu={key:0,class:"dp__calendar_header_item",role:"gridcell"},Ku=["aria-label"],Ju={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},e4={class:"dp__cell_inner"},t4=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],a4=t.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...Ht},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:a,emit:n}){const r=n,o=e,{buildMultiLevelMatrix:i}=da(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:m,defaultedWeekNumbers:u,defaultedMultiDates:f,defaultedUI:d}=Ze(o),p=t.ref(null),h=t.ref({bottom:"",left:"",transform:""}),g=t.ref([]),k=t.ref(null),v=t.ref(!0),x=t.ref(""),b=t.ref({startX:0,endX:0,startY:0,endY:0}),A=t.ref([]),_=t.ref({left:"50%"}),O=t.ref(!1),N=t.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),S=t.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):R3(o.formatLocale,o.locale,+o.weekStart));t.onMounted(()=>{r("mount",{cmp:"calendar",refs:g}),l.value.noSwipe||k.value&&(k.value.addEventListener("touchstart",w,{passive:!1}),k.value.addEventListener("touchend",X,{passive:!1}),k.value.addEventListener("touchmove",K,{passive:!1})),o.monthChangeOnScroll&&k.value&&k.value.addEventListener("wheel",J,{passive:!1})});const B=L=>L?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",G=(L,C)=>{if(o.transitions){const y=vt(Jt(ge(),o.month,o.year));x.value=it(vt(Jt(ge(),L,C)),y)?s.value[B(!0)]:s.value[B(!1)],v.value=!1,t.nextTick(()=>{v.value=!0})}},T=t.computed(()=>({...d.value.calendar??{}})),Q=t.computed(()=>L=>{const C=z3(L);return{dp__marker_dot:C.type==="dot",dp__marker_line:C.type==="line"}}),U=t.computed(()=>L=>Fe(L,p.value)),E=t.computed(()=>({dp__calendar:!0,dp__calendar_next:m.value.count>0&&o.instance!==0})),D=t.computed(()=>L=>o.hideOffsetDates?L.current:!0),F=async(L,C)=>{const{width:y,height:P}=L.getBoundingClientRect();p.value=C.value;let I={left:`${y/2}px`},H=-50;if(await t.nextTick(),A.value[0]){const{left:te,width:j}=A.value[0].getBoundingClientRect();te<0&&(I={left:"0"},H=0,_.value.left=`${y/2}px`),window.innerWidth<te+j&&(I={right:"0"},H=0,_.value.left=`${j-y/2}px`)}h.value={bottom:`${P}px`,...I,transform:`translateX(${H}%)`}},q=async(L,C,y)=>{var P,I,H;const te=ct(g.value[C][y]);te&&((P=L.marker)!=null&&P.customPosition&&(H=(I=L.marker)==null?void 0:I.tooltip)!=null&&H.length?h.value=L.marker.customPosition(te):await F(te,L),r("tooltip-open",L.marker))},oe=async(L,C,y)=>{var P,I;if(O.value&&f.value.enabled&&f.value.dragSelect)return r("select-date",L);r("set-hover-date",L),(I=(P=L.marker)==null?void 0:P.tooltip)!=null&&I.length&&await q(L,C,y)},V=L=>{p.value&&(p.value=null,h.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",L.marker))},w=L=>{b.value.startX=L.changedTouches[0].screenX,b.value.startY=L.changedTouches[0].screenY},X=L=>{b.value.endX=L.changedTouches[0].screenX,b.value.endY=L.changedTouches[0].screenY,W()},K=L=>{o.vertical&&!o.inline&&L.preventDefault()},W=()=>{const L=o.vertical?"Y":"X";Math.abs(b.value[`start${L}`]-b.value[`end${L}`])>10&&r("handle-swipe",b.value[`start${L}`]>b.value[`end${L}`]?"right":"left")},M=(L,C,y)=>{L&&(Array.isArray(g.value[C])?g.value[C][y]=L:g.value[C]=[L]),o.arrowNavigation&&i(g.value,"calendar")},J=L=>{o.monthChangeOnScroll&&(L.preventDefault(),r("handle-scroll",L))},ce=L=>u.value.type==="local"?Gr(L.value,{weekStartsOn:+o.weekStart}):u.value.type==="iso"?zr(L.value):typeof u.value.type=="function"?u.value.type(L.value):"",z=L=>{const C=L[0];return u.value.hideOnOffsetDates?L.some(y=>y.current)?ce(C):"":ce(C)},he=(L,C,y=!0)=>{y&&Os()||!y&&!Os()||f.value.enabled||(sa(L,l.value),r("select-date",C))},ee=L=>{sa(L,l.value)},fe=L=>{f.value.enabled&&f.value.dragSelect?(O.value=!0,r("select-date",L)):f.value.enabled&&r("select-date",L)};return a({triggerTransition:G}),(L,C)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(E.value)},[t.createElementVNode("div",{ref_key:"calendarWrapRef",ref:k,class:t.normalizeClass(T.value),role:"grid"},[t.createElementVNode("div",Zu,[L.weekNumbers?(t.openBlock(),t.createElementBlock("div",Qu,t.toDisplayString(L.weekNumName),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,(y,P)=>{var I,H;return t.openBlock(),t.createElementBlock("div",{key:P,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(H=(I=t.unref(c))==null?void 0:I.weekDay)==null?void 0:H.call(I,P)},[L.$slots["calendar-header"]?t.renderSlot(L.$slots,"calendar-header",{key:0,day:y,index:P}):t.createCommentVNode("",!0),L.$slots["calendar-header"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y),1)],64))],8,Ku)}),128))]),C[2]||(C[2]=t.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),t.createVNode(t.Transition,{name:x.value,css:!!L.transitions},{default:t.withCtx(()=>[v.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:C[1]||(C[1]=y=>O.value=!1)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(y,P)=>(t.openBlock(),t.createElementBlock("div",{key:P,class:"dp__calendar_row",role:"row"},[L.weekNumbers?(t.openBlock(),t.createElementBlock("div",Ju,[t.createElementVNode("div",e4,t.toDisplayString(z(y.days)),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.days,(I,H)=>{var te,j,ne;return t.openBlock(),t.createElementBlock("div",{id:t.unref(qs)(I.value),ref_for:!0,ref:ue=>M(ue,P,H),key:H+P,role:"gridcell",class:"dp__calendar_item","aria-pressed":(I.classData.dp__active_date||I.classData.dp__range_start||I.classData.dp__range_start)??void 0,"aria-disabled":I.classData.dp__cell_disabled||void 0,"aria-label":(j=(te=t.unref(c))==null?void 0:te.day)==null?void 0:j.call(te,I),tabindex:!I.current&&L.hideOffsetDates?void 0:0,"data-test":I.value,onClick:t.withModifiers(ue=>he(ue,I),["prevent"]),onTouchend:ue=>he(ue,I,!1),onKeydown:ue=>t.unref(wt)(ue,()=>L.$emit("select-date",I)),onMouseenter:ue=>oe(I,P,H),onMouseleave:ue=>V(I),onMousedown:ue=>fe(I),onMouseup:C[0]||(C[0]=ue=>O.value=!1)},[t.createElementVNode("div",{class:t.normalizeClass(["dp__cell_inner",I.classData])},[L.$slots.day&&D.value(I)?t.renderSlot(L.$slots,"day",{key:0,day:+I.text,date:I.value}):t.createCommentVNode("",!0),L.$slots.day?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(I.text),1)],64)),I.marker&&D.value(I)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[L.$slots.marker?t.renderSlot(L.$slots,"marker",{key:0,marker:I.marker,day:+I.text,date:I.value}):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(Q.value(I.marker)),style:t.normalizeStyle(I.marker.color?{backgroundColor:I.marker.color}:{})},null,6))],64)):t.createCommentVNode("",!0),U.value(I.value)?(t.openBlock(),t.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:A,class:"dp__marker_tooltip",style:t.normalizeStyle(h.value)},[(ne=I.marker)!=null&&ne.tooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:ee},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.marker.tooltip,(ue,ye)=>(t.openBlock(),t.createElementBlock("div",{key:ye,class:"dp__tooltip_text"},[L.$slots["marker-tooltip"]?t.renderSlot(L.$slots,"marker-tooltip",{key:0,tooltip:ue,day:I.value}):t.createCommentVNode("",!0),L.$slots["marker-tooltip"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:"dp__tooltip_mark",style:t.normalizeStyle(ue.color?{backgroundColor:ue.color}:{})},null,4),t.createElementVNode("div",null,t.toDisplayString(ue.text),1)],64))]))),128)),t.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:t.normalizeStyle(_.value)},null,4)])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)],2)],40,t4)}),128))]))),128))],32)):t.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),tl=e=>Array.isArray(e),n4=(e,a,n,r)=>{const o=t.ref([]),i=t.ref(new Date),s=t.ref(),l=()=>w(e.isTextInputDate),{modelValue:c,calendars:m,time:u,today:f}=bn(e,a,l),{defaultedMultiCalendars:d,defaultedStartTime:p,defaultedRange:h,defaultedConfig:g,defaultedTz:k,propDates:v,defaultedMultiDates:x}=Ze(e),{validateMonthYearInRange:b,isDisabled:A,isDateRangeAllowed:_,checkMinMaxRange:O}=fa(e),{updateTimeValues:N,getSetDateTime:S,setTime:B,assignStartTime:G,validateTime:T,disabledTimesConfig:Q}=el(e,u,c,r),U=t.computed(()=>Y=>m.value[Y]?m.value[Y].month:0),E=t.computed(()=>Y=>m.value[Y]?m.value[Y].year:0),D=Y=>!g.value.keepViewOnOffsetClick||Y?!0:!s.value,F=(Y,R,$,ae=!1)=>{var le,xe;D(ae)&&(m.value[Y]||(m.value[Y]={month:0,year:0}),m.value[Y].month=Ds(R)?(le=m.value[Y])==null?void 0:le.month:R,m.value[Y].year=Ds($)?(xe=m.value[Y])==null?void 0:xe.year:$)},q=()=>{e.autoApply&&a("select-date")};t.onMounted(()=>{e.shadow||(c.value||(L(),p.value&&G(p.value)),w(!0),e.focusStartDate&&e.startDate&&L())});const oe=t.computed(()=>{var Y;return(Y=e.flow)!=null&&Y.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),V=()=>{e.autoApply&&oe.value&&a("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},w=(Y=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,z(Y)):W(c.value,Y);if(d.value.count&&Y&&!e.startDate)return K(ge(),Y)},X=()=>Array.isArray(c.value)&&h.value.enabled?Oe(c.value[0])===Oe(c.value[1]??c.value[0]):!1,K=(Y=new Date,R=!1)=>{if((!d.value.count||!d.value.static||R)&&F(0,Oe(Y),Ve(Y)),d.value.count&&(!d.value.solo||!c.value||X()))for(let $=1;$<d.value.count;$++){const ae=We(ge(),{month:U.value($-1),year:E.value($-1)}),le=Qi(ae,{months:1});m.value[$]={month:Oe(le),year:Ve(le)}}},W=(Y,R)=>{K(Y),B("hours",Qt(Y)),B("minutes",ia(Y)),B("seconds",Ha(Y)),d.value.count&&R&&fe()},M=Y=>{if(d.value.count){if(d.value.solo)return 0;const R=Oe(Y[0]),$=Oe(Y[1]);return Math.abs($-R)<d.value.count?0:1}return 1},J=(Y,R)=>{Y[1]&&h.value.showLastInRange?K(Y[M(Y)],R):K(Y[0],R);const $=(ae,le)=>[ae(Y[0]),Y[1]?ae(Y[1]):u[le][1]];B("hours",$(Qt,"hours")),B("minutes",$(ia,"minutes")),B("seconds",$(Ha,"seconds"))},ce=(Y,R)=>{if((h.value.enabled||e.weekPicker)&&!x.value.enabled)return J(Y,R);if(x.value.enabled&&R){const $=Y[Y.length-1];return W($,R)}},z=Y=>{const R=c.value;ce(R,Y),d.value.count&&d.value.solo&&fe()},he=(Y,R)=>{const $=We(ge(),{month:U.value(R),year:E.value(R)}),ae=Y<0?Ft($,1):Ga($,1);b(Oe(ae),Ve(ae),Y<0,e.preventMinMaxNavigation)&&(F(R,Oe(ae),Ve(ae)),a("update-month-year",{instance:R,month:Oe(ae),year:Ve(ae)}),d.value.count&&!d.value.solo&&ee(R),n())},ee=Y=>{for(let R=Y-1;R>=0;R--){const $=Ga(We(ge(),{month:U.value(R+1),year:E.value(R+1)}),1);F(R,Oe($),Ve($))}for(let R=Y+1;R<=d.value.count-1;R++){const $=Ft(We(ge(),{month:U.value(R-1),year:E.value(R-1)}),1);F(R,Oe($),Ve($))}},fe=()=>{if(Array.isArray(c.value)&&c.value.length===2){const Y=ge(ge(c.value[1]?c.value[1]:Ft(c.value[0],1))),[R,$]=[Oe(c.value[0]),Ve(c.value[0])],[ae,le]=[Oe(c.value[1]),Ve(c.value[1])];(R!==ae||R===ae&&$!==le)&&d.value.solo&&F(1,Oe(Y),Ve(Y))}else c.value&&!Array.isArray(c.value)&&(F(0,Oe(c.value),Ve(c.value)),K(ge()))},L=()=>{e.startDate&&(F(0,Oe(ge(e.startDate)),Ve(ge(e.startDate))),d.value.count&&ee(0))},C=(Y,R)=>{if(e.monthChangeOnScroll){const $=new Date().getTime()-i.value.getTime(),ae=Math.abs(Y.deltaY);let le=500;ae>1&&(le=100),ae>100&&(le=0),$>le&&(i.value=new Date,he(e.monthChangeOnScroll!=="inverse"?-Y.deltaY:Y.deltaY,R))}},y=(Y,R,$=!1)=>{e.monthChangeOnArrows&&e.vertical===$&&P(Y,R)},P=(Y,R)=>{he(Y==="right"?-1:1,R)},I=Y=>{if(v.value.markers)return qn(Y.value,v.value.markers)},H=(Y,R)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[Y==0,!0];case"fair":return[Y==0||R>Y,!0];case"append":return[!1,!1];default:return[!1,!1]}},te=(Y,R,$,ae)=>{if(e.sixWeeks&&Y.length<6){const le=6-Y.length,xe=(R.getDay()+7-ae)%7,Ae=6-($.getDay()+7-ae)%7,[De,Pe]=H(xe,Ae);for(let qe=1;qe<=le;qe++)if(Pe?!!(qe%2)==De:De){const nt=Y[0].days[0],bt=j(Ot(nt.value,-7),Oe(R));Y.unshift({days:bt})}else{const nt=Y[Y.length-1],bt=nt.days[nt.days.length-1],lt=j(Ot(bt.value,1),Oe(R));Y.push({days:lt})}}return Y},j=(Y,R)=>{const $=ge(Y),ae=[];for(let le=0;le<7;le++){const xe=Ot($,le),Ae=Oe(xe)!==R;ae.push({text:e.hideOffsetDates&&Ae?"":xe.getDate(),value:xe,current:!Ae,classData:{}})}return ae},ne=(Y,R)=>{const $=[],ae=new Date(R,Y),le=new Date(R,Y+1,0),xe=e.weekStart,Ae=Lt(ae,{weekStartsOn:xe}),De=Pe=>{const qe=j(Pe,Y);if($.push({days:qe}),!$[$.length-1].days.some(nt=>Fe(vt(nt.value),vt(le)))){const nt=Ot(Pe,7);De(nt)}};return De(Ae),te($,ae,le,xe)},ue=Y=>{const R=la(ge(Y.value),u.hours,u.minutes,Se());a("date-update",R),x.value.enabled?bo(R,c,x.value.limit):c.value=R,r(),t.nextTick().then(()=>{V()})},ye=Y=>h.value.noDisabledRange?Rs(o.value[0],Y).some(R=>A(R)):!1,be=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(h.value.fixedStart||h.value.fixedEnd)&&(o.value=[])},me=(Y,R)=>{const $=[ge(Y.value),Ot(ge(Y.value),+h.value.autoRange)];_($)?(R&&Me(Y.value),o.value=$):a("invalid-date",Y.value)},Me=Y=>{const R=Oe(ge(Y)),$=Ve(ge(Y));if(F(0,R,$),d.value.count>0)for(let ae=1;ae<d.value.count;ae++){const le=U3(We(ge(Y),{year:E.value(ae-1),month:U.value(ae-1)}));F(ae,le.month,le.year)}},_e=Y=>{if(ye(Y.value)||!O(Y.value,c.value,h.value.fixedStart?0:1))return a("invalid-date",Y.value);o.value=Qs(ge(Y.value),c,a,h)},Ne=(Y,R)=>{if(be(),h.value.autoRange)return me(Y,R);if(h.value.fixedStart||h.value.fixedEnd)return _e(Y);o.value[0]?O(ge(Y.value),c.value)&&!ye(Y.value)?tt(ge(Y.value),ge(o.value[0]))?(o.value.unshift(ge(Y.value)),a("range-end",o.value[0])):(o.value[1]=ge(Y.value),a("range-end",o.value[1])):(e.autoApply&&a("auto-apply-invalid",Y.value),a("invalid-date",Y.value)):(o.value[0]=ge(Y.value),a("range-start",o.value[0]))},Se=(Y=!0)=>e.enableSeconds?Array.isArray(u.seconds)?Y?u.seconds[0]:u.seconds[1]:u.seconds:0,Le=Y=>{o.value[Y]=la(o.value[Y],u.hours[Y],u.minutes[Y],Se(Y!==1))},Be=()=>{var Y,R;o.value[0]&&o.value[1]&&+((Y=o.value)==null?void 0:Y[0])>+((R=o.value)==null?void 0:R[1])&&(o.value.reverse(),a("range-start",o.value[0]),a("range-end",o.value[1]))},Z=()=>{o.value.length&&(o.value[0]&&!o.value[1]?Le(0):(Le(0),Le(1),r()),Be(),c.value=o.value.slice(),Qn(o.value,a,e.autoApply,e.modelAuto))},re=(Y,R=!1)=>{if(A(Y.value)||!Y.current&&e.hideOffsetDates)return a("invalid-date",Y.value);if(s.value=JSON.parse(JSON.stringify(Y)),!h.value.enabled)return ue(Y);tl(u.hours)&&tl(u.minutes)&&!x.value.enabled&&(Ne(Y,R),Z())},ie=(Y,R)=>{var $;F(Y,R.month,R.year,!0),d.value.count&&!d.value.solo&&ee(Y),a("update-month-year",{instance:Y,month:R.month,year:R.year}),n(d.value.solo?Y:void 0);const ae=($=e.flow)!=null&&$.length?e.flow[e.flowStep]:void 0;!R.fromNav&&(ae===yt.month||ae===yt.year)&&r()},de=(Y,R)=>{Zs({value:Y,modelValue:c,range:h.value.enabled,timezone:R?void 0:k.value.timezone}),q(),e.multiCalendars&&t.nextTick().then(()=>w(!0))},Ee=()=>{const Y=eo(ge(),k.value);h.value.enabled?c.value&&Array.isArray(c.value)&&c.value[0]?c.value=tt(Y,c.value[0])?[Y,c.value[0]]:[c.value[0],Y]:c.value=[Y]:c.value=Y,q()},pe=()=>{if(Array.isArray(c.value))if(x.value.enabled){const Y=ke();c.value[c.value.length-1]=S(Y)}else c.value=c.value.map((Y,R)=>Y&&S(Y,R));else c.value=S(c.value);a("time-update")},ke=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:m,modelValue:c,month:U,year:E,time:u,disabledTimesConfig:Q,today:f,validateTime:T,getCalendarDays:ne,getMarker:I,handleScroll:C,handleSwipe:P,handleArrow:y,selectDate:re,updateMonthYear:ie,presetDate:de,selectCurrentDate:Ee,updateTime:(Y,R=!0,$=!1)=>{N(Y,R,$,pe)},assignMonthAndYear:K}},r4={key:0},o4=t.defineComponent({__name:"DatePicker",props:{...Ht},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:m,disabledTimesConfig:u,today:f,validateTime:d,getCalendarDays:p,getMarker:h,handleArrow:g,handleScroll:k,handleSwipe:v,selectDate:x,updateMonthYear:b,presetDate:A,selectCurrentDate:_,updateTime:O,assignMonthAndYear:N}=n4(o,r,X,K),S=t.useSlots(),{setHoverDate:B,getDayClassData:G,clearHoverDate:T}=x4(c,o),{defaultedMultiCalendars:Q}=Ze(o),U=t.ref([]),E=t.ref([]),D=t.ref(null),F=Vt(S,"calendar"),q=Vt(S,"monthYear"),oe=Vt(S,"timePicker"),V=C=>{o.shadow||r("mount",C)};t.watch(i,()=>{o.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),t.watch(Q,(C,y)=>{C.count-y.count>0&&N()},{deep:!0});const w=t.computed(()=>C=>p(s.value(C),l.value(C)).map(y=>({...y,days:y.days.map(P=>(P.marker=h(P),P.classData=G(P),P))})));function X(C){var y;C||C===0?(y=E.value[C])==null||y.triggerTransition(s.value(C),l.value(C)):E.value.forEach((P,I)=>P.triggerTransition(s.value(I),l.value(I)))}function K(){r("update-flow-step")}const W=(C,y=!1)=>{x(C,y),o.spaceConfirm&&r("select-date")},M=(C,y,P=0)=>{var I;(I=U.value[P])==null||I.toggleMonthPicker(C,y)},J=(C,y,P=0)=>{var I;(I=U.value[P])==null||I.toggleYearPicker(C,y)},ce=(C,y,P)=>{var I;(I=D.value)==null||I.toggleTimePicker(C,y,P)},z=(C,y)=>{var P;if(!o.range){const I=c.value?c.value:f,H=y?new Date(y):I,te=C?Lt(H,{weekStartsOn:1}):ls(H,{weekStartsOn:1});x({value:te,current:Oe(H)===s.value(0),text:"",classData:{}}),(P=document.getElementById(qs(te)))==null||P.focus()}},he=C=>{var y;(y=U.value[0])==null||y.handleMonthYearChange(C,!0)},ee=C=>{b(0,{month:s.value(0),year:l.value(0)+(C?1:-1),fromNav:!0})},fe=(C,y)=>{C===yt.time&&r(`time-picker-${y?"open":"close"}`),r("overlay-toggle",{open:y,overlay:C})},L=C=>{r("overlay-toggle",{open:!1,overlay:C}),r("focus-menu")};return a({clearHoverDate:T,presetDate:A,selectCurrentDate:_,toggleMonthPicker:M,toggleYearPicker:J,toggleTimePicker:ce,handleArrow:g,updateMonthYear:b,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:m,updateTime:O,updateMonthYear:b,selectDate:x,presetDate:A}),changeMonth:he,changeYear:ee,selectWeekDate:z}),(C,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Zn,{"multi-calendars":t.unref(Q).count,collapse:C.collapse},{default:t.withCtx(({instance:P,index:I})=>[C.disableMonthYearSelect?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xu,t.mergeProps({key:0,ref:H=>{H&&(U.value[I]=H)},months:t.unref(Vs)(C.formatLocale,C.locale,C.monthNameFormat),years:t.unref(ao)(C.yearRange,C.locale,C.reverseYears),month:t.unref(s)(P),year:t.unref(l)(P),instance:P},C.$props,{onMount:y[0]||(y[0]=H=>V(t.unref(_a).header)),onResetFlow:y[1]||(y[1]=H=>C.$emit("reset-flow")),onUpdateMonthYear:H=>t.unref(b)(P,H),onOverlayClosed:L,onOverlayOpened:y[2]||(y[2]=H=>C.$emit("overlay-toggle",{open:!0,overlay:H}))}),t.createSlots({_:2},[t.renderList(t.unref(q),(H,te)=>({name:H,fn:t.withCtx(j=>[t.renderSlot(C.$slots,H,t.normalizeProps(t.guardReactiveProps(j)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),t.createVNode(a4,t.mergeProps({ref:H=>{H&&(E.value[I]=H)},"mapped-dates":w.value(P),month:t.unref(s)(P),year:t.unref(l)(P),instance:P},C.$props,{onSelectDate:H=>t.unref(x)(H,P!==1),onHandleSpace:H=>W(H,P!==1),onSetHoverDate:y[3]||(y[3]=H=>t.unref(B)(H)),onHandleScroll:H=>t.unref(k)(H,P),onHandleSwipe:H=>t.unref(v)(H,P),onMount:y[4]||(y[4]=H=>V(t.unref(_a).calendar)),onResetFlow:y[5]||(y[5]=H=>C.$emit("reset-flow")),onTooltipOpen:y[6]||(y[6]=H=>C.$emit("tooltip-open",H)),onTooltipClose:y[7]||(y[7]=H=>C.$emit("tooltip-close",H))}),t.createSlots({_:2},[t.renderList(t.unref(F),(H,te)=>({name:H,fn:t.withCtx(j=>[t.renderSlot(C.$slots,H,t.normalizeProps(t.guardReactiveProps({...j})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),C.enableTimePicker?(t.openBlock(),t.createElementBlock("div",r4,[C.$slots["time-picker"]?t.renderSlot(C.$slots,"time-picker",t.normalizeProps(t.mergeProps({key:0},{time:t.unref(m),updateTime:t.unref(O)}))):(t.openBlock(),t.createBlock(Js,t.mergeProps({key:1,ref_key:"timePickerRef",ref:D},C.$props,{hours:t.unref(m).hours,minutes:t.unref(m).minutes,seconds:t.unref(m).seconds,"internal-model-value":C.internalModelValue,"disabled-times-config":t.unref(u),"validate-time":t.unref(d),onMount:y[8]||(y[8]=P=>V(t.unref(_a).timePicker)),"onUpdate:hours":y[9]||(y[9]=P=>t.unref(O)(P)),"onUpdate:minutes":y[10]||(y[10]=P=>t.unref(O)(P,!1)),"onUpdate:seconds":y[11]||(y[11]=P=>t.unref(O)(P,!1,!0)),onResetFlow:y[12]||(y[12]=P=>C.$emit("reset-flow")),onOverlayClosed:y[13]||(y[13]=P=>fe(P,!1)),onOverlayOpened:y[14]||(y[14]=P=>fe(P,!0)),onAmPmChange:y[15]||(y[15]=P=>C.$emit("am-pm-change",P))}),t.createSlots({_:2},[t.renderList(t.unref(oe),(P,I)=>({name:P,fn:t.withCtx(H=>[t.renderSlot(C.$slots,P,t.normalizeProps(t.guardReactiveProps(H)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):t.createCommentVNode("",!0)],64))}}),i4=(e,a)=>{const n=t.ref(),{defaultedMultiCalendars:r,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:m}=Ze(e),{modelValue:u,year:f,month:d,calendars:p}=bn(e,a),{isDisabled:h}=fa(e),{selectYear:g,groupedYears:k,showYearPicker:v,isDisabled:x,toggleYearPicker:b,handleYearSelect:A,handleYear:_}=Ks({modelValue:u,multiCalendars:r,range:s,highlight:i,calendars:p,propDates:l,month:d,year:f,filters:c,props:e,emit:a}),O=(D,F)=>[D,F].map(q=>jt(q,"MMMM",{locale:e.formatLocale})).join("-"),N=t.computed(()=>D=>u.value?Array.isArray(u.value)?u.value.some(F=>vs(D,F)):vs(u.value,D):!1),S=D=>{if(s.value.enabled){if(Array.isArray(u.value)){const F=Fe(D,u.value[0])||Fe(D,u.value[1]);return Wn(u.value,n.value,D)&&!F}return!1}return!1},B=(D,F)=>D.quarter===os(F)&&D.year===Ve(F),G=D=>typeof i.value=="function"?i.value({quarter:os(D),year:Ve(D)}):!!i.value.quarters.find(F=>B(F,D)),T=t.computed(()=>D=>{const F=We(new Date,{year:f.value(D)});return I2({start:dn(F),end:ss(F)}).map(q=>{const oe=Ba(q),V=cs(q),w=h(q),X=S(oe),K=G(oe);return{text:O(oe,V),value:oe,active:N.value(oe),highlighted:K,disabled:w,isBetween:X}})}),Q=D=>{bo(D,u,m.value.limit),a("auto-apply",!0)},U=D=>{u.value=xo(u,D,a),Qn(u.value,a,e.autoApply,e.modelAuto)},E=D=>{u.value=D,a("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:r,groupedYears:k,year:f,isDisabled:x,quarters:T,showYearPicker:v,modelValue:u,setHoverDate:D=>{n.value=D},selectYear:g,selectQuarter:(D,F,q)=>{if(!q)return p.value[F].month=Oe(cs(D)),m.value.enabled?Q(D):s.value.enabled?U(D):E(D)},toggleYearPicker:b,handleYearSelect:A,handleYear:_}},s4={class:"dp--quarter-items"},l4=["data-test","disabled","onClick","onMouseover"],c4=t.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...Ht},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.useSlots(),s=Vt(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:m,year:u,isDisabled:f,quarters:d,modelValue:p,showYearPicker:h,setHoverDate:g,selectQuarter:k,toggleYearPicker:v,handleYearSelect:x,handleYear:b}=i4(o,r);return a({getSidebarProps:()=>({modelValue:p,year:u,selectQuarter:k,handleYearSelect:x,handleYear:b})}),(A,_)=>(t.openBlock(),t.createBlock(Zn,{"multi-calendars":t.unref(l).count,collapse:A.collapse,stretch:""},{default:t.withCtx(({instance:O})=>[t.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:t.normalizeStyle({minHeight:`${t.unref(c).modeHeight}px`})},[A.$slots["top-extra"]?t.renderSlot(A.$slots,"top-extra",{key:0,value:A.internalModelValue}):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createVNode(Xs,t.mergeProps(A.$props,{items:t.unref(m)(O),instance:O,"show-year-picker":t.unref(h)[O],year:t.unref(u)(O),"is-disabled":N=>t.unref(f)(O,N),onHandleYear:N=>t.unref(b)(O,N),onYearSelect:N=>t.unref(x)(N,O),onToggleYearPicker:N=>t.unref(v)(O,N==null?void 0:N.flow,N==null?void 0:N.show)}),t.createSlots({_:2},[t.renderList(t.unref(s),(N,S)=>({name:N,fn:t.withCtx(B=>[t.renderSlot(A.$slots,N,t.normalizeProps(t.guardReactiveProps(B)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),t.createElementVNode("div",s4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d)(O),(N,S)=>(t.openBlock(),t.createElementBlock("div",{key:S},[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":N.active,"dp--qr-btn-between":N.isBetween,"dp--qr-btn-disabled":N.disabled,"dp--highlighted":N.highlighted}]),"data-test":N.value,disabled:N.disabled,onClick:B=>t.unref(k)(N.value,O,N.disabled),onMouseover:B=>t.unref(g)(N.value)},[A.$slots.quarter?t.renderSlot(A.$slots,"quarter",{key:0,value:N.value,text:N.text}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(N.text),1)],64))],42,l4)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),d4=["id","tabindex","role","aria-label"],u4={key:0,class:"dp--menu-load-container"},f4={key:1,class:"dp--menu-header"},m4={key:0,class:"dp__sidebar_left"},h4=["data-test","onClick","onKeydown"],p4={key:2,class:"dp__sidebar_right"},g4={key:3,class:"dp__action_extra"},al=t.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Xn,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.ref(null),s=t.computed(()=>{const{openOnTop:j,...ne}=o;return{...ne,flowStep:B.value,collapse:o.collapse,noOverlayFocus:o.noOverlayFocus,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:m}=Ws(),u=t.useSlots(),{defaultedTextInput:f,defaultedInline:d,defaultedConfig:p,defaultedUI:h}=Ze(o),g=t.ref(null),k=t.ref(0),v=t.ref(null),x=t.ref(!1),b=t.ref(null);t.onMounted(()=>{if(!o.shadow){x.value=!0,A(),window.addEventListener("resize",A);const j=ct(i);if(j&&!f.value.enabled&&!d.value.enabled&&(l(!0),F()),j){const ne=ue=>{p.value.allowPreventDefault&&ue.preventDefault(),sa(ue,p.value,!0)};j.addEventListener("pointerdown",ne),j.addEventListener("mousedown",ne)}}}),t.onUnmounted(()=>{window.removeEventListener("resize",A)});const A=()=>{const j=ct(v);j&&(k.value=j.getBoundingClientRect().width)},{arrowRight:_,arrowLeft:O,arrowDown:N,arrowUp:S}=da(),{flowStep:B,updateFlowStep:G,childMount:T,resetFlow:Q,handleFlow:U}=w4(o,r,b),E=t.computed(()=>o.monthPicker?Au:o.yearPicker?_u:o.timePicker?Gu:o.quarterPicker?c4:o4),D=t.computed(()=>{var j;if(p.value.arrowLeft)return p.value.arrowLeft;const ne=(j=i.value)==null?void 0:j.getBoundingClientRect(),ue=o.getInputRect();return(ue==null?void 0:ue.width)<(k==null?void 0:k.value)&&(ue==null?void 0:ue.left)<=((ne==null?void 0:ne.left)??0)?`${(ue==null?void 0:ue.width)/2}px`:(ue==null?void 0:ue.right)>=((ne==null?void 0:ne.right)??0)&&(ue==null?void 0:ue.width)<(k==null?void 0:k.value)?`${(k==null?void 0:k.value)-(ue==null?void 0:ue.width)/2}px`:"50%"}),F=()=>{const j=ct(i);j&&j.focus({preventScroll:!0})},q=t.computed(()=>{var j;return((j=b.value)==null?void 0:j.getSidebarProps())||{}}),oe=()=>{o.openOnTop&&r("recalculate-position")},V=Vt(u,"action"),w=t.computed(()=>o.monthPicker||o.yearPicker?Vt(u,"monthYear"):o.timePicker?Vt(u,"timePicker"):Vt(u,"shared")),X=t.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),K=t.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),W=t.computed(()=>({dp__menu:!0,dp__menu_index:!d.value.enabled,dp__relative:d.value.enabled,...h.value.menu??{}})),M=j=>{sa(j,p.value,!0)},J=()=>{o.escClose&&r("close-picker")},ce=j=>{if(o.arrowNavigation){if(j===xt.up)return S();if(j===xt.down)return N();if(j===xt.left)return O();if(j===xt.right)return _()}else j===xt.left||j===xt.up?L("handleArrow",xt.left,0,j===xt.up):L("handleArrow",xt.right,0,j===xt.down)},z=j=>{c(j.shiftKey),!o.disableMonthYearSelect&&j.code===Ue.tab&&j.target.classList.contains("dp__menu")&&m.value.shiftKeyInMenu&&(j.preventDefault(),sa(j,p.value,!0),r("close-picker"))},he=()=>{F(),r("time-picker-close")},ee=j=>{var ne,ue,ye;(ne=b.value)==null||ne.toggleTimePicker(!1,!1),(ue=b.value)==null||ue.toggleMonthPicker(!1,!1,j),(ye=b.value)==null||ye.toggleYearPicker(!1,!1,j)},fe=(j,ne=0)=>{var ue,ye,be;return j==="month"?(ue=b.value)==null?void 0:ue.toggleMonthPicker(!1,!0,ne):j==="year"?(ye=b.value)==null?void 0:ye.toggleYearPicker(!1,!0,ne):j==="time"?(be=b.value)==null?void 0:be.toggleTimePicker(!0,!1):ee(ne)},L=(j,...ne)=>{var ue,ye;(ue=b.value)!=null&&ue[j]&&((ye=b.value)==null||ye[j](...ne))},C=()=>{L("selectCurrentDate")},y=(j,ne)=>{L("presetDate",j,ne)},P=()=>{L("clearHoverDate")},I=(j,ne)=>{L("updateMonthYear",j,ne)},H=(j,ne)=>{j.preventDefault(),ce(ne)},te=j=>{var ne,ue,ye;if(z(j),j.key===Ue.home||j.key===Ue.end)return L("selectWeekDate",j.key===Ue.home,j.target.getAttribute("id"));switch((j.key===Ue.pageUp||j.key===Ue.pageDown)&&(j.shiftKey?(L("changeYear",j.key===Ue.pageUp),(ne=ro(i.value,"overlay-year"))==null||ne.focus()):(L("changeMonth",j.key===Ue.pageUp),(ue=ro(i.value,j.key===Ue.pageUp?"action-prev":"action-next"))==null||ue.focus()),j.target.getAttribute("id")&&((ye=i.value)==null||ye.focus({preventScroll:!0}))),j.key){case Ue.esc:return J();case Ue.arrowLeft:return H(j,xt.left);case Ue.arrowRight:return H(j,xt.right);case Ue.arrowUp:return H(j,xt.up);case Ue.arrowDown:return H(j,xt.down);default:return}};return a({updateMonthYear:I,switchView:fe,handleFlow:U}),(j,ne)=>{var ue,ye,be;return t.openBlock(),t.createElementBlock("div",{id:j.uid?`dp-menu-${j.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:t.unref(d).enabled?void 0:"0",role:t.unref(d).enabled?void 0:"dialog","aria-label":(ue=j.ariaLabels)==null?void 0:ue.menu,class:t.normalizeClass(W.value),style:t.normalizeStyle({"--dp-arrow-left":D.value}),onMouseleave:P,onClick:M,onKeydown:te},[(j.disabled||j.readonly)&&t.unref(d).enabled||j.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.value)},[j.loading?(t.openBlock(),t.createElementBlock("div",u4,ne[19]||(ne[19]=[t.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),j.$slots["menu-header"]?(t.openBlock(),t.createElementBlock("div",f4,[t.renderSlot(j.$slots,"menu-header")])):t.createCommentVNode("",!0),!t.unref(d).enabled&&!j.teleportCenter?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(X.value)},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"innerMenuRef",ref:v,class:t.normalizeClass({dp__menu_content_wrapper:((ye=j.presetDates)==null?void 0:ye.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((be=j.presetDates)==null?void 0:be.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"])}),style:t.normalizeStyle({"--dp-menu-width":`${k.value}px`})},[j.$slots["left-sidebar"]?(t.openBlock(),t.createElementBlock("div",m4,[t.renderSlot(j.$slots,"left-sidebar",t.normalizeProps(t.guardReactiveProps(q.value)))])):t.createCommentVNode("",!0),j.presetDates.length?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(j.presetDates,(me,Me)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Me},[me.slot?t.renderSlot(j.$slots,me.slot,{key:0,presetDate:y,label:me.label,value:me.value}):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",style:t.normalizeStyle(me.style||{}),class:t.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":me.testId??void 0,onClick:t.withModifiers(_e=>y(me.value,me.noTz),["prevent"]),onKeydown:_e=>t.unref(wt)(_e,()=>y(me.value,me.noTz),!0)},t.toDisplayString(me.label),47,h4))],64))),128))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:g,class:"dp__instance_calendar",role:"document"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E.value),t.mergeProps({ref_key:"dynCmpRef",ref:b},s.value,{"flow-step":t.unref(B),onMount:t.unref(T),onUpdateFlowStep:t.unref(G),onResetFlow:t.unref(Q),onFocusMenu:F,onSelectDate:ne[0]||(ne[0]=me=>j.$emit("select-date")),onDateUpdate:ne[1]||(ne[1]=me=>j.$emit("date-update",me)),onTooltipOpen:ne[2]||(ne[2]=me=>j.$emit("tooltip-open",me)),onTooltipClose:ne[3]||(ne[3]=me=>j.$emit("tooltip-close",me)),onAutoApply:ne[4]||(ne[4]=me=>j.$emit("auto-apply",me)),onRangeStart:ne[5]||(ne[5]=me=>j.$emit("range-start",me)),onRangeEnd:ne[6]||(ne[6]=me=>j.$emit("range-end",me)),onInvalidFixedRange:ne[7]||(ne[7]=me=>j.$emit("invalid-fixed-range",me)),onTimeUpdate:ne[8]||(ne[8]=me=>j.$emit("time-update")),onAmPmChange:ne[9]||(ne[9]=me=>j.$emit("am-pm-change",me)),onTimePickerOpen:ne[10]||(ne[10]=me=>j.$emit("time-picker-open",me)),onTimePickerClose:he,onRecalculatePosition:oe,onUpdateMonthYear:ne[11]||(ne[11]=me=>j.$emit("update-month-year",me)),onAutoApplyInvalid:ne[12]||(ne[12]=me=>j.$emit("auto-apply-invalid",me)),onInvalidDate:ne[13]||(ne[13]=me=>j.$emit("invalid-date",me)),onOverlayToggle:ne[14]||(ne[14]=me=>j.$emit("overlay-toggle",me)),"onUpdate:internalModelValue":ne[15]||(ne[15]=me=>j.$emit("update:internal-model-value",me))}),t.createSlots({_:2},[t.renderList(w.value,(me,Me)=>({name:me,fn:t.withCtx(_e=>[t.renderSlot(j.$slots,me,t.normalizeProps(t.guardReactiveProps({..._e})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),j.$slots["right-sidebar"]?(t.openBlock(),t.createElementBlock("div",p4,[t.renderSlot(j.$slots,"right-sidebar",t.normalizeProps(t.guardReactiveProps(q.value)))])):t.createCommentVNode("",!0),j.$slots["action-extra"]?(t.openBlock(),t.createElementBlock("div",g4,[j.$slots["action-extra"]?t.renderSlot(j.$slots,"action-extra",{key:0,selectCurrentDate:C}):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6),!j.autoApply||t.unref(p).keepActionRow?(t.openBlock(),t.createBlock(xu,t.mergeProps({key:3,"menu-mount":x.value},s.value,{"calendar-width":k.value,onClosePicker:ne[16]||(ne[16]=me=>j.$emit("close-picker")),onSelectDate:ne[17]||(ne[17]=me=>j.$emit("select-date")),onInvalidSelect:ne[18]||(ne[18]=me=>j.$emit("invalid-select")),onSelectNow:C}),t.createSlots({_:2},[t.renderList(t.unref(V),(me,Me)=>({name:me,fn:t.withCtx(_e=>[t.renderSlot(j.$slots,me,t.normalizeProps(t.guardReactiveProps({..._e})))])}))]),1040,["menu-mount","calendar-width"])):t.createCommentVNode("",!0)],46,d4)}}});var Ua=(e=>(e.center="center",e.left="left",e.right="right",e))(Ua||{});const y4=({menuRef:e,menuRefInner:a,inputRef:n,pickerWrapperRef:r,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=Ze(s),m=t.ref({}),u=t.ref(!1),f=t.ref({top:"0",left:"0"}),d=t.ref(!1),p=t.toRef(s,"teleportCenter");t.watch(p,()=>{f.value=JSON.parse(JSON.stringify({})),_()});const h=F=>{if(s.teleport){const q=F.getBoundingClientRect();return{left:q.left+window.scrollX,top:q.top+window.scrollY}}return{top:0,left:0}},g=(F,q)=>{f.value.left=`${F+q-m.value.width}px`},k=F=>{f.value.left=`${F}px`},v=(F,q)=>{s.position===Ua.left&&k(F),s.position===Ua.right&&g(F,q),s.position===Ua.center&&(f.value.left=`${F+q/2-m.value.width/2}px`)},x=F=>{const{width:q,height:oe}=F.getBoundingClientRect(),{top:V,left:w}=s.altPosition?s.altPosition(F):h(F);return{top:+V,left:+w,width:q,height:oe}},b=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},A=()=>{const F=ct(n),{top:q,left:oe,transform:V}=s.altPosition(F);f.value={top:`${q}px`,left:`${oe}px`,transform:V??""}},_=(F=!0)=>{var q;if(!o.value.enabled){if(p.value)return b();if(s.altPosition!==null)return A();if(F){const oe=s.teleport?(q=a.value)==null?void 0:q.$el:e.value;oe&&(m.value=oe.getBoundingClientRect()),i("recalculate-position")}return Q()}},O=({inputEl:F,left:q,width:oe})=>{window.screen.width>768&&!u.value&&v(q,oe),B(F)},N=F=>{const{top:q,left:oe,height:V,width:w}=x(F);f.value.top=`${V+q+ +s.offset}px`,d.value=!1,u.value||(f.value.left=`${oe+w/2-m.value.width/2}px`),O({inputEl:F,left:oe,width:w})},S=F=>{const{top:q,left:oe,width:V}=x(F);f.value.top=`${q-+s.offset-m.value.height}px`,d.value=!0,O({inputEl:F,left:oe,width:V})},B=F=>{if(s.autoPosition){const{left:q,width:oe}=x(F),{left:V,right:w}=m.value;if(!u.value){if(Math.abs(V)!==Math.abs(w)){if(V<=0)return u.value=!0,k(q);if(w>=document.documentElement.clientWidth)return u.value=!0,g(q,oe)}return v(q,oe)}}},G=()=>{const F=ct(n);if(F){const{height:q}=m.value,{top:oe,height:V}=F.getBoundingClientRect(),w=window.innerHeight-oe-V,X=oe;return q<=w?Va.bottom:q>w&&q<=X?Va.top:w>=X?Va.bottom:Va.top}return Va.bottom},T=F=>G()===Va.bottom?N(F):S(F),Q=()=>{const F=ct(n);if(F)return s.autoPosition?T(F):N(F)},U=function(F){if(F){const q=F.scrollHeight>F.clientHeight,oe=window.getComputedStyle(F).overflowY.indexOf("hidden")!==-1;return q&&!oe}return!0},E=function(F){return!F||F===document.body||F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:U(F)?F:E(F.assignedSlot&&c.value.shadowDom?F.assignedSlot.parentNode:F.parentNode)},D=F=>{if(F)switch(s.position){case Ua.left:return{left:0,transform:"translateX(0)"};case Ua.right:return{left:`${F.width}px`,transform:"translateX(-100%)"};default:return{left:`${F.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:d,menuStyle:f,xCorrect:u,setMenuPosition:_,getScrollableParent:E,shadowRender:(F,q)=>{var oe,V,w;const X=document.createElement("div"),K=(oe=ct(n))==null?void 0:oe.getBoundingClientRect();X.setAttribute("id","dp--temp-container");const W=(V=r.value)!=null&&V.clientWidth?r.value:document.body;W.append(X);const M=D(K),J=c.value.shadowDom?Object.keys(l).filter(z=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(z)):Object.keys(l),ce=t.h(F,{...q,shadow:!0,style:{opacity:0,position:"absolute",...M}},Object.fromEntries(J.map(z=>[z,l[z]])));t.render(ce,X),m.value=(w=ce.el)==null?void 0:w.getBoundingClientRect(),t.render(null,X),W.removeChild(X)}}},ua=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],k4=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],b4={all:()=>ua,monthYear:()=>ua.filter(e=>e.use.includes("month-year")),input:()=>k4,timePicker:()=>ua.filter(e=>e.use.includes("time")),action:()=>ua.filter(e=>e.use.includes("action")),calendar:()=>ua.filter(e=>e.use.includes("calendar")),menu:()=>ua.filter(e=>e.use.includes("menu")),shared:()=>ua.filter(e=>e.use.includes("shared")),yearMode:()=>ua.filter(e=>e.use.includes("year-mode"))},Vt=(e,a,n)=>{const r=[];return b4[a]().forEach(o=>{e[o.name]&&r.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},kn=e=>{const a=t.computed(()=>r=>e.value?r?e.value.open:e.value.close:""),n=t.computed(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:a,showTransition:!!e.value,menuTransition:n}},bn=(e,a,n)=>{const{defaultedRange:r,defaultedTz:o}=Ze(e),i=ge(At(ge(),o.value.timezone)),s=t.ref([{month:Oe(i),year:Ve(i)}]),l=d=>{const p={hours:Qt(i),minutes:ia(i),seconds:0};return r.value.enabled?[p[d],p[d]]:p[d]},c=t.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});t.watch(r,(d,p)=>{d.enabled!==p.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const m=t.computed({get:()=>e.internalModelValue,set:d=>{!e.readonly&&!e.disabled&&a("update:internal-model-value",d)}}),u=t.computed(()=>d=>s.value[d]?s.value[d].month:0),f=t.computed(()=>d=>s.value[d]?s.value[d].year:0);return t.watch(m,(d,p)=>{n&&JSON.stringify(d??{})!==JSON.stringify(p??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:m,month:u,year:f,today:i}},x4=(e,a)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=Ze(a),{isDisabled:m}=fa(a),u=t.ref(null),f=t.ref(At(new Date,s.value.timezone)),d=M=>{!M.current&&a.hideOffsetDates||(u.value=M.value)},p=()=>{u.value=null},h=M=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&u.value?M?it(u.value,e.value[0]):tt(u.value,e.value[0]):!0,g=(M,J)=>{const ce=()=>e.value?J?e.value[0]||null:e.value[1]:null,z=e.value&&Array.isArray(e.value)?ce():null;return Fe(ge(M.value),z)},k=M=>{const J=Array.isArray(e.value)?e.value[0]:null;return M?!tt(u.value??null,J):!0},v=(M,J=!0)=>(c.value.enabled||a.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?a.hideOffsetDates&&!M.current?!1:Fe(ge(M.value),e.value[J?0:1]):c.value.enabled?g(M,J)&&k(J)||Fe(M.value,Array.isArray(e.value)?e.value[0]:null)&&h(J):!1,x=(M,J)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const ce=Fe(M.value,u.value);return J?it(e.value[0],M.value)&&ce:tt(e.value[0],M.value)&&ce}return!1},b=M=>!e.value||a.hideOffsetDates&&!M.current?!1:c.value.enabled?a.modelAuto&&Array.isArray(e.value)?Fe(M.value,e.value[0]?e.value[0]:f.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(J=>Fe(J,M.value)):Fe(M.value,e.value?e.value:f.value),A=M=>{if(c.value.autoRange||a.weekPicker){if(u.value){if(a.hideOffsetDates&&!M.current)return!1;const J=Ot(u.value,+c.value.autoRange),ce=Kt(ge(u.value),a.weekStart);return a.weekPicker?Fe(ce[1],ge(M.value)):Fe(J,ge(M.value))}return!1}return!1},_=M=>{if(c.value.autoRange||a.weekPicker){if(u.value){const J=Ot(u.value,+c.value.autoRange);if(a.hideOffsetDates&&!M.current)return!1;const ce=Kt(ge(u.value),a.weekStart);return a.weekPicker?it(M.value,ce[0])&&tt(M.value,ce[1]):it(M.value,u.value)&&tt(M.value,J)}return!1}return!1},O=M=>{if(c.value.autoRange||a.weekPicker){if(u.value){if(a.hideOffsetDates&&!M.current)return!1;const J=Kt(ge(u.value),a.weekStart);return a.weekPicker?Fe(J[0],M.value):Fe(u.value,M.value)}return!1}return!1},N=M=>Wn(e.value,u.value,M.value),S=()=>a.modelAuto&&Array.isArray(a.internalModelValue)?!!a.internalModelValue[0]:!1,B=()=>a.modelAuto?_s(a.internalModelValue):!0,G=M=>{if(a.weekPicker)return!1;const J=c.value.enabled?!v(M)&&!v(M,!1):!0;return!m(M.value)&&!b(M)&&!(!M.current&&a.hideOffsetDates)&&J},T=M=>c.value.enabled?a.modelAuto?S()&&b(M):!1:b(M),Q=M=>i.value?q3(M.value,l.value.highlight):!1,U=M=>{const J=m(M.value);return J&&(typeof i.value=="function"?!i.value(M.value,J):!i.value.options.highlightDisabled)},E=M=>{var J;return typeof i.value=="function"?i.value(M.value):(J=i.value.weekdays)==null?void 0:J.includes(M.value.getDay())},D=M=>(c.value.enabled||a.weekPicker)&&(!(n.value.count>0)||M.current)&&B()&&!(!M.current&&a.hideOffsetDates)&&!b(M)?N(M):!1,F=M=>{const{isRangeStart:J,isRangeEnd:ce}=w(M),z=c.value.enabled?J||ce:!1;return{dp__cell_offset:!M.current,dp__pointer:!a.disabled&&!(!M.current&&a.hideOffsetDates)&&!m(M.value),dp__cell_disabled:m(M.value),dp__cell_highlight:!U(M)&&(Q(M)||E(M))&&!T(M)&&!z&&!O(M)&&!(D(M)&&a.weekPicker)&&!ce,dp__cell_highlight_active:!U(M)&&(Q(M)||E(M))&&T(M),dp__today:!a.noToday&&Fe(M.value,f.value)&&M.current,"dp--past":tt(M.value,f.value),"dp--future":it(M.value,f.value)}},q=M=>({dp__active_date:T(M),dp__date_hover:G(M)}),oe=M=>{if(e.value&&!Array.isArray(e.value)){const J=Kt(e.value,a.weekStart);return{...K(M),dp__range_start:Fe(J[0],M.value),dp__range_end:Fe(J[1],M.value),dp__range_between_week:it(M.value,J[0])&&tt(M.value,J[1])}}return{...K(M)}},V=M=>{if(e.value&&Array.isArray(e.value)){const J=Kt(e.value[0],a.weekStart),ce=e.value[1]?Kt(e.value[1],a.weekStart):[];return{...K(M),dp__range_start:Fe(J[0],M.value)||Fe(ce[0],M.value),dp__range_end:Fe(J[1],M.value)||Fe(ce[1],M.value),dp__range_between_week:it(M.value,J[0])&&tt(M.value,J[1])||it(M.value,ce[0])&&tt(M.value,ce[1]),dp__range_between:it(M.value,J[1])&&tt(M.value,ce[0])}}return{...K(M)}},w=M=>{const J=n.value.count>0?M.current&&v(M)&&B():v(M)&&B(),ce=n.value.count>0?M.current&&v(M,!1)&&B():v(M,!1)&&B();return{isRangeStart:J,isRangeEnd:ce}},X=M=>{const{isRangeStart:J,isRangeEnd:ce}=w(M);return{dp__range_start:J,dp__range_end:ce,dp__range_between:D(M),dp__date_hover:Fe(M.value,u.value)&&!J&&!ce&&!a.weekPicker,dp__date_hover_start:x(M,!0),dp__date_hover_end:x(M,!1)}},K=M=>({...X(M),dp__cell_auto_range:_(M),dp__cell_auto_range_start:O(M),dp__cell_auto_range_end:A(M)}),W=M=>c.value.enabled?c.value.autoRange?K(M):a.modelAuto?{...q(M),...X(M)}:a.weekPicker?V(M):X(M):a.weekPicker?oe(M):q(M);return{setHoverDate:d,clearHoverDate:p,getDayClassData:M=>a.hideOffsetDates&&!M.current?{}:{...F(M),...W(M),[a.dayClass?a.dayClass(M.value,a.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},fa=e=>{const{defaultedFilters:a,defaultedRange:n,propDates:r,defaultedMultiDates:o}=Ze(e),i=E=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(ge(E)):!!qn(E,r.value.disabledDates):!1,s=E=>r.value.maxDate?e.yearPicker?Ve(E)>Ve(r.value.maxDate):it(E,r.value.maxDate):!1,l=E=>r.value.minDate?e.yearPicker?Ve(E)<Ve(r.value.minDate):tt(E,r.value.minDate):!1,c=E=>{const D=s(E),F=l(E),q=i(E),oe=a.value.months.map(W=>+W).includes(Oe(E)),V=e.disabledWeekDays.length?e.disabledWeekDays.some(W=>+W===Td(E)):!1,w=p(E),X=Ve(E),K=X<+e.yearRange[0]||X>+e.yearRange[1];return!(D||F||q||oe||K||V||w)},m=(E,D)=>tt(...ca(r.value.minDate,E,D))||Fe(...ca(r.value.minDate,E,D)),u=(E,D)=>it(...ca(r.value.maxDate,E,D))||Fe(...ca(r.value.maxDate,E,D)),f=(E,D,F)=>{let q=!1;return r.value.maxDate&&F&&u(E,D)&&(q=!0),r.value.minDate&&!F&&m(E,D)&&(q=!0),q},d=(E,D,F,q)=>{let oe=!1;return q&&(r.value.minDate||r.value.maxDate)?r.value.minDate&&r.value.maxDate?oe=f(E,D,F):(r.value.minDate&&m(E,D)||r.value.maxDate&&u(E,D))&&(oe=!0):oe=!0,oe},p=E=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!qn(E,r.value.allowedDates):!1,h=E=>!c(E),g=E=>n.value.noDisabledRange?!is({start:E[0],end:E[1]}).some(D=>h(D)):!0,k=E=>{if(E){const D=Ve(E);return D>=+e.yearRange[0]&&D<=e.yearRange[1]}return!0},v=(E,D)=>!!(Array.isArray(E)&&E[D]&&(n.value.maxRange||n.value.minRange)&&k(E[D])),x=(E,D,F=0)=>{if(v(D,F)&&k(E)){const q=as(E,D[F]),oe=Rs(D[F],E),V=oe.length===1?0:oe.filter(X=>h(X)).length,w=Math.abs(q)-(n.value.minMaxRawRange?0:V);if(n.value.minRange&&n.value.maxRange)return w>=+n.value.minRange&&w<=+n.value.maxRange;if(n.value.minRange)return w>=+n.value.minRange;if(n.value.maxRange)return w<=+n.value.maxRange}return!0},b=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,A=E=>Array.isArray(E)?[E[0]?fo(E[0]):null,E[1]?fo(E[1]):null]:fo(E),_=(E,D,F)=>E.find(q=>+q.hours===Qt(D)&&q.minutes==="*"?!0:+q.minutes===ia(D)&&+q.hours===Qt(D))&&F,O=(E,D,F)=>{const[q,oe]=E,[V,w]=D;return!_(q,V,F)&&!_(oe,w,F)&&F},N=(E,D)=>{const F=Array.isArray(D)?D:[D];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?O(e.disabledTimes,F,E):!F.some(q=>_(e.disabledTimes,q,E)):E},S=(E,D)=>{const F=Array.isArray(D)?[Na(D[0]),D[1]?Na(D[1]):void 0]:Na(D),q=!e.disabledTimes(F);return E&&q},B=(E,D)=>e.disabledTimes?Array.isArray(e.disabledTimes)?N(D,E):S(D,E):D,G=E=>{let D=!0;if(!E||b())return!0;const F=!r.value.minDate&&!r.value.maxDate?A(E):E;return(e.maxTime||r.value.maxDate)&&(D=Gs(e.maxTime,r.value.maxDate,"max",ft(F),D)),(e.minTime||r.value.minDate)&&(D=Gs(e.minTime,r.value.minDate,"min",ft(F),D)),B(E,D)},T=E=>{if(!e.monthPicker)return!0;let D=!0;const F=ge(Rt(E));if(r.value.minDate&&r.value.maxDate){const q=ge(Rt(r.value.minDate)),oe=ge(Rt(r.value.maxDate));return it(F,q)&&tt(F,oe)||Fe(F,q)||Fe(F,oe)}if(r.value.minDate){const q=ge(Rt(r.value.minDate));D=it(F,q)||Fe(F,q)}if(r.value.maxDate){const q=ge(Rt(r.value.maxDate));D=tt(F,q)||Fe(F,q)}return D},Q=t.computed(()=>E=>!e.enableTimePicker||e.ignoreTimeValidation?!0:G(E)),U=t.computed(()=>E=>e.monthPicker?Array.isArray(E)&&(n.value.enabled||o.value.enabled)?!E.filter(D=>!T(D)).length:T(E):!0);return{isDisabled:h,validateDate:c,validateMonthYearInRange:d,isDateRangeAllowed:g,checkMinMaxRange:x,isValidTime:G,isTimeValid:Q,isMonthValid:U}},Kn=()=>{const e=t.computed(()=>(r,o)=>r==null?void 0:r.includes(o)),a=t.computed(()=>(r,o)=>r.count?r.solo?!0:o===0:!0),n=t.computed(()=>(r,o)=>r.count?r.solo?!0:o===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:a,showRightIcon:n}},w4=(e,a,n)=>{const r=t.ref(0),o=t.reactive({[_a.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[_a.calendar]:!1,[_a.header]:!1}),i=t.computed(()=>e.monthPicker||e.timePicker),s=f=>{var d;if((d=e.flow)!=null&&d.length){if(!f&&i.value)return u();o[f]=!0,Object.keys(o).filter(p=>!o[p]).length||u()}},l=()=>{var f,d;(f=e.flow)!=null&&f.length&&r.value!==-1&&(r.value+=1,a("flow-step",r.value),u()),((d=e.flow)==null?void 0:d.length)===r.value&&t.nextTick().then(()=>c())},c=()=>{r.value=-1},m=(f,d,...p)=>{var h,g;e.flow[r.value]===f&&n.value&&((g=(h=n.value)[d])==null||g.call(h,...p))},u=(f=0)=>{f&&(r.value+=f),m(yt.month,"toggleMonthPicker",!0),m(yt.year,"toggleYearPicker",!0),m(yt.calendar,"toggleTimePicker",!1,!0),m(yt.time,"toggleTimePicker",!0,!0);const d=e.flow[r.value];(d===yt.hours||d===yt.minutes||d===yt.seconds)&&m(d,"toggleTimePicker",!0,!0,d)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:u,flowStep:r}},v4={key:1,class:"dp__input_wrap"},E4=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],C4={key:2,class:"dp--clear-btn"},S4=["aria-label"],M4=t.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Xn},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:a,emit:n}){const r=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:m,defaultedMultiDates:u,defaultedUI:f,getDefaultPattern:d,getDefaultStartTime:p}=Ze(o),{checkMinMaxRange:h}=fa(o),g=t.ref(),k=t.ref(null),v=t.ref(!1),x=t.ref(!1),b=t.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:v.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),A=()=>{r("set-input-date",null),o.clearable&&o.autoApply&&(r("set-empty-date"),g.value=null)},_=w=>{const X=p();return W3(w,i.value.format??d(),X??Hs({},o.enableSeconds),o.inputValue,x.value,o.formatLocale)},O=w=>{const{rangeSeparator:X}=i.value,[K,W]=w.split(`${X}`);if(K){const M=_(K.trim()),J=W?_(W.trim()):null;if(za(M,J))return;const ce=M&&J?[M,J]:[M];h(J,ce,0)&&(g.value=M?ce:null)}},N=()=>{x.value=!0},S=w=>{if(m.value.enabled)O(w);else if(u.value.enabled){const X=w.split(";");g.value=X.map(K=>_(K.trim())).filter(K=>K)}else g.value=_(w)},B=w=>{var X;const K=typeof w=="string"?w:(X=w.target)==null?void 0:X.value;K!==""?(i.value.openMenu&&!o.isMenuOpen&&r("open"),S(K),r("set-input-date",g.value)):A(),x.value=!1,r("update:input-value",K),r("text-input",w,g.value)},G=w=>{i.value.enabled?(S(w.target.value),i.value.enterSubmit&&lo(g.value)&&o.inputValue!==""?(r("set-input-date",g.value,!0),g.value=null):i.value.enterSubmit&&o.inputValue===""&&(g.value=null,r("clear"))):U(w)},T=(w,X)=>{i.value.enabled&&i.value.tabSubmit&&!X&&S(w.target.value),i.value.tabSubmit&&lo(g.value)&&o.inputValue!==""?(r("set-input-date",g.value,!0,!0),g.value=null):i.value.tabSubmit&&o.inputValue===""&&(g.value=null,r("clear",!0))},Q=()=>{v.value=!0,r("focus"),t.nextTick().then(()=>{var w;i.value.enabled&&i.value.selectOnFocus&&((w=k.value)==null||w.select())})},U=w=>{if(sa(w,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return r("open");if(i.value.openMenu==="toggle")return r("toggle")}else i.value.enabled||r("toggle")},E=()=>{r("real-blur"),v.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&r("blur"),o.autoApply&&i.value.enabled&&g.value&&!o.isMenuOpen&&(r("set-input-date",g.value),r("select-date"),g.value=null)},D=w=>{sa(w,c.value,!0),r("clear")},F=w=>{if(w.key==="Tab"&&T(w),w.key==="Enter"&&G(w),!i.value.enabled){if(w.code==="Tab")return;w.preventDefault()}},q=()=>{var w;(w=k.value)==null||w.focus({preventScroll:!0})},oe=w=>{g.value=w},V=w=>{w.key===Ue.tab&&T(w,!0)};return a({focusInput:q,setParsedDate:oe}),(w,X)=>{var K,W,M;return t.openBlock(),t.createElementBlock("div",{onClick:U},[w.$slots.trigger&&!w.$slots["dp-input"]&&!t.unref(l).enabled?t.renderSlot(w.$slots,"trigger",{key:0}):t.createCommentVNode("",!0),!w.$slots.trigger&&(!t.unref(l).enabled||t.unref(l).input)?(t.openBlock(),t.createElementBlock("div",v4,[w.$slots["dp-input"]&&!w.$slots.trigger&&(!t.unref(l).enabled||t.unref(l).enabled&&t.unref(l).input)?t.renderSlot(w.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:B,onEnter:G,onTab:T,onClear:D,onBlur:E,onKeypress:F,onPaste:N,onFocus:Q,openMenu:()=>w.$emit("open"),closeMenu:()=>w.$emit("close"),toggleMenu:()=>w.$emit("toggle")}):t.createCommentVNode("",!0),w.$slots["dp-input"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("input",{key:1,id:w.uid?`dp-input-${w.uid}`:void 0,ref_key:"inputRef",ref:k,"data-test":"dp-input",name:w.name,class:t.normalizeClass(b.value),inputmode:t.unref(i).enabled?"text":"none",placeholder:w.placeholder,disabled:w.disabled,readonly:w.readonly,required:w.required,value:e.inputValue,autocomplete:w.autocomplete,"aria-label":(K=t.unref(s))==null?void 0:K.input,"aria-disabled":w.disabled||void 0,"aria-invalid":w.state===!1?!0:void 0,onInput:B,onBlur:E,onFocus:Q,onKeypress:F,onKeydown:X[0]||(X[0]=J=>F(J)),onPaste:N},null,42,E4)),t.createElementVNode("div",{onClick:X[3]||(X[3]=J=>r("toggle"))},[w.$slots["input-icon"]&&!w.hideInputIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:X[1]||(X[1]=J=>r("toggle"))},[t.renderSlot(w.$slots,"input-icon")])):t.createCommentVNode("",!0),!w.$slots["input-icon"]&&!w.hideInputIcon&&!w.$slots["dp-input"]?(t.openBlock(),t.createBlock(t.unref(ja),{key:1,"aria-label":(W=t.unref(s))==null?void 0:W.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:X[2]||(X[2]=J=>r("toggle"))},null,8,["aria-label"])):t.createCommentVNode("",!0)]),w.$slots["clear-icon"]&&e.inputValue&&w.clearable&&!w.disabled&&!w.readonly?(t.openBlock(),t.createElementBlock("span",C4,[t.renderSlot(w.$slots,"clear-icon",{clear:D})])):t.createCommentVNode("",!0),w.clearable&&!w.$slots["clear-icon"]&&e.inputValue&&!w.disabled&&!w.readonly?(t.openBlock(),t.createElementBlock("button",{key:3,"aria-label":(M=t.unref(s))==null?void 0:M.clearInput,class:"dp--clear-btn",type:"button",onKeydown:X[4]||(X[4]=J=>t.unref(wt)(J,()=>D(J),!0,V)),onClick:X[5]||(X[5]=t.withModifiers(J=>D(J),["prevent"]))},[t.createVNode(t.unref(Bs),{class:"dp__input_icons","data-test":"clear-icon"})],40,S4)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}}}),B4=typeof window<"u"?window:void 0,wo=()=>{},A4=e=>t.getCurrentScope()?(t.onScopeDispose(e),!0):!1,V4=(e,a,n,r)=>{if(!e)return wo;let o=wo;const i=t.watch(()=>t.unref(e),l=>{o(),l&&(l.addEventListener(a,n,r),o=()=>{l.removeEventListener(a,n,r),o=wo})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return A4(s),s},_4=(e,a,n,r={})=>{const{window:o=B4,event:i="pointerdown"}=r;return o?V4(o,i,s=>{const l=ct(e),c=ct(a);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},N4=t.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Xn},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.useSlots(),s=t.ref(!1),l=t.toRef(o,"modelValue"),c=t.toRef(o,"timezone"),m=t.ref(null),u=t.ref(null),f=t.ref(null),d=t.ref(!1),p=t.ref(null),h=t.ref(!1),g=t.ref(!1),k=t.ref(!1),v=t.ref(!1),{setMenuFocused:x,setShiftKey:b}=Ws(),{clearArrowNav:A}=da(),{validateDate:_,isValidTime:O}=fa(o),{defaultedTransitions:N,defaultedTextInput:S,defaultedInline:B,defaultedConfig:G,defaultedRange:T,defaultedMultiDates:Q}=Ze(o),{menuTransition:U,showTransition:E}=kn(N);t.onMounted(()=>{J(o.modelValue),t.nextTick().then(()=>{if(!B.value.enabled){const $=X(p.value);$==null||$.addEventListener("scroll",I),window==null||window.addEventListener("resize",H)}}),B.value.enabled&&(s.value=!0),window==null||window.addEventListener("keyup",te),window==null||window.addEventListener("keydown",j)}),t.onUnmounted(()=>{if(!B.value.enabled){const $=X(p.value);$==null||$.removeEventListener("scroll",I),window==null||window.removeEventListener("resize",H)}window==null||window.removeEventListener("keyup",te),window==null||window.removeEventListener("keydown",j)});const D=Vt(i,"all",o.presetDates),F=Vt(i,"input");t.watch([l,c],()=>{J(l.value)},{deep:!0});const{openOnTop:q,menuStyle:oe,xCorrect:V,setMenuPosition:w,getScrollableParent:X,shadowRender:K}=y4({menuRef:m,menuRefInner:u,inputRef:f,pickerWrapperRef:p,inline:B,emit:r,props:o,slots:i}),{inputValue:W,internalModelValue:M,parseExternalModelValue:J,emitModelValue:ce,formatInputValue:z,checkBeforeEmit:he}=gu(r,o,d),ee=t.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:B.value.enabled,"dp--flex-display-collapsed":k.value,dp__flex_display_with_input:B.value.input})),fe=t.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),L=t.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||B.value.enabled}:{}),C=t.computed(()=>({class:"dp__outer_menu_wrap"})),y=t.computed(()=>B.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),P=()=>{var $,ae;return(ae=($=f.value)==null?void 0:$.$el)==null?void 0:ae.getBoundingClientRect()},I=()=>{s.value&&(G.value.closeOnScroll?Se():w())},H=()=>{var $;s.value&&w();const ae=($=u.value)==null?void 0:$.$el.getBoundingClientRect().width;k.value=document.body.offsetWidth<=ae},te=$=>{$.key==="Tab"&&!B.value.enabled&&!o.teleport&&G.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||Se()),g.value=$.shiftKey},j=$=>{g.value=$.shiftKey},ne=()=>{!o.disabled&&!o.readonly&&(K(al,o),w(!1),s.value=!0,s.value&&r("open"),s.value||Ne(),J(o.modelValue))},ue=()=>{var $;W.value="",Ne(),($=f.value)==null||$.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),G.value.closeOnClearValue&&Se()},ye=()=>{const $=M.value;return!$||!Array.isArray($)&&_($)?!0:Array.isArray($)?Q.value.enabled||$.length===2&&_($[0])&&_($[1])?!0:T.value.partialRange&&!o.timePicker?_($[0]):!1:!1},be=()=>{he()&&ye()?(ce(),Se()):r("invalid-select",M.value)},me=$=>{Me(),ce(),G.value.closeOnAutoApply&&!$&&Se()},Me=()=>{f.value&&S.value.enabled&&f.value.setParsedDate(M.value)},_e=($=!1)=>{o.autoApply&&O(M.value)&&ye()&&(T.value.enabled&&Array.isArray(M.value)?(T.value.partialRange||M.value.length===2)&&me($):me($))},Ne=()=>{S.value.enabled||(M.value=null)},Se=()=>{B.value.enabled||(s.value&&(s.value=!1,V.value=!1,x(!1),b(!1),A(),r("closed"),W.value&&J(l.value)),Ne(),r("blur"))},Le=($,ae,le=!1)=>{if(!$){M.value=null;return}const xe=Array.isArray($)?!$.some(De=>!_(De)):_($),Ae=O($);xe&&Ae?(v.value=!0,M.value=$,ae&&(h.value=le,be(),r("text-submit")),t.nextTick().then(()=>{v.value=!1})):r("invalid-date",$)},Be=()=>{o.autoApply&&O(M.value)&&ce(),Me()},Z=()=>s.value?Se():ne(),re=$=>{M.value=$},ie=()=>{S.value.enabled&&(d.value=!0,z()),r("focus")},de=()=>{if(S.value.enabled&&(d.value=!1,J(o.modelValue),h.value)){const $=j3(p.value,g.value);$==null||$.focus()}r("blur")},Ee=$=>{u.value&&u.value.updateMonthYear(0,{month:Ns($.month),year:Ns($.year)})},pe=$=>{J($??o.modelValue)},ke=($,ae)=>{var le;(le=u.value)==null||le.switchView($,ae)},Y=$=>G.value.onClickOutside?G.value.onClickOutside($):Se(),R=($=0)=>{var ae;(ae=u.value)==null||ae.handleFlow($)};return _4(m,f,()=>Y(ye)),a({closeMenu:Se,selectDate:be,clearValue:ue,openMenu:ne,onScroll:I,formatInputValue:z,updateInternalModelValue:re,setMonthYear:Ee,parseModel:pe,switchView:ke,toggleMenu:Z,handleFlow:R,dpWrapMenuRef:m}),($,ae)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:p,class:t.normalizeClass(ee.value),"data-datepicker-instance":""},[t.createVNode(M4,t.mergeProps({ref_key:"inputRef",ref:f,"input-value":t.unref(W),"onUpdate:inputValue":ae[0]||(ae[0]=le=>t.isRef(W)?W.value=le:null),"is-menu-open":s.value},$.$props,{onClear:ue,onOpen:ne,onSetInputDate:Le,onSetEmptyDate:t.unref(ce),onSelectDate:be,onToggle:Z,onClose:Se,onFocus:ie,onBlur:de,onRealBlur:ae[1]||(ae[1]=le=>d.value=!1),onTextInput:ae[2]||(ae[2]=le=>$.$emit("text-input",le))}),t.createSlots({_:2},[t.renderList(t.unref(F),(le,xe)=>({name:le,fn:t.withCtx(Ae=>[t.renderSlot($.$slots,le,t.normalizeProps(t.guardReactiveProps(Ae)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent($.teleport?t.Teleport:"div"),t.normalizeProps(t.guardReactiveProps(L.value)),{default:t.withCtx(()=>[t.createVNode(t.Transition,{name:t.unref(U)(t.unref(q)),css:t.unref(E)&&!t.unref(B).enabled},{default:t.withCtx(()=>[s.value?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:m},C.value,{class:{"dp--menu-wrapper":!t.unref(B).enabled},style:t.unref(B).enabled?void 0:t.unref(oe)}),[t.createVNode(al,t.mergeProps({ref_key:"dpMenuRef",ref:u},$.$props,{"internal-model-value":t.unref(M),"onUpdate:internalModelValue":ae[3]||(ae[3]=le=>t.isRef(M)?M.value=le:null),class:{[fe.value]:!0,"dp--menu-wrapper":$.teleport},"open-on-top":t.unref(q),"no-overlay-focus":y.value,collapse:k.value,"get-input-rect":P,"is-text-input-date":v.value,onClosePicker:Se,onSelectDate:be,onAutoApply:_e,onTimeUpdate:Be,onFlowStep:ae[4]||(ae[4]=le=>$.$emit("flow-step",le)),onUpdateMonthYear:ae[5]||(ae[5]=le=>$.$emit("update-month-year",le)),onInvalidSelect:ae[6]||(ae[6]=le=>$.$emit("invalid-select",t.unref(M))),onAutoApplyInvalid:ae[7]||(ae[7]=le=>$.$emit("invalid-select",le)),onInvalidFixedRange:ae[8]||(ae[8]=le=>$.$emit("invalid-fixed-range",le)),onRecalculatePosition:t.unref(w),onTooltipOpen:ae[9]||(ae[9]=le=>$.$emit("tooltip-open",le)),onTooltipClose:ae[10]||(ae[10]=le=>$.$emit("tooltip-close",le)),onTimePickerOpen:ae[11]||(ae[11]=le=>$.$emit("time-picker-open",le)),onTimePickerClose:ae[12]||(ae[12]=le=>$.$emit("time-picker-close",le)),onAmPmChange:ae[13]||(ae[13]=le=>$.$emit("am-pm-change",le)),onRangeStart:ae[14]||(ae[14]=le=>$.$emit("range-start",le)),onRangeEnd:ae[15]||(ae[15]=le=>$.$emit("range-end",le)),onDateUpdate:ae[16]||(ae[16]=le=>$.$emit("date-update",le)),onInvalidDate:ae[17]||(ae[17]=le=>$.$emit("invalid-date",le)),onOverlayToggle:ae[18]||(ae[18]=le=>$.$emit("overlay-toggle",le))}),t.createSlots({_:2},[t.renderList(t.unref(D),(le,xe)=>({name:le,fn:t.withCtx(Ae=>[t.renderSlot($.$slots,le,t.normalizeProps(t.guardReactiveProps({...Ae})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):t.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),xn=(()=>{const e=N4;return e.install=a=>{a.component("Vue3DatePicker",e)},e})();Object.entries(Object.freeze(Object.defineProperty({__proto__:null,default:xn},Symbol.toStringTag,{value:"Module"}))).forEach(([e,a])=>{e!=="default"&&(xn[e]=a)});const D4={name:"ModalComponent",props:{modelValue:{type:Boolean,required:!0}},methods:{closeModal(){this.$emit("update:modelValue",!1)}}},T4={key:0,class:"modal-head text-white"},P4={class:"modal_responsive"},O4={class:"flex min-h-full items-center justify-center text-center"},F4={class:"modal-size w-full"},L4={class:"modal-background bg-base-200"},$4={class:"modal-title"},R4={class:"modal-body bg-base-300"},H4={class:"modal-footer"};function z4(e,a,n,r,o,i){return n.modelValue?(t.openBlock(),t.createElementBlock("div",T4,[a[2]||(a[2]=t.createElementVNode("div",{class:"modal-overlay"},null,-1)),t.createElementVNode("div",P4,[t.createElementVNode("div",O4,[t.createElementVNode("div",F4,[t.createElementVNode("div",L4,[t.createElementVNode("header",$4,[t.renderSlot(e.$slots,"title",{},void 0,!0),t.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...s)=>i.closeModal&&i.closeModal(...s))},a[1]||(a[1]=[t.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)]))]),t.createElementVNode("div",R4,[t.renderSlot(e.$slots,"body",{},void 0,!0)]),t.createElementVNode("footer",H4,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])])])])])])):t.createCommentVNode("",!0)}const nl=je(D4,[["render",z4],["__scopeId","data-v-e2c896dc"]]),I4={class:"container"},G4={class:"form-group"},j4={class:"form-group"},q4={class:"form-group"},W4=je({__name:"reminder",props:{currentChat:{type:Object,default:{id:null,contact:{segmentation_fields:[]}}},theme:{type:Boolean,default:!0},date:Date,token:String},setup(e){const a=e,n=t.ref({schedule:{time:a.date,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,type:"unique"},title:"",content:"",type:"reminders"});return(r,o)=>(t.openBlock(),t.createElementBlock("div",I4,[t.createElementVNode("div",G4,[o[4]||(o[4]=t.createElementVNode("label",{for:"contentInput"},"Horário",-1)),t.createVNode(t.unref(xn),{format:"HH:mm","auto-apply":"true","time-picker":!0,locale:"pt-BR","cancel-text":"Cancelar","select-text":"Confirmar","enable-time-picker":!0,"min-date":new Date,"text-input":"",dark:e.theme,modelValue:n.value.schedule.time,"onUpdate:modelValue":o[0]||(o[0]=i=>n.value.schedule.time=i)},{"clear-icon":t.withCtx(({clear:i})=>o[3]||(o[3]=[])),_:1},8,["min-date","dark","modelValue"])]),t.createElementVNode("div",j4,[o[5]||(o[5]=t.createElementVNode("label",{for:"titleInput"},"Título",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=i=>n.value.title=i),id:"titleInput",placeholder:"Remédio",class:"input bg-base-200"},null,512),[[t.vModelText,n.value.title]])]),t.createElementVNode("div",q4,[o[6]||(o[6]=t.createElementVNode("label",{for:"contentInput"},"Conteúdo",-1)),t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":o[2]||(o[2]=i=>n.value.content=i),id:"contentInput",placeholder:"Não esquecer do remédio de alzheimer",class:"areaInput bg-base-200"},null,512),[[t.vModelText,n.value.content]])]),o[7]||(o[7]=t.createElementVNode("div",{class:"button-container"},[t.createElementVNode("button",{class:"save-button"},"Salvar")],-1))]))}},[["__scopeId","data-v-2727b591"]]);function Y4(e){return{all:e=e||new Map,on:function(a,n){var r=e.get(a);r?r.push(n):e.set(a,[n])},off:function(a,n){var r=e.get(a);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(a,[]))},emit:function(a,n){var r=e.get(a);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(a,n)})}}}const rl=Y4();let ol=0;const U4=()=>{const e=ol;return ol+=1,e},Jn=(e,a)=>{const n={...e,id:U4(),group:e.group||""};return rl.emit("notify",{notification:n,timeout:a}),()=>rl.emit("close",n.id)},X4={class:"container"},Z4={class:"form-group"},Q4={class:"form-group"},K4={key:0,class:"custom-fields-container border border-base-100"},J4={class:"custom-fields-header bg-base-300"},e5={class:"custom-fields-list"},t5=["onClick"],a5={key:1,class:"file-container bg-base-100"},n5={class:"file-actions"},r5={class:"button-container"},o5=["disabled"],i5={key:0,class:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-solid border-current border-e-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]"},s5=je({__name:"sheduledMessage",props:{currentChat:{type:Object,default:{id:null,contact:{segmentation_fields:[]}}},theme:{type:Boolean,default:!0},date:{type:Date,required:!0},token:String,event:Object||null},emits:["close"],setup(e,{emit:a}){const n=e,r=t.ref(!1),o=a,i=t.ref("post"),s=t.ref({message:[{type:"text",content:""}],schedule:{time:n.date,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,type:"unique"},chat_id:n.currentChat.id||null});t.onMounted(()=>{n.event?(s.value=n.event.params,i.value="patch"):s.value.schedule.time=u(n.date,s.value.schedule.time)});const l=t.ref(null);function c(d){s.value.message[0].content+=` {${d.name}} `,t.nextTick(()=>{l.value.focus()})}t.ref(null);function m(d){const p=d.getFullYear(),h=String(d.getMonth()+1).padStart(2,"0"),g=String(d.getDate()).padStart(2,"0"),k=String(d.getHours()).padStart(2,"0"),v=String(d.getMinutes()).padStart(2,"0");return`${p}-${h}-${g} ${k}:${v}`}function u(d,p){const h=new Date(d);return h.setHours(p.hours),h.setMinutes(p.minutes),h.setSeconds(p.seconds||0),m(h)}async function f(){r.value=!0;try{const d=JSON.parse(JSON.stringify(s.value));d.schedule.time=u(n.date,d.schedule.time);const p=await Qe[i.value](`http://localhost:8000/v1/api/crm/event/scheduled_message/${s.value.event_id?`${s.value.event_id}/`:""}`,{...d},{headers:{Authorization:`Bearer ${n.token}`}});Jn({group:"success",title:"Sucesso",text:p.data.message},2e3),o("close",!1)}catch(d){Jn({group:"error",title:"Erro",text:d.response.data.message},2e3)}finally{r.value=!1}}return(d,p)=>{const h=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("div",X4,[t.createTextVNode(t.toDisplayString(s.value.schedule.time)+" ",1),t.createElementVNode("div",Z4,[p[4]||(p[4]=t.createElementVNode("label",{for:"contentInput"},"Horário",-1)),t.createVNode(t.unref(xn),{"auto-apply":"true","time-picker":!0,locale:"pt-BR","cancel-text":"Cancelar","select-text":"Confirmar","enable-time-picker":!0,"min-date":new Date,"text-input":"",dark:e.theme,modelValue:s.value.schedule.time,"onUpdate:modelValue":p[0]||(p[0]=g=>s.value.schedule.time=g)},{"clear-icon":t.withCtx(({clear:g})=>p[3]||(p[3]=[])),_:1},8,["min-date","dark","modelValue"])]),t.createElementVNode("div",Q4,[p[5]||(p[5]=t.createElementVNode("label",{for:"contentInput"},"Conteúdo",-1)),t.withDirectives(t.createElementVNode("textarea",{id:"sheduleMessageArea",ref_key:"textareaRef",ref:l,autofocus:"","onUpdate:modelValue":p[1]||(p[1]=g=>s.value.message[0].content=g),placeholder:"Olá cliente, tudo bem?",class:"input bg-base-200"},null,512),[[t.vModelText,s.value.message[0].content]])]),e.currentChat.contact&&e.currentChat.contact.segmentation_fields.length>0?(t.openBlock(),t.createElementBlock("div",K4,[t.createElementVNode("div",J4,[p[8]||(p[8]=t.createTextVNode(" Campos personalizáveis disponíveis ")),t.createVNode(h,{placement:"top",arrow:!0,hover:!0,class:"info",content:""},{content:t.withCtx(()=>p[6]||(p[6]=[t.createElementVNode("p",{class:"info-content"}," Ao enviar a mensagem para o cliente o valor deste campo será substituído pelo valor correspondente no momento do envio ",-1)])),default:t.withCtx(()=>[p[7]||(p[7]=t.createElementVNode("svg",{class:"info-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm9.4-5.5a1 1 0 1 0 0 2 1 1 0 1 0 0-2ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4c0-.6-.4-1-1-1h-2Z","clip-rule":"evenodd"})],-1))]),_:1,__:[7]})]),t.createElementVNode("div",e5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.globalStore.messageStore.currentChat.contact.segmentation_fields,g=>(t.openBlock(),t.createElementBlock("div",{onClick:k=>c(g),key:g,class:"custom-field bg-primary"},t.toDisplayString(g.name),9,t5))),128))])])):t.createCommentVNode("",!0),s.value.file?(t.openBlock(),t.createElementBlock("div",a5,[t.createElementVNode("p",null,t.toDisplayString(s.value.fileName),1),t.createElementVNode("div",n5,[t.createElementVNode("button",{onClick:p[2]||(p[2]=g=>s.value.file=""),class:"file-remove-button"},p[9]||(p[9]=[t.createElementVNode("svg",{class:"file-remove-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)]))])])):t.createCommentVNode("",!0),t.createElementVNode("div",r5,[t.createElementVNode("button",{disabled:r.value,onClick:f,class:"save-button text-white"},[r.value?(t.openBlock(),t.createElementBlock("div",i5)):t.createCommentVNode("",!0),p[10]||(p[10]=t.createTextVNode(" Salvar "))],8,o5)])])}}},[["__scopeId","data-v-1d2f0f94"]]),l5={key:0},c5={key:1},d5={class:"main-container"},u5={key:0,class:"select-container"},f5=["value"],m5=je({__name:"createEvents",props:{modal:Boolean,date:Date,token:String,currentChat:Object,currentEvent:Object||null},emits:["close"],setup(e,{emit:a}){const n=[{type:"scheduled_messages",name:"Mensagens programadas"},{type:"reminders",name:"Lembrete"}],r=t.ref("reminders"),o=t.ref(null),i=e;t.onMounted(()=>{i.currentEvent&&(r.value=i.currentEvent.function)});const s=a;function l(u){const f={day:"numeric",month:"long",year:"numeric"};return u.toLocaleDateString("pt-BR",f)}const c=t.ref(i.modal);t.watch(()=>i.modal,u=>{c.value=u}),t.watch(c,u=>{u||s("close")});function m(u){o.value=u}return(u,f)=>(t.openBlock(),t.createBlock(nl,{modelValue:c.value,"onUpdate:modelValue":f[3]||(f[3]=d=>c.value=d)},{title:t.withCtx(()=>[e.currentEvent===null?(t.openBlock(),t.createElementBlock("div",l5," Novo evento "+t.toDisplayString(l(e.date)),1)):(t.openBlock(),t.createElementBlock("div",c5,t.toDisplayString(e.currentEvent.title)+" - "+t.toDisplayString(e.currentEvent.date.split("-").reverse().join("/"))+" "+t.toDisplayString(e.currentEvent.hours),1))]),body:t.withCtx(()=>[t.createElementVNode("main",d5,[e.currentEvent===null?(t.openBlock(),t.createElementBlock("div",u5,[t.withDirectives(t.createElementVNode("select",{"onUpdate:modelValue":f[0]||(f[0]=d=>r.value=d),class:"custom-select bg-base-100"},[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,d=>t.createElementVNode("option",{value:d.type,key:d.type},t.toDisplayString(d.name),9,f5)),64))],512),[[t.vModelSelect,r.value]]),f[4]||(f[4]=t.createElementVNode("svg",{class:"select-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.425 10.271C19.499 8.967 18.57 7 16.88 7H7.12c-1.69 0-2.618 1.967-1.544 3.271l4.881 5.927a2 2 0 0 0 3.088 0l4.88-5.927Z","clip-rule":"evenodd"})],-1))])):t.createCommentVNode("",!0),r.value==="reminders"?(t.openBlock(),t.createBlock(W4,{key:1,onClose:f[1]||(f[1]=d=>c.value=!1),token:e.token,date:e.date,onConfig:m},null,8,["token","date"])):r.value==="scheduled_messages"?(t.openBlock(),t.createBlock(s5,{key:2,event:e.currentEvent,currentChat:e.currentChat,onClose:f[2]||(f[2]=d=>c.value=!1),token:e.token,date:e.date},null,8,["event","currentChat","token","date"])):t.createCommentVNode("",!0)])]),_:1},8,["modelValue"]))}},[["__scopeId","data-v-5dd1aceb"]]),h5={class:"calendar-container text-white"},p5={class:"calendar-header bg-base-300"},g5={class:"calendar"},y5={class:"date-container"},k5={class:"date"},b5=["disabled","onClick"],x5=["onClick"],w5={class:"event-main"},v5={class:"event-title"},E5={class:"text-center w-full"},C5={class:"flex flex-col gap- text-sm items-center align-middle overflow-y-scroll w-full",style:{height:"50vh"}},S5={class:"w-[40%]"},M5={class:"p- w-1/4"},B5={class:"p- w-1/4"},A5={class:"p- w-1/4"},V5=["onClick"],il=je({__name:"calendar",props:{theme:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzI1MTEwNzY3LCJpYXQiOjE3MjUwMjQzNjcsImp0aSI6ImRiY2E3MjIzZTE2NzRmODJiZjQzOWQyNjYwZDIyYTRhIiwidXNlcl9pZCI6IjYyNGRmZTIzLTkyZDAtNDNmMS04MDYxLWEyMzIxZjJiNWViYiJ9.MMlinTjeEFJcIqzYkM3SgPzJrLafE-GLiZn1wQi4ggs"},currentChat:Object},setup(e){const a=t.ref({seeEvents:!1,events:null,date:new Date}),n=t.ref({date:new Date,modal:!1}),r=t.ref(null);function o(S){r.value=S,n.value={date:S.date,modal:!0},a.value.seeEvents=!1}function i(S){n.value.modal=S,r.value=null}function s(S){a.value.events=S.events,a.value.seeEvents=!0;const B={day:"numeric",month:"long",year:"numeric"};a.value.date=S.date.toLocaleDateString("pt-BR",B)}const l=e,c=new Date,m=t.ref(c.getMonth()),u=t.ref(c.getFullYear()),f=t.ref(new Date(u.value,m.value)),d=t.ref([]),p=S=>{S&&typeof S.year=="number"&&typeof S.month=="number"?(m.value=S.month,u.value=S.year,_()):console.error("Data inválida selecionada:",S)},h=new Array(7).fill(null).map((S,B)=>{const G=new Date(2021,0,B+3);return new Intl.DateTimeFormat("pt-BR",{weekday:"short"}).format(G)}),g=S=>{if(S instanceof Date){const B={month:"long",year:"numeric"};return new Intl.DateTimeFormat("pt-BR",B).format(S)}else return console.error("Data inválida fornecida ao formatador:",S),""},k=S=>{const B={scheduled_messages:"Mensagens Programadas",another_function:"Outro Título",default:"Evento Desconhecido"};return B[S]||B.default},v=async(S="http://localhost:8000/v1/api/crm/event/")=>{try{const G=(await Qe.get(S,{headers:{Authorization:`Bearer ${l.token}`}})).data,T=G.results.map(Q=>({...Q,title:k(Q.function),date:Q.params.schedule.time.split(" ")[0],hours:Q.params.schedule.time.split(" ")[1],color:"#cce5ff",tag:"blue"}));d.value.push(...T),G.next&&await v(G.next)}catch(B){console.error("Erro ao buscar eventos:",B)}},x=S=>d.value.filter(B=>{const G=new Date(B.date+"T00:00:00"),T=new Date(S.getFullYear(),S.getMonth(),S.getDate());return G.getTime()===T.getTime()}),b=(S,B)=>{const G=[],T=new Date(S,B,1),Q=new Date(S,B+1,0),U=T.getDay(),D=new Date(S,B,0).getDate();for(let q=U-1;q>=0;q--){const oe=new Date(S,B-1,D-q);G.push({date:oe,events:x(oe),isPrevMonth:!0})}for(let q=T;q<=Q;q.setDate(q.getDate()+1))G.push({date:new Date(q),events:x(new Date(q)),isPrevMonth:!1,isNextMonth:!1});const F=42-G.length;for(let q=1;q<=F;q++){const oe=new Date(S,B+1,q);G.push({date:oe,events:x(oe),isNextMonth:!0})}return G},A=t.ref([]),_=()=>{A.value=b(u.value,m.value)};t.onMounted(async()=>{await v(),_()});const O=()=>{m.value===0?(m.value=11,u.value--):m.value--,f.value={year:u.value,month:m.value},_()},N=()=>{m.value===11?(m.value=0,u.value++):m.value++,f.value={year:u.value,month:m.value},_()};return(S,B)=>{const G=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",h5,[t.createElementVNode("div",p5,[t.renderSlot(S.$slots,"backButton",{},void 0,!0),t.createElementVNode("button",{onClick:O,class:"calendar-button"},B[2]||(B[2]=[t.createElementVNode("svg",{class:"icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M5 12l4-4m-4 4 4 4"})],-1)])),t.createElementVNode("div",null,[t.createVNode(t.unref(xn),{dark:e.theme,"cancel-text":"Cancelar","select-text":"Selecionar",locale:"pt-BR",modelValue:f.value,"onUpdate:modelValue":[B[0]||(B[0]=T=>f.value=T),p],format:g,"only-month-picker":!0,"month-picker":!0},{"clear-icon":t.withCtx(({clear:T})=>B[3]||(B[3]=[])),_:1},8,["dark","modelValue"])]),t.createElementVNode("button",{onClick:N,class:"calendar-button"},B[4]||(B[4]=[t.createElementVNode("svg",{class:"icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 12H5m14 0-4 4m4-4-4-4"})],-1)]))]),t.createElementVNode("div",g5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(T,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q,class:"day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"},t.toDisplayString(T),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(A.value,(T,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q,class:t.normalizeClass([{"empty-day":!T.date,"prev-month-day":T.isPrevMonth,"next-month-day":T.isNextMonth},"day group h-full shadow shadow-black/90 dark:shadow-gray-400 bg-base-300 hover:bg-base-200 border border-base-200"])},[t.createElementVNode("div",y5,[t.createElementVNode("div",k5,t.toDisplayString(T.date.getDate()),1),t.createElementVNode("button",{disabled:T.date<new Date(new Date().setHours(0,0,0,0)),onClick:U=>(n.value.modal=!0,n.value.date=T.date),class:"add-event-button hidden group-hover:inline-block"},B[5]||(B[5]=[t.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7 7V5"})],-1)]),8,b5)]),T.events.length>0?(t.openBlock(),t.createElementBlock("footer",{key:0,onClick:U=>s(T),class:"events-container cursor-pointer"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.events,U=>(t.openBlock(),t.createElementBlock("div",{key:U.title,class:"event"},[t.createElementVNode("main",w5,[t.createVNode(G,{placement:"top",class:"dark:popper-light popper-dark",hover:!0,content:U.hours},{default:t.withCtx(()=>B[6]||(B[6]=[t.createElementVNode("svg",{class:"event-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm11-4a1 1 0 1 0-2 0v4a1 1 0 0 0 .293.707l3 3a1 1 0 0 0 1.414-1.414L13 11.586V8Z","clip-rule":"evenodd"})],-1)])),_:2,__:[6]},1032,["content"]),t.createElementVNode("p",v5,t.toDisplayString(U.title),1)])]))),128))],8,x5)):t.createCommentVNode("",!0)],2))),128))])]),t.createVNode(nl,{modelValue:a.value.seeEvents,"onUpdate:modelValue":B[1]||(B[1]=T=>a.value.seeEvents=T)},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.value.date),1)]),body:t.withCtx(()=>[t.createElementVNode("table",E5,[B[8]||(B[8]=t.createElementVNode("thead",{class:"bg-base-200 rounded-md flex text-white w-full"},[t.createElementVNode("tr",{class:"flex font-normal w-full"},[t.createElementVNode("th",{class:"p-2 w-[40%]"},"Evento"),t.createElementVNode("th",{class:"p-2 w-1/4"},"Horário"),t.createElementVNode("th",{class:"p-2 w-1/4"},"Paramêtros"),t.createElementVNode("th",{class:"p-2 w-1/4"},"Ações")])],-1)),t.createElementVNode("tbody",C5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value.events,T=>(t.openBlock(),t.createElementBlock("tr",{key:T.title,class:"flex mt-1 hover:bg-base-200 align-middle items-center rounded-xl py-2 w-full"},[t.createElementVNode("td",S5,t.toDisplayString(T.title),1),t.createElementVNode("td",M5,t.toDisplayString(T.hours),1),t.createElementVNode("td",B5,t.toDisplayString(T.date),1),t.createElementVNode("td",A5,[t.createElementVNode("button",{onClick:Q=>o(T),class:"bg-green-500 hover:bg-green-400 rounded-md p-1"},B[7]||(B[7]=[t.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"})],-1)]),8,V5)])]))),128))])])]),_:1},8,["modelValue"]),n.value.modal?(t.openBlock(),t.createBlock(m5,{key:0,currentEvent:r.value,currentChat:e.currentChat,token:e.token,onClose:i,modal:n.value.modal,date:n.value.date},null,8,["currentEvent","currentChat","token","modal","date"])):t.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-972e6756"]]),_5={class:"flex flex-col text-center"},N5={class:"flex flex-col space-y-3 justify-center"},D5={class:"space-x-4 flex-col text-black justify-center"},T5=["onUpdate:modelValue","onInput","onKeydown"],sl={__name:"mfa",props:{eventHandling:{type:String,default:null}},emits:["filled","reset"],setup(e,{emit:a}){t.onMounted(()=>{o.value[0].focus()});const n=a,r=t.ref(Array(6).fill("")),o=t.ref([]);t.ref(!1);const i=m=>{const u=r.value[m];r.value[0]<1&&n("reset"),/^\d$/.test(u)?s(m):r.value[m]="",m===r.value.length-1&&r.value.every(f=>f!=="")&&c()},s=m=>{m<r.value.length-1&&r.value[m]&&o.value[m+1].focus()},l=(m,u)=>{u.key==="Backspace"&&!r.value[m]&&m>0&&o.value[m-1].focus()},c=()=>{const m=r.value.join("");n("filled",m)};return(m,u)=>(t.openBlock(),t.createElementBlock("section",_5,[t.createElementVNode("div",N5,[t.createElementVNode("div",D5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(f,d)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:d,"onUpdate:modelValue":p=>r.value[d]=p,class:t.normalizeClass([e.eventHandling==="check"?"checked_mfa":e.eventHandling==="err"?"err_mfa":"reset_input","inline-block w-10 h-10 rounded-md text-center"]),type:"text",maxlength:"1",onInput:p=>i(d),onKeydown:t.withKeys(p=>l(d,p),["backspace"]),ref_for:!0,ref_key:"inputs",ref:o},null,42,T5)),[[t.vModelText,r.value[d]]])),128))])])]))}},P5={class:"text-center flex gap-3"},O5={class:"flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black"},F5={key:0,class:"items-center justify-center inline-flex"},L5=["src"],$5={__name:"mfaQrCode",props:{base64:{type:String,default:""},dimensions:{type:Array,default:null},loading:{type:Boolean,default:!1},generated:{type:Boolean,default:!1}},emits:["generateQR"],setup(e,{emit:a}){const n=a;t.ref(!1);const r=e,o=()=>{n("generateQR")},i=t.computed(()=>r.base64?r.base64:l.value),s=t.computed(()=>`w-${r.dimensions[0]} h-${r.dimensions[1]}`),l=t.ref("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII=");return(c,m)=>(t.openBlock(),t.createElementBlock("div",P5,[t.createElementVNode("section",O5,[e.generated?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([s.value,"btnQrCode"])},[e.loading?(t.openBlock(),t.createElementBlock("div",F5,m[0]||(m[0]=[t.createElementVNode("div",{class:"loaderMFA"},null,-1)]))):(t.openBlock(),t.createElementBlock("button",{key:1,class:"uppercase bg-base-300 p-2 z-40",onClick:o}," Gerar QR "))],2)),t.createElementVNode("img",{class:t.normalizeClass([[s.value,e.generated?"rounded-md":"rounded-none"],""]),src:i.value,alt:"QRCode"},null,10,L5)])]))}},er=It.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),actions:{async fetchAttendants(){try{this.attendants=[];let e=`${t2}`;const a=await ra.get(e);this.attendants=a.data,this.count=this.attendants.length}catch(e){console.log("Erro ao buscar atendentes:",e)}},removeAttendants(e){this.attendants=this.attendants.filter(a=>a.id!==e)},addAttendants(e){const a=this.attendants.findIndex(n=>n.id===e.id);a!==-1?this.attendants[a]=e:this.attendants.push(e)}}});for(var ht=[],vo=0;vo<256;++vo)ht.push((vo+256).toString(16).slice(1));function R5(e,a=0){return(ht[e[a+0]]+ht[e[a+1]]+ht[e[a+2]]+ht[e[a+3]]+"-"+ht[e[a+4]]+ht[e[a+5]]+"-"+ht[e[a+6]]+ht[e[a+7]]+"-"+ht[e[a+8]]+ht[e[a+9]]+"-"+ht[e[a+10]]+ht[e[a+11]]+ht[e[a+12]]+ht[e[a+13]]+ht[e[a+14]]+ht[e[a+15]]).toLowerCase()}var tr,H5=new Uint8Array(16);function z5(){if(!tr&&(tr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tr(H5)}var I5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ll={randomUUID:I5};function G5(e,a,n){if(ll.randomUUID&&!e)return ll.randomUUID();e=e||{};var r=e.random||(e.rng||z5)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,R5(r)}function cl(){const e=er(),a=async l=>{const c=e.attendants.find(m=>m.id===l);if(c)try{const m=await ra.get(`${Lr}?attendant=${l}&page=1`);c.messages=m.data.results.reverse(),c.hasNextPage=m.data.next!==null,c.currentPage=2,c.internal_chat={channel_id:m.data.channel_id,unread:0}}catch(m){console.error("Erro ao buscar mensagens:",m)}},n=async l=>{const c=e.attendants.find(m=>m.id===l);if(!(!c||!c.hasNextPage))try{const m=await ra.get(`${Lr}?attendant=${l}&page=${c.currentPage}`);c.messages=[...m.data.results.reverse(),...c.messages],c.hasNextPage=m.data.next!==null,c.currentPage++}catch(m){console.error("Erro ao carregar mais mensagens:",m)}},r=(l,c,m)=>{const u=l==null?void 0:l.message;if(!u)return;const f=e.attendants.find(d=>{var p;return((p=d.internal_chat)==null?void 0:p.channel_id)===u.channel_id});f?(f.messages=f.messages||[],f.messages.find(p=>p.id===u.id)||(f.messages.push(u),(!c||f.id!==m)&&(f.internal_chat.unread=(f.internal_chat.unread||0)+1))):console.error("Atendente não encontrado para o canal especificado.")},o=l=>{const c=e.attendants.find(m=>m.id===l);c&&(c.internal_chat.unread=0)},i=async(l,c,m,u=!1)=>{var h;const f=e.attendants.find(g=>g.id===l);if(!f||!((h=f.internal_chat)!=null&&h.channel_id))return;let d;u?d=c:d={type:"text",content:c};const p={id:G5(),content:d,created_at:new Date().toISOString(),sender:m};f.messages.push(p);try{await ra.post(`${Lr}${f.internal_chat.channel_id}/message/`,{id:p.id,content:p.content})}catch(g){console.error("Erro ao enviar mensagem:",g)}},s=l=>{const c=e.attendants.find(m=>m.id===l);return c?c.hasNextPage:!1};return{attendants:t.computed(()=>e.attendants),count:t.computed(()=>e.count),fetchMessagesForAtendente:a,loadMessagesForAtendente:n,addMessageToAtendente:r,sendMessageToAtendente:i,hasNextPageForAtendente:s,resetUnreadMessages:o}}const j5={class:"avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500"},q5={key:0,style:{"padding-top":"0.5rem"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},W5=["src"],Eo=je({__name:"Avatar",props:{url:{type:String}},setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("div",j5,[e.url?(t.openBlock(),t.createElementBlock("img",{key:1,style:{"object-fit":"scale-down"},src:e.url},null,8,W5)):(t.openBlock(),t.createElementBlock("svg",q5,n[0]||(n[0]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"},null,-1)])))]))}},[["__scopeId","data-v-7d8b2820"]]),Y5={class:"attendants-container"},U5={class:"atendentes-list bg-base-300"},X5={key:0,class:"empty-message bg-base-200"},Z5=["onClick"],Q5={class:"atendente-main"},K5={class:"atendente-name"},J5={class:"flex items-center gap-4"},e6={key:0,class:"message-indicator"},t6={key:0,class:"chat-footer bg-base-200"},dl=je({__name:"ChatList",props:{atendentes:{type:Array,required:!0},attendant:{required:!0},mobile:{type:Boolean,default:!1}},emits:["atendenteSelecionado"],setup(e,{emit:a}){const n=e,r=a,o=t.ref(""),i=c=>{r("atendenteSelecionado",c)},s=c=>{switch(c){case"Busy":return"bg-red-500";case"Online":return"bg-green-500";case"Away":return"bg-yellow-500";case"Offline":return"bg-gray-500";default:return"bg-purple-500"}},l=t.computed(()=>o.value?n.atendentes.filter(c=>c.name.toLowerCase().includes(o.value.toLowerCase())&&c.id!==n.attendant.id):n.atendentes.filter(c=>c.id!==n.attendant.id));return(c,m)=>(t.openBlock(),t.createElementBlock("div",Y5,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":m[0]||(m[0]=u=>o.value=u),class:t.normalizeClass(e.mobile?"search-input-mobile bg-base-300 border-b border-base-200":"search-input bg-base-300 border-b border-base-200"),placeholder:"Pesquise entre os atendentes..."},null,2),[[t.vModelText,o.value]]),t.createElementVNode("ul",U5,[l.value.length===0?(t.openBlock(),t.createElementBlock("li",X5,t.toDisplayString(e.atendentes.length===0?"Não há atendentes disponíveis":"Não há atendentes com esse nome"),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,u=>(t.openBlock(),t.createElementBlock("li",{key:u.id,onClick:f=>i(u),class:t.normalizeClass([["atendente-item",u.isMoved?"moved":""],"border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])},[t.createElementVNode("main",Q5,[t.createVNode(Eo,{url:u.photo},null,8,["url"]),t.createElementVNode("span",K5,t.toDisplayString(u.name),1)]),t.createElementVNode("footer",J5,[u.internal_chat.unread>0?(t.openBlock(),t.createElementBlock("span",e6,t.toDisplayString(u.internal_chat.unread),1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["status-indicator",s(u.login_status)])},null,2)]),m[1]||(m[1]=t.createElementVNode("div",{class:"hover-action"},"Conversar",-1))],10,Z5))),128))]),e.mobile?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("footer",t6))]))}},[["__scopeId","data-v-dc8950e9"]]);function a6(e,a=null){if(!e)return!1;const n=e.getBoundingClientRect(),r=a?a.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>=r.top&&n.top<=r.bottom&&n.right>=r.left&&n.left<=r.right}async function n6(e){return e?(await t.nextTick(),e.value instanceof HTMLElement?e.value:e.value?document.querySelector(e.value):null):null}function r6(e){let a=`0px 0px ${e.distance}px 0px`;e.top&&(a=`${e.distance}px 0px 0px 0px`);const n=new IntersectionObserver(r=>{r[0].isIntersecting&&(e.firstload&&e.emit(),e.firstload=!0)},{root:e.parentEl,rootMargin:a});return e.infiniteLoading.value&&n.observe(e.infiniteLoading.value),n}async function ul(e,a){if(await t.nextTick(),!e.top)return;const n=e.parentEl||document.documentElement;n.scrollTop=n.scrollHeight-a}const fl=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},o6={},i6=e=>(t.pushScopeId("data-v-d3e37633"),e=e(),t.popScopeId(),e),s6={class:"container"},l6=i6(()=>t.createElementVNode("div",{class:"spinner"},null,-1)),c6=[l6];function d6(e,a){return t.openBlock(),t.createElementBlock("div",s6,c6)}const u6=fl(o6,[["render",d6],["__scopeId","data-v-d3e37633"]]),f6={class:"state-error"},Co=fl(t.defineComponent({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(e,{emit:a}){const n=e;let r=null,o=0;const i=t.ref(null),s=t.ref(""),{top:l,firstload:c,distance:m}=n,{identifier:u,target:f}=t.toRefs(n),d={infiniteLoading:i,top:l,firstload:c,distance:m,parentEl:null,emit(){o=(d.parentEl||document.documentElement).scrollHeight,p.loading(),a("infinite",p)}},p={loading(){s.value="loading"},async loaded(){s.value="loaded",await ul(d,o),a6(i.value,d.parentEl)&&d.emit()},async complete(){s.value="complete",await ul(d,o),r==null||r.disconnect()},error(){s.value="error"}};function h(){r==null||r.disconnect(),r=r6(d)}return t.watch(u,h),t.onMounted(async()=>{d.parentEl=await n6(f),h()}),t.onUnmounted(()=>r==null?void 0:r.disconnect()),(g,k)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"infiniteLoading",ref:i,class:"v3-infinite-loading"},[t.withDirectives(t.createElementVNode("div",null,[t.renderSlot(g.$slots,"spinner",{},()=>[t.createVNode(u6)],!0)],512),[[t.vShow,s.value=="loading"]]),s.value=="complete"?t.renderSlot(g.$slots,"complete",{key:0},()=>{var v;return[t.createElementVNode("span",null,t.toDisplayString(((v=g.slots)==null?void 0:v.complete)||"No more results!"),1)]},!0):t.createCommentVNode("",!0),s.value=="error"?t.renderSlot(g.$slots,"error",{key:1,retry:d.emit},()=>{var v;return[t.createElementVNode("span",f6,[t.createElementVNode("span",null,t.toDisplayString(((v=g.slots)==null?void 0:v.error)||"Oops something went wrong!"),1),t.createElementVNode("button",{class:"retry",onClick:k[0]||(k[0]=(...x)=>d.emit&&d.emit(...x))},"retry")])]},!0):t.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]),ml=6048e5,m6=864e5,hl=Symbol.for("constructDateFrom");function _t(e,a){return typeof e=="function"?e(a):e&&typeof e=="object"&&hl in e?e[hl](a):e instanceof Date?new e.constructor(a):new Date(a)}function Nt(e,a){return _t(a||e,e)}function h6(e,a,n){const r=Nt(e,n==null?void 0:n.in);return isNaN(a)?_t(e,NaN):(r.setDate(r.getDate()+a),r)}let p6={};function ar(){return p6}function Da(e,a){var l,c,m,u;const n=ar(),r=(a==null?void 0:a.weekStartsOn)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,o=Nt(e,a==null?void 0:a.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function nr(e,a){return Da(e,{...a,weekStartsOn:1})}function pl(e,a){const n=Nt(e,a==null?void 0:a.in),r=n.getFullYear(),o=_t(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=nr(o),s=_t(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=nr(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function gl(e){const a=Nt(e),n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),+e-+n}function So(e,...a){const n=_t.bind(null,a.find(r=>typeof r=="object"));return a.map(n)}function rr(e,a){const n=Nt(e,a==null?void 0:a.in);return n.setHours(0,0,0,0),n}function g6(e,a,n){const[r,o]=So(n==null?void 0:n.in,e,a),i=rr(r),s=rr(o),l=+i-gl(i),c=+s-gl(s);return Math.round((l-c)/m6)}function y6(e,a){const n=pl(e,a),r=_t(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),nr(r)}function Mo(e){return _t(e,Date.now())}function yl(e,a,n){const[r,o]=So(n==null?void 0:n.in,e,a);return+rr(r)==+rr(o)}function k6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function b6(e){return!(!k6(e)&&typeof e!="number"||isNaN(+Nt(e)))}function x6(e,a){const n=Nt(e,a==null?void 0:a.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const w6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},v6=(e,a,n)=>{let r;const o=w6[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xa(e){return(a={})=>{const n=a.width?String(a.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const E6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},C6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M6={date:Xa({formats:E6,defaultWidth:"full"}),time:Xa({formats:C6,defaultWidth:"full"}),dateTime:Xa({formats:S6,defaultWidth:"full"})},B6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},A6=(e,a,n,r)=>B6[e];function Ut(e){return(a,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(a):a;return o[i]}}const V6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},N6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},D6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},T6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},O6={ordinalNumber:(e,a)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ut({values:V6,defaultWidth:"wide"}),quarter:Ut({values:_6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ut({values:N6,defaultWidth:"wide"}),day:Ut({values:D6,defaultWidth:"wide"}),dayPeriod:Ut({values:T6,defaultWidth:"wide",formattingValues:P6,defaultFormattingWidth:"wide"})};function Xt(e){return(a,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=a.match(o);if(!i)return null;const s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?L6(l,f=>f.test(s)):F6(l,f=>f.test(s));let m;m=e.valueCallback?e.valueCallback(c):c,m=n.valueCallback?n.valueCallback(m):m;const u=a.slice(s.length);return{value:m,rest:u}}}function F6(e,a){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&a(e[n]))return n}function L6(e,a){for(let n=0;n<e.length;n++)if(a(e[n]))return n}function kl(e){return(a,n={})=>{const r=a.match(e.matchPattern);if(!r)return null;const o=r[0],i=a.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=a.slice(o.length);return{value:s,rest:l}}}const $6=/^(\d+)(th|st|nd|rd)?/i,R6=/\d+/i,H6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},z6={any:[/^b/i,/^(a|c)/i]},I6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},G6={any:[/1/i,/2/i,/3/i,/4/i]},j6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},q6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},W6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Y6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},U6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},X6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Z6={ordinalNumber:kl({matchPattern:$6,parsePattern:R6,valueCallback:e=>parseInt(e,10)}),era:Xt({matchPatterns:H6,defaultMatchWidth:"wide",parsePatterns:z6,defaultParseWidth:"any"}),quarter:Xt({matchPatterns:I6,defaultMatchWidth:"wide",parsePatterns:G6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Xt({matchPatterns:j6,defaultMatchWidth:"wide",parsePatterns:q6,defaultParseWidth:"any"}),day:Xt({matchPatterns:W6,defaultMatchWidth:"wide",parsePatterns:Y6,defaultParseWidth:"any"}),dayPeriod:Xt({matchPatterns:U6,defaultMatchWidth:"any",parsePatterns:X6,defaultParseWidth:"any"})},Q6={code:"en-US",formatDistance:v6,formatLong:M6,formatRelative:A6,localize:O6,match:Z6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function K6(e,a){const n=Nt(e,a==null?void 0:a.in);return g6(n,x6(n))+1}function J6(e,a){const n=Nt(e,a==null?void 0:a.in),r=+nr(n)-+y6(n);return Math.round(r/ml)+1}function bl(e,a){var u,f,d,p;const n=Nt(e,a==null?void 0:a.in),r=n.getFullYear(),o=ar(),i=(a==null?void 0:a.firstWeekContainsDate)??((f=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(d=o.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=_t((a==null?void 0:a.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=Da(s,a),c=_t((a==null?void 0:a.in)||e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const m=Da(c,a);return+n>=+l?r+1:+n>=+m?r:r-1}function e7(e,a){var l,c,m,u;const n=ar(),r=(a==null?void 0:a.firstWeekContainsDate)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.firstWeekContainsDate)??1,o=bl(e,a),i=_t((a==null?void 0:a.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Da(i,a)}function t7(e,a){const n=Nt(e,a==null?void 0:a.in),r=+Da(n,a)-+e7(n,a);return Math.round(r/ml)+1}function Ge(e,a){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(a,"0");return n+r}const ma={y(e,a){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(a==="yy"?r%100:r,a.length)},M(e,a){const n=e.getMonth();return a==="M"?String(n+1):Ge(n+1,2)},d(e,a){return Ge(e.getDate(),a.length)},a(e,a){const n=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,a){return Ge(e.getHours()%12||12,a.length)},H(e,a){return Ge(e.getHours(),a.length)},m(e,a){return Ge(e.getMinutes(),a.length)},s(e,a){return Ge(e.getSeconds(),a.length)},S(e,a){const n=a.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ge(o,a.length)}},Za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xl={G:function(e,a,n){const r=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ma.y(e,a)},Y:function(e,a,n,r){const o=bl(e,r),i=o>0?o:1-o;if(a==="YY"){const s=i%100;return Ge(s,2)}return a==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ge(i,a.length)},R:function(e,a){const n=pl(e);return Ge(n,a.length)},u:function(e,a){const n=e.getFullYear();return Ge(n,a.length)},Q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return Ge(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return Ge(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){const r=e.getMonth();switch(a){case"M":case"MM":return ma.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){const r=e.getMonth();switch(a){case"L":return String(r+1);case"LL":return Ge(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){const o=t7(e,r);return a==="wo"?n.ordinalNumber(o,{unit:"week"}):Ge(o,a.length)},I:function(e,a,n){const r=J6(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ma.d(e,a)},D:function(e,a,n){const r=K6(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(r,a.length)},E:function(e,a,n){const r=e.getDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(i);case"cc":return Ge(i,a.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,n){const r=e.getDay(),o=r===0?7:r;switch(a){case"i":return String(o);case"ii":return Ge(o,a.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){const o=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,n){const r=e.getHours();let o;switch(r===12?o=Za.noon:r===0?o=Za.midnight:o=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,n){const r=e.getHours();let o;switch(r>=17?o=Za.evening:r>=12?o=Za.afternoon:r>=4?o=Za.morning:o=Za.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ma.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ma.H(e,a)},K:function(e,a,n){const r=e.getHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,a.length)},k:function(e,a,n){let r=e.getHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ma.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ma.s(e,a)},S:function(e,a){return ma.S(e,a)},X:function(e,a,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(a){case"X":return vl(r);case"XXXX":case"XX":return Ta(r);case"XXXXX":case"XXX":default:return Ta(r,":")}},x:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"x":return vl(r);case"xxxx":case"xx":return Ta(r);case"xxxxx":case"xxx":default:return Ta(r,":")}},O:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+wl(r,":");case"OOOO":default:return"GMT"+Ta(r,":")}},z:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+wl(r,":");case"zzzz":default:return"GMT"+Ta(r,":")}},t:function(e,a,n){const r=Math.trunc(+e/1e3);return Ge(r,a.length)},T:function(e,a,n){return Ge(+e,a.length)}};function wl(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+a+Ge(i,2)}function vl(e,a){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):Ta(e,a)}function Ta(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ge(Math.trunc(r/60),2),i=Ge(r%60,2);return n+o+a+i}const El=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Cl=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},a7={p:Cl,P:(e,a)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return El(e,a);let i;switch(r){case"P":i=a.dateTime({width:"short"});break;case"PP":i=a.dateTime({width:"medium"});break;case"PPP":i=a.dateTime({width:"long"});break;case"PPPP":default:i=a.dateTime({width:"full"});break}return i.replace("{{date}}",El(r,a)).replace("{{time}}",Cl(o,a))}},n7=/^D+$/,r7=/^Y+$/,o7=["D","DD","YY","YYYY"];function i7(e){return n7.test(e)}function s7(e){return r7.test(e)}function l7(e,a,n){const r=c7(e,a,n);if(console.warn(r),o7.includes(e))throw new RangeError(r)}function c7(e,a,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const d7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f7=/^'([^]*?)'?$/,m7=/''/g,h7=/[a-zA-Z]/;function Sl(e,a,n){var u,f,d,p,h,g,k,v;const r=ar(),o=(n==null?void 0:n.locale)??r.locale??Q6,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((v=(k=r.locale)==null?void 0:k.options)==null?void 0:v.weekStartsOn)??0,l=Nt(e,n==null?void 0:n.in);if(!b6(l))throw new RangeError("Invalid time value");let c=a.match(u7).map(x=>{const b=x[0];if(b==="p"||b==="P"){const A=a7[b];return A(x,o.formatLong)}return x}).join("").match(d7).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const b=x[0];if(b==="'")return{isToken:!1,value:p7(x)};if(xl[b])return{isToken:!0,value:x};if(b.match(h7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const m={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(x=>{if(!x.isToken)return x.value;const b=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&s7(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&i7(b))&&l7(b,a,String(e));const A=xl[b[0]];return A(l,b,o.localize,m)}).join("")}function p7(e){const a=e.match(f7);return a?a[1].replace(m7,"'"):e}function g7(e,a,n){const[r,o]=So(n==null?void 0:n.in,e,a);return+Da(r,n)==+Da(o,n)}function y7(e,a){return g7(_t(e,e),Mo(e),a)}function k7(e,a){return yl(_t(e,e),Mo(e))}function b7(e,a,n){return h6(e,-1,n)}function x7(e,a){return yl(_t(e,e),b7(Mo(e)))}const w7={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},v7=(e,a,n)=>{let r;const o=w7[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",String(a)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"há "+r:r},E7={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},C7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},S7={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M7={date:Xa({formats:E7,defaultWidth:"full"}),time:Xa({formats:C7,defaultWidth:"full"}),dateTime:Xa({formats:S7,defaultWidth:"full"})},B7={lastWeek:e=>{const a=e.getDay();return"'"+(a===0||a===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},A7=(e,a,n,r)=>{const o=B7[e];return typeof o=="function"?o(a):o},V7={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},_7={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},N7={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},D7={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},T7={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},P7={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},O7={ordinalNumber:(e,a)=>{const n=Number(e);return(a==null?void 0:a.unit)==="week"?n+"ª":n+"º"},era:Ut({values:V7,defaultWidth:"wide"}),quarter:Ut({values:_7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ut({values:N7,defaultWidth:"wide"}),day:Ut({values:D7,defaultWidth:"wide"}),dayPeriod:Ut({values:T7,defaultWidth:"wide",formattingValues:P7,defaultFormattingWidth:"wide"})},F7=/^(\d+)[ºªo]?/i,L7=/\d+/i,$7={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},R7={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},H7={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},z7={any:[/1/i,/2/i,/3/i,/4/i]},I7={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},G7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},j7={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},q7={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},W7={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Y7={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},U7={ordinalNumber:kl({matchPattern:F7,parsePattern:L7,valueCallback:e=>parseInt(e,10)}),era:Xt({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:R7,defaultParseWidth:"any"}),quarter:Xt({matchPatterns:H7,defaultMatchWidth:"wide",parsePatterns:z7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Xt({matchPatterns:I7,defaultMatchWidth:"wide",parsePatterns:G7,defaultParseWidth:"any"}),day:Xt({matchPatterns:j7,defaultMatchWidth:"wide",parsePatterns:q7,defaultParseWidth:"any"}),dayPeriod:Xt({matchPatterns:W7,defaultMatchWidth:"any",parsePatterns:Y7,defaultParseWidth:"any"})},Ml={code:"pt-BR",formatDistance:v7,formatLong:M7,formatRelative:A7,localize:O7,match:U7,options:{weekStartsOn:0,firstWeekContainsDate:1}};/*! License details at fancyapps.com/license */const mt=e=>typeof e=="string";/*! License details at fancyapps.com/license */const Qa=e=>e&&e!==null&&e instanceof Element&&"nodeType"in e;/*! License details at fancyapps.com/license */const X7=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const a=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,r=n.indexOf("hidden")!==-1,o=n.indexOf("visible")!==-1;return a&&!r&&!o},wn=function(e,a=void 0){return!e||e===document.body||a&&e===a?null:X7(e)?e:wn(e.parentElement,a)};/*! License details at fancyapps.com/license */const ha=function(e){var a=new DOMParser().parseFromString(e,"text/html").body;if(a.childElementCount>1){for(var n=document.createElement("div");a.firstChild;)n.appendChild(a.firstChild);return n}let r=a.firstChild;return!r||r instanceof HTMLElement?r:((n=document.createElement("div")).appendChild(r),n)};/*! License details at fancyapps.com/license */const $e=function(e=0,a=0,n=0){return Math.max(Math.min(a,n),e)};/*! License details at fancyapps.com/license */const Et=e=>typeof e=="object"&&e!==null&&e.constructor===Object&&Object.prototype.toString.call(e)==="[object Object]";/*! License details at fancyapps.com/license */function Bl(e){return Et(e)||Array.isArray(e)}function Bo(e,a){const n=Object.keys(e),r=Object.keys(a);return n.length===r.length&&n.every(o=>{const i=e[o],s=a[o];return typeof i=="function"?`${i}`==`${s}`:Bl(i)&&Bl(s)?Bo(i,s):i===s})}/*! License details at fancyapps.com/license */const Al=function(e){for(const a of or)a.getState()===Ct.Running&&a.tick(Ao?e-Ao:0);Ao=e,Ja=window.requestAnimationFrame(Al)};var Ct,pa,Ka;(function(e){e[e.Initializing=0]="Initializing",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Completed=3]="Completed",e[e.Destroyed=4]="Destroyed"})(Ct||(Ct={})),function(e){e[e.Spring=0]="Spring",e[e.Ease=1]="Ease"}(pa||(pa={})),function(e){e[e.Loop=0]="Loop",e[e.Reverse=1]="Reverse"}(Ka||(Ka={}));const or=new Set;let Ja=null,Ao=0;function ga(){let e=Ct.Initializing,a=pa.Ease,n=0,r=0,o=ga.Easings.Linear,i=500,s=0,l=0,c=0,m=0,u=1/0,f=.01,d=.01,p=!1,h={},g=null,k={},v={},x={},b=0,A=0,_=Ka.Loop,O=ga.Easings.Linear;const N=new Map;function S(U,...E){for(const D of N.get(U)||[])D(...E)}function B(U){return r=0,U?g=setTimeout(()=>{G()},U):G(),Q}function G(){e=Ct.Running,S("start",k,v)}function T(){if(e=Ct.Completed,x={},S("end",k),e===Ct.Completed)if(n<b){if(n++,_===Ka.Reverse){const U=Object.assign({},h);h=Object.assign({},v),v=U}B(A)}else n=0;return Q}const Q={getState:function(){return e},easing:function(U){return o=U,a=pa.Ease,x={},Q},duration:function(U){return i=U,Q},spring:function(U={}){a=pa.Spring;const E={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:D,mass:F,tension:q,friction:oe,restDelta:V,restSpeed:w,maxSpeed:X,clamp:K}=Object.assign(Object.assign({},E),U);return s=D,l=F,c=q,m=oe,d=V,f=w,u=X,p=K,x={},Q},isRunning:function(){return e===Ct.Running},isSpring:function(){return a===pa.Spring},from:function(U){return k=Object.assign({},U),Q},to:function(U){return v=U,Q},repeat:function(U,E=0,D=Ka.Loop,F){return b=U,A=E,_=D,O=F||o,Q},on:function(U,E){var D,F;return D=U,F=E,N.set(D,[...N.get(D)||[],F]),Q},off:function(U,E){var D,F;return D=U,F=E,N.has(D)&&N.set(D,N.get(D).filter(q=>q!==F)),Q},start:function(U){return e=Ct.Initializing,h=Object.assign({},k),Bo(h,v)||(or.add(this),Ja||(Ja=window.requestAnimationFrame(Al)),B(U)),Q},pause:function(){return g&&(clearTimeout(g),g=null),e===Ct.Running&&(e=Ct.Paused,S("pause",k)),Q},end:T,tick:function(U){U>50&&(U=50),r+=U;let E=0,D=!1;if(e!==Ct.Running)return Q;if(a===pa.Ease){E=$e(0,r/i,1),D=E===1;const q=_===Ka.Reverse?O:o;for(const oe in k)k[oe]=h[oe]+(v[oe]-h[oe])*q(E)}if(a===pa.Spring){const q=.001*U;let oe=0;for(const V in k){const w=v[V];let X=k[V];if(typeof w!="number"||isNaN(w)||typeof X!="number"||isNaN(X))continue;if(Math.abs(w-X)<=d){k[V]=w,x[V]=0;continue}x[V]||(typeof s=="object"&&typeof s[V]=="number"?x[V]=s[V]:x[V]=typeof s=="number"?s:0);let K=x[V];K=$e(-1*Math.abs(u),K,Math.abs(u));const W=K*l*m;K+=((X>w?-1:1)*(Math.abs(w-X)*c)-W)/l*q,X+=K*q;const M=k[V]>w?X<w:X>w;let J=Math.abs(K)<f&&Math.abs(w-X)<=d;p&&M&&(J=!0),J?(X=w,K=0):oe++,k[V]=X,x[V]=K}D=!oe}const F=Object.assign({},v);return S("step",k,h,v,E),D&&e===Ct.Running&&Bo(v,F)&&(e=Ct.Completed,T()),Q},getStartValues:function(){return h},getCurrentValues:function(){return k},getCurrentVelocities:function(){return x},getEndValues:function(){return v},destroy:function(){e=Ct.Destroyed,g&&(clearTimeout(g),g=null),h=k=v={},or.delete(this)}};return Q}ga.destroy=()=>{for(const e of or)e.destroy();Ja&&(cancelAnimationFrame(Ja),Ja=null)},ga.Easings={Linear:function(e){return e},EaseIn:function(e){return e===0?0:Math.pow(2,10*e-10)},EaseOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},EaseInOut:function(e){return e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}};/*! License details at fancyapps.com/license */function Vo(e){const a=[],n=typeof TouchEvent<"u"&&e instanceof TouchEvent?e.touches:e instanceof MouseEvent&&e.type!=="mouseup"?[e]:[];for(const r of n)a.push({x:r.clientX,y:r.clientY,ts:Date.now()});return a}function Vl(e){const a=[],n=typeof TouchEvent<"u"&&e instanceof TouchEvent?e.changedTouches:e instanceof MouseEvent?[e]:[];for(const r of n)a.push({x:r.clientX,y:r.clientY,ts:Date.now()});return a}function ya(e){const a=e[0],n=e[1]||a;return{x:(a.x+n.x)/2,y:(a.y+n.y)/2,ts:n.ts}}function ir(e){const a=e[0],n=e[1]||e[0];return a&&n?-1*Math.sqrt((n.x-a.x)*(n.x-a.x)+(n.y-a.y)*(n.y-a.y)):0}const _l=e=>{e.cancelable&&e.preventDefault()},ka={passive:!1},Z7={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let _o=!1,vn=!0;const En=(e,a)=>{let n,r,o,i=Object.assign(Object.assign({},Z7),a),s=[],l=[],c=[],m=!1,u=!1,f=!1,d=0,p=0,h=0,g=0,k=0,v=0,x=0,b=0,A=0,_=[],O=0,N=0;const S=new Map;function B(V){const w=ir(l),X=ir(c),K=w&&X?w/X:0,W=Math.abs(x)>Math.abs(b)?x:b,M={srcEvent:n,isPanRecognized:m,isSwipeRecognized:u,firstTouch:s,previousTouch:c,currentTouch:l,deltaX:h,deltaY:g,offsetX:k,offsetY:v,velocityX:x,velocityY:b,velocity:W,angle:A,axis:o,scale:K,center:r};for(const J of S.get(V)||[])J(M)}function G(V){const w=Date.now();_=_.filter(X=>!X.ts||X.ts>w-100),V&&_.push(V)}function T(){if(x=0,b=0,_.length>3){const V=_[0],w=_[_.length-1];if(V&&w){const X=w.x-V.x,K=w.y-V.y,W=V.ts&&w.ts?w.ts-V.ts:0;W>0&&(x=Math.abs(X)>3?X/(W/30):0,b=Math.abs(K)>3?K/(W/30):0)}}}function Q(V){if(V instanceof MouseEvent){if(_o)return}else _o=!0;const w=V.composedPath()[0],X=i.ignore.join(",");if(w.matches(X)||w.closest(X)||typeof MouseEvent<"u"&&V instanceof MouseEvent&&(!V.buttons||V.button!==0))return;V instanceof MouseEvent&&_l(V);const K=Date.now(),W=K-(d||K);f=W>0&&W<=250,d=K,clearTimeout(O),n=V,V instanceof MouseEvent&&(window.addEventListener("mousemove",U),window.addEventListener("mouseup",E)),window.addEventListener("blur",D),l=Vo(V),s=[...l],c=[],p=l.length,r=ya(l),p===1&&(m=!1,u=!1),p&&G(ya(l)),B("start")}function U(V){var w;if(!s.length||V.defaultPrevented)return;n=V,c=[...l],l=Vo(V),p=l.length,r=ya(l);const X=r,K=ya(c);if(h=X.x-K.x,g=X.y-K.y,G(X),T(),B("move"),l.length>1){const W=ir(l),M=ir(c);Math.abs(W-M)>=.1&&B("pinch")}if(!m&&s.length){const W=ya(s);k=X.x-W.x,v=X.y-W.y,m=Math.abs(k)>i.panThreshold||Math.abs(v)>i.panThreshold,m&&(vn=!1,clearTimeout(N),N=0,A=Math.abs(180*Math.atan2(v,k)/Math.PI),o=A>45&&A<135?"y":"x",s=[...l],c=[...l],(w=window.getSelection())===null||w===void 0||w.removeAllRanges(),B("panstart"))}m&&(h||g)&&B("pan")}function E(V){if(n=V,!s.length)return;const w=Vo(V),X=Vl(V);if(p=w.length,r=ya(X),X.length&&G(ya(X)),T(),c=[...l],l=[...w],s=[...w],w.length>0)B("end"),m=!1,u=!1,_=[];else{const K=i.swipeThreshold;(Math.abs(x)>K||Math.abs(b)>K)&&(u=!0),m&&B("panend"),u&&B("swipe"),m||u||(B("tap"),f?B("doubleTap"):O=setTimeout(function(){B("singleTap")},250)),B("end"),F()}}function D(){clearTimeout(O),F(),m&&B("panend"),B("end")}function F(){m=!1,u=!1,f=!1,p=0,_=[],l=[],c=[],s=[],h=0,g=0,k=0,v=0,x=0,b=0,A=0,o=void 0,window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",E),window.removeEventListener("blur",D),vn||N||(N=setTimeout(()=>{vn=!0,N=0},100))}function q(V){const w=V.target;_o=!1,w&&!V.defaultPrevented&&(vn||(_l(V),V.stopPropagation()))}const oe={init:function(){if(e)return e.addEventListener("click",q,ka),e.addEventListener("mousedown",Q,ka),e.addEventListener("touchstart",Q,ka),e.addEventListener("touchmove",U,ka),e.addEventListener("touchend",E),e.addEventListener("touchcancel",E),oe},on:function(V,w){return function(X,K){S.set(X,[...S.get(X)||[],K])}(V,w),oe},off:function(V,w){return S.has(V)&&S.set(V,S.get(V).filter(X=>X!==w)),oe},isPointerDown:()=>p>0,destroy:function(){clearTimeout(O),clearTimeout(N),N=0,e&&(e.removeEventListener("click",q,ka),e.removeEventListener("mousedown",Q,ka),e.removeEventListener("touchstart",Q,ka),e.removeEventListener("touchmove",U,ka),e.removeEventListener("touchend",E),e.removeEventListener("touchcancel",E)),e=null,F()}};return oe};En.isClickAllowed=()=>vn;/*! License details at fancyapps.com/license */const No={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset"};/*! License details at fancyapps.com/license */const ze=(e,a="")=>{e&&e.classList&&a.split(" ").forEach(n=>{n&&e.classList.add(n)})};/*! License details at fancyapps.com/license */const sr=e=>{e.cancelable&&e.preventDefault()},St=(e,a=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*a)/a);var we,Nl;(function(e){e.Reset="reset",e.Zoom="zoom",e.ZoomIn="zoomIn",e.ZoomOut="zoomOut",e.ZoomTo="zoomTo",e.ToggleCover="toggleCover",e.ToggleFull="toggleFull",e.ToggleMax="toggleMax",e.IterateZoom="iterateZoom",e.Pan="pan",e.Swipe="swipe",e.Move="move",e.MoveLeft="moveLeft",e.MoveRight="moveRight",e.MoveUp="moveUp",e.MoveDown="moveDown",e.RotateCCW="rotateCCW",e.RotateCW="rotateCW",e.FlipX="flipX",e.FlipY="flipY"})(we||(we={})),function(e){e.Cover="cover",e.Full="full",e.Max="max"}(Nl||(Nl={}));const Dt={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Do={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:we.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:No,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:we.Zoom,width:"auto"};let lr,Dl=0,Tl=0,cr=0;const To=(e,a={},n={})=>{let r,o,i,s,l,c,m,u=0,f=Object.assign(Object.assign({},Do),a),d={},p=Object.assign({},Dt),h=Object.assign({},Dt);const g=[];function k(C){let y=f[C];return y&&typeof y=="function"?y(L):y}const v=new Map;function x(C,...y){const P=v.get(C)||[];f.on&&P.push(f.on[C]);for(const I of P)I&&I instanceof Function&&I(L,...y);C!=="*"&&x("*",C,...y)}function b(C){if(u!==3)return;const y=C.target;if(wn(y))return;const P=Date.now(),I=[-C.deltaX||0,-C.deltaY||0,-C.detail||0].reduce(function(ue,ye){return Math.abs(ye)>Math.abs(ue)?ye:ue}),H=$e(-1,I,1);x("wheel",C,H);const te=k("wheelAction");if(!te||C.defaultPrevented)return;const j=h.scale;let ne=j*(H>0?1.5:.5);if(te===we.Zoom){const ue=Math.abs(C.deltaY)<100&&Math.abs(C.deltaX)<100;if(P-Tl<(ue?200:45))return void sr(C);Tl=P;const ye=Q(),be=F();if(St(ne)<St(ye)&&St(j)<=St(ye)?(cr+=Math.abs(H),ne=ye):St(ne)>St(be)&&St(j)>=St(be)?(cr+=Math.abs(H),ne=be):(cr=0,ne=$e(ye,ne,be)),cr>7)return}switch(sr(C),te){case we.Pan:w(te,{srcEvent:C,deltaX:2*-C.deltaX,deltaY:2*-C.deltaY});break;case we.Zoom:w(we.ZoomTo,{srcEvent:C,scale:ne,center:{x:C.clientX,y:C.clientY}});break;default:w(te,{srcEvent:C})}}function A(C){var y,P;const I=C.composedPath()[0];if(!En.isClickAllowed()||!Qa(I)||C.defaultPrevented||!(e!=null&&e.contains(I))||I.hasAttribute("disabled")||I.hasAttribute("aria-disabled"))return;const H=I.closest("[data-panzoom-action]"),te=(y=H==null?void 0:H.dataset)===null||y===void 0?void 0:y.panzoomAction,j=((P=H==null?void 0:H.dataset)===null||P===void 0?void 0:P.panzoomValue)||"";if(te){switch(te){case we.ZoomTo:case we.ZoomIn:case we.ZoomOut:w(te,{scale:parseFloat(j||"")||void 0});break;case we.MoveLeft:case we.MoveRight:w(te,{deltaX:parseFloat(j||"")||void 0});break;case we.MoveUp:case we.MoveDown:w(te,{deltaY:parseFloat(j||"")||void 0});break;default:w(te)}return}if(!(r!=null&&r.contains(I)))return;const ne={srcEvent:C};if(w(k("clickAction"),ne),k("dblClickAction")){const ue=Date.now(),ye=ue-(Dl||ue);Dl=ue,ye>0&&ye<=250?(lr&&(clearTimeout(lr),lr=void 0),w(k("dblClickAction"),ne)):lr=setTimeout(()=>{w(k("singleClickAction"),ne)},250)}}function _(C){if(m=C,!B()||u!==3||p.scale<=1||h.scale<=1||((r==null?void 0:r.dataset.animationName)||"").indexOf("zoom")>-1)return;const y=G(h.scale);if(!y)return;const{x:P,y:I}=y;w(we.Pan,{deltaX:P-h.x,deltaY:I-h.y})}function O(){var C;if(e&&((C=e.querySelector(".f-spinner"))===null||C===void 0||C.remove(),e.classList.remove("is-loading")),!e||!r)return;if(o instanceof HTMLImageElement&&(!o.complete||!o.naturalWidth))return u=2,r==null||r.classList.add("has-error"),void x("error");x("loaded");const{width:y,height:P}=S();o&&(o.setAttribute("width",y+""),o.setAttribute("height",P+"")),r&&(r.classList.remove("has-error"),r.setAttribute("width",y+""),r.setAttribute("height",P+""),r.style.aspectRatio=`${y/P||""}`),l=ga().on("start",(H,te)=>{h=Object.assign(Object.assign({},Dt),te),te.angle!==void 0&&(te.angle=90*Math.round(te.angle/90)),te.flipX!==void 0&&(te.flipX=te.flipX>0?1:-1),te.flipY!==void 0&&(te.flipY=te.flipY>0?1:-1),V(),x("animationStart")}).on("pause",H=>{h=Object.assign(Object.assign({},Dt),H)}).on("step",H=>{if(u!==3||!l)return;if(!e||!e.parentElement)return void l.end();if(p=Object.assign(Object.assign({},Dt),H),B()||!k("bounds")||(s==null?void 0:s.isPointerDown())||h.scale>p.scale||h.scale<U())return void X();const te=q(h.scale);let j=!1,ne=!1,ue=!1,ye=!1;p.x<te.x[0]&&(j=!0),p.x>te.x[1]&&(ne=!0),p.y<te.y[0]&&(ye=!0),p.y>te.y[1]&&(ue=!0);let be=!1,me=!1,Me=!1,_e=!1;h.x<te.x[0]&&(be=!0),h.x>te.x[1]&&(me=!0),h.y<te.y[0]&&(_e=!0),h.y>te.y[1]&&(Me=!0);let Ne=!1;(ne&&me||j&&be)&&(h.x=$e(te.x[0],h.x,te.x[1]),Ne=!0),(ue&&Me||ye&&_e)&&(h.y=$e(te.y[0],h.y,te.y[1]),Ne=!0),Ne&&l.spring({tension:94,friction:17,maxSpeed:555*h.scale,restDelta:.1,restSpeed:.1,velocity:l.getCurrentVelocities()}).from(p).to(h).start(),X()}).on("end",()=>{oe(),l!=null&&l.isRunning()||(V(),x("animationEnd"))}),function(){const H=k("gestures");H&&i&&o&&(s=En(i,H).on("start",te=>{if(!l)return;const j=te.srcEvent;B()||((p.scale>1||te.currentTouch.length>1)&&(j==null||j.stopPropagation(),l.pause()),te.currentTouch.length===1&&x("touchStart"))}).on("move",te=>{B()||(h.scale!==1||te.currentTouch.length>1)&&(te.srcEvent.preventDefault(),te.srcEvent.stopPropagation())}).on("pan",te=>{if(B())return;const j=te.srcEvent;(h.scale!==1||te.currentTouch.length>1)&&(sr(j),w(we.Pan,te))}).on("swipe",te=>{B()||h.scale>1&&w(we.Swipe,te)}).on("tap",te=>{x("click",te)}).on("singleTap",te=>{x("singleClick",te)}).on("doubleTap",te=>{x("dblClick",te)}).on("pinch",te=>{B()||(te.scale>U()?w(we.ZoomIn,te):te.scale<U()?w(we.ZoomOut,te):w(we.Pan,te))}).on("end",te=>{B()||(te.currentTouch.length?(te.srcEvent.stopPropagation(),sr(te.srcEvent),l==null||l.end()):(V(),oe(),x("touchEnd")))}).init())}(),i&&(i.addEventListener("wheel",b,{passive:!1}),g.push(()=>{i==null||i.removeEventListener("wheel",b,{passive:!1})})),e==null||e.addEventListener("click",A),document==null||document.addEventListener("mousemove",_),g.push(()=>{e==null||e.removeEventListener("click",A),document==null||document.removeEventListener("mousemove",_)});const I=Object.assign(Object.assign({},k("startPos")||{}),{scale:U()});if(p=Object.assign(Object.assign({},Dt),I),h=Object.assign(Object.assign({},Dt),I),B()){const H=G(h.scale);if(H){const{x:te,y:j}=H;p.x=te,p.y=j,h.x=te,h.y=j}}u=3,X(),V(),x("ready"),requestAnimationFrame(()=>{i&&(i.style.visibility="")})}function N(){const C={top:0,left:0,width:0,height:0};if(r){const y=r.getBoundingClientRect();h.angle%180==90?(C.top=y.top+.5*y.height-.5*y.width,C.left=y.left+.5*y.width-.5*y.height,C.width=y.height,C.height=y.width):(C.top=y.top,C.left=y.left,C.width=y.width,C.height=y.height)}return C}function S(){let C=k("width"),y=k("height");if(o&&C==="auto"){const P=o.getAttribute("width");C=P?parseFloat(P+""):o.dataset.width!==void 0?parseFloat(o.dataset.width+""):i instanceof HTMLImageElement?i.naturalWidth:o instanceof HTMLImageElement?o.naturalWidth:o.getBoundingClientRect().width}else C=mt(C)?parseFloat(C):C;if(o&&y==="auto"){const P=o.getAttribute("height");y=P?parseFloat(P+""):o.dataset.height!==void 0?parseFloat(o.dataset.height+""):i instanceof HTMLImageElement?i.naturalHeight:o instanceof HTMLImageElement?o.naturalHeight:o.getBoundingClientRect().height}else y=mt(y)?parseFloat(y):y;return{width:C,height:y}}function B(){return k("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function G(C){const y=m||k("event"),P=r==null?void 0:r.getBoundingClientRect();if(!y||!P||C<=1)return{x:0,y:0};const I=(y.clientX||0)-P.left,H=(y.clientY||0)-P.top,te=P.width,j=P.height,ne=q(C);if(C>1){const Me=k("mouseMoveFactor");Me>1&&(C*=Me)}let ue=te*C,ye=j*C,be=.5*(ue-te)-I/te*100/100*(ue-te),me=.5*(ye-j)-H/j*100/100*(ye-j);return be=$e(ne.x[0],be,ne.x[1]),me=$e(ne.y[0],me,ne.y[1]),{x:be,y:me}}function T(C="base"){if(!e)return 1;const y=e.getBoundingClientRect(),P=N(),{width:I,height:H}=S(),te=be=>{if(typeof be=="number")return be;switch(be){case"min":case"base":return 1;case"cover":return Math.max(y.height/P.height,y.width/P.width)||1;case"full":case"max":{const me=h.angle%180==90?H:I;return me&&P.width?me/P.width:1}}},j=k("minScale"),ne=k("maxScale"),ue=Math.min(te("full"),te(j)),ye=typeof ne=="number"?te("full")*ne:Math.min(te("full"),te(ne));switch(C){case"min":return ue;case"base":return $e(ue,1,ye);case"cover":return te("cover");case"full":return Math.min(ye,te("full"));case"max":return ye}}function Q(){return T("min")}function U(){return T("base")}function E(){return T("cover")}function D(){return T("full")}function F(){return T("max")}function q(C){const y={x:[0,0],y:[0,0]},P=e==null?void 0:e.getBoundingClientRect();if(!P)return y;const I=N(),H=P.width,te=P.height;let j=I.width,ne=I.height,ue=C=C===void 0?h.scale:C,ye=C;if(B()&&C>1){const be=k("mouseMoveFactor");be>1&&(j*C>H+.01&&(ue*=be),ne*C>te+.01&&(ye*=be))}return j*=ue,ne*=ye,C>1&&(j>H&&(y.x[0]=.5*(H-j),y.x[1]=.5*(j-H)),y.x[0]-=.5*(I.left-P.left),y.x[1]-=.5*(I.left-P.left),y.x[0]-=.5*(I.left+I.width-P.right),y.x[1]-=.5*(I.left+I.width-P.right),ne>te&&(y.y[0]=.5*(te-ne),y.y[1]=.5*(ne-te)),y.y[0]-=.5*(I.top-P.top),y.y[1]-=.5*(I.top-P.top),y.y[0]-=.5*(I.top+I.height-P.bottom),y.y[1]-=.5*(I.top+I.height-P.bottom)),y}function oe(){if(!k("bounds")||u!==3||!(e!=null&&e.parentElement)||!l)return;const C=Q(),y=F(),P=$e(C,h.scale,y);if(h.scale<C-.01||h.scale>y+.01)return void w(we.ZoomTo,{scale:P});if(l.isRunning()||s!=null&&s.isPointerDown())return;const I=q(P);h.x<I.x[0]||h.x>I.x[1]||h.y<I.y[0]||h.y>I.y[1]?(h.x=$e(I.x[0],h.x,I.x[1]),h.y=$e(I.y[0],h.y,I.y[1]),l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:l.getCurrentVelocities()}),l.from(p).to(h).start()):X()}function V(){if(!e||!e.parentElement||!r)return;const C=z(),y=he(),P=ee(),I=fe(),H=W(),te=M();r.classList.toggle("is-fullsize",I),r.classList.toggle("is-expanded",P),r.classList.toggle("is-dragging",y),r.classList.toggle("can-drag",C),r.classList.toggle("will-zoom-in",H),r.classList.toggle("will-zoom-out",te);const j=J(),ne=ce(),ue=u!==3;for(const ye of(e==null?void 0:e.querySelectorAll("[data-panzoom-action]"))||[]){const be=ye.dataset.panzoomAction;let me=!1;if(ue)me=!0;else switch(be){case we.ZoomIn:j||(me=!0);break;case we.ZoomOut:ne||(me=!0);break;case we.ToggleFull:j||ne||(me=!0);const Me=ye.querySelector("g");Me&&(Me.style.display=I?"none":"");break;case we.ToggleCover:case we.ToggleMax:j||ne||(me=!0)}me?(ye.setAttribute("aria-disabled",""),ye.setAttribute("tabindex","-1")):(ye.removeAttribute("aria-disabled"),ye.removeAttribute("tabindex"))}}function w(C,y){var P;if(!e||!o||!l||C===we.Swipe&&Math.abs(l.getCurrentVelocities().scale)>.01)return;let I=Object.assign({},h),H=q(B()?h.scale:p.scale);const te=l.getCurrentVelocities(),j=N(),ne=(((P=(y=y||{}).currentTouch)===null||P===void 0?void 0:P.length)||0)>1,ue=y.velocityX||0,ye=y.velocityY||0;let be=y.center;!be&&y.srcEvent&&(be=ya(Vl(y.srcEvent)));let me=y.deltaX||0,Me=y.deltaY||0;switch(C){case we.MoveRight:me=y.deltaX||100;break;case we.MoveLeft:me=y.deltaX||-100;break;case we.MoveUp:Me=y.deltaY||-100;break;case we.MoveDown:Me=y.deltaY||100}let _e=[];switch(C){case we.Reset:h=Object.assign({},Dt),h.scale=U();break;case we.Pan:case we.Move:case we.MoveLeft:case we.MoveRight:case we.MoveUp:case we.MoveDown:if(s!=null&&s.isPointerDown()){let Le=1,Be=1;h.x<=H.x[0]&&ue<=0&&(Le=Math.max(.01,1-Math.abs(1/j.width*Math.abs(h.x-H.x[0]))),Le*=.2),h.x>=H.x[1]&&ue>=0&&(Le=Math.max(.01,1-Math.abs(1/j.width*Math.abs(h.x-H.x[1]))),Le*=.2),h.y<=H.y[0]&&ye<=0&&(Be=Math.max(.01,1-Math.abs(1/j.height*Math.abs(h.y-H.y[0]))),Be*=.2),h.y>=H.y[1]&&ye>=0&&(Be=Math.max(.01,1-Math.abs(1/j.height*Math.abs(h.y-H.y[1]))),Be*=.2),h.x+=me*Le,h.y+=Me*Be}else h.x=$e(H.x[0],h.x+me,H.x[1]),h.y=$e(H.y[0],h.y+Me,H.y[1]);break;case we.Swipe:const Ne=(Le=0)=>Math.sign(Le)*Math.pow(Math.abs(Le),1.5);h.x+=$e(-1e3,Ne(ue),1e3),h.y+=$e(-1e3,Ne(ye),1e3),ye&&!ue&&(h.x=$e(H.x[0],h.x,H.x[1])),!ye&&ue&&(h.y=$e(H.y[0],h.y,H.y[1])),te.x=ue,te.y=ye;break;case we.ZoomTo:h.scale=y.scale||1;break;case we.ZoomIn:h.scale=h.scale*(y.scale||2),ne||(h.scale=Math.min(h.scale,F()));break;case we.ZoomOut:h.scale=h.scale*(y.scale||.5),ne||(h.scale=Math.max(h.scale,Q()));break;case we.ToggleCover:_e=[U(),E()];break;case we.ToggleFull:_e=[U(),D()];break;case we.ToggleMax:_e=[U(),F()];break;case we.IterateZoom:_e=[U(),D(),F()];break;case we.Zoom:const Se=D();h.scale>=Se-.05?h.scale=U():h.scale=Math.min(Se,h.scale*(y.scale||2));break;case we.RotateCW:h.angle+=90;break;case we.RotateCCW:h.angle-=90;break;case we.FlipX:h.flipX*=-1;break;case we.FlipY:h.flipY*=-1}if(p.angle!==void 0&&Math.abs(p.angle)>=360&&(h.angle-=360*Math.floor(p.angle/360),p.angle-=360*Math.floor(p.angle/360)),_e.length){const Ne=_e.findIndex(Se=>Se>h.scale+1e-4);h.scale=_e[Ne]||_e[0]}if(ne&&(h.scale=$e(Q()*(ne?.8:1),h.scale,F()*(ne?1.6:1))),B()){const Ne=G(h.scale);if(Ne){const{x:Se,y:Le}=Ne;h.x=Se,h.y=Le}}else if(h.scale!==I.scale){let Ne=0,Se=0;if(be)Ne=be.x,Se=be.y;else{const ie=e.getBoundingClientRect();Ne=ie.x+.5*ie.width,Se=ie.y+.5*ie.height}let Le=Ne-j.left,Be=Se-j.top;Le-=.5*j.width,Be-=.5*j.height;const Z=(Le-I.x)/I.scale,re=(Be-I.y)/I.scale;h.x=Le-Z*h.scale,h.y=Be-re*h.scale,!ne&&k("bounds")&&(H=q(h.scale),h.x=$e(H.x[0],h.x,H.x[1]),h.y=$e(H.y[0],h.y,H.y[1]))}if(C===we.Swipe){let Ne=94,Se=17,Le=500*h.scale,Be=te;l.spring({tension:Ne,friction:Se,maxSpeed:Le,restDelta:.1,restSpeed:.1,velocity:Be})}else C===we.Pan||ne?l.spring({tension:750,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:te});C===we.Reset&&y.velocity===0?p=Object.assign({},h):l.from(p).to(h).start(),x("action",C)}function X(){if(!r||!o)return;if(o instanceof HTMLImageElement){const{width:ne,height:ue}=S();r.style.maxWidth=`min(${ne}px, 100%)`,r.style.maxHeight=`min(${ue}px, 100%)`}let{x:C,y,scale:P,angle:I,flipX:H,flipY:te}=p;const j=function(){const ne=N(),ue=ne.width,ye=ne.height,{width:be,height:me}=S();if(!e)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:ue,fitHeight:ye,fullWidth:be,fullHeight:me};let{x:Me,y:_e,scale:Ne,angle:Se,flipX:Le,flipY:Be}=p,Z=1/D(),re=be,ie=me,de=p.scale*Z,Ee=h.scale*Z;const pe=Math.max(ue,ye),ke=Math.min(ue,ye);be>me?(re=pe,ie=ke):(re=ke,ie=pe),de=be>me?pe*Ne/be||1:pe*Ne/me||1;let Y=re?be*Ee:0,R=ie?me*Ee:0;return Me=Me+.5*re-.5*Y,_e=_e+.5*ie-.5*R,{x:Me,y:_e,width:Y,height:R,scale:re&&ie?be*de/Y:0,flipX:Le,flipY:Be,angle:Se,fitWidth:ue,fitHeight:ye,fullWidth:be,fullHeight:me}}();if(r&&j){const{x:ne,y:ue,width:ye,height:be,scale:me,flipX:Me,flipY:_e}=j;let Ne=`translate(${St(ne)}px, ${St(ue)}px)`;Ne+=Me!==1||_e!==1?` scaleX(${St(me*Me)}) scaleY(${St(me*_e)})`:` scale(${St(me)})`,I!==0&&(Ne+=` rotate(${I}deg)`),i&&(i.style.width=`${St(ye)}px`,i.style.height=`${St(be)}px`,i.style.transform=`${Ne}`)}x("render")}function K(){let C=h.scale;const y=k("clickAction");let P=U();if(y){let I=[];switch(y){case we.ZoomIn:P=2*C;break;case we.ZoomOut:P=.5*C;break;case we.ToggleCover:I=[U(),E()];break;case we.ToggleFull:I=[U(),D()];break;case we.ToggleMax:I=[U(),F()];break;case we.IterateZoom:I=[U(),D(),F()];break;case we.Zoom:const H=D();P=C>=H-.05?U():Math.min(H,2*C)}if(I.length){const H=I.findIndex(te=>te>C+1e-4);P=I[H]||U()}}return P=$e(Q(),P,F()),P}function W(){return u===3&&K()>h.scale}function M(){return u===3&&K()<h.scale}function J(){return u===3&&h.scale<F()}function ce(){return u===3&&h.scale>Q()}function z(){return u===3&&ee()&&!!s&&!B()}function he(){return u===3&&(s==null?void 0:s.isPointerDown())&&!B()}function ee(){return u===3&&h.scale>U()}function fe(){return u===3&&h.scale>=D()}const L={canDrag:z,canZoomIn:J,canZoomOut:ce,destroy:function(){x("destroy");for(const C of Object.values(d))C==null||C.destroy(L);for(const C of g)C();return r&&(r.style.aspectRatio="",r.style.maxWidth="",r.style.maxHeight=""),i&&(i.style.width="",i.style.height="",i.style.transform=""),r=void 0,o=void 0,i=void 0,p=Object.assign({},Dt),h=Object.assign({},Dt),l==null||l.destroy(),l=void 0,s==null||s.destroy(),s=void 0,u=4,L},emit:x,execute:w,getBoundaries:q,getContainer:function(){return e},getFullDim:S,getGestures:function(){return s},getMousemovePos:G,getOptions:function(){return f},getScale:T,getState:function(){return u},getTransform:function(C){return C===!0?h:p},getTween:function(){return l},getViewport:function(){return i},getWrapper:function(){return r},init:function(){return u=0,x("init"),function(){for(const[C,y]of Object.entries(Object.assign(Object.assign({},n),f.plugins||{})))if(C&&!d[C]&&y instanceof Function){const P=y();P.init(L),d[C]=P}x("initPlugins")}(),function(){if(!e)return;const C=Object.assign(Object.assign({},Do.classes),k("classes"));if(ze(e,C.container),o=e.querySelector("."+C.content),!!o&&(o.setAttribute("draggable","false"),r=e.querySelector("."+C.wrapper),r||(r=document.createElement("div"),ze(r,C.wrapper),o.insertAdjacentElement("beforebegin",r),r.insertAdjacentElement("afterbegin",o)),o instanceof HTMLImageElement||o instanceof HTMLPictureElement)){if(i=e.querySelector("."+C.viewport),!i){i=document.createElement("div"),ze(i,C.viewport);const y=o.cloneNode(!0);y.classList.remove("is-lazyloading"),y.classList.remove("is-lazyloaded"),i.insertAdjacentElement("afterbegin",y),r.insertAdjacentElement("beforeend",i)}if(o instanceof HTMLPictureElement&&(o=o.querySelector("img")),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),i.style.visibility="hidden",k("protected")){i.addEventListener("contextmenu",P=>{P.preventDefault()});const y=document.createElement("div");ze(y,"f-panzoom__protected"),i.appendChild(y)}x("initLayout")}}(),function(){if(!(o&&o instanceof HTMLImageElement))return;u=1,x("loading");const C=()=>{o&&o instanceof HTMLImageElement&&o.decode().then(()=>{requestAnimationFrame(()=>{O()})}).catch(()=>{O()})};if(o.src&&o.complete)return void C();(function(){const y=e==null?void 0:e.querySelector(".f-spinner");if(!e||y)return;const P=k("spinnerTpl"),I=ha(P);I&&(I.classList.add("f-spinner"),e.classList.add("is-loading"),r==null||r.insertAdjacentElement("afterbegin",I))})(),o.addEventListener("load",C,!1),o.addEventListener("error",C,!1),g.push(()=>{o==null||o.removeEventListener("load",C,!1),o==null||o.removeEventListener("error",C,!1)})}(),function(){if(e&&r&&!c){let C=null;c=new ResizeObserver(()=>{C||(C=requestAnimationFrame(()=>{e&&e.parentElement&&u===3&&(V(),oe(),x("refresh")),C=null}))}),c.observe(r),g.push(()=>{c==null||c.disconnect(),c=void 0,C&&(cancelAnimationFrame(C),C=null)})}}(),L},isDragging:he,isExpanded:ee,isFullsize:fe,localize:function(C,y=[]){const P=k("l10n")||{};C=String(C).replace(/\{\{(\w+)\}\}/g,(I,H)=>P[H]||I);for(let I=0;I<y.length;I++)C=C.split(y[I][0]).join(y[I][1]);return C=C.replace(/\{\{(.*?)\}\}/g,(I,H)=>H)},off:function(C,y){for(const P of C instanceof Array?C:[C])v.has(P)&&v.set(P,v.get(P).filter(I=>I!==y));return L},on:function(C,y){for(const P of C instanceof Array?C:[C])v.set(P,[...v.get(P)||[],y]);return L},version:"6.0.16",willZoomIn:W,willZoomOut:M};return L};To.l10n={en_EN:No},To.getDefaults=()=>Do;/*! License details at fancyapps.com/license */const Po=(e,a)=>{let n=[];return e.childNodes.forEach(r=>{r.nodeType!==Node.ELEMENT_NODE||a&&!r.matches(a)||n.push(r)}),n};/*! License details at fancyapps.com/license */const Tt=(e,...a)=>{const n=a.length;for(let r=0;r<n;r++){const o=a[r]||{};Object.entries(o).forEach(([i,s])=>{const l=Array.isArray(s)?[]:{};e[i]||Object.assign(e,{[i]:l}),Et(s)?Object.assign(e[i],Tt(l,s)):Array.isArray(s)?Object.assign(e,{[i]:[...s]}):Object.assign(e,{[i]:s})})}return e};/*! License details at fancyapps.com/license */const Oo=function(e=0,a=0,n=0,r=0,o=0,i=!1){const s=(e-a)/(n-a)*(o-r)+r;return i?r<o?$e(r,s,o):$e(o,s,r):s};/*! License details at fancyapps.com/license */const ea=(e,a="")=>{e&&e.classList&&a.split(" ").forEach(n=>{n&&e.classList.remove(n)})};/*! License details at fancyapps.com/license */const ba=(e,a="",n)=>{e&&e.classList&&a.split(" ").forEach(r=>{r&&e.classList.toggle(r,n||!1)})};/*! License details at fancyapps.com/license */const Fo=Object.assign(Object.assign({},No),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});/*! License details at fancyapps.com/license */const en=e=>{e.cancelable&&e.preventDefault()},tn={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:Fo,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:200,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let Pl,Ol=0;const dr=(e,a={},n={})=>{Ol++;let r,o,i,s,l,c=0,m=Object.assign({},tn),u=Object.assign({},tn),f={},d=null,p=null,h=!1,g=!1,k=!1,v=!1,x="height",b=0,A=!0,_=0,O=0,N=0,S=0,B="*",G=[],T=[];const Q=new Set;let U=[],E=[],D=0,F=0;function q(Z,...re){let ie=u[Z];return ie&&ie instanceof Function?ie(Be,...re):ie}function oe(Z,re=[]){const ie=q("l10n")||{};Z=String(Z).replace(/\{\{(\w+)\}\}/g,(de,Ee)=>ie[Ee]||de);for(let de=0;de<re.length;de++)Z=Z.split(re[de][0]).join(re[de][1]);return Z=Z.replace(/\{\{(.*?)\}\}/g,(de,Ee)=>Ee)}const V=new Map;function w(Z,...re){const ie=V.get(Z)||[];u.on&&ie.push(u.on[Z]);for(const de of ie)de&&de instanceof Function&&de(Be,...re);Z!=="*"&&w("*",Z,...re)}function X(){var Z,re;const ie=Tt({},tn,m);Tt(ie,tn,m);let de="";const Ee=m.breakpoints||{};if(Ee)for(const[pe,ke]of Object.entries(Ee))window.matchMedia(pe).matches&&(de+=pe,Tt(ie,ke));if(l===void 0||de!==l){if(l=de,c!==0){let pe=(re=(Z=E[_])===null||Z===void 0?void 0:Z.slides[0])===null||re===void 0?void 0:re.index;pe===void 0&&(pe=u.initialSlide),ie.initialSlide=pe,ie.slides=[];for(const ke of G)ke.isVirtual&&ie.slides.push(ke)}Le(),u=ie,u.enabled!==!1&&(c=0,w("init"),function(){for(const[pe,ke]of Object.entries(Object.assign(Object.assign({},n),u.plugins||{})))if(pe&&!f[pe]&&ke instanceof Function){const Y=ke();Y.init(Be,dr),f[pe]=Y}w("initPlugins")}(),function(){if(!d)return;const pe=q("classes")||{};ze(d,pe.container),ze(d,pe.isEnabled);const ke=q("style");if(ke&&Et(ke))for(const[Y,R]of Object.entries(ke))d.style.setProperty(Y,R);p=d.querySelector(`.${pe.viewport}`),p||(p=document.createElement("div"),ze(p,pe.viewport),p.append(...Po(d,`.${pe.slide}`)),d.insertAdjacentElement("afterbegin",p)),h=window.getComputedStyle(p).getPropertyValue("overflow")==="visible",d.carousel=Be,w("initLayout")}(),function(){if(!p)return;const pe=q("classes")||{};G=[],[...Po(p,`.${pe.slide}`)].forEach(ke=>{ke.parentElement&&(G.push(y(Object.assign({el:ke,isVirtual:!1},ke.dataset||{}))),ke.parentElement.removeChild(ke))}),C(q("slides"));for(const ke of G)w("addSlide",ke);w("initSlides")}(),o=ga().on("start",()=>{A=!1,r&&r.isPointerDown()||(M(),Se())}).on("step",pe=>{b=pe.pos,Se()}).on("end",pe=>{r!=null&&r.isPointerDown()||(b=pe.pos,o&&!g&&(b<N||b>S)?o.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:b}).to({pos:$e(N,b,S)}).start():A||(A=!0,w("settle")))}),function(){const pe=q("gestures");p&&pe!==!1&&(r=En(p,pe).on("start",ke=>{var Y,R;if(!o)return;const{srcEvent:$}=ke;function ae(xe){const Ae=window.getComputedStyle(xe),De=new DOMMatrixReadOnly(Ae.transform);return{width:De.m41||0,height:De.m42||0}}v&&en($),o.pause(),o.getCurrentVelocities().pos=0;const le=(Y=E[_])===null||Y===void 0?void 0:Y.slides[0];le&&Q.has(le.index)&&le.el&&(b=le.offset||0,b+=(ae(le.el)[x]||0)*(k&&!v?1:-1)),ue(),g||(b<N||b>S)&&o.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((R=o.getCurrentVelocities())===null||R===void 0?void 0:R.pos)||0,restDelta:1,restSpeed:1}).from({pos:b}).to({pos:$e(N,b,S)}).start()}).on("move",ke=>{const{srcEvent:Y,axis:R}=ke,$=ke.srcEvent.target;$&&wn($)||(R||(Y.stopPropagation(),Y.stopImmediatePropagation()),(R==="y"&&v||R==="x"&&!v)&&(en(Y),Y.stopPropagation()))}).on("panstart",ke=>{(ke==null?void 0:ke.axis)===(v?"y":"x")&&ze(p,"is-dragging")}).on("panend",()=>{ea(p,"is-dragging")}).on("pan",ke=>{var Y;const{deltaX:R,deltaY:$,currentTouch:ae,axis:le}=ke;if(!o||ae.length>1||le==="y"&&!v||le==="x"&&v)return;const xe=k&&!v?1:-1;let Ae=v?$:R,De=o!=null&&o.isRunning()?o.getEndValues().pos:b,Pe=1;g||(De<=N&&Ae*xe<0?(Pe=Math.max(.01,1-Math.abs(1/ee()*Math.abs(De-N))),Pe*=.2):De>=S&&Ae*xe>0&&(Pe=Math.max(.01,1-Math.abs(1/ee()*Math.abs(De-S))),Pe*=.2)),De+=Ae*Pe*xe,o.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((Y=o.getCurrentVelocities())===null||Y===void 0?void 0:Y.pos)||0,restDelta:1,restSpeed:1}).from({pos:b}).to({pos:De}).start()}).on("end",ke=>{var Y,R;const{axis:$,velocityX:ae,velocityY:le,currentTouch:xe}=ke,Ae=E.length,De=q("dragFree");if(xe.length>0||!o||!Ae)return;const Pe=q("vertical")?le:ae;let qe=o!=null&&o.isRunning()?o.getEndValues().pos:b;const nt=k&&!v?1:-1;if(qe+=Pe*(De?5:1)*nt,!g&&(Pe*nt<=0&&qe<N||Pe*nt>=0&&qe>S)){let lt=0;return Math.abs(Pe)>0&&(lt=2*Math.abs(Pe),lt=Math.min(.3*ee(),lt)),qe=$e(N+-1*lt,qe,S+lt),void o.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Pe,restDelta:1,restSpeed:1}).from({pos:b}).to({pos:qe}).start()}if(De||!((Y=f.Autoscroll)===null||Y===void 0)&&Y.isEnabled())return void(Math.abs(Pe)>10?o.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Pe,restDelta:1,restSpeed:1}).from({pos:b}).to({pos:qe}).start():o.isRunning()||A||(A=!0,w("settle")));if(!De&&!(!((R=f.Autoscroll)===null||R===void 0)&&R.isEnabled())&&(!ke.offsetX&&!ke.offsetY||$==="y"&&!v||$==="x"&&v))return void Ne(_,{transition:"tween"});let bt=z(qe);Math.abs(Pe)>10&&bt===_&&(bt+=Pe>0?k&&!v?1:-1:k&&!v?-1:1),Ne(bt,{transition:"tween",tween:{tension:160,friction:25,velocity:-1*Pe}})}).init())}(),j(),function(){if(d&&(d.addEventListener("click",be,{passive:!1}),document.addEventListener("mousemove",K),!i)){let pe=null;i=new ResizeObserver(ke=>{pe||(pe=requestAnimationFrame(()=>{(function(Y){if(!d)return;let R=Y[0].contentBoxSize[0].blockSize,$=Y[0].contentBoxSize[0].inlineSize;if(c===0)return D=R,F=$,c=1,Se(),J(),void w("ready");if(c!==1)return;const ae=E.length;j();const le=d.getBoundingClientRect();R=le.height,$=le.width,ae>1&&(v&&Math.abs(R-D)<.5||!v&&Math.abs($-F)<.5)||(D=R,F=$,v&&!R||!v&&!$||d&&p&&(ae===E.length&&(r!=null&&r.isPointerDown())||(q("dragFree")&&(g||b>N&&b<S)?(M(),Se()):Ne(_,{transition:!1}))))})(ke),pe=null}))}),i.observe(d)}}())}}function K(Z){Pl=Z}function W(Z="*"){var re;const ie=[];for(const de of G)(Z==="*"||de.class&&de.class.includes(Z)||de.el&&(!((re=de.el)===null||re===void 0)&&re.classList.contains(Z)))&&ie.push(de);s=void 0,B=Z,T=[...ie]}function M(){if(!o)return;const Z=z(o!=null&&o.isRunning()?o.getEndValues().pos:b);Z!==_&&(s=_,_=Z,_e(),J(),ce(),w("change",_,s))}function J(){var Z;if(!d)return;ba(p,"is-draggable",!!r&&E.length>0);for(const de of d.querySelectorAll("[data-carousel-index]"))de.innerHTML=_+"";for(const de of d.querySelectorAll("[data-carousel-page]"))de.innerHTML=_+1+"";for(const de of d.querySelectorAll("[data-carousel-pages]"))de.innerHTML=E.length+"";let re=!1;const ie=(Z=E[_])===null||Z===void 0?void 0:Z.slides[0];ie&&(ie.downloadSrc||ie.type==="image"&&ie.src)&&(re=!0);for(const de of d.querySelectorAll("[data-carousel-download]"))de.toggleAttribute("aria-disabled",!re)}function ce(Z){var re;if(!d)return;Z||(Z=(re=E[_])===null||re===void 0?void 0:re.slides[0]);const ie=Z.el;if(ie)for(const de of ie.querySelectorAll("[data-slide-index]"))de.innerHTML=Z.index+1+""}function z(Z){if(!E.length||!o)return 0;const re=fe();let ie=Z;g?ie-=Math.floor((Z-E[0].pos)/re)*re:ie=$e(E[0].pos,Z,E[E.length-1].pos);const de=new Map;let Ee=0;for(const ke of E){const Y=Math.abs(ke.pos-ie),R=Math.abs(ke.pos-ie-re),$=Math.abs(ke.pos-ie+re),ae=Math.min(Y,R,$);de.set(Ee,ae),Ee++}const pe=de.size>0?[...de.entries()].reduce((ke,Y)=>Y[1]<ke[1]?Y:ke):[_,0];return parseInt(pe[0])}function he(){return p&&parseFloat(getComputedStyle(p).getPropertyValue("--f-carousel-gap"))||0}function ee(){return p&&p.getBoundingClientRect()[x]||0}function fe(Z=!0){const re=he();return T.reduce((ie,de)=>ie+de.dim,0)+(T.length-(g&&Z?0:1))*re}function L(Z){const re=he(),ie=fe();let de=ee();if(!p)return[];const Ee=[];if(!ie||!de)return[];Z=Z===void 0?b:Z,g&&(Z-=Math.floor(Z/ie)*ie);let pe=0,ke=0;if(h){const R=p.getBoundingClientRect();pe=R.left,ke=R.right-R.width}let Y=0;for(let R of T){const $=(ae=0)=>{Ee.indexOf(R)>-1||(R.pos=Y-Z+ae||0,R.offset+ae>Z-R.dim-pe+.51&&R.offset+ae<Z+de+ke-.51&&Ee.push(R))};if(R.offset=Y,g)for(let ae=-1;ae<=1;ae++)$(ie*ae);else $();Y+=R.dim+re}return Ee}function C(Z,re){const ie=[];for(const de of Array.isArray(Z)?Z:[Z]){const Ee=y(Object.assign(Object.assign({},de),{isVirtual:!0}));ie.push(Ee)}G.splice(re===void 0?G.length:re,0,...ie),te();for(const de of ie)P(de);return W(B),ie}function y(Z){return(mt(Z)||Z instanceof HTMLElement)&&(Z={html:Z}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},Z)}function P(Z){if(!Z)return;let re=Z.el;re||(re=document.createElement("div"),Z.el=re);const ie=Z.html?Z.html instanceof HTMLElement?Z.html:ha(Z.html):void 0;ie&&(ze(ie,"f-html"),Z.htmlEl=ie,ze(re,"has-html"),re.append(ie),w("contentReady",Z))}function I(Z){if(!p||!Z)return;let re=Z.el;if(re){if(re.setAttribute("index",Z.index+""),re.parentElement!==p){let ie;ze(re,u.classes.slide),ze(re,Z.class),_e(Z);for(const de of G)if(de.index>Z.index){ie=de.el;break}p.insertBefore(re,ie&&p.contains(ie)?ie:null),w("attachSlideEl",Z)}return re}}function H(Z){const re=Z==null?void 0:Z.el;re&&(re.remove(),ne(re),w("detachSlideEl",Z))}function te(){for(let Z=0;Z<G.length;Z++){const re=G[Z],ie=re.el;ie&&(re.index!==Z&&ne(ie),ie.setAttribute("index",`${Z}`)),re.index=Z}}function j(){var Z,re,ie,de;if(!d||!p)return;k=q("rtl"),v=q("vertical"),x=v?"height":"width";const Ee=q("classes");ba(d,Ee.isLTR,!k),ba(d,Ee.isRTL,k),ba(d,Ee.isHorizontal,!v),ba(d,Ee.isVertical,v),ba(d,Ee.hasAdaptiveHeight,q("adaptiveHeight"));const pe=p.getBoundingClientRect();if(!pe.width&&!pe.height)return;const ke=function(){let R=0;if(p){let $=document.createElement("div");ze($,u.classes.slide),p.appendChild($),R=$.getBoundingClientRect()[x],$.remove(),$=void 0}return R}();for(const R of T){const $=R.el;let ae=0;if(!R.isVirtual&&$&&Qa($)){let le=!1;$.parentElement&&$.parentElement===p||(p.appendChild($),le=!0),ae=$.getBoundingClientRect()[x],le&&((Z=$.parentElement)===null||Z===void 0||Z.removeChild($))}else ae=ke;R.dim=ae}(function(){if(!d)return;te();const R=ee(),$=he(),ae=fe(!1);let le=q("slidesPerPage");le=le==="auto"?1/0:parseFloat(le+""),E=[];let xe=0,Ae=0;for(const Je of T)(!E.length||xe+Je.dim-R>.05||Ae>=le)&&(E.push({index:E.length,slides:[],dim:0,offset:0,pos:0}),xe=0,Ae=0),E[E.length-1].slides.push(Je),xe+=Je.dim+$,Ae++;const De=q("center"),Pe=q("fill"),qe=q("infinite");let nt=0;for(const Je of E){Je.dim=(Je.slides.length-1)*$;for(const va of Je.slides)Je.dim+=va.dim;Je.offset=nt,Je.pos=nt,De!==!1&&(Je.pos-=.5*(R-Je.dim)),Pe&&!qe&&ae>R&&(Je.pos=$e(0,Je.pos,ae-R)),nt+=Je.dim+$}const bt=[];let lt;for(const Je of E){const va=Object.assign({},Je);lt&&va.pos===lt.pos?(lt.dim+=va.dim,lt.slides=[...lt.slides,...va.slides]):(lt=va,va.index=bt.length,bt.push(va))}E=bt,J()})();let Y=ee();if(h){const R=p.getBoundingClientRect();Y+=R.left,Y+=R.right-R.width}if(g=q("infinite")&&E.length>1&&fe()-(Y+(((re=T[0])===null||re===void 0?void 0:re.dim)||0))>-.5,N=((ie=E[0])===null||ie===void 0?void 0:ie.pos)||0,S=((de=E[E.length-1])===null||de===void 0?void 0:de.pos)||0,c===0)(function(){var R;s=void 0,_=q("initialPage");const $=q("initialSlide")||void 0;$!==void 0&&(_=Be.getPageIndex($)||0),_=$e(0,_,E.length-1),b=((R=E[_])===null||R===void 0?void 0:R.pos)||0,O=b})();else{const R=o!=null&&o.isRunning()?o.getEndValues().pos:b;(R<N||R>S)&&(_=$e(0,_,E.length-1),O=E[_||0].pos||0)}w("refresh")}function ne(Z){if(!Z||!Qa(Z))return;const re=parseInt(Z.getAttribute("index")||"-1");let ie="";for(const Ee of Array.from(Z.classList)){const pe=Ee.match(/^f-(\w+)(Out|In)$/);pe&&pe[1]&&(ie=pe[1]+"")}if(!Z||!ie)return;const de=[`f-${ie}Out`,`f-${ie}In`,"to-prev","to-next","from-prev","from-next"];Z.removeEventListener("animationend",ye),ea(Z,de.join(" ")),Q.delete(re)}function ue(){if(!p)return;const Z=Q.size;for(const re of T)ne(re.el);Q.clear(),Z&&Se()}function ye(Z){Z.animationName.substring(0,2)==="f-"&&(ne(Z.target),Q.size||(ea(d,"in-transition"),!A&&Math.abs(Be.getPosition(!0)-O)<.5&&(A=!0,w("settle"))),Se())}function be(Z){if(Z.defaultPrevented)return;const re=Z.composedPath()[0];if(re.closest("[data-carousel-go-prev]"))return en(Z),void Be.prev();if(re.closest("[data-carousel-go-next]"))return en(Z),void Be.next();const ie=re.closest("[data-carousel-go-to]");if(ie)return en(Z),void Be.goTo(parseFloat(ie.dataset.carouselGoTo||"")||0);if(re.closest("[data-carousel-download]")){en(Z);const de=E[_].slides[0];if(de.downloadSrc||de.type==="image"&&de.src){const Ee=de.downloadFilename,pe=document.createElement("a"),ke=de.downloadSrc||de.src||"";pe.href=ke,pe.target="_blank",pe.download=Ee||ke,pe.click()}}else w("click",Z)}function me(Z){var re;const ie=Z.el;ie&&((re=ie.querySelector(".f-spinner"))===null||re===void 0||re.remove(),ea(ie,"is-loading"))}function Me(Z){var re;const ie=Z.el;ie&&((re=ie.querySelector(".f-html.is-error"))===null||re===void 0||re.remove(),ea(ie,"has-error"))}function _e(Z){var re;Z||(Z=(re=E[_])===null||re===void 0?void 0:re.slides[0]);const ie=Z==null?void 0:Z.el;if(!ie)return;let de=q("formatCaption",Z);de===void 0&&(de=Z.caption),de=de||"";const Ee=q("captionEl");if(Ee&&Ee instanceof HTMLElement){if(Z.index!==_)return;if(mt(de)&&(Ee.innerHTML=oe(de+"")),de instanceof HTMLElement){if(de.parentElement===Ee)return;Ee.innerHTML="",de.parentElement&&(de=de.cloneNode(!0)),Ee.append(de)}return}if(!de)return;let pe=Z.captionEl||ie.querySelector(".f-caption");!pe&&de instanceof HTMLElement&&de.classList.contains("f-caption")&&(pe=de),pe||(pe=document.createElement("div"),ze(pe,"f-caption"),mt(de)?pe.innerHTML=oe(de+""):de instanceof HTMLElement&&(de.parentElement&&(de=de.cloneNode(!0)),pe.append(de)));const ke=`f-caption-${Ol}_${Z.index}`;pe.setAttribute("id",ke),pe.dataset.selectable="true",ze(ie,"has-caption"),ie.setAttribute("aria-labelledby",ke),Z.captionEl=pe,ie.insertAdjacentElement("beforeend",pe)}function Ne(Z,re){let{transition:ie,tween:de}=Object.assign({transition:u.transition,tween:u.tween},re||{});if(!d||!o)return;const Ee=E.length;if(!Ee||function(ke,Y){var R,$,ae,le;if(!(d&&o&&Y&&mt(Y)&&Y!=="tween")||((R=E[_])===null||R===void 0?void 0:R.slides.length)>1)return!1;const xe=E.length;let Ae=ke>_?1:-1;ke=g?(ke%xe+xe)%xe:$e(0,ke,xe-1),k&&(Ae*=-1);const De=($=E[_])===null||$===void 0?void 0:$.slides[0],Pe=De==null?void 0:De.index,qe=(ae=E[ke])===null||ae===void 0?void 0:ae.slides[0],nt=qe==null?void 0:qe.index,bt=(le=E[ke])===null||le===void 0?void 0:le.pos;if(nt===void 0||Pe===void 0||Pe===nt||b===bt||Math.abs(ee()-((qe==null?void 0:qe.dim)||0))>1)return!1;A=!1,o.pause(),ue(),ze(d,"in-transition"),b=O=bt;const lt=I(De),Je=I(qe);return M(),lt&&(Q.add(Pe),lt.style.transform="",lt.addEventListener("animationend",ye),ea(lt,u.classes.isSelected),ze(lt,`f-${Y}Out to-${Ae>0?"next":"prev"}`)),Je&&(Q.add(nt),Je.style.transform="",Je.addEventListener("animationend",ye),ze(Je,u.classes.isSelected),ze(Je,`f-${Y}In from-${Ae>0?"prev":"next"}`)),Se(),!0}(Z,ie))return;Z=g?(Z%Ee+Ee)%Ee:$e(0,Z,Ee-1),O=E[Z||0].pos||0;const pe=o.isRunning()?o.getEndValues().pos:b;if(Math.abs(O-pe)<1)return b=O,_!==Z&&(_e(),J(),ce(),s=_,_=Z,w("change",_,s)),Se(),void(A||(A=!0,w("settle")));if(o.pause(),ue(),g){const ke=fe(),Y=Math.floor((pe-E[0].pos)/ke),R=O+Y*ke;O=[R+ke,R,R-ke].reduce(function($,ae){return Math.abs(ae-pe)<Math.abs($-pe)?ae:$})}ie!==!1&&Et(de)?o.spring(de).from({pos:b}).to({pos:O}).start():(b=O,M(),Se(),A||(A=!0,w("settle")))}function Se(){var Z;if(!d||!p)return;const re=E[_];U=L();const ie=new Set;let de;const Ee=[];for(const pe of T){if(pe.isVirtual&&!Q.has(pe.index)&&U.indexOf(pe)<0)continue;let ke=I(pe);if(!ke)continue;Ee.push(pe);const Y=((Z=re==null?void 0:re.slides)===null||Z===void 0?void 0:Z.indexOf(pe))>-1;if(Y&&ie.add(ke),!Q.has(pe.index)){const R=pe.pos?Math.round(1e4*pe.pos)/1e4:0,$=v?0:k?-1*R:R,ae=v?R:0,le=Oo($,0,pe.dim,0,100),xe=Oo(ae,0,pe.dim,0,100),Ae=u.setTransform||void 0;Ae instanceof Function?Ae(Be,pe,{x:$,y:ae,xPercent:le,yPercent:xe}):ke.style.transform=$||ae?`translate3d(${le}%, ${xe}%,0)`:""}if(q("adaptiveHeight")&&Y){const R=(ke.firstElementChild||ke).getBoundingClientRect().height;de=de==null?R:Math.max(de,R)}}[...Po(p,`.${u.classes.slide}`)].forEach(pe=>{const ke=parseInt(pe.getAttribute("index")||"-1"),Y=G[ke];Y||pe.remove(),ba(pe,u.classes.isSelected,ie.has(pe)),Y.isVirtual&&!Q.has(Y.index)&&U.indexOf(Y)<0&&H(Y)}),p&&de&&(p.style.height=`${de}px`),w("render",Ee)}function Le(){var Z;d==null||d.removeEventListener("click",be),ue(),document.removeEventListener("mousemove",K),i==null||i.disconnect(),i=void 0;for(const re of G)re.el&&Qa(re.el)&&(re.state=void 0,me(re),Me(re),H(re),re.isVirtual?((Z=re.el)===null||Z===void 0||Z.remove(),re.el=void 0):(re.el.style.transform="",p==null||p.appendChild(re.el)));for(const re of Object.values(f))re==null||re.destroy();f={},r==null||r.destroy(),r=void 0,o==null||o.destroy(),o=void 0;for(const re of Object.values(u.classes||{}))ea(d,re);ea(p,"is-draggable")}const Be={add:function(Z,re){const ie=b,de=O,Ee=C(Z,re);for(const pe of Ee)w("addSlide",pe);return W(B),j(),o&&de!==O&&o.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:ie}).to({pos:O}).start(),Se(),Be},canGoPrev:function(){return g||_>0},canGoNext:function(){return g||_<E.length-1},destroy:function(){return w("destroy"),window.removeEventListener("resize",X),Le(),V.clear(),d=null,E=[],G=[],u=Object.assign({},tn),f={},T=[],l="",B="*",c=2,Be},emit:w,filter:function(Z="*"){return W(Z),j(),Se(),w("filter",Z),Be},getContainer:function(){return d},getGapDim:he,getGestures:function(){return r},getLastMouseMove:function(){return Pl},getOptions:function(){return u},getPage:function(){return E[_]},getPageIndex:function(Z){if(Z!==void 0){for(const re of E||[])for(const ie of re.slides)if(ie.index===Z)return re.index;return-1}return _},getPageProgress:function(Z,re){Z===void 0&&(Z=_);const ie=E[Z];if(!ie)return Z>_?-1:1;const de=fe(),Ee=he();let pe=ie.pos,ke=Be.getPosition();if(g&&re!==!0){const Y=Math.floor((ke-E[0].pos)/de);ke-=Y*de,pe=[pe+de,pe,pe-de].reduce(function(R,$){return Math.abs($-ke)<Math.abs(R-ke)?$:R})}return(ke-pe)/(ie.dim+Ee)},getPageVisibility:function(Z){Z===void 0&&(Z=_);const re=E[Z];if(!re)return Z>_?-1:1;const ie=Be.getPosition(),de=ee();let Ee=re.pos;if(g){const pe=Be.getPosition(),ke=fe(),Y=Ee+Math.floor((pe-E[0].pos)/ke)*ke;Ee=[Y+ke,Y,Y-ke].reduce(function(R,$){return Math.abs($-pe)<Math.abs(R-pe)?$:R})}return Ee>ie&&Ee+re.dim<ie+de?1:Ee<ie?(Ee+re.dim-ie)/re.dim:Ee+re.dim>ie+de?(ie+de-Ee)/re.dim:0},getPages:function(){return E},getPlugins:function(){return f},getPosition:function(Z){var re;let ie=b;if(g&&Z!==!0){const de=fe();ie-=Math.floor((b-((re=E[0])===null||re===void 0?void 0:re.pos)||0)/de)*de}return ie},getSlides:function(){return G},getState:function(){return c},getTotalSlideDim:fe,getTween:function(){return o},getViewport:function(){return p},getViewportDim:ee,getVisibleSlides:function(Z){return Z===void 0?U:L(Z)},goTo:Ne,hasNavigated:function(){return s!==void 0},hideError:Me,hideLoading:me,init:function(){if(!e||!Qa(e))throw new Error("No Element found");return c!==0&&(Le(),c=0),d=e,m=a,window.removeEventListener("resize",X),m.breakpoints&&window.addEventListener("resize",X),X(),Be},isInfinite:function(){return g},isInTransition:function(){return Q.size>0},isRTL:function(){return k},isSettled:function(){return A},localize:function(Z,re=[]){return oe(Z,re)},next:function(Z={}){return Ne(_+1,Z),Be},off:function(Z,re){for(const ie of Z instanceof Array?Z:[Z])V.has(ie)&&V.set(ie,V.get(ie).filter(de=>de!==re));return Be},on:function(Z,re){for(const ie of Z instanceof Array?Z:[Z])V.set(ie,[...V.get(ie)||[],re]);return Be},prev:function(Z={}){return Ne(_-1,Z),Be},remove:function(Z){Z===void 0&&(Z=G.length-1);const re=G[Z];return re&&(w("removeSlide",re),re.el&&(ne(re.el),re.el.remove(),re.el=void 0),G.splice(Z,1),W(B),j(),Se()),Be},setPosition:function(Z){b=Z,M(),Se()},showError:function(Z,re){me(Z),Me(Z);const ie=Z.el;if(ie){const de=document.createElement("div");ze(de,"f-html"),ze(de,"is-error"),de.innerHTML=oe(re||"<p>{{ERROR}}</p>"),Z.htmlEl=de,ze(ie,"has-html"),ze(ie,"has-error"),ie.insertAdjacentElement("afterbegin",de),w("contentReady",Z)}return Be},showLoading:function(Z){const re=Z.el,ie=re==null?void 0:re.querySelector(".f-spinner");if(!re||ie)return Be;const de=q("spinnerTpl"),Ee=ha(de);return Ee&&(ze(Ee,"f-spinner"),ze(re,"is-loading"),re.insertAdjacentElement("beforeend",Ee)),Be},version:"6.0.16"};return Be};dr.l10n={en_EN:Fo},dr.getDefaults=()=>tn;/*! License details at fancyapps.com/license */const Fl=(e=!0,a="--f-scrollbar-compensate",n="--f-body-margin",r="hide-scrollbar")=>{const o=document,i=o.body,s=o.documentElement;if(e){if(i.classList.contains(r))return;let l=window.innerWidth-s.getBoundingClientRect().width;l<0&&(l=0),s.style.setProperty(a,`${l}px`);const c=parseFloat(window.getComputedStyle(i).marginRight);c&&i.style.setProperty(n,`${c}px`),i.classList.add(r)}else i.classList.remove(r),i.style.setProperty(n,""),o.documentElement.style.setProperty(a,"")};/*! License details at fancyapps.com/license */function Ll(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const xa=function(e="",a="",n=""){return e.split(a).join(n)};/*! License details at fancyapps.com/license */const $l={tpl:e=>`<img class="f-panzoom__content"
|
|
6
|
+
`+i):r.stack=i}catch{}}throw r}}_request(a,n){typeof a=="string"?(n=n||{},n.url=a):n=a||{},n=Ca(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&In.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),o!=null&&(se.isFunction(o)?n.paramsSerializer={serialize:o}:In.assertOptions(o,{encode:Gt.function,serialize:Gt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),In.assertOptions(n,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&se.merge(i.common,i[n.method]);i&&se.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Bt.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const m=[];this.interceptors.response.forEach(function(g){m.push(g.fulfilled,g.rejected)});let u,f=0,d;if(!c){const h=[qi.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,m),d=h.length,u=Promise.resolve(n);f<d;)u=u.then(h[f++],h[f++]);return u}d=l.length;let p=n;for(f=0;f<d;){const h=l[f++],g=l[f++];try{p=h(p)}catch(b){g.call(this,b);break}}try{u=qi.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,d=m.length;f<d;)u=u.then(m[f++],m[f++]);return u}getUri(a){a=Ca(this.defaults,a);const n=Fi(a.baseURL,a.url,a.allowAbsoluteUrls);return Bi(n,a.params,a.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(a){Sa.prototype[a]=function(n,r){return this.request(Ca(r||{},{method:a,url:n,data:(r||{}).data}))}}),se.forEach(["post","put","patch"],function(a){function n(r){return function(i,s,l){return this.request(Ca(l||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Sa.prototype[a]=n(),Sa.prototype[a+"Form"]=n(!0)});let Kc=class i0{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},a(function(i,s,l){r.reason||(r.reason=new La(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const n=this._listeners.indexOf(a);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const a=new AbortController,n=r=>{a.abort(r)};return this.subscribe(n),a.signal.unsubscribe=()=>this.unsubscribe(n),a.signal}static source(){let a;return{token:new i0(function(o){a=o}),cancel:a}}};function Jc(e){return function(n){return e.apply(null,n)}}function e2(e){return se.isObject(e)&&e.isAxiosError===!0}const Fr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fr).forEach(([e,a])=>{Fr[a]=e});function Ui(e){const a=new Sa(e),n=fi(Sa.prototype.request,a);return se.extend(n,Sa.prototype,a,{allOwnKeys:!0}),se.extend(n,a,null,{allOwnKeys:!0}),n.create=function(o){return Ui(Ca(e,o))},n}const Qe=Ui(sn);Qe.Axios=Sa,Qe.CanceledError=La,Qe.CancelToken=Kc,Qe.isCancel=Di,Qe.VERSION=Wi,Qe.toFormData=Fn,Qe.AxiosError=Te,Qe.Cancel=Qe.CanceledError,Qe.all=function(a){return Promise.all(a)},Qe.spread=Jc,Qe.isAxiosError=e2,Qe.mergeConfig=Ca,Qe.AxiosHeaders=Bt,Qe.formToJSON=e=>_i(se.isHTMLForm(e)?new FormData(e):e),Qe.getAdapter=ji.getAdapter,Qe.HttpStatusCode=Fr,Qe.default=Qe;const{Axios:Wv,AxiosError:Yv,CanceledError:Uv,isCancel:Xv,CancelToken:Zv,VERSION:Qv,all:Kv,Cancel:Jv,isAxiosError:eE,spread:tE,toFormData:aE,AxiosHeaders:nE,HttpStatusCode:rE,formToJSON:oE,getAdapter:iE,mergeConfig:sE}=Qe,Xi=It.defineStore("auth",{state:()=>({jwtToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQwMDY5MzIyLCJpYXQiOjE3Mzk5ODI5MjIsImp0aSI6IjcyZjcxYjgzY2I5YTQ1MWFhMmYyODQ0OTlmZGFkZWIxIiwidXNlcl9pZCI6ImU4YTAwNWZhLTk0YjUtNDRiOC05ZDkwLWZjNzJmYzI0NjRhOSJ9.IOzqjqDpRRfqsvqhzEsGDLhQOKWapjzFycNG3Qv8k0U"}),actions:{setToken(e){this.jwtToken=e},clearToken(){this.jwtToken=null}},getters:{getToken:e=>e.jwtToken}}),ra=Qe.create({baseURL:"https://back.dev-smclick.com.br/"});ra.interceptors.request.use(e=>{const n=Xi().getToken;return n&&(e.headers.Authorization=`Bearer ${n}`),e},e=>Promise.reject(e));const t2="v1/api/attendances/attendant/",a2="v1/api/attendances/department/",Lr="v1/api/attendances/internal_chat/",n2="v1/api/instances/instance/",$r=It.defineStore("instance",{state:()=>({instances:[],count:null,loaded:!1}),actions:{async fetchInstances(e=""){try{let a=`${n2}`;const n=await ra.get(a);this.instances=n.data,await Promise.all(this.instances.map(async r=>{r.isLoading=!0;try{const o=r.last_instance_status;o==="DISCONNECTED"||o==="UNDEFINED"?r.status=!1:r.status=!0}catch(o){console.log(o),r.status="Offline"}r.isLoading=!1})),this.count=this.instances.length,this.loaded=!0}catch(a){console.log("Erro ao buscar instâncias:",a),this.loaded=!0}},removeInstance(e){this.instances=this.instances.filter(a=>a.id!==e),this.count=this.instances.length},addInstance(e){const a=this.instances.findIndex(n=>n.id===e.id);a!==-1?this.instances[a]=e:this.instances.push(e),this.count=this.instances.length}}}),r2={class:"w-full relative text-current"},o2={class:"flex cursor-pointer justify-between items-center"},i2={key:0},s2={key:0},l2={key:1,class:"flex items-center gap-2"},c2={class:"flex gap-3 items-center flex-shrink-0"},d2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},u2={key:1,class:"relative"},f2={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"w-5 h-5 absolute -bottom-2 -right-2 rounded-full bi bi-meta",viewBox:"0 0 16 16"},m2={class:"my-auto text-center mx-auto group-hover:inline-block"},h2={key:1,class:"flex justify-center"},p2={class:"w-full"},g2={key:1,class:"flex items-center gap-2 justify-center"},y2={class:"flex px-4 items-center gap-2"},k2={key:0,class:"absolute top-[48px] w-full z-20 text-sm"},b2={class:"gap-2 rounded-b-lg flex overflow-y-auto p-2 shadow shadow-black dark:shadow-gray-400 bg-base-300 max-h-[200px] flex-col"},x2={class:"select-none cursor-pointer w-full"},w2=["onClick","disabled"],v2={class:"flex w-full items-center pl-2 gap-3"},E2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},C2={key:1,class:"relative"},S2={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"w-4 h-4 absolute flex-shrink-0 -bottom-2 -right-2 rounded-full bi bi-meta",viewBox:"0 0 16 16"},M2={key:0,class:"w-6 h-6 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},B2={class:"w-full text-center"},A2={class:"my-auto text-center mx-auto group-hover:inline-block"},V2={key:1,class:"flex justify-center"},_2={class:"flex min-w-[50px] text-sm text-center items-center my-auto flex-shrink-0 px-1 justify-center"},N2={key:1,class:"p-4"},Zi={__name:"index",props:{modelValue:{type:Object,default:null},type:{type:String},webhooks:{type:Boolean,default:void 0}},emits:["update:modelValue","function","component-mounted"],setup(e,{emit:a}){const n=$r(),r=t.ref(!1),o=t.ref(null),i=e,s=a;function l(c){o.value=c,s("function",c)}return t.watch(()=>i.modelValue,c=>{o.value=c},{immediate:!0}),t.watch(o,c=>{s("update:modelValue",c)}),t.onMounted(async()=>{if(o.value){const c=n.instances.find(m=>m.id===o.value.id);c&&(o.value.status=c.status)}s("component-mounted")}),(c,m)=>{const u=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("main",r2,[t.createElementVNode("div",{class:t.normalizeClass([{"rounded-b-none":r.value},"rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])},[t.createElementVNode("div",o2,[t.createElementVNode("p",{onClick:m[0]||(m[0]=f=>r.value=!r.value),class:"w-full p-3 px-4 select-none"},[t.unref(n).loaded?(t.openBlock(),t.createElementBlock("div",i2,[o.value?(t.openBlock(),t.createElementBlock("span",l2,[t.createElementVNode("header",c2,[o.value.type==="whatsapp-qrcode"?(t.openBlock(),t.createElementBlock("svg",d2,m[3]||(m[3]=[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)]))):o.value.type==="whatsapp-api-official"?(t.openBlock(),t.createElementBlock("div",u2,[m[5]||(m[5]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(t.openBlock(),t.createElementBlock("svg",f2,m[4]||(m[4]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])))])):t.createCommentVNode("",!0),o.value&&o.value.status!==void 0?(t.openBlock(),t.createBlock(u,{key:2,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("main",{class:t.normalizeClass(["p-1 rounded text-sm px-3",{"bg-red-500":o.value.status===!1,"bg-green-500":o.value.status===!0,"bg-purple-500":o.value.status==="Offline"}])},[t.createElementVNode("div",m2,t.toDisplayString(o.value.status===!0?"Conectada":o.value.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:t.withCtx(()=>[o.value.isLoading?(t.openBlock(),t.createElementBlock("div",h2,m[6]||(m[6]=[t.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([{"bg-red-500":o.value.status===!1,"bg-green-500":o.value.status===!0,"bg-purple-500":o.value.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("div",p2,t.toDisplayString(o.value.name),1)])):(t.openBlock(),t.createElementBlock("span",s2,t.toDisplayString(t.unref(n).instances?t.unref(n).instances.length:"Sem")+" Instâncias disponíveis",1))])):(t.openBlock(),t.createElementBlock("div",g2,m[7]||(m[7]=[t.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),t.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),t.createTextVNode("Inicializando instâncias...")])))]),t.createElementVNode("footer",y2,[t.createElementVNode("button",{onClick:m[1]||(m[1]=f=>(o.value=null,r.value=!1))},m[8]||(m[8]=[t.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])),t.createElementVNode("button",{onClick:m[2]||(m[2]=f=>r.value=!r.value)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([{"rotate-180":r.value},"w-4 h-4 ease-out transition"]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},m[9]||(m[9]=[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))])])])],2),r.value?(t.openBlock(),t.createElementBlock("nav",k2,[t.createElementVNode("ul",b2,[t.unref(n).instances.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(n).instances,(f,d)=>(t.openBlock(),t.createElementBlock("li",x2,[t.createElementVNode("button",{class:t.normalizeClass([o.value&&o.value.id===f.id?"bg-base-100":"bg-base-200 hover:bg-base-100","flex rounded-md justify-between items-center p-2 px-1 w-full"]),onClick:p=>(o.value=f,r.value=!1,l(f)),disabled:o.value&&o.value.id===f.id||e.type&&f.type!==e.type||e.webhooks!==void 0&&e.webhooks!==f.webhooks},[t.createElementVNode("div",v2,[f.type==="whatsapp-qrcode"?(t.openBlock(),t.createElementBlock("svg",E2,m[10]||(m[10]=[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)]))):f.type==="whatsapp-api-official"?(t.openBlock(),t.createElementBlock("div",C2,[m[12]||(m[12]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(t.openBlock(),t.createElementBlock("svg",S2,m[11]||(m[11]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])))])):t.createCommentVNode("",!0),t.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(e.type&&f.type!==e.type?"Não é possível utilizar esse tipo de Instância neste recurso":e.webhooks===!0?"Essa instância está com o Atendimento desabilitado":"Essa aplicação é somente para instâncias sem atendimento habilitado."),1)]),default:t.withCtx(()=>[e.type&&f.type!==e.type||e.webhooks!==void 0&&e.webhooks!==f.webhooks?(t.openBlock(),t.createElementBlock("svg",M2,m[13]||(m[13]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1)]))):t.createCommentVNode("",!0)]),_:2},1024),t.createElementVNode("p",B2,t.toDisplayString(f.name),1),t.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("main",{class:t.normalizeClass(["p-1 rounded px-3",{"bg-red-500":f.status===!1,"bg-green-500":f.status===!0,"bg-purple-500":f.status==="Offline"}])},[t.createElementVNode("div",A2,t.toDisplayString(f.status===!0?"Conectada":f.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:t.withCtx(()=>[f.isLoading?(t.openBlock(),t.createElementBlock("div",V2,m[14]||(m[14]=[t.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([{"bg-red-500":f.status===!1,"bg-green-500":f.status===!0,"bg-purple-500":f.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:2},1024)]),t.createElementVNode("div",_2,[f.telephone?(t.openBlock(),t.createBlock(u,{key:0,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(f.telephone?`${f.telephone}`:""),1)]),default:t.withCtx(()=>[m[15]||(m[15]=t.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1))]),_:2,__:[15]},1024)):t.createCommentVNode("",!0)])],10,w2)]))),256)):(t.openBlock(),t.createElementBlock("div",N2," Sem instâncias disponíveis"))])])):t.createCommentVNode("",!0)])}}};function Ce(e){const a=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&a==="[object Date]"?new e.constructor(+e):typeof e=="number"||a==="[object Number]"||typeof e=="string"||a==="[object String]"?new Date(e):new Date(NaN)}function Re(e,a){return e instanceof Date?new e.constructor(a):new Date(a)}function Ot(e,a){const n=Ce(e);return isNaN(a)?Re(e,NaN):(a&&n.setDate(n.getDate()+a),n)}function Ft(e,a){const n=Ce(e);if(isNaN(a))return Re(e,NaN);if(!a)return n;const r=n.getDate(),o=Re(e,n.getTime());o.setMonth(n.getMonth()+a+1,0);const i=o.getDate();return r>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function Qi(e,a){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:s=0,minutes:l=0,seconds:c=0}=a,m=Ce(e),u=r||n?Ft(m,r+n*12):m,f=i||o?Ot(u,i+o*7):u,d=l+s*60,h=(c+d*60)*1e3;return Re(e,f.getTime()+h)}function D2(e,a){const n=+Ce(e);return Re(e,n+a)}const Ki=6048e5,T2=864e5,P2=6e4,Ji=36e5,O2=1e3;function F2(e,a){return D2(e,a*Ji)}let L2={};function Ma(){return L2}function Lt(e,a){var l,c,m,u;const n=Ma(),r=(a==null?void 0:a.weekStartsOn)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,o=Ce(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $a(e){return Lt(e,{weekStartsOn:1})}function es(e){const a=Ce(e),n=a.getFullYear(),r=Re(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=$a(r),i=Re(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=$a(i);return a.getTime()>=o.getTime()?n+1:a.getTime()>=s.getTime()?n:n-1}function ts(e){const a=Ce(e);return a.setHours(0,0,0,0),a}function Gn(e){const a=Ce(e),n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),+e-+n}function as(e,a){const n=ts(e),r=ts(a),o=+n-Gn(n),i=+r-Gn(r);return Math.round((o-i)/T2)}function $2(e){const a=es(e),n=Re(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),$a(n)}function R2(e,a){const n=a*3;return Ft(e,n)}function Rr(e,a){return Ft(e,a*12)}function ns(e,a){const n=Ce(e),r=Ce(a),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function rs(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function cn(e){if(!rs(e)&&typeof e!="number")return!1;const a=Ce(e);return!isNaN(Number(a))}function os(e){const a=Ce(e);return Math.trunc(a.getMonth()/3)+1}function H2(e,a){const n=Ce(e),r=Ce(a);return n.getFullYear()-r.getFullYear()}function z2(e,a){const n=Ce(e),r=Ce(a),o=ns(n,r),i=Math.abs(H2(n,r));n.setFullYear(1584),r.setFullYear(1584);const s=ns(n,r)===-o,l=o*(i-+s);return l===0?0:l}function is(e,a){const n=Ce(e.start),r=Ce(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(Ce(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function Ba(e){const a=Ce(e),n=a.getMonth(),r=n-n%3;return a.setMonth(r,1),a.setHours(0,0,0,0),a}function I2(e,a){const n=Ce(e.start),r=Ce(e.end);let o=+n>+r;const i=o?+Ba(n):+Ba(r);let s=Ba(o?r:n),l=1;const c=[];for(;+s<=i;)c.push(Ce(s)),s=R2(s,l);return o?c.reverse():c}function G2(e){const a=Ce(e);return a.setDate(1),a.setHours(0,0,0,0),a}function ss(e){const a=Ce(e),n=a.getFullYear();return a.setFullYear(n+1,0,0),a.setHours(23,59,59,999),a}function dn(e){const a=Ce(e),n=Re(e,0);return n.setFullYear(a.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ls(e,a){var l,c,m,u;const n=Ma(),r=(a==null?void 0:a.weekStartsOn)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,o=Ce(e),i=o.getDay(),s=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function cs(e){const a=Ce(e),n=a.getMonth(),r=n-n%3+3;return a.setMonth(r,0),a.setHours(23,59,59,999),a}const j2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},q2=(e,a,n)=>{let r;const o=j2[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hr(e){return(a={})=>{const n=a.width?String(a.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const W2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},U2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},X2={date:Hr({formats:W2,defaultWidth:"full"}),time:Hr({formats:Y2,defaultWidth:"full"}),dateTime:Hr({formats:U2,defaultWidth:"full"})},Z2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q2=(e,a,n,r)=>Z2[e];function un(e){return(a,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(a):a;return o[i]}}const K2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ed={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},td={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ad={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rd={ordinalNumber:(e,a)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:un({values:K2,defaultWidth:"wide"}),quarter:un({values:J2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:un({values:ed,defaultWidth:"wide"}),day:un({values:td,defaultWidth:"wide"}),dayPeriod:un({values:ad,defaultWidth:"wide",formattingValues:nd,defaultFormattingWidth:"wide"})};function fn(e){return(a,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=a.match(o);if(!i)return null;const s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?id(l,f=>f.test(s)):od(l,f=>f.test(s));let m;m=e.valueCallback?e.valueCallback(c):c,m=n.valueCallback?n.valueCallback(m):m;const u=a.slice(s.length);return{value:m,rest:u}}}function od(e,a){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&a(e[n]))return n}function id(e,a){for(let n=0;n<e.length;n++)if(a(e[n]))return n}function sd(e){return(a,n={})=>{const r=a.match(e.matchPattern);if(!r)return null;const o=r[0],i=a.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=a.slice(o.length);return{value:s,rest:l}}}const ld=/^(\d+)(th|st|nd|rd)?/i,cd=/\d+/i,dd={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ud={any:[/^b/i,/^(a|c)/i]},fd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},md={any:[/1/i,/2/i,/3/i,/4/i]},hd={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pd={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kd={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xd={ordinalNumber:sd({matchPattern:ld,parsePattern:cd,valueCallback:e=>parseInt(e,10)}),era:fn({matchPatterns:dd,defaultMatchWidth:"wide",parsePatterns:ud,defaultParseWidth:"any"}),quarter:fn({matchPatterns:fd,defaultMatchWidth:"wide",parsePatterns:md,defaultParseWidth:"any",valueCallback:e=>e+1}),month:fn({matchPatterns:hd,defaultMatchWidth:"wide",parsePatterns:pd,defaultParseWidth:"any"}),day:fn({matchPatterns:gd,defaultMatchWidth:"wide",parsePatterns:yd,defaultParseWidth:"any"}),dayPeriod:fn({matchPatterns:kd,defaultMatchWidth:"any",parsePatterns:bd,defaultParseWidth:"any"})},ds={code:"en-US",formatDistance:q2,formatLong:X2,formatRelative:Q2,localize:rd,match:xd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wd(e){const a=Ce(e);return as(a,dn(a))+1}function zr(e){const a=Ce(e),n=+$a(a)-+$2(a);return Math.round(n/Ki)+1}function Ir(e,a){var u,f,d,p;const n=Ce(e),r=n.getFullYear(),o=Ma(),i=(a==null?void 0:a.firstWeekContainsDate)??((f=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(d=o.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=Re(e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=Lt(s,a),c=Re(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const m=Lt(c,a);return n.getTime()>=l.getTime()?r+1:n.getTime()>=m.getTime()?r:r-1}function vd(e,a){var l,c,m,u;const n=Ma(),r=(a==null?void 0:a.firstWeekContainsDate)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.firstWeekContainsDate)??1,o=Ir(e,a),i=Re(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Lt(i,a)}function Gr(e,a){const n=Ce(e),r=+Lt(n,a)-+vd(n,a);return Math.round(r/Ki)+1}function Ie(e,a){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(a,"0");return n+r}const oa={y(e,a){const n=e.getFullYear(),r=n>0?n:1-n;return Ie(a==="yy"?r%100:r,a.length)},M(e,a){const n=e.getMonth();return a==="M"?String(n+1):Ie(n+1,2)},d(e,a){return Ie(e.getDate(),a.length)},a(e,a){const n=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,a){return Ie(e.getHours()%12||12,a.length)},H(e,a){return Ie(e.getHours(),a.length)},m(e,a){return Ie(e.getMinutes(),a.length)},s(e,a){return Ie(e.getSeconds(),a.length)},S(e,a){const n=a.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ie(o,a.length)}},Ra={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},us={G:function(e,a,n){const r=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return oa.y(e,a)},Y:function(e,a,n,r){const o=Ir(e,r),i=o>0?o:1-o;if(a==="YY"){const s=i%100;return Ie(s,2)}return a==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ie(i,a.length)},R:function(e,a){const n=es(e);return Ie(n,a.length)},u:function(e,a){const n=e.getFullYear();return Ie(n,a.length)},Q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return Ie(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return Ie(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){const r=e.getMonth();switch(a){case"M":case"MM":return oa.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){const r=e.getMonth();switch(a){case"L":return String(r+1);case"LL":return Ie(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){const o=Gr(e,r);return a==="wo"?n.ordinalNumber(o,{unit:"week"}):Ie(o,a.length)},I:function(e,a,n){const r=zr(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):Ie(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):oa.d(e,a)},D:function(e,a,n){const r=wd(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ie(r,a.length)},E:function(e,a,n){const r=e.getDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(i);case"ee":return Ie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(i);case"cc":return Ie(i,a.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,n){const r=e.getDay(),o=r===0?7:r;switch(a){case"i":return String(o);case"ii":return Ie(o,a.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){const o=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,n){const r=e.getHours();let o;switch(r===12?o=Ra.noon:r===0?o=Ra.midnight:o=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,n){const r=e.getHours();let o;switch(r>=17?o=Ra.evening:r>=12?o=Ra.afternoon:r>=4?o=Ra.morning:o=Ra.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return oa.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):oa.H(e,a)},K:function(e,a,n){const r=e.getHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ie(r,a.length)},k:function(e,a,n){let r=e.getHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ie(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):oa.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):oa.s(e,a)},S:function(e,a){return oa.S(e,a)},X:function(e,a,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(a){case"X":return ms(r);case"XXXX":case"XX":return Aa(r);case"XXXXX":case"XXX":default:return Aa(r,":")}},x:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"x":return ms(r);case"xxxx":case"xx":return Aa(r);case"xxxxx":case"xxx":default:return Aa(r,":")}},O:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+fs(r,":");case"OOOO":default:return"GMT"+Aa(r,":")}},z:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+fs(r,":");case"zzzz":default:return"GMT"+Aa(r,":")}},t:function(e,a,n){const r=Math.trunc(e.getTime()/1e3);return Ie(r,a.length)},T:function(e,a,n){const r=e.getTime();return Ie(r,a.length)}};function fs(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+a+Ie(i,2)}function ms(e,a){return e%60===0?(e>0?"-":"+")+Ie(Math.abs(e)/60,2):Aa(e,a)}function Aa(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ie(Math.trunc(r/60),2),i=Ie(r%60,2);return n+o+a+i}const hs=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},ps=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},jr={p:ps,P:(e,a)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return hs(e,a);let i;switch(r){case"P":i=a.dateTime({width:"short"});break;case"PP":i=a.dateTime({width:"medium"});break;case"PPP":i=a.dateTime({width:"long"});break;case"PPPP":default:i=a.dateTime({width:"full"});break}return i.replace("{{date}}",hs(r,a)).replace("{{time}}",ps(o,a))}},Ed=/^D+$/,Cd=/^Y+$/,Sd=["D","DD","YY","YYYY"];function gs(e){return Ed.test(e)}function ys(e){return Cd.test(e)}function qr(e,a,n){const r=Md(e,a,n);if(console.warn(r),Sd.includes(e))throw new RangeError(r)}function Md(e,a,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Bd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ad=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vd=/^'([^]*?)'?$/,_d=/''/g,Nd=/[a-zA-Z]/;function jt(e,a,n){var u,f,d,p,h,g,b,v;const r=Ma(),o=(n==null?void 0:n.locale)??r.locale??ds,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,l=Ce(e);if(!cn(l))throw new RangeError("Invalid time value");let c=a.match(Ad).map(x=>{const k=x[0];if(k==="p"||k==="P"){const A=jr[k];return A(x,o.formatLong)}return x}).join("").match(Bd).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const k=x[0];if(k==="'")return{isToken:!1,value:Dd(x)};if(us[k])return{isToken:!0,value:x};if(k.match(Nd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const m={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(x=>{if(!x.isToken)return x.value;const k=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ys(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&gs(k))&&qr(k,a,String(e));const A=us[k[0]];return A(l,k,o.localize,m)}).join("")}function Dd(e){const a=e.match(Vd);return a?a[1].replace(_d,"'"):e}function Td(e){return Ce(e).getDay()}function Pd(e){const a=Ce(e),n=a.getFullYear(),r=a.getMonth(),o=Re(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Od(){return Object.assign({},Ma())}function Qt(e){return Ce(e).getHours()}function Fd(e){let n=Ce(e).getDay();return n===0&&(n=7),n}function ia(e){return Ce(e).getMinutes()}function Oe(e){return Ce(e).getMonth()}function Ha(e){return Ce(e).getSeconds()}function Ve(e){return Ce(e).getFullYear()}function za(e,a){const n=Ce(e),r=Ce(a);return n.getTime()>r.getTime()}function mn(e,a){const n=Ce(e),r=Ce(a);return+n<+r}function Ia(e,a){const n=Ce(e),r=Ce(a);return+n==+r}function Ld(e,a){const n=a instanceof Date?Re(a,0):new a(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const $d=10;class ks{constructor(){ve(this,"subPriority",0)}validate(a,n){return!0}}class Rd extends ks{constructor(a,n,r,o,i){super(),this.value=a,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(a,n){return this.validateValue(a,this.value,n)}set(a,n,r){return this.setValue(a,n,this.value,r)}}class Hd extends ks{constructor(){super(...arguments);ve(this,"priority",$d);ve(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Re(n,Ld(n,Date))}}class He{run(a,n,r,o){const i=this.parse(a,n,r,o);return i?{setter:new Rd(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(a,n,r){return!0}}class zd extends He{constructor(){super(...arguments);ve(this,"priority",140);ve(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}set(n,r,o){return r.era=o,n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}const rt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},qt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ot(e,a){return e&&{value:a(e.value),rest:e.rest}}function Ke(e,a){const n=a.match(e);return n?{value:parseInt(n[0],10),rest:a.slice(n[0].length)}:null}function Wt(e,a){const n=a.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:a.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*Ji+i*P2+s*O2),rest:a.slice(n[0].length)}}function bs(e){return Ke(rt.anyDigitsSigned,e)}function et(e,a){switch(e){case 1:return Ke(rt.singleDigit,a);case 2:return Ke(rt.twoDigits,a);case 3:return Ke(rt.threeDigits,a);case 4:return Ke(rt.fourDigits,a);default:return Ke(new RegExp("^\\d{1,"+e+"}"),a)}}function jn(e,a){switch(e){case 1:return Ke(rt.singleDigitSigned,a);case 2:return Ke(rt.twoDigitsSigned,a);case 3:return Ke(rt.threeDigitsSigned,a);case 4:return Ke(rt.fourDigitsSigned,a);default:return Ke(new RegExp("^-?\\d{1,"+e+"}"),a)}}function Wr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function xs(e,a){const n=a>0,r=n?a:1-a;let o;if(r<=50)o=e||100;else{const i=r+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function ws(e){return e%400===0||e%4===0&&e%100!==0}class Id extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return ot(et(4,n),i);case"yo":return ot(o.ordinalNumber(n,{unit:"year"}),i);default:return ot(et(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o){const i=n.getFullYear();if(o.isTwoDigitYear){const l=xs(o.year,i);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class Gd extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return ot(et(4,n),i);case"Yo":return ot(o.ordinalNumber(n,{unit:"year"}),i);default:return ot(et(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o,i){const s=Ir(n,i);if(o.isTwoDigitYear){const c=xs(o.year,s);return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),Lt(n,i)}const l=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(l,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),Lt(n,i)}}class jd extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return jn(r==="R"?4:r.length,n)}set(n,r,o){const i=Re(n,0);return i.setFullYear(o,0,4),i.setHours(0,0,0,0),$a(i)}}class qd extends He{constructor(){super(...arguments);ve(this,"priority",130);ve(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return jn(r==="u"?4:r.length,n)}set(n,r,o){return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class Wd extends He{constructor(){super(...arguments);ve(this,"priority",120);ve(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"Q":case"QQ":return et(r.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class Yd extends He{constructor(){super(...arguments);ve(this,"priority",120);ve(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"q":case"qq":return et(r.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class Ud extends He{constructor(){super(...arguments);ve(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ve(this,"priority",110)}parse(n,r,o){const i=s=>s-1;switch(r){case"M":return ot(Ke(rt.month,n),i);case"MM":return ot(et(2,n),i);case"Mo":return ot(o.ordinalNumber(n,{unit:"month"}),i);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}class Xd extends He{constructor(){super(...arguments);ve(this,"priority",110);ve(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,o){const i=s=>s-1;switch(r){case"L":return ot(Ke(rt.month,n),i);case"LL":return ot(et(2,n),i);case"Lo":return ot(o.ordinalNumber(n,{unit:"month"}),i);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}function Zd(e,a,n){const r=Ce(e),o=Gr(r,n)-a;return r.setDate(r.getDate()-o*7),r}class Qd extends He{constructor(){super(...arguments);ve(this,"priority",100);ve(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,o){switch(r){case"w":return Ke(rt.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o,i){return Lt(Zd(n,o,i),i)}}function Kd(e,a){const n=Ce(e),r=zr(n)-a;return n.setDate(n.getDate()-r*7),n}class Jd extends He{constructor(){super(...arguments);ve(this,"priority",100);ve(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,o){switch(r){case"I":return Ke(rt.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o){return $a(Kd(n,o))}}const e3=[31,28,31,30,31,30,31,31,30,31,30,31],t3=[31,29,31,30,31,30,31,31,30,31,30,31];class a3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"subPriority",1);ve(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"d":return Ke(rt.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return et(r.length,n)}}validate(n,r){const o=n.getFullYear(),i=ws(o),s=n.getMonth();return i?r>=1&&r<=t3[s]:r>=1&&r<=e3[s]}set(n,r,o){return n.setDate(o),n.setHours(0,0,0,0),n}}class n3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"subpriority",1);ve(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,o){switch(r){case"D":case"DD":return Ke(rt.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return et(r.length,n)}}validate(n,r){const o=n.getFullYear();return ws(o)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,o){return n.setMonth(0,o),n.setHours(0,0,0,0),n}}function Yr(e,a,n){var f,d,p,h;const r=Ma(),o=(n==null?void 0:n.weekStartsOn)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,i=Ce(e),s=i.getDay(),c=(a%7+7)%7,m=7-o,u=a<0||a>6?a-(s+m)%7:(c+m)%7-(s+m)%7;return Ot(i,u)}class r3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=Yr(n,o,i),n.setHours(0,0,0,0),n}}class o3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return ot(et(r.length,n),s);case"eo":return ot(o.ordinalNumber(n,{unit:"day"}),s);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=Yr(n,o,i),n.setHours(0,0,0,0),n}}class i3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return ot(et(r.length,n),s);case"co":return ot(o.ordinalNumber(n,{unit:"day"}),s);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=Yr(n,o,i),n.setHours(0,0,0,0),n}}function s3(e,a){const n=Ce(e),r=Fd(n),o=a-r;return Ot(n,o)}class l3 extends He{constructor(){super(...arguments);ve(this,"priority",90);ve(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,o){const i=s=>s===0?7:s;switch(r){case"i":case"ii":return et(r.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return ot(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return ot(o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return ot(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return ot(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,o){return n=s3(n,o),n.setHours(0,0,0,0),n}}class c3 extends He{constructor(){super(...arguments);ve(this,"priority",80);ve(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(Wr(o),0,0,0),n}}class d3 extends He{constructor(){super(...arguments);ve(this,"priority",80);ve(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(Wr(o),0,0,0),n}}class u3 extends He{constructor(){super(...arguments);ve(this,"priority",80);ve(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(Wr(o),0,0,0),n}}class f3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,o){switch(r){case"h":return Ke(rt.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,o){const i=n.getHours()>=12;return i&&o<12?n.setHours(o+12,0,0,0):!i&&o===12?n.setHours(0,0,0,0):n.setHours(o,0,0,0),n}}class m3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,o){switch(r){case"H":return Ke(rt.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,o){return n.setHours(o,0,0,0),n}}class h3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,o){switch(r){case"K":return Ke(rt.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.getHours()>=12&&o<12?n.setHours(o+12,0,0,0):n.setHours(o,0,0,0),n}}class p3 extends He{constructor(){super(...arguments);ve(this,"priority",70);ve(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,o){switch(r){case"k":return Ke(rt.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return et(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,o){const i=o<=24?o%24:o;return n.setHours(i,0,0,0),n}}class g3 extends He{constructor(){super(...arguments);ve(this,"priority",60);ve(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"m":return Ke(rt.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setMinutes(o,0,0),n}}class y3 extends He{constructor(){super(...arguments);ve(this,"priority",50);ve(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"s":return Ke(rt.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return et(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setSeconds(o,0),n}}class k3 extends He{constructor(){super(...arguments);ve(this,"priority",30);ve(this,"incompatibleTokens",["t","T"])}parse(n,r){const o=i=>Math.trunc(i*Math.pow(10,-r.length+3));return ot(et(r.length,n),o)}set(n,r,o){return n.setMilliseconds(o),n}}class b3 extends He{constructor(){super(...arguments);ve(this,"priority",10);ve(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Wt(qt.basicOptionalMinutes,n);case"XX":return Wt(qt.basic,n);case"XXXX":return Wt(qt.basicOptionalSeconds,n);case"XXXXX":return Wt(qt.extendedOptionalSeconds,n);case"XXX":default:return Wt(qt.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Re(n,n.getTime()-Gn(n)-o)}}class x3 extends He{constructor(){super(...arguments);ve(this,"priority",10);ve(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Wt(qt.basicOptionalMinutes,n);case"xx":return Wt(qt.basic,n);case"xxxx":return Wt(qt.basicOptionalSeconds,n);case"xxxxx":return Wt(qt.extendedOptionalSeconds,n);case"xxx":default:return Wt(qt.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Re(n,n.getTime()-Gn(n)-o)}}class w3 extends He{constructor(){super(...arguments);ve(this,"priority",40);ve(this,"incompatibleTokens","*")}parse(n){return bs(n)}set(n,r,o){return[Re(n,o*1e3),{timestampIsSet:!0}]}}class v3 extends He{constructor(){super(...arguments);ve(this,"priority",20);ve(this,"incompatibleTokens","*")}parse(n){return bs(n)}set(n,r,o){return[Re(n,o),{timestampIsSet:!0}]}}const E3={G:new zd,y:new Id,Y:new Gd,R:new jd,u:new qd,Q:new Wd,q:new Yd,M:new Ud,L:new Xd,w:new Qd,I:new Jd,d:new a3,D:new n3,E:new r3,e:new o3,c:new i3,i:new l3,a:new c3,b:new d3,B:new u3,h:new f3,H:new m3,K:new h3,k:new p3,m:new g3,s:new y3,S:new k3,X:new b3,x:new x3,t:new w3,T:new v3},C3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M3=/^'([^]*?)'?$/,B3=/''/g,A3=/\S/,V3=/[a-zA-Z]/;function Ur(e,a,n,r){var g,b,v,x,k,A,_,T;const o=Od(),i=(r==null?void 0:r.locale)??o.locale??ds,s=(r==null?void 0:r.firstWeekContainsDate)??((b=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:b.firstWeekContainsDate)??o.firstWeekContainsDate??((x=(v=o.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((A=(k=r==null?void 0:r.locale)==null?void 0:k.options)==null?void 0:A.weekStartsOn)??o.weekStartsOn??((T=(_=o.locale)==null?void 0:_.options)==null?void 0:T.weekStartsOn)??0;if(a==="")return e===""?Ce(n):Re(n,NaN);const c={firstWeekContainsDate:s,weekStartsOn:l,locale:i},m=[new Hd],u=a.match(S3).map(N=>{const S=N[0];if(S in jr){const B=jr[S];return B(N,i.formatLong)}return N}).join("").match(C3),f=[];for(let N of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&ys(N)&&qr(N,a,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&gs(N)&&qr(N,a,e);const S=N[0],B=E3[S];if(B){const{incompatibleTokens:G}=B;if(Array.isArray(G)){const Q=f.find(U=>G.includes(U.token)||U.token===S);if(Q)throw new RangeError(`The format string mustn't contain \`${Q.fullToken}\` and \`${N}\` at the same time`)}else if(B.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${N}\` and any other token at the same time`);f.push({token:S,fullToken:N});const P=B.run(e,N,i.match,c);if(!P)return Re(n,NaN);m.push(P.setter),e=P.rest}else{if(S.match(V3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(N==="''"?N="'":S==="'"&&(N=_3(N)),e.indexOf(N)===0)e=e.slice(N.length);else return Re(n,NaN)}}if(e.length>0&&A3.test(e))return Re(n,NaN);const d=m.map(N=>N.priority).sort((N,S)=>S-N).filter((N,S,B)=>B.indexOf(N)===S).map(N=>m.filter(S=>S.priority===N).sort((S,B)=>B.subPriority-S.subPriority)).map(N=>N[0]);let p=Ce(n);if(isNaN(p.getTime()))return Re(n,NaN);const h={};for(const N of d){if(!N.validate(p,c))return Re(n,NaN);const S=N.set(p,h,c);Array.isArray(S)?(p=S[0],Object.assign(h,S[1])):p=S}return Re(n,p)}function _3(e){return e.match(M3)[1].replace(B3,"'")}function vs(e,a){const n=Ba(e),r=Ba(a);return+n==+r}function N3(e,a){return Ot(e,-a)}function Es(e,a){const n=Ce(e),r=n.getFullYear(),o=n.getDate(),i=Re(e,0);i.setFullYear(r,a,15),i.setHours(0,0,0,0);const s=Pd(i);return n.setMonth(a,Math.min(o,s)),n}function We(e,a){let n=Ce(e);return isNaN(+n)?Re(e,NaN):(a.year!=null&&n.setFullYear(a.year),a.month!=null&&(n=Es(n,a.month)),a.date!=null&&n.setDate(a.date),a.hours!=null&&n.setHours(a.hours),a.minutes!=null&&n.setMinutes(a.minutes),a.seconds!=null&&n.setSeconds(a.seconds),a.milliseconds!=null&&n.setMilliseconds(a.milliseconds),n)}function D3(e,a){const n=Ce(e);return n.setHours(a),n}function Cs(e,a){const n=Ce(e);return n.setMilliseconds(a),n}function T3(e,a){const n=Ce(e);return n.setMinutes(a),n}function Ss(e,a){const n=Ce(e);return n.setSeconds(a),n}function Yt(e,a){const n=Ce(e);return isNaN(+n)?Re(e,NaN):(n.setFullYear(a),n)}function Ga(e,a){return Ft(e,-a)}function P3(e,a){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:s=0,minutes:l=0,seconds:c=0}=a,m=Ga(e,r+n*12),u=N3(m,i+o*7),f=l+s*60,p=(c+f*60)*1e3;return Re(e,u.getTime()-p)}function Ms(e,a){return Rr(e,-a)}function ja(){const e=t.useAttrs();return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...e},[t.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),t.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),t.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),t.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}ja.compatConfig={MODE:3};function Bs(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),t.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Bs.compatConfig={MODE:3};function Xr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Xr.compatConfig={MODE:3};function Zr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Zr.compatConfig={MODE:3};function Qr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),t.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}Qr.compatConfig={MODE:3};function Kr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Kr.compatConfig={MODE:3};function Jr(){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[t.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Jr.compatConfig={MODE:3};const At=(e,a)=>a?new Date(e.toLocaleString("en-US",{timeZone:a})):new Date(e),eo=(e,a,n)=>to(e,a,n)||ge(),O3=(e,a,n)=>{const r=a.dateInTz?At(new Date(e),a.dateInTz):ge(e);return n?vt(r,!0):r},to=(e,a,n)=>{if(!e)return null;const r=n?vt(ge(e),!0):ge(e);return a?a.exactMatch?O3(e,a,n):At(r,a.timezone):r},F3=e=>{if(!e)return 0;const a=new Date,n=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(a.toLocaleString("en-US",{timeZone:e})),o=r.getTimezoneOffset()/60;return(+n-+r)/(1e3*60*60)-o};var $t=(e=>(e.month="month",e.year="year",e))($t||{}),Va=(e=>(e.top="top",e.bottom="bottom",e))(Va||{}),_a=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(_a||{}),yt=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(yt||{});const L3=["timestamp","date","iso"];var xt=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(xt||{}),Ue=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(Ue||{});function As(e){return a=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)}function $3(e){return a=>jt(At(new Date(`2017-01-0${a}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const R3=(e,a,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map($3(e))}catch{o=r.map(As(a))}else o=r.map(As(a));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},ao=(e,a,n)=>{const r=[];for(let o=+e[0];o<=+e[1];o++)r.push({value:+o,text:Ps(o,a)});return n?r.reverse():r},Vs=(e,a,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"LLLL":"LLL";return r.map((s,l)=>{const c=jt(At(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(a,{month:n,timeZone:"UTC"});return r.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},H3=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],ct=e=>{const a=t.unref(e);return a!=null&&a.$el?a==null?void 0:a.$el:a},z3=e=>({type:"dot",...e??{}}),_s=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,no={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},ft=e=>e,Ns=e=>e===0?e:!e||isNaN(+e)?null:+e,Ds=e=>e===null,Ts=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},I3=e=>{const a=[],n=r=>r.filter(o=>o);for(let r=0;r<e.length;r+=3){const o=[e[r],e[r+1],e[r+2]];a.push(n(o))}return a},hn=(e,a,n)=>{const r=n!=null,o=a!=null;if(!r&&!o)return!1;const i=+n,s=+a;return r&&o?+e>i||+e<s:r?+e>i:o?+e<s:!1},qa=(e,a)=>I3(e).map(n=>n.map(r=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=a(r);return{...r,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),sa=(e,a,n=!1)=>{e&&a.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},G3=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function j3(e,a){let n=[...document.querySelectorAll(G3())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(a?r-1>=0:r+1<=n.length))return n[r+(a?-1:1)]}const ro=(e,a)=>e==null?void 0:e.querySelector(`[data-dp-element="${a}"]`),Ps=(e,a)=>new Intl.NumberFormat(a,{useGrouping:!1,style:"decimal"}).format(e),oo=e=>jt(e,"dd-MM-yyyy"),io=e=>Array.isArray(e),qn=(e,a)=>a.get(oo(e)),q3=(e,a)=>e?a?a instanceof Map?!!qn(e,a):a(ge(e)):!1:!0,wt=(e,a,n=!1,r)=>{if(e.key===Ue.enter||e.key===Ue.space)return n&&e.preventDefault(),a();if(r)return r(e)},Os=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some(e=>navigator.userAgent.includes(e))||navigator.userAgent.includes("Mac")&&"ontouchend"in document,Fs=(e,a,n,r,o,i)=>{const s=Ur(e,a.slice(0,e.length),new Date,{locale:i});return cn(s)&&rs(s)?r||o?s:We(s,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},W3=(e,a,n,r,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof a=="string")return Fs(e,a,s,r,o,i);if(Array.isArray(a)){let l=null;for(const c of a)if(l=Fs(e,c,s,r,o,i),l)break;return l}return typeof a=="function"?a(e):null},ge=e=>e?new Date(e):new Date,Y3=(e,a,n)=>{if(a){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},vt=(e,a)=>{const n=ge(JSON.parse(JSON.stringify(e))),r=We(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return a?G2(r):r},la=(e,a,n,r)=>{let o=e?ge(e):ge();return(a||a===0)&&(o=D3(o,+a)),(n||n===0)&&(o=T3(o,+n)),(r||r===0)&&(o=Ss(o,+r)),Cs(o,0)},tt=(e,a)=>!e||!a?!1:mn(vt(e),vt(a)),Fe=(e,a)=>!e||!a?!1:Ia(vt(e),vt(a)),it=(e,a)=>!e||!a?!1:za(vt(e),vt(a)),Wn=(e,a,n)=>e!=null&&e[0]&&e!=null&&e[1]?it(n,e[0])&&tt(n,e[1]):e!=null&&e[0]&&a?it(n,e[0])&&tt(n,a)||tt(n,e[0])&&it(n,a):!1,Rt=e=>{const a=We(new Date(e),{date:1});return vt(a)},so=(e,a,n)=>a&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===a?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},Na=e=>({hours:Qt(e),minutes:ia(e),seconds:Ha(e)}),Ls=(e,a)=>{if(a){const n=Ve(ge(a));if(n>e)return 12;if(n===e)return Oe(ge(a))}},$s=(e,a)=>{if(a){const n=Ve(ge(a));return n<e?-1:n===e?Oe(ge(a)):void 0}},Wa=e=>{if(e)return Ve(ge(e))},Rs=(e,a)=>{const n=it(e,a)?a:e,r=it(a,e)?a:e;return is({start:n,end:r})},U3=e=>{const a=Ft(e,1);return{month:Oe(a),year:Ve(a)}},Kt=(e,a)=>{const n=Lt(e,{weekStartsOn:+a}),r=ls(e,{weekStartsOn:+a});return[n,r]},Hs=(e,a)=>{const n={hours:Qt(ge()),minutes:ia(ge()),seconds:a?Ha(ge()):0};return Object.assign(n,e)},ca=(e,a,n)=>[We(ge(e),{date:1}),We(ge(),{month:a,year:n,date:1})],Jt=(e,a,n)=>{let r=e?ge(e):ge();return(a||a===0)&&(r=Es(r,a)),n&&(r=Yt(r,n)),r},zs=(e,a,n,r,o)=>{if(!r||o&&!a||!o&&!n)return!1;const i=o?Ft(e,1):Ga(e,1),s=[Oe(i),Ve(i)];return o?!Z3(...s,a):!X3(...s,n)},X3=(e,a,n)=>tt(...ca(n,e,a))||Fe(...ca(n,e,a)),Z3=(e,a,n)=>it(...ca(n,e,a))||Fe(...ca(n,e,a)),Is=(e,a,n,r,o,i,s)=>{if(typeof a=="function"&&!s)return a(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${jt(e[0],i,l)}${o&&!e[1]?"":r}${e[1]?jt(e[1],i,l):""}`:jt(e,i,l)},Ya=e=>{if(e)return null;throw new Error(no.prop("partial-range"))},Yn=(e,a)=>{if(a)return e();throw new Error(no.prop("range"))},lo=e=>Array.isArray(e)?cn(e[0])&&(e[1]?cn(e[1]):!0):e?cn(e):!1,Q3=(e,a)=>We(a??ge(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),co=(e,a,n,r)=>{if(!e)return!0;if(r){const o=n==="max"?mn(e,a):za(e,a),i={seconds:0,milliseconds:0};return o||Ia(We(e,i),We(a,i))}return n==="max"?e.getTime()<=a.getTime():e.getTime()>=a.getTime()},uo=(e,a,n)=>e?Q3(e,a):ge(n??a),Gs=(e,a,n,r,o)=>{if(Array.isArray(r)){const s=uo(e,r[0],a),l=uo(e,r[1],a);return co(r[0],s,n,!!a)&&co(r[1],l,n,!!a)&&o}const i=uo(e,r,a);return co(r,i,n,!!a)&&o},fo=e=>We(ge(),Na(e)),K3=(e,a)=>e instanceof Map?Array.from(e.values()).filter(n=>Ve(ge(n))===a).map(n=>Oe(n)):[],js=(e,a,n)=>typeof e=="function"?e({month:a,year:n}):!!e.months.find(r=>r.month===a&&r.year===n),mo=(e,a)=>typeof e=="function"?e(a):e.years.includes(a),qs=e=>jt(e,"yyyy-MM-dd"),pn=t.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Ws=()=>{const e=n=>{pn.menuFocused=n},a=n=>{pn.shiftKeyInMenu!==n&&(pn.shiftKeyInMenu=n)};return{control:t.computed(()=>({shiftKeyInMenu:pn.shiftKeyInMenu,menuFocused:pn.menuFocused})),setMenuFocused:e,setShiftKey:a}},Xe=t.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),ho=t.ref(null),Un=t.ref(!1),po=t.ref(!1),go=t.ref(!1),yo=t.ref(!1),kt=t.ref(0),st=t.ref(0),da=()=>{const e=t.computed(()=>Un.value?[...Xe.selectionGrid,Xe.actionRow].filter(f=>f.length):po.value?[...Xe.timePicker[0],...Xe.timePicker[1],yo.value?[]:[ho.value],Xe.actionRow].filter(f=>f.length):go.value?[...Xe.monthPicker,Xe.actionRow]:[Xe.monthYear,...Xe.calendar,Xe.time,Xe.actionRow].filter(f=>f.length)),a=f=>{kt.value=f?kt.value+1:kt.value-1;let d=null;e.value[st.value]&&(d=e.value[st.value][kt.value]),!d&&e.value[st.value+(f?1:-1)]?(st.value=st.value+(f?1:-1),kt.value=f?0:e.value[st.value].length-1):d||(kt.value=f?kt.value-1:kt.value+1)},n=f=>{st.value===0&&!f||st.value===e.value.length&&f||(st.value=f?st.value+1:st.value-1,e.value[st.value]?e.value[st.value]&&!e.value[st.value][kt.value]&&kt.value!==0&&(kt.value=e.value[st.value].length-1):st.value=f?st.value-1:st.value+1)},r=f=>{let d=null;e.value[st.value]&&(d=e.value[st.value][kt.value]),d?d.focus({preventScroll:!Un.value}):kt.value=f?kt.value-1:kt.value+1},o=()=>{a(!0),r(!0)},i=()=>{a(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},c=(f,d)=>{Xe[d]=f},m=(f,d)=>{Xe[d]=f},u=()=>{kt.value=0,st.value=0};return{buildMatrix:c,buildMultiLevelMatrix:m,setTimePickerBackRef:f=>{ho.value=f},setSelectionGrid:f=>{Un.value=f,u(),f||(Xe.selectionGrid=[])},setTimePicker:(f,d=!1)=>{po.value=f,yo.value=d,u(),f||(Xe.timePicker[0]=[],Xe.timePicker[1]=[])},setTimePickerElements:(f,d=0)=>{Xe.timePicker[d]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{Xe.monthYear=[],Xe.calendar=[],Xe.time=[],Xe.actionRow=[],Xe.selectionGrid=[],Xe.timePicker[0]=[],Xe.timePicker[1]=[],Un.value=!1,po.value=!1,yo.value=!1,go.value=!1,u(),ho.value=null},setMonthPicker:f=>{go.value=f,u()},refSets:Xe}},Ys=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),J3=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:a=>`Increment ${a}`,decrementValue:a=>`Decrement ${a}`,openTpOverlay:a=>`Open ${a} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:a=>`Month picker${a?" overlay":""}`,yearPicker:a=>`Year picker${a?" overlay":""}`,timeOverlay:a=>`${a} overlay`,...e??{}}),Us=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,eu=e=>{const a=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:Us(!1)};const r=a?e:{},o=a?r.count??!0:e,i=Us(o);return Object.assign(n,r,{count:i})},tu=(e,a,n)=>e||(typeof n=="string"?n:a),au=e=>typeof e=="boolean"?e?Ys({}):!1:Ys(e),nu=e=>{const a={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...a,...e??{},enabled:!0}:{...a,enabled:e}},ru=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),ou=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),iu=e=>{const a={input:!1};return typeof e=="object"?{...a,...e??{},enabled:!0}:{enabled:e,...a}},su=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,...e??{}}),lu=e=>{const a={dates:Array.isArray(e)?e.map(n=>ge(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...a,...e??{}}},cu=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},du=e=>{const a={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...a,...e}:{enabled:e,...a}},uu=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},ko=(e,a,n)=>new Map(e.map(r=>{const o=eo(r,a,n);return[oo(o),o]})),fu=(e,a)=>e.length?new Map(e.map(n=>{const r=eo(n.date,a);return[oo(r),n]})):null,mu=e=>{var a;return{minDate:to(e.minDate,e.timezone,e.isSpecific),maxDate:to(e.maxDate,e.timezone,e.isSpecific),disabledDates:io(e.disabledDates)?ko(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:io(e.allowedDates)?ko(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&io((a=e.highlight)==null?void 0:a.dates)?ko(e.highlight.dates,e.timezone):e.highlight,markers:fu(e.markers,e.timezone)}},hu=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},pu=e=>({...Object.fromEntries(Object.keys(e).map(a=>{const n=a,r=e[n],o=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(i=>[i,!0]));return[a,o]}))}),Ze=e=>{const a=()=>{const T=e.enableSeconds?":ss":"",N=e.enableMinutes?":mm":"";return e.is24?`HH${N}${T}`:`hh${N}${T} aa`},n=()=>{var T;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?a():e.weekPicker?`${((T=b.value)==null?void 0:T.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${a()}`:"MM/dd/yyyy"},r=T=>Hs(T,e.enableSeconds),o=()=>A.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,i=t.computed(()=>eu(e.multiCalendars)),s=t.computed(()=>o()),l=t.computed(()=>J3(e.ariaLabels)),c=t.computed(()=>ru(e.filters)),m=t.computed(()=>au(e.transitions)),u=t.computed(()=>ou(e.actionRow)),f=t.computed(()=>tu(e.previewFormat,e.format,n())),d=t.computed(()=>nu(e.textInput)),p=t.computed(()=>iu(e.inline)),h=t.computed(()=>su(e.config)),g=t.computed(()=>lu(e.highlight)),b=t.computed(()=>cu(e.weekNumbers)),v=t.computed(()=>uu(e.timezone)),x=t.computed(()=>hu(e.multiDates)),k=t.computed(()=>mu({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:g.value,markers:e.markers,timezone:v.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),A=t.computed(()=>du(e.range)),_=t.computed(()=>pu(e.ui));return{defaultedTransitions:m,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:u,defaultedPreviewFormat:f,defaultedTextInput:d,defaultedInline:p,defaultedConfig:h,defaultedHighlight:g,defaultedWeekNumbers:b,defaultedRange:A,propDates:k,defaultedTz:v,defaultedMultiDates:x,defaultedUI:_,getDefaultPattern:n,getDefaultStartTime:o}},gu=(e,a,n)=>{const r=t.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=Ze(a),m=t.ref(""),u=t.toRef(a,"format"),f=t.toRef(a,"formatLocale");t.watch(r,()=>{typeof a.onInternalModelChange=="function"&&e("internal-model-change",r.value,ce(!0))},{deep:!0}),t.watch(i,(z,he)=>{z.enabled!==he.enabled&&(r.value=null)}),t.watch(u,()=>{oe()});const d=z=>s.value.timezone&&s.value.convertModel?At(z,s.value.timezone):z,p=z=>{if(s.value.timezone&&s.value.convertModel){const he=F3(s.value.timezone);return F2(z,he)}return z},h=(z,he,ee=!1)=>Is(z,a.format,a.formatLocale,o.value.rangeSeparator,a.modelAuto,he??c(),ee),g=z=>z?a.modelType?w(z):{hours:Qt(z),minutes:ia(z),seconds:a.enableSeconds?Ha(z):0}:null,b=z=>a.modelType?w(z):{month:Oe(z),year:Ve(z)},v=z=>Array.isArray(z)?l.value.enabled?z.map(he=>x(he,Yt(ge(),he))):Yn(()=>[Yt(ge(),z[0]),z[1]?Yt(ge(),z[1]):Ya(i.value.partialRange)],i.value.enabled):Yt(ge(),+z),x=(z,he)=>(typeof z=="string"||typeof z=="number")&&a.modelType?V(z):he,k=z=>Array.isArray(z)?[x(z[0],la(null,+z[0].hours,+z[0].minutes,z[0].seconds)),x(z[1],la(null,+z[1].hours,+z[1].minutes,z[1].seconds))]:x(z,la(null,z.hours,z.minutes,z.seconds)),A=z=>{const he=We(ge(),{date:1});return Array.isArray(z)?l.value.enabled?z.map(ee=>x(ee,Jt(he,+ee.month,+ee.year))):Yn(()=>[x(z[0],Jt(he,+z[0].month,+z[0].year)),x(z[1],z[1]?Jt(he,+z[1].month,+z[1].year):Ya(i.value.partialRange))],i.value.enabled):x(z,Jt(he,+z.month,+z.year))},_=z=>{if(Array.isArray(z))return z.map(he=>V(he));throw new Error(no.dateArr("multi-dates"))},T=z=>{if(Array.isArray(z)&&i.value.enabled){const he=z[0],ee=z[1];return[ge(Array.isArray(he)?he[0]:null),Array.isArray(ee)&&ee.length?ge(ee[0]):null]}return ge(z[0])},N=z=>a.modelAuto?Array.isArray(z)?[V(z[0]),V(z[1])]:a.autoApply?[V(z)]:[V(z),null]:Array.isArray(z)?Yn(()=>z[1]?[V(z[0]),z[1]?V(z[1]):Ya(i.value.partialRange)]:[V(z[0])],i.value.enabled):V(z),S=()=>{Array.isArray(r.value)&&i.value.enabled&&r.value.length===1&&r.value.push(Ya(i.value.partialRange))},B=()=>{const z=r.value;return[w(z[0]),z[1]?w(z[1]):Ya(i.value.partialRange)]},G=()=>r.value[1]?B():w(ft(r.value[0])),P=()=>(r.value||[]).map(z=>w(z)),Q=(z=!1)=>(z||S(),a.modelAuto?G():l.value.enabled?P():Array.isArray(r.value)?Yn(()=>B(),i.value.enabled):w(ft(r.value))),U=z=>!z||Array.isArray(z)&&!z.length?null:a.timePicker?k(ft(z)):a.monthPicker?A(ft(z)):a.yearPicker?v(ft(z)):l.value.enabled?_(ft(z)):a.weekPicker?T(ft(z)):N(ft(z)),E=z=>{const he=U(z);lo(ft(he))?(r.value=ft(he),oe()):(r.value=null,m.value="")},D=()=>{const z=he=>jt(he,o.value.format);return`${z(r.value[0])} ${o.value.rangeSeparator} ${r.value[1]?z(r.value[1]):""}`},F=()=>n.value&&r.value?Array.isArray(r.value)?D():jt(r.value,o.value.format):h(r.value),q=()=>r.value?l.value.enabled?r.value.map(z=>h(z)).join("; "):o.value.enabled&&typeof o.value.format=="string"?F():h(r.value):"",oe=()=>{!a.format||typeof a.format=="string"||o.value.enabled&&typeof o.value.format=="string"?m.value=q():m.value=a.format(r.value)},V=z=>{if(a.utc){const he=new Date(z);return a.utc==="preserve"?new Date(he.getTime()+he.getTimezoneOffset()*6e4):he}return a.modelType?L3.includes(a.modelType)?d(new Date(z)):a.modelType==="format"&&(typeof a.format=="string"||!a.format)?d(Ur(z,c(),new Date,{locale:f.value})):d(Ur(z,a.modelType,new Date,{locale:f.value})):d(new Date(z))},w=z=>z?a.utc?Y3(z,a.utc==="preserve",a.enableSeconds):a.modelType?a.modelType==="timestamp"?+p(z):a.modelType==="iso"?p(z).toISOString():a.modelType==="format"&&(typeof a.format=="string"||!a.format)?h(p(z)):h(p(z),a.modelType,!0):p(z):"",X=(z,he=!1,ee=!1)=>{if(ee)return z;if(e("update:model-value",z),s.value.emitTimezone&&he){const fe=Array.isArray(z)?z.map(L=>At(ft(L),s.value.emitTimezone)):At(ft(z),s.value.emitTimezone);e("update:model-timezone-value",fe)}},K=z=>Array.isArray(r.value)?l.value.enabled?r.value.map(he=>z(he)):[z(r.value[0]),r.value[1]?z(r.value[1]):Ya(i.value.partialRange)]:z(ft(r.value)),W=()=>{if(Array.isArray(r.value)){const z=Kt(r.value[0],a.weekStart),he=r.value[1]?Kt(r.value[1],a.weekStart):[];return[z.map(ee=>ge(ee)),he.map(ee=>ge(ee))]}return Kt(r.value,a.weekStart).map(z=>ge(z))},M=(z,he)=>X(ft(K(z)),!1,he),J=z=>{const he=W();return z?he:e("update:model-value",W())},ce=(z=!1)=>(z||oe(),a.monthPicker?M(b,z):a.timePicker?M(g,z):a.yearPicker?M(Ve,z):a.weekPicker?J(z):X(Q(z),!0,z));return{inputValue:m,internalModelValue:r,checkBeforeEmit:()=>r.value?i.value.enabled?i.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:E,formatInputValue:oe,emitModelValue:ce}},yu=(e,a)=>{const{defaultedFilters:n,propDates:r}=Ze(e),{validateMonthYearInRange:o}=fa(e),i=(u,f)=>{let d=u;return n.value.months.includes(Oe(d))?(d=f?Ft(u,1):Ga(u,1),i(d,f)):d},s=(u,f)=>{let d=u;return n.value.years.includes(Ve(d))?(d=f?Rr(u,1):Ms(u,1),s(d,f)):d},l=(u,f=!1)=>{const d=We(ge(),{month:e.month,year:e.year});let p=u?Ft(d,1):Ga(d,1);e.disableYearSelect&&(p=Yt(p,e.year));let h=Oe(p),g=Ve(p);n.value.months.includes(h)&&(p=i(p,u),h=Oe(p),g=Ve(p)),n.value.years.includes(g)&&(p=s(p,u),g=Ve(p)),o(h,g,u,e.preventMinMaxNavigation)&&c(h,g,f)},c=(u,f,d)=>{a("update-month-year",{month:u,year:f,fromNav:d})},m=t.computed(()=>u=>zs(We(ge(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:l,isDisabled:m,updateMonthYear:c}},Xn={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},Ht={...Xn,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},ku=["title"],bu=["disabled"],xu=t.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...Ht},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:a}){const n=a,r=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:m,defaultedMultiDates:u}=Ze(r),{isTimeValid:f,isMonthValid:d}=fa(r),{buildMatrix:p}=da(),h=t.ref(null),g=t.ref(null),b=t.ref(!1),v=t.ref({}),x=t.ref(null),k=t.ref(null);t.onMounted(()=>{r.arrowNavigation&&p([ct(h),ct(g)],"actionRow"),A(),window.addEventListener("resize",A)}),t.onUnmounted(()=>{window.removeEventListener("resize",A)});const A=()=>{b.value=!1,setTimeout(()=>{var E,D;const F=(E=x.value)==null?void 0:E.getBoundingClientRect(),q=(D=k.value)==null?void 0:D.getBoundingClientRect();F&&q&&(v.value.maxWidth=`${q.width-F.width-20}px`),b.value=!0},0)},_=t.computed(()=>m.value.enabled&&!m.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),T=t.computed(()=>!f.value(r.internalModelValue)||!d.value(r.internalModelValue)||!_.value),N=()=>{const E=i.value;return r.timePicker||r.monthPicker,E(ft(r.internalModelValue))},S=()=>{const E=r.internalModelValue;return s.value.count>0?`${B(E[0])} - ${B(E[1])}`:[B(E[0]),B(E[1])]},B=E=>Is(E,i.value,r.formatLocale,l.value.rangeSeparator,r.modelAuto,i.value),G=t.computed(()=>!r.internalModelValue||!r.menuMount?"":typeof i.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?S():u.value.enabled?r.internalModelValue.map(E=>`${B(E)}`):r.modelAuto?`${B(r.internalModelValue[0])}`:`${B(r.internalModelValue[0])} -`:B(r.internalModelValue):N()),P=()=>u.value.enabled?"; ":" - ",Q=t.computed(()=>Array.isArray(G.value)?G.value.join(P()):G.value),U=()=>{f.value(r.internalModelValue)&&d.value(r.internalModelValue)&&_.value?n("select-date"):n("invalid-select")};return(E,D)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"actionRowRef",ref:k,class:"dp__action_row"},[E.$slots["action-row"]?t.renderSlot(E.$slots,"action-row",t.normalizeProps(t.mergeProps({key:0},{internalModelValue:E.internalModelValue,disabled:T.value,selectDate:()=>E.$emit("select-date"),closePicker:()=>E.$emit("close-picker")}))):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.unref(o).showPreview?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dp__selection_preview",title:Q.value,style:t.normalizeStyle(v.value)},[E.$slots["action-preview"]&&b.value?t.renderSlot(E.$slots,"action-preview",{key:0,value:E.internalModelValue}):t.createCommentVNode("",!0),!E.$slots["action-preview"]&&b.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(Q.value),1)],64)):t.createCommentVNode("",!0)],12,ku)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[E.$slots["action-buttons"]?t.renderSlot(E.$slots,"action-buttons",{key:0,value:E.internalModelValue}):t.createCommentVNode("",!0),E.$slots["action-buttons"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!t.unref(c).enabled&&t.unref(o).showCancel?(t.openBlock(),t.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:h,type:"button",class:"dp__action_button dp__action_cancel",onClick:D[0]||(D[0]=F=>E.$emit("close-picker")),onKeydown:D[1]||(D[1]=F=>t.unref(wt)(F,()=>E.$emit("close-picker")))},t.toDisplayString(E.cancelText),545)):t.createCommentVNode("",!0),t.unref(o).showNow?(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:D[2]||(D[2]=F=>E.$emit("select-now")),onKeydown:D[3]||(D[3]=F=>t.unref(wt)(F,()=>E.$emit("select-now")))},t.toDisplayString(E.nowButtonLabel),33)):t.createCommentVNode("",!0),t.unref(o).showSelect?(t.openBlock(),t.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:g,type:"button",class:"dp__action_button dp__action_select",disabled:T.value,"data-test":"select-button",onKeydown:D[4]||(D[4]=F=>t.unref(wt)(F,()=>U())),onClick:U},t.toDisplayString(E.selectText),41,bu)):t.createCommentVNode("",!0)],64))],512)],64))],512))}}),wu=["role","aria-label","tabindex"],vu={class:"dp__selection_grid_header"},Eu=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],Cu=["aria-label"],gn=t.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:a,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:o,setMonthPicker:i}=da(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:m,defaultedConfig:u}=Ze(l),{hideNavigationButtons:f}=Kn(),d=t.ref(!1),p=t.ref(null),h=t.ref(null),g=t.ref([]),b=t.ref(),v=t.ref(null),x=t.ref(0),k=t.ref(null);t.onBeforeUpdate(()=>{p.value=null}),t.onMounted(()=>{t.nextTick().then(()=>P()),l.noOverlayFocus||_(),A(!0)}),t.onUnmounted(()=>A(!1));const A=K=>{var W;l.arrowNavigation&&((W=l.headerRefs)!=null&&W.length?i(K):r(K))},_=()=>{var K;const W=ct(h);W&&(m.value.enabled||(p.value?(K=p.value)==null||K.focus({preventScroll:!0}):W.focus({preventScroll:!0})),d.value=W.clientHeight<W.scrollHeight)},T=t.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),N=t.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),S=t.computed(()=>({dp__overlay_col:!0})),B=t.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:d.value,dp__button_bottom:l.isLast})),G=t.computed(()=>{var K,W;return{dp__overlay_container:!0,dp__container_flex:((K=l.items)==null?void 0:K.length)<=6,dp__container_block:((W=l.items)==null?void 0:W.length)>6}});t.watch(()=>l.items,()=>P(!1),{deep:!0});const P=(K=!0)=>{t.nextTick().then(()=>{const W=ct(p),M=ct(h),J=ct(v),ce=ct(k),z=J?J.getBoundingClientRect().height:0;M&&(M.getBoundingClientRect().height?x.value=M.getBoundingClientRect().height-z:x.value=u.value.modeHeight-z),W&&ce&&K&&(ce.scrollTop=W.offsetTop-ce.offsetTop-(x.value/2-W.getBoundingClientRect().height)-z)})},Q=K=>{K.disabled||s("selected",K.value)},U=()=>{s("toggle"),s("reset-flow")},E=()=>{l.escClose&&U()},D=(K,W,M,J)=>{K&&((W.active||W.value===l.focusValue)&&(p.value=K),l.arrowNavigation&&(Array.isArray(g.value[M])?g.value[M][J]=K:g.value[M]=[K],F()))},F=()=>{var K,W;const M=(K=l.headerRefs)!=null&&K.length?[l.headerRefs].concat(g.value):g.value.concat([l.skipButtonRef?[]:[v.value]]);o(ft(M),(W=l.headerRefs)!=null&&W.length?"monthPicker":"selectionGrid")},q=K=>{l.arrowNavigation||sa(K,u.value,!0)},oe=K=>{b.value=K,s("hover-value",K)},V=()=>{if(U(),!l.isLast){const K=ro(l.menuWrapRef??null,"action-row");if(K){const W=Ts(K);W==null||W.focus()}}},w=K=>{switch(K.key){case Ue.esc:return E();case Ue.arrowLeft:return q(K);case Ue.arrowRight:return q(K);case Ue.arrowUp:return q(K);case Ue.arrowDown:return q(K);default:return}},X=K=>{if(K.key===Ue.enter)return U();if(K.key===Ue.tab)return V()};return a({focusGrid:_}),(K,W)=>{var M;return t.openBlock(),t.createElementBlock("div",{ref_key:"gridWrapRef",ref:h,class:t.normalizeClass(T.value),style:t.normalizeStyle(N.value),role:K.useRelative?void 0:"dialog","aria-label":K.overlayLabel,tabindex:K.useRelative?void 0:"0",onKeydown:w,onClick:W[0]||(W[0]=t.withModifiers(()=>{},["prevent"]))},[t.createElementVNode("div",{ref_key:"containerRef",ref:k,class:t.normalizeClass(G.value),style:t.normalizeStyle({"--dp-overlay-height":`${x.value}px`}),role:"grid"},[t.createElementVNode("div",vu,[t.renderSlot(K.$slots,"header")]),K.$slots.overlay?t.renderSlot(K.$slots,"overlay",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(K.items,(J,ce)=>(t.openBlock(),t.createElementBlock("div",{key:ce,class:t.normalizeClass(["dp__overlay_row",{dp__flex_row:K.items.length>=3}]),role:"row"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(J,(z,he)=>(t.openBlock(),t.createElementBlock("div",{key:z.value,ref_for:!0,ref:ee=>D(ee,z,ce,he),role:"gridcell",class:t.normalizeClass(S.value),"aria-selected":z.active||void 0,"aria-disabled":z.disabled||void 0,tabindex:"0","data-test":z.text,onClick:t.withModifiers(ee=>Q(z),["prevent"]),onKeydown:ee=>t.unref(wt)(ee,()=>Q(z),!0),onMouseover:ee=>oe(z.value)},[t.createElementVNode("div",{class:t.normalizeClass(z.className)},[K.$slots.item?t.renderSlot(K.$slots,"item",{key:0,item:z}):t.createCommentVNode("",!0),K.$slots.item?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(z.text),1)],64))],2)],42,Eu))),128))],2))),128))],6),K.$slots["button-icon"]?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:v,type:"button","aria-label":(M=t.unref(c))==null?void 0:M.toggleOverlay,class:t.normalizeClass(B.value),tabindex:"0",onClick:U,onKeydown:X},[t.renderSlot(K.$slots,"button-icon")],42,Cu)),[[t.vShow,!t.unref(f)(K.hideNavigation,K.type)]]):t.createCommentVNode("",!0)],46,wu)}}}),Zn=t.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const a=e,n=t.computed(()=>a.multiCalendars>0?[...Array(a.multiCalendars).keys()]:[0]),r=t.computed(()=>({dp__instance_calendar:a.multiCalendars>0}));return(o,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(s,l)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:t.normalizeClass(r.value)},[t.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],2))}}),Su=["data-dp-element","aria-label","aria-disabled"],yn=t.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:a}){const n=a,r=t.ref(null);return t.onMounted(()=>n("set-ref",r)),(o,i)=>(t.openBlock(),t.createElementBlock("button",{ref_key:"elRef",ref:r,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>t.unref(wt)(s,()=>o.$emit("activate"),!0))},[t.createElementVNode("span",{class:t.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[t.renderSlot(o.$slots,"default")],2)],40,Su))}}),Mu=["aria-label","data-test"],Xs=t.defineComponent({__name:"YearModePicker",props:{...Ht,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:a}){const n=a,r=e,{showRightIcon:o,showLeftIcon:i}=Kn(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:m,defaultedUI:u}=Ze(r),{showTransition:f,transitionName:d}=kn(m),p=t.ref(!1),h=(v=!1,x)=>{p.value=!p.value,n("toggle-year-picker",{flow:v,show:x})},g=v=>{p.value=!1,n("year-select",v)},b=(v=!1)=>{n("handle-year",v)};return(v,x)=>{var k,A,_,T,N;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":p.value}])},[t.unref(i)(t.unref(l),e.instance)?(t.openBlock(),t.createBlock(yn,{key:0,ref:"mpPrevIconRef","aria-label":(k=t.unref(c))==null?void 0:k.prevYear,disabled:e.isDisabled(!1),class:t.normalizeClass((A=t.unref(u))==null?void 0:A.navBtnPrev),onActivate:x[0]||(x[0]=S=>b(!1))},{default:t.withCtx(()=>[v.$slots["arrow-left"]?t.renderSlot(v.$slots,"arrow-left",{key:0}):t.createCommentVNode("",!0),v.$slots["arrow-left"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Xr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0),t.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(_=t.unref(c))==null?void 0:_.openYearsOverlay}`,"data-test":`year-mode-btn-${e.instance}`,onClick:x[1]||(x[1]=()=>h(!1)),onKeydown:x[2]||(x[2]=t.withKeys(()=>h(!1),["enter"]))},[v.$slots.year?t.renderSlot(v.$slots,"year",{key:0,year:e.year}):t.createCommentVNode("",!0),v.$slots.year?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.year),1)],64))],40,Mu),t.unref(o)(t.unref(l),e.instance)?(t.openBlock(),t.createBlock(yn,{key:1,ref:"mpNextIconRef","aria-label":(T=t.unref(c))==null?void 0:T.nextYear,disabled:e.isDisabled(!0),class:t.normalizeClass((N=t.unref(u))==null?void 0:N.navBtnNext),onActivate:x[3]||(x[3]=S=>b(!0))},{default:t.withCtx(()=>[v.$slots["arrow-right"]?t.renderSlot(v.$slots,"arrow-right",{key:0}):t.createCommentVNode("",!0),v.$slots["arrow-right"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Zr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:t.unref(d)(e.showYearPicker),css:t.unref(f)},{default:t.withCtx(()=>{var S,B;return[e.showYearPicker?(t.openBlock(),t.createBlock(gn,{key:0,items:e.items,"text-input":v.textInput,"esc-close":v.escClose,config:v.config,"is-last":v.autoApply&&!t.unref(s).keepActionRow,"hide-navigation":v.hideNavigation,"aria-labels":v.ariaLabels,"overlay-label":(B=(S=t.unref(c))==null?void 0:S.yearPicker)==null?void 0:B.call(S,!0),type:"year",onToggle:h,onSelected:x[4]||(x[4]=G=>g(G))},t.createSlots({"button-icon":t.withCtx(()=>[v.$slots["calendar-icon"]?t.renderSlot(v.$slots,"calendar-icon",{key:0}):t.createCommentVNode("",!0),v.$slots["calendar-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(ja),{key:1}))]),_:2},[v.$slots["year-overlay-value"]?{name:"item",fn:t.withCtx(({item:G})=>[t.renderSlot(v.$slots,"year-overlay-value",{text:G.text,value:G.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):t.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),bo=(e,a,n)=>{if(a.value&&Array.isArray(a.value))if(a.value.some(r=>Fe(e,r))){const r=a.value.filter(o=>!Fe(o,e));a.value=r.length?r:null}else(n&&+n>a.value.length||!n)&&a.value.push(e);else a.value=[e]},xo=(e,a,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?tt(a,r[0])?(r.unshift(a),n("range-start",r[0]),n("range-start",r[1])):(r[1]=a,n("range-end",a)):(r=[a],n("range-start",a)),r},Qn=(e,a,n,r)=>{e&&(e[0]&&e[1]&&n&&a("auto-apply"),e[0]&&!e[1]&&r&&n&&a("auto-apply"))},Zs=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(a=>At(ge(a),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=At(ge(e.value),e.timezone))},Qs=(e,a,n,r)=>Array.isArray(a.value)&&(a.value.length===2||a.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(it(e,a.value[0])||Fe(e,a.value[0]))?[a.value[0],e]:r.value.fixedEnd&&(tt(e,a.value[1])||Fe(e,a.value[1]))?[e,a.value[1]]:(n("invalid-fixed-range",e),a.value):[],Ks=({multiCalendars:e,range:a,highlight:n,propDates:r,calendars:o,modelValue:i,props:s,filters:l,year:c,month:m,emit:u})=>{const f=t.computed(()=>ao(s.yearRange,s.locale,s.reverseYears)),d=t.ref([!1]),p=t.computed(()=>(G,P)=>{const Q=We(Rt(new Date),{month:m.value(G),year:c.value(G)}),U=P?ss(Q):dn(Q);return zs(U,r.value.maxDate,r.value.minDate,s.preventMinMaxNavigation,P)}),h=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],g=()=>{for(let G=0;G<e.value.count;G++)if(G===0)o.value[G]=o.value[0];else if(G===e.value.count-1&&h())o.value[G]={month:Oe(i.value[1]),year:Ve(i.value[1])};else{const P=We(ge(),o.value[G-1]);o.value[G]={month:Oe(P),year:Ve(Rr(P,1))}}},b=G=>{if(!G)return g();const P=We(ge(),o.value[G]);return o.value[0].year=Ve(Ms(P,e.value.count-1)),g()},v=(G,P)=>{const Q=z2(P,G);return a.value.showLastInRange&&Q>1?P:G},x=G=>s.focusStartDate||e.value.solo?G[0]:G[1]?v(G[0],G[1]):G[0],k=()=>{if(i.value){const G=Array.isArray(i.value)?x(i.value):i.value;o.value[0]={month:Oe(G),year:Ve(G)}}},A=()=>{k(),e.value.count&&g()};t.watch(i,(G,P)=>{s.isTextInputDate&&JSON.stringify(G??{})!==JSON.stringify(P??{})&&A()}),t.onMounted(()=>{A()});const _=(G,P)=>{o.value[P].year=G,u("update-month-year",{instance:P,year:G,month:o.value[P].month}),e.value.count&&!e.value.solo&&b(P)},T=t.computed(()=>G=>qa(f.value,P=>{var Q;const U=c.value(G)===P.value,E=hn(P.value,Wa(r.value.minDate),Wa(r.value.maxDate))||((Q=l.value.years)==null?void 0:Q.includes(c.value(G))),D=mo(n.value,P.value);return{active:U,disabled:E,highlighted:D}})),N=(G,P)=>{_(G,P),B(P)},S=(G,P=!1)=>{if(!p.value(G,P)){const Q=P?c.value(G)+1:c.value(G)-1;_(Q,G)}},B=(G,P=!1,Q)=>{P||u("reset-flow"),Q!==void 0?d.value[G]=Q:d.value[G]=!d.value[G],d.value[G]?u("overlay-toggle",{open:!0,overlay:yt.year}):(u("overlay-closed"),u("overlay-toggle",{open:!1,overlay:yt.year}))};return{isDisabled:p,groupedYears:T,showYearPicker:d,selectYear:_,toggleYearPicker:B,handleYearSelect:N,handleYear:S}},Bu=(e,a)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:m,defaultedFilters:u,defaultedMultiDates:f}=Ze(e),d=()=>{e.isTextInputDate&&A(Ve(ge(e.startDate)),0)},{modelValue:p,year:h,month:g,calendars:b}=bn(e,a,d),v=t.computed(()=>Vs(e.formatLocale,e.locale,e.monthNameFormat)),x=t.ref(null),{checkMinMaxRange:k}=fa(e),{selectYear:A,groupedYears:_,showYearPicker:T,toggleYearPicker:N,handleYearSelect:S,handleYear:B,isDisabled:G}=Ks({modelValue:p,multiCalendars:n,range:s,highlight:l,calendars:b,year:h,propDates:c,month:g,filters:u,props:e,emit:a});t.onMounted(()=>{e.startDate&&(p.value&&e.focusStartDate||!p.value)&&A(Ve(ge(e.startDate)),0)});const P=M=>M?{month:Oe(M),year:Ve(M)}:{month:null,year:null},Q=()=>p.value?Array.isArray(p.value)?p.value.map(M=>P(M)):P(p.value):P(),U=(M,J)=>{const ce=b.value[M],z=Q();return Array.isArray(z)?z.some(he=>he.year===(ce==null?void 0:ce.year)&&he.month===J):(ce==null?void 0:ce.year)===z.year&&J===z.month},E=(M,J,ce)=>{var z,he;const ee=Q();return Array.isArray(ee)?h.value(J)===((z=ee[ce])==null?void 0:z.year)&&M===((he=ee[ce])==null?void 0:he.month):!1},D=(M,J)=>{if(s.value.enabled){const ce=Q();if(Array.isArray(p.value)&&Array.isArray(ce)){const z=E(M,J,0)||E(M,J,1),he=Jt(Rt(ge()),M,h.value(J));return Wn(p.value,x.value,he)&&!z}return!1}return!1},F=t.computed(()=>M=>qa(v.value,J=>{var ce;const z=U(M,J.value),he=hn(J.value,Ls(h.value(M),c.value.minDate),$s(h.value(M),c.value.maxDate))||K3(c.value.disabledDates,h.value(M)).includes(J.value)||((ce=u.value.months)==null?void 0:ce.includes(J.value)),ee=D(J.value,M),fe=js(l.value,J.value,h.value(M));return{active:z,disabled:he,isBetween:ee,highlighted:fe}})),q=(M,J)=>Jt(Rt(ge()),M,h.value(J)),oe=(M,J)=>{const ce=p.value?p.value:Rt(new Date);p.value=Jt(ce,M,h.value(J)),a("auto-apply"),a("update-flow-step")},V=(M,J)=>{const ce=q(M,J);s.value.fixedEnd||s.value.fixedStart?p.value=Qs(ce,p,a,s):p.value?k(ce,p.value)&&(p.value=xo(p,q(M,J),a)):p.value=[q(M,J)],t.nextTick().then(()=>{Qn(p.value,a,e.autoApply,e.modelAuto)})},w=(M,J)=>{bo(q(M,J),p,f.value.limit),a("auto-apply",!0)},X=(M,J)=>(b.value[J].month=M,W(J,b.value[J].year,M),f.value.enabled?w(M,J):s.value.enabled?V(M,J):oe(M,J)),K=(M,J)=>{A(M,J),W(J,M,null)},W=(M,J,ce)=>{let z=ce;if(!z&&z!==0){const he=Q();z=Array.isArray(he)?he[M].month:he.month}a("update-month-year",{instance:M,year:J,month:z})};return{groupedMonths:F,groupedYears:_,year:h,isDisabled:G,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,showYearPicker:T,modelValue:p,presetDate:(M,J)=>{Zs({value:M,modelValue:p,range:s.value.enabled,timezone:J?void 0:m.value.timezone}),a("auto-apply")},setHoverDate:(M,J)=>{x.value=q(M,J)},selectMonth:X,selectYear:K,toggleYearPicker:N,handleYearSelect:S,handleYear:B,getModelMonthYear:Q}},Au=t.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...Ht},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=t.useSlots(),i=Vt(o,"yearMode"),s=e;t.onMounted(()=>{s.shadow||r("mount",null)});const{groupedMonths:l,groupedYears:c,year:m,isDisabled:u,defaultedMultiCalendars:f,defaultedConfig:d,showYearPicker:p,modelValue:h,presetDate:g,setHoverDate:b,selectMonth:v,selectYear:x,toggleYearPicker:k,handleYearSelect:A,handleYear:_,getModelMonthYear:T}=Bu(s,r);return a({getSidebarProps:()=>({modelValue:h,year:m,getModelMonthYear:T,selectMonth:v,selectYear:x,handleYear:_}),presetDate:g,toggleYearPicker:N=>k(0,N)}),(N,S)=>(t.openBlock(),t.createBlock(Zn,{"multi-calendars":t.unref(f).count,collapse:N.collapse,stretch:""},{default:t.withCtx(({instance:B})=>[N.$slots["top-extra"]?t.renderSlot(N.$slots,"top-extra",{key:0,value:N.internalModelValue}):t.createCommentVNode("",!0),N.$slots["month-year"]?t.renderSlot(N.$slots,"month-year",t.normalizeProps(t.mergeProps({key:1},{year:t.unref(m),months:t.unref(l)(B),years:t.unref(c)(B),selectMonth:t.unref(v),selectYear:t.unref(x),instance:B}))):(t.openBlock(),t.createBlock(gn,{key:2,items:t.unref(l)(B),"arrow-navigation":N.arrowNavigation,"is-last":N.autoApply&&!t.unref(d).keepActionRow,"esc-close":N.escClose,height:t.unref(d).modeHeight,config:N.config,"no-overlay-focus":!!(N.noOverlayFocus||N.textInput),"use-relative":"",type:"month",onSelected:G=>t.unref(v)(G,B),onHoverValue:G=>t.unref(b)(G,B)},t.createSlots({header:t.withCtx(()=>[t.createVNode(Xs,t.mergeProps(N.$props,{items:t.unref(c)(B),instance:B,"show-year-picker":t.unref(p)[B],year:t.unref(m)(B),"is-disabled":G=>t.unref(u)(B,G),onHandleYear:G=>t.unref(_)(B,G),onYearSelect:G=>t.unref(A)(G,B),onToggleYearPicker:G=>t.unref(k)(B,G==null?void 0:G.flow,G==null?void 0:G.show)}),t.createSlots({_:2},[t.renderList(t.unref(i),(G,P)=>({name:G,fn:t.withCtx(Q=>[t.renderSlot(N.$slots,G,t.normalizeProps(t.guardReactiveProps(Q)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[N.$slots["month-overlay-value"]?{name:"item",fn:t.withCtx(({item:G})=>[t.renderSlot(N.$slots,"month-overlay-value",{text:G.text,value:G.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),Vu=(e,a)=>{const n=()=>{e.isTextInputDate&&(u.value=Ve(ge(e.startDate)))},{modelValue:r}=bn(e,a,n),o=t.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:m}=Ze(e),u=t.ref();t.onMounted(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(u.value=Ve(ge(e.startDate)))});const f=g=>Array.isArray(r.value)?r.value.some(b=>Ve(b)===g):r.value?Ve(r.value)===g:!1,d=g=>c.value.enabled&&Array.isArray(r.value)?Wn(r.value,o.value,h(g)):!1,p=t.computed(()=>qa(ao(e.yearRange,e.locale,e.reverseYears),g=>{const b=f(g.value),v=hn(g.value,Wa(m.value.minDate),Wa(m.value.maxDate))||l.value.years.includes(g.value),x=d(g.value)&&!b,k=mo(i.value,g.value);return{active:b,disabled:v,isBetween:x,highlighted:k}})),h=g=>Yt(Rt(dn(new Date)),g);return{groupedYears:p,modelValue:r,focusYear:u,setHoverValue:g=>{o.value=Yt(Rt(new Date),g)},selectYear:g=>{var b;if(a("update-month-year",{instance:0,year:g}),s.value.enabled)return r.value?Array.isArray(r.value)&&(((b=r.value)==null?void 0:b.map(v=>Ve(v))).includes(g)?r.value=r.value.filter(v=>Ve(v)!==g):r.value.push(Yt(vt(ge()),g))):r.value=[Yt(vt(dn(ge())),g)],a("auto-apply",!0);c.value.enabled?(r.value=xo(r,h(g),a),t.nextTick().then(()=>{Qn(r.value,a,e.autoApply,e.modelAuto)})):(r.value=h(g),a("auto-apply"))}}},_u=t.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...Ht},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:a,emit:n}){const r=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:m}=Vu(o,r),{defaultedConfig:u}=Ze(o);return a({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,d)=>(t.openBlock(),t.createElementBlock("div",null,[f.$slots["top-extra"]?t.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):t.createCommentVNode("",!0),f.$slots["month-year"]?t.renderSlot(f.$slots,"month-year",t.normalizeProps(t.mergeProps({key:1},{years:t.unref(i),selectYear:t.unref(c)}))):(t.openBlock(),t.createBlock(gn,{key:2,items:t.unref(i),"is-last":f.autoApply&&!t.unref(u).keepActionRow,height:t.unref(u).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":t.unref(l),type:"year","use-relative":"",onSelected:t.unref(c),onHoverValue:t.unref(m)},t.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:t.withCtx(({item:p})=>[t.renderSlot(f.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),Nu={key:0,class:"dp__time_input"},Du=["data-test","aria-label","onKeydown","onClick","onMousedown"],Tu=["aria-label","disabled","data-test","onKeydown","onClick"],Pu=["data-test","aria-label","onKeydown","onClick","onMousedown"],Ou={key:0},Fu=["aria-label"],Lu=t.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...Ht},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:a,emit:n}){const r=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=da(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:m,defaultedConfig:u,defaultedRange:f}=Ze(o),{transitionName:d,showTransition:p}=kn(c),h=t.reactive({hours:!1,minutes:!1,seconds:!1}),g=t.ref("AM"),b=t.ref(null),v=t.ref([]),x=t.ref(),k=t.ref(!1);t.onMounted(()=>{r("mounted")});const A=y=>We(new Date,{hours:y.hours,minutes:y.minutes,seconds:o.enableSeconds?y.seconds:0,milliseconds:0}),_=t.computed(()=>y=>q(y,o[y])||N(y,o[y])),T=t.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),N=(y,O)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(y,O):!1,S=(y,O)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const I=O?+o[`${y}Increment`]:-+o[`${y}Increment`],H=o[y]+I;return!o.validateTime(y,H)}return!1},B=t.computed(()=>y=>!K(+o[y]+ +o[`${y}Increment`],y)||S(y,!0)),G=t.computed(()=>y=>!K(+o[y]-+o[`${y}Increment`],y)||S(y,!1)),P=(y,O)=>Qi(We(ge(),y),O),Q=(y,O)=>P3(We(ge(),y),O),U=t.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),E=t.computed(()=>{const y=[{type:"hours"}];return o.enableMinutes&&y.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&y.push({type:"",separator:!0},{type:"seconds"}),y}),D=t.computed(()=>E.value.filter(y=>!y.separator)),F=t.computed(()=>y=>{if(y==="hours"){const O=he(+o.hours);return{text:O<10?`0${O}`:`${O}`,value:O}}return{text:o[y]<10?`0${o[y]}`:`${o[y]}`,value:o[y]}}),q=(y,O)=>{var I;if(!o.disabledTimesConfig)return!1;const H=o.disabledTimesConfig(o.order,y==="hours"?O:void 0);return H[y]?!!((I=H[y])!=null&&I.includes(O)):!0},oe=(y,O)=>O!=="hours"||g.value==="AM"?y:y+12,V=y=>{const O=o.is24?24:12,I=y==="hours"?O:60,H=+o[`${y}GridIncrement`],te=y==="hours"&&!o.is24?H:0,j=[];for(let ne=te;ne<I;ne+=H)j.push({value:o.is24?ne:oe(ne,y),text:ne<10?`0${ne}`:`${ne}`});return y==="hours"&&!o.is24&&j.unshift({value:g.value==="PM"?12:0,text:"12"}),qa(j,ne=>({active:!1,disabled:m.value.times[y].includes(ne.value)||!K(ne.value,y)||q(y,ne.value)||N(y,ne.value)}))},w=y=>y>=0?y:59,X=y=>y>=0?y:23,K=(y,O)=>{const I=o.minTime?A(so(o.minTime)):null,H=o.maxTime?A(so(o.maxTime)):null,te=A(so(T.value,O,O==="minutes"||O==="seconds"?w(y):X(y)));return I&&H?(mn(te,H)||Ia(te,H))&&(za(te,I)||Ia(te,I)):I?za(te,I)||Ia(te,I):H?mn(te,H)||Ia(te,H):!0},W=y=>o[`no${y[0].toUpperCase()+y.slice(1)}Overlay`],M=y=>{W(y)||(h[y]=!h[y],h[y]?(k.value=!0,r("overlay-opened",y)):(k.value=!1,r("overlay-closed",y)))},J=y=>y==="hours"?Qt:y==="minutes"?ia:Ha,ce=()=>{x.value&&clearTimeout(x.value)},z=(y,O=!0,I)=>{const H=O?P:Q,te=O?+o[`${y}Increment`]:-+o[`${y}Increment`];K(+o[y]+te,y)&&r(`update:${y}`,J(y)(H({[y]:+o[y]},{[y]:+o[`${y}Increment`]}))),!(I!=null&&I.keyboard)&&u.value.timeArrowHoldThreshold&&(x.value=setTimeout(()=>{z(y,O)},u.value.timeArrowHoldThreshold))},he=y=>o.is24?y:(y>=12?g.value="PM":g.value="AM",H3(y)),ee=()=>{g.value==="PM"?(g.value="AM",r("update:hours",o.hours-12)):(g.value="PM",r("update:hours",o.hours+12)),r("am-pm-change",g.value)},fe=y=>{h[y]=!0},L=(y,O,I)=>{if(y&&o.arrowNavigation){Array.isArray(v.value[O])?v.value[O][I]=y:v.value[O]=[y];const H=v.value.reduce((te,j)=>j.map((ne,ue)=>[...te[ue]||[],j[ue]]),[]);s(o.closeTimePickerBtn),b.value&&(H[1]=H[1].concat(b.value)),i(H,o.order)}},C=(y,O)=>(M(y),r(`update:${y}`,O));return a({openChildCmp:fe}),(y,O)=>{var I;return y.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,(H,te)=>{var j,ne,ue;return t.openBlock(),t.createElementBlock("div",{key:te,class:t.normalizeClass(U.value)},[H.separator?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[k.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(":")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_for:!0,ref:ye=>L(ye,te,0),type:"button",class:t.normalizeClass({dp__btn:!0,dp__inc_dec_button:!y.timePickerInline,dp__inc_dec_button_inline:y.timePickerInline,dp__tp_inline_btn_top:y.timePickerInline,dp__inc_dec_button_disabled:B.value(H.type),"dp--hidden-el":k.value}),"data-test":`${H.type}-time-inc-btn-${o.order}`,"aria-label":(j=t.unref(l))==null?void 0:j.incrementValue(H.type),tabindex:"0",onKeydown:ye=>t.unref(wt)(ye,()=>z(H.type,!0,{keyboard:!0}),!0),onClick:ye=>t.unref(u).timeArrowHoldThreshold?void 0:z(H.type,!0),onMousedown:ye=>t.unref(u).timeArrowHoldThreshold?z(H.type,!0):void 0,onMouseup:ce},[o.timePickerInline?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.$slots["tp-inline-arrow-up"]?t.renderSlot(y.$slots,"tp-inline-arrow-up",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[O[2]||(O[2]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),O[3]||(O[3]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.$slots["arrow-up"]?t.renderSlot(y.$slots,"arrow-up",{key:0}):t.createCommentVNode("",!0),y.$slots["arrow-up"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Kr),{key:1}))],64))],42,Du),t.createElementVNode("button",{ref_for:!0,ref:ye=>L(ye,te,1),type:"button","aria-label":`${F.value(H.type).text}-${(ne=t.unref(l))==null?void 0:ne.openTpOverlay(H.type)}`,class:t.normalizeClass({dp__time_display:!0,dp__time_display_block:!y.timePickerInline,dp__time_display_inline:y.timePickerInline,"dp--time-invalid":_.value(H.type),"dp--time-overlay-btn":!_.value(H.type),"dp--hidden-el":k.value}),disabled:W(H.type),tabindex:"0","data-test":`${H.type}-toggle-overlay-btn-${o.order}`,onKeydown:ye=>t.unref(wt)(ye,()=>M(H.type),!0),onClick:ye=>M(H.type)},[y.$slots[H.type]?t.renderSlot(y.$slots,H.type,{key:0,text:F.value(H.type).text,value:F.value(H.type).value}):t.createCommentVNode("",!0),y.$slots[H.type]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(F.value(H.type).text),1)],64))],42,Tu),t.createElementVNode("button",{ref_for:!0,ref:ye=>L(ye,te,2),type:"button",class:t.normalizeClass({dp__btn:!0,dp__inc_dec_button:!y.timePickerInline,dp__inc_dec_button_inline:y.timePickerInline,dp__tp_inline_btn_bottom:y.timePickerInline,dp__inc_dec_button_disabled:G.value(H.type),"dp--hidden-el":k.value}),"data-test":`${H.type}-time-dec-btn-${o.order}`,"aria-label":(ue=t.unref(l))==null?void 0:ue.decrementValue(H.type),tabindex:"0",onKeydown:ye=>t.unref(wt)(ye,()=>z(H.type,!1,{keyboard:!0}),!0),onClick:ye=>t.unref(u).timeArrowHoldThreshold?void 0:z(H.type,!1),onMousedown:ye=>t.unref(u).timeArrowHoldThreshold?z(H.type,!1):void 0,onMouseup:ce},[o.timePickerInline?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.$slots["tp-inline-arrow-down"]?t.renderSlot(y.$slots,"tp-inline-arrow-down",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[O[4]||(O[4]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),O[5]||(O[5]=t.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.$slots["arrow-down"]?t.renderSlot(y.$slots,"arrow-down",{key:0}):t.createCommentVNode("",!0),y.$slots["arrow-down"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Jr),{key:1}))],64))],42,Pu)],64))],2)}),128)),y.is24?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ou,[y.$slots["am-pm-button"]?t.renderSlot(y.$slots,"am-pm-button",{key:0,toggle:ee,value:g.value}):t.createCommentVNode("",!0),y.$slots["am-pm-button"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:b,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(I=t.unref(l))==null?void 0:I.amPmButton,tabindex:"0",onClick:ee,onKeydown:O[0]||(O[0]=H=>t.unref(wt)(H,()=>ee(),!0))},t.toDisplayString(g.value),41,Fu))])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,(H,te)=>(t.openBlock(),t.createBlock(t.Transition,{key:te,name:t.unref(d)(h[H.type]),css:t.unref(p)},{default:t.withCtx(()=>{var j,ne;return[h[H.type]?(t.openBlock(),t.createBlock(gn,{key:0,items:V(H.type),"is-last":y.autoApply&&!t.unref(u).keepActionRow,"esc-close":y.escClose,type:H.type,"text-input":y.textInput,config:y.config,"arrow-navigation":y.arrowNavigation,"aria-labels":y.ariaLabels,"overlay-label":(ne=(j=t.unref(l)).timeOverlay)==null?void 0:ne.call(j,H.type),onSelected:ue=>C(H.type,ue),onToggle:ue=>M(H.type),onResetFlow:O[1]||(O[1]=ue=>y.$emit("reset-flow"))},t.createSlots({"button-icon":t.withCtx(()=>[y.$slots["clock-icon"]?t.renderSlot(y.$slots,"clock-icon",{key:0}):t.createCommentVNode("",!0),y.$slots["clock-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.timePickerInline?t.unref(ja):t.unref(Qr)),{key:1}))]),_:2},[y.$slots[`${H.type}-overlay-value`]?{name:"item",fn:t.withCtx(({item:ue})=>[t.renderSlot(y.$slots,`${H.type}-overlay-value`,{text:ue.text,value:ue.value})]),key:"0"}:void 0,y.$slots[`${H.type}-overlay-header`]?{name:"header",fn:t.withCtx(()=>[t.renderSlot(y.$slots,`${H.type}-overlay-header`,{toggle:()=>M(H.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):t.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),$u={class:"dp--tp-wrap"},Ru=["aria-label","tabindex"],Hu=["role","aria-label","tabindex"],zu=["aria-label"],Js=t.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...Ht},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:a,emit:n}){const r=n,o=e,{buildMatrix:i,setTimePicker:s}=da(),l=t.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:m,defaultedTextInput:u,defaultedConfig:f,defaultedRange:d}=Ze(o),{transitionName:p,showTransition:h}=kn(c),{hideNavigationButtons:g}=Kn(),b=t.ref(null),v=t.ref(null),x=t.ref([]),k=t.ref(null),A=t.ref(!1);t.onMounted(()=>{r("mount"),!o.timePicker&&o.arrowNavigation?i([ct(b.value)],"time"):s(!0,o.timePicker)});const _=t.computed(()=>d.value.enabled&&o.modelAuto?_s(o.internalModelValue):!0),T=t.ref(!1),N=V=>({hours:Array.isArray(o.hours)?o.hours[V]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[V]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[V]:o.seconds}),S=t.computed(()=>{const V=[];if(d.value.enabled)for(let w=0;w<2;w++)V.push(N(w));else V.push(N(0));return V}),B=(V,w=!1,X="")=>{w||r("reset-flow"),T.value=V,r(V?"overlay-opened":"overlay-closed",yt.time),o.arrowNavigation&&s(V),t.nextTick(()=>{X!==""&&x.value[0]&&x.value[0].openChildCmp(X)})},G=t.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),P=Vt(l,"timePicker"),Q=(V,w,X)=>d.value.enabled?w===0?[V,S.value[1][X]]:[S.value[0][X],V]:V,U=V=>{r("update:hours",V)},E=V=>{r("update:minutes",V)},D=V=>{r("update:seconds",V)},F=()=>{if(k.value&&!u.value.enabled&&!o.noOverlayFocus){const V=Ts(k.value);V&&V.focus({preventScroll:!0})}},q=V=>{A.value=!1,r("overlay-closed",V)},oe=V=>{A.value=!0,r("overlay-opened",V)};return a({toggleTimePicker:B}),(V,w)=>{var X;return t.openBlock(),t.createElementBlock("div",$u,[!V.timePicker&&!V.timePickerInline?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:b,type:"button",class:t.normalizeClass({...G.value,"dp--hidden-el":T.value}),"aria-label":(X=t.unref(m))==null?void 0:X.openTimePicker,tabindex:V.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:w[0]||(w[0]=K=>t.unref(wt)(K,()=>B(!0))),onClick:w[1]||(w[1]=K=>B(!0))},[V.$slots["clock-icon"]?t.renderSlot(V.$slots,"clock-icon",{key:0}):t.createCommentVNode("",!0),V.$slots["clock-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Qr),{key:1}))],42,Ru)),[[t.vShow,!t.unref(g)(V.hideNavigation,"time")]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:t.unref(p)(T.value),css:t.unref(h)&&!V.timePickerInline},{default:t.withCtx(()=>{var K,W;return[T.value||V.timePicker||V.timePickerInline?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:k,role:V.timePickerInline?void 0:"dialog",class:t.normalizeClass({dp__overlay:!V.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!V.timePickerInline,"dp--overlay-relative":o.timePicker}),style:t.normalizeStyle(V.timePicker?{height:`${t.unref(f).modeHeight}px`}:void 0),"aria-label":(K=t.unref(m))==null?void 0:K.timePicker,tabindex:V.timePickerInline?void 0:0},[t.createElementVNode("div",{class:t.normalizeClass(V.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[V.$slots["time-picker-overlay"]?t.renderSlot(V.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:U,setMinutes:E,setSeconds:D}):t.createCommentVNode("",!0),V.$slots["time-picker-overlay"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(V.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,(M,J)=>t.withDirectives((t.openBlock(),t.createBlock(Lu,t.mergeProps({key:J,ref_for:!0},{...V.$props,order:J,hours:M.hours,minutes:M.minutes,seconds:M.seconds,closeTimePickerBtn:v.value,disabledTimesConfig:e.disabledTimesConfig,disabled:J===0?t.unref(d).fixedStart:t.unref(d).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:x,"validate-time":(ce,z)=>e.validateTime(ce,Q(z,J,ce)),"onUpdate:hours":ce=>U(Q(ce,J,"hours")),"onUpdate:minutes":ce=>E(Q(ce,J,"minutes")),"onUpdate:seconds":ce=>D(Q(ce,J,"seconds")),onMounted:F,onOverlayClosed:q,onOverlayOpened:oe,onAmPmChange:w[2]||(w[2]=ce=>V.$emit("am-pm-change",ce))}),t.createSlots({_:2},[t.renderList(t.unref(P),(ce,z)=>({name:ce,fn:t.withCtx(he=>[t.renderSlot(V.$slots,ce,t.mergeProps({ref_for:!0},he))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[t.vShow,J===0?!0:_.value]])),128))],2)),!V.timePicker&&!V.timePickerInline?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:v,type:"button",class:t.normalizeClass({...G.value,"dp--hidden-el":A.value}),"aria-label":(W=t.unref(m))==null?void 0:W.closeTimePicker,tabindex:"0",onKeydown:w[3]||(w[3]=M=>t.unref(wt)(M,()=>B(!1))),onClick:w[4]||(w[4]=M=>B(!1))},[V.$slots["calendar-icon"]?t.renderSlot(V.$slots,"calendar-icon",{key:0}):t.createCommentVNode("",!0),V.$slots["calendar-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(ja),{key:1}))],42,zu)),[[t.vShow,!t.unref(g)(V.hideNavigation,"time")]]):t.createCommentVNode("",!0)],2)],14,Hu)):t.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),el=(e,a,n,r)=>{const{defaultedRange:o}=Ze(e),i=(k,A)=>Array.isArray(a[k])?a[k][A]:a[k],s=k=>e.enableSeconds?Array.isArray(a.seconds)?a.seconds[k]:a.seconds:0,l=(k,A)=>k?A!==void 0?la(k,i("hours",A),i("minutes",A),s(A)):la(k,a.hours,a.minutes,s()):Ss(ge(),s(A)),c=(k,A)=>{a[k]=A},m=t.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),u=(k,A)=>{const _=Object.fromEntries(Object.keys(a).map(T=>T===k?[T,A]:[T,a[T]].slice()));if(m.value&&!o.value.disableTimeRangeValidation){const T=S=>n.value?la(n.value[S],_.hours[S],_.minutes[S],_.seconds[S]):null,N=S=>Cs(n.value[S],0);return!(Fe(T(0),T(1))&&(za(T(0),N(1))||mn(T(1),N(0))))}return!0},f=(k,A)=>{u(k,A)&&(c(k,A),r&&r())},d=k=>{f("hours",k)},p=k=>{f("minutes",k)},h=k=>{f("seconds",k)},g=(k,A,_,T)=>{A&&d(k),!A&&!_&&p(k),_&&h(k),n.value&&T(n.value)},b=k=>{if(k){const A=Array.isArray(k),_=A?[+k[0].hours,+k[1].hours]:+k.hours,T=A?[+k[0].minutes,+k[1].minutes]:+k.minutes,N=A?[+k[0].seconds,+k[1].seconds]:+k.seconds;c("hours",_),c("minutes",T),e.enableSeconds&&c("seconds",N)}},v=(k,A)=>{const _={hours:Array.isArray(a.hours)?a.hours[k]:a.hours,disabledArr:[]};return(A||A===0)&&(_.hours=A),Array.isArray(e.disabledTimes)&&(_.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[k])?e.disabledTimes[k]:e.disabledTimes),_},x=t.computed(()=>(k,A)=>{var _;if(Array.isArray(e.disabledTimes)){const{disabledArr:T,hours:N}=v(k,A),S=T.filter(B=>+B.hours===N);return((_=S[0])==null?void 0:_.minutes)==="*"?{hours:[N],minutes:void 0,seconds:void 0}:{hours:[],minutes:(S==null?void 0:S.map(B=>+B.minutes))??[],seconds:(S==null?void 0:S.map(B=>B.seconds?+B.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:d,updateMinutes:p,updateSeconds:h,getSetDateTime:l,updateTimeValues:g,getSecondsValue:s,assignStartTime:b,validateTime:u,disabledTimesConfig:x}},Iu=(e,a)=>{const n=()=>{e.isTextInputDate&&A()},{modelValue:r,time:o}=bn(e,a,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=Ze(e),{updateTimeValues:c,getSetDateTime:m,setTime:u,assignStartTime:f,disabledTimesConfig:d,validateTime:p}=el(e,o,r,h);function h(){a("update-flow-step")}const g=T=>{const{hours:N,minutes:S,seconds:B}=T;return{hours:+N,minutes:+S,seconds:B?+B:0}},b=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const N=g(e.startTime[0]),S=g(e.startTime[1]);return[We(ge(),N),We(ge(),S)]}const T=g(e.startTime);return We(ge(),T)}return s.value.enabled?[null,null]:null},v=()=>{if(s.value.enabled){const[T,N]=b();r.value=[At(m(T,0),l.value.timezone),At(m(N,1),l.value.timezone)]}else r.value=At(m(b()),l.value.timezone)},x=T=>Array.isArray(T)?[Na(ge(T[0])),Na(ge(T[1]))]:[Na(T??ge())],k=(T,N,S)=>{u("hours",T),u("minutes",N),u("seconds",e.enableSeconds?S:0)},A=()=>{const[T,N]=x(r.value);return s.value.enabled?k([T.hours,N.hours],[T.minutes,N.minutes],[T.seconds,N.seconds]):k(T.hours,T.minutes,T.seconds)};t.onMounted(()=>{if(!e.shadow)return f(i.value),r.value?A():v()});const _=()=>{Array.isArray(r.value)?r.value=r.value.map((T,N)=>T&&m(T,N)):r.value=m(r.value),a("time-update")};return{modelValue:r,time:o,disabledTimesConfig:d,updateTime:(T,N=!0,S=!1)=>{c(T,N,S,_)},validateTime:p}},Gu=t.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...Ht},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.useSlots(),s=Vt(i,"timePicker"),l=t.ref(null),{time:c,modelValue:m,disabledTimesConfig:u,updateTime:f,validateTime:d}=Iu(o,r);return t.onMounted(()=>{o.shadow||r("mount",null)}),a({getSidebarProps:()=>({modelValue:m,time:c,updateTime:f}),toggleTimePicker:(p,h=!1,g="")=>{var b;(b=l.value)==null||b.toggleTimePicker(p,h,g)}}),(p,h)=>(t.openBlock(),t.createBlock(Zn,{"multi-calendars":0,stretch:""},{default:t.withCtx(()=>[t.createVNode(Js,t.mergeProps({ref_key:"tpRef",ref:l},p.$props,{hours:t.unref(c).hours,minutes:t.unref(c).minutes,seconds:t.unref(c).seconds,"internal-model-value":p.internalModelValue,"disabled-times-config":t.unref(u),"validate-time":t.unref(d),"onUpdate:hours":h[0]||(h[0]=g=>t.unref(f)(g)),"onUpdate:minutes":h[1]||(h[1]=g=>t.unref(f)(g,!1)),"onUpdate:seconds":h[2]||(h[2]=g=>t.unref(f)(g,!1,!0)),onAmPmChange:h[3]||(h[3]=g=>p.$emit("am-pm-change",g)),onResetFlow:h[4]||(h[4]=g=>p.$emit("reset-flow")),onOverlayClosed:h[5]||(h[5]=g=>p.$emit("overlay-toggle",{open:!1,overlay:g})),onOverlayOpened:h[6]||(h[6]=g=>p.$emit("overlay-toggle",{open:!0,overlay:g}))}),t.createSlots({_:2},[t.renderList(t.unref(s),(g,b)=>({name:g,fn:t.withCtx(v=>[t.renderSlot(p.$slots,g,t.normalizeProps(t.guardReactiveProps(v)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),ju={class:"dp--header-wrap"},qu={key:0,class:"dp__month_year_wrap"},Wu={key:0},Yu={class:"dp__month_year_wrap"},Uu=["data-dp-element","aria-label","data-test","onClick","onKeydown"],Xu=t.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...Ht},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:a,emit:n}){const r=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:m,defaultedHighlight:u,propDates:f,defaultedUI:d}=Ze(o),{transitionName:p,showTransition:h}=kn(i),{buildMatrix:g}=da(),{handleMonthYearChange:b,isDisabled:v,updateMonthYear:x}=yu(o,r),{showLeftIcon:k,showRightIcon:A}=Kn(),_=t.ref(!1),T=t.ref(!1),N=t.ref(!1),S=t.ref([null,null,null,null]);t.onMounted(()=>{r("mount")});const B=W=>({get:()=>o[W],set:M=>{const J=W===$t.month?$t.year:$t.month;r("update-month-year",{[W]:M,[J]:o[J]}),W===$t.month?q(!0):oe(!0)}}),G=t.computed(B($t.month)),P=t.computed(B($t.year)),Q=t.computed(()=>W=>({month:o.month,year:o.year,items:W===$t.month?o.months:o.years,instance:o.instance,updateMonthYear:x,toggle:W===$t.month?q:oe})),U=t.computed(()=>o.months.find(M=>M.value===o.month)||{text:"",value:0}),E=t.computed(()=>qa(o.months,W=>{const M=o.month===W.value,J=hn(W.value,Ls(o.year,f.value.minDate),$s(o.year,f.value.maxDate))||c.value.months.includes(W.value),ce=js(u.value,W.value,o.year);return{active:M,disabled:J,highlighted:ce}})),D=t.computed(()=>qa(o.years,W=>{const M=o.year===W.value,J=hn(W.value,Wa(f.value.minDate),Wa(f.value.maxDate))||c.value.years.includes(W.value),ce=mo(u.value,W.value);return{active:M,disabled:J,highlighted:ce}})),F=(W,M,J)=>{J!==void 0?W.value=J:W.value=!W.value,W.value?(N.value=!0,r("overlay-opened",M)):(N.value=!1,r("overlay-closed",M))},q=(W=!1,M)=>{V(W),F(_,yt.month,M)},oe=(W=!1,M)=>{V(W),F(T,yt.year,M)},V=W=>{W||r("reset-flow")},w=(W,M)=>{o.arrowNavigation&&(S.value[M]=ct(W),g(S.value,"monthYear"))},X=t.computed(()=>{var W,M,J,ce,z,he;return[{type:$t.month,index:1,toggle:q,modelValue:G.value,updateModelValue:ee=>G.value=ee,text:U.value.text,showSelectionGrid:_.value,items:E.value,ariaLabel:(W=s.value)==null?void 0:W.openMonthsOverlay,overlayLabel:((J=(M=s.value).monthPicker)==null?void 0:J.call(M,!0))??void 0},{type:$t.year,index:2,toggle:oe,modelValue:P.value,updateModelValue:ee=>P.value=ee,text:Ps(o.year,o.locale),showSelectionGrid:T.value,items:D.value,ariaLabel:(ce=s.value)==null?void 0:ce.openYearsOverlay,overlayLabel:((he=(z=s.value).yearPicker)==null?void 0:he.call(z,!0))??void 0}]}),K=t.computed(()=>o.disableYearSelect?[X.value[0]]:o.yearFirst?[...X.value].reverse():X.value);return a({toggleMonthPicker:q,toggleYearPicker:oe,handleMonthYearChange:b}),(W,M)=>{var J,ce,z,he,ee,fe;return t.openBlock(),t.createElementBlock("div",ju,[W.$slots["month-year"]?(t.openBlock(),t.createElementBlock("div",qu,[t.renderSlot(W.$slots,"month-year",t.normalizeProps(t.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:t.unref(x),handleMonthYearChange:t.unref(b),instance:e.instance})))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.$slots["top-extra"]?(t.openBlock(),t.createElementBlock("div",Wu,[t.renderSlot(W.$slots,"top-extra",{value:W.internalModelValue})])):t.createCommentVNode("",!0),t.createElementVNode("div",Yu,[t.unref(k)(t.unref(l),e.instance)&&!W.vertical?(t.openBlock(),t.createBlock(yn,{key:0,"aria-label":(J=t.unref(s))==null?void 0:J.prevMonth,disabled:t.unref(v)(!1),class:t.normalizeClass((ce=t.unref(d))==null?void 0:ce.navBtnPrev),"el-name":"action-prev",onActivate:M[0]||(M[0]=L=>t.unref(b)(!1,!0)),onSetRef:M[1]||(M[1]=L=>w(L,0))},{default:t.withCtx(()=>[W.$slots["arrow-left"]?t.renderSlot(W.$slots,"arrow-left",{key:0}):t.createCommentVNode("",!0),W.$slots["arrow-left"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Xr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:W.disableYearSelect}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.value,(L,C)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:L.type},[t.createElementVNode("button",{ref_for:!0,ref:y=>w(y,C+1),type:"button","data-dp-element":`overlay-${L.type}`,class:t.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":N.value}]),"aria-label":`${L.text}-${L.ariaLabel}`,"data-test":`${L.type}-toggle-overlay-${e.instance}`,onClick:L.toggle,onKeydown:y=>t.unref(wt)(y,()=>L.toggle(),!0)},[W.$slots[L.type]?t.renderSlot(W.$slots,L.type,{key:0,text:L.text,value:o[L.type]}):t.createCommentVNode("",!0),W.$slots[L.type]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.text),1)],64))],42,Uu),t.createVNode(t.Transition,{name:t.unref(p)(L.showSelectionGrid),css:t.unref(h)},{default:t.withCtx(()=>[L.showSelectionGrid?(t.openBlock(),t.createBlock(gn,{key:0,items:L.items,"arrow-navigation":W.arrowNavigation,"hide-navigation":W.hideNavigation,"is-last":W.autoApply&&!t.unref(m).keepActionRow,"skip-button-ref":!1,config:W.config,type:L.type,"header-refs":[],"esc-close":W.escClose,"menu-wrap-ref":W.menuWrapRef,"text-input":W.textInput,"aria-labels":W.ariaLabels,"overlay-label":L.overlayLabel,onSelected:L.updateModelValue,onToggle:L.toggle},t.createSlots({"button-icon":t.withCtx(()=>[W.$slots["calendar-icon"]?t.renderSlot(W.$slots,"calendar-icon",{key:0}):t.createCommentVNode("",!0),W.$slots["calendar-icon"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(ja),{key:1}))]),_:2},[W.$slots[`${L.type}-overlay-value`]?{name:"item",fn:t.withCtx(({item:y})=>[t.renderSlot(W.$slots,`${L.type}-overlay-value`,{text:y.text,value:y.value})]),key:"0"}:void 0,W.$slots[`${L.type}-overlay`]?{name:"overlay",fn:t.withCtx(()=>[t.renderSlot(W.$slots,`${L.type}-overlay`,t.mergeProps({ref_for:!0},Q.value(L.type)))]),key:"1"}:void 0,W.$slots[`${L.type}-overlay-header`]?{name:"header",fn:t.withCtx(()=>[t.renderSlot(W.$slots,`${L.type}-overlay-header`,{toggle:L.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):t.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),t.unref(k)(t.unref(l),e.instance)&&W.vertical?(t.openBlock(),t.createBlock(yn,{key:1,"aria-label":(z=t.unref(s))==null?void 0:z.prevMonth,"el-name":"action-prev",disabled:t.unref(v)(!1),class:t.normalizeClass((he=t.unref(d))==null?void 0:he.navBtnPrev),onActivate:M[2]||(M[2]=L=>t.unref(b)(!1,!0))},{default:t.withCtx(()=>[W.$slots["arrow-up"]?t.renderSlot(W.$slots,"arrow-up",{key:0}):t.createCommentVNode("",!0),W.$slots["arrow-up"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Kr),{key:1}))]),_:3},8,["aria-label","disabled","class"])):t.createCommentVNode("",!0),t.unref(A)(t.unref(l),e.instance)?(t.openBlock(),t.createBlock(yn,{key:2,ref:"rightIcon","el-name":"action-next",disabled:t.unref(v)(!0),"aria-label":(ee=t.unref(s))==null?void 0:ee.nextMonth,class:t.normalizeClass((fe=t.unref(d))==null?void 0:fe.navBtnNext),onActivate:M[3]||(M[3]=L=>t.unref(b)(!0,!0)),onSetRef:M[4]||(M[4]=L=>w(L,W.disableYearSelect?2:3))},{default:t.withCtx(()=>[W.$slots[W.vertical?"arrow-down":"arrow-right"]?t.renderSlot(W.$slots,W.vertical?"arrow-down":"arrow-right",{key:0}):t.createCommentVNode("",!0),W.$slots[W.vertical?"arrow-down":"arrow-right"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(W.vertical?t.unref(Jr):t.unref(Zr)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):t.createCommentVNode("",!0)])],64))])}}}),Zu={class:"dp__calendar_header",role:"row"},Qu={key:0,class:"dp__calendar_header_item",role:"gridcell"},Ku=["aria-label"],Ju={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},e4={class:"dp__cell_inner"},t4=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],a4=t.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...Ht},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:a,emit:n}){const r=n,o=e,{buildMultiLevelMatrix:i}=da(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:m,defaultedWeekNumbers:u,defaultedMultiDates:f,defaultedUI:d}=Ze(o),p=t.ref(null),h=t.ref({bottom:"",left:"",transform:""}),g=t.ref([]),b=t.ref(null),v=t.ref(!0),x=t.ref(""),k=t.ref({startX:0,endX:0,startY:0,endY:0}),A=t.ref([]),_=t.ref({left:"50%"}),T=t.ref(!1),N=t.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),S=t.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):R3(o.formatLocale,o.locale,+o.weekStart));t.onMounted(()=>{r("mount",{cmp:"calendar",refs:g}),l.value.noSwipe||b.value&&(b.value.addEventListener("touchstart",w,{passive:!1}),b.value.addEventListener("touchend",X,{passive:!1}),b.value.addEventListener("touchmove",K,{passive:!1})),o.monthChangeOnScroll&&b.value&&b.value.addEventListener("wheel",J,{passive:!1})});const B=L=>L?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",G=(L,C)=>{if(o.transitions){const y=vt(Jt(ge(),o.month,o.year));x.value=it(vt(Jt(ge(),L,C)),y)?s.value[B(!0)]:s.value[B(!1)],v.value=!1,t.nextTick(()=>{v.value=!0})}},P=t.computed(()=>({...d.value.calendar??{}})),Q=t.computed(()=>L=>{const C=z3(L);return{dp__marker_dot:C.type==="dot",dp__marker_line:C.type==="line"}}),U=t.computed(()=>L=>Fe(L,p.value)),E=t.computed(()=>({dp__calendar:!0,dp__calendar_next:m.value.count>0&&o.instance!==0})),D=t.computed(()=>L=>o.hideOffsetDates?L.current:!0),F=async(L,C)=>{const{width:y,height:O}=L.getBoundingClientRect();p.value=C.value;let I={left:`${y/2}px`},H=-50;if(await t.nextTick(),A.value[0]){const{left:te,width:j}=A.value[0].getBoundingClientRect();te<0&&(I={left:"0"},H=0,_.value.left=`${y/2}px`),window.innerWidth<te+j&&(I={right:"0"},H=0,_.value.left=`${j-y/2}px`)}h.value={bottom:`${O}px`,...I,transform:`translateX(${H}%)`}},q=async(L,C,y)=>{var O,I,H;const te=ct(g.value[C][y]);te&&((O=L.marker)!=null&&O.customPosition&&(H=(I=L.marker)==null?void 0:I.tooltip)!=null&&H.length?h.value=L.marker.customPosition(te):await F(te,L),r("tooltip-open",L.marker))},oe=async(L,C,y)=>{var O,I;if(T.value&&f.value.enabled&&f.value.dragSelect)return r("select-date",L);r("set-hover-date",L),(I=(O=L.marker)==null?void 0:O.tooltip)!=null&&I.length&&await q(L,C,y)},V=L=>{p.value&&(p.value=null,h.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",L.marker))},w=L=>{k.value.startX=L.changedTouches[0].screenX,k.value.startY=L.changedTouches[0].screenY},X=L=>{k.value.endX=L.changedTouches[0].screenX,k.value.endY=L.changedTouches[0].screenY,W()},K=L=>{o.vertical&&!o.inline&&L.preventDefault()},W=()=>{const L=o.vertical?"Y":"X";Math.abs(k.value[`start${L}`]-k.value[`end${L}`])>10&&r("handle-swipe",k.value[`start${L}`]>k.value[`end${L}`]?"right":"left")},M=(L,C,y)=>{L&&(Array.isArray(g.value[C])?g.value[C][y]=L:g.value[C]=[L]),o.arrowNavigation&&i(g.value,"calendar")},J=L=>{o.monthChangeOnScroll&&(L.preventDefault(),r("handle-scroll",L))},ce=L=>u.value.type==="local"?Gr(L.value,{weekStartsOn:+o.weekStart}):u.value.type==="iso"?zr(L.value):typeof u.value.type=="function"?u.value.type(L.value):"",z=L=>{const C=L[0];return u.value.hideOnOffsetDates?L.some(y=>y.current)?ce(C):"":ce(C)},he=(L,C,y=!0)=>{y&&Os()||!y&&!Os()||f.value.enabled||(sa(L,l.value),r("select-date",C))},ee=L=>{sa(L,l.value)},fe=L=>{f.value.enabled&&f.value.dragSelect?(T.value=!0,r("select-date",L)):f.value.enabled&&r("select-date",L)};return a({triggerTransition:G}),(L,C)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(E.value)},[t.createElementVNode("div",{ref_key:"calendarWrapRef",ref:b,class:t.normalizeClass(P.value),role:"grid"},[t.createElementVNode("div",Zu,[L.weekNumbers?(t.openBlock(),t.createElementBlock("div",Qu,t.toDisplayString(L.weekNumName),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,(y,O)=>{var I,H;return t.openBlock(),t.createElementBlock("div",{key:O,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(H=(I=t.unref(c))==null?void 0:I.weekDay)==null?void 0:H.call(I,O)},[L.$slots["calendar-header"]?t.renderSlot(L.$slots,"calendar-header",{key:0,day:y,index:O}):t.createCommentVNode("",!0),L.$slots["calendar-header"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y),1)],64))],8,Ku)}),128))]),C[2]||(C[2]=t.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),t.createVNode(t.Transition,{name:x.value,css:!!L.transitions},{default:t.withCtx(()=>[v.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:C[1]||(C[1]=y=>T.value=!1)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(y,O)=>(t.openBlock(),t.createElementBlock("div",{key:O,class:"dp__calendar_row",role:"row"},[L.weekNumbers?(t.openBlock(),t.createElementBlock("div",Ju,[t.createElementVNode("div",e4,t.toDisplayString(z(y.days)),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.days,(I,H)=>{var te,j,ne;return t.openBlock(),t.createElementBlock("div",{id:t.unref(qs)(I.value),ref_for:!0,ref:ue=>M(ue,O,H),key:H+O,role:"gridcell",class:"dp__calendar_item","aria-pressed":(I.classData.dp__active_date||I.classData.dp__range_start||I.classData.dp__range_start)??void 0,"aria-disabled":I.classData.dp__cell_disabled||void 0,"aria-label":(j=(te=t.unref(c))==null?void 0:te.day)==null?void 0:j.call(te,I),tabindex:!I.current&&L.hideOffsetDates?void 0:0,"data-test":I.value,onClick:t.withModifiers(ue=>he(ue,I),["prevent"]),onTouchend:ue=>he(ue,I,!1),onKeydown:ue=>t.unref(wt)(ue,()=>L.$emit("select-date",I)),onMouseenter:ue=>oe(I,O,H),onMouseleave:ue=>V(I),onMousedown:ue=>fe(I),onMouseup:C[0]||(C[0]=ue=>T.value=!1)},[t.createElementVNode("div",{class:t.normalizeClass(["dp__cell_inner",I.classData])},[L.$slots.day&&D.value(I)?t.renderSlot(L.$slots,"day",{key:0,day:+I.text,date:I.value}):t.createCommentVNode("",!0),L.$slots.day?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(I.text),1)],64)),I.marker&&D.value(I)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[L.$slots.marker?t.renderSlot(L.$slots,"marker",{key:0,marker:I.marker,day:+I.text,date:I.value}):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(Q.value(I.marker)),style:t.normalizeStyle(I.marker.color?{backgroundColor:I.marker.color}:{})},null,6))],64)):t.createCommentVNode("",!0),U.value(I.value)?(t.openBlock(),t.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:A,class:"dp__marker_tooltip",style:t.normalizeStyle(h.value)},[(ne=I.marker)!=null&&ne.tooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:ee},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.marker.tooltip,(ue,ye)=>(t.openBlock(),t.createElementBlock("div",{key:ye,class:"dp__tooltip_text"},[L.$slots["marker-tooltip"]?t.renderSlot(L.$slots,"marker-tooltip",{key:0,tooltip:ue,day:I.value}):t.createCommentVNode("",!0),L.$slots["marker-tooltip"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:"dp__tooltip_mark",style:t.normalizeStyle(ue.color?{backgroundColor:ue.color}:{})},null,4),t.createElementVNode("div",null,t.toDisplayString(ue.text),1)],64))]))),128)),t.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:t.normalizeStyle(_.value)},null,4)])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)],2)],40,t4)}),128))]))),128))],32)):t.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),tl=e=>Array.isArray(e),n4=(e,a,n,r)=>{const o=t.ref([]),i=t.ref(new Date),s=t.ref(),l=()=>w(e.isTextInputDate),{modelValue:c,calendars:m,time:u,today:f}=bn(e,a,l),{defaultedMultiCalendars:d,defaultedStartTime:p,defaultedRange:h,defaultedConfig:g,defaultedTz:b,propDates:v,defaultedMultiDates:x}=Ze(e),{validateMonthYearInRange:k,isDisabled:A,isDateRangeAllowed:_,checkMinMaxRange:T}=fa(e),{updateTimeValues:N,getSetDateTime:S,setTime:B,assignStartTime:G,validateTime:P,disabledTimesConfig:Q}=el(e,u,c,r),U=t.computed(()=>Y=>m.value[Y]?m.value[Y].month:0),E=t.computed(()=>Y=>m.value[Y]?m.value[Y].year:0),D=Y=>!g.value.keepViewOnOffsetClick||Y?!0:!s.value,F=(Y,R,$,ae=!1)=>{var le,xe;D(ae)&&(m.value[Y]||(m.value[Y]={month:0,year:0}),m.value[Y].month=Ds(R)?(le=m.value[Y])==null?void 0:le.month:R,m.value[Y].year=Ds($)?(xe=m.value[Y])==null?void 0:xe.year:$)},q=()=>{e.autoApply&&a("select-date")};t.onMounted(()=>{e.shadow||(c.value||(L(),p.value&&G(p.value)),w(!0),e.focusStartDate&&e.startDate&&L())});const oe=t.computed(()=>{var Y;return(Y=e.flow)!=null&&Y.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),V=()=>{e.autoApply&&oe.value&&a("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},w=(Y=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,z(Y)):W(c.value,Y);if(d.value.count&&Y&&!e.startDate)return K(ge(),Y)},X=()=>Array.isArray(c.value)&&h.value.enabled?Oe(c.value[0])===Oe(c.value[1]??c.value[0]):!1,K=(Y=new Date,R=!1)=>{if((!d.value.count||!d.value.static||R)&&F(0,Oe(Y),Ve(Y)),d.value.count&&(!d.value.solo||!c.value||X()))for(let $=1;$<d.value.count;$++){const ae=We(ge(),{month:U.value($-1),year:E.value($-1)}),le=Qi(ae,{months:1});m.value[$]={month:Oe(le),year:Ve(le)}}},W=(Y,R)=>{K(Y),B("hours",Qt(Y)),B("minutes",ia(Y)),B("seconds",Ha(Y)),d.value.count&&R&&fe()},M=Y=>{if(d.value.count){if(d.value.solo)return 0;const R=Oe(Y[0]),$=Oe(Y[1]);return Math.abs($-R)<d.value.count?0:1}return 1},J=(Y,R)=>{Y[1]&&h.value.showLastInRange?K(Y[M(Y)],R):K(Y[0],R);const $=(ae,le)=>[ae(Y[0]),Y[1]?ae(Y[1]):u[le][1]];B("hours",$(Qt,"hours")),B("minutes",$(ia,"minutes")),B("seconds",$(Ha,"seconds"))},ce=(Y,R)=>{if((h.value.enabled||e.weekPicker)&&!x.value.enabled)return J(Y,R);if(x.value.enabled&&R){const $=Y[Y.length-1];return W($,R)}},z=Y=>{const R=c.value;ce(R,Y),d.value.count&&d.value.solo&&fe()},he=(Y,R)=>{const $=We(ge(),{month:U.value(R),year:E.value(R)}),ae=Y<0?Ft($,1):Ga($,1);k(Oe(ae),Ve(ae),Y<0,e.preventMinMaxNavigation)&&(F(R,Oe(ae),Ve(ae)),a("update-month-year",{instance:R,month:Oe(ae),year:Ve(ae)}),d.value.count&&!d.value.solo&&ee(R),n())},ee=Y=>{for(let R=Y-1;R>=0;R--){const $=Ga(We(ge(),{month:U.value(R+1),year:E.value(R+1)}),1);F(R,Oe($),Ve($))}for(let R=Y+1;R<=d.value.count-1;R++){const $=Ft(We(ge(),{month:U.value(R-1),year:E.value(R-1)}),1);F(R,Oe($),Ve($))}},fe=()=>{if(Array.isArray(c.value)&&c.value.length===2){const Y=ge(ge(c.value[1]?c.value[1]:Ft(c.value[0],1))),[R,$]=[Oe(c.value[0]),Ve(c.value[0])],[ae,le]=[Oe(c.value[1]),Ve(c.value[1])];(R!==ae||R===ae&&$!==le)&&d.value.solo&&F(1,Oe(Y),Ve(Y))}else c.value&&!Array.isArray(c.value)&&(F(0,Oe(c.value),Ve(c.value)),K(ge()))},L=()=>{e.startDate&&(F(0,Oe(ge(e.startDate)),Ve(ge(e.startDate))),d.value.count&&ee(0))},C=(Y,R)=>{if(e.monthChangeOnScroll){const $=new Date().getTime()-i.value.getTime(),ae=Math.abs(Y.deltaY);let le=500;ae>1&&(le=100),ae>100&&(le=0),$>le&&(i.value=new Date,he(e.monthChangeOnScroll!=="inverse"?-Y.deltaY:Y.deltaY,R))}},y=(Y,R,$=!1)=>{e.monthChangeOnArrows&&e.vertical===$&&O(Y,R)},O=(Y,R)=>{he(Y==="right"?-1:1,R)},I=Y=>{if(v.value.markers)return qn(Y.value,v.value.markers)},H=(Y,R)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[Y==0,!0];case"fair":return[Y==0||R>Y,!0];case"append":return[!1,!1];default:return[!1,!1]}},te=(Y,R,$,ae)=>{if(e.sixWeeks&&Y.length<6){const le=6-Y.length,xe=(R.getDay()+7-ae)%7,Ae=6-($.getDay()+7-ae)%7,[De,Pe]=H(xe,Ae);for(let qe=1;qe<=le;qe++)if(Pe?!!(qe%2)==De:De){const nt=Y[0].days[0],bt=j(Ot(nt.value,-7),Oe(R));Y.unshift({days:bt})}else{const nt=Y[Y.length-1],bt=nt.days[nt.days.length-1],lt=j(Ot(bt.value,1),Oe(R));Y.push({days:lt})}}return Y},j=(Y,R)=>{const $=ge(Y),ae=[];for(let le=0;le<7;le++){const xe=Ot($,le),Ae=Oe(xe)!==R;ae.push({text:e.hideOffsetDates&&Ae?"":xe.getDate(),value:xe,current:!Ae,classData:{}})}return ae},ne=(Y,R)=>{const $=[],ae=new Date(R,Y),le=new Date(R,Y+1,0),xe=e.weekStart,Ae=Lt(ae,{weekStartsOn:xe}),De=Pe=>{const qe=j(Pe,Y);if($.push({days:qe}),!$[$.length-1].days.some(nt=>Fe(vt(nt.value),vt(le)))){const nt=Ot(Pe,7);De(nt)}};return De(Ae),te($,ae,le,xe)},ue=Y=>{const R=la(ge(Y.value),u.hours,u.minutes,Se());a("date-update",R),x.value.enabled?bo(R,c,x.value.limit):c.value=R,r(),t.nextTick().then(()=>{V()})},ye=Y=>h.value.noDisabledRange?Rs(o.value[0],Y).some(R=>A(R)):!1,be=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(h.value.fixedStart||h.value.fixedEnd)&&(o.value=[])},me=(Y,R)=>{const $=[ge(Y.value),Ot(ge(Y.value),+h.value.autoRange)];_($)?(R&&Me(Y.value),o.value=$):a("invalid-date",Y.value)},Me=Y=>{const R=Oe(ge(Y)),$=Ve(ge(Y));if(F(0,R,$),d.value.count>0)for(let ae=1;ae<d.value.count;ae++){const le=U3(We(ge(Y),{year:E.value(ae-1),month:U.value(ae-1)}));F(ae,le.month,le.year)}},_e=Y=>{if(ye(Y.value)||!T(Y.value,c.value,h.value.fixedStart?0:1))return a("invalid-date",Y.value);o.value=Qs(ge(Y.value),c,a,h)},Ne=(Y,R)=>{if(be(),h.value.autoRange)return me(Y,R);if(h.value.fixedStart||h.value.fixedEnd)return _e(Y);o.value[0]?T(ge(Y.value),c.value)&&!ye(Y.value)?tt(ge(Y.value),ge(o.value[0]))?(o.value.unshift(ge(Y.value)),a("range-end",o.value[0])):(o.value[1]=ge(Y.value),a("range-end",o.value[1])):(e.autoApply&&a("auto-apply-invalid",Y.value),a("invalid-date",Y.value)):(o.value[0]=ge(Y.value),a("range-start",o.value[0]))},Se=(Y=!0)=>e.enableSeconds?Array.isArray(u.seconds)?Y?u.seconds[0]:u.seconds[1]:u.seconds:0,Le=Y=>{o.value[Y]=la(o.value[Y],u.hours[Y],u.minutes[Y],Se(Y!==1))},Be=()=>{var Y,R;o.value[0]&&o.value[1]&&+((Y=o.value)==null?void 0:Y[0])>+((R=o.value)==null?void 0:R[1])&&(o.value.reverse(),a("range-start",o.value[0]),a("range-end",o.value[1]))},Z=()=>{o.value.length&&(o.value[0]&&!o.value[1]?Le(0):(Le(0),Le(1),r()),Be(),c.value=o.value.slice(),Qn(o.value,a,e.autoApply,e.modelAuto))},re=(Y,R=!1)=>{if(A(Y.value)||!Y.current&&e.hideOffsetDates)return a("invalid-date",Y.value);if(s.value=JSON.parse(JSON.stringify(Y)),!h.value.enabled)return ue(Y);tl(u.hours)&&tl(u.minutes)&&!x.value.enabled&&(Ne(Y,R),Z())},ie=(Y,R)=>{var $;F(Y,R.month,R.year,!0),d.value.count&&!d.value.solo&&ee(Y),a("update-month-year",{instance:Y,month:R.month,year:R.year}),n(d.value.solo?Y:void 0);const ae=($=e.flow)!=null&&$.length?e.flow[e.flowStep]:void 0;!R.fromNav&&(ae===yt.month||ae===yt.year)&&r()},de=(Y,R)=>{Zs({value:Y,modelValue:c,range:h.value.enabled,timezone:R?void 0:b.value.timezone}),q(),e.multiCalendars&&t.nextTick().then(()=>w(!0))},Ee=()=>{const Y=eo(ge(),b.value);h.value.enabled?c.value&&Array.isArray(c.value)&&c.value[0]?c.value=tt(Y,c.value[0])?[Y,c.value[0]]:[c.value[0],Y]:c.value=[Y]:c.value=Y,q()},pe=()=>{if(Array.isArray(c.value))if(x.value.enabled){const Y=ke();c.value[c.value.length-1]=S(Y)}else c.value=c.value.map((Y,R)=>Y&&S(Y,R));else c.value=S(c.value);a("time-update")},ke=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:m,modelValue:c,month:U,year:E,time:u,disabledTimesConfig:Q,today:f,validateTime:P,getCalendarDays:ne,getMarker:I,handleScroll:C,handleSwipe:O,handleArrow:y,selectDate:re,updateMonthYear:ie,presetDate:de,selectCurrentDate:Ee,updateTime:(Y,R=!0,$=!1)=>{N(Y,R,$,pe)},assignMonthAndYear:K}},r4={key:0},o4=t.defineComponent({__name:"DatePicker",props:{...Ht},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:m,disabledTimesConfig:u,today:f,validateTime:d,getCalendarDays:p,getMarker:h,handleArrow:g,handleScroll:b,handleSwipe:v,selectDate:x,updateMonthYear:k,presetDate:A,selectCurrentDate:_,updateTime:T,assignMonthAndYear:N}=n4(o,r,X,K),S=t.useSlots(),{setHoverDate:B,getDayClassData:G,clearHoverDate:P}=x4(c,o),{defaultedMultiCalendars:Q}=Ze(o),U=t.ref([]),E=t.ref([]),D=t.ref(null),F=Vt(S,"calendar"),q=Vt(S,"monthYear"),oe=Vt(S,"timePicker"),V=C=>{o.shadow||r("mount",C)};t.watch(i,()=>{o.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),t.watch(Q,(C,y)=>{C.count-y.count>0&&N()},{deep:!0});const w=t.computed(()=>C=>p(s.value(C),l.value(C)).map(y=>({...y,days:y.days.map(O=>(O.marker=h(O),O.classData=G(O),O))})));function X(C){var y;C||C===0?(y=E.value[C])==null||y.triggerTransition(s.value(C),l.value(C)):E.value.forEach((O,I)=>O.triggerTransition(s.value(I),l.value(I)))}function K(){r("update-flow-step")}const W=(C,y=!1)=>{x(C,y),o.spaceConfirm&&r("select-date")},M=(C,y,O=0)=>{var I;(I=U.value[O])==null||I.toggleMonthPicker(C,y)},J=(C,y,O=0)=>{var I;(I=U.value[O])==null||I.toggleYearPicker(C,y)},ce=(C,y,O)=>{var I;(I=D.value)==null||I.toggleTimePicker(C,y,O)},z=(C,y)=>{var O;if(!o.range){const I=c.value?c.value:f,H=y?new Date(y):I,te=C?Lt(H,{weekStartsOn:1}):ls(H,{weekStartsOn:1});x({value:te,current:Oe(H)===s.value(0),text:"",classData:{}}),(O=document.getElementById(qs(te)))==null||O.focus()}},he=C=>{var y;(y=U.value[0])==null||y.handleMonthYearChange(C,!0)},ee=C=>{k(0,{month:s.value(0),year:l.value(0)+(C?1:-1),fromNav:!0})},fe=(C,y)=>{C===yt.time&&r(`time-picker-${y?"open":"close"}`),r("overlay-toggle",{open:y,overlay:C})},L=C=>{r("overlay-toggle",{open:!1,overlay:C}),r("focus-menu")};return a({clearHoverDate:P,presetDate:A,selectCurrentDate:_,toggleMonthPicker:M,toggleYearPicker:J,toggleTimePicker:ce,handleArrow:g,updateMonthYear:k,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:m,updateTime:T,updateMonthYear:k,selectDate:x,presetDate:A}),changeMonth:he,changeYear:ee,selectWeekDate:z}),(C,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Zn,{"multi-calendars":t.unref(Q).count,collapse:C.collapse},{default:t.withCtx(({instance:O,index:I})=>[C.disableMonthYearSelect?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xu,t.mergeProps({key:0,ref:H=>{H&&(U.value[I]=H)},months:t.unref(Vs)(C.formatLocale,C.locale,C.monthNameFormat),years:t.unref(ao)(C.yearRange,C.locale,C.reverseYears),month:t.unref(s)(O),year:t.unref(l)(O),instance:O},C.$props,{onMount:y[0]||(y[0]=H=>V(t.unref(_a).header)),onResetFlow:y[1]||(y[1]=H=>C.$emit("reset-flow")),onUpdateMonthYear:H=>t.unref(k)(O,H),onOverlayClosed:L,onOverlayOpened:y[2]||(y[2]=H=>C.$emit("overlay-toggle",{open:!0,overlay:H}))}),t.createSlots({_:2},[t.renderList(t.unref(q),(H,te)=>({name:H,fn:t.withCtx(j=>[t.renderSlot(C.$slots,H,t.normalizeProps(t.guardReactiveProps(j)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),t.createVNode(a4,t.mergeProps({ref:H=>{H&&(E.value[I]=H)},"mapped-dates":w.value(O),month:t.unref(s)(O),year:t.unref(l)(O),instance:O},C.$props,{onSelectDate:H=>t.unref(x)(H,O!==1),onHandleSpace:H=>W(H,O!==1),onSetHoverDate:y[3]||(y[3]=H=>t.unref(B)(H)),onHandleScroll:H=>t.unref(b)(H,O),onHandleSwipe:H=>t.unref(v)(H,O),onMount:y[4]||(y[4]=H=>V(t.unref(_a).calendar)),onResetFlow:y[5]||(y[5]=H=>C.$emit("reset-flow")),onTooltipOpen:y[6]||(y[6]=H=>C.$emit("tooltip-open",H)),onTooltipClose:y[7]||(y[7]=H=>C.$emit("tooltip-close",H))}),t.createSlots({_:2},[t.renderList(t.unref(F),(H,te)=>({name:H,fn:t.withCtx(j=>[t.renderSlot(C.$slots,H,t.normalizeProps(t.guardReactiveProps({...j})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),C.enableTimePicker?(t.openBlock(),t.createElementBlock("div",r4,[C.$slots["time-picker"]?t.renderSlot(C.$slots,"time-picker",t.normalizeProps(t.mergeProps({key:0},{time:t.unref(m),updateTime:t.unref(T)}))):(t.openBlock(),t.createBlock(Js,t.mergeProps({key:1,ref_key:"timePickerRef",ref:D},C.$props,{hours:t.unref(m).hours,minutes:t.unref(m).minutes,seconds:t.unref(m).seconds,"internal-model-value":C.internalModelValue,"disabled-times-config":t.unref(u),"validate-time":t.unref(d),onMount:y[8]||(y[8]=O=>V(t.unref(_a).timePicker)),"onUpdate:hours":y[9]||(y[9]=O=>t.unref(T)(O)),"onUpdate:minutes":y[10]||(y[10]=O=>t.unref(T)(O,!1)),"onUpdate:seconds":y[11]||(y[11]=O=>t.unref(T)(O,!1,!0)),onResetFlow:y[12]||(y[12]=O=>C.$emit("reset-flow")),onOverlayClosed:y[13]||(y[13]=O=>fe(O,!1)),onOverlayOpened:y[14]||(y[14]=O=>fe(O,!0)),onAmPmChange:y[15]||(y[15]=O=>C.$emit("am-pm-change",O))}),t.createSlots({_:2},[t.renderList(t.unref(oe),(O,I)=>({name:O,fn:t.withCtx(H=>[t.renderSlot(C.$slots,O,t.normalizeProps(t.guardReactiveProps(H)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):t.createCommentVNode("",!0)],64))}}),i4=(e,a)=>{const n=t.ref(),{defaultedMultiCalendars:r,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:m}=Ze(e),{modelValue:u,year:f,month:d,calendars:p}=bn(e,a),{isDisabled:h}=fa(e),{selectYear:g,groupedYears:b,showYearPicker:v,isDisabled:x,toggleYearPicker:k,handleYearSelect:A,handleYear:_}=Ks({modelValue:u,multiCalendars:r,range:s,highlight:i,calendars:p,propDates:l,month:d,year:f,filters:c,props:e,emit:a}),T=(D,F)=>[D,F].map(q=>jt(q,"MMMM",{locale:e.formatLocale})).join("-"),N=t.computed(()=>D=>u.value?Array.isArray(u.value)?u.value.some(F=>vs(D,F)):vs(u.value,D):!1),S=D=>{if(s.value.enabled){if(Array.isArray(u.value)){const F=Fe(D,u.value[0])||Fe(D,u.value[1]);return Wn(u.value,n.value,D)&&!F}return!1}return!1},B=(D,F)=>D.quarter===os(F)&&D.year===Ve(F),G=D=>typeof i.value=="function"?i.value({quarter:os(D),year:Ve(D)}):!!i.value.quarters.find(F=>B(F,D)),P=t.computed(()=>D=>{const F=We(new Date,{year:f.value(D)});return I2({start:dn(F),end:ss(F)}).map(q=>{const oe=Ba(q),V=cs(q),w=h(q),X=S(oe),K=G(oe);return{text:T(oe,V),value:oe,active:N.value(oe),highlighted:K,disabled:w,isBetween:X}})}),Q=D=>{bo(D,u,m.value.limit),a("auto-apply",!0)},U=D=>{u.value=xo(u,D,a),Qn(u.value,a,e.autoApply,e.modelAuto)},E=D=>{u.value=D,a("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:r,groupedYears:b,year:f,isDisabled:x,quarters:P,showYearPicker:v,modelValue:u,setHoverDate:D=>{n.value=D},selectYear:g,selectQuarter:(D,F,q)=>{if(!q)return p.value[F].month=Oe(cs(D)),m.value.enabled?Q(D):s.value.enabled?U(D):E(D)},toggleYearPicker:k,handleYearSelect:A,handleYear:_}},s4={class:"dp--quarter-items"},l4=["data-test","disabled","onClick","onMouseover"],c4=t.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...Ht},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.useSlots(),s=Vt(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:m,year:u,isDisabled:f,quarters:d,modelValue:p,showYearPicker:h,setHoverDate:g,selectQuarter:b,toggleYearPicker:v,handleYearSelect:x,handleYear:k}=i4(o,r);return a({getSidebarProps:()=>({modelValue:p,year:u,selectQuarter:b,handleYearSelect:x,handleYear:k})}),(A,_)=>(t.openBlock(),t.createBlock(Zn,{"multi-calendars":t.unref(l).count,collapse:A.collapse,stretch:""},{default:t.withCtx(({instance:T})=>[t.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:t.normalizeStyle({minHeight:`${t.unref(c).modeHeight}px`})},[A.$slots["top-extra"]?t.renderSlot(A.$slots,"top-extra",{key:0,value:A.internalModelValue}):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createVNode(Xs,t.mergeProps(A.$props,{items:t.unref(m)(T),instance:T,"show-year-picker":t.unref(h)[T],year:t.unref(u)(T),"is-disabled":N=>t.unref(f)(T,N),onHandleYear:N=>t.unref(k)(T,N),onYearSelect:N=>t.unref(x)(N,T),onToggleYearPicker:N=>t.unref(v)(T,N==null?void 0:N.flow,N==null?void 0:N.show)}),t.createSlots({_:2},[t.renderList(t.unref(s),(N,S)=>({name:N,fn:t.withCtx(B=>[t.renderSlot(A.$slots,N,t.normalizeProps(t.guardReactiveProps(B)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),t.createElementVNode("div",s4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d)(T),(N,S)=>(t.openBlock(),t.createElementBlock("div",{key:S},[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":N.active,"dp--qr-btn-between":N.isBetween,"dp--qr-btn-disabled":N.disabled,"dp--highlighted":N.highlighted}]),"data-test":N.value,disabled:N.disabled,onClick:B=>t.unref(b)(N.value,T,N.disabled),onMouseover:B=>t.unref(g)(N.value)},[A.$slots.quarter?t.renderSlot(A.$slots,"quarter",{key:0,value:N.value,text:N.text}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(N.text),1)],64))],42,l4)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),d4=["id","tabindex","role","aria-label"],u4={key:0,class:"dp--menu-load-container"},f4={key:1,class:"dp--menu-header"},m4={key:0,class:"dp__sidebar_left"},h4=["data-test","onClick","onKeydown"],p4={key:2,class:"dp__sidebar_right"},g4={key:3,class:"dp__action_extra"},al=t.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Xn,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.ref(null),s=t.computed(()=>{const{openOnTop:j,...ne}=o;return{...ne,flowStep:B.value,collapse:o.collapse,noOverlayFocus:o.noOverlayFocus,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:m}=Ws(),u=t.useSlots(),{defaultedTextInput:f,defaultedInline:d,defaultedConfig:p,defaultedUI:h}=Ze(o),g=t.ref(null),b=t.ref(0),v=t.ref(null),x=t.ref(!1),k=t.ref(null);t.onMounted(()=>{if(!o.shadow){x.value=!0,A(),window.addEventListener("resize",A);const j=ct(i);if(j&&!f.value.enabled&&!d.value.enabled&&(l(!0),F()),j){const ne=ue=>{p.value.allowPreventDefault&&ue.preventDefault(),sa(ue,p.value,!0)};j.addEventListener("pointerdown",ne),j.addEventListener("mousedown",ne)}}}),t.onUnmounted(()=>{window.removeEventListener("resize",A)});const A=()=>{const j=ct(v);j&&(b.value=j.getBoundingClientRect().width)},{arrowRight:_,arrowLeft:T,arrowDown:N,arrowUp:S}=da(),{flowStep:B,updateFlowStep:G,childMount:P,resetFlow:Q,handleFlow:U}=w4(o,r,k),E=t.computed(()=>o.monthPicker?Au:o.yearPicker?_u:o.timePicker?Gu:o.quarterPicker?c4:o4),D=t.computed(()=>{var j;if(p.value.arrowLeft)return p.value.arrowLeft;const ne=(j=i.value)==null?void 0:j.getBoundingClientRect(),ue=o.getInputRect();return(ue==null?void 0:ue.width)<(b==null?void 0:b.value)&&(ue==null?void 0:ue.left)<=((ne==null?void 0:ne.left)??0)?`${(ue==null?void 0:ue.width)/2}px`:(ue==null?void 0:ue.right)>=((ne==null?void 0:ne.right)??0)&&(ue==null?void 0:ue.width)<(b==null?void 0:b.value)?`${(b==null?void 0:b.value)-(ue==null?void 0:ue.width)/2}px`:"50%"}),F=()=>{const j=ct(i);j&&j.focus({preventScroll:!0})},q=t.computed(()=>{var j;return((j=k.value)==null?void 0:j.getSidebarProps())||{}}),oe=()=>{o.openOnTop&&r("recalculate-position")},V=Vt(u,"action"),w=t.computed(()=>o.monthPicker||o.yearPicker?Vt(u,"monthYear"):o.timePicker?Vt(u,"timePicker"):Vt(u,"shared")),X=t.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),K=t.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),W=t.computed(()=>({dp__menu:!0,dp__menu_index:!d.value.enabled,dp__relative:d.value.enabled,...h.value.menu??{}})),M=j=>{sa(j,p.value,!0)},J=()=>{o.escClose&&r("close-picker")},ce=j=>{if(o.arrowNavigation){if(j===xt.up)return S();if(j===xt.down)return N();if(j===xt.left)return T();if(j===xt.right)return _()}else j===xt.left||j===xt.up?L("handleArrow",xt.left,0,j===xt.up):L("handleArrow",xt.right,0,j===xt.down)},z=j=>{c(j.shiftKey),!o.disableMonthYearSelect&&j.code===Ue.tab&&j.target.classList.contains("dp__menu")&&m.value.shiftKeyInMenu&&(j.preventDefault(),sa(j,p.value,!0),r("close-picker"))},he=()=>{F(),r("time-picker-close")},ee=j=>{var ne,ue,ye;(ne=k.value)==null||ne.toggleTimePicker(!1,!1),(ue=k.value)==null||ue.toggleMonthPicker(!1,!1,j),(ye=k.value)==null||ye.toggleYearPicker(!1,!1,j)},fe=(j,ne=0)=>{var ue,ye,be;return j==="month"?(ue=k.value)==null?void 0:ue.toggleMonthPicker(!1,!0,ne):j==="year"?(ye=k.value)==null?void 0:ye.toggleYearPicker(!1,!0,ne):j==="time"?(be=k.value)==null?void 0:be.toggleTimePicker(!0,!1):ee(ne)},L=(j,...ne)=>{var ue,ye;(ue=k.value)!=null&&ue[j]&&((ye=k.value)==null||ye[j](...ne))},C=()=>{L("selectCurrentDate")},y=(j,ne)=>{L("presetDate",j,ne)},O=()=>{L("clearHoverDate")},I=(j,ne)=>{L("updateMonthYear",j,ne)},H=(j,ne)=>{j.preventDefault(),ce(ne)},te=j=>{var ne,ue,ye;if(z(j),j.key===Ue.home||j.key===Ue.end)return L("selectWeekDate",j.key===Ue.home,j.target.getAttribute("id"));switch((j.key===Ue.pageUp||j.key===Ue.pageDown)&&(j.shiftKey?(L("changeYear",j.key===Ue.pageUp),(ne=ro(i.value,"overlay-year"))==null||ne.focus()):(L("changeMonth",j.key===Ue.pageUp),(ue=ro(i.value,j.key===Ue.pageUp?"action-prev":"action-next"))==null||ue.focus()),j.target.getAttribute("id")&&((ye=i.value)==null||ye.focus({preventScroll:!0}))),j.key){case Ue.esc:return J();case Ue.arrowLeft:return H(j,xt.left);case Ue.arrowRight:return H(j,xt.right);case Ue.arrowUp:return H(j,xt.up);case Ue.arrowDown:return H(j,xt.down);default:return}};return a({updateMonthYear:I,switchView:fe,handleFlow:U}),(j,ne)=>{var ue,ye,be;return t.openBlock(),t.createElementBlock("div",{id:j.uid?`dp-menu-${j.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:t.unref(d).enabled?void 0:"0",role:t.unref(d).enabled?void 0:"dialog","aria-label":(ue=j.ariaLabels)==null?void 0:ue.menu,class:t.normalizeClass(W.value),style:t.normalizeStyle({"--dp-arrow-left":D.value}),onMouseleave:O,onClick:M,onKeydown:te},[(j.disabled||j.readonly)&&t.unref(d).enabled||j.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.value)},[j.loading?(t.openBlock(),t.createElementBlock("div",u4,ne[19]||(ne[19]=[t.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),j.$slots["menu-header"]?(t.openBlock(),t.createElementBlock("div",f4,[t.renderSlot(j.$slots,"menu-header")])):t.createCommentVNode("",!0),!t.unref(d).enabled&&!j.teleportCenter?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(X.value)},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"innerMenuRef",ref:v,class:t.normalizeClass({dp__menu_content_wrapper:((ye=j.presetDates)==null?void 0:ye.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((be=j.presetDates)==null?void 0:be.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"])}),style:t.normalizeStyle({"--dp-menu-width":`${b.value}px`})},[j.$slots["left-sidebar"]?(t.openBlock(),t.createElementBlock("div",m4,[t.renderSlot(j.$slots,"left-sidebar",t.normalizeProps(t.guardReactiveProps(q.value)))])):t.createCommentVNode("",!0),j.presetDates.length?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(j.presetDates,(me,Me)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Me},[me.slot?t.renderSlot(j.$slots,me.slot,{key:0,presetDate:y,label:me.label,value:me.value}):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",style:t.normalizeStyle(me.style||{}),class:t.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":me.testId??void 0,onClick:t.withModifiers(_e=>y(me.value,me.noTz),["prevent"]),onKeydown:_e=>t.unref(wt)(_e,()=>y(me.value,me.noTz),!0)},t.toDisplayString(me.label),47,h4))],64))),128))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:g,class:"dp__instance_calendar",role:"document"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E.value),t.mergeProps({ref_key:"dynCmpRef",ref:k},s.value,{"flow-step":t.unref(B),onMount:t.unref(P),onUpdateFlowStep:t.unref(G),onResetFlow:t.unref(Q),onFocusMenu:F,onSelectDate:ne[0]||(ne[0]=me=>j.$emit("select-date")),onDateUpdate:ne[1]||(ne[1]=me=>j.$emit("date-update",me)),onTooltipOpen:ne[2]||(ne[2]=me=>j.$emit("tooltip-open",me)),onTooltipClose:ne[3]||(ne[3]=me=>j.$emit("tooltip-close",me)),onAutoApply:ne[4]||(ne[4]=me=>j.$emit("auto-apply",me)),onRangeStart:ne[5]||(ne[5]=me=>j.$emit("range-start",me)),onRangeEnd:ne[6]||(ne[6]=me=>j.$emit("range-end",me)),onInvalidFixedRange:ne[7]||(ne[7]=me=>j.$emit("invalid-fixed-range",me)),onTimeUpdate:ne[8]||(ne[8]=me=>j.$emit("time-update")),onAmPmChange:ne[9]||(ne[9]=me=>j.$emit("am-pm-change",me)),onTimePickerOpen:ne[10]||(ne[10]=me=>j.$emit("time-picker-open",me)),onTimePickerClose:he,onRecalculatePosition:oe,onUpdateMonthYear:ne[11]||(ne[11]=me=>j.$emit("update-month-year",me)),onAutoApplyInvalid:ne[12]||(ne[12]=me=>j.$emit("auto-apply-invalid",me)),onInvalidDate:ne[13]||(ne[13]=me=>j.$emit("invalid-date",me)),onOverlayToggle:ne[14]||(ne[14]=me=>j.$emit("overlay-toggle",me)),"onUpdate:internalModelValue":ne[15]||(ne[15]=me=>j.$emit("update:internal-model-value",me))}),t.createSlots({_:2},[t.renderList(w.value,(me,Me)=>({name:me,fn:t.withCtx(_e=>[t.renderSlot(j.$slots,me,t.normalizeProps(t.guardReactiveProps({..._e})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),j.$slots["right-sidebar"]?(t.openBlock(),t.createElementBlock("div",p4,[t.renderSlot(j.$slots,"right-sidebar",t.normalizeProps(t.guardReactiveProps(q.value)))])):t.createCommentVNode("",!0),j.$slots["action-extra"]?(t.openBlock(),t.createElementBlock("div",g4,[j.$slots["action-extra"]?t.renderSlot(j.$slots,"action-extra",{key:0,selectCurrentDate:C}):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6),!j.autoApply||t.unref(p).keepActionRow?(t.openBlock(),t.createBlock(xu,t.mergeProps({key:3,"menu-mount":x.value},s.value,{"calendar-width":b.value,onClosePicker:ne[16]||(ne[16]=me=>j.$emit("close-picker")),onSelectDate:ne[17]||(ne[17]=me=>j.$emit("select-date")),onInvalidSelect:ne[18]||(ne[18]=me=>j.$emit("invalid-select")),onSelectNow:C}),t.createSlots({_:2},[t.renderList(t.unref(V),(me,Me)=>({name:me,fn:t.withCtx(_e=>[t.renderSlot(j.$slots,me,t.normalizeProps(t.guardReactiveProps({..._e})))])}))]),1040,["menu-mount","calendar-width"])):t.createCommentVNode("",!0)],46,d4)}}});var Ua=(e=>(e.center="center",e.left="left",e.right="right",e))(Ua||{});const y4=({menuRef:e,menuRefInner:a,inputRef:n,pickerWrapperRef:r,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=Ze(s),m=t.ref({}),u=t.ref(!1),f=t.ref({top:"0",left:"0"}),d=t.ref(!1),p=t.toRef(s,"teleportCenter");t.watch(p,()=>{f.value=JSON.parse(JSON.stringify({})),_()});const h=F=>{if(s.teleport){const q=F.getBoundingClientRect();return{left:q.left+window.scrollX,top:q.top+window.scrollY}}return{top:0,left:0}},g=(F,q)=>{f.value.left=`${F+q-m.value.width}px`},b=F=>{f.value.left=`${F}px`},v=(F,q)=>{s.position===Ua.left&&b(F),s.position===Ua.right&&g(F,q),s.position===Ua.center&&(f.value.left=`${F+q/2-m.value.width/2}px`)},x=F=>{const{width:q,height:oe}=F.getBoundingClientRect(),{top:V,left:w}=s.altPosition?s.altPosition(F):h(F);return{top:+V,left:+w,width:q,height:oe}},k=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},A=()=>{const F=ct(n),{top:q,left:oe,transform:V}=s.altPosition(F);f.value={top:`${q}px`,left:`${oe}px`,transform:V??""}},_=(F=!0)=>{var q;if(!o.value.enabled){if(p.value)return k();if(s.altPosition!==null)return A();if(F){const oe=s.teleport?(q=a.value)==null?void 0:q.$el:e.value;oe&&(m.value=oe.getBoundingClientRect()),i("recalculate-position")}return Q()}},T=({inputEl:F,left:q,width:oe})=>{window.screen.width>768&&!u.value&&v(q,oe),B(F)},N=F=>{const{top:q,left:oe,height:V,width:w}=x(F);f.value.top=`${V+q+ +s.offset}px`,d.value=!1,u.value||(f.value.left=`${oe+w/2-m.value.width/2}px`),T({inputEl:F,left:oe,width:w})},S=F=>{const{top:q,left:oe,width:V}=x(F);f.value.top=`${q-+s.offset-m.value.height}px`,d.value=!0,T({inputEl:F,left:oe,width:V})},B=F=>{if(s.autoPosition){const{left:q,width:oe}=x(F),{left:V,right:w}=m.value;if(!u.value){if(Math.abs(V)!==Math.abs(w)){if(V<=0)return u.value=!0,b(q);if(w>=document.documentElement.clientWidth)return u.value=!0,g(q,oe)}return v(q,oe)}}},G=()=>{const F=ct(n);if(F){const{height:q}=m.value,{top:oe,height:V}=F.getBoundingClientRect(),w=window.innerHeight-oe-V,X=oe;return q<=w?Va.bottom:q>w&&q<=X?Va.top:w>=X?Va.bottom:Va.top}return Va.bottom},P=F=>G()===Va.bottom?N(F):S(F),Q=()=>{const F=ct(n);if(F)return s.autoPosition?P(F):N(F)},U=function(F){if(F){const q=F.scrollHeight>F.clientHeight,oe=window.getComputedStyle(F).overflowY.indexOf("hidden")!==-1;return q&&!oe}return!0},E=function(F){return!F||F===document.body||F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:U(F)?F:E(F.assignedSlot&&c.value.shadowDom?F.assignedSlot.parentNode:F.parentNode)},D=F=>{if(F)switch(s.position){case Ua.left:return{left:0,transform:"translateX(0)"};case Ua.right:return{left:`${F.width}px`,transform:"translateX(-100%)"};default:return{left:`${F.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:d,menuStyle:f,xCorrect:u,setMenuPosition:_,getScrollableParent:E,shadowRender:(F,q)=>{var oe,V,w;const X=document.createElement("div"),K=(oe=ct(n))==null?void 0:oe.getBoundingClientRect();X.setAttribute("id","dp--temp-container");const W=(V=r.value)!=null&&V.clientWidth?r.value:document.body;W.append(X);const M=D(K),J=c.value.shadowDom?Object.keys(l).filter(z=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(z)):Object.keys(l),ce=t.h(F,{...q,shadow:!0,style:{opacity:0,position:"absolute",...M}},Object.fromEntries(J.map(z=>[z,l[z]])));t.render(ce,X),m.value=(w=ce.el)==null?void 0:w.getBoundingClientRect(),t.render(null,X),W.removeChild(X)}}},ua=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],k4=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],b4={all:()=>ua,monthYear:()=>ua.filter(e=>e.use.includes("month-year")),input:()=>k4,timePicker:()=>ua.filter(e=>e.use.includes("time")),action:()=>ua.filter(e=>e.use.includes("action")),calendar:()=>ua.filter(e=>e.use.includes("calendar")),menu:()=>ua.filter(e=>e.use.includes("menu")),shared:()=>ua.filter(e=>e.use.includes("shared")),yearMode:()=>ua.filter(e=>e.use.includes("year-mode"))},Vt=(e,a,n)=>{const r=[];return b4[a]().forEach(o=>{e[o.name]&&r.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},kn=e=>{const a=t.computed(()=>r=>e.value?r?e.value.open:e.value.close:""),n=t.computed(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:a,showTransition:!!e.value,menuTransition:n}},bn=(e,a,n)=>{const{defaultedRange:r,defaultedTz:o}=Ze(e),i=ge(At(ge(),o.value.timezone)),s=t.ref([{month:Oe(i),year:Ve(i)}]),l=d=>{const p={hours:Qt(i),minutes:ia(i),seconds:0};return r.value.enabled?[p[d],p[d]]:p[d]},c=t.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});t.watch(r,(d,p)=>{d.enabled!==p.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const m=t.computed({get:()=>e.internalModelValue,set:d=>{!e.readonly&&!e.disabled&&a("update:internal-model-value",d)}}),u=t.computed(()=>d=>s.value[d]?s.value[d].month:0),f=t.computed(()=>d=>s.value[d]?s.value[d].year:0);return t.watch(m,(d,p)=>{n&&JSON.stringify(d??{})!==JSON.stringify(p??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:m,month:u,year:f,today:i}},x4=(e,a)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=Ze(a),{isDisabled:m}=fa(a),u=t.ref(null),f=t.ref(At(new Date,s.value.timezone)),d=M=>{!M.current&&a.hideOffsetDates||(u.value=M.value)},p=()=>{u.value=null},h=M=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&u.value?M?it(u.value,e.value[0]):tt(u.value,e.value[0]):!0,g=(M,J)=>{const ce=()=>e.value?J?e.value[0]||null:e.value[1]:null,z=e.value&&Array.isArray(e.value)?ce():null;return Fe(ge(M.value),z)},b=M=>{const J=Array.isArray(e.value)?e.value[0]:null;return M?!tt(u.value??null,J):!0},v=(M,J=!0)=>(c.value.enabled||a.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?a.hideOffsetDates&&!M.current?!1:Fe(ge(M.value),e.value[J?0:1]):c.value.enabled?g(M,J)&&b(J)||Fe(M.value,Array.isArray(e.value)?e.value[0]:null)&&h(J):!1,x=(M,J)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const ce=Fe(M.value,u.value);return J?it(e.value[0],M.value)&&ce:tt(e.value[0],M.value)&&ce}return!1},k=M=>!e.value||a.hideOffsetDates&&!M.current?!1:c.value.enabled?a.modelAuto&&Array.isArray(e.value)?Fe(M.value,e.value[0]?e.value[0]:f.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(J=>Fe(J,M.value)):Fe(M.value,e.value?e.value:f.value),A=M=>{if(c.value.autoRange||a.weekPicker){if(u.value){if(a.hideOffsetDates&&!M.current)return!1;const J=Ot(u.value,+c.value.autoRange),ce=Kt(ge(u.value),a.weekStart);return a.weekPicker?Fe(ce[1],ge(M.value)):Fe(J,ge(M.value))}return!1}return!1},_=M=>{if(c.value.autoRange||a.weekPicker){if(u.value){const J=Ot(u.value,+c.value.autoRange);if(a.hideOffsetDates&&!M.current)return!1;const ce=Kt(ge(u.value),a.weekStart);return a.weekPicker?it(M.value,ce[0])&&tt(M.value,ce[1]):it(M.value,u.value)&&tt(M.value,J)}return!1}return!1},T=M=>{if(c.value.autoRange||a.weekPicker){if(u.value){if(a.hideOffsetDates&&!M.current)return!1;const J=Kt(ge(u.value),a.weekStart);return a.weekPicker?Fe(J[0],M.value):Fe(u.value,M.value)}return!1}return!1},N=M=>Wn(e.value,u.value,M.value),S=()=>a.modelAuto&&Array.isArray(a.internalModelValue)?!!a.internalModelValue[0]:!1,B=()=>a.modelAuto?_s(a.internalModelValue):!0,G=M=>{if(a.weekPicker)return!1;const J=c.value.enabled?!v(M)&&!v(M,!1):!0;return!m(M.value)&&!k(M)&&!(!M.current&&a.hideOffsetDates)&&J},P=M=>c.value.enabled?a.modelAuto?S()&&k(M):!1:k(M),Q=M=>i.value?q3(M.value,l.value.highlight):!1,U=M=>{const J=m(M.value);return J&&(typeof i.value=="function"?!i.value(M.value,J):!i.value.options.highlightDisabled)},E=M=>{var J;return typeof i.value=="function"?i.value(M.value):(J=i.value.weekdays)==null?void 0:J.includes(M.value.getDay())},D=M=>(c.value.enabled||a.weekPicker)&&(!(n.value.count>0)||M.current)&&B()&&!(!M.current&&a.hideOffsetDates)&&!k(M)?N(M):!1,F=M=>{const{isRangeStart:J,isRangeEnd:ce}=w(M),z=c.value.enabled?J||ce:!1;return{dp__cell_offset:!M.current,dp__pointer:!a.disabled&&!(!M.current&&a.hideOffsetDates)&&!m(M.value),dp__cell_disabled:m(M.value),dp__cell_highlight:!U(M)&&(Q(M)||E(M))&&!P(M)&&!z&&!T(M)&&!(D(M)&&a.weekPicker)&&!ce,dp__cell_highlight_active:!U(M)&&(Q(M)||E(M))&&P(M),dp__today:!a.noToday&&Fe(M.value,f.value)&&M.current,"dp--past":tt(M.value,f.value),"dp--future":it(M.value,f.value)}},q=M=>({dp__active_date:P(M),dp__date_hover:G(M)}),oe=M=>{if(e.value&&!Array.isArray(e.value)){const J=Kt(e.value,a.weekStart);return{...K(M),dp__range_start:Fe(J[0],M.value),dp__range_end:Fe(J[1],M.value),dp__range_between_week:it(M.value,J[0])&&tt(M.value,J[1])}}return{...K(M)}},V=M=>{if(e.value&&Array.isArray(e.value)){const J=Kt(e.value[0],a.weekStart),ce=e.value[1]?Kt(e.value[1],a.weekStart):[];return{...K(M),dp__range_start:Fe(J[0],M.value)||Fe(ce[0],M.value),dp__range_end:Fe(J[1],M.value)||Fe(ce[1],M.value),dp__range_between_week:it(M.value,J[0])&&tt(M.value,J[1])||it(M.value,ce[0])&&tt(M.value,ce[1]),dp__range_between:it(M.value,J[1])&&tt(M.value,ce[0])}}return{...K(M)}},w=M=>{const J=n.value.count>0?M.current&&v(M)&&B():v(M)&&B(),ce=n.value.count>0?M.current&&v(M,!1)&&B():v(M,!1)&&B();return{isRangeStart:J,isRangeEnd:ce}},X=M=>{const{isRangeStart:J,isRangeEnd:ce}=w(M);return{dp__range_start:J,dp__range_end:ce,dp__range_between:D(M),dp__date_hover:Fe(M.value,u.value)&&!J&&!ce&&!a.weekPicker,dp__date_hover_start:x(M,!0),dp__date_hover_end:x(M,!1)}},K=M=>({...X(M),dp__cell_auto_range:_(M),dp__cell_auto_range_start:T(M),dp__cell_auto_range_end:A(M)}),W=M=>c.value.enabled?c.value.autoRange?K(M):a.modelAuto?{...q(M),...X(M)}:a.weekPicker?V(M):X(M):a.weekPicker?oe(M):q(M);return{setHoverDate:d,clearHoverDate:p,getDayClassData:M=>a.hideOffsetDates&&!M.current?{}:{...F(M),...W(M),[a.dayClass?a.dayClass(M.value,a.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},fa=e=>{const{defaultedFilters:a,defaultedRange:n,propDates:r,defaultedMultiDates:o}=Ze(e),i=E=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(ge(E)):!!qn(E,r.value.disabledDates):!1,s=E=>r.value.maxDate?e.yearPicker?Ve(E)>Ve(r.value.maxDate):it(E,r.value.maxDate):!1,l=E=>r.value.minDate?e.yearPicker?Ve(E)<Ve(r.value.minDate):tt(E,r.value.minDate):!1,c=E=>{const D=s(E),F=l(E),q=i(E),oe=a.value.months.map(W=>+W).includes(Oe(E)),V=e.disabledWeekDays.length?e.disabledWeekDays.some(W=>+W===Td(E)):!1,w=p(E),X=Ve(E),K=X<+e.yearRange[0]||X>+e.yearRange[1];return!(D||F||q||oe||K||V||w)},m=(E,D)=>tt(...ca(r.value.minDate,E,D))||Fe(...ca(r.value.minDate,E,D)),u=(E,D)=>it(...ca(r.value.maxDate,E,D))||Fe(...ca(r.value.maxDate,E,D)),f=(E,D,F)=>{let q=!1;return r.value.maxDate&&F&&u(E,D)&&(q=!0),r.value.minDate&&!F&&m(E,D)&&(q=!0),q},d=(E,D,F,q)=>{let oe=!1;return q&&(r.value.minDate||r.value.maxDate)?r.value.minDate&&r.value.maxDate?oe=f(E,D,F):(r.value.minDate&&m(E,D)||r.value.maxDate&&u(E,D))&&(oe=!0):oe=!0,oe},p=E=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!qn(E,r.value.allowedDates):!1,h=E=>!c(E),g=E=>n.value.noDisabledRange?!is({start:E[0],end:E[1]}).some(D=>h(D)):!0,b=E=>{if(E){const D=Ve(E);return D>=+e.yearRange[0]&&D<=e.yearRange[1]}return!0},v=(E,D)=>!!(Array.isArray(E)&&E[D]&&(n.value.maxRange||n.value.minRange)&&b(E[D])),x=(E,D,F=0)=>{if(v(D,F)&&b(E)){const q=as(E,D[F]),oe=Rs(D[F],E),V=oe.length===1?0:oe.filter(X=>h(X)).length,w=Math.abs(q)-(n.value.minMaxRawRange?0:V);if(n.value.minRange&&n.value.maxRange)return w>=+n.value.minRange&&w<=+n.value.maxRange;if(n.value.minRange)return w>=+n.value.minRange;if(n.value.maxRange)return w<=+n.value.maxRange}return!0},k=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,A=E=>Array.isArray(E)?[E[0]?fo(E[0]):null,E[1]?fo(E[1]):null]:fo(E),_=(E,D,F)=>E.find(q=>+q.hours===Qt(D)&&q.minutes==="*"?!0:+q.minutes===ia(D)&&+q.hours===Qt(D))&&F,T=(E,D,F)=>{const[q,oe]=E,[V,w]=D;return!_(q,V,F)&&!_(oe,w,F)&&F},N=(E,D)=>{const F=Array.isArray(D)?D:[D];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?T(e.disabledTimes,F,E):!F.some(q=>_(e.disabledTimes,q,E)):E},S=(E,D)=>{const F=Array.isArray(D)?[Na(D[0]),D[1]?Na(D[1]):void 0]:Na(D),q=!e.disabledTimes(F);return E&&q},B=(E,D)=>e.disabledTimes?Array.isArray(e.disabledTimes)?N(D,E):S(D,E):D,G=E=>{let D=!0;if(!E||k())return!0;const F=!r.value.minDate&&!r.value.maxDate?A(E):E;return(e.maxTime||r.value.maxDate)&&(D=Gs(e.maxTime,r.value.maxDate,"max",ft(F),D)),(e.minTime||r.value.minDate)&&(D=Gs(e.minTime,r.value.minDate,"min",ft(F),D)),B(E,D)},P=E=>{if(!e.monthPicker)return!0;let D=!0;const F=ge(Rt(E));if(r.value.minDate&&r.value.maxDate){const q=ge(Rt(r.value.minDate)),oe=ge(Rt(r.value.maxDate));return it(F,q)&&tt(F,oe)||Fe(F,q)||Fe(F,oe)}if(r.value.minDate){const q=ge(Rt(r.value.minDate));D=it(F,q)||Fe(F,q)}if(r.value.maxDate){const q=ge(Rt(r.value.maxDate));D=tt(F,q)||Fe(F,q)}return D},Q=t.computed(()=>E=>!e.enableTimePicker||e.ignoreTimeValidation?!0:G(E)),U=t.computed(()=>E=>e.monthPicker?Array.isArray(E)&&(n.value.enabled||o.value.enabled)?!E.filter(D=>!P(D)).length:P(E):!0);return{isDisabled:h,validateDate:c,validateMonthYearInRange:d,isDateRangeAllowed:g,checkMinMaxRange:x,isValidTime:G,isTimeValid:Q,isMonthValid:U}},Kn=()=>{const e=t.computed(()=>(r,o)=>r==null?void 0:r.includes(o)),a=t.computed(()=>(r,o)=>r.count?r.solo?!0:o===0:!0),n=t.computed(()=>(r,o)=>r.count?r.solo?!0:o===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:a,showRightIcon:n}},w4=(e,a,n)=>{const r=t.ref(0),o=t.reactive({[_a.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[_a.calendar]:!1,[_a.header]:!1}),i=t.computed(()=>e.monthPicker||e.timePicker),s=f=>{var d;if((d=e.flow)!=null&&d.length){if(!f&&i.value)return u();o[f]=!0,Object.keys(o).filter(p=>!o[p]).length||u()}},l=()=>{var f,d;(f=e.flow)!=null&&f.length&&r.value!==-1&&(r.value+=1,a("flow-step",r.value),u()),((d=e.flow)==null?void 0:d.length)===r.value&&t.nextTick().then(()=>c())},c=()=>{r.value=-1},m=(f,d,...p)=>{var h,g;e.flow[r.value]===f&&n.value&&((g=(h=n.value)[d])==null||g.call(h,...p))},u=(f=0)=>{f&&(r.value+=f),m(yt.month,"toggleMonthPicker",!0),m(yt.year,"toggleYearPicker",!0),m(yt.calendar,"toggleTimePicker",!1,!0),m(yt.time,"toggleTimePicker",!0,!0);const d=e.flow[r.value];(d===yt.hours||d===yt.minutes||d===yt.seconds)&&m(d,"toggleTimePicker",!0,!0,d)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:u,flowStep:r}},v4={key:1,class:"dp__input_wrap"},E4=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],C4={key:2,class:"dp--clear-btn"},S4=["aria-label"],M4=t.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Xn},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:a,emit:n}){const r=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:m,defaultedMultiDates:u,defaultedUI:f,getDefaultPattern:d,getDefaultStartTime:p}=Ze(o),{checkMinMaxRange:h}=fa(o),g=t.ref(),b=t.ref(null),v=t.ref(!1),x=t.ref(!1),k=t.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:v.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),A=()=>{r("set-input-date",null),o.clearable&&o.autoApply&&(r("set-empty-date"),g.value=null)},_=w=>{const X=p();return W3(w,i.value.format??d(),X??Hs({},o.enableSeconds),o.inputValue,x.value,o.formatLocale)},T=w=>{const{rangeSeparator:X}=i.value,[K,W]=w.split(`${X}`);if(K){const M=_(K.trim()),J=W?_(W.trim()):null;if(za(M,J))return;const ce=M&&J?[M,J]:[M];h(J,ce,0)&&(g.value=M?ce:null)}},N=()=>{x.value=!0},S=w=>{if(m.value.enabled)T(w);else if(u.value.enabled){const X=w.split(";");g.value=X.map(K=>_(K.trim())).filter(K=>K)}else g.value=_(w)},B=w=>{var X;const K=typeof w=="string"?w:(X=w.target)==null?void 0:X.value;K!==""?(i.value.openMenu&&!o.isMenuOpen&&r("open"),S(K),r("set-input-date",g.value)):A(),x.value=!1,r("update:input-value",K),r("text-input",w,g.value)},G=w=>{i.value.enabled?(S(w.target.value),i.value.enterSubmit&&lo(g.value)&&o.inputValue!==""?(r("set-input-date",g.value,!0),g.value=null):i.value.enterSubmit&&o.inputValue===""&&(g.value=null,r("clear"))):U(w)},P=(w,X)=>{i.value.enabled&&i.value.tabSubmit&&!X&&S(w.target.value),i.value.tabSubmit&&lo(g.value)&&o.inputValue!==""?(r("set-input-date",g.value,!0,!0),g.value=null):i.value.tabSubmit&&o.inputValue===""&&(g.value=null,r("clear",!0))},Q=()=>{v.value=!0,r("focus"),t.nextTick().then(()=>{var w;i.value.enabled&&i.value.selectOnFocus&&((w=b.value)==null||w.select())})},U=w=>{if(sa(w,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return r("open");if(i.value.openMenu==="toggle")return r("toggle")}else i.value.enabled||r("toggle")},E=()=>{r("real-blur"),v.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&r("blur"),o.autoApply&&i.value.enabled&&g.value&&!o.isMenuOpen&&(r("set-input-date",g.value),r("select-date"),g.value=null)},D=w=>{sa(w,c.value,!0),r("clear")},F=w=>{if(w.key==="Tab"&&P(w),w.key==="Enter"&&G(w),!i.value.enabled){if(w.code==="Tab")return;w.preventDefault()}},q=()=>{var w;(w=b.value)==null||w.focus({preventScroll:!0})},oe=w=>{g.value=w},V=w=>{w.key===Ue.tab&&P(w,!0)};return a({focusInput:q,setParsedDate:oe}),(w,X)=>{var K,W,M;return t.openBlock(),t.createElementBlock("div",{onClick:U},[w.$slots.trigger&&!w.$slots["dp-input"]&&!t.unref(l).enabled?t.renderSlot(w.$slots,"trigger",{key:0}):t.createCommentVNode("",!0),!w.$slots.trigger&&(!t.unref(l).enabled||t.unref(l).input)?(t.openBlock(),t.createElementBlock("div",v4,[w.$slots["dp-input"]&&!w.$slots.trigger&&(!t.unref(l).enabled||t.unref(l).enabled&&t.unref(l).input)?t.renderSlot(w.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:B,onEnter:G,onTab:P,onClear:D,onBlur:E,onKeypress:F,onPaste:N,onFocus:Q,openMenu:()=>w.$emit("open"),closeMenu:()=>w.$emit("close"),toggleMenu:()=>w.$emit("toggle")}):t.createCommentVNode("",!0),w.$slots["dp-input"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("input",{key:1,id:w.uid?`dp-input-${w.uid}`:void 0,ref_key:"inputRef",ref:b,"data-test":"dp-input",name:w.name,class:t.normalizeClass(k.value),inputmode:t.unref(i).enabled?"text":"none",placeholder:w.placeholder,disabled:w.disabled,readonly:w.readonly,required:w.required,value:e.inputValue,autocomplete:w.autocomplete,"aria-label":(K=t.unref(s))==null?void 0:K.input,"aria-disabled":w.disabled||void 0,"aria-invalid":w.state===!1?!0:void 0,onInput:B,onBlur:E,onFocus:Q,onKeypress:F,onKeydown:X[0]||(X[0]=J=>F(J)),onPaste:N},null,42,E4)),t.createElementVNode("div",{onClick:X[3]||(X[3]=J=>r("toggle"))},[w.$slots["input-icon"]&&!w.hideInputIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:X[1]||(X[1]=J=>r("toggle"))},[t.renderSlot(w.$slots,"input-icon")])):t.createCommentVNode("",!0),!w.$slots["input-icon"]&&!w.hideInputIcon&&!w.$slots["dp-input"]?(t.openBlock(),t.createBlock(t.unref(ja),{key:1,"aria-label":(W=t.unref(s))==null?void 0:W.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:X[2]||(X[2]=J=>r("toggle"))},null,8,["aria-label"])):t.createCommentVNode("",!0)]),w.$slots["clear-icon"]&&e.inputValue&&w.clearable&&!w.disabled&&!w.readonly?(t.openBlock(),t.createElementBlock("span",C4,[t.renderSlot(w.$slots,"clear-icon",{clear:D})])):t.createCommentVNode("",!0),w.clearable&&!w.$slots["clear-icon"]&&e.inputValue&&!w.disabled&&!w.readonly?(t.openBlock(),t.createElementBlock("button",{key:3,"aria-label":(M=t.unref(s))==null?void 0:M.clearInput,class:"dp--clear-btn",type:"button",onKeydown:X[4]||(X[4]=J=>t.unref(wt)(J,()=>D(J),!0,V)),onClick:X[5]||(X[5]=t.withModifiers(J=>D(J),["prevent"]))},[t.createVNode(t.unref(Bs),{class:"dp__input_icons","data-test":"clear-icon"})],40,S4)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}}}),B4=typeof window<"u"?window:void 0,wo=()=>{},A4=e=>t.getCurrentScope()?(t.onScopeDispose(e),!0):!1,V4=(e,a,n,r)=>{if(!e)return wo;let o=wo;const i=t.watch(()=>t.unref(e),l=>{o(),l&&(l.addEventListener(a,n,r),o=()=>{l.removeEventListener(a,n,r),o=wo})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return A4(s),s},_4=(e,a,n,r={})=>{const{window:o=B4,event:i="pointerdown"}=r;return o?V4(o,i,s=>{const l=ct(e),c=ct(a);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},N4=t.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Xn},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:a,emit:n}){const r=n,o=e,i=t.useSlots(),s=t.ref(!1),l=t.toRef(o,"modelValue"),c=t.toRef(o,"timezone"),m=t.ref(null),u=t.ref(null),f=t.ref(null),d=t.ref(!1),p=t.ref(null),h=t.ref(!1),g=t.ref(!1),b=t.ref(!1),v=t.ref(!1),{setMenuFocused:x,setShiftKey:k}=Ws(),{clearArrowNav:A}=da(),{validateDate:_,isValidTime:T}=fa(o),{defaultedTransitions:N,defaultedTextInput:S,defaultedInline:B,defaultedConfig:G,defaultedRange:P,defaultedMultiDates:Q}=Ze(o),{menuTransition:U,showTransition:E}=kn(N);t.onMounted(()=>{J(o.modelValue),t.nextTick().then(()=>{if(!B.value.enabled){const $=X(p.value);$==null||$.addEventListener("scroll",I),window==null||window.addEventListener("resize",H)}}),B.value.enabled&&(s.value=!0),window==null||window.addEventListener("keyup",te),window==null||window.addEventListener("keydown",j)}),t.onUnmounted(()=>{if(!B.value.enabled){const $=X(p.value);$==null||$.removeEventListener("scroll",I),window==null||window.removeEventListener("resize",H)}window==null||window.removeEventListener("keyup",te),window==null||window.removeEventListener("keydown",j)});const D=Vt(i,"all",o.presetDates),F=Vt(i,"input");t.watch([l,c],()=>{J(l.value)},{deep:!0});const{openOnTop:q,menuStyle:oe,xCorrect:V,setMenuPosition:w,getScrollableParent:X,shadowRender:K}=y4({menuRef:m,menuRefInner:u,inputRef:f,pickerWrapperRef:p,inline:B,emit:r,props:o,slots:i}),{inputValue:W,internalModelValue:M,parseExternalModelValue:J,emitModelValue:ce,formatInputValue:z,checkBeforeEmit:he}=gu(r,o,d),ee=t.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:B.value.enabled,"dp--flex-display-collapsed":b.value,dp__flex_display_with_input:B.value.input})),fe=t.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),L=t.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||B.value.enabled}:{}),C=t.computed(()=>({class:"dp__outer_menu_wrap"})),y=t.computed(()=>B.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),O=()=>{var $,ae;return(ae=($=f.value)==null?void 0:$.$el)==null?void 0:ae.getBoundingClientRect()},I=()=>{s.value&&(G.value.closeOnScroll?Se():w())},H=()=>{var $;s.value&&w();const ae=($=u.value)==null?void 0:$.$el.getBoundingClientRect().width;b.value=document.body.offsetWidth<=ae},te=$=>{$.key==="Tab"&&!B.value.enabled&&!o.teleport&&G.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||Se()),g.value=$.shiftKey},j=$=>{g.value=$.shiftKey},ne=()=>{!o.disabled&&!o.readonly&&(K(al,o),w(!1),s.value=!0,s.value&&r("open"),s.value||Ne(),J(o.modelValue))},ue=()=>{var $;W.value="",Ne(),($=f.value)==null||$.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),G.value.closeOnClearValue&&Se()},ye=()=>{const $=M.value;return!$||!Array.isArray($)&&_($)?!0:Array.isArray($)?Q.value.enabled||$.length===2&&_($[0])&&_($[1])?!0:P.value.partialRange&&!o.timePicker?_($[0]):!1:!1},be=()=>{he()&&ye()?(ce(),Se()):r("invalid-select",M.value)},me=$=>{Me(),ce(),G.value.closeOnAutoApply&&!$&&Se()},Me=()=>{f.value&&S.value.enabled&&f.value.setParsedDate(M.value)},_e=($=!1)=>{o.autoApply&&T(M.value)&&ye()&&(P.value.enabled&&Array.isArray(M.value)?(P.value.partialRange||M.value.length===2)&&me($):me($))},Ne=()=>{S.value.enabled||(M.value=null)},Se=()=>{B.value.enabled||(s.value&&(s.value=!1,V.value=!1,x(!1),k(!1),A(),r("closed"),W.value&&J(l.value)),Ne(),r("blur"))},Le=($,ae,le=!1)=>{if(!$){M.value=null;return}const xe=Array.isArray($)?!$.some(De=>!_(De)):_($),Ae=T($);xe&&Ae?(v.value=!0,M.value=$,ae&&(h.value=le,be(),r("text-submit")),t.nextTick().then(()=>{v.value=!1})):r("invalid-date",$)},Be=()=>{o.autoApply&&T(M.value)&&ce(),Me()},Z=()=>s.value?Se():ne(),re=$=>{M.value=$},ie=()=>{S.value.enabled&&(d.value=!0,z()),r("focus")},de=()=>{if(S.value.enabled&&(d.value=!1,J(o.modelValue),h.value)){const $=j3(p.value,g.value);$==null||$.focus()}r("blur")},Ee=$=>{u.value&&u.value.updateMonthYear(0,{month:Ns($.month),year:Ns($.year)})},pe=$=>{J($??o.modelValue)},ke=($,ae)=>{var le;(le=u.value)==null||le.switchView($,ae)},Y=$=>G.value.onClickOutside?G.value.onClickOutside($):Se(),R=($=0)=>{var ae;(ae=u.value)==null||ae.handleFlow($)};return _4(m,f,()=>Y(ye)),a({closeMenu:Se,selectDate:be,clearValue:ue,openMenu:ne,onScroll:I,formatInputValue:z,updateInternalModelValue:re,setMonthYear:Ee,parseModel:pe,switchView:ke,toggleMenu:Z,handleFlow:R,dpWrapMenuRef:m}),($,ae)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:p,class:t.normalizeClass(ee.value),"data-datepicker-instance":""},[t.createVNode(M4,t.mergeProps({ref_key:"inputRef",ref:f,"input-value":t.unref(W),"onUpdate:inputValue":ae[0]||(ae[0]=le=>t.isRef(W)?W.value=le:null),"is-menu-open":s.value},$.$props,{onClear:ue,onOpen:ne,onSetInputDate:Le,onSetEmptyDate:t.unref(ce),onSelectDate:be,onToggle:Z,onClose:Se,onFocus:ie,onBlur:de,onRealBlur:ae[1]||(ae[1]=le=>d.value=!1),onTextInput:ae[2]||(ae[2]=le=>$.$emit("text-input",le))}),t.createSlots({_:2},[t.renderList(t.unref(F),(le,xe)=>({name:le,fn:t.withCtx(Ae=>[t.renderSlot($.$slots,le,t.normalizeProps(t.guardReactiveProps(Ae)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent($.teleport?t.Teleport:"div"),t.normalizeProps(t.guardReactiveProps(L.value)),{default:t.withCtx(()=>[t.createVNode(t.Transition,{name:t.unref(U)(t.unref(q)),css:t.unref(E)&&!t.unref(B).enabled},{default:t.withCtx(()=>[s.value?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:m},C.value,{class:{"dp--menu-wrapper":!t.unref(B).enabled},style:t.unref(B).enabled?void 0:t.unref(oe)}),[t.createVNode(al,t.mergeProps({ref_key:"dpMenuRef",ref:u},$.$props,{"internal-model-value":t.unref(M),"onUpdate:internalModelValue":ae[3]||(ae[3]=le=>t.isRef(M)?M.value=le:null),class:{[fe.value]:!0,"dp--menu-wrapper":$.teleport},"open-on-top":t.unref(q),"no-overlay-focus":y.value,collapse:b.value,"get-input-rect":O,"is-text-input-date":v.value,onClosePicker:Se,onSelectDate:be,onAutoApply:_e,onTimeUpdate:Be,onFlowStep:ae[4]||(ae[4]=le=>$.$emit("flow-step",le)),onUpdateMonthYear:ae[5]||(ae[5]=le=>$.$emit("update-month-year",le)),onInvalidSelect:ae[6]||(ae[6]=le=>$.$emit("invalid-select",t.unref(M))),onAutoApplyInvalid:ae[7]||(ae[7]=le=>$.$emit("invalid-select",le)),onInvalidFixedRange:ae[8]||(ae[8]=le=>$.$emit("invalid-fixed-range",le)),onRecalculatePosition:t.unref(w),onTooltipOpen:ae[9]||(ae[9]=le=>$.$emit("tooltip-open",le)),onTooltipClose:ae[10]||(ae[10]=le=>$.$emit("tooltip-close",le)),onTimePickerOpen:ae[11]||(ae[11]=le=>$.$emit("time-picker-open",le)),onTimePickerClose:ae[12]||(ae[12]=le=>$.$emit("time-picker-close",le)),onAmPmChange:ae[13]||(ae[13]=le=>$.$emit("am-pm-change",le)),onRangeStart:ae[14]||(ae[14]=le=>$.$emit("range-start",le)),onRangeEnd:ae[15]||(ae[15]=le=>$.$emit("range-end",le)),onDateUpdate:ae[16]||(ae[16]=le=>$.$emit("date-update",le)),onInvalidDate:ae[17]||(ae[17]=le=>$.$emit("invalid-date",le)),onOverlayToggle:ae[18]||(ae[18]=le=>$.$emit("overlay-toggle",le))}),t.createSlots({_:2},[t.renderList(t.unref(D),(le,xe)=>({name:le,fn:t.withCtx(Ae=>[t.renderSlot($.$slots,le,t.normalizeProps(t.guardReactiveProps({...Ae})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):t.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),xn=(()=>{const e=N4;return e.install=a=>{a.component("Vue3DatePicker",e)},e})();Object.entries(Object.freeze(Object.defineProperty({__proto__:null,default:xn},Symbol.toStringTag,{value:"Module"}))).forEach(([e,a])=>{e!=="default"&&(xn[e]=a)});const D4={name:"ModalComponent",props:{modelValue:{type:Boolean,required:!0}},methods:{closeModal(){this.$emit("update:modelValue",!1)}}},T4={key:0,class:"modal-head text-white"},P4={class:"modal_responsive"},O4={class:"flex min-h-full items-center justify-center text-center"},F4={class:"modal-size w-full"},L4={class:"modal-background bg-base-200"},$4={class:"modal-title"},R4={class:"modal-body bg-base-300"},H4={class:"modal-footer"};function z4(e,a,n,r,o,i){return n.modelValue?(t.openBlock(),t.createElementBlock("div",T4,[a[2]||(a[2]=t.createElementVNode("div",{class:"modal-overlay"},null,-1)),t.createElementVNode("div",P4,[t.createElementVNode("div",O4,[t.createElementVNode("div",F4,[t.createElementVNode("div",L4,[t.createElementVNode("header",$4,[t.renderSlot(e.$slots,"title",{},void 0,!0),t.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...s)=>i.closeModal&&i.closeModal(...s))},a[1]||(a[1]=[t.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)]))]),t.createElementVNode("div",R4,[t.renderSlot(e.$slots,"body",{},void 0,!0)]),t.createElementVNode("footer",H4,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])])])])])])):t.createCommentVNode("",!0)}const nl=je(D4,[["render",z4],["__scopeId","data-v-e2c896dc"]]),I4={class:"container"},G4={class:"form-group"},j4={class:"form-group"},q4={class:"form-group"},W4=je({__name:"reminder",props:{currentChat:{type:Object,default:{id:null,contact:{segmentation_fields:[]}}},theme:{type:Boolean,default:!0},date:Date,token:String},setup(e){const a=e,n=t.ref({schedule:{time:a.date,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,type:"unique"},title:"",content:"",type:"reminders"});return(r,o)=>(t.openBlock(),t.createElementBlock("div",I4,[t.createElementVNode("div",G4,[o[4]||(o[4]=t.createElementVNode("label",{for:"contentInput"},"Horário",-1)),t.createVNode(t.unref(xn),{format:"HH:mm","auto-apply":"true","time-picker":!0,locale:"pt-BR","cancel-text":"Cancelar","select-text":"Confirmar","enable-time-picker":!0,"min-date":new Date,"text-input":"",dark:e.theme,modelValue:n.value.schedule.time,"onUpdate:modelValue":o[0]||(o[0]=i=>n.value.schedule.time=i)},{"clear-icon":t.withCtx(({clear:i})=>o[3]||(o[3]=[])),_:1},8,["min-date","dark","modelValue"])]),t.createElementVNode("div",j4,[o[5]||(o[5]=t.createElementVNode("label",{for:"titleInput"},"Título",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=i=>n.value.title=i),id:"titleInput",placeholder:"Remédio",class:"input bg-base-200"},null,512),[[t.vModelText,n.value.title]])]),t.createElementVNode("div",q4,[o[6]||(o[6]=t.createElementVNode("label",{for:"contentInput"},"Conteúdo",-1)),t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":o[2]||(o[2]=i=>n.value.content=i),id:"contentInput",placeholder:"Não esquecer do remédio de alzheimer",class:"areaInput bg-base-200"},null,512),[[t.vModelText,n.value.content]])]),o[7]||(o[7]=t.createElementVNode("div",{class:"button-container"},[t.createElementVNode("button",{class:"save-button"},"Salvar")],-1))]))}},[["__scopeId","data-v-2727b591"]]);function Y4(e){return{all:e=e||new Map,on:function(a,n){var r=e.get(a);r?r.push(n):e.set(a,[n])},off:function(a,n){var r=e.get(a);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(a,[]))},emit:function(a,n){var r=e.get(a);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(a,n)})}}}const rl=Y4();let ol=0;const U4=()=>{const e=ol;return ol+=1,e},Jn=(e,a)=>{const n={...e,id:U4(),group:e.group||""};return rl.emit("notify",{notification:n,timeout:a}),()=>rl.emit("close",n.id)},X4={class:"container"},Z4={class:"form-group"},Q4={class:"form-group"},K4={key:0,class:"custom-fields-container border border-base-100"},J4={class:"custom-fields-header bg-base-300"},e5={class:"custom-fields-list"},t5=["onClick"],a5={key:1,class:"file-container bg-base-100"},n5={class:"file-actions"},r5={class:"button-container"},o5=["disabled"],i5={key:0,class:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-solid border-current border-e-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]"},s5=je({__name:"sheduledMessage",props:{currentChat:{type:Object,default:{id:null,contact:{segmentation_fields:[]}}},theme:{type:Boolean,default:!0},date:{type:Date,required:!0},token:String,event:Object||null},emits:["close"],setup(e,{emit:a}){const n=e,r=t.ref(!1),o=a,i=t.ref("post"),s=t.ref({message:[{type:"text",content:""}],schedule:{time:n.date,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,type:"unique"},chat_id:n.currentChat.id||null});t.onMounted(()=>{n.event?(s.value=n.event.params,i.value="patch"):s.value.schedule.time=u(n.date,s.value.schedule.time)});const l=t.ref(null);function c(d){s.value.message[0].content+=` {${d.name}} `,t.nextTick(()=>{l.value.focus()})}t.ref(null);function m(d){const p=d.getFullYear(),h=String(d.getMonth()+1).padStart(2,"0"),g=String(d.getDate()).padStart(2,"0"),b=String(d.getHours()).padStart(2,"0"),v=String(d.getMinutes()).padStart(2,"0");return`${p}-${h}-${g} ${b}:${v}`}function u(d,p){const h=new Date(d);return h.setHours(p.hours),h.setMinutes(p.minutes),h.setSeconds(p.seconds||0),m(h)}async function f(){r.value=!0;try{const d=JSON.parse(JSON.stringify(s.value));d.schedule.time=u(n.date,d.schedule.time);const p=await Qe[i.value](`http://localhost:8000/v1/api/crm/event/scheduled_message/${s.value.event_id?`${s.value.event_id}/`:""}`,{...d},{headers:{Authorization:`Bearer ${n.token}`}});Jn({group:"success",title:"Sucesso",text:p.data.message},2e3),o("close",!1)}catch(d){Jn({group:"error",title:"Erro",text:d.response.data.message},2e3)}finally{r.value=!1}}return(d,p)=>{const h=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("div",X4,[t.createTextVNode(t.toDisplayString(s.value.schedule.time)+" ",1),t.createElementVNode("div",Z4,[p[4]||(p[4]=t.createElementVNode("label",{for:"contentInput"},"Horário",-1)),t.createVNode(t.unref(xn),{"auto-apply":"true","time-picker":!0,locale:"pt-BR","cancel-text":"Cancelar","select-text":"Confirmar","enable-time-picker":!0,"min-date":new Date,"text-input":"",dark:e.theme,modelValue:s.value.schedule.time,"onUpdate:modelValue":p[0]||(p[0]=g=>s.value.schedule.time=g)},{"clear-icon":t.withCtx(({clear:g})=>p[3]||(p[3]=[])),_:1},8,["min-date","dark","modelValue"])]),t.createElementVNode("div",Q4,[p[5]||(p[5]=t.createElementVNode("label",{for:"contentInput"},"Conteúdo",-1)),t.withDirectives(t.createElementVNode("textarea",{id:"sheduleMessageArea",ref_key:"textareaRef",ref:l,autofocus:"","onUpdate:modelValue":p[1]||(p[1]=g=>s.value.message[0].content=g),placeholder:"Olá cliente, tudo bem?",class:"input bg-base-200"},null,512),[[t.vModelText,s.value.message[0].content]])]),e.currentChat.contact&&e.currentChat.contact.segmentation_fields.length>0?(t.openBlock(),t.createElementBlock("div",K4,[t.createElementVNode("div",J4,[p[8]||(p[8]=t.createTextVNode(" Campos personalizáveis disponíveis ")),t.createVNode(h,{placement:"top",arrow:!0,hover:!0,class:"info",content:""},{content:t.withCtx(()=>p[6]||(p[6]=[t.createElementVNode("p",{class:"info-content"}," Ao enviar a mensagem para o cliente o valor deste campo será substituído pelo valor correspondente no momento do envio ",-1)])),default:t.withCtx(()=>[p[7]||(p[7]=t.createElementVNode("svg",{class:"info-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm9.4-5.5a1 1 0 1 0 0 2 1 1 0 1 0 0-2ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4c0-.6-.4-1-1-1h-2Z","clip-rule":"evenodd"})],-1))]),_:1,__:[7]})]),t.createElementVNode("div",e5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.globalStore.messageStore.currentChat.contact.segmentation_fields,g=>(t.openBlock(),t.createElementBlock("div",{onClick:b=>c(g),key:g,class:"custom-field bg-primary"},t.toDisplayString(g.name),9,t5))),128))])])):t.createCommentVNode("",!0),s.value.file?(t.openBlock(),t.createElementBlock("div",a5,[t.createElementVNode("p",null,t.toDisplayString(s.value.fileName),1),t.createElementVNode("div",n5,[t.createElementVNode("button",{onClick:p[2]||(p[2]=g=>s.value.file=""),class:"file-remove-button"},p[9]||(p[9]=[t.createElementVNode("svg",{class:"file-remove-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)]))])])):t.createCommentVNode("",!0),t.createElementVNode("div",r5,[t.createElementVNode("button",{disabled:r.value,onClick:f,class:"save-button text-white"},[r.value?(t.openBlock(),t.createElementBlock("div",i5)):t.createCommentVNode("",!0),p[10]||(p[10]=t.createTextVNode(" Salvar "))],8,o5)])])}}},[["__scopeId","data-v-1d2f0f94"]]),l5={key:0},c5={key:1},d5={class:"main-container"},u5={key:0,class:"select-container"},f5=["value"],m5=je({__name:"createEvents",props:{modal:Boolean,date:Date,token:String,currentChat:Object,currentEvent:Object||null},emits:["close"],setup(e,{emit:a}){const n=[{type:"scheduled_messages",name:"Mensagens programadas"},{type:"reminders",name:"Lembrete"}],r=t.ref("reminders"),o=t.ref(null),i=e;t.onMounted(()=>{i.currentEvent&&(r.value=i.currentEvent.function)});const s=a;function l(u){const f={day:"numeric",month:"long",year:"numeric"};return u.toLocaleDateString("pt-BR",f)}const c=t.ref(i.modal);t.watch(()=>i.modal,u=>{c.value=u}),t.watch(c,u=>{u||s("close")});function m(u){o.value=u}return(u,f)=>(t.openBlock(),t.createBlock(nl,{modelValue:c.value,"onUpdate:modelValue":f[3]||(f[3]=d=>c.value=d)},{title:t.withCtx(()=>[e.currentEvent===null?(t.openBlock(),t.createElementBlock("div",l5," Novo evento "+t.toDisplayString(l(e.date)),1)):(t.openBlock(),t.createElementBlock("div",c5,t.toDisplayString(e.currentEvent.title)+" - "+t.toDisplayString(e.currentEvent.date.split("-").reverse().join("/"))+" "+t.toDisplayString(e.currentEvent.hours),1))]),body:t.withCtx(()=>[t.createElementVNode("main",d5,[e.currentEvent===null?(t.openBlock(),t.createElementBlock("div",u5,[t.withDirectives(t.createElementVNode("select",{"onUpdate:modelValue":f[0]||(f[0]=d=>r.value=d),class:"custom-select bg-base-100"},[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,d=>t.createElementVNode("option",{value:d.type,key:d.type},t.toDisplayString(d.name),9,f5)),64))],512),[[t.vModelSelect,r.value]]),f[4]||(f[4]=t.createElementVNode("svg",{class:"select-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.425 10.271C19.499 8.967 18.57 7 16.88 7H7.12c-1.69 0-2.618 1.967-1.544 3.271l4.881 5.927a2 2 0 0 0 3.088 0l4.88-5.927Z","clip-rule":"evenodd"})],-1))])):t.createCommentVNode("",!0),r.value==="reminders"?(t.openBlock(),t.createBlock(W4,{key:1,onClose:f[1]||(f[1]=d=>c.value=!1),token:e.token,date:e.date,onConfig:m},null,8,["token","date"])):r.value==="scheduled_messages"?(t.openBlock(),t.createBlock(s5,{key:2,event:e.currentEvent,currentChat:e.currentChat,onClose:f[2]||(f[2]=d=>c.value=!1),token:e.token,date:e.date},null,8,["event","currentChat","token","date"])):t.createCommentVNode("",!0)])]),_:1},8,["modelValue"]))}},[["__scopeId","data-v-5dd1aceb"]]),h5={class:"calendar-container text-white"},p5={class:"calendar-header bg-base-300"},g5={class:"calendar"},y5={class:"date-container"},k5={class:"date"},b5=["disabled","onClick"],x5=["onClick"],w5={class:"event-main"},v5={class:"event-title"},E5={class:"text-center w-full"},C5={class:"flex flex-col gap- text-sm items-center align-middle overflow-y-scroll w-full",style:{height:"50vh"}},S5={class:"w-[40%]"},M5={class:"p- w-1/4"},B5={class:"p- w-1/4"},A5={class:"p- w-1/4"},V5=["onClick"],il=je({__name:"calendar",props:{theme:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzI1MTEwNzY3LCJpYXQiOjE3MjUwMjQzNjcsImp0aSI6ImRiY2E3MjIzZTE2NzRmODJiZjQzOWQyNjYwZDIyYTRhIiwidXNlcl9pZCI6IjYyNGRmZTIzLTkyZDAtNDNmMS04MDYxLWEyMzIxZjJiNWViYiJ9.MMlinTjeEFJcIqzYkM3SgPzJrLafE-GLiZn1wQi4ggs"},currentChat:Object},setup(e){const a=t.ref({seeEvents:!1,events:null,date:new Date}),n=t.ref({date:new Date,modal:!1}),r=t.ref(null);function o(S){r.value=S,n.value={date:S.date,modal:!0},a.value.seeEvents=!1}function i(S){n.value.modal=S,r.value=null}function s(S){a.value.events=S.events,a.value.seeEvents=!0;const B={day:"numeric",month:"long",year:"numeric"};a.value.date=S.date.toLocaleDateString("pt-BR",B)}const l=e,c=new Date,m=t.ref(c.getMonth()),u=t.ref(c.getFullYear()),f=t.ref(new Date(u.value,m.value)),d=t.ref([]),p=S=>{S&&typeof S.year=="number"&&typeof S.month=="number"?(m.value=S.month,u.value=S.year,_()):console.error("Data inválida selecionada:",S)},h=new Array(7).fill(null).map((S,B)=>{const G=new Date(2021,0,B+3);return new Intl.DateTimeFormat("pt-BR",{weekday:"short"}).format(G)}),g=S=>{if(S instanceof Date){const B={month:"long",year:"numeric"};return new Intl.DateTimeFormat("pt-BR",B).format(S)}else return console.error("Data inválida fornecida ao formatador:",S),""},b=S=>{const B={scheduled_messages:"Mensagens Programadas",another_function:"Outro Título",default:"Evento Desconhecido"};return B[S]||B.default},v=async(S="http://localhost:8000/v1/api/crm/event/")=>{try{const G=(await Qe.get(S,{headers:{Authorization:`Bearer ${l.token}`}})).data,P=G.results.map(Q=>({...Q,title:b(Q.function),date:Q.params.schedule.time.split(" ")[0],hours:Q.params.schedule.time.split(" ")[1],color:"#cce5ff",tag:"blue"}));d.value.push(...P),G.next&&await v(G.next)}catch(B){console.error("Erro ao buscar eventos:",B)}},x=S=>d.value.filter(B=>{const G=new Date(B.date+"T00:00:00"),P=new Date(S.getFullYear(),S.getMonth(),S.getDate());return G.getTime()===P.getTime()}),k=(S,B)=>{const G=[],P=new Date(S,B,1),Q=new Date(S,B+1,0),U=P.getDay(),D=new Date(S,B,0).getDate();for(let q=U-1;q>=0;q--){const oe=new Date(S,B-1,D-q);G.push({date:oe,events:x(oe),isPrevMonth:!0})}for(let q=P;q<=Q;q.setDate(q.getDate()+1))G.push({date:new Date(q),events:x(new Date(q)),isPrevMonth:!1,isNextMonth:!1});const F=42-G.length;for(let q=1;q<=F;q++){const oe=new Date(S,B+1,q);G.push({date:oe,events:x(oe),isNextMonth:!0})}return G},A=t.ref([]),_=()=>{A.value=k(u.value,m.value)};t.onMounted(async()=>{await v(),_()});const T=()=>{m.value===0?(m.value=11,u.value--):m.value--,f.value={year:u.value,month:m.value},_()},N=()=>{m.value===11?(m.value=0,u.value++):m.value++,f.value={year:u.value,month:m.value},_()};return(S,B)=>{const G=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",h5,[t.createElementVNode("div",p5,[t.renderSlot(S.$slots,"backButton",{},void 0,!0),t.createElementVNode("button",{onClick:T,class:"calendar-button"},B[2]||(B[2]=[t.createElementVNode("svg",{class:"icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M5 12l4-4m-4 4 4 4"})],-1)])),t.createElementVNode("div",null,[t.createVNode(t.unref(xn),{dark:e.theme,"cancel-text":"Cancelar","select-text":"Selecionar",locale:"pt-BR",modelValue:f.value,"onUpdate:modelValue":[B[0]||(B[0]=P=>f.value=P),p],format:g,"only-month-picker":!0,"month-picker":!0},{"clear-icon":t.withCtx(({clear:P})=>B[3]||(B[3]=[])),_:1},8,["dark","modelValue"])]),t.createElementVNode("button",{onClick:N,class:"calendar-button"},B[4]||(B[4]=[t.createElementVNode("svg",{class:"icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 12H5m14 0-4 4m4-4-4-4"})],-1)]))]),t.createElementVNode("div",g5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(P,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q,class:"day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"},t.toDisplayString(P),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(A.value,(P,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q,class:t.normalizeClass([{"empty-day":!P.date,"prev-month-day":P.isPrevMonth,"next-month-day":P.isNextMonth},"day group h-full shadow shadow-black/90 dark:shadow-gray-400 bg-base-300 hover:bg-base-200 border border-base-200"])},[t.createElementVNode("div",y5,[t.createElementVNode("div",k5,t.toDisplayString(P.date.getDate()),1),t.createElementVNode("button",{disabled:P.date<new Date(new Date().setHours(0,0,0,0)),onClick:U=>(n.value.modal=!0,n.value.date=P.date),class:"add-event-button hidden group-hover:inline-block"},B[5]||(B[5]=[t.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7 7V5"})],-1)]),8,b5)]),P.events.length>0?(t.openBlock(),t.createElementBlock("footer",{key:0,onClick:U=>s(P),class:"events-container cursor-pointer"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(P.events,U=>(t.openBlock(),t.createElementBlock("div",{key:U.title,class:"event"},[t.createElementVNode("main",w5,[t.createVNode(G,{placement:"top",class:"dark:popper-light popper-dark",hover:!0,content:U.hours},{default:t.withCtx(()=>B[6]||(B[6]=[t.createElementVNode("svg",{class:"event-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm11-4a1 1 0 1 0-2 0v4a1 1 0 0 0 .293.707l3 3a1 1 0 0 0 1.414-1.414L13 11.586V8Z","clip-rule":"evenodd"})],-1)])),_:2,__:[6]},1032,["content"]),t.createElementVNode("p",v5,t.toDisplayString(U.title),1)])]))),128))],8,x5)):t.createCommentVNode("",!0)],2))),128))])]),t.createVNode(nl,{modelValue:a.value.seeEvents,"onUpdate:modelValue":B[1]||(B[1]=P=>a.value.seeEvents=P)},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.value.date),1)]),body:t.withCtx(()=>[t.createElementVNode("table",E5,[B[8]||(B[8]=t.createElementVNode("thead",{class:"bg-base-200 rounded-md flex text-white w-full"},[t.createElementVNode("tr",{class:"flex font-normal w-full"},[t.createElementVNode("th",{class:"p-2 w-[40%]"},"Evento"),t.createElementVNode("th",{class:"p-2 w-1/4"},"Horário"),t.createElementVNode("th",{class:"p-2 w-1/4"},"Paramêtros"),t.createElementVNode("th",{class:"p-2 w-1/4"},"Ações")])],-1)),t.createElementVNode("tbody",C5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value.events,P=>(t.openBlock(),t.createElementBlock("tr",{key:P.title,class:"flex mt-1 hover:bg-base-200 align-middle items-center rounded-xl py-2 w-full"},[t.createElementVNode("td",S5,t.toDisplayString(P.title),1),t.createElementVNode("td",M5,t.toDisplayString(P.hours),1),t.createElementVNode("td",B5,t.toDisplayString(P.date),1),t.createElementVNode("td",A5,[t.createElementVNode("button",{onClick:Q=>o(P),class:"bg-green-500 hover:bg-green-400 rounded-md p-1"},B[7]||(B[7]=[t.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"})],-1)]),8,V5)])]))),128))])])]),_:1},8,["modelValue"]),n.value.modal?(t.openBlock(),t.createBlock(m5,{key:0,currentEvent:r.value,currentChat:e.currentChat,token:e.token,onClose:i,modal:n.value.modal,date:n.value.date},null,8,["currentEvent","currentChat","token","modal","date"])):t.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-972e6756"]]),_5={class:"flex flex-col text-center"},N5={class:"flex flex-col space-y-3 justify-center"},D5={class:"space-x-4 flex-col text-black justify-center"},T5=["onUpdate:modelValue","onInput","onKeydown"],sl={__name:"mfa",props:{eventHandling:{type:String,default:null}},emits:["filled","reset"],setup(e,{emit:a}){t.onMounted(()=>{o.value[0].focus()});const n=a,r=t.ref(Array(6).fill("")),o=t.ref([]);t.ref(!1);const i=m=>{const u=r.value[m];r.value[0]<1&&n("reset"),/^\d$/.test(u)?s(m):r.value[m]="",m===r.value.length-1&&r.value.every(f=>f!=="")&&c()},s=m=>{m<r.value.length-1&&r.value[m]&&o.value[m+1].focus()},l=(m,u)=>{u.key==="Backspace"&&!r.value[m]&&m>0&&o.value[m-1].focus()},c=()=>{const m=r.value.join("");n("filled",m)};return(m,u)=>(t.openBlock(),t.createElementBlock("section",_5,[t.createElementVNode("div",N5,[t.createElementVNode("div",D5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(f,d)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:d,"onUpdate:modelValue":p=>r.value[d]=p,class:t.normalizeClass([e.eventHandling==="check"?"checked_mfa":e.eventHandling==="err"?"err_mfa":"reset_input","inline-block w-10 h-10 rounded-md text-center"]),type:"text",maxlength:"1",onInput:p=>i(d),onKeydown:t.withKeys(p=>l(d,p),["backspace"]),ref_for:!0,ref_key:"inputs",ref:o},null,42,T5)),[[t.vModelText,r.value[d]]])),128))])])]))}},P5={class:"text-center flex gap-3"},O5={class:"flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black"},F5={key:0,class:"items-center justify-center inline-flex"},L5=["src"],$5={__name:"mfaQrCode",props:{base64:{type:String,default:""},dimensions:{type:Array,default:null},loading:{type:Boolean,default:!1},generated:{type:Boolean,default:!1}},emits:["generateQR"],setup(e,{emit:a}){const n=a;t.ref(!1);const r=e,o=()=>{n("generateQR")},i=t.computed(()=>r.base64?r.base64:l.value),s=t.computed(()=>`w-${r.dimensions[0]} h-${r.dimensions[1]}`),l=t.ref("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII=");return(c,m)=>(t.openBlock(),t.createElementBlock("div",P5,[t.createElementVNode("section",O5,[e.generated?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([s.value,"btnQrCode"])},[e.loading?(t.openBlock(),t.createElementBlock("div",F5,m[0]||(m[0]=[t.createElementVNode("div",{class:"loaderMFA"},null,-1)]))):(t.openBlock(),t.createElementBlock("button",{key:1,class:"uppercase bg-base-300 p-2 z-40",onClick:o}," Gerar QR "))],2)),t.createElementVNode("img",{class:t.normalizeClass([[s.value,e.generated?"rounded-md":"rounded-none"],""]),src:i.value,alt:"QRCode"},null,10,L5)])]))}},er=It.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),actions:{async fetchAttendants(){try{this.attendants=[];let e=`${t2}`;const a=await ra.get(e);this.attendants=a.data,this.count=this.attendants.length}catch(e){console.log("Erro ao buscar atendentes:",e)}},removeAttendants(e){this.attendants=this.attendants.filter(a=>a.id!==e)},addAttendants(e){const a=this.attendants.findIndex(n=>n.id===e.id);a!==-1?this.attendants[a]=e:this.attendants.push(e)}}});for(var ht=[],vo=0;vo<256;++vo)ht.push((vo+256).toString(16).slice(1));function R5(e,a=0){return(ht[e[a+0]]+ht[e[a+1]]+ht[e[a+2]]+ht[e[a+3]]+"-"+ht[e[a+4]]+ht[e[a+5]]+"-"+ht[e[a+6]]+ht[e[a+7]]+"-"+ht[e[a+8]]+ht[e[a+9]]+"-"+ht[e[a+10]]+ht[e[a+11]]+ht[e[a+12]]+ht[e[a+13]]+ht[e[a+14]]+ht[e[a+15]]).toLowerCase()}var tr,H5=new Uint8Array(16);function z5(){if(!tr&&(tr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tr(H5)}var I5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ll={randomUUID:I5};function G5(e,a,n){if(ll.randomUUID&&!e)return ll.randomUUID();e=e||{};var r=e.random||(e.rng||z5)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,R5(r)}function cl(){const e=er(),a=async l=>{const c=e.attendants.find(m=>m.id===l);if(c)try{const m=await ra.get(`${Lr}?attendant=${l}&page=1`);c.messages=m.data.results.reverse(),c.hasNextPage=m.data.next!==null,c.currentPage=2,c.internal_chat={channel_id:m.data.channel_id,unread:0}}catch(m){console.error("Erro ao buscar mensagens:",m)}},n=async l=>{const c=e.attendants.find(m=>m.id===l);if(!(!c||!c.hasNextPage))try{const m=await ra.get(`${Lr}?attendant=${l}&page=${c.currentPage}`);c.messages=[...m.data.results.reverse(),...c.messages],c.hasNextPage=m.data.next!==null,c.currentPage++}catch(m){console.error("Erro ao carregar mais mensagens:",m)}},r=(l,c,m)=>{const u=l==null?void 0:l.message;if(!u)return;const f=e.attendants.find(d=>{var p;return((p=d.internal_chat)==null?void 0:p.channel_id)===u.channel_id});f?(f.messages=f.messages||[],f.messages.find(p=>p.id===u.id)||(f.messages.push(u),(!c||f.id!==m)&&(f.internal_chat.unread=(f.internal_chat.unread||0)+1))):console.error("Atendente não encontrado para o canal especificado.")},o=l=>{const c=e.attendants.find(m=>m.id===l);c&&(c.internal_chat.unread=0)},i=async(l,c,m,u=!1)=>{var h;const f=e.attendants.find(g=>g.id===l);if(!f||!((h=f.internal_chat)!=null&&h.channel_id))return;let d;u?d=c:d={type:"text",content:c};const p={id:G5(),content:d,created_at:new Date().toISOString(),sender:m};f.messages.push(p);try{await ra.post(`${Lr}${f.internal_chat.channel_id}/message/`,{id:p.id,content:p.content})}catch(g){console.error("Erro ao enviar mensagem:",g)}},s=l=>{const c=e.attendants.find(m=>m.id===l);return c?c.hasNextPage:!1};return{attendants:t.computed(()=>e.attendants),count:t.computed(()=>e.count),fetchMessagesForAtendente:a,loadMessagesForAtendente:n,addMessageToAtendente:r,sendMessageToAtendente:i,hasNextPageForAtendente:s,resetUnreadMessages:o}}const j5={class:"avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500"},q5={key:0,style:{"padding-top":"0.5rem"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},W5=["src"],Eo=je({__name:"Avatar",props:{url:{type:String}},setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("div",j5,[e.url?(t.openBlock(),t.createElementBlock("img",{key:1,style:{"object-fit":"scale-down"},src:e.url},null,8,W5)):(t.openBlock(),t.createElementBlock("svg",q5,n[0]||(n[0]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"},null,-1)])))]))}},[["__scopeId","data-v-7d8b2820"]]),Y5={class:"attendants-container"},U5={class:"atendentes-list bg-base-300"},X5={key:0,class:"empty-message bg-base-200"},Z5=["onClick"],Q5={class:"atendente-main"},K5={class:"atendente-name"},J5={class:"flex items-center gap-4"},e6={key:0,class:"message-indicator"},t6={key:0,class:"chat-footer bg-base-200"},dl=je({__name:"ChatList",props:{atendentes:{type:Array,required:!0},attendant:{required:!0},mobile:{type:Boolean,default:!1}},emits:["atendenteSelecionado"],setup(e,{emit:a}){const n=e,r=a,o=t.ref(""),i=c=>{r("atendenteSelecionado",c)},s=c=>{switch(c){case"Busy":return"bg-red-500";case"Online":return"bg-green-500";case"Away":return"bg-yellow-500";case"Offline":return"bg-gray-500";default:return"bg-purple-500"}},l=t.computed(()=>o.value?n.atendentes.filter(c=>c.name.toLowerCase().includes(o.value.toLowerCase())&&c.id!==n.attendant.id):n.atendentes.filter(c=>c.id!==n.attendant.id));return(c,m)=>(t.openBlock(),t.createElementBlock("div",Y5,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":m[0]||(m[0]=u=>o.value=u),class:t.normalizeClass(e.mobile?"search-input-mobile bg-base-300 border-b border-base-200":"search-input bg-base-300 border-b border-base-200"),placeholder:"Pesquise entre os atendentes..."},null,2),[[t.vModelText,o.value]]),t.createElementVNode("ul",U5,[l.value.length===0?(t.openBlock(),t.createElementBlock("li",X5,t.toDisplayString(e.atendentes.length===0?"Não há atendentes disponíveis":"Não há atendentes com esse nome"),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,u=>(t.openBlock(),t.createElementBlock("li",{key:u.id,onClick:f=>i(u),class:t.normalizeClass([["atendente-item",u.isMoved?"moved":""],"border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])},[t.createElementVNode("main",Q5,[t.createVNode(Eo,{url:u.photo},null,8,["url"]),t.createElementVNode("span",K5,t.toDisplayString(u.name),1)]),t.createElementVNode("footer",J5,[u.internal_chat.unread>0?(t.openBlock(),t.createElementBlock("span",e6,t.toDisplayString(u.internal_chat.unread),1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["status-indicator",s(u.login_status)])},null,2)]),m[1]||(m[1]=t.createElementVNode("div",{class:"hover-action"},"Conversar",-1))],10,Z5))),128))]),e.mobile?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("footer",t6))]))}},[["__scopeId","data-v-dc8950e9"]]);function a6(e,a=null){if(!e)return!1;const n=e.getBoundingClientRect(),r=a?a.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>=r.top&&n.top<=r.bottom&&n.right>=r.left&&n.left<=r.right}async function n6(e){return e?(await t.nextTick(),e.value instanceof HTMLElement?e.value:e.value?document.querySelector(e.value):null):null}function r6(e){let a=`0px 0px ${e.distance}px 0px`;e.top&&(a=`${e.distance}px 0px 0px 0px`);const n=new IntersectionObserver(r=>{r[0].isIntersecting&&(e.firstload&&e.emit(),e.firstload=!0)},{root:e.parentEl,rootMargin:a});return e.infiniteLoading.value&&n.observe(e.infiniteLoading.value),n}async function ul(e,a){if(await t.nextTick(),!e.top)return;const n=e.parentEl||document.documentElement;n.scrollTop=n.scrollHeight-a}const fl=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},o6={},i6=e=>(t.pushScopeId("data-v-d3e37633"),e=e(),t.popScopeId(),e),s6={class:"container"},l6=i6(()=>t.createElementVNode("div",{class:"spinner"},null,-1)),c6=[l6];function d6(e,a){return t.openBlock(),t.createElementBlock("div",s6,c6)}const u6=fl(o6,[["render",d6],["__scopeId","data-v-d3e37633"]]),f6={class:"state-error"},Co=fl(t.defineComponent({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(e,{emit:a}){const n=e;let r=null,o=0;const i=t.ref(null),s=t.ref(""),{top:l,firstload:c,distance:m}=n,{identifier:u,target:f}=t.toRefs(n),d={infiniteLoading:i,top:l,firstload:c,distance:m,parentEl:null,emit(){o=(d.parentEl||document.documentElement).scrollHeight,p.loading(),a("infinite",p)}},p={loading(){s.value="loading"},async loaded(){s.value="loaded",await ul(d,o),a6(i.value,d.parentEl)&&d.emit()},async complete(){s.value="complete",await ul(d,o),r==null||r.disconnect()},error(){s.value="error"}};function h(){r==null||r.disconnect(),r=r6(d)}return t.watch(u,h),t.onMounted(async()=>{d.parentEl=await n6(f),h()}),t.onUnmounted(()=>r==null?void 0:r.disconnect()),(g,b)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"infiniteLoading",ref:i,class:"v3-infinite-loading"},[t.withDirectives(t.createElementVNode("div",null,[t.renderSlot(g.$slots,"spinner",{},()=>[t.createVNode(u6)],!0)],512),[[t.vShow,s.value=="loading"]]),s.value=="complete"?t.renderSlot(g.$slots,"complete",{key:0},()=>{var v;return[t.createElementVNode("span",null,t.toDisplayString(((v=g.slots)==null?void 0:v.complete)||"No more results!"),1)]},!0):t.createCommentVNode("",!0),s.value=="error"?t.renderSlot(g.$slots,"error",{key:1,retry:d.emit},()=>{var v;return[t.createElementVNode("span",f6,[t.createElementVNode("span",null,t.toDisplayString(((v=g.slots)==null?void 0:v.error)||"Oops something went wrong!"),1),t.createElementVNode("button",{class:"retry",onClick:b[0]||(b[0]=(...x)=>d.emit&&d.emit(...x))},"retry")])]},!0):t.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]),ml=6048e5,m6=864e5,hl=Symbol.for("constructDateFrom");function _t(e,a){return typeof e=="function"?e(a):e&&typeof e=="object"&&hl in e?e[hl](a):e instanceof Date?new e.constructor(a):new Date(a)}function Nt(e,a){return _t(a||e,e)}function h6(e,a,n){const r=Nt(e,n==null?void 0:n.in);return isNaN(a)?_t(e,NaN):(r.setDate(r.getDate()+a),r)}let p6={};function ar(){return p6}function Da(e,a){var l,c,m,u;const n=ar(),r=(a==null?void 0:a.weekStartsOn)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,o=Nt(e,a==null?void 0:a.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function nr(e,a){return Da(e,{...a,weekStartsOn:1})}function pl(e,a){const n=Nt(e,a==null?void 0:a.in),r=n.getFullYear(),o=_t(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=nr(o),s=_t(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=nr(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function gl(e){const a=Nt(e),n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),+e-+n}function So(e,...a){const n=_t.bind(null,a.find(r=>typeof r=="object"));return a.map(n)}function rr(e,a){const n=Nt(e,a==null?void 0:a.in);return n.setHours(0,0,0,0),n}function g6(e,a,n){const[r,o]=So(n==null?void 0:n.in,e,a),i=rr(r),s=rr(o),l=+i-gl(i),c=+s-gl(s);return Math.round((l-c)/m6)}function y6(e,a){const n=pl(e,a),r=_t(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),nr(r)}function Mo(e){return _t(e,Date.now())}function yl(e,a,n){const[r,o]=So(n==null?void 0:n.in,e,a);return+rr(r)==+rr(o)}function k6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function b6(e){return!(!k6(e)&&typeof e!="number"||isNaN(+Nt(e)))}function x6(e,a){const n=Nt(e,a==null?void 0:a.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const w6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},v6=(e,a,n)=>{let r;const o=w6[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xa(e){return(a={})=>{const n=a.width?String(a.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const E6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},C6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M6={date:Xa({formats:E6,defaultWidth:"full"}),time:Xa({formats:C6,defaultWidth:"full"}),dateTime:Xa({formats:S6,defaultWidth:"full"})},B6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},A6=(e,a,n,r)=>B6[e];function Ut(e){return(a,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(a):a;return o[i]}}const V6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},N6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},D6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},T6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},O6={ordinalNumber:(e,a)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ut({values:V6,defaultWidth:"wide"}),quarter:Ut({values:_6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ut({values:N6,defaultWidth:"wide"}),day:Ut({values:D6,defaultWidth:"wide"}),dayPeriod:Ut({values:T6,defaultWidth:"wide",formattingValues:P6,defaultFormattingWidth:"wide"})};function Xt(e){return(a,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=a.match(o);if(!i)return null;const s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?L6(l,f=>f.test(s)):F6(l,f=>f.test(s));let m;m=e.valueCallback?e.valueCallback(c):c,m=n.valueCallback?n.valueCallback(m):m;const u=a.slice(s.length);return{value:m,rest:u}}}function F6(e,a){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&a(e[n]))return n}function L6(e,a){for(let n=0;n<e.length;n++)if(a(e[n]))return n}function kl(e){return(a,n={})=>{const r=a.match(e.matchPattern);if(!r)return null;const o=r[0],i=a.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=a.slice(o.length);return{value:s,rest:l}}}const $6=/^(\d+)(th|st|nd|rd)?/i,R6=/\d+/i,H6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},z6={any:[/^b/i,/^(a|c)/i]},I6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},G6={any:[/1/i,/2/i,/3/i,/4/i]},j6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},q6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},W6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Y6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},U6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},X6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Z6={ordinalNumber:kl({matchPattern:$6,parsePattern:R6,valueCallback:e=>parseInt(e,10)}),era:Xt({matchPatterns:H6,defaultMatchWidth:"wide",parsePatterns:z6,defaultParseWidth:"any"}),quarter:Xt({matchPatterns:I6,defaultMatchWidth:"wide",parsePatterns:G6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Xt({matchPatterns:j6,defaultMatchWidth:"wide",parsePatterns:q6,defaultParseWidth:"any"}),day:Xt({matchPatterns:W6,defaultMatchWidth:"wide",parsePatterns:Y6,defaultParseWidth:"any"}),dayPeriod:Xt({matchPatterns:U6,defaultMatchWidth:"any",parsePatterns:X6,defaultParseWidth:"any"})},Q6={code:"en-US",formatDistance:v6,formatLong:M6,formatRelative:A6,localize:O6,match:Z6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function K6(e,a){const n=Nt(e,a==null?void 0:a.in);return g6(n,x6(n))+1}function J6(e,a){const n=Nt(e,a==null?void 0:a.in),r=+nr(n)-+y6(n);return Math.round(r/ml)+1}function bl(e,a){var u,f,d,p;const n=Nt(e,a==null?void 0:a.in),r=n.getFullYear(),o=ar(),i=(a==null?void 0:a.firstWeekContainsDate)??((f=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(d=o.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=_t((a==null?void 0:a.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=Da(s,a),c=_t((a==null?void 0:a.in)||e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const m=Da(c,a);return+n>=+l?r+1:+n>=+m?r:r-1}function e7(e,a){var l,c,m,u;const n=ar(),r=(a==null?void 0:a.firstWeekContainsDate)??((c=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(m=n.locale)==null?void 0:m.options)==null?void 0:u.firstWeekContainsDate)??1,o=bl(e,a),i=_t((a==null?void 0:a.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Da(i,a)}function t7(e,a){const n=Nt(e,a==null?void 0:a.in),r=+Da(n,a)-+e7(n,a);return Math.round(r/ml)+1}function Ge(e,a){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(a,"0");return n+r}const ma={y(e,a){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(a==="yy"?r%100:r,a.length)},M(e,a){const n=e.getMonth();return a==="M"?String(n+1):Ge(n+1,2)},d(e,a){return Ge(e.getDate(),a.length)},a(e,a){const n=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,a){return Ge(e.getHours()%12||12,a.length)},H(e,a){return Ge(e.getHours(),a.length)},m(e,a){return Ge(e.getMinutes(),a.length)},s(e,a){return Ge(e.getSeconds(),a.length)},S(e,a){const n=a.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ge(o,a.length)}},Za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xl={G:function(e,a,n){const r=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ma.y(e,a)},Y:function(e,a,n,r){const o=bl(e,r),i=o>0?o:1-o;if(a==="YY"){const s=i%100;return Ge(s,2)}return a==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ge(i,a.length)},R:function(e,a){const n=pl(e);return Ge(n,a.length)},u:function(e,a){const n=e.getFullYear();return Ge(n,a.length)},Q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return Ge(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){const r=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return Ge(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){const r=e.getMonth();switch(a){case"M":case"MM":return ma.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){const r=e.getMonth();switch(a){case"L":return String(r+1);case"LL":return Ge(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){const o=t7(e,r);return a==="wo"?n.ordinalNumber(o,{unit:"week"}):Ge(o,a.length)},I:function(e,a,n){const r=J6(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ma.d(e,a)},D:function(e,a,n){const r=K6(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(r,a.length)},E:function(e,a,n){const r=e.getDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(i);case"cc":return Ge(i,a.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,n){const r=e.getDay(),o=r===0?7:r;switch(a){case"i":return String(o);case"ii":return Ge(o,a.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){const o=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,n){const r=e.getHours();let o;switch(r===12?o=Za.noon:r===0?o=Za.midnight:o=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,n){const r=e.getHours();let o;switch(r>=17?o=Za.evening:r>=12?o=Za.afternoon:r>=4?o=Za.morning:o=Za.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ma.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ma.H(e,a)},K:function(e,a,n){const r=e.getHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,a.length)},k:function(e,a,n){let r=e.getHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ma.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ma.s(e,a)},S:function(e,a){return ma.S(e,a)},X:function(e,a,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(a){case"X":return vl(r);case"XXXX":case"XX":return Ta(r);case"XXXXX":case"XXX":default:return Ta(r,":")}},x:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"x":return vl(r);case"xxxx":case"xx":return Ta(r);case"xxxxx":case"xxx":default:return Ta(r,":")}},O:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+wl(r,":");case"OOOO":default:return"GMT"+Ta(r,":")}},z:function(e,a,n){const r=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+wl(r,":");case"zzzz":default:return"GMT"+Ta(r,":")}},t:function(e,a,n){const r=Math.trunc(+e/1e3);return Ge(r,a.length)},T:function(e,a,n){return Ge(+e,a.length)}};function wl(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+a+Ge(i,2)}function vl(e,a){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):Ta(e,a)}function Ta(e,a=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ge(Math.trunc(r/60),2),i=Ge(r%60,2);return n+o+a+i}const El=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Cl=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},a7={p:Cl,P:(e,a)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return El(e,a);let i;switch(r){case"P":i=a.dateTime({width:"short"});break;case"PP":i=a.dateTime({width:"medium"});break;case"PPP":i=a.dateTime({width:"long"});break;case"PPPP":default:i=a.dateTime({width:"full"});break}return i.replace("{{date}}",El(r,a)).replace("{{time}}",Cl(o,a))}},n7=/^D+$/,r7=/^Y+$/,o7=["D","DD","YY","YYYY"];function i7(e){return n7.test(e)}function s7(e){return r7.test(e)}function l7(e,a,n){const r=c7(e,a,n);if(console.warn(r),o7.includes(e))throw new RangeError(r)}function c7(e,a,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const d7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f7=/^'([^]*?)'?$/,m7=/''/g,h7=/[a-zA-Z]/;function Sl(e,a,n){var u,f,d,p,h,g,b,v;const r=ar(),o=(n==null?void 0:n.locale)??r.locale??Q6,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,l=Nt(e,n==null?void 0:n.in);if(!b6(l))throw new RangeError("Invalid time value");let c=a.match(u7).map(x=>{const k=x[0];if(k==="p"||k==="P"){const A=a7[k];return A(x,o.formatLong)}return x}).join("").match(d7).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const k=x[0];if(k==="'")return{isToken:!1,value:p7(x)};if(xl[k])return{isToken:!0,value:x};if(k.match(h7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const m={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(x=>{if(!x.isToken)return x.value;const k=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&s7(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&i7(k))&&l7(k,a,String(e));const A=xl[k[0]];return A(l,k,o.localize,m)}).join("")}function p7(e){const a=e.match(f7);return a?a[1].replace(m7,"'"):e}function g7(e,a,n){const[r,o]=So(n==null?void 0:n.in,e,a);return+Da(r,n)==+Da(o,n)}function y7(e,a){return g7(_t(e,e),Mo(e),a)}function k7(e,a){return yl(_t(e,e),Mo(e))}function b7(e,a,n){return h6(e,-1,n)}function x7(e,a){return yl(_t(e,e),b7(Mo(e)))}const w7={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},v7=(e,a,n)=>{let r;const o=w7[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",String(a)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"há "+r:r},E7={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},C7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},S7={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M7={date:Xa({formats:E7,defaultWidth:"full"}),time:Xa({formats:C7,defaultWidth:"full"}),dateTime:Xa({formats:S7,defaultWidth:"full"})},B7={lastWeek:e=>{const a=e.getDay();return"'"+(a===0||a===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},A7=(e,a,n,r)=>{const o=B7[e];return typeof o=="function"?o(a):o},V7={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},_7={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},N7={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},D7={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},T7={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},P7={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},O7={ordinalNumber:(e,a)=>{const n=Number(e);return(a==null?void 0:a.unit)==="week"?n+"ª":n+"º"},era:Ut({values:V7,defaultWidth:"wide"}),quarter:Ut({values:_7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ut({values:N7,defaultWidth:"wide"}),day:Ut({values:D7,defaultWidth:"wide"}),dayPeriod:Ut({values:T7,defaultWidth:"wide",formattingValues:P7,defaultFormattingWidth:"wide"})},F7=/^(\d+)[ºªo]?/i,L7=/\d+/i,$7={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},R7={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},H7={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},z7={any:[/1/i,/2/i,/3/i,/4/i]},I7={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},G7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},j7={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},q7={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},W7={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Y7={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},U7={ordinalNumber:kl({matchPattern:F7,parsePattern:L7,valueCallback:e=>parseInt(e,10)}),era:Xt({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:R7,defaultParseWidth:"any"}),quarter:Xt({matchPatterns:H7,defaultMatchWidth:"wide",parsePatterns:z7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Xt({matchPatterns:I7,defaultMatchWidth:"wide",parsePatterns:G7,defaultParseWidth:"any"}),day:Xt({matchPatterns:j7,defaultMatchWidth:"wide",parsePatterns:q7,defaultParseWidth:"any"}),dayPeriod:Xt({matchPatterns:W7,defaultMatchWidth:"any",parsePatterns:Y7,defaultParseWidth:"any"})},Ml={code:"pt-BR",formatDistance:v7,formatLong:M7,formatRelative:A7,localize:O7,match:U7,options:{weekStartsOn:0,firstWeekContainsDate:1}};/*! License details at fancyapps.com/license */const mt=e=>typeof e=="string";/*! License details at fancyapps.com/license */const Qa=e=>e&&e!==null&&e instanceof Element&&"nodeType"in e;/*! License details at fancyapps.com/license */const X7=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const a=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,r=n.indexOf("hidden")!==-1,o=n.indexOf("visible")!==-1;return a&&!r&&!o},wn=function(e,a=void 0){return!e||e===document.body||a&&e===a?null:X7(e)?e:wn(e.parentElement,a)};/*! License details at fancyapps.com/license */const ha=function(e){var a=new DOMParser().parseFromString(e,"text/html").body;if(a.childElementCount>1){for(var n=document.createElement("div");a.firstChild;)n.appendChild(a.firstChild);return n}let r=a.firstChild;return!r||r instanceof HTMLElement?r:((n=document.createElement("div")).appendChild(r),n)};/*! License details at fancyapps.com/license */const $e=function(e=0,a=0,n=0){return Math.max(Math.min(a,n),e)};/*! License details at fancyapps.com/license */const Et=e=>typeof e=="object"&&e!==null&&e.constructor===Object&&Object.prototype.toString.call(e)==="[object Object]";/*! License details at fancyapps.com/license */function Bl(e){return Et(e)||Array.isArray(e)}function Bo(e,a){const n=Object.keys(e),r=Object.keys(a);return n.length===r.length&&n.every(o=>{const i=e[o],s=a[o];return typeof i=="function"?`${i}`==`${s}`:Bl(i)&&Bl(s)?Bo(i,s):i===s})}/*! License details at fancyapps.com/license */const Al=function(e){for(const a of or)a.getState()===Ct.Running&&a.tick(Ao?e-Ao:0);Ao=e,Ja=window.requestAnimationFrame(Al)};var Ct,pa,Ka;(function(e){e[e.Initializing=0]="Initializing",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Completed=3]="Completed",e[e.Destroyed=4]="Destroyed"})(Ct||(Ct={})),function(e){e[e.Spring=0]="Spring",e[e.Ease=1]="Ease"}(pa||(pa={})),function(e){e[e.Loop=0]="Loop",e[e.Reverse=1]="Reverse"}(Ka||(Ka={}));const or=new Set;let Ja=null,Ao=0;function ga(){let e=Ct.Initializing,a=pa.Ease,n=0,r=0,o=ga.Easings.Linear,i=500,s=0,l=0,c=0,m=0,u=1/0,f=.01,d=.01,p=!1,h={},g=null,b={},v={},x={},k=0,A=0,_=Ka.Loop,T=ga.Easings.Linear;const N=new Map;function S(U,...E){for(const D of N.get(U)||[])D(...E)}function B(U){return r=0,U?g=setTimeout(()=>{G()},U):G(),Q}function G(){e=Ct.Running,S("start",b,v)}function P(){if(e=Ct.Completed,x={},S("end",b),e===Ct.Completed)if(n<k){if(n++,_===Ka.Reverse){const U=Object.assign({},h);h=Object.assign({},v),v=U}B(A)}else n=0;return Q}const Q={getState:function(){return e},easing:function(U){return o=U,a=pa.Ease,x={},Q},duration:function(U){return i=U,Q},spring:function(U={}){a=pa.Spring;const E={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:D,mass:F,tension:q,friction:oe,restDelta:V,restSpeed:w,maxSpeed:X,clamp:K}=Object.assign(Object.assign({},E),U);return s=D,l=F,c=q,m=oe,d=V,f=w,u=X,p=K,x={},Q},isRunning:function(){return e===Ct.Running},isSpring:function(){return a===pa.Spring},from:function(U){return b=Object.assign({},U),Q},to:function(U){return v=U,Q},repeat:function(U,E=0,D=Ka.Loop,F){return k=U,A=E,_=D,T=F||o,Q},on:function(U,E){var D,F;return D=U,F=E,N.set(D,[...N.get(D)||[],F]),Q},off:function(U,E){var D,F;return D=U,F=E,N.has(D)&&N.set(D,N.get(D).filter(q=>q!==F)),Q},start:function(U){return e=Ct.Initializing,h=Object.assign({},b),Bo(h,v)||(or.add(this),Ja||(Ja=window.requestAnimationFrame(Al)),B(U)),Q},pause:function(){return g&&(clearTimeout(g),g=null),e===Ct.Running&&(e=Ct.Paused,S("pause",b)),Q},end:P,tick:function(U){U>50&&(U=50),r+=U;let E=0,D=!1;if(e!==Ct.Running)return Q;if(a===pa.Ease){E=$e(0,r/i,1),D=E===1;const q=_===Ka.Reverse?T:o;for(const oe in b)b[oe]=h[oe]+(v[oe]-h[oe])*q(E)}if(a===pa.Spring){const q=.001*U;let oe=0;for(const V in b){const w=v[V];let X=b[V];if(typeof w!="number"||isNaN(w)||typeof X!="number"||isNaN(X))continue;if(Math.abs(w-X)<=d){b[V]=w,x[V]=0;continue}x[V]||(typeof s=="object"&&typeof s[V]=="number"?x[V]=s[V]:x[V]=typeof s=="number"?s:0);let K=x[V];K=$e(-1*Math.abs(u),K,Math.abs(u));const W=K*l*m;K+=((X>w?-1:1)*(Math.abs(w-X)*c)-W)/l*q,X+=K*q;const M=b[V]>w?X<w:X>w;let J=Math.abs(K)<f&&Math.abs(w-X)<=d;p&&M&&(J=!0),J?(X=w,K=0):oe++,b[V]=X,x[V]=K}D=!oe}const F=Object.assign({},v);return S("step",b,h,v,E),D&&e===Ct.Running&&Bo(v,F)&&(e=Ct.Completed,P()),Q},getStartValues:function(){return h},getCurrentValues:function(){return b},getCurrentVelocities:function(){return x},getEndValues:function(){return v},destroy:function(){e=Ct.Destroyed,g&&(clearTimeout(g),g=null),h=b=v={},or.delete(this)}};return Q}ga.destroy=()=>{for(const e of or)e.destroy();Ja&&(cancelAnimationFrame(Ja),Ja=null)},ga.Easings={Linear:function(e){return e},EaseIn:function(e){return e===0?0:Math.pow(2,10*e-10)},EaseOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},EaseInOut:function(e){return e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}};/*! License details at fancyapps.com/license */function Vo(e){const a=[],n=typeof TouchEvent<"u"&&e instanceof TouchEvent?e.touches:e instanceof MouseEvent&&e.type!=="mouseup"?[e]:[];for(const r of n)a.push({x:r.clientX,y:r.clientY,ts:Date.now()});return a}function Vl(e){const a=[],n=typeof TouchEvent<"u"&&e instanceof TouchEvent?e.changedTouches:e instanceof MouseEvent?[e]:[];for(const r of n)a.push({x:r.clientX,y:r.clientY,ts:Date.now()});return a}function ya(e){const a=e[0],n=e[1]||a;return{x:(a.x+n.x)/2,y:(a.y+n.y)/2,ts:n.ts}}function ir(e){const a=e[0],n=e[1]||e[0];return a&&n?-1*Math.sqrt((n.x-a.x)*(n.x-a.x)+(n.y-a.y)*(n.y-a.y)):0}const _l=e=>{e.cancelable&&e.preventDefault()},ka={passive:!1},Z7={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let _o=!1,vn=!0;const En=(e,a)=>{let n,r,o,i=Object.assign(Object.assign({},Z7),a),s=[],l=[],c=[],m=!1,u=!1,f=!1,d=0,p=0,h=0,g=0,b=0,v=0,x=0,k=0,A=0,_=[],T=0,N=0;const S=new Map;function B(V){const w=ir(l),X=ir(c),K=w&&X?w/X:0,W=Math.abs(x)>Math.abs(k)?x:k,M={srcEvent:n,isPanRecognized:m,isSwipeRecognized:u,firstTouch:s,previousTouch:c,currentTouch:l,deltaX:h,deltaY:g,offsetX:b,offsetY:v,velocityX:x,velocityY:k,velocity:W,angle:A,axis:o,scale:K,center:r};for(const J of S.get(V)||[])J(M)}function G(V){const w=Date.now();_=_.filter(X=>!X.ts||X.ts>w-100),V&&_.push(V)}function P(){if(x=0,k=0,_.length>3){const V=_[0],w=_[_.length-1];if(V&&w){const X=w.x-V.x,K=w.y-V.y,W=V.ts&&w.ts?w.ts-V.ts:0;W>0&&(x=Math.abs(X)>3?X/(W/30):0,k=Math.abs(K)>3?K/(W/30):0)}}}function Q(V){if(V instanceof MouseEvent){if(_o)return}else _o=!0;const w=V.composedPath()[0],X=i.ignore.join(",");if(w.matches(X)||w.closest(X)||typeof MouseEvent<"u"&&V instanceof MouseEvent&&(!V.buttons||V.button!==0))return;V instanceof MouseEvent&&_l(V);const K=Date.now(),W=K-(d||K);f=W>0&&W<=250,d=K,clearTimeout(T),n=V,V instanceof MouseEvent&&(window.addEventListener("mousemove",U),window.addEventListener("mouseup",E)),window.addEventListener("blur",D),l=Vo(V),s=[...l],c=[],p=l.length,r=ya(l),p===1&&(m=!1,u=!1),p&&G(ya(l)),B("start")}function U(V){var w;if(!s.length||V.defaultPrevented)return;n=V,c=[...l],l=Vo(V),p=l.length,r=ya(l);const X=r,K=ya(c);if(h=X.x-K.x,g=X.y-K.y,G(X),P(),B("move"),l.length>1){const W=ir(l),M=ir(c);Math.abs(W-M)>=.1&&B("pinch")}if(!m&&s.length){const W=ya(s);b=X.x-W.x,v=X.y-W.y,m=Math.abs(b)>i.panThreshold||Math.abs(v)>i.panThreshold,m&&(vn=!1,clearTimeout(N),N=0,A=Math.abs(180*Math.atan2(v,b)/Math.PI),o=A>45&&A<135?"y":"x",s=[...l],c=[...l],(w=window.getSelection())===null||w===void 0||w.removeAllRanges(),B("panstart"))}m&&(h||g)&&B("pan")}function E(V){if(n=V,!s.length)return;const w=Vo(V),X=Vl(V);if(p=w.length,r=ya(X),X.length&&G(ya(X)),P(),c=[...l],l=[...w],s=[...w],w.length>0)B("end"),m=!1,u=!1,_=[];else{const K=i.swipeThreshold;(Math.abs(x)>K||Math.abs(k)>K)&&(u=!0),m&&B("panend"),u&&B("swipe"),m||u||(B("tap"),f?B("doubleTap"):T=setTimeout(function(){B("singleTap")},250)),B("end"),F()}}function D(){clearTimeout(T),F(),m&&B("panend"),B("end")}function F(){m=!1,u=!1,f=!1,p=0,_=[],l=[],c=[],s=[],h=0,g=0,b=0,v=0,x=0,k=0,A=0,o=void 0,window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",E),window.removeEventListener("blur",D),vn||N||(N=setTimeout(()=>{vn=!0,N=0},100))}function q(V){const w=V.target;_o=!1,w&&!V.defaultPrevented&&(vn||(_l(V),V.stopPropagation()))}const oe={init:function(){if(e)return e.addEventListener("click",q,ka),e.addEventListener("mousedown",Q,ka),e.addEventListener("touchstart",Q,ka),e.addEventListener("touchmove",U,ka),e.addEventListener("touchend",E),e.addEventListener("touchcancel",E),oe},on:function(V,w){return function(X,K){S.set(X,[...S.get(X)||[],K])}(V,w),oe},off:function(V,w){return S.has(V)&&S.set(V,S.get(V).filter(X=>X!==w)),oe},isPointerDown:()=>p>0,destroy:function(){clearTimeout(T),clearTimeout(N),N=0,e&&(e.removeEventListener("click",q,ka),e.removeEventListener("mousedown",Q,ka),e.removeEventListener("touchstart",Q,ka),e.removeEventListener("touchmove",U,ka),e.removeEventListener("touchend",E),e.removeEventListener("touchcancel",E)),e=null,F()}};return oe};En.isClickAllowed=()=>vn;/*! License details at fancyapps.com/license */const No={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset"};/*! License details at fancyapps.com/license */const ze=(e,a="")=>{e&&e.classList&&a.split(" ").forEach(n=>{n&&e.classList.add(n)})};/*! License details at fancyapps.com/license */const sr=e=>{e.cancelable&&e.preventDefault()},St=(e,a=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*a)/a);var we,Nl;(function(e){e.Reset="reset",e.Zoom="zoom",e.ZoomIn="zoomIn",e.ZoomOut="zoomOut",e.ZoomTo="zoomTo",e.ToggleCover="toggleCover",e.ToggleFull="toggleFull",e.ToggleMax="toggleMax",e.IterateZoom="iterateZoom",e.Pan="pan",e.Swipe="swipe",e.Move="move",e.MoveLeft="moveLeft",e.MoveRight="moveRight",e.MoveUp="moveUp",e.MoveDown="moveDown",e.RotateCCW="rotateCCW",e.RotateCW="rotateCW",e.FlipX="flipX",e.FlipY="flipY"})(we||(we={})),function(e){e.Cover="cover",e.Full="full",e.Max="max"}(Nl||(Nl={}));const Dt={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Do={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:we.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:No,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:we.Zoom,width:"auto"};let lr,Dl=0,Tl=0,cr=0;const To=(e,a={},n={})=>{let r,o,i,s,l,c,m,u=0,f=Object.assign(Object.assign({},Do),a),d={},p=Object.assign({},Dt),h=Object.assign({},Dt);const g=[];function b(C){let y=f[C];return y&&typeof y=="function"?y(L):y}const v=new Map;function x(C,...y){const O=v.get(C)||[];f.on&&O.push(f.on[C]);for(const I of O)I&&I instanceof Function&&I(L,...y);C!=="*"&&x("*",C,...y)}function k(C){if(u!==3)return;const y=C.target;if(wn(y))return;const O=Date.now(),I=[-C.deltaX||0,-C.deltaY||0,-C.detail||0].reduce(function(ue,ye){return Math.abs(ye)>Math.abs(ue)?ye:ue}),H=$e(-1,I,1);x("wheel",C,H);const te=b("wheelAction");if(!te||C.defaultPrevented)return;const j=h.scale;let ne=j*(H>0?1.5:.5);if(te===we.Zoom){const ue=Math.abs(C.deltaY)<100&&Math.abs(C.deltaX)<100;if(O-Tl<(ue?200:45))return void sr(C);Tl=O;const ye=Q(),be=F();if(St(ne)<St(ye)&&St(j)<=St(ye)?(cr+=Math.abs(H),ne=ye):St(ne)>St(be)&&St(j)>=St(be)?(cr+=Math.abs(H),ne=be):(cr=0,ne=$e(ye,ne,be)),cr>7)return}switch(sr(C),te){case we.Pan:w(te,{srcEvent:C,deltaX:2*-C.deltaX,deltaY:2*-C.deltaY});break;case we.Zoom:w(we.ZoomTo,{srcEvent:C,scale:ne,center:{x:C.clientX,y:C.clientY}});break;default:w(te,{srcEvent:C})}}function A(C){var y,O;const I=C.composedPath()[0];if(!En.isClickAllowed()||!Qa(I)||C.defaultPrevented||!(e!=null&&e.contains(I))||I.hasAttribute("disabled")||I.hasAttribute("aria-disabled"))return;const H=I.closest("[data-panzoom-action]"),te=(y=H==null?void 0:H.dataset)===null||y===void 0?void 0:y.panzoomAction,j=((O=H==null?void 0:H.dataset)===null||O===void 0?void 0:O.panzoomValue)||"";if(te){switch(te){case we.ZoomTo:case we.ZoomIn:case we.ZoomOut:w(te,{scale:parseFloat(j||"")||void 0});break;case we.MoveLeft:case we.MoveRight:w(te,{deltaX:parseFloat(j||"")||void 0});break;case we.MoveUp:case we.MoveDown:w(te,{deltaY:parseFloat(j||"")||void 0});break;default:w(te)}return}if(!(r!=null&&r.contains(I)))return;const ne={srcEvent:C};if(w(b("clickAction"),ne),b("dblClickAction")){const ue=Date.now(),ye=ue-(Dl||ue);Dl=ue,ye>0&&ye<=250?(lr&&(clearTimeout(lr),lr=void 0),w(b("dblClickAction"),ne)):lr=setTimeout(()=>{w(b("singleClickAction"),ne)},250)}}function _(C){if(m=C,!B()||u!==3||p.scale<=1||h.scale<=1||((r==null?void 0:r.dataset.animationName)||"").indexOf("zoom")>-1)return;const y=G(h.scale);if(!y)return;const{x:O,y:I}=y;w(we.Pan,{deltaX:O-h.x,deltaY:I-h.y})}function T(){var C;if(e&&((C=e.querySelector(".f-spinner"))===null||C===void 0||C.remove(),e.classList.remove("is-loading")),!e||!r)return;if(o instanceof HTMLImageElement&&(!o.complete||!o.naturalWidth))return u=2,r==null||r.classList.add("has-error"),void x("error");x("loaded");const{width:y,height:O}=S();o&&(o.setAttribute("width",y+""),o.setAttribute("height",O+"")),r&&(r.classList.remove("has-error"),r.setAttribute("width",y+""),r.setAttribute("height",O+""),r.style.aspectRatio=`${y/O||""}`),l=ga().on("start",(H,te)=>{h=Object.assign(Object.assign({},Dt),te),te.angle!==void 0&&(te.angle=90*Math.round(te.angle/90)),te.flipX!==void 0&&(te.flipX=te.flipX>0?1:-1),te.flipY!==void 0&&(te.flipY=te.flipY>0?1:-1),V(),x("animationStart")}).on("pause",H=>{h=Object.assign(Object.assign({},Dt),H)}).on("step",H=>{if(u!==3||!l)return;if(!e||!e.parentElement)return void l.end();if(p=Object.assign(Object.assign({},Dt),H),B()||!b("bounds")||(s==null?void 0:s.isPointerDown())||h.scale>p.scale||h.scale<U())return void X();const te=q(h.scale);let j=!1,ne=!1,ue=!1,ye=!1;p.x<te.x[0]&&(j=!0),p.x>te.x[1]&&(ne=!0),p.y<te.y[0]&&(ye=!0),p.y>te.y[1]&&(ue=!0);let be=!1,me=!1,Me=!1,_e=!1;h.x<te.x[0]&&(be=!0),h.x>te.x[1]&&(me=!0),h.y<te.y[0]&&(_e=!0),h.y>te.y[1]&&(Me=!0);let Ne=!1;(ne&&me||j&&be)&&(h.x=$e(te.x[0],h.x,te.x[1]),Ne=!0),(ue&&Me||ye&&_e)&&(h.y=$e(te.y[0],h.y,te.y[1]),Ne=!0),Ne&&l.spring({tension:94,friction:17,maxSpeed:555*h.scale,restDelta:.1,restSpeed:.1,velocity:l.getCurrentVelocities()}).from(p).to(h).start(),X()}).on("end",()=>{oe(),l!=null&&l.isRunning()||(V(),x("animationEnd"))}),function(){const H=b("gestures");H&&i&&o&&(s=En(i,H).on("start",te=>{if(!l)return;const j=te.srcEvent;B()||((p.scale>1||te.currentTouch.length>1)&&(j==null||j.stopPropagation(),l.pause()),te.currentTouch.length===1&&x("touchStart"))}).on("move",te=>{B()||(h.scale!==1||te.currentTouch.length>1)&&(te.srcEvent.preventDefault(),te.srcEvent.stopPropagation())}).on("pan",te=>{if(B())return;const j=te.srcEvent;(h.scale!==1||te.currentTouch.length>1)&&(sr(j),w(we.Pan,te))}).on("swipe",te=>{B()||h.scale>1&&w(we.Swipe,te)}).on("tap",te=>{x("click",te)}).on("singleTap",te=>{x("singleClick",te)}).on("doubleTap",te=>{x("dblClick",te)}).on("pinch",te=>{B()||(te.scale>U()?w(we.ZoomIn,te):te.scale<U()?w(we.ZoomOut,te):w(we.Pan,te))}).on("end",te=>{B()||(te.currentTouch.length?(te.srcEvent.stopPropagation(),sr(te.srcEvent),l==null||l.end()):(V(),oe(),x("touchEnd")))}).init())}(),i&&(i.addEventListener("wheel",k,{passive:!1}),g.push(()=>{i==null||i.removeEventListener("wheel",k,{passive:!1})})),e==null||e.addEventListener("click",A),document==null||document.addEventListener("mousemove",_),g.push(()=>{e==null||e.removeEventListener("click",A),document==null||document.removeEventListener("mousemove",_)});const I=Object.assign(Object.assign({},b("startPos")||{}),{scale:U()});if(p=Object.assign(Object.assign({},Dt),I),h=Object.assign(Object.assign({},Dt),I),B()){const H=G(h.scale);if(H){const{x:te,y:j}=H;p.x=te,p.y=j,h.x=te,h.y=j}}u=3,X(),V(),x("ready"),requestAnimationFrame(()=>{i&&(i.style.visibility="")})}function N(){const C={top:0,left:0,width:0,height:0};if(r){const y=r.getBoundingClientRect();h.angle%180==90?(C.top=y.top+.5*y.height-.5*y.width,C.left=y.left+.5*y.width-.5*y.height,C.width=y.height,C.height=y.width):(C.top=y.top,C.left=y.left,C.width=y.width,C.height=y.height)}return C}function S(){let C=b("width"),y=b("height");if(o&&C==="auto"){const O=o.getAttribute("width");C=O?parseFloat(O+""):o.dataset.width!==void 0?parseFloat(o.dataset.width+""):i instanceof HTMLImageElement?i.naturalWidth:o instanceof HTMLImageElement?o.naturalWidth:o.getBoundingClientRect().width}else C=mt(C)?parseFloat(C):C;if(o&&y==="auto"){const O=o.getAttribute("height");y=O?parseFloat(O+""):o.dataset.height!==void 0?parseFloat(o.dataset.height+""):i instanceof HTMLImageElement?i.naturalHeight:o instanceof HTMLImageElement?o.naturalHeight:o.getBoundingClientRect().height}else y=mt(y)?parseFloat(y):y;return{width:C,height:y}}function B(){return b("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function G(C){const y=m||b("event"),O=r==null?void 0:r.getBoundingClientRect();if(!y||!O||C<=1)return{x:0,y:0};const I=(y.clientX||0)-O.left,H=(y.clientY||0)-O.top,te=O.width,j=O.height,ne=q(C);if(C>1){const Me=b("mouseMoveFactor");Me>1&&(C*=Me)}let ue=te*C,ye=j*C,be=.5*(ue-te)-I/te*100/100*(ue-te),me=.5*(ye-j)-H/j*100/100*(ye-j);return be=$e(ne.x[0],be,ne.x[1]),me=$e(ne.y[0],me,ne.y[1]),{x:be,y:me}}function P(C="base"){if(!e)return 1;const y=e.getBoundingClientRect(),O=N(),{width:I,height:H}=S(),te=be=>{if(typeof be=="number")return be;switch(be){case"min":case"base":return 1;case"cover":return Math.max(y.height/O.height,y.width/O.width)||1;case"full":case"max":{const me=h.angle%180==90?H:I;return me&&O.width?me/O.width:1}}},j=b("minScale"),ne=b("maxScale"),ue=Math.min(te("full"),te(j)),ye=typeof ne=="number"?te("full")*ne:Math.min(te("full"),te(ne));switch(C){case"min":return ue;case"base":return $e(ue,1,ye);case"cover":return te("cover");case"full":return Math.min(ye,te("full"));case"max":return ye}}function Q(){return P("min")}function U(){return P("base")}function E(){return P("cover")}function D(){return P("full")}function F(){return P("max")}function q(C){const y={x:[0,0],y:[0,0]},O=e==null?void 0:e.getBoundingClientRect();if(!O)return y;const I=N(),H=O.width,te=O.height;let j=I.width,ne=I.height,ue=C=C===void 0?h.scale:C,ye=C;if(B()&&C>1){const be=b("mouseMoveFactor");be>1&&(j*C>H+.01&&(ue*=be),ne*C>te+.01&&(ye*=be))}return j*=ue,ne*=ye,C>1&&(j>H&&(y.x[0]=.5*(H-j),y.x[1]=.5*(j-H)),y.x[0]-=.5*(I.left-O.left),y.x[1]-=.5*(I.left-O.left),y.x[0]-=.5*(I.left+I.width-O.right),y.x[1]-=.5*(I.left+I.width-O.right),ne>te&&(y.y[0]=.5*(te-ne),y.y[1]=.5*(ne-te)),y.y[0]-=.5*(I.top-O.top),y.y[1]-=.5*(I.top-O.top),y.y[0]-=.5*(I.top+I.height-O.bottom),y.y[1]-=.5*(I.top+I.height-O.bottom)),y}function oe(){if(!b("bounds")||u!==3||!(e!=null&&e.parentElement)||!l)return;const C=Q(),y=F(),O=$e(C,h.scale,y);if(h.scale<C-.01||h.scale>y+.01)return void w(we.ZoomTo,{scale:O});if(l.isRunning()||s!=null&&s.isPointerDown())return;const I=q(O);h.x<I.x[0]||h.x>I.x[1]||h.y<I.y[0]||h.y>I.y[1]?(h.x=$e(I.x[0],h.x,I.x[1]),h.y=$e(I.y[0],h.y,I.y[1]),l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:l.getCurrentVelocities()}),l.from(p).to(h).start()):X()}function V(){if(!e||!e.parentElement||!r)return;const C=z(),y=he(),O=ee(),I=fe(),H=W(),te=M();r.classList.toggle("is-fullsize",I),r.classList.toggle("is-expanded",O),r.classList.toggle("is-dragging",y),r.classList.toggle("can-drag",C),r.classList.toggle("will-zoom-in",H),r.classList.toggle("will-zoom-out",te);const j=J(),ne=ce(),ue=u!==3;for(const ye of(e==null?void 0:e.querySelectorAll("[data-panzoom-action]"))||[]){const be=ye.dataset.panzoomAction;let me=!1;if(ue)me=!0;else switch(be){case we.ZoomIn:j||(me=!0);break;case we.ZoomOut:ne||(me=!0);break;case we.ToggleFull:j||ne||(me=!0);const Me=ye.querySelector("g");Me&&(Me.style.display=I?"none":"");break;case we.ToggleCover:case we.ToggleMax:j||ne||(me=!0)}me?(ye.setAttribute("aria-disabled",""),ye.setAttribute("tabindex","-1")):(ye.removeAttribute("aria-disabled"),ye.removeAttribute("tabindex"))}}function w(C,y){var O;if(!e||!o||!l||C===we.Swipe&&Math.abs(l.getCurrentVelocities().scale)>.01)return;let I=Object.assign({},h),H=q(B()?h.scale:p.scale);const te=l.getCurrentVelocities(),j=N(),ne=(((O=(y=y||{}).currentTouch)===null||O===void 0?void 0:O.length)||0)>1,ue=y.velocityX||0,ye=y.velocityY||0;let be=y.center;!be&&y.srcEvent&&(be=ya(Vl(y.srcEvent)));let me=y.deltaX||0,Me=y.deltaY||0;switch(C){case we.MoveRight:me=y.deltaX||100;break;case we.MoveLeft:me=y.deltaX||-100;break;case we.MoveUp:Me=y.deltaY||-100;break;case we.MoveDown:Me=y.deltaY||100}let _e=[];switch(C){case we.Reset:h=Object.assign({},Dt),h.scale=U();break;case we.Pan:case we.Move:case we.MoveLeft:case we.MoveRight:case we.MoveUp:case we.MoveDown:if(s!=null&&s.isPointerDown()){let Le=1,Be=1;h.x<=H.x[0]&&ue<=0&&(Le=Math.max(.01,1-Math.abs(1/j.width*Math.abs(h.x-H.x[0]))),Le*=.2),h.x>=H.x[1]&&ue>=0&&(Le=Math.max(.01,1-Math.abs(1/j.width*Math.abs(h.x-H.x[1]))),Le*=.2),h.y<=H.y[0]&&ye<=0&&(Be=Math.max(.01,1-Math.abs(1/j.height*Math.abs(h.y-H.y[0]))),Be*=.2),h.y>=H.y[1]&&ye>=0&&(Be=Math.max(.01,1-Math.abs(1/j.height*Math.abs(h.y-H.y[1]))),Be*=.2),h.x+=me*Le,h.y+=Me*Be}else h.x=$e(H.x[0],h.x+me,H.x[1]),h.y=$e(H.y[0],h.y+Me,H.y[1]);break;case we.Swipe:const Ne=(Le=0)=>Math.sign(Le)*Math.pow(Math.abs(Le),1.5);h.x+=$e(-1e3,Ne(ue),1e3),h.y+=$e(-1e3,Ne(ye),1e3),ye&&!ue&&(h.x=$e(H.x[0],h.x,H.x[1])),!ye&&ue&&(h.y=$e(H.y[0],h.y,H.y[1])),te.x=ue,te.y=ye;break;case we.ZoomTo:h.scale=y.scale||1;break;case we.ZoomIn:h.scale=h.scale*(y.scale||2),ne||(h.scale=Math.min(h.scale,F()));break;case we.ZoomOut:h.scale=h.scale*(y.scale||.5),ne||(h.scale=Math.max(h.scale,Q()));break;case we.ToggleCover:_e=[U(),E()];break;case we.ToggleFull:_e=[U(),D()];break;case we.ToggleMax:_e=[U(),F()];break;case we.IterateZoom:_e=[U(),D(),F()];break;case we.Zoom:const Se=D();h.scale>=Se-.05?h.scale=U():h.scale=Math.min(Se,h.scale*(y.scale||2));break;case we.RotateCW:h.angle+=90;break;case we.RotateCCW:h.angle-=90;break;case we.FlipX:h.flipX*=-1;break;case we.FlipY:h.flipY*=-1}if(p.angle!==void 0&&Math.abs(p.angle)>=360&&(h.angle-=360*Math.floor(p.angle/360),p.angle-=360*Math.floor(p.angle/360)),_e.length){const Ne=_e.findIndex(Se=>Se>h.scale+1e-4);h.scale=_e[Ne]||_e[0]}if(ne&&(h.scale=$e(Q()*(ne?.8:1),h.scale,F()*(ne?1.6:1))),B()){const Ne=G(h.scale);if(Ne){const{x:Se,y:Le}=Ne;h.x=Se,h.y=Le}}else if(h.scale!==I.scale){let Ne=0,Se=0;if(be)Ne=be.x,Se=be.y;else{const ie=e.getBoundingClientRect();Ne=ie.x+.5*ie.width,Se=ie.y+.5*ie.height}let Le=Ne-j.left,Be=Se-j.top;Le-=.5*j.width,Be-=.5*j.height;const Z=(Le-I.x)/I.scale,re=(Be-I.y)/I.scale;h.x=Le-Z*h.scale,h.y=Be-re*h.scale,!ne&&b("bounds")&&(H=q(h.scale),h.x=$e(H.x[0],h.x,H.x[1]),h.y=$e(H.y[0],h.y,H.y[1]))}if(C===we.Swipe){let Ne=94,Se=17,Le=500*h.scale,Be=te;l.spring({tension:Ne,friction:Se,maxSpeed:Le,restDelta:.1,restSpeed:.1,velocity:Be})}else C===we.Pan||ne?l.spring({tension:750,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:te});C===we.Reset&&y.velocity===0?p=Object.assign({},h):l.from(p).to(h).start(),x("action",C)}function X(){if(!r||!o)return;if(o instanceof HTMLImageElement){const{width:ne,height:ue}=S();r.style.maxWidth=`min(${ne}px, 100%)`,r.style.maxHeight=`min(${ue}px, 100%)`}let{x:C,y,scale:O,angle:I,flipX:H,flipY:te}=p;const j=function(){const ne=N(),ue=ne.width,ye=ne.height,{width:be,height:me}=S();if(!e)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:ue,fitHeight:ye,fullWidth:be,fullHeight:me};let{x:Me,y:_e,scale:Ne,angle:Se,flipX:Le,flipY:Be}=p,Z=1/D(),re=be,ie=me,de=p.scale*Z,Ee=h.scale*Z;const pe=Math.max(ue,ye),ke=Math.min(ue,ye);be>me?(re=pe,ie=ke):(re=ke,ie=pe),de=be>me?pe*Ne/be||1:pe*Ne/me||1;let Y=re?be*Ee:0,R=ie?me*Ee:0;return Me=Me+.5*re-.5*Y,_e=_e+.5*ie-.5*R,{x:Me,y:_e,width:Y,height:R,scale:re&&ie?be*de/Y:0,flipX:Le,flipY:Be,angle:Se,fitWidth:ue,fitHeight:ye,fullWidth:be,fullHeight:me}}();if(r&&j){const{x:ne,y:ue,width:ye,height:be,scale:me,flipX:Me,flipY:_e}=j;let Ne=`translate(${St(ne)}px, ${St(ue)}px)`;Ne+=Me!==1||_e!==1?` scaleX(${St(me*Me)}) scaleY(${St(me*_e)})`:` scale(${St(me)})`,I!==0&&(Ne+=` rotate(${I}deg)`),i&&(i.style.width=`${St(ye)}px`,i.style.height=`${St(be)}px`,i.style.transform=`${Ne}`)}x("render")}function K(){let C=h.scale;const y=b("clickAction");let O=U();if(y){let I=[];switch(y){case we.ZoomIn:O=2*C;break;case we.ZoomOut:O=.5*C;break;case we.ToggleCover:I=[U(),E()];break;case we.ToggleFull:I=[U(),D()];break;case we.ToggleMax:I=[U(),F()];break;case we.IterateZoom:I=[U(),D(),F()];break;case we.Zoom:const H=D();O=C>=H-.05?U():Math.min(H,2*C)}if(I.length){const H=I.findIndex(te=>te>C+1e-4);O=I[H]||U()}}return O=$e(Q(),O,F()),O}function W(){return u===3&&K()>h.scale}function M(){return u===3&&K()<h.scale}function J(){return u===3&&h.scale<F()}function ce(){return u===3&&h.scale>Q()}function z(){return u===3&&ee()&&!!s&&!B()}function he(){return u===3&&(s==null?void 0:s.isPointerDown())&&!B()}function ee(){return u===3&&h.scale>U()}function fe(){return u===3&&h.scale>=D()}const L={canDrag:z,canZoomIn:J,canZoomOut:ce,destroy:function(){x("destroy");for(const C of Object.values(d))C==null||C.destroy(L);for(const C of g)C();return r&&(r.style.aspectRatio="",r.style.maxWidth="",r.style.maxHeight=""),i&&(i.style.width="",i.style.height="",i.style.transform=""),r=void 0,o=void 0,i=void 0,p=Object.assign({},Dt),h=Object.assign({},Dt),l==null||l.destroy(),l=void 0,s==null||s.destroy(),s=void 0,u=4,L},emit:x,execute:w,getBoundaries:q,getContainer:function(){return e},getFullDim:S,getGestures:function(){return s},getMousemovePos:G,getOptions:function(){return f},getScale:P,getState:function(){return u},getTransform:function(C){return C===!0?h:p},getTween:function(){return l},getViewport:function(){return i},getWrapper:function(){return r},init:function(){return u=0,x("init"),function(){for(const[C,y]of Object.entries(Object.assign(Object.assign({},n),f.plugins||{})))if(C&&!d[C]&&y instanceof Function){const O=y();O.init(L),d[C]=O}x("initPlugins")}(),function(){if(!e)return;const C=Object.assign(Object.assign({},Do.classes),b("classes"));if(ze(e,C.container),o=e.querySelector("."+C.content),!!o&&(o.setAttribute("draggable","false"),r=e.querySelector("."+C.wrapper),r||(r=document.createElement("div"),ze(r,C.wrapper),o.insertAdjacentElement("beforebegin",r),r.insertAdjacentElement("afterbegin",o)),o instanceof HTMLImageElement||o instanceof HTMLPictureElement)){if(i=e.querySelector("."+C.viewport),!i){i=document.createElement("div"),ze(i,C.viewport);const y=o.cloneNode(!0);y.classList.remove("is-lazyloading"),y.classList.remove("is-lazyloaded"),i.insertAdjacentElement("afterbegin",y),r.insertAdjacentElement("beforeend",i)}if(o instanceof HTMLPictureElement&&(o=o.querySelector("img")),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),i.style.visibility="hidden",b("protected")){i.addEventListener("contextmenu",O=>{O.preventDefault()});const y=document.createElement("div");ze(y,"f-panzoom__protected"),i.appendChild(y)}x("initLayout")}}(),function(){if(!(o&&o instanceof HTMLImageElement))return;u=1,x("loading");const C=()=>{o&&o instanceof HTMLImageElement&&o.decode().then(()=>{requestAnimationFrame(()=>{T()})}).catch(()=>{T()})};if(o.src&&o.complete)return void C();(function(){const y=e==null?void 0:e.querySelector(".f-spinner");if(!e||y)return;const O=b("spinnerTpl"),I=ha(O);I&&(I.classList.add("f-spinner"),e.classList.add("is-loading"),r==null||r.insertAdjacentElement("afterbegin",I))})(),o.addEventListener("load",C,!1),o.addEventListener("error",C,!1),g.push(()=>{o==null||o.removeEventListener("load",C,!1),o==null||o.removeEventListener("error",C,!1)})}(),function(){if(e&&r&&!c){let C=null;c=new ResizeObserver(()=>{C||(C=requestAnimationFrame(()=>{e&&e.parentElement&&u===3&&(V(),oe(),x("refresh")),C=null}))}),c.observe(r),g.push(()=>{c==null||c.disconnect(),c=void 0,C&&(cancelAnimationFrame(C),C=null)})}}(),L},isDragging:he,isExpanded:ee,isFullsize:fe,localize:function(C,y=[]){const O=b("l10n")||{};C=String(C).replace(/\{\{(\w+)\}\}/g,(I,H)=>O[H]||I);for(let I=0;I<y.length;I++)C=C.split(y[I][0]).join(y[I][1]);return C=C.replace(/\{\{(.*?)\}\}/g,(I,H)=>H)},off:function(C,y){for(const O of C instanceof Array?C:[C])v.has(O)&&v.set(O,v.get(O).filter(I=>I!==y));return L},on:function(C,y){for(const O of C instanceof Array?C:[C])v.set(O,[...v.get(O)||[],y]);return L},version:"6.0.16",willZoomIn:W,willZoomOut:M};return L};To.l10n={en_EN:No},To.getDefaults=()=>Do;/*! License details at fancyapps.com/license */const Po=(e,a)=>{let n=[];return e.childNodes.forEach(r=>{r.nodeType!==Node.ELEMENT_NODE||a&&!r.matches(a)||n.push(r)}),n};/*! License details at fancyapps.com/license */const Tt=(e,...a)=>{const n=a.length;for(let r=0;r<n;r++){const o=a[r]||{};Object.entries(o).forEach(([i,s])=>{const l=Array.isArray(s)?[]:{};e[i]||Object.assign(e,{[i]:l}),Et(s)?Object.assign(e[i],Tt(l,s)):Array.isArray(s)?Object.assign(e,{[i]:[...s]}):Object.assign(e,{[i]:s})})}return e};/*! License details at fancyapps.com/license */const Oo=function(e=0,a=0,n=0,r=0,o=0,i=!1){const s=(e-a)/(n-a)*(o-r)+r;return i?r<o?$e(r,s,o):$e(o,s,r):s};/*! License details at fancyapps.com/license */const ea=(e,a="")=>{e&&e.classList&&a.split(" ").forEach(n=>{n&&e.classList.remove(n)})};/*! License details at fancyapps.com/license */const ba=(e,a="",n)=>{e&&e.classList&&a.split(" ").forEach(r=>{r&&e.classList.toggle(r,n||!1)})};/*! License details at fancyapps.com/license */const Fo=Object.assign(Object.assign({},No),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});/*! License details at fancyapps.com/license */const en=e=>{e.cancelable&&e.preventDefault()},tn={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:Fo,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:200,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let Pl,Ol=0;const dr=(e,a={},n={})=>{Ol++;let r,o,i,s,l,c=0,m=Object.assign({},tn),u=Object.assign({},tn),f={},d=null,p=null,h=!1,g=!1,b=!1,v=!1,x="height",k=0,A=!0,_=0,T=0,N=0,S=0,B="*",G=[],P=[];const Q=new Set;let U=[],E=[],D=0,F=0;function q(Z,...re){let ie=u[Z];return ie&&ie instanceof Function?ie(Be,...re):ie}function oe(Z,re=[]){const ie=q("l10n")||{};Z=String(Z).replace(/\{\{(\w+)\}\}/g,(de,Ee)=>ie[Ee]||de);for(let de=0;de<re.length;de++)Z=Z.split(re[de][0]).join(re[de][1]);return Z=Z.replace(/\{\{(.*?)\}\}/g,(de,Ee)=>Ee)}const V=new Map;function w(Z,...re){const ie=V.get(Z)||[];u.on&&ie.push(u.on[Z]);for(const de of ie)de&&de instanceof Function&&de(Be,...re);Z!=="*"&&w("*",Z,...re)}function X(){var Z,re;const ie=Tt({},tn,m);Tt(ie,tn,m);let de="";const Ee=m.breakpoints||{};if(Ee)for(const[pe,ke]of Object.entries(Ee))window.matchMedia(pe).matches&&(de+=pe,Tt(ie,ke));if(l===void 0||de!==l){if(l=de,c!==0){let pe=(re=(Z=E[_])===null||Z===void 0?void 0:Z.slides[0])===null||re===void 0?void 0:re.index;pe===void 0&&(pe=u.initialSlide),ie.initialSlide=pe,ie.slides=[];for(const ke of G)ke.isVirtual&&ie.slides.push(ke)}Le(),u=ie,u.enabled!==!1&&(c=0,w("init"),function(){for(const[pe,ke]of Object.entries(Object.assign(Object.assign({},n),u.plugins||{})))if(pe&&!f[pe]&&ke instanceof Function){const Y=ke();Y.init(Be,dr),f[pe]=Y}w("initPlugins")}(),function(){if(!d)return;const pe=q("classes")||{};ze(d,pe.container),ze(d,pe.isEnabled);const ke=q("style");if(ke&&Et(ke))for(const[Y,R]of Object.entries(ke))d.style.setProperty(Y,R);p=d.querySelector(`.${pe.viewport}`),p||(p=document.createElement("div"),ze(p,pe.viewport),p.append(...Po(d,`.${pe.slide}`)),d.insertAdjacentElement("afterbegin",p)),h=window.getComputedStyle(p).getPropertyValue("overflow")==="visible",d.carousel=Be,w("initLayout")}(),function(){if(!p)return;const pe=q("classes")||{};G=[],[...Po(p,`.${pe.slide}`)].forEach(ke=>{ke.parentElement&&(G.push(y(Object.assign({el:ke,isVirtual:!1},ke.dataset||{}))),ke.parentElement.removeChild(ke))}),C(q("slides"));for(const ke of G)w("addSlide",ke);w("initSlides")}(),o=ga().on("start",()=>{A=!1,r&&r.isPointerDown()||(M(),Se())}).on("step",pe=>{k=pe.pos,Se()}).on("end",pe=>{r!=null&&r.isPointerDown()||(k=pe.pos,o&&!g&&(k<N||k>S)?o.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:k}).to({pos:$e(N,k,S)}).start():A||(A=!0,w("settle")))}),function(){const pe=q("gestures");p&&pe!==!1&&(r=En(p,pe).on("start",ke=>{var Y,R;if(!o)return;const{srcEvent:$}=ke;function ae(xe){const Ae=window.getComputedStyle(xe),De=new DOMMatrixReadOnly(Ae.transform);return{width:De.m41||0,height:De.m42||0}}v&&en($),o.pause(),o.getCurrentVelocities().pos=0;const le=(Y=E[_])===null||Y===void 0?void 0:Y.slides[0];le&&Q.has(le.index)&&le.el&&(k=le.offset||0,k+=(ae(le.el)[x]||0)*(b&&!v?1:-1)),ue(),g||(k<N||k>S)&&o.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((R=o.getCurrentVelocities())===null||R===void 0?void 0:R.pos)||0,restDelta:1,restSpeed:1}).from({pos:k}).to({pos:$e(N,k,S)}).start()}).on("move",ke=>{const{srcEvent:Y,axis:R}=ke,$=ke.srcEvent.target;$&&wn($)||(R||(Y.stopPropagation(),Y.stopImmediatePropagation()),(R==="y"&&v||R==="x"&&!v)&&(en(Y),Y.stopPropagation()))}).on("panstart",ke=>{(ke==null?void 0:ke.axis)===(v?"y":"x")&&ze(p,"is-dragging")}).on("panend",()=>{ea(p,"is-dragging")}).on("pan",ke=>{var Y;const{deltaX:R,deltaY:$,currentTouch:ae,axis:le}=ke;if(!o||ae.length>1||le==="y"&&!v||le==="x"&&v)return;const xe=b&&!v?1:-1;let Ae=v?$:R,De=o!=null&&o.isRunning()?o.getEndValues().pos:k,Pe=1;g||(De<=N&&Ae*xe<0?(Pe=Math.max(.01,1-Math.abs(1/ee()*Math.abs(De-N))),Pe*=.2):De>=S&&Ae*xe>0&&(Pe=Math.max(.01,1-Math.abs(1/ee()*Math.abs(De-S))),Pe*=.2)),De+=Ae*Pe*xe,o.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((Y=o.getCurrentVelocities())===null||Y===void 0?void 0:Y.pos)||0,restDelta:1,restSpeed:1}).from({pos:k}).to({pos:De}).start()}).on("end",ke=>{var Y,R;const{axis:$,velocityX:ae,velocityY:le,currentTouch:xe}=ke,Ae=E.length,De=q("dragFree");if(xe.length>0||!o||!Ae)return;const Pe=q("vertical")?le:ae;let qe=o!=null&&o.isRunning()?o.getEndValues().pos:k;const nt=b&&!v?1:-1;if(qe+=Pe*(De?5:1)*nt,!g&&(Pe*nt<=0&&qe<N||Pe*nt>=0&&qe>S)){let lt=0;return Math.abs(Pe)>0&&(lt=2*Math.abs(Pe),lt=Math.min(.3*ee(),lt)),qe=$e(N+-1*lt,qe,S+lt),void o.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Pe,restDelta:1,restSpeed:1}).from({pos:k}).to({pos:qe}).start()}if(De||!((Y=f.Autoscroll)===null||Y===void 0)&&Y.isEnabled())return void(Math.abs(Pe)>10?o.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Pe,restDelta:1,restSpeed:1}).from({pos:k}).to({pos:qe}).start():o.isRunning()||A||(A=!0,w("settle")));if(!De&&!(!((R=f.Autoscroll)===null||R===void 0)&&R.isEnabled())&&(!ke.offsetX&&!ke.offsetY||$==="y"&&!v||$==="x"&&v))return void Ne(_,{transition:"tween"});let bt=z(qe);Math.abs(Pe)>10&&bt===_&&(bt+=Pe>0?b&&!v?1:-1:b&&!v?-1:1),Ne(bt,{transition:"tween",tween:{tension:160,friction:25,velocity:-1*Pe}})}).init())}(),j(),function(){if(d&&(d.addEventListener("click",be,{passive:!1}),document.addEventListener("mousemove",K),!i)){let pe=null;i=new ResizeObserver(ke=>{pe||(pe=requestAnimationFrame(()=>{(function(Y){if(!d)return;let R=Y[0].contentBoxSize[0].blockSize,$=Y[0].contentBoxSize[0].inlineSize;if(c===0)return D=R,F=$,c=1,Se(),J(),void w("ready");if(c!==1)return;const ae=E.length;j();const le=d.getBoundingClientRect();R=le.height,$=le.width,ae>1&&(v&&Math.abs(R-D)<.5||!v&&Math.abs($-F)<.5)||(D=R,F=$,v&&!R||!v&&!$||d&&p&&(ae===E.length&&(r!=null&&r.isPointerDown())||(q("dragFree")&&(g||k>N&&k<S)?(M(),Se()):Ne(_,{transition:!1}))))})(ke),pe=null}))}),i.observe(d)}}())}}function K(Z){Pl=Z}function W(Z="*"){var re;const ie=[];for(const de of G)(Z==="*"||de.class&&de.class.includes(Z)||de.el&&(!((re=de.el)===null||re===void 0)&&re.classList.contains(Z)))&&ie.push(de);s=void 0,B=Z,P=[...ie]}function M(){if(!o)return;const Z=z(o!=null&&o.isRunning()?o.getEndValues().pos:k);Z!==_&&(s=_,_=Z,_e(),J(),ce(),w("change",_,s))}function J(){var Z;if(!d)return;ba(p,"is-draggable",!!r&&E.length>0);for(const de of d.querySelectorAll("[data-carousel-index]"))de.innerHTML=_+"";for(const de of d.querySelectorAll("[data-carousel-page]"))de.innerHTML=_+1+"";for(const de of d.querySelectorAll("[data-carousel-pages]"))de.innerHTML=E.length+"";let re=!1;const ie=(Z=E[_])===null||Z===void 0?void 0:Z.slides[0];ie&&(ie.downloadSrc||ie.type==="image"&&ie.src)&&(re=!0);for(const de of d.querySelectorAll("[data-carousel-download]"))de.toggleAttribute("aria-disabled",!re)}function ce(Z){var re;if(!d)return;Z||(Z=(re=E[_])===null||re===void 0?void 0:re.slides[0]);const ie=Z.el;if(ie)for(const de of ie.querySelectorAll("[data-slide-index]"))de.innerHTML=Z.index+1+""}function z(Z){if(!E.length||!o)return 0;const re=fe();let ie=Z;g?ie-=Math.floor((Z-E[0].pos)/re)*re:ie=$e(E[0].pos,Z,E[E.length-1].pos);const de=new Map;let Ee=0;for(const ke of E){const Y=Math.abs(ke.pos-ie),R=Math.abs(ke.pos-ie-re),$=Math.abs(ke.pos-ie+re),ae=Math.min(Y,R,$);de.set(Ee,ae),Ee++}const pe=de.size>0?[...de.entries()].reduce((ke,Y)=>Y[1]<ke[1]?Y:ke):[_,0];return parseInt(pe[0])}function he(){return p&&parseFloat(getComputedStyle(p).getPropertyValue("--f-carousel-gap"))||0}function ee(){return p&&p.getBoundingClientRect()[x]||0}function fe(Z=!0){const re=he();return P.reduce((ie,de)=>ie+de.dim,0)+(P.length-(g&&Z?0:1))*re}function L(Z){const re=he(),ie=fe();let de=ee();if(!p)return[];const Ee=[];if(!ie||!de)return[];Z=Z===void 0?k:Z,g&&(Z-=Math.floor(Z/ie)*ie);let pe=0,ke=0;if(h){const R=p.getBoundingClientRect();pe=R.left,ke=R.right-R.width}let Y=0;for(let R of P){const $=(ae=0)=>{Ee.indexOf(R)>-1||(R.pos=Y-Z+ae||0,R.offset+ae>Z-R.dim-pe+.51&&R.offset+ae<Z+de+ke-.51&&Ee.push(R))};if(R.offset=Y,g)for(let ae=-1;ae<=1;ae++)$(ie*ae);else $();Y+=R.dim+re}return Ee}function C(Z,re){const ie=[];for(const de of Array.isArray(Z)?Z:[Z]){const Ee=y(Object.assign(Object.assign({},de),{isVirtual:!0}));ie.push(Ee)}G.splice(re===void 0?G.length:re,0,...ie),te();for(const de of ie)O(de);return W(B),ie}function y(Z){return(mt(Z)||Z instanceof HTMLElement)&&(Z={html:Z}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},Z)}function O(Z){if(!Z)return;let re=Z.el;re||(re=document.createElement("div"),Z.el=re);const ie=Z.html?Z.html instanceof HTMLElement?Z.html:ha(Z.html):void 0;ie&&(ze(ie,"f-html"),Z.htmlEl=ie,ze(re,"has-html"),re.append(ie),w("contentReady",Z))}function I(Z){if(!p||!Z)return;let re=Z.el;if(re){if(re.setAttribute("index",Z.index+""),re.parentElement!==p){let ie;ze(re,u.classes.slide),ze(re,Z.class),_e(Z);for(const de of G)if(de.index>Z.index){ie=de.el;break}p.insertBefore(re,ie&&p.contains(ie)?ie:null),w("attachSlideEl",Z)}return re}}function H(Z){const re=Z==null?void 0:Z.el;re&&(re.remove(),ne(re),w("detachSlideEl",Z))}function te(){for(let Z=0;Z<G.length;Z++){const re=G[Z],ie=re.el;ie&&(re.index!==Z&&ne(ie),ie.setAttribute("index",`${Z}`)),re.index=Z}}function j(){var Z,re,ie,de;if(!d||!p)return;b=q("rtl"),v=q("vertical"),x=v?"height":"width";const Ee=q("classes");ba(d,Ee.isLTR,!b),ba(d,Ee.isRTL,b),ba(d,Ee.isHorizontal,!v),ba(d,Ee.isVertical,v),ba(d,Ee.hasAdaptiveHeight,q("adaptiveHeight"));const pe=p.getBoundingClientRect();if(!pe.width&&!pe.height)return;const ke=function(){let R=0;if(p){let $=document.createElement("div");ze($,u.classes.slide),p.appendChild($),R=$.getBoundingClientRect()[x],$.remove(),$=void 0}return R}();for(const R of P){const $=R.el;let ae=0;if(!R.isVirtual&&$&&Qa($)){let le=!1;$.parentElement&&$.parentElement===p||(p.appendChild($),le=!0),ae=$.getBoundingClientRect()[x],le&&((Z=$.parentElement)===null||Z===void 0||Z.removeChild($))}else ae=ke;R.dim=ae}(function(){if(!d)return;te();const R=ee(),$=he(),ae=fe(!1);let le=q("slidesPerPage");le=le==="auto"?1/0:parseFloat(le+""),E=[];let xe=0,Ae=0;for(const Je of P)(!E.length||xe+Je.dim-R>.05||Ae>=le)&&(E.push({index:E.length,slides:[],dim:0,offset:0,pos:0}),xe=0,Ae=0),E[E.length-1].slides.push(Je),xe+=Je.dim+$,Ae++;const De=q("center"),Pe=q("fill"),qe=q("infinite");let nt=0;for(const Je of E){Je.dim=(Je.slides.length-1)*$;for(const va of Je.slides)Je.dim+=va.dim;Je.offset=nt,Je.pos=nt,De!==!1&&(Je.pos-=.5*(R-Je.dim)),Pe&&!qe&&ae>R&&(Je.pos=$e(0,Je.pos,ae-R)),nt+=Je.dim+$}const bt=[];let lt;for(const Je of E){const va=Object.assign({},Je);lt&&va.pos===lt.pos?(lt.dim+=va.dim,lt.slides=[...lt.slides,...va.slides]):(lt=va,va.index=bt.length,bt.push(va))}E=bt,J()})();let Y=ee();if(h){const R=p.getBoundingClientRect();Y+=R.left,Y+=R.right-R.width}if(g=q("infinite")&&E.length>1&&fe()-(Y+(((re=P[0])===null||re===void 0?void 0:re.dim)||0))>-.5,N=((ie=E[0])===null||ie===void 0?void 0:ie.pos)||0,S=((de=E[E.length-1])===null||de===void 0?void 0:de.pos)||0,c===0)(function(){var R;s=void 0,_=q("initialPage");const $=q("initialSlide")||void 0;$!==void 0&&(_=Be.getPageIndex($)||0),_=$e(0,_,E.length-1),k=((R=E[_])===null||R===void 0?void 0:R.pos)||0,T=k})();else{const R=o!=null&&o.isRunning()?o.getEndValues().pos:k;(R<N||R>S)&&(_=$e(0,_,E.length-1),T=E[_||0].pos||0)}w("refresh")}function ne(Z){if(!Z||!Qa(Z))return;const re=parseInt(Z.getAttribute("index")||"-1");let ie="";for(const Ee of Array.from(Z.classList)){const pe=Ee.match(/^f-(\w+)(Out|In)$/);pe&&pe[1]&&(ie=pe[1]+"")}if(!Z||!ie)return;const de=[`f-${ie}Out`,`f-${ie}In`,"to-prev","to-next","from-prev","from-next"];Z.removeEventListener("animationend",ye),ea(Z,de.join(" ")),Q.delete(re)}function ue(){if(!p)return;const Z=Q.size;for(const re of P)ne(re.el);Q.clear(),Z&&Se()}function ye(Z){Z.animationName.substring(0,2)==="f-"&&(ne(Z.target),Q.size||(ea(d,"in-transition"),!A&&Math.abs(Be.getPosition(!0)-T)<.5&&(A=!0,w("settle"))),Se())}function be(Z){if(Z.defaultPrevented)return;const re=Z.composedPath()[0];if(re.closest("[data-carousel-go-prev]"))return en(Z),void Be.prev();if(re.closest("[data-carousel-go-next]"))return en(Z),void Be.next();const ie=re.closest("[data-carousel-go-to]");if(ie)return en(Z),void Be.goTo(parseFloat(ie.dataset.carouselGoTo||"")||0);if(re.closest("[data-carousel-download]")){en(Z);const de=E[_].slides[0];if(de.downloadSrc||de.type==="image"&&de.src){const Ee=de.downloadFilename,pe=document.createElement("a"),ke=de.downloadSrc||de.src||"";pe.href=ke,pe.target="_blank",pe.download=Ee||ke,pe.click()}}else w("click",Z)}function me(Z){var re;const ie=Z.el;ie&&((re=ie.querySelector(".f-spinner"))===null||re===void 0||re.remove(),ea(ie,"is-loading"))}function Me(Z){var re;const ie=Z.el;ie&&((re=ie.querySelector(".f-html.is-error"))===null||re===void 0||re.remove(),ea(ie,"has-error"))}function _e(Z){var re;Z||(Z=(re=E[_])===null||re===void 0?void 0:re.slides[0]);const ie=Z==null?void 0:Z.el;if(!ie)return;let de=q("formatCaption",Z);de===void 0&&(de=Z.caption),de=de||"";const Ee=q("captionEl");if(Ee&&Ee instanceof HTMLElement){if(Z.index!==_)return;if(mt(de)&&(Ee.innerHTML=oe(de+"")),de instanceof HTMLElement){if(de.parentElement===Ee)return;Ee.innerHTML="",de.parentElement&&(de=de.cloneNode(!0)),Ee.append(de)}return}if(!de)return;let pe=Z.captionEl||ie.querySelector(".f-caption");!pe&&de instanceof HTMLElement&&de.classList.contains("f-caption")&&(pe=de),pe||(pe=document.createElement("div"),ze(pe,"f-caption"),mt(de)?pe.innerHTML=oe(de+""):de instanceof HTMLElement&&(de.parentElement&&(de=de.cloneNode(!0)),pe.append(de)));const ke=`f-caption-${Ol}_${Z.index}`;pe.setAttribute("id",ke),pe.dataset.selectable="true",ze(ie,"has-caption"),ie.setAttribute("aria-labelledby",ke),Z.captionEl=pe,ie.insertAdjacentElement("beforeend",pe)}function Ne(Z,re){let{transition:ie,tween:de}=Object.assign({transition:u.transition,tween:u.tween},re||{});if(!d||!o)return;const Ee=E.length;if(!Ee||function(ke,Y){var R,$,ae,le;if(!(d&&o&&Y&&mt(Y)&&Y!=="tween")||((R=E[_])===null||R===void 0?void 0:R.slides.length)>1)return!1;const xe=E.length;let Ae=ke>_?1:-1;ke=g?(ke%xe+xe)%xe:$e(0,ke,xe-1),b&&(Ae*=-1);const De=($=E[_])===null||$===void 0?void 0:$.slides[0],Pe=De==null?void 0:De.index,qe=(ae=E[ke])===null||ae===void 0?void 0:ae.slides[0],nt=qe==null?void 0:qe.index,bt=(le=E[ke])===null||le===void 0?void 0:le.pos;if(nt===void 0||Pe===void 0||Pe===nt||k===bt||Math.abs(ee()-((qe==null?void 0:qe.dim)||0))>1)return!1;A=!1,o.pause(),ue(),ze(d,"in-transition"),k=T=bt;const lt=I(De),Je=I(qe);return M(),lt&&(Q.add(Pe),lt.style.transform="",lt.addEventListener("animationend",ye),ea(lt,u.classes.isSelected),ze(lt,`f-${Y}Out to-${Ae>0?"next":"prev"}`)),Je&&(Q.add(nt),Je.style.transform="",Je.addEventListener("animationend",ye),ze(Je,u.classes.isSelected),ze(Je,`f-${Y}In from-${Ae>0?"prev":"next"}`)),Se(),!0}(Z,ie))return;Z=g?(Z%Ee+Ee)%Ee:$e(0,Z,Ee-1),T=E[Z||0].pos||0;const pe=o.isRunning()?o.getEndValues().pos:k;if(Math.abs(T-pe)<1)return k=T,_!==Z&&(_e(),J(),ce(),s=_,_=Z,w("change",_,s)),Se(),void(A||(A=!0,w("settle")));if(o.pause(),ue(),g){const ke=fe(),Y=Math.floor((pe-E[0].pos)/ke),R=T+Y*ke;T=[R+ke,R,R-ke].reduce(function($,ae){return Math.abs(ae-pe)<Math.abs($-pe)?ae:$})}ie!==!1&&Et(de)?o.spring(de).from({pos:k}).to({pos:T}).start():(k=T,M(),Se(),A||(A=!0,w("settle")))}function Se(){var Z;if(!d||!p)return;const re=E[_];U=L();const ie=new Set;let de;const Ee=[];for(const pe of P){if(pe.isVirtual&&!Q.has(pe.index)&&U.indexOf(pe)<0)continue;let ke=I(pe);if(!ke)continue;Ee.push(pe);const Y=((Z=re==null?void 0:re.slides)===null||Z===void 0?void 0:Z.indexOf(pe))>-1;if(Y&&ie.add(ke),!Q.has(pe.index)){const R=pe.pos?Math.round(1e4*pe.pos)/1e4:0,$=v?0:b?-1*R:R,ae=v?R:0,le=Oo($,0,pe.dim,0,100),xe=Oo(ae,0,pe.dim,0,100),Ae=u.setTransform||void 0;Ae instanceof Function?Ae(Be,pe,{x:$,y:ae,xPercent:le,yPercent:xe}):ke.style.transform=$||ae?`translate3d(${le}%, ${xe}%,0)`:""}if(q("adaptiveHeight")&&Y){const R=(ke.firstElementChild||ke).getBoundingClientRect().height;de=de==null?R:Math.max(de,R)}}[...Po(p,`.${u.classes.slide}`)].forEach(pe=>{const ke=parseInt(pe.getAttribute("index")||"-1"),Y=G[ke];Y||pe.remove(),ba(pe,u.classes.isSelected,ie.has(pe)),Y.isVirtual&&!Q.has(Y.index)&&U.indexOf(Y)<0&&H(Y)}),p&&de&&(p.style.height=`${de}px`),w("render",Ee)}function Le(){var Z;d==null||d.removeEventListener("click",be),ue(),document.removeEventListener("mousemove",K),i==null||i.disconnect(),i=void 0;for(const re of G)re.el&&Qa(re.el)&&(re.state=void 0,me(re),Me(re),H(re),re.isVirtual?((Z=re.el)===null||Z===void 0||Z.remove(),re.el=void 0):(re.el.style.transform="",p==null||p.appendChild(re.el)));for(const re of Object.values(f))re==null||re.destroy();f={},r==null||r.destroy(),r=void 0,o==null||o.destroy(),o=void 0;for(const re of Object.values(u.classes||{}))ea(d,re);ea(p,"is-draggable")}const Be={add:function(Z,re){const ie=k,de=T,Ee=C(Z,re);for(const pe of Ee)w("addSlide",pe);return W(B),j(),o&&de!==T&&o.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:ie}).to({pos:T}).start(),Se(),Be},canGoPrev:function(){return g||_>0},canGoNext:function(){return g||_<E.length-1},destroy:function(){return w("destroy"),window.removeEventListener("resize",X),Le(),V.clear(),d=null,E=[],G=[],u=Object.assign({},tn),f={},P=[],l="",B="*",c=2,Be},emit:w,filter:function(Z="*"){return W(Z),j(),Se(),w("filter",Z),Be},getContainer:function(){return d},getGapDim:he,getGestures:function(){return r},getLastMouseMove:function(){return Pl},getOptions:function(){return u},getPage:function(){return E[_]},getPageIndex:function(Z){if(Z!==void 0){for(const re of E||[])for(const ie of re.slides)if(ie.index===Z)return re.index;return-1}return _},getPageProgress:function(Z,re){Z===void 0&&(Z=_);const ie=E[Z];if(!ie)return Z>_?-1:1;const de=fe(),Ee=he();let pe=ie.pos,ke=Be.getPosition();if(g&&re!==!0){const Y=Math.floor((ke-E[0].pos)/de);ke-=Y*de,pe=[pe+de,pe,pe-de].reduce(function(R,$){return Math.abs($-ke)<Math.abs(R-ke)?$:R})}return(ke-pe)/(ie.dim+Ee)},getPageVisibility:function(Z){Z===void 0&&(Z=_);const re=E[Z];if(!re)return Z>_?-1:1;const ie=Be.getPosition(),de=ee();let Ee=re.pos;if(g){const pe=Be.getPosition(),ke=fe(),Y=Ee+Math.floor((pe-E[0].pos)/ke)*ke;Ee=[Y+ke,Y,Y-ke].reduce(function(R,$){return Math.abs($-pe)<Math.abs(R-pe)?$:R})}return Ee>ie&&Ee+re.dim<ie+de?1:Ee<ie?(Ee+re.dim-ie)/re.dim:Ee+re.dim>ie+de?(ie+de-Ee)/re.dim:0},getPages:function(){return E},getPlugins:function(){return f},getPosition:function(Z){var re;let ie=k;if(g&&Z!==!0){const de=fe();ie-=Math.floor((k-((re=E[0])===null||re===void 0?void 0:re.pos)||0)/de)*de}return ie},getSlides:function(){return G},getState:function(){return c},getTotalSlideDim:fe,getTween:function(){return o},getViewport:function(){return p},getViewportDim:ee,getVisibleSlides:function(Z){return Z===void 0?U:L(Z)},goTo:Ne,hasNavigated:function(){return s!==void 0},hideError:Me,hideLoading:me,init:function(){if(!e||!Qa(e))throw new Error("No Element found");return c!==0&&(Le(),c=0),d=e,m=a,window.removeEventListener("resize",X),m.breakpoints&&window.addEventListener("resize",X),X(),Be},isInfinite:function(){return g},isInTransition:function(){return Q.size>0},isRTL:function(){return b},isSettled:function(){return A},localize:function(Z,re=[]){return oe(Z,re)},next:function(Z={}){return Ne(_+1,Z),Be},off:function(Z,re){for(const ie of Z instanceof Array?Z:[Z])V.has(ie)&&V.set(ie,V.get(ie).filter(de=>de!==re));return Be},on:function(Z,re){for(const ie of Z instanceof Array?Z:[Z])V.set(ie,[...V.get(ie)||[],re]);return Be},prev:function(Z={}){return Ne(_-1,Z),Be},remove:function(Z){Z===void 0&&(Z=G.length-1);const re=G[Z];return re&&(w("removeSlide",re),re.el&&(ne(re.el),re.el.remove(),re.el=void 0),G.splice(Z,1),W(B),j(),Se()),Be},setPosition:function(Z){k=Z,M(),Se()},showError:function(Z,re){me(Z),Me(Z);const ie=Z.el;if(ie){const de=document.createElement("div");ze(de,"f-html"),ze(de,"is-error"),de.innerHTML=oe(re||"<p>{{ERROR}}</p>"),Z.htmlEl=de,ze(ie,"has-html"),ze(ie,"has-error"),ie.insertAdjacentElement("afterbegin",de),w("contentReady",Z)}return Be},showLoading:function(Z){const re=Z.el,ie=re==null?void 0:re.querySelector(".f-spinner");if(!re||ie)return Be;const de=q("spinnerTpl"),Ee=ha(de);return Ee&&(ze(Ee,"f-spinner"),ze(re,"is-loading"),re.insertAdjacentElement("beforeend",Ee)),Be},version:"6.0.16"};return Be};dr.l10n={en_EN:Fo},dr.getDefaults=()=>tn;/*! License details at fancyapps.com/license */const Fl=(e=!0,a="--f-scrollbar-compensate",n="--f-body-margin",r="hide-scrollbar")=>{const o=document,i=o.body,s=o.documentElement;if(e){if(i.classList.contains(r))return;let l=window.innerWidth-s.getBoundingClientRect().width;l<0&&(l=0),s.style.setProperty(a,`${l}px`);const c=parseFloat(window.getComputedStyle(i).marginRight);c&&i.style.setProperty(n,`${c}px`),i.classList.add(r)}else i.classList.remove(r),i.style.setProperty(n,""),o.documentElement.style.setProperty(a,"")};/*! License details at fancyapps.com/license */function Ll(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const xa=function(e="",a="",n=""){return e.split(a).join(n)};/*! License details at fancyapps.com/license */const $l={tpl:e=>`<img class="f-panzoom__content"
|
|
7
7
|
${e.srcset?'data-lazy-srcset="{{srcset}}"':""}
|
|
8
8
|
${e.sizes?'data-lazy-sizes="{{sizes}}"':""}
|
|
9
|
-
data-lazy-src="{{src}}" alt="{{alt}}" />`},Q7=()=>{let e;function a(u,f){const d=e==null?void 0:e.getOptions().Zoomable;let p=(Et(d)?Object.assign(Object.assign({},$l),d):$l)[u];return p&&typeof p=="function"&&f?p(f):p}function n(){e&&(e.on("addSlide",i),e.on("removeSlide",s),e.on("attachSlideEl",l),e.on("click",o),e.on("change",r))}function r(){c()}function o(u,f){const d=f.target;d&&!f.defaultPrevented&&d.dataset.panzoomAction&&m(d.dataset.panzoomAction)}function i(u,f){if(!e)return;const d=f.el;if(!d)return;const p=f.src||f.lazySrc||"",h=f.alt||f.caption||`Image #${f.index}`,g=f.srcset||f.lazySrcset||"",k=f.sizes||f.lazySizes||"";if(p&&mt(p)&&!f.html&&(!f.type||f.type==="image")){f.type="image";let A=a("tpl",f);A=xa(A,"{{src}}",p+""),A=xa(A,"{{alt}}",h+""),A=xa(A,"{{srcset}}",g+""),A=xa(A,"{{sizes}}",k+""),d.insertAdjacentHTML("afterbegin",A)}if(!d.querySelector(".f-panzoom__content"))return;const v=f.width&&f.width!=="auto"?parseFloat(f.width+""):"auto",x=f.height&&f.height!=="auto"?parseFloat(f.height+""):"auto",b=To(d,Object.assign({width:v,height:x,event:()=>e==null?void 0:e.getLastMouseMove(),classes:{container:"f-zoomable"}},a("Panzoom")));b.on("*",(A,_,...O)=>{e&&(_==="loading"&&(f.state=0),_==="loaded"&&(f.state=1),_==="error"&&(f.state=2,e==null||e.showError(f,"{{IMAGE_ERROR}}")),e.emit(`panzoom:${_}`,f,...O),_==="ready"&&e.emit("contentReady",f),f.index===e.getPageIndex()&&c())}),f.panzoomRef=b}function s(u,f){f.panzoomRef&&(f.panzoomRef.destroy(),f.panzoomRef=void 0)}function l(u,f){const d=f.panzoomRef;if(d)switch(d.getState()){case 0:d.init();break;case 3:d.execute(we.Reset,{velocity:0})}}function c(){var u;const f=e==null?void 0:e.getContainer();if(!f)return;const d=(u=e==null?void 0:e.getPage())===null||u===void 0?void 0:u.slides[0].panzoomRef,p=(d==null?void 0:d.canZoomIn())||!1,h=(d==null?void 0:d.canZoomOut())||!1,g=(d==null?void 0:d.isFullsize())||!1,k=!d||(d==null?void 0:d.getState())!==3;for(const v of(f==null?void 0:f.querySelectorAll("[data-panzoom-action]"))||[]){const x=v.dataset.panzoomAction;let b=!1;if(k)b=!0;else switch(x){case we.ZoomIn:p||(b=!0);break;case we.ZoomOut:h||(b=!0);break;case we.ToggleFull:p||h||(b=!0);const A=v.querySelector("g");A&&(A.style.display=g?"none":"");break;case we.ToggleCover:case we.ToggleMax:p||h||(b=!0)}b?(v.setAttribute("aria-disabled",""),v.setAttribute("tabindex","-1")):(v.removeAttribute("aria-disabled"),v.removeAttribute("tabindex"))}}function m(u,...f){var d;(d=e==null?void 0:e.getPage().slides[0].panzoomRef)===null||d===void 0||d.execute(u,...f)}return{init:function(u){e=u,e.getOptions().Zoomable!==!1&&e.on("initPlugins",n)},destroy:function(){if(e){e.off("addSlide",i),e.off("removeSlide",s),e.off("attachSlideEl",l),e.off("change",r);for(const u of e.getSlides())s(0,u)}e=void 0},execute:m}};/*! License details at fancyapps.com/license */const Rl={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},Hl=()=>{let e,a;function n(){const p=e==null?void 0:e.getOptions().Sync;return Et(p)?Object.assign(Object.assign({},Rl),p):Rl}function r(p){var h,g,k;e&&p&&(a=p,e.getOptions().classes=Object.assign(Object.assign({},e.getOptions().classes),{isSelected:""}),e.getOptions().initialSlide=((g=(h=a.getPage())===null||h===void 0?void 0:h.slides[0])===null||g===void 0?void 0:g.index)||0,n().syncOnChange&&e.on("change",s),n().syncOnClick&&e.on("click",c),n().syncOnHover&&((k=e.getViewport())===null||k===void 0||k.addEventListener("mouseover",m)),function(){!e||!a||(e.on("ready",i),e.on("refresh",u),a.on("change",l),a.on("filter",f))}())}function o(){const p=n().target;e&&p&&r(p)}function i(){d()}function s(){var p;if(e&&a){const h=((p=e.getPage())===null||p===void 0?void 0:p.slides)||[],g=a.getPageIndex(h[0].index||0);g>-1&&a.goTo(g,e.hasNavigated()?void 0:{tween:!1,transition:!1}),d()}}function l(){var p;if(e&&a){const h=e.getPageIndex(((p=a.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);h>-1&&e.goTo(h,a.hasNavigated()?void 0:{tween:!1,transition:!1}),d()}}function c(p,h){var g;if(!e||!a||!((g=e.getTween())===null||g===void 0)&&g.isRunning())return;const k=e==null?void 0:e.getOptions().classes.slide;if(!k)return;const v=k?h.target.closest(`.${k}`):null;if(v){const x=parseInt(v.getAttribute("index")||"")||0,b=a.getPageIndex(x);a.goTo(b)}}function m(p){e&&c(0,p)}function u(){var p;if(e&&a){const h=e.getPageIndex(((p=a.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);h>-1&&e.goTo(h,{tween:!1,transition:!1}),d()}}function f(p,h){e&&a&&(e.filter(h),l())}function d(){var p,h,g;if(!a)return;const k=((h=(p=a.getPage())===null||p===void 0?void 0:p.slides[0])===null||h===void 0?void 0:h.index)||0;for(const v of(e==null?void 0:e.getSlides())||[])(g=v.el)===null||g===void 0||g.classList.toggle("is-selected",v.index===k)}return{init:function(p){e=p,e.on("initSlides",o)},destroy:function(){var p;e==null||e.off("ready",i),e==null||e.off("refresh",u),e==null||e.off("change",s),e==null||e.off("click",c),(p=e==null?void 0:e.getViewport())===null||p===void 0||p.removeEventListener("mouseover",m),a==null||a.off("change",l),a==null||a.off("filter",f),a=void 0,e==null||e.off("initSlides",o),e=void 0},getTarget:function(){return a}}};/*! License details at fancyapps.com/license */const zl={showLoading:!0,preload:1},ur="is-lazyloading",Il="is-lazyloaded",Gl=()=>{let e;function a(){const o=e==null?void 0:e.getOptions().Lazyload;return Et(o)?Object.assign(Object.assign({},zl),o):zl}function n(o){const i=o.el;if(!i)return;const s="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(i.querySelectorAll(s));i.matches(s)&&l.push(i);for(const c of l){const m=c.dataset.lazySrc,u=c.dataset.lazySrcset,f=c.dataset.lazySizes,d=c.dataset.lazyBg,p=(c instanceof HTMLImageElement||c instanceof HTMLSourceElement)&&(m||u),h=c instanceof HTMLElement&&d;if(!p&&!h)continue;const g=m||u||d;g&&(p&&g?(a().showLoading&&(e==null||e.showLoading(o)),c.addEventListener("load",()=>{e==null||e.hideLoading(o),c instanceof HTMLImageElement?c.decode().then(()=>{c.classList.remove(ur),c.classList.add(Il)}):(c.classList.remove(ur),c.classList.add(Il)),e==null||e.emit("lazyLoad:loaded",o,c,g)}),c.addEventListener("error",()=>{e==null||e.hideLoading(o),c.classList.remove(ur),c.classList.add("has-lazyerror"),e==null||e.emit("lazyLoad:error",o,c,g)}),c.classList.add("f-lazyload"),c.classList.add(ur),e==null||e.emit("lazyLoad:load",o,c,g),m&&(c.src=m),u&&(c.srcset=u),f&&(c.sizes=f)):h&&(document.body.contains(c)||(document.createElement("img").src=d),c.style.backgroundImage=`url('${d}')`),delete c.dataset.lazySrc,delete c.dataset.lazySrcset,delete c.dataset.lazySizes)}}function r(){if(!e)return;const o=a().preload,i=[...e.getVisibleSlides()],s=e.getPosition(),l=e.getViewportDim();i.push(...e.getVisibleSlides(s+l*o),...e.getVisibleSlides(s-l*o));for(const c of i||[])n(c)}return{init:function(o){e=o,e.on("render",r)},destroy:function(){e==null||e.off("render",r),e=void 0}}};/*! License details at fancyapps.com/license */const jl={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>'},K7=()=>{let e,a,n;function r(s){if(!e)return;const l=`<button data-carousel-go-${s} tabindex="0" class="f-button is-arrow is-${s}" title="{{${s.toUpperCase()}}}">`+function(){const c=e==null?void 0:e.getOptions().Arrows;return Et(c)?Object.assign(Object.assign({},jl),c):jl}()[`${s}Tpl`]+"</button";return ha(e.localize(l))||void 0}function o(){var s;a==null||a.remove(),a=void 0,n==null||n.remove(),n=void 0,(s=e==null?void 0:e.getContainer())===null||s===void 0||s.classList.remove("has-arrows")}function i(){e&&e.getOptions().Arrows!==!1&&e.getPages().length>1?(function(){if(!e)return;const s=e.getViewport();s&&(a||(a=r("prev"),a&&s.insertAdjacentElement("beforebegin",a)),n||(n=r("next"),n&&s.insertAdjacentElement("afterend",n)),ba(e.getContainer(),"has-arrows",!(!a&&!n)))}(),e&&(a==null||a.toggleAttribute("aria-disabled",!e.canGoPrev()),n==null||n.toggleAttribute("aria-disabled",!e.canGoNext()))):o()}return{init:function(s){e=s.on(["change","refresh"],i)},destroy:function(){o(),e==null||e.off(["change","refresh"],i),e=void 0}}};/*! License details at fancyapps.com/license */const ql={moveLeft:{tpl:'<button data-panzoom-action="moveLeft" class="f-button" title="{{MOVE_LEFT}}"><svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg></button>'},moveRight:{tpl:'<button data-panzoom-action="moveRight" class="f-button" title="{{MOVE_RIGHT}}"><svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg></button>'},moveUp:{tpl:'<button data-panzoom-action="moveUp" class="f-button" title="{{MOVE_UP}}"><svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg></button>'},moveDown:{tpl:'<button data-panzoom-action="moveDown" class="f-button" title="{{MOVE_DOWN}}"><svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg></button>'},zoomIn:{tpl:'<button data-panzoom-action="zoomIn" class="f-button" title="{{ZOOM_IN}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg></button>'},zoomOut:{tpl:'<button data-panzoom-action="zoomOut" class="f-button" title="{{ZOOM_OUT}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},toggle1to1:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg></button>'},toggleFull:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},rotateCCW:{tpl:'<button data-panzoom-action="rotateCCW" class="f-button" title="{{ROTATE_CCW}}"><svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg></button>'},rotateCW:{tpl:'<button data-panzoom-action="rotateCW" class="f-button" title="{{ROTATE_CW}}"><svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg></button>'},flipX:{tpl:'<button data-panzoom-action="flipX" class="f-button" title="{{FLIP_X}}"><svg><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg></button>'},flipY:{tpl:'<button data-panzoom-action="flipY" class="f-button" title="{{FLIP_Y}}"><svg><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg></button>'},reset:{tpl:'<button data-panzoom-action="reset" class="f-button" title="{{RESET}}"><svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg></button>'}};/*! License details at fancyapps.com/license */var Wl;(function(e){e.Left="left",e.middle="middle",e.right="right"})(Wl||(Wl={}));const Yl=Object.assign({counter:{tpl:'<div class="f-carousel__counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},ql),Ul={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Xl=()=>{let e,a;function n(){const o=e==null?void 0:e.getOptions().Toolbar;return Et(o)?Object.assign(Object.assign({},Ul),o):Ul}function r(){var o,i,s;if(!(e!=null&&e.getOptions().Toolbar)||!e||a)return;let l=n().enabled;if(!l)return;let c=n().absolute;const m=e.getSlides().length>1;let u=!1,f=!1;for(const v of e.getSlides())v.panzoomRef&&(u=!0),(v.downloadSrc||v.type==="image"&&v.src)&&(f=!0);let d=((o=e.getPlugins().Thumbs)===null||o===void 0?void 0:o.isEnabled())||!1,p=m&&e.getPlugins().Autoplay||!1,h=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(l==="auto"&&(l=u),!l)return;a=document.createElement("div"),a.classList.add("f-carousel__toolbar");const g=n().display,k=Tt({},Yl,n().items);for(const v of["left","middle","right"]){const x=g[v]||[],b=document.createElement("div");b.classList.add("f-carousel__toolbar__column"),b.classList.add(`is-${v}`);for(const A of x){let _;if(mt(A)){if(A==="counter"&&!m||A==="autoplay"&&!p||ql[A]&&!u||A==="fullscreen"&&!h||A==="thumbs"&&!d||A==="download"&&!f)continue;_=k[A]}if(typeof A=="object"&&(_=A),_&&_.tpl){let O=e.localize(_.tpl);O=O.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const N=ha(O);N&&(typeof _.click=="function"&&e&&N.addEventListener("click",S=>{S.preventDefault(),S.stopPropagation(),typeof _.click=="function"&&e&&_.click(e,S)}),b.append(N))}}a.append(b)}a.childElementCount&&(c===!0&&a.classList.add("is-absolute"),(i=e.getContainer())===null||i===void 0||i.classList.add("has-toolbar"),(s=e.getViewport())===null||s===void 0||s.insertAdjacentElement("beforebegin",a))}return{init:function(o){e=o,e.on("initSlides",r)},destroy:function(){var o;e==null||e.off("initSlides",r),(o=e==null?void 0:e.getContainer())===null||o===void 0||o.classList.remove("has-toolbar"),a==null||a.remove(),a=void 0},add:function(o,i){Yl[o]=i},isEnabled:function(){return!!a}}};/*! License details at fancyapps.com/license */const Zl={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},J7=()=>{let e,a,n=!1,r=!1,o=!1,i=null;function s(O){const N=e==null?void 0:e.getOptions().Autoplay;let S=(Et(N)?Object.assign(Object.assign({},Zl),N):Zl)[O];return S&&typeof S=="function"&&e?S(e):S}function l(){var O;const N=((O=e==null?void 0:e.getPage())===null||O===void 0?void 0:O.slides)||[];for(const S of N)if(S.state===0)return!0;return!1}function c(){clearTimeout(a),a=void 0}function m(){if(a||o||l()||!(e!=null&&e.isSettled()))return;(function(){var N,S,B,G;if(!e||(d(),!s("showProgressbar")))return;let T=s("progressbarParentEl");if(!T&&(!((N=e.getPlugins().Toolbar)===null||N===void 0)&&N.isEnabled())&&(T=e.getContainer()),!T&&((S=e.getPlugins().Toolbar)===null||S===void 0?void 0:S.isEnabled())!==!0){const U=((B=e.getPages()[0])===null||B===void 0?void 0:B.slides)||[],E=((G=e.getPage())===null||G===void 0?void 0:G.slides)||[];U.length===1&&E.length===1&&(T=E[0].el)}if(T||(T=e.getViewport()),!T)return;i=document.createElement("div"),i.classList.add("f-progressbar"),T.prepend(i);const Q=s("timeout")||1e3;i.style.animationDuration=`${Q}ms`})();const O=s("timeout");a=setTimeout(()=>{e&&n&&!r&&(e.isInfinite()||e.getPageIndex()!==e.getPages().length-1?e.next():e.goTo(0))},O)}function u(){var O,N;if(!e||e.getPages().length<2||e.getOptions().Autoplay===!1||n)return;n=!0,e.emit("autoplay:start",s("timeout")),(O=e.getContainer())===null||O===void 0||O.classList.add("has-autoplay"),(N=e.getTween())===null||N===void 0||N.on("start",x);const S=e==null?void 0:e.getContainer();S&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(S.addEventListener("mouseenter",b,!1),S.addEventListener("mouseleave",A,!1)),e.on("change",k),e.on("settle",v),e.on("contentReady",h),e.on("panzoom:animationStart",f),e.isSettled()&&m()}function f(){var O,N;if(c(),d(),n&&e){e.emit("autoplay:end"),(O=e.getContainer())===null||O===void 0||O.classList.remove("has-autoplay"),(N=e.getTween())===null||N===void 0||N.off("start",x);const S=e==null?void 0:e.getContainer();S&&(S.removeEventListener("mouseenter",b,!1),S.removeEventListener("mouseleave",A,!1))}e&&(e.off("change",k),e.off("settle",v),e.off("contentReady",h),e.off("panzoom:animationStart",f)),n=!1,r=!1}function d(){i&&(i.remove(),i=null)}function p(){e&&e.getPages().length>1&&s("autoStart")&&u()}function h(O){e&&e.getPageIndex(O.index)===e.getPageIndex()&&(!n||o||l()||m())}function g(O,N){const S=N.target;S&&!N.defaultPrevented&&S.dataset.autoplayAction==="toggle"&&_.toggle()}function k(){!e||!(e!=null&&e.isInfinite())&&e.getPageIndex()===e.getPages().length-1?f():(d(),c())}function v(){!n||o||r||m()}function x(){c(),d()}function b(){o=!0,n&&(d(),c())}function A(){o=!1,n&&!r&&(e!=null&&e.isSettled())&&m()}const _={init:function(O){e=O,e.on("ready",p),e.on("click",g)},destroy:function(){f(),e==null||e.off("ready",p),e==null||e.off("click",g),e=void 0},isEnabled:()=>n,pause:function(){r=!0,c()},resume:function(){r=!1,n&&!o&&m()},start(){u()},stop(){f()},toggle(){n?f():u()}};return _};/*! License details at fancyapps.com/license */const Lo={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let $o;const ef=()=>{let e,a,n,r=0,o=0,i=!0;function s(b){const A=e==null?void 0:e.getOptions().Thumbs;let _=(Et(A)?Object.assign(Object.assign({},Lo),A):Lo)[b];return _&&typeof _=="function"?_():_}function l(){if(!e||(e==null?void 0:e.getOptions().Thumbs)===!1)return!1;let b=0;for(const A of e.getSlides())A.thumbSrc&&b++;return b>=s("minCount")}function c(){return s("type")==="modern"}function m(b=!1){const A=e==null?void 0:e.getContainer();if(e&&A&&!n&&l()){if(!n){const _=A.nextElementSibling;_!=null&&_.classList.contains("f-thumbs")&&(n=_)}if(!n){n=document.createElement("div"),n.classList.add("f-thumbs");const _=s("parentEl");_?_.insertAdjacentElement("beforeend",n):A.insertAdjacentElement("afterend",n)}n.classList.add(`is-${s("type")}`),n.classList.add("is-syncing"),b&&(n.style.maxHeight="0px")}}function u(b){let A=b.thumb?b.thumb instanceof HTMLImageElement?b.thumb.src:b.thumb:b.thumbSrc||void 0,_=s("thumbTpl");return _=xa(_,"{{alt}}",`Thumbnail #${b.index}`),_=xa(_,"{{src}}",A+""),_=xa(_,"{{index}}",`${b.index}`),_=xa(_,"{{page}}",`${b.index||1}`),{html:_,class:b.thumbClass}}function f(){var b,A;if(!$o||!e||!n||a)return;const _=[];for(const O of e.getSlides())_.push(u(O));_.length&&(a=$o(n,Tt({},{Sync:{target:e},Lazyload:{preload:1},slides:_,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},initialSlide:e.getOptions().initialPage,center:!0,fill:!c(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:O=>{let N=0;return c()&&(function(){if(!c()||!n)return;const S=B=>n&&parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+B))||0;r=S("width"),o=S("clip-width")}(),N=4*(r-o)),O&&O.getTotalSlideDim()<=O.getViewportDim()-N?1/0:1}},Lo.Carousel||{},s("Carousel")||{}),{Sync:Hl,Lazyload:Gl}).init(),(b=a.getGestures())===null||b===void 0||b.on("start",()=>{i=!1}),a.on("click",(O,N)=>{const S=N.target;if(S){const B=S.matches("button")?S:S.firstElementChild;B&&B.matches("button")&&B.focus({})}}),(A=e.getContainer())===null||A===void 0||A.classList.add("has-thumbs"),x())}function d(){var b;l()&&(s("showOnStart")&&(m(),f()),(b=e==null?void 0:e.getGestures())===null||b===void 0||b.on("start",p),e==null||e.on("addSlide",k),e==null||e.on("click",v))}function p(){var b,A;i=!0,!((b=document.activeElement)===null||b===void 0)&&b.closest(".f-thumbs")&&((A=document.activeElement)===null||A===void 0||A.blur())}function h(){var b,A;n==null||n.classList.toggle("is-syncing",(e==null?void 0:e.hasNavigated())===!1||((b=e==null?void 0:e.getTween())===null||b===void 0?void 0:b.isRunning())),x(),!((A=e==null?void 0:e.getGestures())===null||A===void 0)&&A.isPointerDown()&&function(){if(!c()||!e||!a||!i)return;const _=a.getTween(),O=a.getPages(),N=e.getPageIndex()||0,S=e.getPageProgress()||0;if(!(e&&O&&O[N]&&_))return;const B=_.isRunning()?_.getCurrentValues().pos:a.getPosition();if(B===void 0)return;let G=O[N].pos+S*(r-o);G=$e(O[0].pos,G,O[O.length-1].pos),_.from({pos:B}).to({pos:G}).start()}()}function g(){i=!0}function k(b,A){a==null||a.add(u(A),A.index)}function v(b,A){const _=A.target;_&&!A.defaultPrevented&&_.dataset.thumbsAction==="toggle"&&function(){if(n||(m(!0),f()),!n)return;const O=n.style.maxHeight;n.style.maxHeight=O?"":"0px"}()}function x(){if(!c()||!e||!a)return;const b=(a==null?void 0:a.getSlides())||[];let A=-.5*r;for(const _ of b){const O=_.el;if(!O)continue;let N=e.getPageProgress(_.index)||0;N=Math.max(-1,Math.min(1,N)),N>-1&&N<1&&(A+=.5*r*(1-Math.abs(N))),N=Math.round(1e4*N)/1e4,A=Math.round(1e4*A)/1e4,O.style.setProperty("--progress",`${Math.abs(N)}`),O.style.setProperty("--shift",`${e!=null&&e.isRTL()?-1*A:A}px`),N>-1&&N<1&&(A+=.5*r*(1-Math.abs(N)))}}return{init:function(b,A){$o=A,e=b,e.on("ready",d),e.on("render",h),e.on("change",g)},destroy:function(){var b,A;e==null||e.off("ready",d),e==null||e.off("render",h),e==null||e.off("change",g),e==null||e.off("addSlide",k),e==null||e.off("click",v),(b=e==null?void 0:e.getGestures())===null||b===void 0||b.off("start",p),(A=e==null?void 0:e.getContainer())===null||A===void 0||A.classList.remove("has-thumbs"),e=void 0,a==null||a.destroy(),a=void 0,n==null||n.remove(),n=void 0},getContainer:function(){return n},isEnabled:function(){return l()}}};/*! License details at fancyapps.com/license */const Ql={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},tf=()=>{let e;function a(o,i){let s=i.src;if(!mt(s))return;let l=i.type;if(!l){if(l||(s.charAt(0)==="#"?l="inline":s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?l="image":s.match(/\.(pdf)((\?|#).*)?$/i)?l="pdf":s.match(/\.(html|php)((\?|#).*)?$/i)&&(l="iframe")),!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);c&&(s=`https://maps.google.${c[1]}/?ll=${(c[2]?c[2]+"&z="+Math.floor(parseFloat(c[3]))+(c[4]?c[4].replace(/^\//,"&"):""):c[4]+"").replace(/\?/,"&")}&output=${c[4]&&c[4].indexOf("layer=c")>0?"svembed":"embed"}`,l="gmap")}if(!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);c&&(s=`https://maps.google.${c[1]}/maps?q=${c[2].replace("query=","q=").replace("api=1","")}&output=embed`,l="gmap")}i.src=s,i.type=l}}function n(o,i){i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||function(s){if(!e||!s.el||!s.src)return;const l=document.createElement("iframe");l.classList.add("f-iframe");for(const[m,u]of Object.entries(function(){const f=e==null?void 0:e.getOptions().Html;return Et(f)?Object.assign(Object.assign({},Ql),f):Ql}().iframeAttr||{}))l.setAttribute(m,u);l.onerror=()=>{e&&e.getState()===1&&e.showError(s,"{{IFRAME_ERROR}}")},l.src=s.src;const c=document.createElement("div");if(c.classList.add("f-html"),c.append(l),s.width){let m=`${s.width}`;m.match(/^\d+$/)&&(m+="px"),c.style.maxWidth=`${m}`}if(s.height){let m=`${s.height}`;m.match(/^\d+$/)&&(m+="px"),c.style.maxHeight=`${m}`}if(s.aspectRatio){const m=s.el.getBoundingClientRect();c.style.aspectRatio=`${s.aspectRatio}`,c.style[m.width>m.height?"width":"height"]="auto",c.style[m.width>m.height?"maxWidth":"maxHeight"]="none"}s.contentEl=l,s.htmlEl=c,s.el.classList.add("has-html"),s.el.classList.add("has-iframe"),s.el.classList.add(`has-${s.type}`),s.el.prepend(c),e.emit("contentReady",s)}(i)}function r(o,i){var s,l;i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||(e==null||e.hideError(i),(s=i.contentEl)===null||s===void 0||s.remove(),i.contentEl=void 0,(l=i.htmlEl)===null||l===void 0||l.remove(),i.htmlEl=void 0)}return{init:function(o){e=o,e.on("addSlide",a),e.on("attachSlideEl",n),e.on("detachSlideEl",r)},destroy:function(){e==null||e.off("addSlide",a),e==null||e.off("attachSlideEl",n),e==null||e.off("detachSlideEl",r),e=void 0}}};/*! License details at fancyapps.com/license */const Kl=(e,a={})=>{const n=new URL(e),r=new URLSearchParams(n.search),o=new URLSearchParams;for(const[l,c]of[...r,...Object.entries(a)]){let m=c+"";if(l==="t"){let u=m.match(/((\d*)m)?(\d*)s?/);u&&o.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else o.set(l,m)}let i=o+"",s=e.match(/#t=((.*)?\d+s)/);return s&&(i+=`#t=${s[1]}`),i},Jl={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
|
|
10
|
-
<source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},af=()=>{let e,a=!1;function n(){const d=e==null?void 0:e.getOptions().Video;return Et(d)?Object.assign(Object.assign({},Jl),d):Jl}function r(){var d;return(d=e==null?void 0:e.getPage())===null||d===void 0?void 0:d.slides[0]}const o=d=>{var p;try{let h=JSON.parse(d.data);if(d.origin==="https://player.vimeo.com"){if(h.event==="ready")for(let g of Array.from(((p=e==null?void 0:e.getContainer())===null||p===void 0?void 0:p.getElementsByClassName("f-iframe"))||[]))g instanceof HTMLIFrameElement&&g.contentWindow===d.source&&(g.dataset.ready="true")}else if(d.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&h.event==="onReady"){const g=document.getElementById(h.id);g&&(g.dataset.ready="true")}}catch{}};function i(d,p){const h=p.src;if(!mt(h))return;let g=p.type;if(!g||g==="html5video"){const k=h.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);k&&(g="html5video",p.html5videoFormat=p.html5videoFormat||"video/"+(k[1]==="ogv"?"ogg":k[1]))}if(!g||g==="youtube"){const k=h.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(k){const v=Object.assign(Object.assign({},n().youtube),p.youtube||{}),x=`www.youtube${v.nocookie?"-nocookie":""}.com`,b=Kl(h,v),A=encodeURIComponent(k[2]);p.videoId=A,p.src=`https://${x}/embed/${A}?${b}`,p.thumb=p.thumb||`https://i.ytimg.com/vi/${A}/mqdefault.jpg`,g="youtube"}}if(!g||g==="vimeo"){const k=h.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(k){const v=Object.assign(Object.assign({},n().vimeo),p.vimeo||{}),x=Kl(h,v),b=encodeURIComponent(k[2]),A=k[5]||"";p.videoId=b,p.src=`https://player.vimeo.com/video/${b}?${A?`h=${A}${x?"&":""}`:""}${x}`,g="vimeo"}}p.type=g}function s(d,p){p.type==="html5video"&&function(h){if(!e||!h.el||!h.src)return;const{el:g,src:k}=h;if(!g||!k)return;const v=h.html5videoTpl||n().html5videoTpl,x=h.html5videoFormat||n().html5videoFormat;if(!v)return;const b=h.poster||(h.thumb&&mt(h.thumb)?h.thumb:""),A=ha(v.replace(/\{\{src\}\}/gi,k+"").replace(/\{\{format\}\}/gi,x||"").replace(/\{\{poster\}\}/gi,b+""));if(!A)return;const _=document.createElement("div");_.classList.add("f-html"),_.append(A),h.contentEl=A,h.htmlEl=_,g.classList.add(`has-${h.type}`),g.prepend(_),u(h),e.emit("contentReady",h)}(p),p.type!=="youtube"&&p.type!=="vimeo"||function(h){if(!e||!h.el||!h.src)return;const g=document.createElement("iframe");g.classList.add("f-iframe"),g.setAttribute("id",`f-iframe_${h.videoId}`);for(const[v,x]of Object.entries(n().iframeAttr||{}))g.setAttribute(v,x);g.onload=()=>{var v;e&&e.getState()===1&&h.type==="youtube"&&((v=g.contentWindow)===null||v===void 0||v.postMessage(JSON.stringify({event:"listening",id:g.getAttribute("id")}),"*"))},g.onerror=()=>{e&&e.getState()===1&&(e==null||e.showError(h,"{{IFRAME_ERROR}}"))},g.src=h.src;const k=document.createElement("div");k.classList.add("f-html"),k.append(g),h.contentEl=g,h.htmlEl=k,h.el.classList.add("has-html"),h.el.classList.add("has-iframe"),h.el.classList.add(`has-${h.type}`),h.el.prepend(k),u(h),e.emit("contentReady",h)}(p)}function l(d,p){var h,g;p.type!=="html5video"&&p.type!=="youtube"&&p.type!=="vimeo"||((h=p.contentEl)===null||h===void 0||h.remove(),p.contentEl=void 0,(g=p.htmlEl)===null||g===void 0||g.remove(),p.htmlEl=void 0),p.poller&&clearTimeout(p.poller)}function c(){a=!1}function m(){if(a)return;a=!0;const d=r();(d&&d.autoplay!==void 0?d.autoplay:n().autoplay)&&(function(){var p;const h=r(),g=h==null?void 0:h.el;if(g&&(h==null?void 0:h.type)==="html5video")try{const v=g.querySelector("video");if(v){const x=v.play();x!==void 0&&x.then(()=>{}).catch(b=>{v.muted=!0,v.play()})}}catch{}const k=h==null?void 0:h.htmlEl;k instanceof HTMLIFrameElement&&((p=k.contentWindow)===null||p===void 0||p.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const p=r(),h=p==null?void 0:p.type;if(!(p!=null&&p.el)||h!=="youtube"&&h!=="vimeo")return;const g=()=>{if(p.contentEl&&p.contentEl instanceof HTMLIFrameElement&&p.contentEl.contentWindow){let k;if(p.contentEl.dataset.ready==="true")return k=p.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},k&&p.contentEl.contentWindow.postMessage(JSON.stringify(k),"*"),void(p.poller=void 0);p.type==="youtube"&&(k={event:"listening",id:p.contentEl.getAttribute("id")},p.contentEl.contentWindow.postMessage(JSON.stringify(k),"*"))}p.poller=setTimeout(g,250)};g()}())}function u(d){const p=d==null?void 0:d.htmlEl;if(d&&p&&(d.type==="html5video"||d.type==="youtube"||d.type==="vimeo")){if(p.style.aspectRatio="",p.style.width="",p.style.height="",p.style.maxWidth="",p.style.maxHeight="",d.width){let h=`${d.width}`;h.match(/^\d+$/)&&(h+="px"),p.style.maxWidth=`${h}`}if(d.height){let h=`${d.height}`;h.match(/^\d+$/)&&(h+="px"),p.style.maxHeight=`${h}`}if(d.aspectRatio){const h=d.aspectRatio.split("/"),g=parseFloat(h[0].trim()),k=h[1]?parseFloat(h[1].trim()):0,v=g&&k?g/k:g;p.offsetHeight;const x=p.getBoundingClientRect(),b=v<(x.width||1)/(x.height||1);p.style.aspectRatio=`${d.aspectRatio}`,p.style.width=b?"auto":"",p.style.height=b?"":"auto"}}}function f(){u(r())}return{init:function(d){e=d,e.on("addSlide",i),e.on("attachSlideEl",s),e.on("detachSlideEl",l),e.on("ready",m),e.on("change",c),e.on("settle",m),e.on("refresh",f),window.addEventListener("message",o)},destroy:function(){e==null||e.off("addSlide",i),e==null||e.off("attachSlideEl",s),e==null||e.off("detachSlideEl",l),e==null||e.off("ready",m),e==null||e.off("change",c),e==null||e.off("settle",m),e==null||e.off("refresh",f),window.removeEventListener("message",o),e=void 0}}};/*! License details at fancyapps.com/license */const e1={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},t1="in-fullscreen-mode",nf=()=>{let e;function a(f){const d=e==null?void 0:e.getOptions().Fullscreen;let p=(Et(d)?Object.assign(Object.assign({},e1),d):e1)[f];return p&&typeof p=="function"&&e?p(e):p}function n(){var f;(f=e==null?void 0:e.getPlugins().Toolbar)===null||f===void 0||f.add("fullscreen",{tpl:a("btnTpl")})}function r(){if(a("autoStart")){const f=s();f&&c(f)}}function o(f,d){const p=d.target;p&&!d.defaultPrevented&&p.dataset.fullscreenAction==="toggle"&&u()}function i(f){s()&&f.key==="Escape"&&!f.defaultPrevented&&u()}function s(){return a("el")||(e==null?void 0:e.getContainer())||void 0}function l(){const f=document;return f.fullscreenEnabled?!!f.fullscreenElement:!!f.webkitFullscreenEnabled&&!!f.webkitFullscreenElement}function c(f){const d=document;let p;return f||(f=d.documentElement),d.fullscreenEnabled?p=f.requestFullscreen():d.webkitFullscreenEnabled&&(p=f.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),p&&p.then(()=>{f.classList.add(t1)}),p}function m(){const f=document;let d;return f.fullscreenEnabled?d=f.fullscreenElement&&f.exitFullscreen():f.webkitFullscreenEnabled&&(d=f.webkitFullscreenElement&&f.webkitExitFullscreen()),d&&d.then(()=>{var p;(p=s())===null||p===void 0||p.classList.remove(t1)}),d}function u(){const f=s();f&&(l()?m():c(f))}return{init:function(f){e=f,e.on("initPlugins",n),e.on("ready",r),e.on("click",o)},destroy:function(){e==null||e.off("initPlugins",n),e==null||e.off("ready",r),e==null||e.off("click",o),document.removeEventListener("keydown",i,!0)},exit:m,inFullscreen:l,request:c,toggle:u}};/*! License details at fancyapps.com/license */let Zt,fr=!1,a1=!1,Cn=!1,Ro=!1;const mr=()=>{const e=new URL(document.URL).hash,a=e.slice(1).split("-"),n=a[a.length-1],r=n&&/^\+?\d+$/.test(n)&&parseInt(a.pop()||"1",10)||1;return{hash:e,slug:a.join("-"),index:r}},Ho=()=>{if(!Zt||Zt.getInstance())return;const{slug:e,index:a}=mr();if(!e)return;let n=document.querySelector(`[data-slug="${e}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!Zt||Zt.getInstance())return;const r=document.querySelectorAll(`[data-fancybox="${e}"]`);r.length&&(n=r[a-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},rf=()=>{var e,a,n;if(!Zt||Cn)return;const r=Zt==null?void 0:Zt.getInstance();if((r==null?void 0:r.getOptions().Hash)===!1)return;const{slug:o,index:i}=mr(),s=((e=r==null?void 0:r.getSlide())===null||e===void 0?void 0:e.fancybox)||((a=r==null?void 0:r.getSlide())===null||a===void 0?void 0:a.slug)||void 0;r&&s&&(o===s?(n=r.getCarousel())===null||n===void 0||n.goTo(i-1):(Ro=!0,r.close(),Ro=!1)),Ho()},n1=()=>{Zt&&setTimeout(()=>{fr=!0,Ho(),fr=!1,window.addEventListener("hashchange",rf,!1)},300)},zo=()=>{let e,a="auto",n="";function r(){if(!e||!e.isTopMost()||e.getOptions().Hash===!1)return;const s=e.getCarousel();if(!s)return;const{hash:l,slug:c}=mr(),m=e.getSlide();if(!m)return;let u=m.fancybox||"",f=parseInt(m.index+"",10)+1;if(!u)return;let d=`#${u}-${f}`;if(l!==d&&(n=l),history.scrollRestoration&&(a=history.scrollRestoration,history.scrollRestoration="manual"),s.on("change",o),!fr)if(u===c)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+d)}catch{}else try{window.history.pushState({},document.title,window.location.pathname+window.location.search+d),a1=!0}catch{}}function o(){if(!e||!e.isTopMost()||e.getOptions().Hash===!1)return;const{slug:s}=mr(),l=e.getSlide();if(!l)return;let c=l.fancybox||"",m=`#${c}-${l.index+1}`;if(c===s){Cn=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+m)}catch{}Cn=!1}}function i(){if(Ro||!e||!e.isTopMost()||e.getOptions().Hash===!1)return;const s=e.getSlide();if(s&&s.fancybox){Cn=!0;try{!a1||fr||function(){if(window.parent===window)return!1;try{var l=window.frameElement}catch{l=null}return l===null?location.protocol==="data:":l.hasAttribute("sandbox")}()?window.history.replaceState({},document.title,window.location.pathname+window.location.search+n):window.history.back()}catch{}Cn=!1}}return{init:function(s){e=s,e.on("ready",r),e.on("close",i)},destroy:function(){e==null||e.off("ready",r),e==null||e.off("close",i);const s=e==null?void 0:e.getCarousel();s&&s.off("change",o),e=void 0,history.scrollRestoration&&a&&(history.scrollRestoration=a)}}};zo.startFromUrl=Ho,zo.setup=function(e){Zt||(Zt=e,Ll()&&(/complete|interactive|loaded/.test(document.readyState)?n1():document.addEventListener("DOMContentLoaded",n1)))};/*! License details at fancyapps.com/license */const of=Object.assign(Object.assign({},Fo),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});/*! License details at fancyapps.com/license */const r1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Xl().add("close",{tpl:r1});const o1=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))},i1=(e=null,a="",n)=>{if(!e||!e.parentElement||!a)return void(n&&n());o1(e);const r=o=>{o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",r),delete e.dataset.animationName,n&&n(),e.classList.remove(a))};e.dataset.animationName=a,e.addEventListener("animationend",r),ze(e,a)};var dt;(function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.Destroyed=3]="Destroyed"})(dt||(dt={}));const Sn={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:of,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
|
|
9
|
+
data-lazy-src="{{src}}" alt="{{alt}}" />`},Q7=()=>{let e;function a(u,f){const d=e==null?void 0:e.getOptions().Zoomable;let p=(Et(d)?Object.assign(Object.assign({},$l),d):$l)[u];return p&&typeof p=="function"&&f?p(f):p}function n(){e&&(e.on("addSlide",i),e.on("removeSlide",s),e.on("attachSlideEl",l),e.on("click",o),e.on("change",r))}function r(){c()}function o(u,f){const d=f.target;d&&!f.defaultPrevented&&d.dataset.panzoomAction&&m(d.dataset.panzoomAction)}function i(u,f){if(!e)return;const d=f.el;if(!d)return;const p=f.src||f.lazySrc||"",h=f.alt||f.caption||`Image #${f.index}`,g=f.srcset||f.lazySrcset||"",b=f.sizes||f.lazySizes||"";if(p&&mt(p)&&!f.html&&(!f.type||f.type==="image")){f.type="image";let A=a("tpl",f);A=xa(A,"{{src}}",p+""),A=xa(A,"{{alt}}",h+""),A=xa(A,"{{srcset}}",g+""),A=xa(A,"{{sizes}}",b+""),d.insertAdjacentHTML("afterbegin",A)}if(!d.querySelector(".f-panzoom__content"))return;const v=f.width&&f.width!=="auto"?parseFloat(f.width+""):"auto",x=f.height&&f.height!=="auto"?parseFloat(f.height+""):"auto",k=To(d,Object.assign({width:v,height:x,event:()=>e==null?void 0:e.getLastMouseMove(),classes:{container:"f-zoomable"}},a("Panzoom")));k.on("*",(A,_,...T)=>{e&&(_==="loading"&&(f.state=0),_==="loaded"&&(f.state=1),_==="error"&&(f.state=2,e==null||e.showError(f,"{{IMAGE_ERROR}}")),e.emit(`panzoom:${_}`,f,...T),_==="ready"&&e.emit("contentReady",f),f.index===e.getPageIndex()&&c())}),f.panzoomRef=k}function s(u,f){f.panzoomRef&&(f.panzoomRef.destroy(),f.panzoomRef=void 0)}function l(u,f){const d=f.panzoomRef;if(d)switch(d.getState()){case 0:d.init();break;case 3:d.execute(we.Reset,{velocity:0})}}function c(){var u;const f=e==null?void 0:e.getContainer();if(!f)return;const d=(u=e==null?void 0:e.getPage())===null||u===void 0?void 0:u.slides[0].panzoomRef,p=(d==null?void 0:d.canZoomIn())||!1,h=(d==null?void 0:d.canZoomOut())||!1,g=(d==null?void 0:d.isFullsize())||!1,b=!d||(d==null?void 0:d.getState())!==3;for(const v of(f==null?void 0:f.querySelectorAll("[data-panzoom-action]"))||[]){const x=v.dataset.panzoomAction;let k=!1;if(b)k=!0;else switch(x){case we.ZoomIn:p||(k=!0);break;case we.ZoomOut:h||(k=!0);break;case we.ToggleFull:p||h||(k=!0);const A=v.querySelector("g");A&&(A.style.display=g?"none":"");break;case we.ToggleCover:case we.ToggleMax:p||h||(k=!0)}k?(v.setAttribute("aria-disabled",""),v.setAttribute("tabindex","-1")):(v.removeAttribute("aria-disabled"),v.removeAttribute("tabindex"))}}function m(u,...f){var d;(d=e==null?void 0:e.getPage().slides[0].panzoomRef)===null||d===void 0||d.execute(u,...f)}return{init:function(u){e=u,e.getOptions().Zoomable!==!1&&e.on("initPlugins",n)},destroy:function(){if(e){e.off("addSlide",i),e.off("removeSlide",s),e.off("attachSlideEl",l),e.off("change",r);for(const u of e.getSlides())s(0,u)}e=void 0},execute:m}};/*! License details at fancyapps.com/license */const Rl={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},Hl=()=>{let e,a;function n(){const p=e==null?void 0:e.getOptions().Sync;return Et(p)?Object.assign(Object.assign({},Rl),p):Rl}function r(p){var h,g,b;e&&p&&(a=p,e.getOptions().classes=Object.assign(Object.assign({},e.getOptions().classes),{isSelected:""}),e.getOptions().initialSlide=((g=(h=a.getPage())===null||h===void 0?void 0:h.slides[0])===null||g===void 0?void 0:g.index)||0,n().syncOnChange&&e.on("change",s),n().syncOnClick&&e.on("click",c),n().syncOnHover&&((b=e.getViewport())===null||b===void 0||b.addEventListener("mouseover",m)),function(){!e||!a||(e.on("ready",i),e.on("refresh",u),a.on("change",l),a.on("filter",f))}())}function o(){const p=n().target;e&&p&&r(p)}function i(){d()}function s(){var p;if(e&&a){const h=((p=e.getPage())===null||p===void 0?void 0:p.slides)||[],g=a.getPageIndex(h[0].index||0);g>-1&&a.goTo(g,e.hasNavigated()?void 0:{tween:!1,transition:!1}),d()}}function l(){var p;if(e&&a){const h=e.getPageIndex(((p=a.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);h>-1&&e.goTo(h,a.hasNavigated()?void 0:{tween:!1,transition:!1}),d()}}function c(p,h){var g;if(!e||!a||!((g=e.getTween())===null||g===void 0)&&g.isRunning())return;const b=e==null?void 0:e.getOptions().classes.slide;if(!b)return;const v=b?h.target.closest(`.${b}`):null;if(v){const x=parseInt(v.getAttribute("index")||"")||0,k=a.getPageIndex(x);a.goTo(k)}}function m(p){e&&c(0,p)}function u(){var p;if(e&&a){const h=e.getPageIndex(((p=a.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);h>-1&&e.goTo(h,{tween:!1,transition:!1}),d()}}function f(p,h){e&&a&&(e.filter(h),l())}function d(){var p,h,g;if(!a)return;const b=((h=(p=a.getPage())===null||p===void 0?void 0:p.slides[0])===null||h===void 0?void 0:h.index)||0;for(const v of(e==null?void 0:e.getSlides())||[])(g=v.el)===null||g===void 0||g.classList.toggle("is-selected",v.index===b)}return{init:function(p){e=p,e.on("initSlides",o)},destroy:function(){var p;e==null||e.off("ready",i),e==null||e.off("refresh",u),e==null||e.off("change",s),e==null||e.off("click",c),(p=e==null?void 0:e.getViewport())===null||p===void 0||p.removeEventListener("mouseover",m),a==null||a.off("change",l),a==null||a.off("filter",f),a=void 0,e==null||e.off("initSlides",o),e=void 0},getTarget:function(){return a}}};/*! License details at fancyapps.com/license */const zl={showLoading:!0,preload:1},ur="is-lazyloading",Il="is-lazyloaded",Gl=()=>{let e;function a(){const o=e==null?void 0:e.getOptions().Lazyload;return Et(o)?Object.assign(Object.assign({},zl),o):zl}function n(o){const i=o.el;if(!i)return;const s="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(i.querySelectorAll(s));i.matches(s)&&l.push(i);for(const c of l){const m=c.dataset.lazySrc,u=c.dataset.lazySrcset,f=c.dataset.lazySizes,d=c.dataset.lazyBg,p=(c instanceof HTMLImageElement||c instanceof HTMLSourceElement)&&(m||u),h=c instanceof HTMLElement&&d;if(!p&&!h)continue;const g=m||u||d;g&&(p&&g?(a().showLoading&&(e==null||e.showLoading(o)),c.addEventListener("load",()=>{e==null||e.hideLoading(o),c instanceof HTMLImageElement?c.decode().then(()=>{c.classList.remove(ur),c.classList.add(Il)}):(c.classList.remove(ur),c.classList.add(Il)),e==null||e.emit("lazyLoad:loaded",o,c,g)}),c.addEventListener("error",()=>{e==null||e.hideLoading(o),c.classList.remove(ur),c.classList.add("has-lazyerror"),e==null||e.emit("lazyLoad:error",o,c,g)}),c.classList.add("f-lazyload"),c.classList.add(ur),e==null||e.emit("lazyLoad:load",o,c,g),m&&(c.src=m),u&&(c.srcset=u),f&&(c.sizes=f)):h&&(document.body.contains(c)||(document.createElement("img").src=d),c.style.backgroundImage=`url('${d}')`),delete c.dataset.lazySrc,delete c.dataset.lazySrcset,delete c.dataset.lazySizes)}}function r(){if(!e)return;const o=a().preload,i=[...e.getVisibleSlides()],s=e.getPosition(),l=e.getViewportDim();i.push(...e.getVisibleSlides(s+l*o),...e.getVisibleSlides(s-l*o));for(const c of i||[])n(c)}return{init:function(o){e=o,e.on("render",r)},destroy:function(){e==null||e.off("render",r),e=void 0}}};/*! License details at fancyapps.com/license */const jl={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>'},K7=()=>{let e,a,n;function r(s){if(!e)return;const l=`<button data-carousel-go-${s} tabindex="0" class="f-button is-arrow is-${s}" title="{{${s.toUpperCase()}}}">`+function(){const c=e==null?void 0:e.getOptions().Arrows;return Et(c)?Object.assign(Object.assign({},jl),c):jl}()[`${s}Tpl`]+"</button";return ha(e.localize(l))||void 0}function o(){var s;a==null||a.remove(),a=void 0,n==null||n.remove(),n=void 0,(s=e==null?void 0:e.getContainer())===null||s===void 0||s.classList.remove("has-arrows")}function i(){e&&e.getOptions().Arrows!==!1&&e.getPages().length>1?(function(){if(!e)return;const s=e.getViewport();s&&(a||(a=r("prev"),a&&s.insertAdjacentElement("beforebegin",a)),n||(n=r("next"),n&&s.insertAdjacentElement("afterend",n)),ba(e.getContainer(),"has-arrows",!(!a&&!n)))}(),e&&(a==null||a.toggleAttribute("aria-disabled",!e.canGoPrev()),n==null||n.toggleAttribute("aria-disabled",!e.canGoNext()))):o()}return{init:function(s){e=s.on(["change","refresh"],i)},destroy:function(){o(),e==null||e.off(["change","refresh"],i),e=void 0}}};/*! License details at fancyapps.com/license */const ql={moveLeft:{tpl:'<button data-panzoom-action="moveLeft" class="f-button" title="{{MOVE_LEFT}}"><svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg></button>'},moveRight:{tpl:'<button data-panzoom-action="moveRight" class="f-button" title="{{MOVE_RIGHT}}"><svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg></button>'},moveUp:{tpl:'<button data-panzoom-action="moveUp" class="f-button" title="{{MOVE_UP}}"><svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg></button>'},moveDown:{tpl:'<button data-panzoom-action="moveDown" class="f-button" title="{{MOVE_DOWN}}"><svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg></button>'},zoomIn:{tpl:'<button data-panzoom-action="zoomIn" class="f-button" title="{{ZOOM_IN}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg></button>'},zoomOut:{tpl:'<button data-panzoom-action="zoomOut" class="f-button" title="{{ZOOM_OUT}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},toggle1to1:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg></button>'},toggleFull:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},rotateCCW:{tpl:'<button data-panzoom-action="rotateCCW" class="f-button" title="{{ROTATE_CCW}}"><svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg></button>'},rotateCW:{tpl:'<button data-panzoom-action="rotateCW" class="f-button" title="{{ROTATE_CW}}"><svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg></button>'},flipX:{tpl:'<button data-panzoom-action="flipX" class="f-button" title="{{FLIP_X}}"><svg><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg></button>'},flipY:{tpl:'<button data-panzoom-action="flipY" class="f-button" title="{{FLIP_Y}}"><svg><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg></button>'},reset:{tpl:'<button data-panzoom-action="reset" class="f-button" title="{{RESET}}"><svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg></button>'}};/*! License details at fancyapps.com/license */var Wl;(function(e){e.Left="left",e.middle="middle",e.right="right"})(Wl||(Wl={}));const Yl=Object.assign({counter:{tpl:'<div class="f-carousel__counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},ql),Ul={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Xl=()=>{let e,a;function n(){const o=e==null?void 0:e.getOptions().Toolbar;return Et(o)?Object.assign(Object.assign({},Ul),o):Ul}function r(){var o,i,s;if(!(e!=null&&e.getOptions().Toolbar)||!e||a)return;let l=n().enabled;if(!l)return;let c=n().absolute;const m=e.getSlides().length>1;let u=!1,f=!1;for(const v of e.getSlides())v.panzoomRef&&(u=!0),(v.downloadSrc||v.type==="image"&&v.src)&&(f=!0);let d=((o=e.getPlugins().Thumbs)===null||o===void 0?void 0:o.isEnabled())||!1,p=m&&e.getPlugins().Autoplay||!1,h=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(l==="auto"&&(l=u),!l)return;a=document.createElement("div"),a.classList.add("f-carousel__toolbar");const g=n().display,b=Tt({},Yl,n().items);for(const v of["left","middle","right"]){const x=g[v]||[],k=document.createElement("div");k.classList.add("f-carousel__toolbar__column"),k.classList.add(`is-${v}`);for(const A of x){let _;if(mt(A)){if(A==="counter"&&!m||A==="autoplay"&&!p||ql[A]&&!u||A==="fullscreen"&&!h||A==="thumbs"&&!d||A==="download"&&!f)continue;_=b[A]}if(typeof A=="object"&&(_=A),_&&_.tpl){let T=e.localize(_.tpl);T=T.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const N=ha(T);N&&(typeof _.click=="function"&&e&&N.addEventListener("click",S=>{S.preventDefault(),S.stopPropagation(),typeof _.click=="function"&&e&&_.click(e,S)}),k.append(N))}}a.append(k)}a.childElementCount&&(c===!0&&a.classList.add("is-absolute"),(i=e.getContainer())===null||i===void 0||i.classList.add("has-toolbar"),(s=e.getViewport())===null||s===void 0||s.insertAdjacentElement("beforebegin",a))}return{init:function(o){e=o,e.on("initSlides",r)},destroy:function(){var o;e==null||e.off("initSlides",r),(o=e==null?void 0:e.getContainer())===null||o===void 0||o.classList.remove("has-toolbar"),a==null||a.remove(),a=void 0},add:function(o,i){Yl[o]=i},isEnabled:function(){return!!a}}};/*! License details at fancyapps.com/license */const Zl={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},J7=()=>{let e,a,n=!1,r=!1,o=!1,i=null;function s(T){const N=e==null?void 0:e.getOptions().Autoplay;let S=(Et(N)?Object.assign(Object.assign({},Zl),N):Zl)[T];return S&&typeof S=="function"&&e?S(e):S}function l(){var T;const N=((T=e==null?void 0:e.getPage())===null||T===void 0?void 0:T.slides)||[];for(const S of N)if(S.state===0)return!0;return!1}function c(){clearTimeout(a),a=void 0}function m(){if(a||o||l()||!(e!=null&&e.isSettled()))return;(function(){var N,S,B,G;if(!e||(d(),!s("showProgressbar")))return;let P=s("progressbarParentEl");if(!P&&(!((N=e.getPlugins().Toolbar)===null||N===void 0)&&N.isEnabled())&&(P=e.getContainer()),!P&&((S=e.getPlugins().Toolbar)===null||S===void 0?void 0:S.isEnabled())!==!0){const U=((B=e.getPages()[0])===null||B===void 0?void 0:B.slides)||[],E=((G=e.getPage())===null||G===void 0?void 0:G.slides)||[];U.length===1&&E.length===1&&(P=E[0].el)}if(P||(P=e.getViewport()),!P)return;i=document.createElement("div"),i.classList.add("f-progressbar"),P.prepend(i);const Q=s("timeout")||1e3;i.style.animationDuration=`${Q}ms`})();const T=s("timeout");a=setTimeout(()=>{e&&n&&!r&&(e.isInfinite()||e.getPageIndex()!==e.getPages().length-1?e.next():e.goTo(0))},T)}function u(){var T,N;if(!e||e.getPages().length<2||e.getOptions().Autoplay===!1||n)return;n=!0,e.emit("autoplay:start",s("timeout")),(T=e.getContainer())===null||T===void 0||T.classList.add("has-autoplay"),(N=e.getTween())===null||N===void 0||N.on("start",x);const S=e==null?void 0:e.getContainer();S&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(S.addEventListener("mouseenter",k,!1),S.addEventListener("mouseleave",A,!1)),e.on("change",b),e.on("settle",v),e.on("contentReady",h),e.on("panzoom:animationStart",f),e.isSettled()&&m()}function f(){var T,N;if(c(),d(),n&&e){e.emit("autoplay:end"),(T=e.getContainer())===null||T===void 0||T.classList.remove("has-autoplay"),(N=e.getTween())===null||N===void 0||N.off("start",x);const S=e==null?void 0:e.getContainer();S&&(S.removeEventListener("mouseenter",k,!1),S.removeEventListener("mouseleave",A,!1))}e&&(e.off("change",b),e.off("settle",v),e.off("contentReady",h),e.off("panzoom:animationStart",f)),n=!1,r=!1}function d(){i&&(i.remove(),i=null)}function p(){e&&e.getPages().length>1&&s("autoStart")&&u()}function h(T){e&&e.getPageIndex(T.index)===e.getPageIndex()&&(!n||o||l()||m())}function g(T,N){const S=N.target;S&&!N.defaultPrevented&&S.dataset.autoplayAction==="toggle"&&_.toggle()}function b(){!e||!(e!=null&&e.isInfinite())&&e.getPageIndex()===e.getPages().length-1?f():(d(),c())}function v(){!n||o||r||m()}function x(){c(),d()}function k(){o=!0,n&&(d(),c())}function A(){o=!1,n&&!r&&(e!=null&&e.isSettled())&&m()}const _={init:function(T){e=T,e.on("ready",p),e.on("click",g)},destroy:function(){f(),e==null||e.off("ready",p),e==null||e.off("click",g),e=void 0},isEnabled:()=>n,pause:function(){r=!0,c()},resume:function(){r=!1,n&&!o&&m()},start(){u()},stop(){f()},toggle(){n?f():u()}};return _};/*! License details at fancyapps.com/license */const Lo={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let $o;const ef=()=>{let e,a,n,r=0,o=0,i=!0;function s(k){const A=e==null?void 0:e.getOptions().Thumbs;let _=(Et(A)?Object.assign(Object.assign({},Lo),A):Lo)[k];return _&&typeof _=="function"?_():_}function l(){if(!e||(e==null?void 0:e.getOptions().Thumbs)===!1)return!1;let k=0;for(const A of e.getSlides())A.thumbSrc&&k++;return k>=s("minCount")}function c(){return s("type")==="modern"}function m(k=!1){const A=e==null?void 0:e.getContainer();if(e&&A&&!n&&l()){if(!n){const _=A.nextElementSibling;_!=null&&_.classList.contains("f-thumbs")&&(n=_)}if(!n){n=document.createElement("div"),n.classList.add("f-thumbs");const _=s("parentEl");_?_.insertAdjacentElement("beforeend",n):A.insertAdjacentElement("afterend",n)}n.classList.add(`is-${s("type")}`),n.classList.add("is-syncing"),k&&(n.style.maxHeight="0px")}}function u(k){let A=k.thumb?k.thumb instanceof HTMLImageElement?k.thumb.src:k.thumb:k.thumbSrc||void 0,_=s("thumbTpl");return _=xa(_,"{{alt}}",`Thumbnail #${k.index}`),_=xa(_,"{{src}}",A+""),_=xa(_,"{{index}}",`${k.index}`),_=xa(_,"{{page}}",`${k.index||1}`),{html:_,class:k.thumbClass}}function f(){var k,A;if(!$o||!e||!n||a)return;const _=[];for(const T of e.getSlides())_.push(u(T));_.length&&(a=$o(n,Tt({},{Sync:{target:e},Lazyload:{preload:1},slides:_,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},initialSlide:e.getOptions().initialPage,center:!0,fill:!c(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:T=>{let N=0;return c()&&(function(){if(!c()||!n)return;const S=B=>n&&parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+B))||0;r=S("width"),o=S("clip-width")}(),N=4*(r-o)),T&&T.getTotalSlideDim()<=T.getViewportDim()-N?1/0:1}},Lo.Carousel||{},s("Carousel")||{}),{Sync:Hl,Lazyload:Gl}).init(),(k=a.getGestures())===null||k===void 0||k.on("start",()=>{i=!1}),a.on("click",(T,N)=>{const S=N.target;if(S){const B=S.matches("button")?S:S.firstElementChild;B&&B.matches("button")&&B.focus({})}}),(A=e.getContainer())===null||A===void 0||A.classList.add("has-thumbs"),x())}function d(){var k;l()&&(s("showOnStart")&&(m(),f()),(k=e==null?void 0:e.getGestures())===null||k===void 0||k.on("start",p),e==null||e.on("addSlide",b),e==null||e.on("click",v))}function p(){var k,A;i=!0,!((k=document.activeElement)===null||k===void 0)&&k.closest(".f-thumbs")&&((A=document.activeElement)===null||A===void 0||A.blur())}function h(){var k,A;n==null||n.classList.toggle("is-syncing",(e==null?void 0:e.hasNavigated())===!1||((k=e==null?void 0:e.getTween())===null||k===void 0?void 0:k.isRunning())),x(),!((A=e==null?void 0:e.getGestures())===null||A===void 0)&&A.isPointerDown()&&function(){if(!c()||!e||!a||!i)return;const _=a.getTween(),T=a.getPages(),N=e.getPageIndex()||0,S=e.getPageProgress()||0;if(!(e&&T&&T[N]&&_))return;const B=_.isRunning()?_.getCurrentValues().pos:a.getPosition();if(B===void 0)return;let G=T[N].pos+S*(r-o);G=$e(T[0].pos,G,T[T.length-1].pos),_.from({pos:B}).to({pos:G}).start()}()}function g(){i=!0}function b(k,A){a==null||a.add(u(A),A.index)}function v(k,A){const _=A.target;_&&!A.defaultPrevented&&_.dataset.thumbsAction==="toggle"&&function(){if(n||(m(!0),f()),!n)return;const T=n.style.maxHeight;n.style.maxHeight=T?"":"0px"}()}function x(){if(!c()||!e||!a)return;const k=(a==null?void 0:a.getSlides())||[];let A=-.5*r;for(const _ of k){const T=_.el;if(!T)continue;let N=e.getPageProgress(_.index)||0;N=Math.max(-1,Math.min(1,N)),N>-1&&N<1&&(A+=.5*r*(1-Math.abs(N))),N=Math.round(1e4*N)/1e4,A=Math.round(1e4*A)/1e4,T.style.setProperty("--progress",`${Math.abs(N)}`),T.style.setProperty("--shift",`${e!=null&&e.isRTL()?-1*A:A}px`),N>-1&&N<1&&(A+=.5*r*(1-Math.abs(N)))}}return{init:function(k,A){$o=A,e=k,e.on("ready",d),e.on("render",h),e.on("change",g)},destroy:function(){var k,A;e==null||e.off("ready",d),e==null||e.off("render",h),e==null||e.off("change",g),e==null||e.off("addSlide",b),e==null||e.off("click",v),(k=e==null?void 0:e.getGestures())===null||k===void 0||k.off("start",p),(A=e==null?void 0:e.getContainer())===null||A===void 0||A.classList.remove("has-thumbs"),e=void 0,a==null||a.destroy(),a=void 0,n==null||n.remove(),n=void 0},getContainer:function(){return n},isEnabled:function(){return l()}}};/*! License details at fancyapps.com/license */const Ql={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},tf=()=>{let e;function a(o,i){let s=i.src;if(!mt(s))return;let l=i.type;if(!l){if(l||(s.charAt(0)==="#"?l="inline":s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?l="image":s.match(/\.(pdf)((\?|#).*)?$/i)?l="pdf":s.match(/\.(html|php)((\?|#).*)?$/i)&&(l="iframe")),!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);c&&(s=`https://maps.google.${c[1]}/?ll=${(c[2]?c[2]+"&z="+Math.floor(parseFloat(c[3]))+(c[4]?c[4].replace(/^\//,"&"):""):c[4]+"").replace(/\?/,"&")}&output=${c[4]&&c[4].indexOf("layer=c")>0?"svembed":"embed"}`,l="gmap")}if(!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);c&&(s=`https://maps.google.${c[1]}/maps?q=${c[2].replace("query=","q=").replace("api=1","")}&output=embed`,l="gmap")}i.src=s,i.type=l}}function n(o,i){i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||function(s){if(!e||!s.el||!s.src)return;const l=document.createElement("iframe");l.classList.add("f-iframe");for(const[m,u]of Object.entries(function(){const f=e==null?void 0:e.getOptions().Html;return Et(f)?Object.assign(Object.assign({},Ql),f):Ql}().iframeAttr||{}))l.setAttribute(m,u);l.onerror=()=>{e&&e.getState()===1&&e.showError(s,"{{IFRAME_ERROR}}")},l.src=s.src;const c=document.createElement("div");if(c.classList.add("f-html"),c.append(l),s.width){let m=`${s.width}`;m.match(/^\d+$/)&&(m+="px"),c.style.maxWidth=`${m}`}if(s.height){let m=`${s.height}`;m.match(/^\d+$/)&&(m+="px"),c.style.maxHeight=`${m}`}if(s.aspectRatio){const m=s.el.getBoundingClientRect();c.style.aspectRatio=`${s.aspectRatio}`,c.style[m.width>m.height?"width":"height"]="auto",c.style[m.width>m.height?"maxWidth":"maxHeight"]="none"}s.contentEl=l,s.htmlEl=c,s.el.classList.add("has-html"),s.el.classList.add("has-iframe"),s.el.classList.add(`has-${s.type}`),s.el.prepend(c),e.emit("contentReady",s)}(i)}function r(o,i){var s,l;i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||(e==null||e.hideError(i),(s=i.contentEl)===null||s===void 0||s.remove(),i.contentEl=void 0,(l=i.htmlEl)===null||l===void 0||l.remove(),i.htmlEl=void 0)}return{init:function(o){e=o,e.on("addSlide",a),e.on("attachSlideEl",n),e.on("detachSlideEl",r)},destroy:function(){e==null||e.off("addSlide",a),e==null||e.off("attachSlideEl",n),e==null||e.off("detachSlideEl",r),e=void 0}}};/*! License details at fancyapps.com/license */const Kl=(e,a={})=>{const n=new URL(e),r=new URLSearchParams(n.search),o=new URLSearchParams;for(const[l,c]of[...r,...Object.entries(a)]){let m=c+"";if(l==="t"){let u=m.match(/((\d*)m)?(\d*)s?/);u&&o.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else o.set(l,m)}let i=o+"",s=e.match(/#t=((.*)?\d+s)/);return s&&(i+=`#t=${s[1]}`),i},Jl={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
|
|
10
|
+
<source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},af=()=>{let e,a=!1;function n(){const d=e==null?void 0:e.getOptions().Video;return Et(d)?Object.assign(Object.assign({},Jl),d):Jl}function r(){var d;return(d=e==null?void 0:e.getPage())===null||d===void 0?void 0:d.slides[0]}const o=d=>{var p;try{let h=JSON.parse(d.data);if(d.origin==="https://player.vimeo.com"){if(h.event==="ready")for(let g of Array.from(((p=e==null?void 0:e.getContainer())===null||p===void 0?void 0:p.getElementsByClassName("f-iframe"))||[]))g instanceof HTMLIFrameElement&&g.contentWindow===d.source&&(g.dataset.ready="true")}else if(d.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&h.event==="onReady"){const g=document.getElementById(h.id);g&&(g.dataset.ready="true")}}catch{}};function i(d,p){const h=p.src;if(!mt(h))return;let g=p.type;if(!g||g==="html5video"){const b=h.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);b&&(g="html5video",p.html5videoFormat=p.html5videoFormat||"video/"+(b[1]==="ogv"?"ogg":b[1]))}if(!g||g==="youtube"){const b=h.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(b){const v=Object.assign(Object.assign({},n().youtube),p.youtube||{}),x=`www.youtube${v.nocookie?"-nocookie":""}.com`,k=Kl(h,v),A=encodeURIComponent(b[2]);p.videoId=A,p.src=`https://${x}/embed/${A}?${k}`,p.thumb=p.thumb||`https://i.ytimg.com/vi/${A}/mqdefault.jpg`,g="youtube"}}if(!g||g==="vimeo"){const b=h.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(b){const v=Object.assign(Object.assign({},n().vimeo),p.vimeo||{}),x=Kl(h,v),k=encodeURIComponent(b[2]),A=b[5]||"";p.videoId=k,p.src=`https://player.vimeo.com/video/${k}?${A?`h=${A}${x?"&":""}`:""}${x}`,g="vimeo"}}p.type=g}function s(d,p){p.type==="html5video"&&function(h){if(!e||!h.el||!h.src)return;const{el:g,src:b}=h;if(!g||!b)return;const v=h.html5videoTpl||n().html5videoTpl,x=h.html5videoFormat||n().html5videoFormat;if(!v)return;const k=h.poster||(h.thumb&&mt(h.thumb)?h.thumb:""),A=ha(v.replace(/\{\{src\}\}/gi,b+"").replace(/\{\{format\}\}/gi,x||"").replace(/\{\{poster\}\}/gi,k+""));if(!A)return;const _=document.createElement("div");_.classList.add("f-html"),_.append(A),h.contentEl=A,h.htmlEl=_,g.classList.add(`has-${h.type}`),g.prepend(_),u(h),e.emit("contentReady",h)}(p),p.type!=="youtube"&&p.type!=="vimeo"||function(h){if(!e||!h.el||!h.src)return;const g=document.createElement("iframe");g.classList.add("f-iframe"),g.setAttribute("id",`f-iframe_${h.videoId}`);for(const[v,x]of Object.entries(n().iframeAttr||{}))g.setAttribute(v,x);g.onload=()=>{var v;e&&e.getState()===1&&h.type==="youtube"&&((v=g.contentWindow)===null||v===void 0||v.postMessage(JSON.stringify({event:"listening",id:g.getAttribute("id")}),"*"))},g.onerror=()=>{e&&e.getState()===1&&(e==null||e.showError(h,"{{IFRAME_ERROR}}"))},g.src=h.src;const b=document.createElement("div");b.classList.add("f-html"),b.append(g),h.contentEl=g,h.htmlEl=b,h.el.classList.add("has-html"),h.el.classList.add("has-iframe"),h.el.classList.add(`has-${h.type}`),h.el.prepend(b),u(h),e.emit("contentReady",h)}(p)}function l(d,p){var h,g;p.type!=="html5video"&&p.type!=="youtube"&&p.type!=="vimeo"||((h=p.contentEl)===null||h===void 0||h.remove(),p.contentEl=void 0,(g=p.htmlEl)===null||g===void 0||g.remove(),p.htmlEl=void 0),p.poller&&clearTimeout(p.poller)}function c(){a=!1}function m(){if(a)return;a=!0;const d=r();(d&&d.autoplay!==void 0?d.autoplay:n().autoplay)&&(function(){var p;const h=r(),g=h==null?void 0:h.el;if(g&&(h==null?void 0:h.type)==="html5video")try{const v=g.querySelector("video");if(v){const x=v.play();x!==void 0&&x.then(()=>{}).catch(k=>{v.muted=!0,v.play()})}}catch{}const b=h==null?void 0:h.htmlEl;b instanceof HTMLIFrameElement&&((p=b.contentWindow)===null||p===void 0||p.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const p=r(),h=p==null?void 0:p.type;if(!(p!=null&&p.el)||h!=="youtube"&&h!=="vimeo")return;const g=()=>{if(p.contentEl&&p.contentEl instanceof HTMLIFrameElement&&p.contentEl.contentWindow){let b;if(p.contentEl.dataset.ready==="true")return b=p.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},b&&p.contentEl.contentWindow.postMessage(JSON.stringify(b),"*"),void(p.poller=void 0);p.type==="youtube"&&(b={event:"listening",id:p.contentEl.getAttribute("id")},p.contentEl.contentWindow.postMessage(JSON.stringify(b),"*"))}p.poller=setTimeout(g,250)};g()}())}function u(d){const p=d==null?void 0:d.htmlEl;if(d&&p&&(d.type==="html5video"||d.type==="youtube"||d.type==="vimeo")){if(p.style.aspectRatio="",p.style.width="",p.style.height="",p.style.maxWidth="",p.style.maxHeight="",d.width){let h=`${d.width}`;h.match(/^\d+$/)&&(h+="px"),p.style.maxWidth=`${h}`}if(d.height){let h=`${d.height}`;h.match(/^\d+$/)&&(h+="px"),p.style.maxHeight=`${h}`}if(d.aspectRatio){const h=d.aspectRatio.split("/"),g=parseFloat(h[0].trim()),b=h[1]?parseFloat(h[1].trim()):0,v=g&&b?g/b:g;p.offsetHeight;const x=p.getBoundingClientRect(),k=v<(x.width||1)/(x.height||1);p.style.aspectRatio=`${d.aspectRatio}`,p.style.width=k?"auto":"",p.style.height=k?"":"auto"}}}function f(){u(r())}return{init:function(d){e=d,e.on("addSlide",i),e.on("attachSlideEl",s),e.on("detachSlideEl",l),e.on("ready",m),e.on("change",c),e.on("settle",m),e.on("refresh",f),window.addEventListener("message",o)},destroy:function(){e==null||e.off("addSlide",i),e==null||e.off("attachSlideEl",s),e==null||e.off("detachSlideEl",l),e==null||e.off("ready",m),e==null||e.off("change",c),e==null||e.off("settle",m),e==null||e.off("refresh",f),window.removeEventListener("message",o),e=void 0}}};/*! License details at fancyapps.com/license */const e1={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},t1="in-fullscreen-mode",nf=()=>{let e;function a(f){const d=e==null?void 0:e.getOptions().Fullscreen;let p=(Et(d)?Object.assign(Object.assign({},e1),d):e1)[f];return p&&typeof p=="function"&&e?p(e):p}function n(){var f;(f=e==null?void 0:e.getPlugins().Toolbar)===null||f===void 0||f.add("fullscreen",{tpl:a("btnTpl")})}function r(){if(a("autoStart")){const f=s();f&&c(f)}}function o(f,d){const p=d.target;p&&!d.defaultPrevented&&p.dataset.fullscreenAction==="toggle"&&u()}function i(f){s()&&f.key==="Escape"&&!f.defaultPrevented&&u()}function s(){return a("el")||(e==null?void 0:e.getContainer())||void 0}function l(){const f=document;return f.fullscreenEnabled?!!f.fullscreenElement:!!f.webkitFullscreenEnabled&&!!f.webkitFullscreenElement}function c(f){const d=document;let p;return f||(f=d.documentElement),d.fullscreenEnabled?p=f.requestFullscreen():d.webkitFullscreenEnabled&&(p=f.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),p&&p.then(()=>{f.classList.add(t1)}),p}function m(){const f=document;let d;return f.fullscreenEnabled?d=f.fullscreenElement&&f.exitFullscreen():f.webkitFullscreenEnabled&&(d=f.webkitFullscreenElement&&f.webkitExitFullscreen()),d&&d.then(()=>{var p;(p=s())===null||p===void 0||p.classList.remove(t1)}),d}function u(){const f=s();f&&(l()?m():c(f))}return{init:function(f){e=f,e.on("initPlugins",n),e.on("ready",r),e.on("click",o)},destroy:function(){e==null||e.off("initPlugins",n),e==null||e.off("ready",r),e==null||e.off("click",o),document.removeEventListener("keydown",i,!0)},exit:m,inFullscreen:l,request:c,toggle:u}};/*! License details at fancyapps.com/license */let Zt,fr=!1,a1=!1,Cn=!1,Ro=!1;const mr=()=>{const e=new URL(document.URL).hash,a=e.slice(1).split("-"),n=a[a.length-1],r=n&&/^\+?\d+$/.test(n)&&parseInt(a.pop()||"1",10)||1;return{hash:e,slug:a.join("-"),index:r}},Ho=()=>{if(!Zt||Zt.getInstance())return;const{slug:e,index:a}=mr();if(!e)return;let n=document.querySelector(`[data-slug="${e}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!Zt||Zt.getInstance())return;const r=document.querySelectorAll(`[data-fancybox="${e}"]`);r.length&&(n=r[a-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},rf=()=>{var e,a,n;if(!Zt||Cn)return;const r=Zt==null?void 0:Zt.getInstance();if((r==null?void 0:r.getOptions().Hash)===!1)return;const{slug:o,index:i}=mr(),s=((e=r==null?void 0:r.getSlide())===null||e===void 0?void 0:e.fancybox)||((a=r==null?void 0:r.getSlide())===null||a===void 0?void 0:a.slug)||void 0;r&&s&&(o===s?(n=r.getCarousel())===null||n===void 0||n.goTo(i-1):(Ro=!0,r.close(),Ro=!1)),Ho()},n1=()=>{Zt&&setTimeout(()=>{fr=!0,Ho(),fr=!1,window.addEventListener("hashchange",rf,!1)},300)},zo=()=>{let e,a="auto",n="";function r(){if(!e||!e.isTopMost()||e.getOptions().Hash===!1)return;const s=e.getCarousel();if(!s)return;const{hash:l,slug:c}=mr(),m=e.getSlide();if(!m)return;let u=m.fancybox||"",f=parseInt(m.index+"",10)+1;if(!u)return;let d=`#${u}-${f}`;if(l!==d&&(n=l),history.scrollRestoration&&(a=history.scrollRestoration,history.scrollRestoration="manual"),s.on("change",o),!fr)if(u===c)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+d)}catch{}else try{window.history.pushState({},document.title,window.location.pathname+window.location.search+d),a1=!0}catch{}}function o(){if(!e||!e.isTopMost()||e.getOptions().Hash===!1)return;const{slug:s}=mr(),l=e.getSlide();if(!l)return;let c=l.fancybox||"",m=`#${c}-${l.index+1}`;if(c===s){Cn=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+m)}catch{}Cn=!1}}function i(){if(Ro||!e||!e.isTopMost()||e.getOptions().Hash===!1)return;const s=e.getSlide();if(s&&s.fancybox){Cn=!0;try{!a1||fr||function(){if(window.parent===window)return!1;try{var l=window.frameElement}catch{l=null}return l===null?location.protocol==="data:":l.hasAttribute("sandbox")}()?window.history.replaceState({},document.title,window.location.pathname+window.location.search+n):window.history.back()}catch{}Cn=!1}}return{init:function(s){e=s,e.on("ready",r),e.on("close",i)},destroy:function(){e==null||e.off("ready",r),e==null||e.off("close",i);const s=e==null?void 0:e.getCarousel();s&&s.off("change",o),e=void 0,history.scrollRestoration&&a&&(history.scrollRestoration=a)}}};zo.startFromUrl=Ho,zo.setup=function(e){Zt||(Zt=e,Ll()&&(/complete|interactive|loaded/.test(document.readyState)?n1():document.addEventListener("DOMContentLoaded",n1)))};/*! License details at fancyapps.com/license */const of=Object.assign(Object.assign({},Fo),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});/*! License details at fancyapps.com/license */const r1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Xl().add("close",{tpl:r1});const o1=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))},i1=(e=null,a="",n)=>{if(!e||!e.parentElement||!a)return void(n&&n());o1(e);const r=o=>{o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",r),delete e.dataset.animationName,n&&n(),e.classList.remove(a))};e.dataset.animationName=a,e.addEventListener("animationend",r),ze(e,a)};var dt;(function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.Destroyed=3]="Destroyed"})(dt||(dt={}));const Sn={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:of,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
|
|
11
11
|
<div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">
|
|
12
12
|
<div class="fancybox__backdrop"></div>
|
|
13
13
|
<div class="fancybox__carousel"></div>
|
|
14
14
|
</div>
|
|
15
|
-
</dialog>`,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},ta=new Map;let sf=0;const s1="with-fancybox",lf=()=>{let e,a,n,r,o,i=dt.Init,s=Object.assign({},Sn),l=-1,c={},m=[],u=!1,f=!0;function d(ee,...fe){let L=s[ee];return L&&typeof L=="function"?L(he,...fe):L}function p(ee,fe=[]){const L=d("l10n")||{};ee=String(ee).replace(/\{\{(\w+)\}\}/g,(C,y)=>L[y]||C);for(let C=0;C<fe.length;C++)ee=ee.split(fe[C][0]).join(fe[C][1]);return ee=ee.replace(/\{\{(.*?)\}\}/g,(C,y)=>y)}const h=new Map;function g(ee,...fe){const L=h.get(ee)||[];for(const[C,y]of Object.entries(s.on||{}))(C===ee||C.split(" ").indexOf(ee)>-1)&&L.push(y);for(const C of L)C&&typeof C=="function"&&C(he,...fe);ee!=="*"&&g("*",ee,...fe)}function k(ee=[],fe={}){i!==dt.Init&&(he.destroy(),i=dt.Init),s=Tt({},Sn,fe),l=d("id")||"fancybox-"+ ++sf;const L=ta.get(l);if(L&&L.destroy(),ta.set(l,he),g("init"),function(){for(const[C,y]of Object.entries(Object.assign(Object.assign({},Ye.Plugins),s.plugins||{})))if(C&&!c[C]&&y instanceof Function){const P=y();P.init(he),c[C]=P}g("initPlugins")}(),function(C=[]){g("initSlides",C),m=[...C]}(ee),function(){const C=d("parentEl")||document.body;if(!(C&&C instanceof HTMLElement))return;const y=p(d("mainTpl")||"");if(e=ha(y)||void 0,!(e&&e instanceof HTMLDialogElement)||(a=e.querySelector(".fancybox__container"),!(a&&a instanceof HTMLElement)))return;const P=d("mainClass");P&&ze(a,P);const I=d("mainStyle");if(I&&Et(I))for(const[j,ne]of Object.entries(I))a.style.setProperty(j,ne);const H=d("theme"),te=H==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:H==="light";a.setAttribute("theme",te?"light":"dark"),e.setAttribute("id",`${l}`),e.addEventListener("keydown",j=>{j.key==="Escape"&&j.preventDefault()}),e.addEventListener("cancel",j=>{J(j)}),C.append(e),ta.size===1&&(d("hideScrollbar")&&Fl(!0),document.documentElement.classList.add(s1)),e.showModal(),g("initLayout")}(),function(){if(n=(e==null?void 0:e.querySelector(".fancybox__carousel"))||void 0,!n)return;const C=Tt({Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:y=>{const P=y.getContainer();return(P==null?void 0:P.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||P}},Fullscreen:{el:a},Toolbar:{absolute:!0,display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Zoomable:{Panzoom:{event:d("triggerEvent")}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:Hl,Arrows:K7,Lazyload:Gl,Zoomable:Q7,Html:tf,Video:af,Autoplay:J7,Fullscreen:nf,Thumbs:ef,Toolbar:Xl}},d("Carousel")||{},{slides:m,enabled:!0,initialPage:d("startIndex")||0,l10n:d("l10n")});r=dr(n,C),g("initCarousel",r),r.on("*",(y,P,...I)=>{g(`Carousel.${P}`,y,...I)}),r==null||r.on("addSlide",_),r.on("attachSlideEl",O),r.on("detachSlideEl",N),r.on("contentReady",U),r.on("ready",G),r.on("change",B),r.on("settle",T),r.init()}(),e&&a){if(d("closeExisting"))for(const[C,y]of ta.entries())C!==l&&y.close();d("fadeEffect")?(setTimeout(()=>{v()},500),ze(a,"is-revealing")):v(),a.classList.add("is-ready"),i=dt.Ready,g("ready")}}function v(){ea(a,"is-revealing");try{document.activeElement===e&&((a==null?void 0:a.querySelector("[autofocus]"))||a).focus()}catch{}}function x(ee){if(!F())return;if(i!==dt.Ready)return ee.preventDefault(),void ee.stopPropagation();if(ee.defaultPrevented||!En.isClickAllowed())return;const fe=ee.composedPath()[0];fe.closest(".fancybox__carousel")&&fe.classList.contains("fancybox__slide")&&b(ee)}function b(ee){if(ee.composedPath()[0].closest("[data-fancybox-close]"))return void J(ee);g("backdropClick",ee),!ee.defaultPrevented&&d("backdropClick")&&J(ee)}function A(ee){if(!F()||i!==dt.Ready||(W(),ee.defaultPrevented))return;const fe=ee.composedPath()[0],L=!!fe.closest("[data-fancybox-close]"),C=fe.classList.contains("fancybox__backdrop");(L||C)&&b(ee)}function _(ee,fe){var L;(L=fe.el)===null||L===void 0||L.addEventListener("click",x)}function O(ee,fe){S(fe),fe.type!=="inline"&&fe.type!=="clone"||function(L){if(!r||!L||!L.el)return;let C=null;if(mt(L.src)){const y=L.src.split("#",2).pop();C=y?document.getElementById(y):null}if(C){if(ze(C,"f-html"),L.type==="clone"||C.closest(".fancybox__carousel")){C=C.cloneNode(!0);const y=C.dataset.animationName;y&&(C.classList.remove(y),delete C.dataset.animationName);let P=C.getAttribute("id");P=P?`${P}--clone`:`clone-${l}-${L.index}`,C.setAttribute("id",P)}else if(C.parentNode){const y=document.createElement("div");y.inert=!0,C.parentNode.insertBefore(y,C),L.placeholderEl=y}L.htmlEl=C,ze(L.el,"has-html"),L.el.prepend(C),C.classList.remove("hidden"),C.style.display==="none"&&(C.style.display=""),getComputedStyle(C).getPropertyValue("display")==="none"&&(C.style.display=C.dataset.display||"flex"),r==null||r.emit("contentReady",L)}else r==null||r.showError(L,"{{ELEMENT_NOT_FOUND}}")}(fe),fe.type==="ajax"&&function(L){const C=L.el;if(!C||L.htmlEl||L.xhr)return;r==null||r.showLoading(L),L.state=0;const y=new XMLHttpRequest;y.onreadystatechange=function(){if(y.readyState===XMLHttpRequest.DONE&&i===dt.Ready)if(r==null||r.hideLoading(L),L.state=1,y.status===200){let I=y.responseText+"",H=null,te=null;if(L.filter){const j=document.createElement("div");j.innerHTML=I,te=j.querySelector(L.filter+"")}te&&te instanceof HTMLElement?H=te:(H=document.createElement("div"),H.innerHTML=I),H.classList.add("f-html"),L.htmlEl=H,C.classList.add("has-html"),C.classList.add("has-ajax"),C.prepend(H),r==null||r.emit("contentReady",L)}else r==null||r.showError(L)};const P=d("ajax")||null;y.open(P?"POST":"GET",L.src+""),y.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),y.setRequestHeader("X-Requested-With","XMLHttpRequest"),y.send(P),L.xhr=y}(fe)}function N(ee,fe){(function(L){L.closeButtonEl&&(L.closeButtonEl.remove(),L.closeButtonEl=void 0)})(fe),fe.type!=="inline"&&fe.type!=="clone"||function(L){const C=L.htmlEl,y=L.placeholderEl;C&&(getComputedStyle(C).getPropertyValue("display")!=="none"&&(C.style.display="none"),C.offsetHeight),y&&(C&&y.parentNode&&y.parentNode.insertBefore(C,y),y.remove()),L.htmlEl=void 0,L.placeholderEl=void 0}(fe),fe.xhr&&(fe.xhr.abort(),fe.xhr=void 0)}function S(ee){var fe;const{el:L,htmlEl:C,closeButtonEl:y}=ee;if(!L||!C||y)return;let P=d("closeButton");if(P==="auto"&&(P=((fe=r==null?void 0:r.getPlugins().Toolbar)===null||fe===void 0?void 0:fe.isEnabled())!==!0),P){const I=ha(p(r1));I&&(ee.closeButtonEl=C.insertAdjacentElement("afterbegin",I),L.classList.add("has-close-btn"))}}function B(){f=!1,a&&r&&a.classList.remove("is-revealing");const ee=d("sync");if(r&&ee){const fe=ee.getPageIndex(r.getPageIndex())||0;ee.goTo(fe,{transition:!1})}}function G(){var ee;if(i!==dt.Ready)return;Q(q()),function(){if(!d("dragToClose")||!r||!r.getViewport())return;const L=r.getGestures();if(!L)return;let C=0,y=0,P=ga().on("step",I=>{C=I.y;const H=r==null?void 0:r.getViewport();if(a&&H){const te=Oo(Math.abs(C),0,.5*H.getBoundingClientRect().height,1,.5);a.style.setProperty("--f-drag-opacity",te+""),a.style.setProperty("--f-drag-offset",C+"px")}}).on("end",()=>{if(!C){a&&a.style.removeProperty("--f-opacity");const I=r==null?void 0:r.getViewport();I&&(I.style.transform="")}});L.on("start",function(){P.pause()}).on("panstart",I=>{var H;const te=I.srcEvent.target;te&&!wn(te)&&((H=r==null?void 0:r.getViewport())===null||H===void 0||H.classList.add("is-dragging"))}).on("pan",function(I){const H=I.srcEvent.target;H&&wn(H)||r!=null&&r.getViewport()&&I.axis==="y"&&(y+=I.deltaY,P.spring({clamp:!0,mass:1,tension:860,friction:17,restDelta:.01,restSpeed:.01}).from({y:C}).to({y}).start())}).on("end",function(I){P.pause(),I.axis==="y"&&Math.abs(I.velocityY)>5&&Math.abs(y)>0?J(I.srcEvent,"f-throwOut"+(I.velocityY>0?"Down":"Up")):y!==0&&(y=0,P.spring({clamp:!0,mass:1,tension:140,friction:25,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:C}).to({y}).start())})}(),document.body.addEventListener("click",A),document.body.addEventListener("keydown",D,{passive:!1,capture:!0}),X();const fe=d("sync");fe&&((ee=fe.getTween())===null||ee===void 0||ee.start())}function T(){r!=null&&r.canGoNext()?X():M()}function Q(ee){if(!(f&&r&&r.getState()===1&&ee&&ee.index===r.getOptions().initialPage&&ee.el&&ee.el.parentElement)||ee.state!==void 0&&ee.state!==1)return;f=!1;const fe=ee.panzoomRef,L=fe==null?void 0:fe.getTween(),C=d("zoomEffect")?V(ee):void 0;if(fe&&L&&C){const P=fe.getScale("base")||1,{x:I,y:H}=fe.getMousemovePos(P)||{x:0,y:0};return void L.spring({tension:225,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(C).to({x:I,y:H,scale:P}).start()}const y=(fe==null?void 0:fe.getWrapper())||ee.htmlEl;y&&i1(y,d("showClass",ee))}function U(ee,fe){S(fe),Q(fe)}function E(){W()}function D(ee){if(!F()||i!==dt.Ready)return;const fe=ee.key,L=d("keyboard");if(!L||ee.ctrlKey||ee.altKey||ee.shiftKey)return;const C=ee.composedPath()[0];if(!Qa(C)||fe!=="Escape"&&(P=>{const I=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return P.matches(I)||P.closest(I)})(C)||(g("keydown",ee),ee.defaultPrevented))return;const y=L[fe];if(y)switch(y){case"close":J(ee);break;case"next":ee.preventDefault(),r==null||r.next();break;case"prev":ee.preventDefault(),r==null||r.prev()}}function F(){var ee;return((ee=Ye.getInstance())===null||ee===void 0?void 0:ee.getId())===l}function q(){var ee;return(ee=r==null?void 0:r.getPage())===null||ee===void 0?void 0:ee.slides[0]}function oe(){const ee=q();return ee?ee.triggerEl||d("triggerEl"):void 0}function V(ee){var fe,L;const C=(L=(fe=ee.panzoomRef)===null||fe===void 0?void 0:fe.getWrapper())===null||L===void 0?void 0:L.getBoundingClientRect(),y=C==null?void 0:C.width,P=C==null?void 0:C.height;if(!y||!P)return;const I=ee.thumbEl;if(!I)return;const H=I.getBoundingClientRect();let te=H.width,j=H.height,ne=H.left,ue=H.top;if(!(!H||!te||!j)&&(ye=>{const be=ye.getBoundingClientRect(),me=ye.closest("[style]"),Me=me==null?void 0:me.parentElement;if(me&&me.style.transform&&Me){const Se=Me.getBoundingClientRect();if(be.left<Se.left||be.left>Se.left+Se.width-be.width||be.top<Se.top||be.top>Se.top+Se.height-be.height)return!1}const _e=Math.max(document.documentElement.clientHeight,window.innerHeight),Ne=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(be.bottom<0||be.top-_e>=0||be.right<0||be.left-Ne>=0)})(I)){if(I instanceof HTMLImageElement){const ye=window.getComputedStyle(I).getPropertyValue("object-fit");if(ye==="contain"||ye==="scale-down"){const{width:be,height:me}=((Me,_e,Ne,Se,Le="contain")=>{if(Le==="contain"||Me>Ne||_e>Se){const Be=Ne/Me,Z=Se/_e,re=Math.min(Be,Z);Me*=re,_e*=re}return{width:Me,height:_e}})(I.naturalWidth,I.naturalHeight,te,j,ye);ne+=.5*(te-be),ue+=.5*(j-me),te=be,j=me}}if(!(Math.abs(y/P-te/j)>.1))return{x:ne+.5*te-(C.left+.5*y),y:ue+.5*j-(C.top+.5*P),scale:te/y}}}function w(){o&&clearTimeout(o),o=void 0,document.removeEventListener("mousemove",E)}function X(){if(u||o)return;const ee=d("idle");ee&&(o=setTimeout(K,ee))}function K(){a&&(w(),ze(a,"is-idle"),document.addEventListener("mousemove",E),u=!0)}function W(){u&&(M(),X())}function M(){w(),a==null||a.classList.remove("is-idle"),u=!1}function J(ee,fe){var L,C,y,P,I,H;if(i===dt.Closing||i===dt.Destroyed)return;if(i=dt.Closing,w(),ee){if(ee.defaultPrevented)return;ee.cancelable&&ee.preventDefault(),ee.stopPropagation(),ee.stopImmediatePropagation()}if(r){(L=r.getGestures())===null||L===void 0||L.destroy(),(C=r.getTween())===null||C===void 0||C.pause();const j=q(),ne=j==null?void 0:j.panzoomRef;j&&ne&&Tt(ne.getOptions(),{clickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0});for(const ue of r.getSlides())(P=(y=ue.panzoomRef)===null||y===void 0?void 0:y.getGestures())===null||P===void 0||P.destroy(),(H=(I=ue.panzoomRef)===null||I===void 0?void 0:I.getTween())===null||H===void 0||H.pause()}const te=r==null?void 0:r.getPlugins().fullscreen;te&&te.inFullscreen()?Promise.resolve(te.exit()).then(()=>{setTimeout(()=>{ce(ee,fe)},150)}):ce(ee,fe)}function ce(ee,fe){var L,C,y,P,I;if(i!==dt.Closing)return;if(g("close",ee),d("placeFocusBack")){const me=oe();!me||(I=me.getBoundingClientRect()).bottom>0&&I.right>0&&I.left<(window.innerWidth||document.documentElement.clientWidth)&&I.top<(window.innerHeight||document.documentElement.clientHeight)||me.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}d("fadeEffect")&&(a==null||a.classList.remove("is-ready"),a==null||a.classList.add("is-hiding")),a==null||a.classList.add("is-closing");const H=q(),te=H==null?void 0:H.panzoomRef,j=(L=H==null?void 0:H.panzoomRef)===null||L===void 0?void 0:L.getTween(),ne=fe||d("hideClass");let ue=!1,ye=!1;if(r&&H&&te&&j){let me;d("zoomEffect")&&(((y=(C=r.getTween())===null||C===void 0?void 0:C.getCurrentVelocities())===null||y===void 0?void 0:y.pos)||0)<700&&H.state===1&&(me=V(H)),me&&(ue=!0,r.on("refresh",()=>{const Me=V(H);Me&&j.to(Object.assign(Object.assign({},Dt),Me))}),j.easing(ga.Easings.EaseOut).duration(350).from(Object.assign({},te.getTransform())).to(Object.assign(Object.assign({},Dt),me)).start())}const be=(H==null?void 0:H.htmlEl)||((P=H==null?void 0:H.panzoomRef)===null||P===void 0?void 0:P.getWrapper());be&&o1(be),!ue&&ne&&be&&(ye=!0,i1(be,ne,()=>{z()})),ue||ye?setTimeout(()=>{z()},350):z()}function z(){var ee,fe,L,C,y;if(i===dt.Destroyed)return;i=dt.Destroyed,document.body.removeEventListener("click",A),document.body.removeEventListener("keydown",D,{passive:!1,capture:!0});const P=oe();g("destroy"),(fe=(ee=d("sync"))===null||ee===void 0?void 0:ee.getPlugins().Autoplay)===null||fe===void 0||fe.resume(),(C=(L=d("sync"))===null||L===void 0?void 0:L.getPlugins().Autoscroll)===null||C===void 0||C.resume(),e instanceof HTMLDialogElement&&e.close(),(y=r==null?void 0:r.getContainer())===null||y===void 0||y.classList.remove("is-idle"),r==null||r.destroy();for(const I of Object.values(c))I==null||I.destroy();if(c={},e==null||e.remove(),e=void 0,a=void 0,r=void 0,ta.delete(l),!ta.size&&(Fl(!1),document.documentElement.classList.remove(s1),d("placeFocusBack")))try{P==null||P.focus({preventScroll:!0})}catch{}}const he={close:J,destroy:z,getCarousel:function(){return r},getContainer:function(){return a},getId:function(){return l},getOptions:function(){return s},getPlugins:function(){return c},getSlide:function(){return q()},getState:function(){return i},init:function(ee=[],fe={}){return k(ee,fe),he},isCurrentSlide:function(ee){const fe=q();return!(!ee||!fe)&&fe.index===ee.index},isTopMost:function(){return F()},off:function(ee,fe){return h.has(ee)&&h.set(ee,h.get(ee).filter(L=>L!==fe)),he},on:function(ee,fe){return h.set(ee,[...h.get(ee)||[],fe]),he},toggleIdle(ee){(u||ee===!0)&&K(),u&&ee!==!1||M()}};return he},Ye={Plugins:{Hash:zo},version:"6.0.16",openers:new Map,bind:function(e,a,n){if(!Ll())return;let r=document.body,o="[data-fancybox]",i={};if(mt(e)?(r=document.body,o=e,typeof a=="object"&&(i=a||{})):e instanceof Element&&(r=e,mt(a)&&(o=a),typeof n=="object"&&(i=n||{})),!(r&&r instanceof Element&&o))return!1;const s=Ye.openers.get(r)||new Map;if(s.set(o,i),Ye.openers.set(r,s),s.size===1){r.addEventListener("click",Ye.fromEvent);for(const l of Object.values(Ye.Plugins)){const c=l.setup;typeof c=="function"&&c(Ye)}}return!0},close:function(e=!0,...a){if(e)for(const n of ta.values())n.close(...a);else{const n=Ye.getInstance();n&&n.close(...a)}},destroy:function(){let e;for(;e=Ye.getInstance();)e.destroy();for(const a of Ye.openers.keys())a.removeEventListener("click",Ye.fromEvent);Ye.openers.clear()},fromEvent:function(e){var a,n,r;if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let o=e.composedPath()[0];if(o.closest(".fancybox__container.is-hiding"))return e.preventDefault(),void e.stopPropagation();const i=o.closest("[data-fancybox-delegate]")||void 0;if(i){const k=i.dataset.fancyboxDelegate||"",v=document.querySelectorAll(`[data-fancybox="${k}"]`);o=v[parseInt(i.dataset.fancyboxIndex||"",10)||0]||v[0]}if(!(o&&o instanceof Element))return;let s,l,c;for(const k of Array.from(Ye.openers.keys()).reverse()){const v=Ye.openers.get(k);if(v&&k.contains(o))for(const x of Array.from(v.keys()).reverse()){let b=null;try{b=o.closest(x)}catch{}if(b){o=b,s=k,l=x,c=v.get(x);break}}}if(!(s&&l&&c))return;e.preventDefault();const m=Tt({},Sn,{triggerEvent:e,triggerEl:o,delegateEl:i},c),u=m.groupAll,f=m.groupAttr,d=f&&o?o.getAttribute(`${f}`):"";let p=[];const h=(a=o.closest(".f-carousel"))===null||a===void 0?void 0:a.carousel;if(h){const k=[];for(const v of h==null?void 0:h.getSlides()){const x=v.el;x&&(x.matches(l)?k.push(x):k.push(...[].slice.call(x.querySelectorAll(l))))}k.length&&(p=[...k],(n=h.getPlugins().Autoplay)===null||n===void 0||n.pause(),(r=h.getPlugins().Autoscroll)===null||r===void 0||r.pause(),m.sync=h)}else(!o||d||u)&&(p=[].slice.call(s.querySelectorAll(l)));if(o&&!u&&(p=d?p.filter(k=>k.getAttribute(`${f}`)===d):[o]),!p.length)return;const g=Ye.getInstance();if(g){const k=g.getOptions().triggerEl;if(k&&p.indexOf(k)>-1)return}return Object.assign({},m.Carousel||{}).rtl&&(p=p.reverse()),o&&(m.startIndex=p.indexOf(o)),Ye.fromNodes(p,m)},fromNodes:function(e,a){a=Tt({},Sn,a||{});const n=[],r=o=>o instanceof HTMLImageElement?o:o instanceof HTMLElement?o.querySelector("img:not([aria-hidden])"):void 0;for(const o of e){const i=o.dataset||{},s=a.delegateEl&&e.indexOf(o)===a.startIndex?a.delegateEl:void 0,l=r(s)||r(o)||void 0,c=i.src||o.getAttribute("href")||o.getAttribute("currentSrc")||o.getAttribute("src")||void 0,m=i.thumb||i.thumbSrc||(l==null?void 0:l.getAttribute("currentSrc"))||(l==null?void 0:l.getAttribute("src"))||(l==null?void 0:l.dataset.lazySrc)||void 0,u={src:c,alt:i.alt||(l==null?void 0:l.getAttribute("alt"))||void 0,thumbSrc:m,thumbEl:l,triggerEl:o,delegateEl:s};for(const f in i){let d=i[f]+"";d=d!=="false"&&(d==="true"||d),u[f]=d}n.push(u)}return Ye.show(n,a)},fromSelector:function(e,a,n){let r=document.body,o="",i={};if(mt(e)?o=e:e instanceof Element&&(r=e,mt(a)&&(o=a),typeof n=="object"&&(i=n||{})),!(r&&r instanceof Element&&o))return;const s=Ye.openers.get(r);return s?(i=Tt({},s.get(o)||{},i),i?Ye.fromNodes(Array.from(r.querySelectorAll(o)),i):void 0):void 0},getCarousel:function(){var e;return((e=Ye.getInstance())===null||e===void 0?void 0:e.getCarousel())||void 0},getDefaults:function(){return Sn},getInstance:function(e){if(e){const a=ta.get(e);return a&&a.getState()!==dt.Destroyed?a:void 0}return Array.from(ta.values()).reverse().find(a=>{if(a.getState()!==dt.Destroyed)return a})||void 0},getSlide:function(){var e;return((e=Ye.getInstance())===null||e===void 0?void 0:e.getSlide())||void 0},show:function(e=[],a={}){return lf().init(e,a)},unbind:function(e,a){let n=document.body,r="";if(mt(e)?r=e:e instanceof Element&&(n=e,mt(a)&&(r=a)),n){const o=Ye.openers.get(n);o&&r&&o.delete(r),o!=null&&o.size&&r||Ye.openers.delete(n),n.removeEventListener("click",Ye.fromEvent)}}};function pt(e,a,n,r){return new(n||(n=Promise))(function(o,i){function s(m){try{c(r.next(m))}catch(u){i(u)}}function l(m){try{c(r.throw(m))}catch(u){i(u)}}function c(m){var u;m.done?o(m.value):(u=m.value,u instanceof n?u:new n(function(f){f(u)})).then(s,l)}c((r=r.apply(e,a||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class Mn{constructor(){this.listeners={}}on(a,n,r){if(this.listeners[a]||(this.listeners[a]=new Set),this.listeners[a].add(n),r==null?void 0:r.once){const o=()=>{this.un(a,o),this.un(a,n)};return this.on(a,o),o}return()=>this.un(a,n)}un(a,n){var r;(r=this.listeners[a])===null||r===void 0||r.delete(n)}once(a,n){return this.on(a,n,{once:!0})}unAll(){this.listeners={}}emit(a,...n){this.listeners[a]&&this.listeners[a].forEach(r=>r(...n))}}const hr={decode:function(e,a){return pt(this,void 0,void 0,function*(){const n=new AudioContext({sampleRate:a});return n.decodeAudioData(e).finally(()=>n.close())})},createBuffer:function(e,a){return typeof e[0]=="number"&&(e=[e]),function(n){const r=n[0];if(r.some(o=>o>1||o<-1)){const o=r.length;let i=0;for(let s=0;s<o;s++){const l=Math.abs(r[s]);l>i&&(i=l)}for(const s of n)for(let l=0;l<o;l++)s[l]/=i}}(e),{duration:a,length:e[0].length,sampleRate:e[0].length/a,numberOfChannels:e.length,getChannelData:n=>e==null?void 0:e[n],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function l1(e,a){const n=a.xmlns?document.createElementNS(a.xmlns,e):document.createElement(e);for(const[r,o]of Object.entries(a))if(r==="children"&&o)for(const[i,s]of Object.entries(o))s instanceof Node?n.appendChild(s):typeof s=="string"?n.appendChild(document.createTextNode(s)):n.appendChild(l1(i,s));else r==="style"?Object.assign(n.style,o):r==="textContent"?n.textContent=o:n.setAttribute(r,o.toString());return n}function c1(e,a,n){const r=l1(e,a||{});return n==null||n.appendChild(r),r}var cf=Object.freeze({__proto__:null,createElement:c1,default:c1});const df={fetchBlob:function(e,a,n){return pt(this,void 0,void 0,function*(){const r=yield fetch(e,n);if(r.status>=400)throw new Error(`Failed to fetch ${e}: ${r.status} (${r.statusText})`);return function(o,i){pt(this,void 0,void 0,function*(){if(!o.body||!o.headers)return;const s=o.body.getReader(),l=Number(o.headers.get("Content-Length"))||0;let c=0;const m=f=>pt(this,void 0,void 0,function*(){c+=(f==null?void 0:f.length)||0;const d=Math.round(c/l*100);i(d)}),u=()=>pt(this,void 0,void 0,function*(){let f;try{f=yield s.read()}catch{return}f.done||(m(f.value),yield u())});u()})}(r.clone(),a),r.blob()})}};class uf extends Mn{constructor(a){super(),this.isExternalMedia=!1,a.media?(this.media=a.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),a.mediaControls&&(this.media.controls=!0),a.autoplay&&(this.media.autoplay=!0),a.playbackRate!=null&&this.onMediaEvent("canplay",()=>{a.playbackRate!=null&&(this.media.playbackRate=a.playbackRate)},{once:!0})}onMediaEvent(a,n,r){return this.media.addEventListener(a,n,r),()=>this.media.removeEventListener(a,n,r)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const a=this.getSrc();a.startsWith("blob:")&&URL.revokeObjectURL(a)}canPlayType(a){return this.media.canPlayType(a)!==""}setSrc(a,n){const r=this.getSrc();if(a&&r===a)return;this.revokeSrc();const o=n instanceof Blob&&(this.canPlayType(n.type)||!a)?URL.createObjectURL(n):a;if(r&&this.media.removeAttribute("src"),o||a)try{this.media.src=o}catch{this.media.src=a}}destroy(){this.isExternalMedia||(this.media.pause(),this.media.remove(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load())}setMediaElement(a){this.media=a}play(){return pt(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;throw a}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(a){this.media.currentTime=Math.max(0,Math.min(a,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(a){this.media.volume=a}getMuted(){return this.media.muted}setMuted(a){this.media.muted=a}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(a,n){n!=null&&(this.media.preservesPitch=n),this.media.playbackRate=a}getMediaElement(){return this.media}setSinkId(a){return this.media.setSinkId(a)}}let Io=class ni extends Mn{constructor(a,n){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.subscriptions=[],this.options=a;const r=this.parentFromOptionsContainer(a.container);this.parent=r;const[o,i]=this.initHtml();r.appendChild(o),this.container=o,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),n&&i.appendChild(n),this.initEvents()}parentFromOptionsContainer(a){let n;if(typeof a=="string"?n=document.querySelector(a):a instanceof HTMLElement&&(n=a),!n)throw new Error("Container not found");return n}initEvents(){const a=n=>{const r=this.wrapper.getBoundingClientRect(),o=n.clientX-r.left,i=n.clientY-r.top;return[o/r.width,i/r.height]};if(this.wrapper.addEventListener("click",n=>{const[r,o]=a(n);this.emit("click",r,o)}),this.wrapper.addEventListener("dblclick",n=>{const[r,o]=a(n);this.emit("dblclick",r,o)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:n,scrollWidth:r,clientWidth:o}=this.scrollContainer,i=n/r,s=(n+o)/r;this.emit("scroll",i,s,n,n+o)}),typeof ResizeObserver=="function"){const n=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{n().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const a=this.parent.clientWidth;a===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=a,this.reRender())}initDrag(){this.subscriptions.push(function(a,n,r,o,i=3,s=0,l=100){if(!a)return()=>{};const c=matchMedia("(pointer: coarse)").matches;let m=()=>{};const u=f=>{if(f.button!==s)return;f.preventDefault(),f.stopPropagation();let d=f.clientX,p=f.clientY,h=!1;const g=Date.now(),k=_=>{if(_.preventDefault(),_.stopPropagation(),c&&Date.now()-g<l)return;const O=_.clientX,N=_.clientY,S=O-d,B=N-p;if(h||Math.abs(S)>i||Math.abs(B)>i){const G=a.getBoundingClientRect(),{left:T,top:Q}=G;h||(r==null||r(d-T,p-Q),h=!0),n(S,B,O-T,N-Q),d=O,p=N}},v=_=>{if(h){const O=_.clientX,N=_.clientY,S=a.getBoundingClientRect(),{left:B,top:G}=S;o==null||o(O-B,N-G)}m()},x=_=>{_.relatedTarget&&_.relatedTarget!==document.documentElement||v(_)},b=_=>{h&&(_.stopPropagation(),_.preventDefault())},A=_=>{h&&_.preventDefault()};document.addEventListener("pointermove",k),document.addEventListener("pointerup",v),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("click",b,{capture:!0}),m=()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",v),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",A),setTimeout(()=>{document.removeEventListener("click",b,{capture:!0})},10)}};return a.addEventListener("pointerdown",u),()=>{m(),a.removeEventListener("pointerdown",u)}}(this.wrapper,(a,n,r)=>{this.emit("drag",Math.max(0,Math.min(1,r/this.wrapper.getBoundingClientRect().width)))},a=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,a/this.wrapper.getBoundingClientRect().width)))},a=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,a/this.wrapper.getBoundingClientRect().width)))}))}getHeight(a,n){var r;const o=((r=this.audioData)===null||r===void 0?void 0:r.numberOfChannels)||1;if(a==null)return 128;if(!isNaN(Number(a)))return Number(a);if(a==="auto"){const i=this.parent.clientHeight||128;return n!=null&&n.every(s=>!s.overlay)?i/o:i}return 128}initHtml(){const a=document.createElement("div"),n=a.attachShadow({mode:"open"}),r=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return n.innerHTML=`
|
|
15
|
+
</dialog>`,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},ta=new Map;let sf=0;const s1="with-fancybox",lf=()=>{let e,a,n,r,o,i=dt.Init,s=Object.assign({},Sn),l=-1,c={},m=[],u=!1,f=!0;function d(ee,...fe){let L=s[ee];return L&&typeof L=="function"?L(he,...fe):L}function p(ee,fe=[]){const L=d("l10n")||{};ee=String(ee).replace(/\{\{(\w+)\}\}/g,(C,y)=>L[y]||C);for(let C=0;C<fe.length;C++)ee=ee.split(fe[C][0]).join(fe[C][1]);return ee=ee.replace(/\{\{(.*?)\}\}/g,(C,y)=>y)}const h=new Map;function g(ee,...fe){const L=h.get(ee)||[];for(const[C,y]of Object.entries(s.on||{}))(C===ee||C.split(" ").indexOf(ee)>-1)&&L.push(y);for(const C of L)C&&typeof C=="function"&&C(he,...fe);ee!=="*"&&g("*",ee,...fe)}function b(ee=[],fe={}){i!==dt.Init&&(he.destroy(),i=dt.Init),s=Tt({},Sn,fe),l=d("id")||"fancybox-"+ ++sf;const L=ta.get(l);if(L&&L.destroy(),ta.set(l,he),g("init"),function(){for(const[C,y]of Object.entries(Object.assign(Object.assign({},Ye.Plugins),s.plugins||{})))if(C&&!c[C]&&y instanceof Function){const O=y();O.init(he),c[C]=O}g("initPlugins")}(),function(C=[]){g("initSlides",C),m=[...C]}(ee),function(){const C=d("parentEl")||document.body;if(!(C&&C instanceof HTMLElement))return;const y=p(d("mainTpl")||"");if(e=ha(y)||void 0,!(e&&e instanceof HTMLDialogElement)||(a=e.querySelector(".fancybox__container"),!(a&&a instanceof HTMLElement)))return;const O=d("mainClass");O&&ze(a,O);const I=d("mainStyle");if(I&&Et(I))for(const[j,ne]of Object.entries(I))a.style.setProperty(j,ne);const H=d("theme"),te=H==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:H==="light";a.setAttribute("theme",te?"light":"dark"),e.setAttribute("id",`${l}`),e.addEventListener("keydown",j=>{j.key==="Escape"&&j.preventDefault()}),e.addEventListener("cancel",j=>{J(j)}),C.append(e),ta.size===1&&(d("hideScrollbar")&&Fl(!0),document.documentElement.classList.add(s1)),e.showModal(),g("initLayout")}(),function(){if(n=(e==null?void 0:e.querySelector(".fancybox__carousel"))||void 0,!n)return;const C=Tt({Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:y=>{const O=y.getContainer();return(O==null?void 0:O.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||O}},Fullscreen:{el:a},Toolbar:{absolute:!0,display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Zoomable:{Panzoom:{event:d("triggerEvent")}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:Hl,Arrows:K7,Lazyload:Gl,Zoomable:Q7,Html:tf,Video:af,Autoplay:J7,Fullscreen:nf,Thumbs:ef,Toolbar:Xl}},d("Carousel")||{},{slides:m,enabled:!0,initialPage:d("startIndex")||0,l10n:d("l10n")});r=dr(n,C),g("initCarousel",r),r.on("*",(y,O,...I)=>{g(`Carousel.${O}`,y,...I)}),r==null||r.on("addSlide",_),r.on("attachSlideEl",T),r.on("detachSlideEl",N),r.on("contentReady",U),r.on("ready",G),r.on("change",B),r.on("settle",P),r.init()}(),e&&a){if(d("closeExisting"))for(const[C,y]of ta.entries())C!==l&&y.close();d("fadeEffect")?(setTimeout(()=>{v()},500),ze(a,"is-revealing")):v(),a.classList.add("is-ready"),i=dt.Ready,g("ready")}}function v(){ea(a,"is-revealing");try{document.activeElement===e&&((a==null?void 0:a.querySelector("[autofocus]"))||a).focus()}catch{}}function x(ee){if(!F())return;if(i!==dt.Ready)return ee.preventDefault(),void ee.stopPropagation();if(ee.defaultPrevented||!En.isClickAllowed())return;const fe=ee.composedPath()[0];fe.closest(".fancybox__carousel")&&fe.classList.contains("fancybox__slide")&&k(ee)}function k(ee){if(ee.composedPath()[0].closest("[data-fancybox-close]"))return void J(ee);g("backdropClick",ee),!ee.defaultPrevented&&d("backdropClick")&&J(ee)}function A(ee){if(!F()||i!==dt.Ready||(W(),ee.defaultPrevented))return;const fe=ee.composedPath()[0],L=!!fe.closest("[data-fancybox-close]"),C=fe.classList.contains("fancybox__backdrop");(L||C)&&k(ee)}function _(ee,fe){var L;(L=fe.el)===null||L===void 0||L.addEventListener("click",x)}function T(ee,fe){S(fe),fe.type!=="inline"&&fe.type!=="clone"||function(L){if(!r||!L||!L.el)return;let C=null;if(mt(L.src)){const y=L.src.split("#",2).pop();C=y?document.getElementById(y):null}if(C){if(ze(C,"f-html"),L.type==="clone"||C.closest(".fancybox__carousel")){C=C.cloneNode(!0);const y=C.dataset.animationName;y&&(C.classList.remove(y),delete C.dataset.animationName);let O=C.getAttribute("id");O=O?`${O}--clone`:`clone-${l}-${L.index}`,C.setAttribute("id",O)}else if(C.parentNode){const y=document.createElement("div");y.inert=!0,C.parentNode.insertBefore(y,C),L.placeholderEl=y}L.htmlEl=C,ze(L.el,"has-html"),L.el.prepend(C),C.classList.remove("hidden"),C.style.display==="none"&&(C.style.display=""),getComputedStyle(C).getPropertyValue("display")==="none"&&(C.style.display=C.dataset.display||"flex"),r==null||r.emit("contentReady",L)}else r==null||r.showError(L,"{{ELEMENT_NOT_FOUND}}")}(fe),fe.type==="ajax"&&function(L){const C=L.el;if(!C||L.htmlEl||L.xhr)return;r==null||r.showLoading(L),L.state=0;const y=new XMLHttpRequest;y.onreadystatechange=function(){if(y.readyState===XMLHttpRequest.DONE&&i===dt.Ready)if(r==null||r.hideLoading(L),L.state=1,y.status===200){let I=y.responseText+"",H=null,te=null;if(L.filter){const j=document.createElement("div");j.innerHTML=I,te=j.querySelector(L.filter+"")}te&&te instanceof HTMLElement?H=te:(H=document.createElement("div"),H.innerHTML=I),H.classList.add("f-html"),L.htmlEl=H,C.classList.add("has-html"),C.classList.add("has-ajax"),C.prepend(H),r==null||r.emit("contentReady",L)}else r==null||r.showError(L)};const O=d("ajax")||null;y.open(O?"POST":"GET",L.src+""),y.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),y.setRequestHeader("X-Requested-With","XMLHttpRequest"),y.send(O),L.xhr=y}(fe)}function N(ee,fe){(function(L){L.closeButtonEl&&(L.closeButtonEl.remove(),L.closeButtonEl=void 0)})(fe),fe.type!=="inline"&&fe.type!=="clone"||function(L){const C=L.htmlEl,y=L.placeholderEl;C&&(getComputedStyle(C).getPropertyValue("display")!=="none"&&(C.style.display="none"),C.offsetHeight),y&&(C&&y.parentNode&&y.parentNode.insertBefore(C,y),y.remove()),L.htmlEl=void 0,L.placeholderEl=void 0}(fe),fe.xhr&&(fe.xhr.abort(),fe.xhr=void 0)}function S(ee){var fe;const{el:L,htmlEl:C,closeButtonEl:y}=ee;if(!L||!C||y)return;let O=d("closeButton");if(O==="auto"&&(O=((fe=r==null?void 0:r.getPlugins().Toolbar)===null||fe===void 0?void 0:fe.isEnabled())!==!0),O){const I=ha(p(r1));I&&(ee.closeButtonEl=C.insertAdjacentElement("afterbegin",I),L.classList.add("has-close-btn"))}}function B(){f=!1,a&&r&&a.classList.remove("is-revealing");const ee=d("sync");if(r&&ee){const fe=ee.getPageIndex(r.getPageIndex())||0;ee.goTo(fe,{transition:!1})}}function G(){var ee;if(i!==dt.Ready)return;Q(q()),function(){if(!d("dragToClose")||!r||!r.getViewport())return;const L=r.getGestures();if(!L)return;let C=0,y=0,O=ga().on("step",I=>{C=I.y;const H=r==null?void 0:r.getViewport();if(a&&H){const te=Oo(Math.abs(C),0,.5*H.getBoundingClientRect().height,1,.5);a.style.setProperty("--f-drag-opacity",te+""),a.style.setProperty("--f-drag-offset",C+"px")}}).on("end",()=>{if(!C){a&&a.style.removeProperty("--f-opacity");const I=r==null?void 0:r.getViewport();I&&(I.style.transform="")}});L.on("start",function(){O.pause()}).on("panstart",I=>{var H;const te=I.srcEvent.target;te&&!wn(te)&&((H=r==null?void 0:r.getViewport())===null||H===void 0||H.classList.add("is-dragging"))}).on("pan",function(I){const H=I.srcEvent.target;H&&wn(H)||r!=null&&r.getViewport()&&I.axis==="y"&&(y+=I.deltaY,O.spring({clamp:!0,mass:1,tension:860,friction:17,restDelta:.01,restSpeed:.01}).from({y:C}).to({y}).start())}).on("end",function(I){O.pause(),I.axis==="y"&&Math.abs(I.velocityY)>5&&Math.abs(y)>0?J(I.srcEvent,"f-throwOut"+(I.velocityY>0?"Down":"Up")):y!==0&&(y=0,O.spring({clamp:!0,mass:1,tension:140,friction:25,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:C}).to({y}).start())})}(),document.body.addEventListener("click",A),document.body.addEventListener("keydown",D,{passive:!1,capture:!0}),X();const fe=d("sync");fe&&((ee=fe.getTween())===null||ee===void 0||ee.start())}function P(){r!=null&&r.canGoNext()?X():M()}function Q(ee){if(!(f&&r&&r.getState()===1&&ee&&ee.index===r.getOptions().initialPage&&ee.el&&ee.el.parentElement)||ee.state!==void 0&&ee.state!==1)return;f=!1;const fe=ee.panzoomRef,L=fe==null?void 0:fe.getTween(),C=d("zoomEffect")?V(ee):void 0;if(fe&&L&&C){const O=fe.getScale("base")||1,{x:I,y:H}=fe.getMousemovePos(O)||{x:0,y:0};return void L.spring({tension:225,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(C).to({x:I,y:H,scale:O}).start()}const y=(fe==null?void 0:fe.getWrapper())||ee.htmlEl;y&&i1(y,d("showClass",ee))}function U(ee,fe){S(fe),Q(fe)}function E(){W()}function D(ee){if(!F()||i!==dt.Ready)return;const fe=ee.key,L=d("keyboard");if(!L||ee.ctrlKey||ee.altKey||ee.shiftKey)return;const C=ee.composedPath()[0];if(!Qa(C)||fe!=="Escape"&&(O=>{const I=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return O.matches(I)||O.closest(I)})(C)||(g("keydown",ee),ee.defaultPrevented))return;const y=L[fe];if(y)switch(y){case"close":J(ee);break;case"next":ee.preventDefault(),r==null||r.next();break;case"prev":ee.preventDefault(),r==null||r.prev()}}function F(){var ee;return((ee=Ye.getInstance())===null||ee===void 0?void 0:ee.getId())===l}function q(){var ee;return(ee=r==null?void 0:r.getPage())===null||ee===void 0?void 0:ee.slides[0]}function oe(){const ee=q();return ee?ee.triggerEl||d("triggerEl"):void 0}function V(ee){var fe,L;const C=(L=(fe=ee.panzoomRef)===null||fe===void 0?void 0:fe.getWrapper())===null||L===void 0?void 0:L.getBoundingClientRect(),y=C==null?void 0:C.width,O=C==null?void 0:C.height;if(!y||!O)return;const I=ee.thumbEl;if(!I)return;const H=I.getBoundingClientRect();let te=H.width,j=H.height,ne=H.left,ue=H.top;if(!(!H||!te||!j)&&(ye=>{const be=ye.getBoundingClientRect(),me=ye.closest("[style]"),Me=me==null?void 0:me.parentElement;if(me&&me.style.transform&&Me){const Se=Me.getBoundingClientRect();if(be.left<Se.left||be.left>Se.left+Se.width-be.width||be.top<Se.top||be.top>Se.top+Se.height-be.height)return!1}const _e=Math.max(document.documentElement.clientHeight,window.innerHeight),Ne=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(be.bottom<0||be.top-_e>=0||be.right<0||be.left-Ne>=0)})(I)){if(I instanceof HTMLImageElement){const ye=window.getComputedStyle(I).getPropertyValue("object-fit");if(ye==="contain"||ye==="scale-down"){const{width:be,height:me}=((Me,_e,Ne,Se,Le="contain")=>{if(Le==="contain"||Me>Ne||_e>Se){const Be=Ne/Me,Z=Se/_e,re=Math.min(Be,Z);Me*=re,_e*=re}return{width:Me,height:_e}})(I.naturalWidth,I.naturalHeight,te,j,ye);ne+=.5*(te-be),ue+=.5*(j-me),te=be,j=me}}if(!(Math.abs(y/O-te/j)>.1))return{x:ne+.5*te-(C.left+.5*y),y:ue+.5*j-(C.top+.5*O),scale:te/y}}}function w(){o&&clearTimeout(o),o=void 0,document.removeEventListener("mousemove",E)}function X(){if(u||o)return;const ee=d("idle");ee&&(o=setTimeout(K,ee))}function K(){a&&(w(),ze(a,"is-idle"),document.addEventListener("mousemove",E),u=!0)}function W(){u&&(M(),X())}function M(){w(),a==null||a.classList.remove("is-idle"),u=!1}function J(ee,fe){var L,C,y,O,I,H;if(i===dt.Closing||i===dt.Destroyed)return;if(i=dt.Closing,w(),ee){if(ee.defaultPrevented)return;ee.cancelable&&ee.preventDefault(),ee.stopPropagation(),ee.stopImmediatePropagation()}if(r){(L=r.getGestures())===null||L===void 0||L.destroy(),(C=r.getTween())===null||C===void 0||C.pause();const j=q(),ne=j==null?void 0:j.panzoomRef;j&&ne&&Tt(ne.getOptions(),{clickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0});for(const ue of r.getSlides())(O=(y=ue.panzoomRef)===null||y===void 0?void 0:y.getGestures())===null||O===void 0||O.destroy(),(H=(I=ue.panzoomRef)===null||I===void 0?void 0:I.getTween())===null||H===void 0||H.pause()}const te=r==null?void 0:r.getPlugins().fullscreen;te&&te.inFullscreen()?Promise.resolve(te.exit()).then(()=>{setTimeout(()=>{ce(ee,fe)},150)}):ce(ee,fe)}function ce(ee,fe){var L,C,y,O,I;if(i!==dt.Closing)return;if(g("close",ee),d("placeFocusBack")){const me=oe();!me||(I=me.getBoundingClientRect()).bottom>0&&I.right>0&&I.left<(window.innerWidth||document.documentElement.clientWidth)&&I.top<(window.innerHeight||document.documentElement.clientHeight)||me.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}d("fadeEffect")&&(a==null||a.classList.remove("is-ready"),a==null||a.classList.add("is-hiding")),a==null||a.classList.add("is-closing");const H=q(),te=H==null?void 0:H.panzoomRef,j=(L=H==null?void 0:H.panzoomRef)===null||L===void 0?void 0:L.getTween(),ne=fe||d("hideClass");let ue=!1,ye=!1;if(r&&H&&te&&j){let me;d("zoomEffect")&&(((y=(C=r.getTween())===null||C===void 0?void 0:C.getCurrentVelocities())===null||y===void 0?void 0:y.pos)||0)<700&&H.state===1&&(me=V(H)),me&&(ue=!0,r.on("refresh",()=>{const Me=V(H);Me&&j.to(Object.assign(Object.assign({},Dt),Me))}),j.easing(ga.Easings.EaseOut).duration(350).from(Object.assign({},te.getTransform())).to(Object.assign(Object.assign({},Dt),me)).start())}const be=(H==null?void 0:H.htmlEl)||((O=H==null?void 0:H.panzoomRef)===null||O===void 0?void 0:O.getWrapper());be&&o1(be),!ue&&ne&&be&&(ye=!0,i1(be,ne,()=>{z()})),ue||ye?setTimeout(()=>{z()},350):z()}function z(){var ee,fe,L,C,y;if(i===dt.Destroyed)return;i=dt.Destroyed,document.body.removeEventListener("click",A),document.body.removeEventListener("keydown",D,{passive:!1,capture:!0});const O=oe();g("destroy"),(fe=(ee=d("sync"))===null||ee===void 0?void 0:ee.getPlugins().Autoplay)===null||fe===void 0||fe.resume(),(C=(L=d("sync"))===null||L===void 0?void 0:L.getPlugins().Autoscroll)===null||C===void 0||C.resume(),e instanceof HTMLDialogElement&&e.close(),(y=r==null?void 0:r.getContainer())===null||y===void 0||y.classList.remove("is-idle"),r==null||r.destroy();for(const I of Object.values(c))I==null||I.destroy();if(c={},e==null||e.remove(),e=void 0,a=void 0,r=void 0,ta.delete(l),!ta.size&&(Fl(!1),document.documentElement.classList.remove(s1),d("placeFocusBack")))try{O==null||O.focus({preventScroll:!0})}catch{}}const he={close:J,destroy:z,getCarousel:function(){return r},getContainer:function(){return a},getId:function(){return l},getOptions:function(){return s},getPlugins:function(){return c},getSlide:function(){return q()},getState:function(){return i},init:function(ee=[],fe={}){return b(ee,fe),he},isCurrentSlide:function(ee){const fe=q();return!(!ee||!fe)&&fe.index===ee.index},isTopMost:function(){return F()},off:function(ee,fe){return h.has(ee)&&h.set(ee,h.get(ee).filter(L=>L!==fe)),he},on:function(ee,fe){return h.set(ee,[...h.get(ee)||[],fe]),he},toggleIdle(ee){(u||ee===!0)&&K(),u&&ee!==!1||M()}};return he},Ye={Plugins:{Hash:zo},version:"6.0.16",openers:new Map,bind:function(e,a,n){if(!Ll())return;let r=document.body,o="[data-fancybox]",i={};if(mt(e)?(r=document.body,o=e,typeof a=="object"&&(i=a||{})):e instanceof Element&&(r=e,mt(a)&&(o=a),typeof n=="object"&&(i=n||{})),!(r&&r instanceof Element&&o))return!1;const s=Ye.openers.get(r)||new Map;if(s.set(o,i),Ye.openers.set(r,s),s.size===1){r.addEventListener("click",Ye.fromEvent);for(const l of Object.values(Ye.Plugins)){const c=l.setup;typeof c=="function"&&c(Ye)}}return!0},close:function(e=!0,...a){if(e)for(const n of ta.values())n.close(...a);else{const n=Ye.getInstance();n&&n.close(...a)}},destroy:function(){let e;for(;e=Ye.getInstance();)e.destroy();for(const a of Ye.openers.keys())a.removeEventListener("click",Ye.fromEvent);Ye.openers.clear()},fromEvent:function(e){var a,n,r;if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let o=e.composedPath()[0];if(o.closest(".fancybox__container.is-hiding"))return e.preventDefault(),void e.stopPropagation();const i=o.closest("[data-fancybox-delegate]")||void 0;if(i){const b=i.dataset.fancyboxDelegate||"",v=document.querySelectorAll(`[data-fancybox="${b}"]`);o=v[parseInt(i.dataset.fancyboxIndex||"",10)||0]||v[0]}if(!(o&&o instanceof Element))return;let s,l,c;for(const b of Array.from(Ye.openers.keys()).reverse()){const v=Ye.openers.get(b);if(v&&b.contains(o))for(const x of Array.from(v.keys()).reverse()){let k=null;try{k=o.closest(x)}catch{}if(k){o=k,s=b,l=x,c=v.get(x);break}}}if(!(s&&l&&c))return;e.preventDefault();const m=Tt({},Sn,{triggerEvent:e,triggerEl:o,delegateEl:i},c),u=m.groupAll,f=m.groupAttr,d=f&&o?o.getAttribute(`${f}`):"";let p=[];const h=(a=o.closest(".f-carousel"))===null||a===void 0?void 0:a.carousel;if(h){const b=[];for(const v of h==null?void 0:h.getSlides()){const x=v.el;x&&(x.matches(l)?b.push(x):b.push(...[].slice.call(x.querySelectorAll(l))))}b.length&&(p=[...b],(n=h.getPlugins().Autoplay)===null||n===void 0||n.pause(),(r=h.getPlugins().Autoscroll)===null||r===void 0||r.pause(),m.sync=h)}else(!o||d||u)&&(p=[].slice.call(s.querySelectorAll(l)));if(o&&!u&&(p=d?p.filter(b=>b.getAttribute(`${f}`)===d):[o]),!p.length)return;const g=Ye.getInstance();if(g){const b=g.getOptions().triggerEl;if(b&&p.indexOf(b)>-1)return}return Object.assign({},m.Carousel||{}).rtl&&(p=p.reverse()),o&&(m.startIndex=p.indexOf(o)),Ye.fromNodes(p,m)},fromNodes:function(e,a){a=Tt({},Sn,a||{});const n=[],r=o=>o instanceof HTMLImageElement?o:o instanceof HTMLElement?o.querySelector("img:not([aria-hidden])"):void 0;for(const o of e){const i=o.dataset||{},s=a.delegateEl&&e.indexOf(o)===a.startIndex?a.delegateEl:void 0,l=r(s)||r(o)||void 0,c=i.src||o.getAttribute("href")||o.getAttribute("currentSrc")||o.getAttribute("src")||void 0,m=i.thumb||i.thumbSrc||(l==null?void 0:l.getAttribute("currentSrc"))||(l==null?void 0:l.getAttribute("src"))||(l==null?void 0:l.dataset.lazySrc)||void 0,u={src:c,alt:i.alt||(l==null?void 0:l.getAttribute("alt"))||void 0,thumbSrc:m,thumbEl:l,triggerEl:o,delegateEl:s};for(const f in i){let d=i[f]+"";d=d!=="false"&&(d==="true"||d),u[f]=d}n.push(u)}return Ye.show(n,a)},fromSelector:function(e,a,n){let r=document.body,o="",i={};if(mt(e)?o=e:e instanceof Element&&(r=e,mt(a)&&(o=a),typeof n=="object"&&(i=n||{})),!(r&&r instanceof Element&&o))return;const s=Ye.openers.get(r);return s?(i=Tt({},s.get(o)||{},i),i?Ye.fromNodes(Array.from(r.querySelectorAll(o)),i):void 0):void 0},getCarousel:function(){var e;return((e=Ye.getInstance())===null||e===void 0?void 0:e.getCarousel())||void 0},getDefaults:function(){return Sn},getInstance:function(e){if(e){const a=ta.get(e);return a&&a.getState()!==dt.Destroyed?a:void 0}return Array.from(ta.values()).reverse().find(a=>{if(a.getState()!==dt.Destroyed)return a})||void 0},getSlide:function(){var e;return((e=Ye.getInstance())===null||e===void 0?void 0:e.getSlide())||void 0},show:function(e=[],a={}){return lf().init(e,a)},unbind:function(e,a){let n=document.body,r="";if(mt(e)?r=e:e instanceof Element&&(n=e,mt(a)&&(r=a)),n){const o=Ye.openers.get(n);o&&r&&o.delete(r),o!=null&&o.size&&r||Ye.openers.delete(n),n.removeEventListener("click",Ye.fromEvent)}}};function pt(e,a,n,r){return new(n||(n=Promise))(function(o,i){function s(m){try{c(r.next(m))}catch(u){i(u)}}function l(m){try{c(r.throw(m))}catch(u){i(u)}}function c(m){var u;m.done?o(m.value):(u=m.value,u instanceof n?u:new n(function(f){f(u)})).then(s,l)}c((r=r.apply(e,a||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class Mn{constructor(){this.listeners={}}on(a,n,r){if(this.listeners[a]||(this.listeners[a]=new Set),this.listeners[a].add(n),r==null?void 0:r.once){const o=()=>{this.un(a,o),this.un(a,n)};return this.on(a,o),o}return()=>this.un(a,n)}un(a,n){var r;(r=this.listeners[a])===null||r===void 0||r.delete(n)}once(a,n){return this.on(a,n,{once:!0})}unAll(){this.listeners={}}emit(a,...n){this.listeners[a]&&this.listeners[a].forEach(r=>r(...n))}}const hr={decode:function(e,a){return pt(this,void 0,void 0,function*(){const n=new AudioContext({sampleRate:a});return n.decodeAudioData(e).finally(()=>n.close())})},createBuffer:function(e,a){return typeof e[0]=="number"&&(e=[e]),function(n){const r=n[0];if(r.some(o=>o>1||o<-1)){const o=r.length;let i=0;for(let s=0;s<o;s++){const l=Math.abs(r[s]);l>i&&(i=l)}for(const s of n)for(let l=0;l<o;l++)s[l]/=i}}(e),{duration:a,length:e[0].length,sampleRate:e[0].length/a,numberOfChannels:e.length,getChannelData:n=>e==null?void 0:e[n],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function l1(e,a){const n=a.xmlns?document.createElementNS(a.xmlns,e):document.createElement(e);for(const[r,o]of Object.entries(a))if(r==="children"&&o)for(const[i,s]of Object.entries(o))s instanceof Node?n.appendChild(s):typeof s=="string"?n.appendChild(document.createTextNode(s)):n.appendChild(l1(i,s));else r==="style"?Object.assign(n.style,o):r==="textContent"?n.textContent=o:n.setAttribute(r,o.toString());return n}function c1(e,a,n){const r=l1(e,a||{});return n==null||n.appendChild(r),r}var cf=Object.freeze({__proto__:null,createElement:c1,default:c1});const df={fetchBlob:function(e,a,n){return pt(this,void 0,void 0,function*(){const r=yield fetch(e,n);if(r.status>=400)throw new Error(`Failed to fetch ${e}: ${r.status} (${r.statusText})`);return function(o,i){pt(this,void 0,void 0,function*(){if(!o.body||!o.headers)return;const s=o.body.getReader(),l=Number(o.headers.get("Content-Length"))||0;let c=0;const m=f=>pt(this,void 0,void 0,function*(){c+=(f==null?void 0:f.length)||0;const d=Math.round(c/l*100);i(d)}),u=()=>pt(this,void 0,void 0,function*(){let f;try{f=yield s.read()}catch{return}f.done||(m(f.value),yield u())});u()})}(r.clone(),a),r.blob()})}};class uf extends Mn{constructor(a){super(),this.isExternalMedia=!1,a.media?(this.media=a.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),a.mediaControls&&(this.media.controls=!0),a.autoplay&&(this.media.autoplay=!0),a.playbackRate!=null&&this.onMediaEvent("canplay",()=>{a.playbackRate!=null&&(this.media.playbackRate=a.playbackRate)},{once:!0})}onMediaEvent(a,n,r){return this.media.addEventListener(a,n,r),()=>this.media.removeEventListener(a,n,r)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const a=this.getSrc();a.startsWith("blob:")&&URL.revokeObjectURL(a)}canPlayType(a){return this.media.canPlayType(a)!==""}setSrc(a,n){const r=this.getSrc();if(a&&r===a)return;this.revokeSrc();const o=n instanceof Blob&&(this.canPlayType(n.type)||!a)?URL.createObjectURL(n):a;if(r&&this.media.removeAttribute("src"),o||a)try{this.media.src=o}catch{this.media.src=a}}destroy(){this.isExternalMedia||(this.media.pause(),this.media.remove(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load())}setMediaElement(a){this.media=a}play(){return pt(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;throw a}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(a){this.media.currentTime=Math.max(0,Math.min(a,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(a){this.media.volume=a}getMuted(){return this.media.muted}setMuted(a){this.media.muted=a}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(a,n){n!=null&&(this.media.preservesPitch=n),this.media.playbackRate=a}getMediaElement(){return this.media}setSinkId(a){return this.media.setSinkId(a)}}let Io=class ni extends Mn{constructor(a,n){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.subscriptions=[],this.options=a;const r=this.parentFromOptionsContainer(a.container);this.parent=r;const[o,i]=this.initHtml();r.appendChild(o),this.container=o,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),n&&i.appendChild(n),this.initEvents()}parentFromOptionsContainer(a){let n;if(typeof a=="string"?n=document.querySelector(a):a instanceof HTMLElement&&(n=a),!n)throw new Error("Container not found");return n}initEvents(){const a=n=>{const r=this.wrapper.getBoundingClientRect(),o=n.clientX-r.left,i=n.clientY-r.top;return[o/r.width,i/r.height]};if(this.wrapper.addEventListener("click",n=>{const[r,o]=a(n);this.emit("click",r,o)}),this.wrapper.addEventListener("dblclick",n=>{const[r,o]=a(n);this.emit("dblclick",r,o)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:n,scrollWidth:r,clientWidth:o}=this.scrollContainer,i=n/r,s=(n+o)/r;this.emit("scroll",i,s,n,n+o)}),typeof ResizeObserver=="function"){const n=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{n().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const a=this.parent.clientWidth;a===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=a,this.reRender())}initDrag(){this.subscriptions.push(function(a,n,r,o,i=3,s=0,l=100){if(!a)return()=>{};const c=matchMedia("(pointer: coarse)").matches;let m=()=>{};const u=f=>{if(f.button!==s)return;f.preventDefault(),f.stopPropagation();let d=f.clientX,p=f.clientY,h=!1;const g=Date.now(),b=_=>{if(_.preventDefault(),_.stopPropagation(),c&&Date.now()-g<l)return;const T=_.clientX,N=_.clientY,S=T-d,B=N-p;if(h||Math.abs(S)>i||Math.abs(B)>i){const G=a.getBoundingClientRect(),{left:P,top:Q}=G;h||(r==null||r(d-P,p-Q),h=!0),n(S,B,T-P,N-Q),d=T,p=N}},v=_=>{if(h){const T=_.clientX,N=_.clientY,S=a.getBoundingClientRect(),{left:B,top:G}=S;o==null||o(T-B,N-G)}m()},x=_=>{_.relatedTarget&&_.relatedTarget!==document.documentElement||v(_)},k=_=>{h&&(_.stopPropagation(),_.preventDefault())},A=_=>{h&&_.preventDefault()};document.addEventListener("pointermove",b),document.addEventListener("pointerup",v),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("click",k,{capture:!0}),m=()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",v),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",A),setTimeout(()=>{document.removeEventListener("click",k,{capture:!0})},10)}};return a.addEventListener("pointerdown",u),()=>{m(),a.removeEventListener("pointerdown",u)}}(this.wrapper,(a,n,r)=>{this.emit("drag",Math.max(0,Math.min(1,r/this.wrapper.getBoundingClientRect().width)))},a=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,a/this.wrapper.getBoundingClientRect().width)))},a=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,a/this.wrapper.getBoundingClientRect().width)))}))}getHeight(a,n){var r;const o=((r=this.audioData)===null||r===void 0?void 0:r.numberOfChannels)||1;if(a==null)return 128;if(!isNaN(Number(a)))return Number(a);if(a==="auto"){const i=this.parent.clientHeight||128;return n!=null&&n.every(s=>!s.overlay)?i/o:i}return 128}initHtml(){const a=document.createElement("div"),n=a.attachShadow({mode:"open"}),r=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return n.innerHTML=`
|
|
16
16
|
<style${r?` nonce="${r}"`:""}>
|
|
17
17
|
:host {
|
|
18
18
|
user-select: none;
|
|
@@ -84,16 +84,16 @@
|
|
|
84
84
|
<div class="cursor" part="cursor"></div>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
|
-
`,[a,n]}setOptions(a){if(this.options.container!==a.container){const n=this.parentFromOptionsContainer(a.container);n.appendChild(this.container),this.parent=n}a.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=a,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(a){this.scrollContainer.scrollLeft=a}setScrollPercentage(a){const{scrollWidth:n}=this.scrollContainer,r=n*a;this.setScroll(r)}destroy(){var a,n;this.subscriptions.forEach(r=>r()),this.container.remove(),(a=this.resizeObserver)===null||a===void 0||a.disconnect(),(n=this.unsubscribeOnScroll)===null||n===void 0||n.forEach(r=>r()),this.unsubscribeOnScroll=[]}createDelay(a=10){let n,r;const o=()=>{n&&clearTimeout(n),r&&r()};return this.timeouts.push(o),()=>new Promise((i,s)=>{o(),r=s,n=setTimeout(()=>{n=void 0,r=void 0,i()},a)})}convertColorValues(a){if(!Array.isArray(a))return a||"";if(a.length<2)return a[0]||"";const n=document.createElement("canvas"),r=n.getContext("2d"),o=n.height*(window.devicePixelRatio||1),i=r.createLinearGradient(0,0,0,o),s=1/(a.length-1);return a.forEach((l,c)=>{const m=c*s;i.addColorStop(m,l)}),i}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(a,n,r,o){const i=a[0],s=a[1]||a[0],l=i.length,{width:c,height:m}=r.canvas,u=m/2,f=this.getPixelRatio(),d=n.barWidth?n.barWidth*f:1,p=n.barGap?n.barGap*f:n.barWidth?d/2:0,h=n.barRadius||0,g=c/(d+p)/l,k=h&&"roundRect"in r?"roundRect":"rect";r.beginPath();let v=0,x=0,b=0;for(let A=0;A<=l;A++){const _=Math.round(A*g);if(_>v){const S=Math.round(x*u*o),B=S+Math.round(b*u*o)||1;let G=u-S;n.barAlign==="top"?G=0:n.barAlign==="bottom"&&(G=m-B),r[k](v*(d+p),G,d,B,h),v=_,x=0,b=0}const O=Math.abs(i[A]||0),N=Math.abs(s[A]||0);O>x&&(x=O),N>b&&(b=N)}r.fill(),r.closePath()}renderLineWaveform(a,n,r,o){const i=s=>{const l=a[s]||a[0],c=l.length,{height:m}=r.canvas,u=m/2,f=r.canvas.width/c;r.moveTo(0,u);let d=0,p=0;for(let h=0;h<=c;h++){const g=Math.round(h*f);if(g>d){const v=u+(Math.round(p*u*o)||1)*(s===0?-1:1);r.lineTo(d,v),d=g,p=0}const k=Math.abs(l[h]||0);k>p&&(p=k)}r.lineTo(d,u)};r.beginPath(),i(0),i(1),r.fill(),r.closePath()}renderWaveform(a,n,r){if(r.fillStyle=this.convertColorValues(n.waveColor),n.renderFunction)return void n.renderFunction(a,r);let o=n.barHeight||1;if(n.normalize){const i=Array.from(a[0]).reduce((s,l)=>Math.max(s,Math.abs(l)),0);o=i?1/i:1}n.barWidth||n.barGap||n.barAlign?this.renderBarWaveform(a,n,r,o):this.renderLineWaveform(a,n,r,o)}renderSingleCanvas(a,n,r,o,i,s,l){const c=this.getPixelRatio(),m=document.createElement("canvas");m.width=Math.round(r*c),m.height=Math.round(o*c),m.style.width=`${r}px`,m.style.height=`${o}px`,m.style.left=`${Math.round(i)}px`,s.appendChild(m);const u=m.getContext("2d");if(this.renderWaveform(a,n,u),m.width>0&&m.height>0){const f=m.cloneNode(),d=f.getContext("2d");d.drawImage(m,0,0),d.globalCompositeOperation="source-in",d.fillStyle=this.convertColorValues(n.progressColor),d.fillRect(0,0,m.width,m.height),l.appendChild(f)}}renderMultiCanvas(a,n,r,o,i,s){const l=this.getPixelRatio(),{clientWidth:c}=this.scrollContainer,m=r/l;let u=Math.min(ni.MAX_CANVAS_WIDTH,c,m),f={};if(n.barWidth||n.barGap){const k=n.barWidth||.5,v=k+(n.barGap||k/2);u%v!=0&&(u=Math.floor(u/v)*v)}if(u===0)return;const d=k=>{if(k<0||k>=p||f[k])return;f[k]=!0;const v=k*u;let x=Math.min(m-v,u);if(n.barWidth||n.barGap){const A=n.barWidth||.5,_=A+(n.barGap||A/2);x=Math.floor(x/_)*_}if(x<=0)return;const b=a.map(A=>{const _=Math.floor(v/m*A.length),O=Math.floor((v+x)/m*A.length);return A.slice(_,O)});this.renderSingleCanvas(b,n,x,o,v,i,s)},p=Math.ceil(m/u);if(!this.isScrollable){for(let k=0;k<p;k++)d(k);return}const h=this.scrollContainer.scrollLeft/m,g=Math.floor(h*p);if(d(g-1),d(g),d(g+1),p>1){const k=this.on("scroll",()=>{const{scrollLeft:v}=this.scrollContainer,x=Math.floor(v/m*p);Object.keys(f).length>ni.MAX_NODES&&(i.innerHTML="",s.innerHTML="",f={}),d(x-1),d(x),d(x+1)});this.unsubscribeOnScroll.push(k)}}renderChannel(a,n,r,o){var{overlay:i}=n,s=function(u,f){var d={};for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&f.indexOf(p)<0&&(d[p]=u[p]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(p=Object.getOwnPropertySymbols(u);h<p.length;h++)f.indexOf(p[h])<0&&Object.prototype.propertyIsEnumerable.call(u,p[h])&&(d[p[h]]=u[p[h]])}return d}(n,["overlay"]);const l=document.createElement("div"),c=this.getHeight(s.height,s.splitChannels);l.style.height=`${c}px`,i&&o>0&&(l.style.marginTop=`-${c}px`),this.canvasWrapper.style.minHeight=`${c}px`,this.canvasWrapper.appendChild(l);const m=l.cloneNode();this.progressWrapper.appendChild(m),this.renderMultiCanvas(a,s,r,c,l,m)}render(a){return pt(this,void 0,void 0,function*(){var n;this.timeouts.forEach(c=>c()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const r=this.getPixelRatio(),o=this.scrollContainer.clientWidth,i=Math.ceil(a.duration*(this.options.minPxPerSec||0));this.isScrollable=i>o;const s=this.options.fillParent&&!this.isScrollable,l=(s?o:i)*r;if(this.wrapper.style.width=s?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=a,this.emit("render"),this.options.splitChannels)for(let c=0;c<a.numberOfChannels;c++){const m=Object.assign(Object.assign({},this.options),(n=this.options.splitChannels)===null||n===void 0?void 0:n[c]);this.renderChannel([a.getChannelData(c)],m,l,c)}else{const c=[a.getChannelData(0)];a.numberOfChannels>1&&c.push(a.getChannelData(1)),this.renderChannel(c,this.options,l,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(r=>r()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:a}=this.scrollContainer,{right:n}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&a!==this.scrollContainer.scrollWidth){const{right:r}=this.progressWrapper.getBoundingClientRect();let o=r-n;o*=2,o=o<0?Math.floor(o):Math.ceil(o),o/=2,this.scrollContainer.scrollLeft+=o}}zoom(a){this.options.minPxPerSec=a,this.reRender()}scrollIntoView(a,n=!1){const{scrollLeft:r,scrollWidth:o,clientWidth:i}=this.scrollContainer,s=a*o,l=r,c=r+i,m=i/2;if(this.isDragging)s+30>c?this.scrollContainer.scrollLeft+=30:s-30<l&&(this.scrollContainer.scrollLeft-=30);else{(s<l||s>c)&&(this.scrollContainer.scrollLeft=s-(this.options.autoCenter?m:0));const u=s-r-m;n&&this.options.autoCenter&&u>0&&(this.scrollContainer.scrollLeft+=Math.min(u,10))}{const u=this.scrollContainer.scrollLeft,f=u/o,d=(u+i)/o;this.emit("scroll",f,d,u,u+i)}}renderProgress(a,n){if(isNaN(a))return;const r=100*a;this.canvasWrapper.style.clipPath=`polygon(${r}% 0%, 100% 0%, 100% 100%, ${r}% 100%)`,this.progressWrapper.style.width=`${r}%`,this.cursor.style.left=`${r}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${a*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(a,n)}exportImage(a,n,r){return pt(this,void 0,void 0,function*(){const o=this.canvasWrapper.querySelectorAll("canvas");if(!o.length)throw new Error("No waveform data");if(r==="dataURL"){const i=Array.from(o).map(s=>s.toDataURL(a,n));return Promise.resolve(i)}return Promise.all(Array.from(o).map(i=>new Promise((s,l)=>{i.toBlob(c=>{c?s(c):l(new Error("Could not export image"))},a,n)})))})}};Io.MAX_CANVAS_WIDTH=8e3,Io.MAX_NODES=10;class ff extends Mn{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class Go extends Mn{constructor(a=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=a,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return pt(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(a){if(this.currentSrc=a,this._duration=void 0,!a)return this.buffer=null,void this.emit("emptied");fetch(a).then(n=>{if(n.status>=400)throw new Error(`Failed to fetch ${a}: ${n.status} (${n.statusText})`);return n.arrayBuffer()}).then(n=>this.currentSrc!==a?null:this.audioContext.decodeAudioData(n)).then(n=>{this.currentSrc===a&&(this.buffer=n,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){var a;if(!this.paused)return;this.paused=!1,(a=this.bufferNode)===null||a===void 0||a.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let n=this.playedDuration*this._playbackRate;(n>=this.duration||n<0)&&(n=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,n),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var a;this.paused=!0,(a=this.bufferNode)===null||a===void 0||a.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return pt(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(a){const n=a-this.currentTime,r=this.bufferNode;r==null||r.stop(this.audioContext.currentTime+n),r==null||r.addEventListener("ended",()=>{r===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(a){return pt(this,void 0,void 0,function*(){return this.audioContext.setSinkId(a)})}get playbackRate(){return this._playbackRate}set playbackRate(a){this._playbackRate=a,this.bufferNode&&(this.bufferNode.playbackRate.value=a)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(a){const n=!this.paused;n&&this._pause(),this.playedDuration=a/this._playbackRate,n&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var a,n;return(a=this._duration)!==null&&a!==void 0?a:((n=this.buffer)===null||n===void 0?void 0:n.duration)||0}set duration(a){this._duration=a}get volume(){return this.gainNode.gain.value}set volume(a){this.gainNode.gain.value=a,this.emit("volumechange")}get muted(){return this._muted}set muted(a){this._muted!==a&&(this._muted=a,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(a){return/^(audio|video)\//.test(a)}getGainNode(){return this.gainNode}getChannelData(){const a=[];if(!this.buffer)return a;const n=this.buffer.numberOfChannels;for(let r=0;r<n;r++)a.push(this.buffer.getChannelData(r));return a}removeAttribute(a){switch(a){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const mf={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};let jo=class s0 extends uf{static create(a){return new s0(a)}constructor(a){const n=a.media||(a.backend==="WebAudio"?new Go:void 0);super({media:n,mediaControls:a.mediaControls,autoplay:a.autoplay,playbackRate:a.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},mf,a),this.timer=new ff;const r=n?void 0:this.getMediaElement();this.renderer=new Io(this.options,r),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const o=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:i,duration:s}=this.options;(o||i&&s)&&this.load(o,i,s).catch(()=>null)})}updateProgress(a=this.getCurrentTime()){return this.renderer.renderProgress(a/this.getDuration(),this.isPlaying()),a}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const a=this.updateProgress();this.emit("timeupdate",a),this.emit("audioprocess",a),this.stopAtPosition!=null&&this.isPlaying()&&a>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const a=this.updateProgress();this.emit("timeupdate",a)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var a;this.emit("error",(a=this.getMediaElement().error)!==null&&a!==void 0?a:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(a,n)=>{this.options.interact&&(this.seekTo(a),this.emit("interaction",a*this.getDuration()),this.emit("click",a,n))}),this.renderer.on("dblclick",(a,n)=>{this.emit("dblclick",a,n)}),this.renderer.on("scroll",(a,n,r,o)=>{const i=this.getDuration();this.emit("scroll",a*i,n*i,r,o)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",a=>{this.emit("dragstart",a)}),this.renderer.on("dragend",a=>{this.emit("dragend",a)}));{let a;this.subscriptions.push(this.renderer.on("drag",n=>{if(!this.options.interact)return;let r;this.renderer.renderProgress(n),clearTimeout(a),this.isPlaying()?r=0:this.options.dragToSeek===!0?r=200:typeof this.options.dragToSeek=="object"&&this.options.dragToSeek!==void 0&&(r=this.options.dragToSeek.debounceTime),a=setTimeout(()=>{this.seekTo(n)},r),this.emit("interaction",n*this.getDuration()),this.emit("drag",n)}))}}initPlugins(){var a;!((a=this.options.plugins)===null||a===void 0)&&a.length&&this.options.plugins.forEach(n=>{this.registerPlugin(n)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(a=>a()),this.mediaSubscriptions=[]}setOptions(a){this.options=Object.assign({},this.options,a),a.duration&&!a.peaks&&(this.decodedData=hr.createBuffer(this.exportPeaks(),a.duration)),a.peaks&&a.duration&&(this.decodedData=hr.createBuffer(a.peaks,a.duration)),this.renderer.setOptions(this.options),a.audioRate&&this.setPlaybackRate(a.audioRate),a.mediaControls!=null&&(this.getMediaElement().controls=a.mediaControls)}registerPlugin(a){if(this.plugins.includes(a))return a;a._init(this),this.plugins.push(a);const n=a.once("destroy",()=>{this.plugins=this.plugins.filter(r=>r!==a),this.subscriptions=this.subscriptions.filter(r=>r!==n)});return this.subscriptions.push(n),a}unregisterPlugin(a){this.plugins=this.plugins.filter(n=>n!==a),a.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(a){return this.renderer.setScroll(a)}setScrollTime(a){const n=a/this.getDuration();this.renderer.setScrollPercentage(n)}getActivePlugins(){return this.plugins}loadAudio(a,n,r,o){return pt(this,void 0,void 0,function*(){var i;if(this.emit("load",a),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,!n&&!r){const l=this.options.fetchParams||{};window.AbortController&&!l.signal&&(this.abortController=new AbortController,l.signal=(i=this.abortController)===null||i===void 0?void 0:i.signal);const c=u=>this.emit("loading",u);n=yield df.fetchBlob(a,c,l);const m=this.options.blobMimeType;m&&(n=new Blob([n],{type:m}))}this.setSrc(a,n);const s=yield new Promise(l=>{const c=o||this.getDuration();c?l(c):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>l(this.getDuration()),{once:!0}))});if(!a&&!n){const l=this.getMediaElement();l instanceof Go&&(l.duration=s)}if(r)this.decodedData=hr.createBuffer(r,s||0);else if(n){const l=yield n.arrayBuffer();this.decodedData=yield hr.decode(l,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(a,n,r){return pt(this,void 0,void 0,function*(){try{return yield this.loadAudio(a,void 0,n,r)}catch(o){throw this.emit("error",o),o}})}loadBlob(a,n,r){return pt(this,void 0,void 0,function*(){try{return yield this.loadAudio("",a,n,r)}catch(o){throw this.emit("error",o),o}})}zoom(a){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(a),this.emit("zoom",a)}getDecodedData(){return this.decodedData}exportPeaks({channels:a=2,maxLength:n=8e3,precision:r=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const o=Math.min(a,this.decodedData.numberOfChannels),i=[];for(let s=0;s<o;s++){const l=this.decodedData.getChannelData(s),c=[],m=l.length/n;for(let u=0;u<n;u++){const f=l.slice(Math.floor(u*m),Math.ceil((u+1)*m));let d=0;for(let p=0;p<f.length;p++){const h=f[p];Math.abs(h)>Math.abs(d)&&(d=h)}c.push(Math.round(d*r)/r)}i.push(c)}return i}getDuration(){let a=super.getDuration()||0;return a!==0&&a!==1/0||!this.decodedData||(a=this.decodedData.duration),a}toggleInteraction(a){this.options.interact=a}setTime(a){this.stopAtPosition=null,super.setTime(a),this.updateProgress(a),this.emit("timeupdate",a)}seekTo(a){const n=this.getDuration()*a;this.setTime(n)}play(a,n){const r=Object.create(null,{play:{get:()=>super.play}});return pt(this,void 0,void 0,function*(){a!=null&&this.setTime(a);const o=yield r.play.call(this);return n!=null&&(this.media instanceof Go?this.media.stopAt(n):this.stopAtPosition=n),o})}playPause(){return pt(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(a){this.setTime(this.getCurrentTime()+a)}empty(){this.load("",[[0]],.001)}setMediaElement(a){this.unsubscribePlayerEvents(),super.setMediaElement(a),this.initPlayerEvents()}exportImage(){return pt(this,arguments,void 0,function*(a="image/png",n=1,r="dataURL"){return this.renderer.exportImage(a,n,r)})}destroy(){var a;this.emit("destroy"),(a=this.abortController)===null||a===void 0||a.abort(),this.plugins.forEach(n=>n.destroy()),this.subscriptions.forEach(n=>n()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}};jo.BasePlugin=class extends Mn{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},jo.dom=cf;const hf={components:{Avatar:Eo},props:{audio:{type:String,required:!0},avatar:{type:[String,null],required:!0},isOwner:{type:Boolean}},emits:["duration","currentTime"],data(){return{wavesurfer:null,audioData:null,isPlaying:!1,duration:0,currentTime:0,isLoading:!0,playbackRate:1}},watch:{audio(e){this.loadAudio(e)}},mounted(){this.wavesurfer=jo.create({container:this.$refs.waveform,waveColor:"#165CF3",progressColor:"#AFAFAF",height:70,cursorWidth:14,cursorColor:"#fff",barWidth:4,barRadius:30,barHeight:.7,barGap:3,hideScrollbar:!0}),this.wavesurfer.on("ready",()=>{this.duration=this.wavesurfer.getDuration(),this.$emit("duration",this.duration),this.isLoading=!1}),this.wavesurfer.on("play",()=>{this.isPlaying=!0}),this.wavesurfer.on("pause",()=>{this.isPlaying=!1}),this.wavesurfer.on("finish",()=>{this.isPlaying=!1}),this.wavesurfer.on("audioprocess",()=>{this.currentTime=this.wavesurfer.getCurrentTime(),this.$emit("currentTime",this.currentTime)}),this.loadAudio(this.audio)},methods:{changeValue(){this.playbackRate===2?this.playbackRate=1:this.playbackRate+=.5,this.changePlaybackRate()},changePlaybackRate(){this.wavesurfer.setPlaybackRate(this.playbackRate)},loadAudio(e){if(this.isBase64(e)){const a=this.base64ToBlob(e);this.wavesurfer.loadBlob(a)}else this.wavesurfer.load(e)},isBase64(e){try{return btoa(atob(e))==e}catch{return!1}},base64ToBlob(e){const a=atob(e),n=new Array(a.length);for(let o=0;o<a.length;o++)n[o]=a.charCodeAt(o);const r=new Uint8Array(n);return new Blob([r],{type:"audio/mp3"})},playPause(){this.wavesurfer.playPause()}}},pf={class:"flex size-full min-w-[220px] select-none items-center justify-center space-x-2 pr-2 text-gray-200 dark:text-gray-700"},gf={key:0,class:"w-20"},yf={class:"fade relative"},kf={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 fill-current"},bf={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10"},xf={class:"flex h-20 w-full items-center justify-center text-center"},wf={key:0,class:"loader-dots relative mx-auto flex h-5 w-full items-center justify-center"},vf={id:"waveform",ref:"waveform",style:{display:"block"},class:"w-full"},Ef={key:1,class:"w-24 pl-3"},Cf={class:"fade relative"};function Sf(e,a,n,r,o,i){const s=t.resolveComponent("Avatar");return t.openBlock(),t.createElementBlock("div",pf,[n.isOwner?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("section",gf,[t.withDirectives(t.createElementVNode("main",yf,[t.createVNode(s,{url:n.avatar,class:"xl:size-[50px]"},null,8,["url"]),a[3]||(a[3]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-1 -right-1 w-5 rounded-full bg-emerald-500 p-1 text-white"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[t.vShow,!o.isPlaying]]),t.withDirectives(t.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:a[0]||(a[0]=(...l)=>i.changeValue&&i.changeValue(...l))},[t.createTextVNode(t.toDisplayString(o.playbackRate.toFixed(1))+"x ",1),a[4]||(a[4]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-11px] left-[28px] w-5 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[t.vShow,o.isPlaying]])])),t.createElementVNode("button",{class:"",onClick:a[1]||(a[1]=(...l)=>i.playPause&&i.playPause(...l))},[o.isPlaying?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("svg",kf,a[5]||(a[5]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)]))),o.isPlaying?(t.openBlock(),t.createElementBlock("svg",bf,a[6]||(a[6]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)]))):t.createCommentVNode("",!0)]),t.createElementVNode("section",xf,[o.isLoading?(t.openBlock(),t.createElementBlock("div",wf,a[7]||(a[7]=[t.createElementVNode("div",{class:"absolute ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),t.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),t.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),t.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1)]))):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",vf,null,512),[[t.vShow,!o.isLoading]])]),n.isOwner?(t.openBlock(),t.createElementBlock("section",Ef,[t.withDirectives(t.createElementVNode("main",Cf,[t.createVNode(s,{url:n.avatar,class:"xl:size-[50px]"},null,8,["url"]),a[8]||(a[8]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-2 -left-2 w-7 rounded-full bg-emerald-500 p-1 text-white"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[t.vShow,!o.isPlaying]]),t.withDirectives(t.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:a[2]||(a[2]=(...l)=>i.changeValue&&i.changeValue(...l))},[t.createTextVNode(t.toDisplayString(o.playbackRate.toFixed(1))+"x ",1),a[9]||(a[9]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-10px] right-[26px] w-7 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[t.vShow,o.isPlaying]])])):t.createCommentVNode("",!0)])}const d1=je(hf,[["render",Sf]]),Mf={key:0},Bf=["src"],Af={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Vf={class:"flex gap-2 items-center text-primary max-w-xs"},_f={class:"truncate text-xs text-primary w-40 flex"},Nf={key:0,class:"flex gap-2"},Df={class:"video_message_preview"},Tf={class:"label_video_hover"},Pf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},Of={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},Ff={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},Lf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},$f=["src"],Rf={key:3},Hf=["src"],zf=["src","type"],If={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Gf={key:0},jf={class:"video_message_preview"},qf={class:"label_video_hover"},Wf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},Yf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},Uf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},Xf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},Zf=["src"],Qf={key:1,class:"size-full"},Kf={key:4},Jf={key:0,class:"w-full px-4"},em={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},tm={key:0,class:"span_generic_files"},am={class:"truncate"},nm={key:6,class:"flex flex-col w-full"},rm={key:0,class:"preview_audio_time"},qo=je({__name:"previewFiles",props:{isMobile:{type:Boolean,default:!1},base64:{type:String},mimetype:{type:String},mode:{type:String,default:"message"},fileName:{type:String},avatar:{type:[String,null],required:!0}},setup(e){const a=e,n=t.ref(null),r=t.ref(null),o=t.ref(0),i=t.computed(()=>a.mimetype==="application/pdf"),s=t.computed(()=>["image/png","image/jpeg","image/svg+xml"].includes(a.mimetype)),l=t.computed(()=>["audio/mpeg","audio/mp4","audio/mp3","audio/aac"].includes(a.mimetype)),c=h=>h?h.startsWith("video/"):void 0,m=async(h,g,k="")=>{a.mode!=="miniature"&&(c(g)?Ye.show([{type:"html",src:h,html:`
|
|
87
|
+
`,[a,n]}setOptions(a){if(this.options.container!==a.container){const n=this.parentFromOptionsContainer(a.container);n.appendChild(this.container),this.parent=n}a.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=a,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(a){this.scrollContainer.scrollLeft=a}setScrollPercentage(a){const{scrollWidth:n}=this.scrollContainer,r=n*a;this.setScroll(r)}destroy(){var a,n;this.subscriptions.forEach(r=>r()),this.container.remove(),(a=this.resizeObserver)===null||a===void 0||a.disconnect(),(n=this.unsubscribeOnScroll)===null||n===void 0||n.forEach(r=>r()),this.unsubscribeOnScroll=[]}createDelay(a=10){let n,r;const o=()=>{n&&clearTimeout(n),r&&r()};return this.timeouts.push(o),()=>new Promise((i,s)=>{o(),r=s,n=setTimeout(()=>{n=void 0,r=void 0,i()},a)})}convertColorValues(a){if(!Array.isArray(a))return a||"";if(a.length<2)return a[0]||"";const n=document.createElement("canvas"),r=n.getContext("2d"),o=n.height*(window.devicePixelRatio||1),i=r.createLinearGradient(0,0,0,o),s=1/(a.length-1);return a.forEach((l,c)=>{const m=c*s;i.addColorStop(m,l)}),i}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(a,n,r,o){const i=a[0],s=a[1]||a[0],l=i.length,{width:c,height:m}=r.canvas,u=m/2,f=this.getPixelRatio(),d=n.barWidth?n.barWidth*f:1,p=n.barGap?n.barGap*f:n.barWidth?d/2:0,h=n.barRadius||0,g=c/(d+p)/l,b=h&&"roundRect"in r?"roundRect":"rect";r.beginPath();let v=0,x=0,k=0;for(let A=0;A<=l;A++){const _=Math.round(A*g);if(_>v){const S=Math.round(x*u*o),B=S+Math.round(k*u*o)||1;let G=u-S;n.barAlign==="top"?G=0:n.barAlign==="bottom"&&(G=m-B),r[b](v*(d+p),G,d,B,h),v=_,x=0,k=0}const T=Math.abs(i[A]||0),N=Math.abs(s[A]||0);T>x&&(x=T),N>k&&(k=N)}r.fill(),r.closePath()}renderLineWaveform(a,n,r,o){const i=s=>{const l=a[s]||a[0],c=l.length,{height:m}=r.canvas,u=m/2,f=r.canvas.width/c;r.moveTo(0,u);let d=0,p=0;for(let h=0;h<=c;h++){const g=Math.round(h*f);if(g>d){const v=u+(Math.round(p*u*o)||1)*(s===0?-1:1);r.lineTo(d,v),d=g,p=0}const b=Math.abs(l[h]||0);b>p&&(p=b)}r.lineTo(d,u)};r.beginPath(),i(0),i(1),r.fill(),r.closePath()}renderWaveform(a,n,r){if(r.fillStyle=this.convertColorValues(n.waveColor),n.renderFunction)return void n.renderFunction(a,r);let o=n.barHeight||1;if(n.normalize){const i=Array.from(a[0]).reduce((s,l)=>Math.max(s,Math.abs(l)),0);o=i?1/i:1}n.barWidth||n.barGap||n.barAlign?this.renderBarWaveform(a,n,r,o):this.renderLineWaveform(a,n,r,o)}renderSingleCanvas(a,n,r,o,i,s,l){const c=this.getPixelRatio(),m=document.createElement("canvas");m.width=Math.round(r*c),m.height=Math.round(o*c),m.style.width=`${r}px`,m.style.height=`${o}px`,m.style.left=`${Math.round(i)}px`,s.appendChild(m);const u=m.getContext("2d");if(this.renderWaveform(a,n,u),m.width>0&&m.height>0){const f=m.cloneNode(),d=f.getContext("2d");d.drawImage(m,0,0),d.globalCompositeOperation="source-in",d.fillStyle=this.convertColorValues(n.progressColor),d.fillRect(0,0,m.width,m.height),l.appendChild(f)}}renderMultiCanvas(a,n,r,o,i,s){const l=this.getPixelRatio(),{clientWidth:c}=this.scrollContainer,m=r/l;let u=Math.min(ni.MAX_CANVAS_WIDTH,c,m),f={};if(n.barWidth||n.barGap){const b=n.barWidth||.5,v=b+(n.barGap||b/2);u%v!=0&&(u=Math.floor(u/v)*v)}if(u===0)return;const d=b=>{if(b<0||b>=p||f[b])return;f[b]=!0;const v=b*u;let x=Math.min(m-v,u);if(n.barWidth||n.barGap){const A=n.barWidth||.5,_=A+(n.barGap||A/2);x=Math.floor(x/_)*_}if(x<=0)return;const k=a.map(A=>{const _=Math.floor(v/m*A.length),T=Math.floor((v+x)/m*A.length);return A.slice(_,T)});this.renderSingleCanvas(k,n,x,o,v,i,s)},p=Math.ceil(m/u);if(!this.isScrollable){for(let b=0;b<p;b++)d(b);return}const h=this.scrollContainer.scrollLeft/m,g=Math.floor(h*p);if(d(g-1),d(g),d(g+1),p>1){const b=this.on("scroll",()=>{const{scrollLeft:v}=this.scrollContainer,x=Math.floor(v/m*p);Object.keys(f).length>ni.MAX_NODES&&(i.innerHTML="",s.innerHTML="",f={}),d(x-1),d(x),d(x+1)});this.unsubscribeOnScroll.push(b)}}renderChannel(a,n,r,o){var{overlay:i}=n,s=function(u,f){var d={};for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&f.indexOf(p)<0&&(d[p]=u[p]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(p=Object.getOwnPropertySymbols(u);h<p.length;h++)f.indexOf(p[h])<0&&Object.prototype.propertyIsEnumerable.call(u,p[h])&&(d[p[h]]=u[p[h]])}return d}(n,["overlay"]);const l=document.createElement("div"),c=this.getHeight(s.height,s.splitChannels);l.style.height=`${c}px`,i&&o>0&&(l.style.marginTop=`-${c}px`),this.canvasWrapper.style.minHeight=`${c}px`,this.canvasWrapper.appendChild(l);const m=l.cloneNode();this.progressWrapper.appendChild(m),this.renderMultiCanvas(a,s,r,c,l,m)}render(a){return pt(this,void 0,void 0,function*(){var n;this.timeouts.forEach(c=>c()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const r=this.getPixelRatio(),o=this.scrollContainer.clientWidth,i=Math.ceil(a.duration*(this.options.minPxPerSec||0));this.isScrollable=i>o;const s=this.options.fillParent&&!this.isScrollable,l=(s?o:i)*r;if(this.wrapper.style.width=s?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=a,this.emit("render"),this.options.splitChannels)for(let c=0;c<a.numberOfChannels;c++){const m=Object.assign(Object.assign({},this.options),(n=this.options.splitChannels)===null||n===void 0?void 0:n[c]);this.renderChannel([a.getChannelData(c)],m,l,c)}else{const c=[a.getChannelData(0)];a.numberOfChannels>1&&c.push(a.getChannelData(1)),this.renderChannel(c,this.options,l,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(r=>r()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:a}=this.scrollContainer,{right:n}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&a!==this.scrollContainer.scrollWidth){const{right:r}=this.progressWrapper.getBoundingClientRect();let o=r-n;o*=2,o=o<0?Math.floor(o):Math.ceil(o),o/=2,this.scrollContainer.scrollLeft+=o}}zoom(a){this.options.minPxPerSec=a,this.reRender()}scrollIntoView(a,n=!1){const{scrollLeft:r,scrollWidth:o,clientWidth:i}=this.scrollContainer,s=a*o,l=r,c=r+i,m=i/2;if(this.isDragging)s+30>c?this.scrollContainer.scrollLeft+=30:s-30<l&&(this.scrollContainer.scrollLeft-=30);else{(s<l||s>c)&&(this.scrollContainer.scrollLeft=s-(this.options.autoCenter?m:0));const u=s-r-m;n&&this.options.autoCenter&&u>0&&(this.scrollContainer.scrollLeft+=Math.min(u,10))}{const u=this.scrollContainer.scrollLeft,f=u/o,d=(u+i)/o;this.emit("scroll",f,d,u,u+i)}}renderProgress(a,n){if(isNaN(a))return;const r=100*a;this.canvasWrapper.style.clipPath=`polygon(${r}% 0%, 100% 0%, 100% 100%, ${r}% 100%)`,this.progressWrapper.style.width=`${r}%`,this.cursor.style.left=`${r}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${a*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(a,n)}exportImage(a,n,r){return pt(this,void 0,void 0,function*(){const o=this.canvasWrapper.querySelectorAll("canvas");if(!o.length)throw new Error("No waveform data");if(r==="dataURL"){const i=Array.from(o).map(s=>s.toDataURL(a,n));return Promise.resolve(i)}return Promise.all(Array.from(o).map(i=>new Promise((s,l)=>{i.toBlob(c=>{c?s(c):l(new Error("Could not export image"))},a,n)})))})}};Io.MAX_CANVAS_WIDTH=8e3,Io.MAX_NODES=10;class ff extends Mn{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class Go extends Mn{constructor(a=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=a,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return pt(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(a){if(this.currentSrc=a,this._duration=void 0,!a)return this.buffer=null,void this.emit("emptied");fetch(a).then(n=>{if(n.status>=400)throw new Error(`Failed to fetch ${a}: ${n.status} (${n.statusText})`);return n.arrayBuffer()}).then(n=>this.currentSrc!==a?null:this.audioContext.decodeAudioData(n)).then(n=>{this.currentSrc===a&&(this.buffer=n,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){var a;if(!this.paused)return;this.paused=!1,(a=this.bufferNode)===null||a===void 0||a.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let n=this.playedDuration*this._playbackRate;(n>=this.duration||n<0)&&(n=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,n),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var a;this.paused=!0,(a=this.bufferNode)===null||a===void 0||a.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return pt(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(a){const n=a-this.currentTime,r=this.bufferNode;r==null||r.stop(this.audioContext.currentTime+n),r==null||r.addEventListener("ended",()=>{r===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(a){return pt(this,void 0,void 0,function*(){return this.audioContext.setSinkId(a)})}get playbackRate(){return this._playbackRate}set playbackRate(a){this._playbackRate=a,this.bufferNode&&(this.bufferNode.playbackRate.value=a)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(a){const n=!this.paused;n&&this._pause(),this.playedDuration=a/this._playbackRate,n&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var a,n;return(a=this._duration)!==null&&a!==void 0?a:((n=this.buffer)===null||n===void 0?void 0:n.duration)||0}set duration(a){this._duration=a}get volume(){return this.gainNode.gain.value}set volume(a){this.gainNode.gain.value=a,this.emit("volumechange")}get muted(){return this._muted}set muted(a){this._muted!==a&&(this._muted=a,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(a){return/^(audio|video)\//.test(a)}getGainNode(){return this.gainNode}getChannelData(){const a=[];if(!this.buffer)return a;const n=this.buffer.numberOfChannels;for(let r=0;r<n;r++)a.push(this.buffer.getChannelData(r));return a}removeAttribute(a){switch(a){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const mf={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};let jo=class s0 extends uf{static create(a){return new s0(a)}constructor(a){const n=a.media||(a.backend==="WebAudio"?new Go:void 0);super({media:n,mediaControls:a.mediaControls,autoplay:a.autoplay,playbackRate:a.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},mf,a),this.timer=new ff;const r=n?void 0:this.getMediaElement();this.renderer=new Io(this.options,r),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const o=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:i,duration:s}=this.options;(o||i&&s)&&this.load(o,i,s).catch(()=>null)})}updateProgress(a=this.getCurrentTime()){return this.renderer.renderProgress(a/this.getDuration(),this.isPlaying()),a}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const a=this.updateProgress();this.emit("timeupdate",a),this.emit("audioprocess",a),this.stopAtPosition!=null&&this.isPlaying()&&a>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const a=this.updateProgress();this.emit("timeupdate",a)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var a;this.emit("error",(a=this.getMediaElement().error)!==null&&a!==void 0?a:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(a,n)=>{this.options.interact&&(this.seekTo(a),this.emit("interaction",a*this.getDuration()),this.emit("click",a,n))}),this.renderer.on("dblclick",(a,n)=>{this.emit("dblclick",a,n)}),this.renderer.on("scroll",(a,n,r,o)=>{const i=this.getDuration();this.emit("scroll",a*i,n*i,r,o)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",a=>{this.emit("dragstart",a)}),this.renderer.on("dragend",a=>{this.emit("dragend",a)}));{let a;this.subscriptions.push(this.renderer.on("drag",n=>{if(!this.options.interact)return;let r;this.renderer.renderProgress(n),clearTimeout(a),this.isPlaying()?r=0:this.options.dragToSeek===!0?r=200:typeof this.options.dragToSeek=="object"&&this.options.dragToSeek!==void 0&&(r=this.options.dragToSeek.debounceTime),a=setTimeout(()=>{this.seekTo(n)},r),this.emit("interaction",n*this.getDuration()),this.emit("drag",n)}))}}initPlugins(){var a;!((a=this.options.plugins)===null||a===void 0)&&a.length&&this.options.plugins.forEach(n=>{this.registerPlugin(n)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(a=>a()),this.mediaSubscriptions=[]}setOptions(a){this.options=Object.assign({},this.options,a),a.duration&&!a.peaks&&(this.decodedData=hr.createBuffer(this.exportPeaks(),a.duration)),a.peaks&&a.duration&&(this.decodedData=hr.createBuffer(a.peaks,a.duration)),this.renderer.setOptions(this.options),a.audioRate&&this.setPlaybackRate(a.audioRate),a.mediaControls!=null&&(this.getMediaElement().controls=a.mediaControls)}registerPlugin(a){if(this.plugins.includes(a))return a;a._init(this),this.plugins.push(a);const n=a.once("destroy",()=>{this.plugins=this.plugins.filter(r=>r!==a),this.subscriptions=this.subscriptions.filter(r=>r!==n)});return this.subscriptions.push(n),a}unregisterPlugin(a){this.plugins=this.plugins.filter(n=>n!==a),a.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(a){return this.renderer.setScroll(a)}setScrollTime(a){const n=a/this.getDuration();this.renderer.setScrollPercentage(n)}getActivePlugins(){return this.plugins}loadAudio(a,n,r,o){return pt(this,void 0,void 0,function*(){var i;if(this.emit("load",a),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,!n&&!r){const l=this.options.fetchParams||{};window.AbortController&&!l.signal&&(this.abortController=new AbortController,l.signal=(i=this.abortController)===null||i===void 0?void 0:i.signal);const c=u=>this.emit("loading",u);n=yield df.fetchBlob(a,c,l);const m=this.options.blobMimeType;m&&(n=new Blob([n],{type:m}))}this.setSrc(a,n);const s=yield new Promise(l=>{const c=o||this.getDuration();c?l(c):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>l(this.getDuration()),{once:!0}))});if(!a&&!n){const l=this.getMediaElement();l instanceof Go&&(l.duration=s)}if(r)this.decodedData=hr.createBuffer(r,s||0);else if(n){const l=yield n.arrayBuffer();this.decodedData=yield hr.decode(l,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(a,n,r){return pt(this,void 0,void 0,function*(){try{return yield this.loadAudio(a,void 0,n,r)}catch(o){throw this.emit("error",o),o}})}loadBlob(a,n,r){return pt(this,void 0,void 0,function*(){try{return yield this.loadAudio("",a,n,r)}catch(o){throw this.emit("error",o),o}})}zoom(a){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(a),this.emit("zoom",a)}getDecodedData(){return this.decodedData}exportPeaks({channels:a=2,maxLength:n=8e3,precision:r=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const o=Math.min(a,this.decodedData.numberOfChannels),i=[];for(let s=0;s<o;s++){const l=this.decodedData.getChannelData(s),c=[],m=l.length/n;for(let u=0;u<n;u++){const f=l.slice(Math.floor(u*m),Math.ceil((u+1)*m));let d=0;for(let p=0;p<f.length;p++){const h=f[p];Math.abs(h)>Math.abs(d)&&(d=h)}c.push(Math.round(d*r)/r)}i.push(c)}return i}getDuration(){let a=super.getDuration()||0;return a!==0&&a!==1/0||!this.decodedData||(a=this.decodedData.duration),a}toggleInteraction(a){this.options.interact=a}setTime(a){this.stopAtPosition=null,super.setTime(a),this.updateProgress(a),this.emit("timeupdate",a)}seekTo(a){const n=this.getDuration()*a;this.setTime(n)}play(a,n){const r=Object.create(null,{play:{get:()=>super.play}});return pt(this,void 0,void 0,function*(){a!=null&&this.setTime(a);const o=yield r.play.call(this);return n!=null&&(this.media instanceof Go?this.media.stopAt(n):this.stopAtPosition=n),o})}playPause(){return pt(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(a){this.setTime(this.getCurrentTime()+a)}empty(){this.load("",[[0]],.001)}setMediaElement(a){this.unsubscribePlayerEvents(),super.setMediaElement(a),this.initPlayerEvents()}exportImage(){return pt(this,arguments,void 0,function*(a="image/png",n=1,r="dataURL"){return this.renderer.exportImage(a,n,r)})}destroy(){var a;this.emit("destroy"),(a=this.abortController)===null||a===void 0||a.abort(),this.plugins.forEach(n=>n.destroy()),this.subscriptions.forEach(n=>n()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}};jo.BasePlugin=class extends Mn{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},jo.dom=cf;const hf={components:{Avatar:Eo},props:{audio:{type:String,required:!0},avatar:{type:[String,null],required:!0},isOwner:{type:Boolean}},emits:["duration","currentTime"],data(){return{wavesurfer:null,audioData:null,isPlaying:!1,duration:0,currentTime:0,isLoading:!0,playbackRate:1}},watch:{audio(e){this.loadAudio(e)}},mounted(){this.wavesurfer=jo.create({container:this.$refs.waveform,waveColor:"#165CF3",progressColor:"#AFAFAF",height:70,cursorWidth:14,cursorColor:"#fff",barWidth:4,barRadius:30,barHeight:.7,barGap:3,hideScrollbar:!0}),this.wavesurfer.on("ready",()=>{this.duration=this.wavesurfer.getDuration(),this.$emit("duration",this.duration),this.isLoading=!1}),this.wavesurfer.on("play",()=>{this.isPlaying=!0}),this.wavesurfer.on("pause",()=>{this.isPlaying=!1}),this.wavesurfer.on("finish",()=>{this.isPlaying=!1}),this.wavesurfer.on("audioprocess",()=>{this.currentTime=this.wavesurfer.getCurrentTime(),this.$emit("currentTime",this.currentTime)}),this.loadAudio(this.audio)},methods:{changeValue(){this.playbackRate===2?this.playbackRate=1:this.playbackRate+=.5,this.changePlaybackRate()},changePlaybackRate(){this.wavesurfer.setPlaybackRate(this.playbackRate)},loadAudio(e){if(this.isBase64(e)){const a=this.base64ToBlob(e);this.wavesurfer.loadBlob(a)}else this.wavesurfer.load(e)},isBase64(e){try{return btoa(atob(e))==e}catch{return!1}},base64ToBlob(e){const a=atob(e),n=new Array(a.length);for(let o=0;o<a.length;o++)n[o]=a.charCodeAt(o);const r=new Uint8Array(n);return new Blob([r],{type:"audio/mp3"})},playPause(){this.wavesurfer.playPause()}}},pf={class:"flex size-full min-w-[220px] select-none items-center justify-center space-x-2 pr-2 text-gray-200 dark:text-gray-700"},gf={key:0,class:"w-20"},yf={class:"fade relative"},kf={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 fill-current"},bf={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10"},xf={class:"flex h-20 w-full items-center justify-center text-center"},wf={key:0,class:"loader-dots relative mx-auto flex h-5 w-full items-center justify-center"},vf={id:"waveform",ref:"waveform",style:{display:"block"},class:"w-full"},Ef={key:1,class:"w-24 pl-3"},Cf={class:"fade relative"};function Sf(e,a,n,r,o,i){const s=t.resolveComponent("Avatar");return t.openBlock(),t.createElementBlock("div",pf,[n.isOwner?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("section",gf,[t.withDirectives(t.createElementVNode("main",yf,[t.createVNode(s,{url:n.avatar,class:"xl:size-[50px]"},null,8,["url"]),a[3]||(a[3]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-1 -right-1 w-5 rounded-full bg-emerald-500 p-1 text-white"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[t.vShow,!o.isPlaying]]),t.withDirectives(t.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:a[0]||(a[0]=(...l)=>i.changeValue&&i.changeValue(...l))},[t.createTextVNode(t.toDisplayString(o.playbackRate.toFixed(1))+"x ",1),a[4]||(a[4]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-11px] left-[28px] w-5 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[t.vShow,o.isPlaying]])])),t.createElementVNode("button",{class:"",onClick:a[1]||(a[1]=(...l)=>i.playPause&&i.playPause(...l))},[o.isPlaying?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("svg",kf,a[5]||(a[5]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)]))),o.isPlaying?(t.openBlock(),t.createElementBlock("svg",bf,a[6]||(a[6]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)]))):t.createCommentVNode("",!0)]),t.createElementVNode("section",xf,[o.isLoading?(t.openBlock(),t.createElementBlock("div",wf,a[7]||(a[7]=[t.createElementVNode("div",{class:"absolute ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),t.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),t.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),t.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1)]))):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",vf,null,512),[[t.vShow,!o.isLoading]])]),n.isOwner?(t.openBlock(),t.createElementBlock("section",Ef,[t.withDirectives(t.createElementVNode("main",Cf,[t.createVNode(s,{url:n.avatar,class:"xl:size-[50px]"},null,8,["url"]),a[8]||(a[8]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-2 -left-2 w-7 rounded-full bg-emerald-500 p-1 text-white"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[t.vShow,!o.isPlaying]]),t.withDirectives(t.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:a[2]||(a[2]=(...l)=>i.changeValue&&i.changeValue(...l))},[t.createTextVNode(t.toDisplayString(o.playbackRate.toFixed(1))+"x ",1),a[9]||(a[9]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-10px] right-[26px] w-7 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[t.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[t.vShow,o.isPlaying]])])):t.createCommentVNode("",!0)])}const d1=je(hf,[["render",Sf]]),Mf={key:0},Bf=["src"],Af={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Vf={class:"flex gap-2 items-center text-primary max-w-xs"},_f={class:"truncate text-xs text-primary w-40 flex"},Nf={key:0,class:"flex gap-2"},Df={class:"video_message_preview"},Tf={class:"label_video_hover"},Pf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},Of={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},Ff={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},Lf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},$f=["src"],Rf={key:3},Hf=["src"],zf=["src","type"],If={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Gf={key:0},jf={class:"video_message_preview"},qf={class:"label_video_hover"},Wf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},Yf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},Uf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},Xf={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},Zf=["src"],Qf={key:1,class:"size-full"},Kf={key:4},Jf={key:0,class:"w-full px-4"},em={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},tm={key:0,class:"span_generic_files"},am={class:"truncate"},nm={key:6,class:"flex flex-col w-full"},rm={key:0,class:"preview_audio_time"},qo=je({__name:"previewFiles",props:{isMobile:{type:Boolean,default:!1},base64:{type:String},mimetype:{type:String},mode:{type:String,default:"message"},fileName:{type:String},avatar:{type:[String,null],required:!0}},setup(e){const a=e,n=t.ref(null),r=t.ref(null),o=t.ref(0),i=t.computed(()=>a.mimetype==="application/pdf"),s=t.computed(()=>["image/png","image/jpeg","image/svg+xml"].includes(a.mimetype)),l=t.computed(()=>["audio/mpeg","audio/mp4","audio/mp3","audio/aac"].includes(a.mimetype)),c=h=>h?h.startsWith("video/"):void 0,m=async(h,g,b="")=>{a.mode!=="miniature"&&(c(g)?Ye.show([{type:"html",src:h,html:`
|
|
88
88
|
<video controls autoplay style="width:100%;height:auto;max-height:80vh">
|
|
89
89
|
<source src="${h}" type="${g}" />
|
|
90
90
|
Seu navegador não suporta vídeo.
|
|
91
91
|
</video>
|
|
92
|
-
`,caption:k}]):Ye.show([{src:h,type:"image",caption:k}]))},u=()=>{const h=document.createElement("canvas"),g=320,k=180;h.width=g,h.height=k;const v=h.getContext("2d");return v.fillStyle="black",v.fillRect(0,0,g,k),h.toDataURL("image/png")};function f(h,g=1){return new Promise((k,v)=>{const x=document.createElement("video");x.src=h,x.crossOrigin="anonymous",x.muted=!0,x.playsInline=!0,x.preload="auto",x.addEventListener("loadeddata",()=>{x.readyState>=2&&(x.currentTime=g)}),x.addEventListener("seeked",()=>{const b=document.createElement("canvas");b.width=x.videoWidth,b.height=x.videoHeight,b.getContext("2d").drawImage(x,0,0,b.width,b.height);const _=b.toDataURL("image/png");k(_)})})}const d=h=>typeof h=="string"&&h.startsWith("data:")&&h.includes(";base64,"),p=h=>{const g=Math.floor(h/60),k=(h%60).toFixed(0),v=g.toString().padStart(2,"0"),x=k.toString().padStart(2,"0");return`${v}:${x}`};return t.onMounted(async()=>{try{const h=await f(a.base64),g=h&&h!=="data:,";n.value=g?h:u()}catch(h){console.error("Erro ao gerar thumbnail:",h),n.value=u()}}),(h,g)=>(t.openBlock(),t.createElementBlock("main",{class:t.normalizeClass({main_preview_files_container_message:e.mode==="message",main_preview_files_container_miniature:e.mode==="miniature","main_preview_files_container_preview bg-base-200":e.mode==="preview"})},[!e.isMobile&&i.value?(t.openBlock(),t.createElementBlock("section",Mf,[e.mode!=="miniature"?(t.openBlock(),t.createElementBlock("iframe",{key:0,class:"iframe_preview_files",src:e.base64,frameborder:"0"},null,8,Bf)):(t.openBlock(),t.createElementBlock("svg",Af,g[6]||(g[6]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"},null,-1)])))])):e.isMobile&&i.value&&e.mode==="message"?(t.openBlock(),t.createElementBlock("section",{key:1,class:t.normalizeClass(e.mode==="message"?"flex flex-col bg-base-300 p-2 rounded-md gap-2":"")},[t.createElementVNode("span",Vf,[g[7]||(g[7]=t.createElementVNode("svg",{class:"size-8 text-primary","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"})],-1)),t.createElementVNode("p",_f,t.toDisplayString(e.fileName),1)]),e.mode==="message"?(t.openBlock(),t.createElementBlock("div",Nf,[t.createElementVNode("button",{class:"bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",onClick:g[0]||(g[0]=k=>h.$emit("open-mobile-pdf"))}," Abrir PDF ")])):t.createCommentVNode("",!0)],2)):s.value?(t.openBlock(),t.createElementBlock("button",{key:2,onClick:g[1]||(g[1]=k=>m(e.base64,e.mimetype)),class:"video_message_preview_container"},[t.createElementVNode("div",Df,[t.createElementVNode("div",Tf,[(t.openBlock(),t.createElementBlock("svg",Pf,g[8]||(g[8]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Of,g[9]||(g[9]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Ff,g[10]||(g[10]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Lf,g[11]||(g[11]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),t.createElementVNode("img",{class:t.normalizeClass(["preview_img",e.mode]),src:d(e.base64)?e.base64:e.base64.replace("+","%2B")},null,10,$f)])):c(e.mimetype)?(t.openBlock(),t.createElementBlock("section",Rf,[e.mode==="preview"?(t.openBlock(),t.createElementBlock("video",{key:0,width:"300",height:"150",controls:"",src:e.base64},[t.createElementVNode("source",{src:e.base64,type:e.mimetype},null,8,zf)],8,Hf)):e.mode==="miniature"?(t.openBlock(),t.createElementBlock("svg",If,g[12]||(g[12]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7Zm2 9.387 4.684 1.562A1 1 0 0 0 22 17V7a1 1 0 0 0-1.316-.949L16 7.613v8.774Z","clip-rule":"evenodd"},null,-1)]))):e.mode==="message"?(t.openBlock(),t.createElementBlock("button",{key:2,onClick:g[2]||(g[2]=k=>m(e.base64,e.mimetype)),class:"video_message_preview_container"},[n.value?(t.openBlock(),t.createElementBlock("section",Gf,[t.createElementVNode("div",jf,[g[17]||(g[17]=t.createElementVNode("svg",{class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z","clip-rule":"evenodd"})],-1)),t.createElementVNode("div",qf,[(t.openBlock(),t.createElementBlock("svg",Wf,g[13]||(g[13]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Yf,g[14]||(g[14]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Uf,g[15]||(g[15]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Xf,g[16]||(g[16]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),t.createElementVNode("img",{class:t.normalizeClass(["preview_img",e.mode]),src:n.value},null,10,Zf)])):(t.openBlock(),t.createElementBlock("span",Qf,g[18]||(g[18]=[t.createElementVNode("span",{class:"loader-preview-lib"},null,-1)])))])):t.createCommentVNode("",!0)])):l.value?(t.openBlock(),t.createElementBlock("section",Kf,[e.mode!=="miniature"?(t.openBlock(),t.createElementBlock("section",Jf,[t.createVNode(d1,{avatar:e.avatar,audio:e.base64,onDuration:g[3]||(g[3]=k=>r.value=k),onCurrentTime:g[4]||(g[4]=k=>o.value=k)},null,8,["avatar","audio"])])):(t.openBlock(),t.createElementBlock("svg",em,g[19]||(g[19]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 8a1 1 0 0 1 1 1v3a4.006 4.006 0 0 0 4 4h4a4.006 4.006 0 0 0 4-4V9a1 1 0 1 1 2 0v3.001A6.006 6.006 0 0 1 14.001 18H13v2h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2H9.999A6.006 6.006 0 0 1 4 12.001V9a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1),t.createElementVNode("path",{d:"M7 6a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-2a4 4 0 0 1-4-4V6Z"},null,-1)])))])):(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.mode==="message"?"generic_files":"")},[g[20]||(g[20]=t.createElementVNode("div",null,[t.createElementVNode("svg",{class:"size-8 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7Z","clip-rule":"evenodd"})])],-1)),e.mode==="message"?(t.openBlock(),t.createElementBlock("span",tm,[t.createElementVNode("p",am,t.toDisplayString(e.fileName),1),t.createElementVNode("button",{class:"download_btn_generic_files",onClick:g[5]||(g[5]=k=>h.$emit("download"))}," Baixar arquivo ")])):t.createCommentVNode("",!0)],2)),e.mode==="message"?(t.openBlock(),t.createElementBlock("div",nm,[t.renderSlot(h.$slots,"content-message",{},void 0,!0),t.createElementVNode("div",{class:t.normalizeClass([r.value?"justify-between":" justify-end","flex w-full"])},[l.value&&r.value?(t.openBlock(),t.createElementBlock("p",rm,t.toDisplayString(p(r.value))+" - "+t.toDisplayString(o.value?p(o.value):"00:00"),1)):t.createCommentVNode("",!0),t.renderSlot(h.$slots,"time-message",{},void 0,!0)],2)])):t.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-133732b1"]]),om={props:{audioStream:MediaStream},data(){return{audioContext:null,analyser:null}},mounted(){this.initializeAudio()},methods:{initializeAudio(){this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.audioContext.createAnalyser();const e=this.$refs.canvas,a=e.getContext("2d");this.audioContext.createMediaStreamSource(this.audioStream).connect(this.analyser),this.analyser.fftSize=256;const r=this.analyser.frequencyBinCount,o=new Uint8Array(r),i=()=>{this.analyser.getByteFrequencyData(o),a.clearRect(0,0,e.width,e.height);const s=e.width/r*2.5,l=e.height/2;let c=0;a.strokeStyle="green",a.lineWidth=2,a.beginPath(),a.moveTo(0,l),a.lineTo(e.width,l),a.stroke(),o.forEach(m=>{const u=m;a.fillStyle=`rgb(50, ${u+100}, 50)`,a.fillRect(c,l-u/2,s,u),c+=s+1}),this.audioStream.active&&requestAnimationFrame(i)};i()}}},im={ref:"canvas",width:"200",height:"40",class:"mx-auto flex items-center rounded"};function sm(e,a,n,r,o,i){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("canvas",im,null,512)])}const lm=je(om,[["render",sm],["__scopeId","data-v-d91f4ade"]]),cm={key:0,class:"flex w-full items-center space-x-3 text-white dark:text-black"},dm=["disabled"],um=["disabled"],fm={key:0,class:"size-4 hover:text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 10 16"},mm={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 hover:text-emerald-500"},hm={key:5,class:"flex w-full items-center space-x-2"},pm={class:"text-xs"},gm={key:0},ym={key:1,class:"flex items-center px-2 pr-[21px]"},km=je({__name:"audioRecorder",props:{canSendMessage:Boolean,sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","b64Audio"],setup(e,{emit:a}){const n=e,r=a,o=t.ref(null),i=t.ref(!1),s=t.ref(!1),l=t.ref(0),c=t.ref(0),m=t.ref(null),u=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),g=t.ref(null),k=t.ref(!1),v=t.ref(!1),x=U=>{p.value=U},b=U=>{h.value=U},A=U=>{const E=Math.floor(U/60),D=(U%60).toFixed(0),F=E.toString().padStart(2,"0"),q=D.toString().padStart(2,"0");return`${F}:${q}`},_=async()=>{try{u.value=null,d.value=await navigator.mediaDevices.getUserMedia({audio:!0}),o.value=new MediaRecorder(d.value),o.value.ondataavailable=O,o.value.start(),N(),i.value=!0,r("recording",!0)}catch(U){console.error("Erro ao iniciar a gravação:",U)}},O=U=>{U.data.size>0&&!k.value&&(m.value=new Blob([U.data]),g.value=URL.createObjectURL(m.value),G())},N=()=>{let U=Date.now();f.value=setInterval(()=>{l.value=c.value+Math.floor((Date.now()-U)/1e3)},1e3)},S=async()=>{u.value=null,o.value&&i.value&&(s.value?(o.value.resume(),N()):(o.value.pause(),clearInterval(f.value),c.value=l.value),s.value=!s.value)},B=async()=>{o.value&&i.value&&(await o.value.stop(),clearInterval(f.value),i.value=!1,s.value=!1,G()),d.value&&d.value.getTracks().forEach(U=>U.stop())},G=async()=>{if(m.value){const U=new Blob([m.value],{type:"audio/mpeg"}),E=new FileReader;E.onload=()=>{u.value=E.result},E.readAsDataURL(U)}},T=async()=>{v.value=!0,r("b64Audio",u.value);const E={type:"file",media:{name:"audio",mimetype:(D=>D?D.split(";")[0].split(":")[1]:null)(u.value),data:u.value}};await n.sendAudioToAttendant(n.selectedAttendant.id,E,n.attendant,!0),r("recording",!1),v.value=!1,d.value=null,u.value=null,m.value=null,i.value=!1,s.value=!1,l.value=0},Q=async()=>{k.value=!0,i.value=!1,r("recording",!1),await o.value.stop(),d.value&&(d.value.getTracks().forEach(U=>U.stop()),d.value=null),m.value=null,clearInterval(f.value),u.value=null,s.value=!1,l.value=0};return(U,E)=>{var D;return v.value?(t.openBlock(),t.createElementBlock("div",ym,E[9]||(E[9]=[t.createElementVNode("span",{class:"loader-audio-recorder"},null,-1)]))):(t.openBlock(),t.createElementBlock("div",cm,[!i.value&&!u.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(["send-audio-button",{recording:i.value}]),disabled:i.value||!e.canSendMessage,onClick:E[0]||(E[0]=F=>(_(),c.value=0,k.value=!1))},E[3]||(E[3]=[t.createElementVNode("svg",{class:"start-recording-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 19"},[t.createElementVNode("path",{d:"M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z"}),t.createElementVNode("path",{d:"M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z"})],-1)]),10,dm)):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createElementBlock("button",{key:1,class:"rounded-full bg-red-500 p-1.5 hover:bg-red-600",onClick:E[1]||(E[1]=F=>Q())},E[4]||(E[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})],-1)]))):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("button",{key:2,disabled:!i.value&&!s.value,onClick:S},[s.value?(t.openBlock(),t.createElementBlock("svg",mm,E[6]||(E[6]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 010 1.954l-7.108 4.061A1.125 1.125 0 013 16.811z"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",fm,E[5]||(E[5]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M0 .8C0 .358.32 0 .714 0h1.429c.394 0 .714.358.714.8v14.4c0 .442-.32.8-.714.8H.714a.678.678 0 0 1-.505-.234A.851.851 0 0 1 0 15.2V.8Zm7.143 0c0-.442.32-.8.714-.8h1.429c.19 0 .37.084.505.234.134.15.209.354.209.566v14.4c0 .442-.32.8-.714.8H7.857c-.394 0-.714-.358-.714-.8V.8Z","clip-rule":"evenodd"},null,-1)])))],8,um)):t.createCommentVNode("",!0),(i.value||m.value)&&!u.value?(t.openBlock(),t.createElementBlock("button",{key:3,class:"rounded-full p-1.5 hover:bg-gray-100 hover:text-light",onClick:B},E[7]||(E[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"})],-1)]))):t.createCommentVNode("",!0),d.value&&i.value&&!s.value?(t.openBlock(),t.createBlock(lm,{key:4,"audio-stream":d.value},null,8,["audio-stream"])):t.createCommentVNode("",!0),u.value?(t.openBlock(),t.createElementBlock("div",hm,[t.createVNode(d1,{avatar:((D=e.attendant)==null?void 0:D.photo)||null,audio:u.value,onDuration:x,onCurrentTime:b},null,8,["avatar","audio"]),t.createElementVNode("main",pm,[t.createElementVNode("div",null,t.toDisplayString(A(h.value)),1),i.value||m.value?(t.openBlock(),t.createElementBlock("div",gm,t.toDisplayString(A(l.value)),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),u.value?(t.openBlock(),t.createElementBlock("button",{key:6,class:"rounded-full p-2 hover:bg-base-100",onClick:E[2]||(E[2]=F=>T())},E[8]||(E[8]=[t.createElementVNode("svg",{class:"size-5 text-base-200 rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):t.createCommentVNode("",!0)]))}}},[["__scopeId","data-v-b0d32109"]]);/*! Capacitor: https://capacitorjs.com/ - MIT License */var an;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(an||(an={}));class Wo extends Error{constructor(a,n,r){super(a),this.message=a,this.code=n,this.data=r}}const bm=e=>{var a,n;return e!=null&&e.androidBridge?"android":!((n=(a=e==null?void 0:e.webkit)===null||a===void 0?void 0:a.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},xm=e=>{const a=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},o=()=>a!==null?a.name:bm(e),i=()=>o()!=="web",s=f=>{const d=m.get(f);return!!(d!=null&&d.platforms.has(o())||l(f))},l=f=>{var d;return(d=n.PluginHeaders)===null||d===void 0?void 0:d.find(p=>p.name===f)},c=f=>e.console.error(f),m=new Map,u=(f,d={})=>{const p=m.get(f);if(p)return console.warn(`Capacitor plugin "${f}" already registered. Cannot register plugins twice.`),p.proxy;const h=o(),g=l(f);let k;const v=async()=>(!k&&h in d?k=typeof d[h]=="function"?k=await d[h]():k=d[h]:a!==null&&!k&&"web"in d&&(k=typeof d.web=="function"?k=await d.web():k=d.web),k),x=(S,B)=>{var G,T;if(g){const Q=g==null?void 0:g.methods.find(U=>B===U.name);if(Q)return Q.rtype==="promise"?U=>n.nativePromise(f,B.toString(),U):(U,E)=>n.nativeCallback(f,B.toString(),U,E);if(S)return(G=S[B])===null||G===void 0?void 0:G.bind(S)}else{if(S)return(T=S[B])===null||T===void 0?void 0:T.bind(S);throw new Wo(`"${f}" plugin is not implemented on ${h}`,an.Unimplemented)}},b=S=>{let B;const G=(...T)=>{const Q=v().then(U=>{const E=x(U,S);if(E){const D=E(...T);return B=D==null?void 0:D.remove,D}else throw new Wo(`"${f}.${S}()" is not implemented on ${h}`,an.Unimplemented)});return S==="addListener"&&(Q.remove=async()=>B()),Q};return G.toString=()=>`${S.toString()}() { [capacitor code] }`,Object.defineProperty(G,"name",{value:S,writable:!1,configurable:!1}),G},A=b("addListener"),_=b("removeListener"),O=(S,B)=>{const G=A({eventName:S},B),T=async()=>{const U=await G;_({eventName:S,callbackId:U},B)},Q=new Promise(U=>G.then(()=>U({remove:T})));return Q.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await T()},Q},N=new Proxy({},{get(S,B){switch(B){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return g?O:A;case"removeListener":return _;default:return b(B)}}});return r[f]=N,m.set(f,{name:f,proxy:N,platforms:new Set([...Object.keys(d),...g?[h]:[]])}),N};return n.convertFileSrc||(n.convertFileSrc=f=>f),n.getPlatform=o,n.handleError=c,n.isNativePlatform=i,n.isPluginAvailable=s,n.registerPlugin=u,n.Exception=Wo,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},pr=(e=>e.Capacitor=xm(e))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Bn=pr.registerPlugin;class gr{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(a,n){let r=!1;this.listeners[a]||(this.listeners[a]=[],r=!0),this.listeners[a].push(n);const i=this.windowListeners[a];i&&!i.registered&&this.addWindowListener(i),r&&this.sendRetainedArgumentsForEvent(a);const s=async()=>this.removeListener(a,n);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(const a in this.windowListeners)this.removeWindowListener(this.windowListeners[a]);this.windowListeners={}}notifyListeners(a,n,r){const o=this.listeners[a];if(!o){if(r){let i=this.retainedEventArguments[a];i||(i=[]),i.push(n),this.retainedEventArguments[a]=i}return}o.forEach(i=>i(n))}hasListeners(a){var n;return!!(!((n=this.listeners[a])===null||n===void 0)&&n.length)}registerWindowListener(a,n){this.windowListeners[n]={registered:!1,windowEventName:a,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(a="not implemented"){return new pr.Exception(a,an.Unimplemented)}unavailable(a="not available"){return new pr.Exception(a,an.Unavailable)}async removeListener(a,n){const r=this.listeners[a];if(!r)return;const o=r.indexOf(n);this.listeners[a].splice(o,1),this.listeners[a].length||this.removeWindowListener(this.windowListeners[a])}addWindowListener(a){window.addEventListener(a.windowEventName,a.handler),a.registered=!0}removeWindowListener(a){a&&(window.removeEventListener(a.windowEventName,a.handler),a.registered=!1)}sendRetainedArgumentsForEvent(a){const n=this.retainedEventArguments[a];n&&(delete this.retainedEventArguments[a],n.forEach(r=>{this.notifyListeners(a,r)}))}}const u1=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),f1=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class wm extends gr{async getCookies(){const a=document.cookie,n={};return a.split(";").forEach(r=>{if(r.length<=0)return;let[o,i]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");o=f1(o).trim(),i=f1(i).trim(),n[o]=i}),n}async setCookie(a){try{const n=u1(a.key),r=u1(a.value),o=`; expires=${(a.expires||"").replace("expires=","")}`,i=(a.path||"/").replace("path=",""),s=a.url!=null&&a.url.length>0?`domain=${a.url}`:"";document.cookie=`${n}=${r||""}${o}; path=${i}; ${s};`}catch(n){return Promise.reject(n)}}async deleteCookie(a){try{document.cookie=`${a.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const a=document.cookie.split(";")||[];for(const n of a)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(a){return Promise.reject(a)}}async clearAllCookies(){try{await this.clearCookies()}catch(a){return Promise.reject(a)}}}Bn("CapacitorCookies",{web:()=>new wm});const vm=async e=>new Promise((a,n)=>{const r=new FileReader;r.onload=()=>{const o=r.result;a(o.indexOf(",")>=0?o.split(",")[1]:o)},r.onerror=o=>n(o),r.readAsDataURL(e)}),Em=(e={})=>{const a=Object.keys(e);return Object.keys(e).map(o=>o.toLocaleLowerCase()).reduce((o,i,s)=>(o[i]=e[a[s]],o),{})},Cm=(e,a=!0)=>e?Object.entries(e).reduce((r,o)=>{const[i,s]=o;let l,c;return Array.isArray(s)?(c="",s.forEach(m=>{l=a?encodeURIComponent(m):m,c+=`${i}=${l}&`}),c.slice(0,-1)):(l=a?encodeURIComponent(s):s,c=`${i}=${l}`),`${r}&${c}`},"").substr(1):null,m1=(e,a={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},a),o=Em(e.headers)["content-type"]||"";if(typeof e.data=="string")n.body=e.data;else if(o.includes("application/x-www-form-urlencoded")){const i=new URLSearchParams;for(const[s,l]of Object.entries(e.data||{}))i.set(s,l);n.body=i.toString()}else if(o.includes("multipart/form-data")||e.data instanceof FormData){const i=new FormData;if(e.data instanceof FormData)e.data.forEach((l,c)=>{i.append(c,l)});else for(const l of Object.keys(e.data))i.append(l,e.data[l]);n.body=i;const s=new Headers(n.headers);s.delete("content-type"),n.headers=s}else(o.includes("application/json")||typeof e.data=="object")&&(n.body=JSON.stringify(e.data));return n};class Sm extends gr{async request(a){const n=m1(a,a.webFetchExtra),r=Cm(a.params,a.shouldEncodeUrlParams),o=r?`${a.url}?${r}`:a.url,i=await fetch(o,n),s=i.headers.get("content-type")||"";let{responseType:l="text"}=i.ok?a:{};s.includes("application/json")&&(l="json");let c,m;switch(l){case"arraybuffer":case"blob":m=await i.blob(),c=await vm(m);break;case"json":c=await i.json();break;case"document":case"text":default:c=await i.text()}const u={};return i.headers.forEach((f,d)=>{u[d]=f}),{data:c,headers:u,status:i.status,url:i.url}}async get(a){return this.request(Object.assign(Object.assign({},a),{method:"GET"}))}async post(a){return this.request(Object.assign(Object.assign({},a),{method:"POST"}))}async put(a){return this.request(Object.assign(Object.assign({},a),{method:"PUT"}))}async patch(a){return this.request(Object.assign(Object.assign({},a),{method:"PATCH"}))}async delete(a){return this.request(Object.assign(Object.assign({},a),{method:"DELETE"}))}}Bn("CapacitorHttp",{web:()=>new Sm});const yr={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"},Pa=Bn("VoiceRecorder",{web:()=>Promise.resolve().then(()=>Dv).then(e=>new e.VoiceRecorderWeb)});function h1(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{d:"M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z"}),t.createElementVNode("path",{d:"M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z"})])}function Mm(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"})])}function p1(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function Bm(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z","clip-rule":"evenodd"})])}function Am(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z","clip-rule":"evenodd"})])}const Vm={key:0,class:"bg-base-300 absolute bottom-14 left-0 z-50 flex w-full items-center justify-between rounded-t-2xl p-3"},_m={class:"flex h-11 items-center"},Nm={key:0},Dm={key:0},Tm={key:1,class:"flex w-full justify-between rounded-lg border-2 border-gray-500 p-2 px-4"},Pm={key:1},Om={class:"flex w-full items-center justify-between gap-2"},Fm=["disabled"],Lm=["disabled"],$m={key:1,class:"loader-mobile-audio-recorder"},Rm=je({__name:"mobileAudioRecorder",props:{disableBtn:{type:Boolean,default:!1},sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","paused"],setup(e,{emit:a}){const n=a,r=e,o=t.ref(null),i=t.ref(!1),s=t.ref(0),l=t.ref(null),c=t.ref([]),m=t.ref(null),u=t.ref("00:00"),f=t.ref(!1),d=t.ref(null);let p=0;t.onUnmounted(()=>{N()});const h=()=>{let E;try{if(c.value.length>0){const D=c.value.map(oe=>{const V=atob(oe),w=new Array(V.length);for(let K=0;K<V.length;K++)w[K]=V.charCodeAt(K);const X=new Uint8Array(w);return new Blob([X],{type:m.value})}),F=new Blob(D,{type:m.value}),q=URL.createObjectURL(F);return E=new Audio(q),E}}catch(D){console.error("Erro ao criar o objeto Audio:",D)}},g=E=>{E==="play"?(d.value.currentTime=p,d.value.oncanplay=()=>{d.value.play().then(()=>{f.value=!0}).catch(D=>{console.error("Erro ao tentar reproduzir o áudio:",D)})},d.value.onended=()=>{f.value=!1,p=0},d.value.onerror=D=>{console.error("Erro ao carregar o áudio:",D)},d.value.load()):E==="pause"&&(d.value&&!d.value.paused?(f.value=!1,d.value.pause()):console.error("Nenhum áudio está tocando no momento"))},k=E=>{const D=Math.floor(E/60),F=(E%60).toFixed(0),q=D.toString().padStart(2,"0"),oe=F.toString().padStart(2,"0");return`${q}:${oe}`},v=()=>{s.value++,u.value=k(s.value)},x=()=>{l.value&&clearInterval(l.value),l.value=setInterval(v,1e3)},b=()=>{l.value&&clearInterval(l.value)},A=async()=>{let{value:E}=await Pa.hasAudioRecordingPermission();if(E)try{Pa.startRecording(),n("recording",!0),o.value="started",x()}catch(D){console.error(D)}else Jn({group:"error",title:"Erro",text:"Permissões de microfone desativadas, ajuste nas configurações do dispositivo"},4e3)},_=()=>{try{n("paused",!0),o.value="paused",N(),b()}catch(E){console.error(E)}},O=()=>{try{d.value&&(d.value.pause(),f.value=!1),n("paused",!1),o.value="started",A(),x()}catch(E){console.error(E)}},N=async()=>{(await Pa.getCurrentStatus()).status!=="NONE"&&await Pa.stopRecording().then(D=>{m.value=D.value.mimeType,c.value.push(D.value.recordDataBase64),d.value=h(),b()})},S=async()=>{const E=await Pa.getCurrentStatus();E.status==="RECORDING"?(await N(),n("paused",!1),n("recording",!1),o.value=null,c.value=[],i.value=!1,s.value=0,u.value=k(0)):E.status==="NONE"&&(n("recording",!1),n("paused",!1),o.value=null,i.value=!1,c.value=[],s.value=0,u.value=k(0))},B=async()=>{await Pa.getCurrentStatus(),d.value&&(d.value.pause(),f.value=!1),S()};function G(E){const D=atob(E),F=D.length,q=new Uint8Array(F);for(let oe=0;oe<F;oe++)q[oe]=D.charCodeAt(oe);return q}function T(E){let D=E.reduce((oe,V)=>oe+V.length,0),F=new Uint8Array(D),q=0;return E.forEach(oe=>{F.set(oe,q),q+=oe.length}),F}function Q(E){let D="",F=E.byteLength;for(let q=0;q<F;q++)D+=String.fromCharCode(E[q]);return btoa(D)}const U=async()=>{i.value=!0,(await Pa.getCurrentStatus()).status==="RECORDING"&&await N();try{const D=c.value.map(G),F=T(D),q=Q(F),oe=`data:${m.value};base64,${q}`,w={type:"file",media:{name:"audio",mimetype:(X=>X?X.split(";")[0].split(":")[1]:null)(oe),data:oe}};console.log("payload",JSON.stringify(w)),await r.sendAudioToAttendant(r.selectedAttendant.id,w,r.attendant,!0),S()}catch(D){S(),console.error("Erro ao enviar áudio:",D),Jn({group:"error",title:"Erro",text:"Erro ao enviar áudio, tente novamente."},4e3);return}};return(E,D)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.Transition,{name:"bounce"},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createElementBlock("div",Vm,[t.createElementVNode("div",_m,[o.value!="paused"?(t.openBlock(),t.createElementBlock("section",Nm,"Gravando")):t.createCommentVNode("",!0)]),o.value!="paused"?(t.openBlock(),t.createElementBlock("section",Dm,t.toDisplayString(u.value),1)):t.createCommentVNode("",!0),o.value==="paused"?(t.openBlock(),t.createElementBlock("section",Tm,[f.value?(t.openBlock(),t.createElementBlock("button",Pm,[t.createVNode(t.unref(p1),{class:"size-6 cursor-pointer",onClick:D[1]||(D[1]=F=>g("pause"))})])):(t.openBlock(),t.createElementBlock("button",{key:0,onClick:D[0]||(D[0]=F=>g("play"))},[t.createVNode(t.unref(Bm),{class:"size-6 cursor-pointer"})])),D[7]||(D[7]=t.createElementVNode("div",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(u.value),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),_:1}),t.createElementVNode("div",Om,[o.value?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:D[2]||(D[2]=F=>B())},[t.createVNode(t.unref(Am),{class:"ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md"})])):t.createCommentVNode("",!0),o.value==="paused"?(t.openBlock(),t.createElementBlock("button",{key:1,onClick:D[3]||(D[3]=F=>O())},[t.createVNode(t.unref(h1),{class:"size-7 cursor-pointer text-green-500/90 drop-shadow-md"})])):t.createCommentVNode("",!0),o.value==="started"?(t.openBlock(),t.createElementBlock("button",{key:2,onClick:D[4]||(D[4]=F=>_())},[t.createVNode(t.unref(p1),{class:"size-7 cursor-pointer text-green-500 drop-shadow-md"})])):t.createCommentVNode("",!0),o.value?(t.openBlock(),t.createElementBlock("button",{key:4,disabled:i.value,class:"mr-2 flex items-center justify-center rounded-full bg-primary p-2 drop-shadow-md",onClick:D[6]||(D[6]=F=>U())},[i.value?(t.openBlock(),t.createElementBlock("span",$m)):(t.openBlock(),t.createBlock(t.unref(Mm),{key:0,class:"size-5 cursor-pointer"}))],8,Lm)):(t.openBlock(),t.createElementBlock("button",{key:3,class:"rounded-full bg-primary p-2 send-audio-button",disabled:e.disableBtn,onClick:D[5]||(D[5]=F=>A())},[t.createVNode(t.unref(h1),{class:"hover:text-white size-5"})],8,Fm))])],64))}},[["__scopeId","data-v-06811026"]]),Hm={class:"messages-container bg-base-300"},zm={class:"header-intern bg-base-300"},Im={class:"atendente-name"},Gm={key:0,class:"date-separator bg-base-100/50"},jm={class:"date-separator-text"},qm={key:0,class:"dropdown-container-internal-messages"},Wm=["onClick"],Ym={class:"message-time"},Um={key:1},Xm={class:"message-time"},Zm={class:"input-area"},g1=je({__name:"ChatMessages",props:{isMobile:{type:Boolean,default:!1},selectedAtendente:{type:Object,required:!0},attendant:{required:!0},loadMessagesForAtendente:{type:Function,required:!0},sendMessageToAtendente:{type:Function,required:!0},hasNextPageForAtendente:{type:Function,required:!0},downloadFilesMobile:{type:Function},openMobilePdf:{type:Function}},emits:["send-files","voltar"],setup(e,{emit:a}){const n=e,r=a,o=t.ref(""),i=t.ref(null),s=t.ref(!1),l=t.ref(!1),c=t.ref(!1),m=t.computed(()=>{var S;return((S=n.selectedAtendente)==null?void 0:S.messages)||[]}),u=S=>{n.isMobile&&n.openMobilePdf(S)},f=(S,B)=>{if(S)if(n.isMobile){const T=S.mimetype.split("/")[1],Q={url:S.mimetype==="image/svg+xml"?S.data.replace("+","%2B"):S.data,type:T,title:S.name};n.downloadFilesMobile(Q,B)}else N(S.data,B)},d=t.computed(()=>n.hasNextPageForAtendente(n.selectedAtendente.id)),p=S=>{const B=new Date(S),G=B.getHours(),T=B.getMinutes();return`${G.toString().padStart(2,"0")}:${T.toString().padStart(2,"0")}`},h=S=>{const B=new Date(S);return k7(B)?"Hoje":x7(B)?"Ontem":y7(B)?Sl(B,"EEEE",{locale:Ml}):Sl(B,"dd 'de' MMMM 'de' yyyy",{locale:Ml})},g=S=>{if(S===0)return!0;const B=new Date(m.value[S].created_at),G=new Date(m.value[S-1].created_at);return B.toDateString()!==G.toDateString()},k=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),b())},v=()=>{i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},x=async S=>{try{if(!d.value){S.complete();return}const B=i.value.scrollHeight,G=i.value.scrollTop;await n.loadMessagesForAtendente(n.selectedAtendente.id),await t.nextTick(),i.value.scrollTop=i.value.scrollHeight-B+G-32,S.loaded()}catch(B){console.error(B),S.complete()}},b=async()=>{if(o.value.trim()!=="")try{const S=JSON.parse(JSON.stringify(o.value));o.value="",await n.sendMessageToAtendente(n.selectedAtendente.id,S,n.attendant),await t.nextTick(),v()}catch(S){console.error("Erro ao enviar mensagem:",S)}},A=()=>{b();const S=document.querySelector(".send-button");S.classList.add("clicked"),setTimeout(()=>{S.classList.remove("clicked")},200)},_=()=>{r("send-files");const S=document.querySelector(".send-files-button");S.classList.add("clicked"),setTimeout(()=>{S.classList.remove("clicked")},200)};t.onMounted(async()=>{await t.nextTick(()=>{v(),s.value=!0})}),t.watch(()=>{var S;return(S=m.value)==null?void 0:S.length},(S,B)=>{m.value&&O()&&setTimeout(()=>{i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},100)});function O(){const B=i.value.scrollTop+i.value.clientHeight;return i.value.scrollHeight-B<=80}const N=async(S,B="undefined")=>{const G=S.endsWith("svg+xml");try{const T=await fetch(G?S.replace("+","%2B"):S);if(!T.ok)throw new Error("Erro ao baixar o arquivo");const Q=T.headers.get("Content-Type"),U=await T.arrayBuffer(),E=Q&&Q!=="application/octet-stream"?Q:"audio/mp3",D=new Blob([U],{type:E}),F=window.URL.createObjectURL(D),q=document.createElement("a");q.href=F;const oe=Q.endsWith("aac")?`${B}.mp3`:B;q.download=oe,document.body.appendChild(q),q.click(),document.body.removeChild(q),window.URL.revokeObjectURL(F)}catch(T){console.error("Erro no download:",T)}};return(S,B)=>{const G=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("div",Hm,[t.createElementVNode("div",zm,[t.createElementVNode("button",{onClick:B[0]||(B[0]=T=>r("voltar")),class:"back-button"},B[4]||(B[4]=[t.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{d:"M14.502 7.046h-2.5v-.928a2.122 2.122 0 0 0-1.199-1.954 1.827 1.827 0 0 0-1.984.311L3.71 8.965a2.2 2.2 0 0 0 0 3.24L8.82 16.7a1.829 1.829 0 0 0 1.985.31 2.121 2.121 0 0 0 1.199-1.959v-.928h1a2.025 2.025 0 0 1 1.999 2.047V19a1 1 0 0 0 1.275.961 6.59 6.59 0 0 0 4.662-7.22 6.593 6.593 0 0 0-6.437-5.695Z"})],-1)])),t.createVNode(Eo,{url:e.selectedAtendente.photo},null,8,["url"]),t.createElementVNode("h3",Im,t.toDisplayString(e.selectedAtendente.name),1)]),t.createElementVNode("div",{class:"message-area",ref_key:"chatArea",ref:i},[!c.value&&d.value&&s.value?(t.openBlock(),t.createBlock(t.unref(Co),{key:0,onInfinite:x,distance:30,top:!0,direction:"top",class:"p-3"},{complete:t.withCtx(()=>B[5]||(B[5]=[t.createElementVNode("span",null,null,-1)])),spinner:t.withCtx(()=>B[6]||(B[6]=[t.createElementVNode("div",{class:"loading"},[t.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})])],-1)])),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(T,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q},[g(Q)?(t.openBlock(),t.createElementBlock("div",Gm,[B[7]||(B[7]=t.createElementVNode("div",{class:"date-separator-line"},null,-1)),t.createElementVNode("div",jm,t.toDisplayString(h(T.created_at)),1),B[8]||(B[8]=t.createElementVNode("div",{class:"date-separator-line"},null,-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["message",{me:T.sender.id===e.attendant.id,"not-me":T.sender.id!==e.attendant.id,"new-message":Q===m.value.length-1}])},[t.createElementVNode("div",{class:t.normalizeClass(["relative",T.sender.id===e.attendant.id?"text-right":"text-left"])},[T.content&&T.content.media&&T.content.media.data?(t.openBlock(),t.createElementBlock("div",qm,[t.createVNode(G,{hover:"",class:"label-popper-internal-messages",placement:"left"},{content:t.withCtx(()=>[t.createElementVNode("button",{class:"download-button-internal-messages",onClick:U=>f(T.content.media,T.content.media.name)}," Baixar ",8,Wm)]),default:t.withCtx(()=>[B[9]||(B[9]=t.createElementVNode("button",{class:"dropdown-toggle-internal-messages"},[t.createElementVNode("svg",{class:"dropdown-icon-internal-messages","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"})])],-1))]),_:2,__:[9]},1024)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["shadow shadow-gray-900 dark:shadow-gray-500",["message-content",{me:T.sender.id===e.attendant.id,"not-me":T.sender.id!==e.attendant.id}]])},[T.content&&T.content.media&&T.content.media.data?(t.openBlock(),t.createBlock(qo,{key:0,mode:"message",isMobile:e.isMobile,onDownload:U=>f(T.content.media,T.content.media.name),onOpenMobilePdf:U=>u(T.content.media.data),avatar:T.sender.id===e.attendant.id?e.attendant.photo:T.sender.photo,fileName:T.content.media.name,base64:T.content.media.data,mimetype:T.content.media.mimetype},{"content-message":t.withCtx(()=>[t.createElementVNode("p",null,t.toDisplayString(T.content.content),1)]),"time-message":t.withCtx(()=>[t.createElementVNode("div",Ym,t.toDisplayString(p(T.created_at)),1)]),_:2},1032,["isMobile","onDownload","onOpenMobilePdf","avatar","fileName","base64","mimetype"])):(t.openBlock(),t.createElementBlock("section",Um,[t.createElementVNode("p",null,t.toDisplayString(T.content.content),1),t.createElementVNode("div",Xm,t.toDisplayString(p(T.created_at)),1)]))],2)],2)],2)]))),128))])],512),t.createElementVNode("div",Zm,[t.withDirectives(t.createElementVNode("textarea",{type:"text","onUpdate:modelValue":B[1]||(B[1]=T=>o.value=T),class:"message-input bg-base-300 focus:ring-0",placeholder:"Digite sua mensagem...",onKeydown:k},null,544),[[t.vModelText,o.value]]),t.createElementVNode("button",{onClick:_,class:"send-files-button"},B[10]||(B[10]=[t.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 8v8a5 5 0 1 0 10 0V6.5a3.5 3.5 0 1 0-7 0V15a2 2 0 0 0 4 0V8"})],-1)])),o.value.length>0?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:A,class:"send-button"},B[11]||(B[11]=[t.createElementVNode("svg",{class:"size-5 text-white rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):(t.openBlock(),t.createElementBlock("section",{key:1,class:t.normalizeClass(["bg-base-300",["send-audio-button",{recording:l.value}]])},[e.isMobile?(t.openBlock(),t.createBlock(Rm,{key:0,attendant:e.attendant,selectedAttendant:e.selectedAtendente,sendAudioToAttendant:e.sendMessageToAtendente,onRecording:B[2]||(B[2]=T=>l.value=T)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"])):(t.openBlock(),t.createBlock(km,{key:1,"can-send-message":!0,attendant:e.attendant,selectedAttendant:e.selectedAtendente,sendAudioToAttendant:e.sendMessageToAtendente,onRecording:B[3]||(B[3]=T=>l.value=T)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"]))],2))])])}}},[["__scopeId","data-v-e572b8f0"]]),Qm={},Km={class:"loading"};function Jm(e,a){return t.openBlock(),t.createElementBlock("div",Km,a[0]||(a[0]=[t.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-30",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)]))}const y1=je(Qm,[["render",Jm],["__scopeId","data-v-bd52ddea"]]);/**
|
|
92
|
+
`,caption:b}]):Ye.show([{src:h,type:"image",caption:b}]))},u=()=>{const h=document.createElement("canvas"),g=320,b=180;h.width=g,h.height=b;const v=h.getContext("2d");return v.fillStyle="black",v.fillRect(0,0,g,b),h.toDataURL("image/png")};function f(h,g=1){return new Promise((b,v)=>{const x=document.createElement("video");x.src=h,x.crossOrigin="anonymous",x.muted=!0,x.playsInline=!0,x.preload="auto",x.addEventListener("loadeddata",()=>{x.readyState>=2&&(x.currentTime=g)}),x.addEventListener("seeked",()=>{const k=document.createElement("canvas");k.width=x.videoWidth,k.height=x.videoHeight,k.getContext("2d").drawImage(x,0,0,k.width,k.height);const _=k.toDataURL("image/png");b(_)})})}const d=h=>typeof h=="string"&&h.startsWith("data:")&&h.includes(";base64,"),p=h=>{const g=Math.floor(h/60),b=(h%60).toFixed(0),v=g.toString().padStart(2,"0"),x=b.toString().padStart(2,"0");return`${v}:${x}`};return t.onMounted(async()=>{try{const h=await f(a.base64),g=h&&h!=="data:,";n.value=g?h:u()}catch(h){console.error("Erro ao gerar thumbnail:",h),n.value=u()}}),(h,g)=>(t.openBlock(),t.createElementBlock("main",{class:t.normalizeClass({main_preview_files_container_message:e.mode==="message",main_preview_files_container_miniature:e.mode==="miniature","main_preview_files_container_preview bg-base-200":e.mode==="preview"})},[!e.isMobile&&i.value?(t.openBlock(),t.createElementBlock("section",Mf,[e.mode!=="miniature"?(t.openBlock(),t.createElementBlock("iframe",{key:0,class:"iframe_preview_files",src:e.base64,frameborder:"0"},null,8,Bf)):(t.openBlock(),t.createElementBlock("svg",Af,g[6]||(g[6]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"},null,-1)])))])):e.isMobile&&i.value&&e.mode==="message"?(t.openBlock(),t.createElementBlock("section",{key:1,class:t.normalizeClass(e.mode==="message"?"flex flex-col bg-base-300 p-2 rounded-md gap-2":"")},[t.createElementVNode("span",Vf,[g[7]||(g[7]=t.createElementVNode("svg",{class:"size-8 text-primary","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"})],-1)),t.createElementVNode("p",_f,t.toDisplayString(e.fileName),1)]),e.mode==="message"?(t.openBlock(),t.createElementBlock("div",Nf,[t.createElementVNode("button",{class:"bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",onClick:g[0]||(g[0]=b=>h.$emit("open-mobile-pdf"))}," Abrir PDF ")])):t.createCommentVNode("",!0)],2)):s.value?(t.openBlock(),t.createElementBlock("button",{key:2,onClick:g[1]||(g[1]=b=>m(e.base64,e.mimetype)),class:"video_message_preview_container"},[t.createElementVNode("div",Df,[t.createElementVNode("div",Tf,[(t.openBlock(),t.createElementBlock("svg",Pf,g[8]||(g[8]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Of,g[9]||(g[9]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Ff,g[10]||(g[10]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Lf,g[11]||(g[11]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),t.createElementVNode("img",{class:t.normalizeClass(["preview_img",e.mode]),src:d(e.base64)?e.base64:e.base64.replace("+","%2B")},null,10,$f)])):c(e.mimetype)?(t.openBlock(),t.createElementBlock("section",Rf,[e.mode==="preview"?(t.openBlock(),t.createElementBlock("video",{key:0,width:"300",height:"150",controls:"",src:e.base64},[t.createElementVNode("source",{src:e.base64,type:e.mimetype},null,8,zf)],8,Hf)):e.mode==="miniature"?(t.openBlock(),t.createElementBlock("svg",If,g[12]||(g[12]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7Zm2 9.387 4.684 1.562A1 1 0 0 0 22 17V7a1 1 0 0 0-1.316-.949L16 7.613v8.774Z","clip-rule":"evenodd"},null,-1)]))):e.mode==="message"?(t.openBlock(),t.createElementBlock("button",{key:2,onClick:g[2]||(g[2]=b=>m(e.base64,e.mimetype)),class:"video_message_preview_container"},[n.value?(t.openBlock(),t.createElementBlock("section",Gf,[t.createElementVNode("div",jf,[g[17]||(g[17]=t.createElementVNode("svg",{class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z","clip-rule":"evenodd"})],-1)),t.createElementVNode("div",qf,[(t.openBlock(),t.createElementBlock("svg",Wf,g[13]||(g[13]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Yf,g[14]||(g[14]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Uf,g[15]||(g[15]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(t.openBlock(),t.createElementBlock("svg",Xf,g[16]||(g[16]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),t.createElementVNode("img",{class:t.normalizeClass(["preview_img",e.mode]),src:n.value},null,10,Zf)])):(t.openBlock(),t.createElementBlock("span",Qf,g[18]||(g[18]=[t.createElementVNode("span",{class:"loader-preview-lib"},null,-1)])))])):t.createCommentVNode("",!0)])):l.value?(t.openBlock(),t.createElementBlock("section",Kf,[e.mode!=="miniature"?(t.openBlock(),t.createElementBlock("section",Jf,[t.createVNode(d1,{avatar:e.avatar,audio:e.base64,onDuration:g[3]||(g[3]=b=>r.value=b),onCurrentTime:g[4]||(g[4]=b=>o.value=b)},null,8,["avatar","audio"])])):(t.openBlock(),t.createElementBlock("svg",em,g[19]||(g[19]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 8a1 1 0 0 1 1 1v3a4.006 4.006 0 0 0 4 4h4a4.006 4.006 0 0 0 4-4V9a1 1 0 1 1 2 0v3.001A6.006 6.006 0 0 1 14.001 18H13v2h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2H9.999A6.006 6.006 0 0 1 4 12.001V9a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1),t.createElementVNode("path",{d:"M7 6a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-2a4 4 0 0 1-4-4V6Z"},null,-1)])))])):(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.mode==="message"?"generic_files":"")},[g[20]||(g[20]=t.createElementVNode("div",null,[t.createElementVNode("svg",{class:"size-8 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7Z","clip-rule":"evenodd"})])],-1)),e.mode==="message"?(t.openBlock(),t.createElementBlock("span",tm,[t.createElementVNode("p",am,t.toDisplayString(e.fileName),1),t.createElementVNode("button",{class:"download_btn_generic_files",onClick:g[5]||(g[5]=b=>h.$emit("download"))}," Baixar arquivo ")])):t.createCommentVNode("",!0)],2)),e.mode==="message"?(t.openBlock(),t.createElementBlock("div",nm,[t.renderSlot(h.$slots,"content-message",{},void 0,!0),t.createElementVNode("div",{class:t.normalizeClass([r.value?"justify-between":" justify-end","flex w-full"])},[l.value&&r.value?(t.openBlock(),t.createElementBlock("p",rm,t.toDisplayString(p(r.value))+" - "+t.toDisplayString(o.value?p(o.value):"00:00"),1)):t.createCommentVNode("",!0),t.renderSlot(h.$slots,"time-message",{},void 0,!0)],2)])):t.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-133732b1"]]),om={props:{audioStream:MediaStream},data(){return{audioContext:null,analyser:null}},mounted(){this.initializeAudio()},methods:{initializeAudio(){this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.audioContext.createAnalyser();const e=this.$refs.canvas,a=e.getContext("2d");this.audioContext.createMediaStreamSource(this.audioStream).connect(this.analyser),this.analyser.fftSize=256;const r=this.analyser.frequencyBinCount,o=new Uint8Array(r),i=()=>{this.analyser.getByteFrequencyData(o),a.clearRect(0,0,e.width,e.height);const s=e.width/r*2.5,l=e.height/2;let c=0;a.strokeStyle="green",a.lineWidth=2,a.beginPath(),a.moveTo(0,l),a.lineTo(e.width,l),a.stroke(),o.forEach(m=>{const u=m;a.fillStyle=`rgb(50, ${u+100}, 50)`,a.fillRect(c,l-u/2,s,u),c+=s+1}),this.audioStream.active&&requestAnimationFrame(i)};i()}}},im={ref:"canvas",width:"200",height:"40",class:"mx-auto flex items-center rounded"};function sm(e,a,n,r,o,i){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("canvas",im,null,512)])}const lm=je(om,[["render",sm],["__scopeId","data-v-d91f4ade"]]),cm={key:0,class:"flex w-full items-center space-x-3 text-white dark:text-black"},dm=["disabled"],um=["disabled"],fm={key:0,class:"size-4 hover:text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 10 16"},mm={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 hover:text-emerald-500"},hm={key:5,class:"flex w-full items-center space-x-2"},pm={class:"text-xs"},gm={key:0},ym={key:1,class:"flex items-center px-2 pr-[21px]"},km=je({__name:"audioRecorder",props:{canSendMessage:Boolean,sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","b64Audio"],setup(e,{emit:a}){const n=e,r=a,o=t.ref(null),i=t.ref(!1),s=t.ref(!1),l=t.ref(0),c=t.ref(0),m=t.ref(null),u=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),g=t.ref(null),b=t.ref(!1),v=t.ref(!1),x=U=>{p.value=U},k=U=>{h.value=U},A=U=>{const E=Math.floor(U/60),D=(U%60).toFixed(0),F=E.toString().padStart(2,"0"),q=D.toString().padStart(2,"0");return`${F}:${q}`},_=async()=>{try{u.value=null,d.value=await navigator.mediaDevices.getUserMedia({audio:!0}),o.value=new MediaRecorder(d.value),o.value.ondataavailable=T,o.value.start(),N(),i.value=!0,r("recording",!0)}catch(U){console.error("Erro ao iniciar a gravação:",U)}},T=U=>{U.data.size>0&&!b.value&&(m.value=new Blob([U.data]),g.value=URL.createObjectURL(m.value),G())},N=()=>{let U=Date.now();f.value=setInterval(()=>{l.value=c.value+Math.floor((Date.now()-U)/1e3)},1e3)},S=async()=>{u.value=null,o.value&&i.value&&(s.value?(o.value.resume(),N()):(o.value.pause(),clearInterval(f.value),c.value=l.value),s.value=!s.value)},B=async()=>{o.value&&i.value&&(await o.value.stop(),clearInterval(f.value),i.value=!1,s.value=!1,G()),d.value&&d.value.getTracks().forEach(U=>U.stop())},G=async()=>{if(m.value){const U=new Blob([m.value],{type:"audio/mpeg"}),E=new FileReader;E.onload=()=>{u.value=E.result},E.readAsDataURL(U)}},P=async()=>{v.value=!0,r("b64Audio",u.value);const E={type:"file",media:{name:"audio",mimetype:(D=>D?D.split(";")[0].split(":")[1]:null)(u.value),data:u.value}};await n.sendAudioToAttendant(n.selectedAttendant.id,E,n.attendant,!0),r("recording",!1),v.value=!1,d.value=null,u.value=null,m.value=null,i.value=!1,s.value=!1,l.value=0},Q=async()=>{b.value=!0,i.value=!1,r("recording",!1),await o.value.stop(),d.value&&(d.value.getTracks().forEach(U=>U.stop()),d.value=null),m.value=null,clearInterval(f.value),u.value=null,s.value=!1,l.value=0};return(U,E)=>{var D;return v.value?(t.openBlock(),t.createElementBlock("div",ym,E[9]||(E[9]=[t.createElementVNode("span",{class:"loader-audio-recorder"},null,-1)]))):(t.openBlock(),t.createElementBlock("div",cm,[!i.value&&!u.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(["send-audio-button",{recording:i.value}]),disabled:i.value||!e.canSendMessage,onClick:E[0]||(E[0]=F=>(_(),c.value=0,b.value=!1))},E[3]||(E[3]=[t.createElementVNode("svg",{class:"start-recording-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 19"},[t.createElementVNode("path",{d:"M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z"}),t.createElementVNode("path",{d:"M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z"})],-1)]),10,dm)):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createElementBlock("button",{key:1,class:"rounded-full bg-red-500 p-1.5 hover:bg-red-600",onClick:E[1]||(E[1]=F=>Q())},E[4]||(E[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})],-1)]))):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("button",{key:2,disabled:!i.value&&!s.value,onClick:S},[s.value?(t.openBlock(),t.createElementBlock("svg",mm,E[6]||(E[6]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 010 1.954l-7.108 4.061A1.125 1.125 0 013 16.811z"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",fm,E[5]||(E[5]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M0 .8C0 .358.32 0 .714 0h1.429c.394 0 .714.358.714.8v14.4c0 .442-.32.8-.714.8H.714a.678.678 0 0 1-.505-.234A.851.851 0 0 1 0 15.2V.8Zm7.143 0c0-.442.32-.8.714-.8h1.429c.19 0 .37.084.505.234.134.15.209.354.209.566v14.4c0 .442-.32.8-.714.8H7.857c-.394 0-.714-.358-.714-.8V.8Z","clip-rule":"evenodd"},null,-1)])))],8,um)):t.createCommentVNode("",!0),(i.value||m.value)&&!u.value?(t.openBlock(),t.createElementBlock("button",{key:3,class:"rounded-full p-1.5 hover:bg-gray-100 hover:text-light",onClick:B},E[7]||(E[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"})],-1)]))):t.createCommentVNode("",!0),d.value&&i.value&&!s.value?(t.openBlock(),t.createBlock(lm,{key:4,"audio-stream":d.value},null,8,["audio-stream"])):t.createCommentVNode("",!0),u.value?(t.openBlock(),t.createElementBlock("div",hm,[t.createVNode(d1,{avatar:((D=e.attendant)==null?void 0:D.photo)||null,audio:u.value,onDuration:x,onCurrentTime:k},null,8,["avatar","audio"]),t.createElementVNode("main",pm,[t.createElementVNode("div",null,t.toDisplayString(A(h.value)),1),i.value||m.value?(t.openBlock(),t.createElementBlock("div",gm,t.toDisplayString(A(l.value)),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),u.value?(t.openBlock(),t.createElementBlock("button",{key:6,class:"rounded-full p-2 hover:bg-base-100",onClick:E[2]||(E[2]=F=>P())},E[8]||(E[8]=[t.createElementVNode("svg",{class:"size-5 text-base-200 rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):t.createCommentVNode("",!0)]))}}},[["__scopeId","data-v-b0d32109"]]);/*! Capacitor: https://capacitorjs.com/ - MIT License */var an;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(an||(an={}));class Wo extends Error{constructor(a,n,r){super(a),this.message=a,this.code=n,this.data=r}}const bm=e=>{var a,n;return e!=null&&e.androidBridge?"android":!((n=(a=e==null?void 0:e.webkit)===null||a===void 0?void 0:a.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},xm=e=>{const a=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},o=()=>a!==null?a.name:bm(e),i=()=>o()!=="web",s=f=>{const d=m.get(f);return!!(d!=null&&d.platforms.has(o())||l(f))},l=f=>{var d;return(d=n.PluginHeaders)===null||d===void 0?void 0:d.find(p=>p.name===f)},c=f=>e.console.error(f),m=new Map,u=(f,d={})=>{const p=m.get(f);if(p)return console.warn(`Capacitor plugin "${f}" already registered. Cannot register plugins twice.`),p.proxy;const h=o(),g=l(f);let b;const v=async()=>(!b&&h in d?b=typeof d[h]=="function"?b=await d[h]():b=d[h]:a!==null&&!b&&"web"in d&&(b=typeof d.web=="function"?b=await d.web():b=d.web),b),x=(S,B)=>{var G,P;if(g){const Q=g==null?void 0:g.methods.find(U=>B===U.name);if(Q)return Q.rtype==="promise"?U=>n.nativePromise(f,B.toString(),U):(U,E)=>n.nativeCallback(f,B.toString(),U,E);if(S)return(G=S[B])===null||G===void 0?void 0:G.bind(S)}else{if(S)return(P=S[B])===null||P===void 0?void 0:P.bind(S);throw new Wo(`"${f}" plugin is not implemented on ${h}`,an.Unimplemented)}},k=S=>{let B;const G=(...P)=>{const Q=v().then(U=>{const E=x(U,S);if(E){const D=E(...P);return B=D==null?void 0:D.remove,D}else throw new Wo(`"${f}.${S}()" is not implemented on ${h}`,an.Unimplemented)});return S==="addListener"&&(Q.remove=async()=>B()),Q};return G.toString=()=>`${S.toString()}() { [capacitor code] }`,Object.defineProperty(G,"name",{value:S,writable:!1,configurable:!1}),G},A=k("addListener"),_=k("removeListener"),T=(S,B)=>{const G=A({eventName:S},B),P=async()=>{const U=await G;_({eventName:S,callbackId:U},B)},Q=new Promise(U=>G.then(()=>U({remove:P})));return Q.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await P()},Q},N=new Proxy({},{get(S,B){switch(B){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return g?T:A;case"removeListener":return _;default:return k(B)}}});return r[f]=N,m.set(f,{name:f,proxy:N,platforms:new Set([...Object.keys(d),...g?[h]:[]])}),N};return n.convertFileSrc||(n.convertFileSrc=f=>f),n.getPlatform=o,n.handleError=c,n.isNativePlatform=i,n.isPluginAvailable=s,n.registerPlugin=u,n.Exception=Wo,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},pr=(e=>e.Capacitor=xm(e))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Bn=pr.registerPlugin;class gr{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(a,n){let r=!1;this.listeners[a]||(this.listeners[a]=[],r=!0),this.listeners[a].push(n);const i=this.windowListeners[a];i&&!i.registered&&this.addWindowListener(i),r&&this.sendRetainedArgumentsForEvent(a);const s=async()=>this.removeListener(a,n);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(const a in this.windowListeners)this.removeWindowListener(this.windowListeners[a]);this.windowListeners={}}notifyListeners(a,n,r){const o=this.listeners[a];if(!o){if(r){let i=this.retainedEventArguments[a];i||(i=[]),i.push(n),this.retainedEventArguments[a]=i}return}o.forEach(i=>i(n))}hasListeners(a){var n;return!!(!((n=this.listeners[a])===null||n===void 0)&&n.length)}registerWindowListener(a,n){this.windowListeners[n]={registered:!1,windowEventName:a,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(a="not implemented"){return new pr.Exception(a,an.Unimplemented)}unavailable(a="not available"){return new pr.Exception(a,an.Unavailable)}async removeListener(a,n){const r=this.listeners[a];if(!r)return;const o=r.indexOf(n);this.listeners[a].splice(o,1),this.listeners[a].length||this.removeWindowListener(this.windowListeners[a])}addWindowListener(a){window.addEventListener(a.windowEventName,a.handler),a.registered=!0}removeWindowListener(a){a&&(window.removeEventListener(a.windowEventName,a.handler),a.registered=!1)}sendRetainedArgumentsForEvent(a){const n=this.retainedEventArguments[a];n&&(delete this.retainedEventArguments[a],n.forEach(r=>{this.notifyListeners(a,r)}))}}const u1=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),f1=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class wm extends gr{async getCookies(){const a=document.cookie,n={};return a.split(";").forEach(r=>{if(r.length<=0)return;let[o,i]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");o=f1(o).trim(),i=f1(i).trim(),n[o]=i}),n}async setCookie(a){try{const n=u1(a.key),r=u1(a.value),o=`; expires=${(a.expires||"").replace("expires=","")}`,i=(a.path||"/").replace("path=",""),s=a.url!=null&&a.url.length>0?`domain=${a.url}`:"";document.cookie=`${n}=${r||""}${o}; path=${i}; ${s};`}catch(n){return Promise.reject(n)}}async deleteCookie(a){try{document.cookie=`${a.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const a=document.cookie.split(";")||[];for(const n of a)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(a){return Promise.reject(a)}}async clearAllCookies(){try{await this.clearCookies()}catch(a){return Promise.reject(a)}}}Bn("CapacitorCookies",{web:()=>new wm});const vm=async e=>new Promise((a,n)=>{const r=new FileReader;r.onload=()=>{const o=r.result;a(o.indexOf(",")>=0?o.split(",")[1]:o)},r.onerror=o=>n(o),r.readAsDataURL(e)}),Em=(e={})=>{const a=Object.keys(e);return Object.keys(e).map(o=>o.toLocaleLowerCase()).reduce((o,i,s)=>(o[i]=e[a[s]],o),{})},Cm=(e,a=!0)=>e?Object.entries(e).reduce((r,o)=>{const[i,s]=o;let l,c;return Array.isArray(s)?(c="",s.forEach(m=>{l=a?encodeURIComponent(m):m,c+=`${i}=${l}&`}),c.slice(0,-1)):(l=a?encodeURIComponent(s):s,c=`${i}=${l}`),`${r}&${c}`},"").substr(1):null,m1=(e,a={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},a),o=Em(e.headers)["content-type"]||"";if(typeof e.data=="string")n.body=e.data;else if(o.includes("application/x-www-form-urlencoded")){const i=new URLSearchParams;for(const[s,l]of Object.entries(e.data||{}))i.set(s,l);n.body=i.toString()}else if(o.includes("multipart/form-data")||e.data instanceof FormData){const i=new FormData;if(e.data instanceof FormData)e.data.forEach((l,c)=>{i.append(c,l)});else for(const l of Object.keys(e.data))i.append(l,e.data[l]);n.body=i;const s=new Headers(n.headers);s.delete("content-type"),n.headers=s}else(o.includes("application/json")||typeof e.data=="object")&&(n.body=JSON.stringify(e.data));return n};class Sm extends gr{async request(a){const n=m1(a,a.webFetchExtra),r=Cm(a.params,a.shouldEncodeUrlParams),o=r?`${a.url}?${r}`:a.url,i=await fetch(o,n),s=i.headers.get("content-type")||"";let{responseType:l="text"}=i.ok?a:{};s.includes("application/json")&&(l="json");let c,m;switch(l){case"arraybuffer":case"blob":m=await i.blob(),c=await vm(m);break;case"json":c=await i.json();break;case"document":case"text":default:c=await i.text()}const u={};return i.headers.forEach((f,d)=>{u[d]=f}),{data:c,headers:u,status:i.status,url:i.url}}async get(a){return this.request(Object.assign(Object.assign({},a),{method:"GET"}))}async post(a){return this.request(Object.assign(Object.assign({},a),{method:"POST"}))}async put(a){return this.request(Object.assign(Object.assign({},a),{method:"PUT"}))}async patch(a){return this.request(Object.assign(Object.assign({},a),{method:"PATCH"}))}async delete(a){return this.request(Object.assign(Object.assign({},a),{method:"DELETE"}))}}Bn("CapacitorHttp",{web:()=>new Sm});const yr={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"},Pa=Bn("VoiceRecorder",{web:()=>Promise.resolve().then(()=>Dv).then(e=>new e.VoiceRecorderWeb)});function h1(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{d:"M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z"}),t.createElementVNode("path",{d:"M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z"})])}function Mm(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"})])}function p1(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function Bm(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z","clip-rule":"evenodd"})])}function Am(e,a){return t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z","clip-rule":"evenodd"})])}const Vm={key:0,class:"bg-base-300 absolute bottom-14 left-0 z-50 flex w-full items-center justify-between rounded-t-2xl p-3"},_m={class:"flex h-11 items-center"},Nm={key:0},Dm={key:0},Tm={key:1,class:"flex w-full justify-between rounded-lg border-2 border-gray-500 p-2 px-4"},Pm={key:1},Om={class:"flex w-full items-center justify-between gap-2"},Fm=["disabled"],Lm=["disabled"],$m={key:1,class:"loader-mobile-audio-recorder"},Rm=je({__name:"mobileAudioRecorder",props:{disableBtn:{type:Boolean,default:!1},sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","paused"],setup(e,{emit:a}){const n=a,r=e,o=t.ref(null),i=t.ref(!1),s=t.ref(0),l=t.ref(null),c=t.ref([]),m=t.ref(null),u=t.ref("00:00"),f=t.ref(!1),d=t.ref(null);let p=0;t.onUnmounted(()=>{N()});const h=()=>{let E;try{if(c.value.length>0){const D=c.value.map(oe=>{const V=atob(oe),w=new Array(V.length);for(let K=0;K<V.length;K++)w[K]=V.charCodeAt(K);const X=new Uint8Array(w);return new Blob([X],{type:m.value})}),F=new Blob(D,{type:m.value}),q=URL.createObjectURL(F);return E=new Audio(q),E}}catch(D){console.error("Erro ao criar o objeto Audio:",D)}},g=E=>{E==="play"?(d.value.currentTime=p,d.value.oncanplay=()=>{d.value.play().then(()=>{f.value=!0}).catch(D=>{console.error("Erro ao tentar reproduzir o áudio:",D)})},d.value.onended=()=>{f.value=!1,p=0},d.value.onerror=D=>{console.error("Erro ao carregar o áudio:",D)},d.value.load()):E==="pause"&&(d.value&&!d.value.paused?(f.value=!1,d.value.pause()):console.error("Nenhum áudio está tocando no momento"))},b=E=>{const D=Math.floor(E/60),F=(E%60).toFixed(0),q=D.toString().padStart(2,"0"),oe=F.toString().padStart(2,"0");return`${q}:${oe}`},v=()=>{s.value++,u.value=b(s.value)},x=()=>{l.value&&clearInterval(l.value),l.value=setInterval(v,1e3)},k=()=>{l.value&&clearInterval(l.value)},A=async()=>{let{value:E}=await Pa.hasAudioRecordingPermission();if(E)try{Pa.startRecording(),n("recording",!0),o.value="started",x()}catch(D){console.error(D)}else Jn({group:"error",title:"Erro",text:"Permissões de microfone desativadas, ajuste nas configurações do dispositivo"},4e3)},_=()=>{try{n("paused",!0),o.value="paused",N(),k()}catch(E){console.error(E)}},T=()=>{try{d.value&&(d.value.pause(),f.value=!1),n("paused",!1),o.value="started",A(),x()}catch(E){console.error(E)}},N=async()=>{(await Pa.getCurrentStatus()).status!=="NONE"&&await Pa.stopRecording().then(D=>{m.value=D.value.mimeType,c.value.push(D.value.recordDataBase64),d.value=h(),k()})},S=async()=>{const E=await Pa.getCurrentStatus();E.status==="RECORDING"?(await N(),n("paused",!1),n("recording",!1),o.value=null,c.value=[],i.value=!1,s.value=0,u.value=b(0)):E.status==="NONE"&&(n("recording",!1),n("paused",!1),o.value=null,i.value=!1,c.value=[],s.value=0,u.value=b(0))},B=async()=>{await Pa.getCurrentStatus(),d.value&&(d.value.pause(),f.value=!1),S()};function G(E){const D=atob(E),F=D.length,q=new Uint8Array(F);for(let oe=0;oe<F;oe++)q[oe]=D.charCodeAt(oe);return q}function P(E){let D=E.reduce((oe,V)=>oe+V.length,0),F=new Uint8Array(D),q=0;return E.forEach(oe=>{F.set(oe,q),q+=oe.length}),F}function Q(E){let D="",F=E.byteLength;for(let q=0;q<F;q++)D+=String.fromCharCode(E[q]);return btoa(D)}const U=async()=>{i.value=!0,(await Pa.getCurrentStatus()).status==="RECORDING"&&await N();try{const D=c.value.map(G),F=P(D),q=Q(F),oe=`data:${m.value};base64,${q}`,w={type:"file",media:{name:"audio",mimetype:(X=>X?X.split(";")[0].split(":")[1]:null)(oe),data:oe}};console.log("payload",JSON.stringify(w)),await r.sendAudioToAttendant(r.selectedAttendant.id,w,r.attendant,!0),S()}catch(D){S(),console.error("Erro ao enviar áudio:",D),Jn({group:"error",title:"Erro",text:"Erro ao enviar áudio, tente novamente."},4e3);return}};return(E,D)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.Transition,{name:"bounce"},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createElementBlock("div",Vm,[t.createElementVNode("div",_m,[o.value!="paused"?(t.openBlock(),t.createElementBlock("section",Nm,"Gravando")):t.createCommentVNode("",!0)]),o.value!="paused"?(t.openBlock(),t.createElementBlock("section",Dm,t.toDisplayString(u.value),1)):t.createCommentVNode("",!0),o.value==="paused"?(t.openBlock(),t.createElementBlock("section",Tm,[f.value?(t.openBlock(),t.createElementBlock("button",Pm,[t.createVNode(t.unref(p1),{class:"size-6 cursor-pointer",onClick:D[1]||(D[1]=F=>g("pause"))})])):(t.openBlock(),t.createElementBlock("button",{key:0,onClick:D[0]||(D[0]=F=>g("play"))},[t.createVNode(t.unref(Bm),{class:"size-6 cursor-pointer"})])),D[7]||(D[7]=t.createElementVNode("div",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(u.value),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),_:1}),t.createElementVNode("div",Om,[o.value?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:D[2]||(D[2]=F=>B())},[t.createVNode(t.unref(Am),{class:"ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md"})])):t.createCommentVNode("",!0),o.value==="paused"?(t.openBlock(),t.createElementBlock("button",{key:1,onClick:D[3]||(D[3]=F=>T())},[t.createVNode(t.unref(h1),{class:"size-7 cursor-pointer text-green-500/90 drop-shadow-md"})])):t.createCommentVNode("",!0),o.value==="started"?(t.openBlock(),t.createElementBlock("button",{key:2,onClick:D[4]||(D[4]=F=>_())},[t.createVNode(t.unref(p1),{class:"size-7 cursor-pointer text-green-500 drop-shadow-md"})])):t.createCommentVNode("",!0),o.value?(t.openBlock(),t.createElementBlock("button",{key:4,disabled:i.value,class:"mr-2 flex items-center justify-center rounded-full bg-primary p-2 drop-shadow-md",onClick:D[6]||(D[6]=F=>U())},[i.value?(t.openBlock(),t.createElementBlock("span",$m)):(t.openBlock(),t.createBlock(t.unref(Mm),{key:0,class:"size-5 cursor-pointer"}))],8,Lm)):(t.openBlock(),t.createElementBlock("button",{key:3,class:"rounded-full bg-primary p-2 send-audio-button",disabled:e.disableBtn,onClick:D[5]||(D[5]=F=>A())},[t.createVNode(t.unref(h1),{class:"hover:text-white size-5"})],8,Fm))])],64))}},[["__scopeId","data-v-06811026"]]),Hm={class:"messages-container bg-base-300"},zm={class:"header-intern bg-base-300"},Im={class:"atendente-name"},Gm={key:0,class:"date-separator bg-base-100/50"},jm={class:"date-separator-text"},qm={key:0,class:"dropdown-container-internal-messages"},Wm=["onClick"],Ym={class:"message-time"},Um={key:1},Xm={class:"message-time"},Zm={class:"input-area"},g1=je({__name:"ChatMessages",props:{isMobile:{type:Boolean,default:!1},selectedAtendente:{type:Object,required:!0},attendant:{required:!0},loadMessagesForAtendente:{type:Function,required:!0},sendMessageToAtendente:{type:Function,required:!0},hasNextPageForAtendente:{type:Function,required:!0},downloadFilesMobile:{type:Function},openMobilePdf:{type:Function}},emits:["send-files","voltar"],setup(e,{emit:a}){const n=e,r=a,o=t.ref(""),i=t.ref(null),s=t.ref(!1),l=t.ref(!1),c=t.ref(!1),m=t.computed(()=>{var S;return((S=n.selectedAtendente)==null?void 0:S.messages)||[]}),u=S=>{n.isMobile&&n.openMobilePdf(S)},f=(S,B)=>{if(S)if(n.isMobile){const P=S.mimetype.split("/")[1],Q={url:S.mimetype==="image/svg+xml"?S.data.replace("+","%2B"):S.data,type:P,title:S.name};n.downloadFilesMobile(Q,B)}else N(S.data,B)},d=t.computed(()=>n.hasNextPageForAtendente(n.selectedAtendente.id)),p=S=>{const B=new Date(S),G=B.getHours(),P=B.getMinutes();return`${G.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`},h=S=>{const B=new Date(S);return k7(B)?"Hoje":x7(B)?"Ontem":y7(B)?Sl(B,"EEEE",{locale:Ml}):Sl(B,"dd 'de' MMMM 'de' yyyy",{locale:Ml})},g=S=>{if(S===0)return!0;const B=new Date(m.value[S].created_at),G=new Date(m.value[S-1].created_at);return B.toDateString()!==G.toDateString()},b=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),k())},v=()=>{i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},x=async S=>{try{if(!d.value){S.complete();return}const B=i.value.scrollHeight,G=i.value.scrollTop;await n.loadMessagesForAtendente(n.selectedAtendente.id),await t.nextTick(),i.value.scrollTop=i.value.scrollHeight-B+G-32,S.loaded()}catch(B){console.error(B),S.complete()}},k=async()=>{if(o.value.trim()!=="")try{const S=JSON.parse(JSON.stringify(o.value));o.value="",await n.sendMessageToAtendente(n.selectedAtendente.id,S,n.attendant),await t.nextTick(),v()}catch(S){console.error("Erro ao enviar mensagem:",S)}},A=()=>{k();const S=document.querySelector(".send-button");S.classList.add("clicked"),setTimeout(()=>{S.classList.remove("clicked")},200)},_=()=>{r("send-files");const S=document.querySelector(".send-files-button");S.classList.add("clicked"),setTimeout(()=>{S.classList.remove("clicked")},200)};t.onMounted(async()=>{await t.nextTick(()=>{v(),s.value=!0})}),t.watch(()=>{var S;return(S=m.value)==null?void 0:S.length},(S,B)=>{m.value&&T()&&setTimeout(()=>{i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},100)});function T(){const B=i.value.scrollTop+i.value.clientHeight;return i.value.scrollHeight-B<=80}const N=async(S,B="undefined")=>{const G=S.endsWith("svg+xml");try{const P=await fetch(G?S.replace("+","%2B"):S);if(!P.ok)throw new Error("Erro ao baixar o arquivo");const Q=P.headers.get("Content-Type"),U=await P.arrayBuffer(),E=Q&&Q!=="application/octet-stream"?Q:"audio/mp3",D=new Blob([U],{type:E}),F=window.URL.createObjectURL(D),q=document.createElement("a");q.href=F;const oe=Q.endsWith("aac")?`${B}.mp3`:B;q.download=oe,document.body.appendChild(q),q.click(),document.body.removeChild(q),window.URL.revokeObjectURL(F)}catch(P){console.error("Erro no download:",P)}};return(S,B)=>{const G=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("div",Hm,[t.createElementVNode("div",zm,[t.createElementVNode("button",{onClick:B[0]||(B[0]=P=>r("voltar")),class:"back-button"},B[4]||(B[4]=[t.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{d:"M14.502 7.046h-2.5v-.928a2.122 2.122 0 0 0-1.199-1.954 1.827 1.827 0 0 0-1.984.311L3.71 8.965a2.2 2.2 0 0 0 0 3.24L8.82 16.7a1.829 1.829 0 0 0 1.985.31 2.121 2.121 0 0 0 1.199-1.959v-.928h1a2.025 2.025 0 0 1 1.999 2.047V19a1 1 0 0 0 1.275.961 6.59 6.59 0 0 0 4.662-7.22 6.593 6.593 0 0 0-6.437-5.695Z"})],-1)])),t.createVNode(Eo,{url:e.selectedAtendente.photo},null,8,["url"]),t.createElementVNode("h3",Im,t.toDisplayString(e.selectedAtendente.name),1)]),t.createElementVNode("div",{class:"message-area",ref_key:"chatArea",ref:i},[!c.value&&d.value&&s.value?(t.openBlock(),t.createBlock(t.unref(Co),{key:0,onInfinite:x,distance:30,top:!0,direction:"top",class:"p-3"},{complete:t.withCtx(()=>B[5]||(B[5]=[t.createElementVNode("span",null,null,-1)])),spinner:t.withCtx(()=>B[6]||(B[6]=[t.createElementVNode("div",{class:"loading"},[t.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})])],-1)])),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(P,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q},[g(Q)?(t.openBlock(),t.createElementBlock("div",Gm,[B[7]||(B[7]=t.createElementVNode("div",{class:"date-separator-line"},null,-1)),t.createElementVNode("div",jm,t.toDisplayString(h(P.created_at)),1),B[8]||(B[8]=t.createElementVNode("div",{class:"date-separator-line"},null,-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["message",{me:P.sender.id===e.attendant.id,"not-me":P.sender.id!==e.attendant.id,"new-message":Q===m.value.length-1}])},[t.createElementVNode("div",{class:t.normalizeClass(["relative",P.sender.id===e.attendant.id?"text-right":"text-left"])},[P.content&&P.content.media&&P.content.media.data?(t.openBlock(),t.createElementBlock("div",qm,[t.createVNode(G,{hover:"",class:"label-popper-internal-messages",placement:"left"},{content:t.withCtx(()=>[t.createElementVNode("button",{class:"download-button-internal-messages",onClick:U=>f(P.content.media,P.content.media.name)}," Baixar ",8,Wm)]),default:t.withCtx(()=>[B[9]||(B[9]=t.createElementVNode("button",{class:"dropdown-toggle-internal-messages"},[t.createElementVNode("svg",{class:"dropdown-icon-internal-messages","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"})])],-1))]),_:2,__:[9]},1024)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["shadow shadow-gray-900 dark:shadow-gray-500",["message-content",{me:P.sender.id===e.attendant.id,"not-me":P.sender.id!==e.attendant.id}]])},[P.content&&P.content.media&&P.content.media.data?(t.openBlock(),t.createBlock(qo,{key:0,mode:"message",isMobile:e.isMobile,onDownload:U=>f(P.content.media,P.content.media.name),onOpenMobilePdf:U=>u(P.content.media.data),avatar:P.sender.id===e.attendant.id?e.attendant.photo:P.sender.photo,fileName:P.content.media.name,base64:P.content.media.data,mimetype:P.content.media.mimetype},{"content-message":t.withCtx(()=>[t.createElementVNode("p",null,t.toDisplayString(P.content.content),1)]),"time-message":t.withCtx(()=>[t.createElementVNode("div",Ym,t.toDisplayString(p(P.created_at)),1)]),_:2},1032,["isMobile","onDownload","onOpenMobilePdf","avatar","fileName","base64","mimetype"])):(t.openBlock(),t.createElementBlock("section",Um,[t.createElementVNode("p",null,t.toDisplayString(P.content.content),1),t.createElementVNode("div",Xm,t.toDisplayString(p(P.created_at)),1)]))],2)],2)],2)]))),128))])],512),t.createElementVNode("div",Zm,[t.withDirectives(t.createElementVNode("textarea",{type:"text","onUpdate:modelValue":B[1]||(B[1]=P=>o.value=P),class:"message-input bg-base-300 focus:ring-0",placeholder:"Digite sua mensagem...",onKeydown:b},null,544),[[t.vModelText,o.value]]),t.createElementVNode("button",{onClick:_,class:"send-files-button"},B[10]||(B[10]=[t.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 8v8a5 5 0 1 0 10 0V6.5a3.5 3.5 0 1 0-7 0V15a2 2 0 0 0 4 0V8"})],-1)])),o.value.length>0?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:A,class:"send-button"},B[11]||(B[11]=[t.createElementVNode("svg",{class:"size-5 text-white rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):(t.openBlock(),t.createElementBlock("section",{key:1,class:t.normalizeClass(["bg-base-300",["send-audio-button",{recording:l.value}]])},[e.isMobile?(t.openBlock(),t.createBlock(Rm,{key:0,attendant:e.attendant,selectedAttendant:e.selectedAtendente,sendAudioToAttendant:e.sendMessageToAtendente,onRecording:B[2]||(B[2]=P=>l.value=P)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"])):(t.openBlock(),t.createBlock(km,{key:1,"can-send-message":!0,attendant:e.attendant,selectedAttendant:e.selectedAtendente,sendAudioToAttendant:e.sendMessageToAtendente,onRecording:B[3]||(B[3]=P=>l.value=P)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"]))],2))])])}}},[["__scopeId","data-v-e572b8f0"]]),Qm={},Km={class:"loading"};function Jm(e,a){return t.openBlock(),t.createElementBlock("div",Km,a[0]||(a[0]=[t.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-30",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)]))}const y1=je(Qm,[["render",Jm],["__scopeId","data-v-bd52ddea"]]);/**
|
|
93
93
|
* Vue 3 Carousel 0.16.0
|
|
94
94
|
* (c) 2025
|
|
95
95
|
* @license MIT
|
|
96
|
-
*/const k1=["viewport","carousel"],kr={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},b1=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],e8={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},x1=["slide","fade"],w1=["center","start","end","center-even","center-odd"],v1=10,br=.08,at={autoplay:0,breakpointMode:k1[0],breakpoints:void 0,dir:b1[0],enabled:!0,gap:0,height:"auto",i18n:e8,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:x1[0],snapAlign:w1[0],touchDrag:!0,transition:300,wrapAround:!1},Oa=Symbol("carousel"),t8=e=>{const a=t.shallowReactive([]),n=r=>{r!==void 0?a.slice(r).forEach((o,i)=>{var s;(s=o.exposed)===null||s===void 0||s.setIndex(r+i)}):a.forEach((o,i)=>{var s;(s=o.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{a.splice(0,a.length)},getSlides:()=>a,registerSlide:(r,o)=>{if(!r||r.props.isClone)return;const i=o??a.length;a.splice(i,0,r),n(i),e("slide-registered",{slide:r,index:i})},unregisterSlide:r=>{const o=a.indexOf(r);o!==-1&&(e("slide-unregistered",{slide:r,index:o}),a.splice(o,1),n(o))}}};function a8(e){return e.length===0?0:e.reduce((n,r)=>n+r,0)/e.length}function E1({slides:e,position:a,toShow:n}){const r=[],o=a==="before",i=o?-n:0,s=o?0:n;if(e.length<=0)return r;for(let l=i;l<s;l++){const m={index:o?l:l+e.length,isClone:!0,id:void 0,key:`clone-${a}-${l}`},u=e[(l%e.length+e.length)%e.length].vnode,f=t.cloneVNode(u,m);f.el=null,r.push(f)}return r}const n8='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function C1(e){if(!e.el||!(e.el instanceof Element))return;const a=e.el.querySelectorAll(n8);for(const n of a)n instanceof HTMLElement&&!n.hasAttribute("disabled")&&n.getAttribute("aria-hidden")!=="true"&&n.setAttribute("tabindex","-1")}function r8(e,a){return Object.keys(e).filter(n=>!a.includes(n)).reduce((n,r)=>(n[r]=e[r],n),{})}function o8(e){const{isVertical:a,isReversed:n,dragged:r,effectiveSlideSize:o,threshold:i}=e,s=a?r.y:r.x;if(s===0)return 0;const l=s/o,c=Math.abs(l);if(c<i)return 0;const m=c<1?Math.sign(l):Math.round(l);return n?m:-m}function aa({val:e,max:a,min:n}){return a<n?e:Math.min(Math.max(e,isNaN(n)?e:n),isNaN(a)?e:a)}function i8(e){const{transform:a}=window.getComputedStyle(e);return a.split(/[(,)]/).slice(1,-1).map(n=>parseFloat(n))}function s8(e){let a=1,n=1;return e.forEach(r=>{const o=i8(r);o.length===6&&(a/=o[0],n/=o[3])}),{widthMultiplier:a,heightMultiplier:n}}function l8(e,a){switch(e){case"start":return 0;case"center":case"center-odd":return(a-1)/2;case"center-even":return(a-2)/2;case"end":return a-1;default:return 0}}function c8(e,a,n){switch(e){case"start":return 0;case"center":case"center-odd":return(n-a)/2;case"center-even":return n/2-a;case"end":return n-a;default:return 0}}function Yo({slideSize:e,viewportSize:a,align:n,itemsToShow:r}){return r!==void 0?l8(n,r):e!==void 0&&a!==void 0?c8(n,e,a):0}function S1(e="",a={}){return Object.entries(a).reduce((n,[r,o])=>n.replace(`{${r}}`,String(o)),e)}function M1({val:e,max:a,min:n=0}){const r=a-n+1;return((e-n)%r+r)%r+n}function Uo(e,a=0){let n=!1,r=0,o=null;function i(...s){if(n)return;n=!0;const l=()=>{o=requestAnimationFrame(c=>{c-r>a?(r=c,e(...s),n=!1):l()})};l()}return i.cancel=()=>{o&&(cancelAnimationFrame(o),o=null,n=!1)},i}function xr(e,a="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${a}`:e}const d8=t.defineComponent({name:"CarouselAria",setup(){const e=t.inject(Oa);return e?()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},S1(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function u8(e){let a=!1;const n={x:0,y:0},r=t.reactive({x:0,y:0}),o=t.ref(!1),{isSliding:i}=e,s=t.computed(()=>typeof i=="boolean"?i:i.value),l=u=>{var f;const d=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(d)||s.value||(a=u.type==="touchstart",a&&u.touches.length>1))return;if(!a&&(u.preventDefault(),u.button!==0))return;n.x=a?u.touches[0].clientX:u.clientX,n.y=a?u.touches[0].clientY:u.clientY;const p=a?"touchmove":"mousemove",h=a?"touchend":"mouseup";document.addEventListener(p,c,{passive:!1}),document.addEventListener(h,m,{passive:!0}),(f=e.onDragStart)===null||f===void 0||f.call(e)},c=Uo(u=>{var f;if(a&&u.touches.length>1)return;o.value=!0;const d=a?u.touches[0].clientX:u.clientX,p=a?u.touches[0].clientY:u.clientY;r.x=d-n.x,r.y=p-n.y,(f=e.onDrag)===null||f===void 0||f.call(e,{deltaX:r.x,deltaY:r.y,isTouch:a})}),m=()=>{var u;c.cancel();const f=Math.abs(r.x)+Math.abs(r.y);!a&&f>10&&window.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation()},{once:!0,capture:!0}),(u=e.onDragEnd)===null||u===void 0||u.call(e),r.x=0,r.y=0,o.value=!1;const d=a?"touchmove":"mousemove",p=a?"touchend":"mouseup";document.removeEventListener(d,c),document.removeEventListener(p,m)};return{dragged:r,isDragging:o,handleDragStart:l}}function f8(){const e=t.ref(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function m8(e){const{isVertical:a,isSliding:n,config:r}=e,o=t.computed(()=>typeof a=="boolean"?a:a.value),i=t.computed(()=>typeof n=="boolean"?n:n.value);return{handleScroll:l=>{var c,m;if(l.preventDefault(),!r.mouseWheel||i.value)return;const u=typeof r.mouseWheel=="object"&&(c=r.mouseWheel.threshold)!==null&&c!==void 0?c:v1,f=Math.abs(l.deltaY)>u?l.deltaY:0,d=Math.abs(l.deltaX)>u?l.deltaX:0;if(f===0&&d===0)return;const p=o.value?f:d,g=(p!==0?p:o.value?d:f)>0;(m=e.onWheel)===null||m===void 0||m.call(e,{deltaX:d,deltaY:f,isScrollingForward:g})}}}const h8={autoplay:{default:at.autoplay,type:Number},breakpoints:{default:at.breakpoints,type:Object},breakpointMode:{default:at.breakpointMode,validator(e){return k1.includes(e)}},clamp:{type:Boolean},dir:{type:String,default:at.dir,validator(e,a){if(!b1.includes(e))return!1;const n=e in kr?kr[e]:e;return["ttb","btt"].includes(n)&&(!a.height||a.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${e}" is not supported with height "auto".`),!0}},enabled:{default:at.enabled,type:Boolean},gap:{default:at.gap,type:Number},height:{default:at.height,type:[Number,String]},i18n:{default:at.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:at.itemsToScroll,type:Number},itemsToShow:{default:at.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:at.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:at.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:at.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:at.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(e,a){return e&&a.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:at.slideEffect,validator(e){return x1.includes(e)}},snapAlign:{default:at.snapAlign,validator(e){return w1.includes(e)}},touchDrag:{default:at.touchDrag,type:[Boolean,Object]},transition:{default:at.transition,type:Number},wrapAround:{default:at.wrapAround,type:Boolean}},p8=t.defineComponent({name:"VueCarousel",props:h8,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:a,emit:n,expose:r}){var o;const i=t8(n),s=i.getSlides(),l=t.computed(()=>s.length),c=t.ref(null),m=t.ref(null),u=t.ref(0),f=t.computed(()=>Object.assign(Object.assign(Object.assign({},at),r8(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},at.i18n),e.i18n)})),d=t.shallowReactive(Object.assign({},f.value)),p=t.ref((o=e.modelValue)!==null&&o!==void 0?o:0),h=t.ref(p.value);t.watch(p,R=>h.value=R);const g=t.ref(0),k=t.computed(()=>Math.ceil((l.value-1)/2)),v=t.computed(()=>l.value-1),x=t.computed(()=>0);let b=null,A=null,_=null;const O=t.computed(()=>u.value+d.gap),N=t.computed(()=>{const R=d.dir||"ltr";return R in kr?kr[R]:R}),S=t.computed(()=>["rtl","btt"].includes(N.value)),B=t.computed(()=>["ttb","btt"].includes(N.value)),G=t.computed(()=>d.itemsToShow==="auto"),T=t.computed(()=>B.value?"height":"width");function Q(){var R;if(!J.value)return;const $=(f.value.breakpointMode==="carousel"?(R=c.value)===null||R===void 0?void 0:R.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,ae=Object.keys(e.breakpoints||{}).map(xe=>Number(xe)).sort((xe,Ae)=>+Ae-+xe),le={};ae.some(xe=>$>=xe?(Object.assign(le,e.breakpoints[xe]),le.i18n&&Object.assign(le.i18n,f.value.i18n,e.breakpoints[xe].i18n),!0):!1),Object.assign(d,f.value,le),G.value||(d.itemsToShow=aa({val:Number(d.itemsToShow),max:e.clamp?l.value:1/0,min:1}))}const U=Uo(()=>{Q(),w(),V()}),E=t.shallowReactive(new Set),D=t.ref([]);function F({widthMultiplier:R,heightMultiplier:$}){D.value=s.map(ae=>{var le;const xe=(le=ae.exposed)===null||le===void 0?void 0:le.getBoundingRect();return{width:xe.width*R,height:xe.height*$}})}const q=t.ref({width:0,height:0});function oe({widthMultiplier:R,heightMultiplier:$}){var ae;const le=((ae=m.value)===null||ae===void 0?void 0:ae.getBoundingClientRect())||{width:0,height:0};q.value={width:le.width*R,height:le.height*$}}function V(){if(!m.value)return;const R=s8(E);if(oe(R),F(R),G.value)u.value=a8(D.value.map($=>$[T.value]));else{const $=Number(d.itemsToShow),ae=($-1)*d.gap;u.value=(q.value[T.value]-ae)/$}}function w(){!d.wrapAround&&l.value>0&&(p.value=aa({val:p.value,max:v.value,min:x.value}))}const X=t.computed(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);t.watchEffect(()=>w()),t.watchEffect(()=>{V()});let K;const W=R=>{const $=R.target;if(!(!($!=null&&$.contains(c.value))||Array.isArray(X.value)&&X.value.includes(R.animationName))&&(E.add($),!K)){const ae=()=>{K=requestAnimationFrame(()=>{V(),ae()})};ae()}},M=R=>{const $=R.target;$&&E.delete($),K&&E.size===0&&(cancelAnimationFrame(K),V())},J=t.ref(!1);typeof document<"u"&&t.watchEffect(()=>{J.value&&X.value!==!1?(document.addEventListener("animationstart",W),document.addEventListener("animationend",M)):(document.removeEventListener("animationstart",W),document.removeEventListener("animationend",M))}),t.onMounted(()=>{J.value=!0,Q(),C(),c.value&&(_=new ResizeObserver(U),_.observe(c.value)),n("init")}),t.onBeforeUnmount(()=>{J.value=!1,i.cleanup(),A&&clearTimeout(A),K&&cancelAnimationFrame(K),b&&clearInterval(b),_&&(_.disconnect(),_=null),typeof document<"u"&&fe(),c.value&&(c.value.removeEventListener("transitionend",V),c.value.removeEventListener("animationiteration",V))});const{isHover:ce,handleMouseEnter:z,handleMouseLeave:he}=f8(),ee=Uo(R=>{if(!R.ctrlKey)switch(R.key){case"ArrowLeft":case"ArrowUp":B.value===R.key.endsWith("Up")&&(S.value?me(!0):Me(!0));break;case"ArrowRight":case"ArrowDown":B.value===R.key.endsWith("Down")&&(S.value?Me(!0):me(!0));break}},200),fe=()=>{document.removeEventListener("keydown",ee)},L=()=>{document.addEventListener("keydown",ee)};function C(){!d.autoplay||d.autoplay<=0||(b=setInterval(()=>{d.pauseAutoplayOnHover&&ce.value||me()},d.autoplay))}function y(){P(),C()}function P(){b&&(clearInterval(b),b=null)}const I=t.ref(!1),H=({deltaX:R,deltaY:$,isTouch:ae})=>{var le,xe,Ae,De;n("drag",{deltaX:R,deltaY:$});const Pe=ae?typeof d.touchDrag=="object"&&(xe=(le=d.touchDrag)===null||le===void 0?void 0:le.threshold)!==null&&xe!==void 0?xe:br:typeof d.mouseDrag=="object"&&(De=(Ae=d.mouseDrag)===null||Ae===void 0?void 0:Ae.threshold)!==null&&De!==void 0?De:br,qe=o8({isVertical:B.value,isReversed:S.value,dragged:{x:R,y:$},effectiveSlideSize:O.value,threshold:Pe});qe!==0&&(h.value=d.wrapAround?p.value+qe:aa({val:p.value+qe,max:v.value,min:x.value}))},te=()=>_e(h.value),{dragged:j,isDragging:ne,handleDragStart:ue}=u8({isSliding:I,onDrag:H,onDragEnd:te}),ye=({deltaX:R,deltaY:$,isScrollingForward:ae})=>{n("wheel",{deltaX:R,deltaY:$}),ae?S.value?Me():me():S.value?me():Me()},{handleScroll:be}=m8({isVertical:B,isSliding:I,config:d,onWheel:ye});function me(R=!1){_e(p.value+d.itemsToScroll,R)}function Me(R=!1){_e(p.value-d.itemsToScroll,R)}function _e(R,$=!1){if(!$&&I.value)return;const ae=(d.wrapAround?M1:aa)({val:R,max:v.value,min:x.value});if(p.value===ae)return;g.value=p.value,n("slide-start",{slidingToIndex:R,currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),P(),I.value=!0,p.value=R,ae!==R&&Se.pause(),n("update:modelValue",ae),A=setTimeout(()=>{d.wrapAround&&ae!==R&&(Se.resume(),p.value=ae,n("loop",{currentSlideIndex:p.value,slidingToIndex:R})),n("slide-end",{currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),I.value=!1,y()},d.transition)}function Ne(){Q(),w(),V(),y()}t.watch(()=>[f.value,e.breakpoints],()=>Q(),{deep:!0}),t.watch(()=>e.autoplay,()=>y());const Se=t.watch(()=>e.modelValue,R=>{R!==p.value&&_e(Number(R),!0)});n("before-init");const Le=t.computed(()=>{if(!d.wrapAround)return{before:0,after:0};if(G.value)return{before:s.length,after:s.length};const R=Number(d.itemsToShow),$=Math.ceil(R+(d.itemsToScroll-1)),ae=$-h.value,le=$-(l.value-(h.value+1));return{before:Math.max(0,ae),after:Math.max(0,le)}}),Be=t.computed(()=>Le.value.before?G.value?D.value.slice(-1*Le.value.before).reduce((R,$)=>R+$[T.value]+d.gap,0)*-1:Le.value.before*O.value*-1:0),Z=t.computed(()=>{var R;if(G.value){const $=(p.value%s.length+s.length)%s.length;return Yo({slideSize:(R=D.value[$])===null||R===void 0?void 0:R[T.value],viewportSize:q.value[T.value],align:d.snapAlign})}return Yo({align:d.snapAlign,itemsToShow:+d.itemsToShow})}),re=t.computed(()=>{let R=0;if(G.value){if(p.value<0?R=D.value.slice(p.value).reduce(($,ae)=>$+ae[T.value]+d.gap,0)*-1:R=D.value.slice(0,p.value).reduce(($,ae)=>$+ae[T.value]+d.gap,0),R-=Z.value,!d.wrapAround){const $=D.value.reduce((ae,le)=>ae+le[T.value]+d.gap,0)-q.value[T.value]-d.gap;R=aa({val:R,max:$,min:0})}}else{let $=p.value-Z.value;d.wrapAround||($=aa({val:$,max:l.value-+d.itemsToShow,min:0})),R=$*O.value}return R*(S.value?1:-1)}),ie=t.computed(()=>{var R,$;if(!G.value){const xe=p.value-Z.value;return d.wrapAround?{min:Math.floor(xe),max:Math.ceil(xe+Number(d.itemsToShow)-1)}:{min:Math.floor(aa({val:xe,max:l.value-Number(d.itemsToShow),min:0})),max:Math.ceil(aa({val:xe+Number(d.itemsToShow)-1,max:l.value-1,min:0}))}}let ae=0;{let xe=0,Ae=0-Le.value.before;const De=Math.abs(re.value+Be.value);for(;xe<=De;){const Pe=(Ae%s.length+s.length)%s.length;xe+=((R=D.value[Pe])===null||R===void 0?void 0:R[T.value])+d.gap,Ae++}ae=Ae-1}let le=0;{let xe=ae,Ae=0;for(xe<0?Ae=D.value.slice(0,xe).reduce((De,Pe)=>De+Pe[T.value]+d.gap,0)-Math.abs(re.value+Be.value):Ae=D.value.slice(0,xe).reduce((De,Pe)=>De+Pe[T.value]+d.gap,0)-Math.abs(re.value);Ae<q.value[T.value];){const De=(xe%s.length+s.length)%s.length;Ae+=(($=D.value[De])===null||$===void 0?void 0:$[T.value])+d.gap,xe++}le=xe-1}return{min:Math.floor(ae),max:Math.ceil(le)}}),de=t.computed(()=>{if(d.slideEffect==="fade")return;const R=B.value?"Y":"X",$=B.value?j.y:j.x;let ae=re.value+$;if(!d.wrapAround&&d.preventExcessiveDragging){let le=0;G.value?le=D.value.reduce((De,Pe)=>De+Pe[T.value],0):le=(l.value-Number(d.itemsToShow))*O.value;const xe=S.value?0:-1*le,Ae=S.value?le:0;ae=aa({val:ae,min:xe,max:Ae})}return`translate${R}(${ae}px)`}),Ee=t.computed(()=>({"--vc-carousel-height":xr(d.height),"--vc-cloned-offset":xr(Be.value),"--vc-slide-gap":xr(d.gap),"--vc-transition-duration":I.value?xr(d.transition,"ms"):void 0})),pe={slideTo:_e,next:me,prev:Me},ke=t.reactive({activeSlide:h,config:d,currentSlide:p,isSliding:I,isVertical:B,maxSlide:v,minSlide:x,nav:pe,normalizedDir:N,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:m,visibleRange:ie});t.provide(Oa,ke);const Y=t.reactive({config:d,currentSlide:p,maxSlide:v,middleSlide:k,minSlide:x,slideSize:u,slidesCount:l});return r(t.reactive(Object.assign({data:Y,next:me,prev:Me,restartCarousel:Ne,slideTo:_e,updateBreakpointsConfig:Q,updateSlideSize:V,updateSlidesData:w},t.toRefs(ke)))),()=>{var R;const $=a.default||a.slides,ae=($==null?void 0:$(Y))||[],{before:le,after:xe}=Le.value,Ae=E1({slides:s,position:"before",toShow:le}),De=E1({slides:s,position:"after",toShow:xe}),Pe=[...Ae,...ae,...De];if(!d.enabled||!Pe.length)return t.h("section",{ref:c,class:["carousel","is-disabled"]},Pe);const qe=((R=a.addons)===null||R===void 0?void 0:R.call(a,Y))||[],nt=t.h("ol",{class:"carousel__track",onMousedownCapture:d.mouseDrag?ue:null,onTouchstartPassiveCapture:d.touchDrag?ue:null,onWheel:d.mouseWheel?be:null,style:{transform:de.value}},Pe),bt=t.h("div",{class:"carousel__viewport",ref:m},nt);return t.h("section",{ref:c,class:["carousel",`is-${N.value}`,`is-effect-${d.slideEffect}`,{"is-dragging":ne.value,"is-hover":ce.value,"is-sliding":I.value,"is-vertical":B.value}],dir:N.value,style:Ee.value,"aria-label":d.i18n.ariaGallery,tabindex:"0",onBlur:fe,onFocus:L,onMouseenter:z,onMouseleave:he},[bt,qe,t.h(d8)])}}});var Xo;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})(Xo||(Xo={}));const B1=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,g8={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function y8(e){return e in Xo}const A1=e=>e&&y8(e),V1=t.defineComponent({props:{name:{type:String,required:!0,validator:A1},title:{type:String,default:e=>e.name?at.i18n[B1(e.name)]:""}},setup(e){const a=t.inject(Oa,null);return()=>{const n=e.name;if(!n||!A1(n))return;const r=g8[n],o=t.h("path",{d:r}),i=(a==null?void 0:a.config.i18n[B1(n)])||e.title,s=t.h("title",i);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,o])}}}),k8=t.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:a,attrs:n}){let r=t.inject(Oa,null);const{next:o,prev:i}=a,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],c=t.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),m=t.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(e.carousel&&(r=e.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:u}=r.config,f=t.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},n),{class:["carousel__prev",{"carousel__prev--disabled":c.value},n.class]}),(i==null?void 0:i())||t.h(V1,{name:s()})),d=t.h("button",Object.assign(Object.assign({type:"button",disabled:m.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},n),{class:["carousel__next",{"carousel__next--disabled":m.value},n.class]}),(o==null?void 0:o())||t.h(V1,{name:l()}));return[f,d]}}});t.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(e){let a=t.inject(Oa,null);const n=t.computed(()=>a.config.itemsToShow),r=t.computed(()=>Yo({align:a.config.snapAlign,itemsToShow:n.value})),o=t.computed(()=>e.paginateByItemsToShow&&n.value>1),i=t.computed(()=>Math.ceil((a.activeSlide-r.value)/n.value)),s=t.computed(()=>Math.ceil(a.slidesCount/n.value)),l=c=>M1(o.value?{val:i.value,max:s.value-1,min:0}:{val:a.activeSlide,max:a.maxSlide,min:a.minSlide})===c;return()=>{var c,m;if(e.carousel&&(a=e.carousel),!a)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const u=[];for(let f=o.value?0:a.minSlide;f<=(o.value?s.value-1:a.maxSlide);f++){const d=S1(a.config.i18n[o.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),p=l(f),h=t.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":p},"aria-label":d,"aria-pressed":p,"aria-controls":(m=(c=a.slides[f])===null||c===void 0?void 0:c.exposed)===null||m===void 0?void 0:m.id,title:d,disabled:e.disableOnClick,onClick:()=>a.nav.slideTo(o.value?Math.floor(f*+a.config.itemsToShow+r.value):f)}),g=t.h("li",{class:"carousel__pagination-item",key:f},h);u.push(g)}return t.h("ol",{class:"carousel__pagination"},u)}}});const b8=t.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:t.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:a,slots:n,expose:r}){const o=t.inject(Oa);if(t.provide(Oa,void 0),!o)return()=>"";const i=t.ref(e.index),s=h=>{i.value=h},l=t.getCurrentInstance(),c=()=>{const h=l.vnode.el;return h?h.getBoundingClientRect():{width:0,height:0}};r({id:e.id,setIndex:s,getBoundingRect:c});const m=t.computed(()=>i.value===o.activeSlide),u=t.computed(()=>i.value===o.activeSlide-1),f=t.computed(()=>i.value===o.activeSlide+1),d=t.computed(()=>i.value>=o.visibleRange.min&&i.value<=o.visibleRange.max),p=t.computed(()=>{if(o.config.itemsToShow==="auto")return;const h=o.config.itemsToShow,g=o.config.gap>0&&h>1?`calc(${100/h}% - ${o.config.gap*(h-1)/h}px)`:`${100/h}%`;return o.isVertical?{height:g}:{width:g}});return o.slideRegistry.registerSlide(l,e.index),t.onUnmounted(()=>{o.slideRegistry.unregisterSlide(l)}),e.isClone&&(t.onMounted(()=>{C1(l.vnode)}),t.onUpdated(()=>{C1(l.vnode)})),()=>{var h,g;return o.config.enabled?t.h("li",{style:[a.style,Object.assign({},p.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d.value,"carousel__slide--active":m.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":o.isSliding},onFocusin:()=>{o.viewport&&(o.viewport.scrollLeft=0),o.nav.slideTo(i.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0},(g=n.default)===null||g===void 0?void 0:g.call(n,{currentIndex:i.value,isActive:m.value,isClone:e.isClone,isPrev:u.value,isNext:f.value,isSliding:o.isSliding,isVisible:d.value})):(h=n.default)===null||h===void 0?void 0:h.call(n)}}}),x8={key:0,class:"preview-overlay bg-base-300"},w8={class:"preview-info"},v8={class:"text-black"},E8={class:"queue-info"},C8={class:"carousel-container bg-base-200"},S8={class:"carousel-item"},M8=["onClick"],B8=["onClick"],A8={class:"send-footer"},V8={key:1,class:"toast-loader-files"},_1=je({__name:"dropFilesArea",props:{sendFilesToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0},isMobile:{type:Boolean,default:!1}},setup(e,{expose:a}){const n=e,r={itemsToShow:6,wrapAround:!1,gap:8,mouseDrag:!0,touchDrag:!0,mouseWheel:!0,snapAlign:"start",breakpoints:{1024:{itemsToShow:4},768:{itemsToShow:4},480:{itemsToShow:4},320:{itemsToShow:2},0:{itemsToShow:1}}},o=t.ref(!1),i=t.ref(""),s=t.ref(null),l=t.ref([]),c=t.ref([]),m=t.ref(null),u=t.ref(0),f=t.ref(!1),d=t.ref(0),p=t.ref(0),h=Q=>new Promise((U,E)=>{const D=new FileReader;D.readAsDataURL(Q),D.onload=()=>{U(D.result)},D.onerror=F=>{E(F)}}),g=()=>{o.value=!0},k=()=>{o.value=!1},v=()=>{c.value=[],l.value=[],i.value="",m.value=null,u.value=0},x=Q=>{if(!(Q<0||Q>=c.value.length)){if(c.value.splice(Q,1),l.value.splice(Q,1),c.value.length===0){m.value=null,u.value=0;return}if(Q===u.value){const U=Q>0?Q-1:0;m.value=c.value[U],u.value=U}else Q<u.value&&(u.value-=1)}},b=()=>{s.value.click()},A=async Q=>{const U=Array.from(Q.target.files);l.value=U,c.value=await Promise.all(U.map(async E=>({name:E.name,base64:await h(E)}))),m.value=c.value[0],t.nextTick(()=>{B()})},_=async Q=>{o.value=!1;const U=Array.from(Q.dataTransfer.files);l.value.push(...U);const E=await Promise.all(U.map(async D=>({name:D.name,base64:await h(D)})));c.value.push(...E),m.value||(m.value=c.value[0],u.value=0),t.nextTick(()=>{B()})},O=Q=>Q?Q.split(";")[0].split(":")[1]:null,N=async()=>{try{f.value=!0,d.value=l.value.length,p.value=0;for(let Q=0;Q<l.value.length;Q++){const U=Q===l.value.length-1,E={type:"file",media:{name:c.value[Q].name,mimetype:O(c.value[Q].base64),data:c.value[Q].base64}};U&&(E.content=i.value),await n.sendFilesToAttendant(n.selectedAttendant.id,E,n.attendant,!0),p.value++}await t.nextTick()}catch(Q){console.error(Q)}finally{f.value=!1,v(),k()}},S=t.ref(null),B=()=>{S.value&&S.value.focus()},G=(Q,U)=>{m.value=Q,u.value=U},T=async Q=>{var D;const U=(D=Q.clipboardData)==null?void 0:D.items;if(!U)return;const E=[];for(const F of U)if(F.kind==="file"){const q=F.getAsFile();q&&E.push(q)}if(E.length>0){const F=new Set(l.value.map(V=>V.name));if(E.filter(V=>!F.has(V.name)).length===0)return;l.value.push(...E);const oe=await Promise.all(E.map(async V=>({name:V.name,base64:await h(V)})));c.value.push(...oe),m.value||(m.value=oe[0],u.value=0)}t.nextTick(()=>{B()})};return t.watch(u,(Q,U)=>{m.value=c.value[Q]}),t.onMounted(()=>{window.addEventListener("paste",T)}),t.onUnmounted(()=>{window.removeEventListener("paste",T)}),a({chooseFiles:b}),(Q,U)=>{var E,D,F;return t.openBlock(),t.createElementBlock("main",{onDragover:t.withModifiers(g,["prevent"]),onDragleave:k,onDrop:t.withModifiers(_,["prevent"])},[t.createElementVNode("section",{class:t.normalizeClass(["dropzone-container ",{"dropzone-active":o.value}])},[!f.value&&c.value.length>0&&!o.value?(t.openBlock(),t.createElementBlock("div",x8,[t.createElementVNode("button",{onClick:U[0]||(U[0]=q=>v()),class:"close-button"},U[6]||(U[6]=[t.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])),t.createElementVNode("section",w8,[t.createElementVNode("p",v8,t.toDisplayString((E=m.value)==null?void 0:E.name),1),t.createVNode(qo,{isMobile:e.isMobile,avatar:null,mode:"preview",base64:(D=m.value)==null?void 0:D.base64,mimetype:O((F=m.value)==null?void 0:F.base64)},null,8,["isMobile","base64","mimetype"]),t.withDirectives(t.createElementVNode("input",{ref_key:"textInput",ref:S,onKeydown:U[1]||(U[1]=t.withKeys(q=>N(),["enter"])),placeholder:"Digite uma mensagem para acompanhar o arquivo",class:"input-drop-files-area bg-base-200 text-text-base","onUpdate:modelValue":U[2]||(U[2]=q=>i.value=q),type:"text"},null,544),[[t.vModelText,i.value]])]),t.createElementVNode("div",E8,[U[8]||(U[8]=t.createElementVNode("p",null,"fila de envio",-1)),t.createElementVNode("section",C8,[t.createVNode(t.unref(p8),t.mergeProps({modelValue:u.value,"onUpdate:modelValue":U[4]||(U[4]=q=>u.value=q)},r),t.createSlots({default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(q,oe)=>(t.openBlock(),t.createBlock(t.unref(b8),{key:oe},{default:t.withCtx(()=>[t.createElementVNode("section",S8,[u.value===oe?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:V=>x(oe),class:"remove-file-btn"},U[7]||(U[7]=[t.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)]),8,M8)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(["bg-base-100",["carousel-preview",{active:u.value===oe}]]),onDragstart:U[3]||(U[3]=t.withModifiers(()=>{},["prevent"])),onClick:V=>G(q,oe)},[t.createVNode(qo,{isMobile:e.isMobile,avatar:null,mode:"miniature",base64:q.base64,mimetype:O(q.base64)},null,8,["isMobile","base64","mimetype"])],42,B8)])]),_:2},1024))),128))]),_:2},[e.isMobile?{name:"addons",fn:t.withCtx(()=>[t.createVNode(t.unref(k8))]),key:"0"}:void 0]),1040,["modelValue"])])]),t.createElementVNode("footer",A8,[t.createElementVNode("button",{class:"send-button",onClick:U[5]||(U[5]=q=>N())},U[9]||(U[9]=[t.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))])])):t.createCommentVNode("",!0),f.value?(t.openBlock(),t.createElementBlock("section",V8," Enviando Arquivos... ("+t.toDisplayString(p.value)+" / "+t.toDisplayString(d.value)+") ",1)):t.createCommentVNode("",!0),t.renderSlot(Q.$slots,"default",{},void 0,!0)],2),t.createElementVNode("input",{onChange:A,multiple:"",ref_key:"manualFile",ref:s,type:"file",hidden:""},null,544)],32)}}},[["__scopeId","data-v-119c077a"]]),_8={key:0,class:"chat-icon"},N8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},D8={key:0,class:"unread-count"},T8={key:0,class:"chat-content"},P8={key:1,class:"h-full"},N1=je({__name:"chatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},mode:{type:String,default:"dark"}},emits:["unreadMessagesEmit"],setup(e,{emit:a}){const n=e,{attendants:r,loadingMessages:o,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:m,resetUnreadMessages:u,loadingAttendants:f}=cl(),d=t.ref(!1),p=t.ref(!1),h=t.ref(null),g=t.ref(null),k=a,v=t.ref(null),x=()=>{var T;(T=v.value)==null||T.chooseFiles()},b=t.computed(()=>{if(h.value){const T=r.value.find(Q=>Q.id===h.value.id);return T?T.internal_chat.unread:0}return 0}),A=T=>{var E;const Q=(E=g.value)==null?void 0:E.contains(T.target),U=T.target.closest(".fancybox__container");!Q&&!U&&d.value&&S()};t.onMounted(()=>{document.addEventListener("click",A)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",A)});const _=t.ref(!1),O=t.ref(!1),N=t.computed(()=>O.value?{position:"absolute",width:"42px",height:"42px",transition:"width 0.2s ease-in, height 0.2s ease-out"}:_.value||d.value?{position:"absolute",width:"400px",height:"65vh",transition:"width 0.2s ease-in, height 0.2s ease-out"}:{position:"relative",width:"42px",height:"42px",transition:"none"}),S=()=>{d.value?(O.value=!0,setTimeout(()=>{d.value=!1,O.value=!1},200)):(d.value=!0,_.value=!0,setTimeout(()=>{_.value=!1},200))},B=()=>{d.value||S()},G=async T=>{const Q=r.value.find(E=>E.id===T.id),U=Q?Q.internal_chat.unread:0;k("unreadMessagesEmit",U),h.value=T,u(T.id),T.hasNextPage||await i(T.id)};return t.watch(()=>n.socketMessage,(T,Q)=>{var U;T!==Q&&s(T,d.value,(U=h.value)==null?void 0:U.id)}),t.watch(d,T=>{T&&setTimeout(()=>{p.value=!0},400)}),(T,Q)=>(t.openBlock(),t.createElementBlock("div",{class:"chat-container",ref_key:"chatContainer",ref:g},[d.value?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:t.withModifiers(S,["stop"]),style:{width:"42px",height:"42px","border-radius":"50%","background-color":"#02a9db",display:"flex","justify-content":"center"}},Q[1]||(Q[1]=[t.createElementVNode("span",{style:{"margin-top":"auto","margin-bottom":"auto"},class:"chat-icon my-auto"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[t.createElementVNode("path",{fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})])],-1)]))):t.createCommentVNode("",!0),!d.value&&e.countMessages>0?(t.openBlock(),t.createElementBlock("section",{key:1,style:t.normalizeStyle(e.countMessages>10?"padding: 0.2rem 0.500rem;":"padding: 0.2rem 0.625rem;"),class:"chat-count"},t.toDisplayString(e.countMessages),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{onClick:t.withModifiers(B,["stop"]),class:t.normalizeClass(["group relative",d.value?"chat-box border-base-200 open bg-base-200":"chat-box closed"]),style:t.normalizeStyle(N.value)},[d.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",_8,[(t.openBlock(),t.createElementBlock("svg",N8,[t.createElementVNode("path",{class:t.normalizeClass(e.mode==="dark"?"dark-chat-window-icon":"chat-window-icon"),fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"},null,2)])),b.value>0?(t.openBlock(),t.createElementBlock("span",D8,t.toDisplayString(b.value),1)):t.createCommentVNode("",!0),Q[2]||(Q[2]=t.createElementVNode("div",{class:"chat-tooltip"},[t.createElementVNode("div",{class:"text-sm my-auto text-center"},"Chat interno")],-1))])),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx(()=>[d.value&&!O.value?(t.openBlock(),t.createElementBlock("div",T8,[t.createElementVNode("button",{onClick:t.withModifiers(S,["stop"]),class:"close-button"},Q[3]||(Q[3]=[t.createElementVNode("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L17.94 6M18 18L6.06 6"})],-1)])),t.unref(o)||t.unref(f)?(t.openBlock(),t.createBlock(y1,{key:0})):h.value&&!t.unref(o)?(t.openBlock(),t.createElementBlock("div",P8,[t.createVNode(_1,{ref_key:"dropFilesRef",ref:v,attendant:e.attendant,selectedAttendant:h.value,sendFilesToAttendant:t.unref(c)},{default:t.withCtx(()=>[t.createVNode(g1,{isMobile:!1,onSendFiles:x,attendant:e.attendant,selectedAtendente:h.value,onVoltar:Q[0]||(Q[0]=U=>h.value=null),loadMessagesForAtendente:t.unref(m),sendMessageToAtendente:t.unref(c),hasNextPageForAtendente:t.unref(l)},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):t.createCommentVNode("",!0),!h.value&&!t.unref(f)?(t.openBlock(),t.createBlock(dl,{key:2,attendant:e.attendant,atendentes:t.unref(r),onAtendenteSelecionado:G},null,8,["attendant","atendentes"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),_:1})],6)],512))}},[["__scopeId","data-v-f69203ed"]]),O8={class:"chat-content"},F8={key:1,class:"h-full"},D1=je({__name:"mobileChatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},downloadFilesMobile:{type:Function,required:!0},openMobilePdf:{type:Function}},emits:["unreadMessagesEmit"],setup(e,{emit:a}){const n=e,{attendants:r,loadingMessages:o,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:m,resetUnreadMessages:u,loadingAttendants:f}=cl(),d=t.ref(!1),p=t.ref(!1),h=t.ref(null),g=t.ref(null),k=a,v=t.ref(null),x=()=>{var S;(S=v.value)==null||S.chooseFiles()};t.computed(()=>{if(h.value){const S=r.value.find(B=>B.id===h.value.id);return S?S.internal_chat.unread:0}return 0});const b=S=>{g.value&&!g.value.contains(S.target)&&d.value&&O()};t.onMounted(()=>{document.addEventListener("click",b)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",b)});const A=t.ref(!1),_=t.ref(!1),O=()=>{d.value?(_.value=!0,setTimeout(()=>{d.value=!1,_.value=!1},200)):(d.value=!0,A.value=!0,setTimeout(()=>{A.value=!1},200))},N=async S=>{const B=r.value.find(T=>T.id===S.id),G=B?B.internal_chat.unread:0;k("unreadMessagesEmit",G),h.value=S,u(S.id),S.hasNextPage||await i(S.id)};return t.watch(()=>n.socketMessage,(S,B)=>{var G;S!==B&&s(S,d.value,(G=h.value)==null?void 0:G.id)}),t.watch(d,S=>{S&&setTimeout(()=>{p.value=!0},400)}),(S,B)=>(t.openBlock(),t.createElementBlock("div",O8,[t.unref(o)||t.unref(f)?(t.openBlock(),t.createBlock(y1,{key:0})):h.value&&!t.unref(o)?(t.openBlock(),t.createElementBlock("div",F8,[t.createVNode(_1,{ref_key:"dropFilesRef",ref:v,isMobile:"",attendant:e.attendant,selectedAttendant:h.value,sendFilesToAttendant:t.unref(c)},{default:t.withCtx(()=>[t.createVNode(g1,{isMobile:"",attendant:e.attendant,selectedAtendente:h.value,loadMessagesForAtendente:t.unref(m),sendMessageToAtendente:t.unref(c),hasNextPageForAtendente:t.unref(l),downloadFilesMobile:e.downloadFilesMobile,openMobilePdf:e.openMobilePdf,onVoltar:B[0]||(B[0]=G=>h.value=null),onSendFiles:x},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente","downloadFilesMobile","openMobilePdf"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):t.createCommentVNode("",!0),!h.value&&!t.unref(f)?(t.openBlock(),t.createBlock(dl,{key:2,mobile:!0,attendant:e.attendant,atendentes:t.unref(r),onAtendenteSelecionado:N},null,8,["attendant","atendentes"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-a1f8f1b3"]]),Zo=It.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(e=""){try{let a=`${a2}`;const n=await ra.get(a);this.departments=n.data,this.count=this.departments.length}catch(a){console.log("Erro ao buscar departamentos:",a)}},removeDepartments(e){this.departments=this.departments.filter(a=>a.id!==e)},addDepartments(e){const a=this.departments.findIndex(n=>n.id===e.id);a!==-1?this.departments[a]=e:this.departments.push(e)}}}),L8={class:"depart-select-container"},$8={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},R8=["placeholder"],H8={key:0,class:"selection-container bg-base-300 border-b border-base-200"},z8=["onClick"],I8={class:"department-list"},G8=["onClick"],j8={key:0,style:{width:"150px"}},q8=["onUpdate:modelValue","onChange"],W8={key:0,class:"no-departments bg-base-300"},Y8={key:0},U8={key:1,class:"library-loading-spinner"},T1=je({__name:"departSelect",props:{department:{type:[Array,String],default:null},modal_filter:{type:String,default:null},multiSelect:{type:Boolean,default:!0},permissions:{type:Boolean,default:!1},externalDepartments:{type:Array,default:null},attDel:{type:String,default:null},hiddenDepartment:{type:String,default:null}},emits:["depart","component-mounted"],setup(e,{emit:a}){t.useSlots();const n=e,r=a,o=Zo(),i=t.ref(""),s=t.ref([]),l=t.ref(!1),c=t.ref(!1),m=t.computed(()=>(n.externalDepartments||o.departments).filter(b=>!(n.hiddenDepartment&&b.id===n.hiddenDepartment)).filter(b=>!i.value||b.name.toLowerCase().includes(i.value.toLowerCase())));t.onMounted(async()=>{await d(),await f(),r("component-mounted")}),t.watch(()=>o.departments.length,async()=>{await d(),await t.nextTick(),await f()},{immediate:!0}),t.watch(()=>n.attDel,x=>x&&u(x),{immediate:!0});function u(x){const A=(n.externalDepartments||o.departments).findIndex(_=>_.id===x);A!==-1&&(s.value=s.value.filter(_=>_.id!==x),n.externalDepartments?n.externalDepartments.splice(A,1):o.removeDepartments(x),r("depart",s.value))}async function f(){c.value=!0;const x=n.externalDepartments||o.departments;n.permissions&&x.forEach(b=>{b.permission||(b.permission="normal")}),await p(),c.value=!1}async function d(){(n.externalDepartments||o.departments).forEach(b=>b.selected=!1),s.value=[]}async function p(){const x=n.externalDepartments||o.departments;if(!(x!=null&&x.length))return;(Array.isArray(n.department)?n.department:n.department?[n.department]:[]).forEach(A=>{const _=typeof A=="object"?A.id:A,O=typeof A=="object"?A.permission:void 0,N=x.find(S=>S.id===_);N&&(N.selected=!0,O&&(N.permission=O),s.value.some(S=>S.id===_)||s.value.push(N))}),r("depart",s.value)}function h(x){const b=s.value.findIndex(A=>A.id===x.id);b!==-1?(x.selected=!1,s.value.splice(b,1)):(n.multiSelect||d(),x.selected=!0,s.value.push(x)),r("depart",s.value)}function g(){r("depart",s.value)}function k(x,b){x.selected=!1,s.value.splice(b,1),r("depart",s.value)}const v=t.computed(()=>i.value.trim().length>0);return t.watch(v,x=>{r("searching",x)}),(x,b)=>(t.openBlock(),t.createElementBlock("div",L8,[t.createElementVNode("div",$8,[t.createElementVNode("div",{class:t.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:l.value||s.value.length>0}]),onClick:b[1]||(b[1]=A=>l.value=!l.value)},[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=A=>i.value=A),placeholder:s.value.length>0?e.multiSelect?`Selecionados: ${s.value.length}`:`Selecionado: ${s.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,R8),[[t.vModelText,i.value]]),b[2]||(b[2]=t.createElementVNode("div",{class:"icon-container"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),s.value.length>0&&e.multiSelect&&t.unref(o).loaded?(t.openBlock(),t.createElementBlock("main",H8,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(A,_)=>(t.openBlock(),t.createElementBlock("div",{key:A.id,class:"selection-item"},[t.createTextVNode(t.toDisplayString(A.name)+" ",1),t.createElementVNode("button",{onClick:O=>k(A,_),class:"close-btn"},b[3]||(b[3]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,z8)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass([s.value.length>0&&e.multiSelect?"dropdown-depart-expanded":"dropdown-depart","dropdown-depart bg-base-300"])},[t.createElementVNode("div",I8,[t.createElementVNode("div",{class:t.normalizeClass([{"two-columns":m.value.length>4},"grid-container"])},[t.unref(o).loaded?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value,A=>(t.openBlock(),t.createElementBlock("div",{key:A.id,class:t.normalizeClass([{selected:A.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[t.createElementVNode("span",{onClick:_=>h(A),class:"department-name h-full w-full"},t.toDisplayString(A.name),9,G8),e.multiSelect&&e.permissions?(t.openBlock(),t.createElementBlock("div",j8,[t.withDirectives(t.createElementVNode("select",{"onUpdate:modelValue":_=>A.permission=_,onChange:_=>g(),class:"select-dropdown-depart bg-base-300"},b[4]||(b[4]=[t.createElementVNode("option",{value:"normal"},"normal",-1),t.createElementVNode("option",{value:"supervisor"},"supervisor",-1)]),40,q8),[[t.vModelSelect,A.permission]])])):t.createCommentVNode("",!0)],2))),128)):t.createCommentVNode("",!0)],2)]),t.unref(o).loaded&&m.value.length===0?(t.openBlock(),t.createElementBlock("div",W8,[x.$slots.default?t.renderSlot(x.$slots,"default",{key:1},void 0,!0):(t.openBlock(),t.createElementBlock("p",Y8,"Nenhum departamento disponível."))])):t.createCommentVNode("",!0),t.unref(o).loaded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",U8,b[5]||(b[5]=[t.createTextVNode(" Inicializando departamentos "),t.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-cb89eac6"]]),X8={class:"depart-select-container"},Z8={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},Q8=["placeholder"],K8={key:0,class:"selection-container bg-base-300 border-b border-base-200"},J8=["onClick"],e9={class:"department-list"},t9={style:{"padding-left":"5px"}},a9=["src"],n9={key:1,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"},class:"bg-base-300","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},r9=["onClick"],o9={key:0,class:"no-departments bg-base-300"},i9={key:1,class:"library-loading-spinner"},P1=je({__name:"attendantSelect",props:{attendance:{type:[Array,String],default:null},multiSelect:{type:Boolean,default:!0},department:{type:Array,default:[]},modal_filter:{type:String,default:null},attDel:{type:Object,default:{id:null}},method:{type:String,default:null}},emits:["attend","component-mounted"],setup(e,{emit:a}){const n=e,r=a,o=er(),i=t.ref(""),s=t.ref(!1),l=t.ref([]),c=t.computed(()=>{const k=o.attendants.filter(x=>x.status===!0),v=i.value?k.filter(x=>x.name.toLowerCase().includes(i.value.toLowerCase())):k;return u(m(v))});function m(k){return n.method==="remove"?(Array.isArray(n.attendance)?n.attendance:n.attendance?[n.attendance]:k).filter(x=>{var A;return(typeof x=="object"?x.id:x)!==((A=n==null?void 0:n.attDel)==null?void 0:A.id)}):n.method==="addParticipant"?k.filter(v=>{var x;return(v==null?void 0:v.id)!==((x=n==null?void 0:n.attDel)==null?void 0:x.id)}):k}function u(k){return Array.isArray(n.department)&&n.department.length>0?k.filter(v=>v.department.some(x=>n.department.some(b=>b.id===x.id))):k}t.onMounted(()=>{f(),r("component-mounted")}),t.watch(()=>o.attendants.length,async()=>{await t.nextTick(),f()},{immediate:!0}),t.watch(()=>n.modal_filter,()=>{!n.modal_filter&&n.multiSelect&&d()},{immediate:!0}),t.watch(()=>n.department,()=>f(),{deep:!0});function f(){d(),p()}function d(){o.attendants.forEach(k=>k.selected=!1),l.value=[]}function p(){const k=o.attendants;if(!(k!=null&&k.length))return;(Array.isArray(n.attendance)?n.attendance:n.attendance?[n.attendance]:[]).forEach(x=>{const b=typeof x=="object"?x.id:x,A=k.find(_=>_.id===b);A&&!l.value.some(_=>_.id===b)&&(A.selected=!0,l.value.push(A))}),r("attend",l.value)}function h(k){const v=l.value.findIndex(x=>x.id===k.id);v!==-1?(k.selected=!1,l.value.splice(v,1)):(n.multiSelect||d(),k.selected=!0,l.value.push(k)),r("attend",l.value)}function g(k,v){k.selected=!1,l.value.splice(v,1),r("attend",l.value)}return(k,v)=>(t.openBlock(),t.createElementBlock("div",X8,[t.createElementVNode("div",Z8,[t.createElementVNode("div",{class:t.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:s.value||l.value.length>0}]),onClick:v[1]||(v[1]=x=>s.value=!s.value)},[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=x=>i.value=x),placeholder:l.value.length>0?e.multiSelect?`Selecionados: ${l.value.length}`:`Selecionado: ${l.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,Q8),[[t.vModelText,i.value]]),v[2]||(v[2]=t.createElementVNode("div",{class:"icon-container"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),l.value.length>0&&e.multiSelect&&t.unref(o).loaded?(t.openBlock(),t.createElementBlock("main",K8,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(x,b)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:"selection-item"},[t.createTextVNode(t.toDisplayString(x.name)+" ",1),t.createElementVNode("button",{onClick:A=>g(x,b),class:"close-btn"},v[3]||(v[3]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,J8)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass([l.value.length>0&&e.multiSelect?"dropdown-attendance-expanded":"dropdown-attendance","dropdown-attendance bg-base-300"])},[t.createElementVNode("div",e9,[t.createElementVNode("div",{class:t.normalizeClass([{"two-columns":c.value.length>4},"grid-container"])},[t.unref(o).loaded?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.value,x=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass([{selected:x.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[t.createElementVNode("div",t9,[x.photo?(t.openBlock(),t.createElementBlock("img",{key:0,src:x.photo,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"}},null,8,a9)):(t.openBlock(),t.createElementBlock("svg",n9,v[4]||(v[4]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"},null,-1)])))]),t.createElementVNode("span",{onClick:b=>h(x),class:"department-name h-full w-full"},t.toDisplayString(x.name),9,r9)],2))),128)):t.createCommentVNode("",!0)],2)]),t.unref(o).loaded&&c.value.length===0?(t.openBlock(),t.createElementBlock("div",o9," Nenhum atendente disponível. ")):t.createCommentVNode("",!0),t.unref(o).loaded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",i9,v[5]||(v[5]=[t.createTextVNode(" Inicializando atendentes "),t.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-75e7fdd4"]]),s9={class:""},l9={class:"flex justify-between mb-3"},c9={class:""},O1=je({__name:"filterSelect",props:{title:{type:String,default:"Filtros"},modelValue:{default:null}},setup(e){const a=t.ref(!0);return(n,r)=>{const o=t.resolveComponent("Popper");return t.openBlock(),t.createBlock(o,{placement:"bottom",arrow:!1,class:"dark:popper-light popper-dark"},{content:t.withCtx(({close:i})=>[t.createElementVNode("section",s9,[t.createElementVNode("div",null,[t.createElementVNode("div",l9,[t.createElementVNode("p",null,t.toDisplayString(e.title),1),r[1]||(r[1]=t.createElementVNode("svg",{class:"w-4 h-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{d:"M5 3a2 2 0 0 0-1.5 3.3l5.4 6v5c0 .4.3.9.6 1.1l3.1 2.3c1 .7 2.5 0 2.5-1.2v-7.1l5.4-6C21.6 5 20.7 3 19 3H5Z"})],-1))]),t.createElementVNode("div",c9,[t.renderSlot(n.$slots,"default",{},void 0,!0)])])])]),default:t.withCtx(()=>[t.createElementVNode("button",{onClick:r[0]||(r[0]=i=>a.value=!a.value),class:"group max-w-max relative flex p-0.5 flex-col items-center justify-center cursor-pointer rounded-md text-xs font-semibold"},r[2]||(r[2]=[t.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"})],-1)]))]),_:3})}}},[["__scopeId","data-v-1dfa2696"]]);function d9(e,a){return t.openBlock(),t.createElementBlock("svg")}const u9={render:d9},f9=t.createStaticVNode('<g id="Top/_Resources/Prescription-01" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Glasses" fill="#D6EAF2" filter="url('#filter1')" transform="translate(8 8)"><path id="Frame-Stuff" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame-Stuff" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g>',1),m9=[f9];function h9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...m9])}const p9={render:h9},g9=t.createStaticVNode('<g id="Top/_Resources/Round" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.6%" height="108.3%" x="-.8%" y="-2.1%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter><path id="Round-path1" d="M80.465 16.394C84.38 8.46 92.553 3 102 3c8.92 0 16.703 4.866 20.84 12.088q.316-.087.66-.088h8a2.5 2.5 0 1 1 0 5h-6.537A24 24 0 0 1 126 27c0 13.255-10.745 24-24 24S78 40.255 78 27c0-1.422.124-2.815.36-4.169C78.277 18.455 74.915 15 70.863 15c-3.736 0-6.887 2.94-7.42 6.83.365 1.665.558 3.395.558 5.17 0 13.255-10.745 24-24 24S16 40.255 16 27c0-2.435.363-4.785 1.037-7H10.5a2.5 2.5 0 1 1 0-5h8q.343 0 .66.088C23.297 7.866 31.08 3 40 3c9.352 0 17.455 5.35 21.416 13.155C63.493 13.039 66.949 11 70.862 11c4.013 0 7.545 2.144 9.603 5.394M40 47c11.046 0 20-8.954 20-20S51.046 7 40 7s-20 8.954-20 20 8.954 20 20 20m62 0c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20"></path></defs><g id="Lennon-Glasses"><use fill="#000" filter="url('#filter1')" href="#Round-path1"></use><use fill="#252C2F" href="#Round-path1"></use></g></g>',1),y9=[g9];function k9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...y9])}const b9={render:k9},x9=t.createStaticVNode('<g id="Top/_Resources/Wayfarers" fill="none" stroke-width="1" transform="translate(62 85)"><defs><path id="react-path-1157" d="M44.918 17.571c0 9.703-8.25 17.572-21.998 17.572h-2.75C6.423 35.143.923 27.27.923 17.57.923 7.866 2.207 0 21.455 0h2.931c19.248 0 20.532 7.866 20.532 17.571"></path><path id="react-path-1158" d="M106.486 17.571c0 9.703-8.247 17.572-21.997 17.572h-2.75c-13.748 0-19.248-7.872-19.248-17.572C62.491 7.866 63.775 0 83.023 0h2.932c19.244 0 20.531 7.866 20.531 17.571"></path><linearGradient id="react-linear-gradient-1160" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><filter id="react-filter-1159" width="101.6%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" filter="url(#react-filter-1159)" transform="translate(7 7)"><g id="Shades" fill-rule="evenodd" transform="translate(10.795 2.929)"><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1157"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1157" style="mix-blend-mode:screen;"></use></g><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1158"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1158" style="mix-blend-mode:screen;"></use></g></g><path id="Left" fill="#252C2F" fill-rule="nonzero" d="M33.716 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5C8.787 10.127 10.6 0 32.25 0h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.93 20.5M32.25 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.83 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Right" fill="#252C2F" fill-rule="nonzero" d="M95.284 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5 0-10.373 1.813-20.5 23.464-20.5h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.929 20.5M93.818 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.833 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Stuff" fill="#252C2F" fill-rule="nonzero" d="M2.932 5.857C3.618 5.172 11.123 0 32.25 0c17.714 0 21.464 1.88 27.14 4.72l.415.21c.395.143 2.413.844 4.773.921a16.5 16.5 0 0 0 4.528-.881C75.584 1.748 81.926 0 96.75 0c21.127 0 28.632 5.172 29.318 5.857A2.93 2.93 0 0 1 129 8.786v2.928c0 1.62-1.31 2.929-2.932 2.929 0 0-5.863 0-5.863 2.928s-2.932-4.237-2.932-5.857V8.862c-3.576-1.4-9.976-3.005-20.523-3.005-11.75 0-17.602 1.131-22.622 3.247l.056.139-2.496 1.007 2.493 1.008-2.2 5.43-2.717-1.1a13 13 0 0 0-1.493-.457c-2.024-.51-4.106-.666-5.946-.28a7.7 7.7 0 0 0-1.877.642l-2.622 1.31-2.623-5.238 2.622-1.31.006-.003-2.512-1.015.08-.198C50.57 6.976 46.58 5.857 32.25 5.857c-10.546 0-16.947 1.604-20.523 3.004v2.853c0 1.62-2.932 8.786-2.932 5.857s-5.863-2.928-5.863-2.928A2.93 2.93 0 0 1 0 11.714V8.786a2.93 2.93 0 0 1 2.932-2.929"></path></g></g>',1),w9=[x9];function v9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...w9])}const E9={render:v9},C9=t.createStaticVNode('<g id="Top/_Resources/Kurt" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="108%" x="-.8%" y="-2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Kurts" filter="url('#filter1')" transform="translate(5 2)"><path id="It!" fill="#F4F4F4" d="M66 11.111c-11.037 0-12.63-9.084-35.33-10.37C7.987-.283.816 6.449.777 11.11c.037 4.293-1.128 15.45 13.589 28.519 14.772 15.512 29.905 10.252 35.33 5.185C55.134 42.473 61.34 21.46 66 21.48s10.865 20.992 16.306 23.334c5.424 5.067 20.557 10.327 35.33-5.185 14.716-13.069 13.55-24.226 13.588-28.519-.04-4.662-7.21-11.394-29.895-10.37C78.63 2.027 77.037 11.11 66 11.11"></path><path id="Did" fill="#2F383B" d="M55.13 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.256.299-16.111 9.453-16.306 12.963-.349 8.133 8.367 26.415 24.459 25.926 16.091-.51 18.803-18.28 19.023-23.334"></path><path id="Courtney" fill="#2F383B" d="M120.353 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.255.299-16.11 9.453-16.305 12.963-.35 8.133 8.367 26.415 24.458 25.926 16.092-.51 18.804-18.28 19.024-23.334" transform="matrix(-1 0 0 1 197.224 0)"></path></g></g>',1),S9=[C9];function M9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...S9])}const B9={render:M9},A9=t.createStaticVNode('<g id="Top/_Resources/Prescription-02" fill="none" stroke-width="1" transform="translate(62 85)"><defs><filter id="react-filter-1166" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" fill="#252C2F" fill-rule="nonzero" filter="url(#react-filter-1166)" transform="translate(6 7)"><path id="Left" d="M34 41h-2.758C17.315 41 9 33.336 9 20.5 9 10.127 10.817 0 32.53 0h2.94C57.183 0 59 10.127 59 20.5 59 32.569 48.721 41 34 41M32.385 6C13 6 13 12.841 13 21.502 13 28.572 16.116 37 30.97 37H34c12.365 0 21-6.373 21-15.498C55 12.84 55 6 35.615 6z"></path><path id="Right" d="M96 41h-2.758C79.315 41 71 33.336 71 20.5 71 10.127 72.817 0 94.53 0h2.94C119.183 0 121 10.127 121 20.5 121 32.569 110.721 41 96 41M94.385 6C75 6 75 12.841 75 21.502 75 28.572 78.12 37 92.97 37H96c12.365 0 21-6.373 21-15.498C117 12.84 117 6 97.615 6z"></path><path id="Stuff" d="M2.955 5.772C3.645 5.096 11.21 0 32.5 0c17.851 0 21.63 1.853 27.35 4.652l.419.207c.398.14 2.431.83 4.81.907a17 17 0 0 0 4.563-.869C76.17 1.722 82.562 0 97.5 0c21.29 0 28.854 5.096 29.545 5.772 1.634 0 2.955 1.29 2.955 2.885v2.886c0 1.596-1.32 2.886-2.955 2.886 0 0-6.901 0-6.901 2.886 0 2.885-1.962-4.176-1.962-5.772v-2.81c-3.603-1.38-10.054-3.947-20.682-3.947-11.842 0-17.739 2.1-22.798 4.185l.057.137-.003 1.986-2.217 5.35L69.8 15.36c-.244-.097-.772-.27-1.504-.451-2.04-.503-4.137-.656-5.992-.276q-1.021.21-1.891.633l-2.643 1.29-2.643-5.16.117-2.295.08-.195c-4.362-2.033-8.385-4.12-22.824-4.12-10.628 0-17.078 2.565-20.682 3.944v2.812c0 1.596-2.954 8.657-2.954 5.772 0-2.886-5.91-2.886-5.91-2.886-1.63 0-2.954-1.29-2.954-2.886V8.657c0-1.595 1.324-2.885 2.955-2.885"></path></g></g>',1),V9=[A9];function _9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...V9])}const N9={render:_9},D9=t.createStaticVNode('<g id="Top/_Resources/Sunglasses" fill="none" stroke-width="1" transform="translate(62 85)"><defs><linearGradient id="react-linear-gradient-1164" x1="50%" x2="50%" y1="0%" y2="70.506%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="100%" stop-opacity=".5"></stop></linearGradient><linearGradient id="react-linear-gradient-1165" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><path id="react-path-1161" d="M47.01 6.277c2.511.024 3.698.45 4.126 3.115.433 2.7.012 5.736-.488 8.395-.762 4.06-2.031 8.04-4.984 11.007-1.555 1.564-3.452 2.81-5.47 3.66-1.071.452-2.203.778-3.334 1.026-.33.072-3.154.468-1.422.267-4.041.47-8.425.45-11.8-2.168-3.74-2.901-6.301-7.493-7.427-12.066-.66-2.676-2.044-9.076.486-11.216 2.898-2.452 30.313-2.02 30.313-2.02"></path><path id="react-path-1162" d="M78.92 6.275c-2.512.024-3.699.449-4.126 3.114-.434 2.7-.012 5.736.487 8.395.763 4.061 2.032 8.04 4.984 11.008 1.556 1.563 3.453 2.809 5.47 3.66 1.072.451 2.204.778 3.335 1.025.33.072 3.153.469 1.422.267 4.04.47 8.425.45 11.8-2.167 3.74-2.902 6.3-7.493 7.427-12.066.66-2.677 2.043-9.077-.486-11.217-2.898-2.451-30.314-2.02-30.314-2.02"></path><filter id="react-filter-1163" width="101.6%" height="110.5%" x="-.8%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Sunglasses" filter="url(#react-filter-1163)" transform="translate(8 8)"><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1161"></use><use fill="url(#react-linear-gradient-1164)" href="#react-path-1161" style="mix-blend-mode:screen;"></use></g><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1162"></use><use fill="url(#react-linear-gradient-1165)" href="#react-path-1162" style="mix-blend-mode:screen;"></use></g><g id="Glasses" fill="#252C2F"><path id="Frame" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g></g>',1),T9=[D9];function P9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...T9])}const O9={render:P9},F9={Blank:u9,Prescription01:p9,Round:b9,Wayfarers:E9,Kurt:B9,Prescription02:N9,Sunglasses:O9},L9=t.createStaticVNode('<g id="Clothing/Blazer-+-Shirt" transform="translate(0 170)"><defs><path id="BlazerShirt-path1" d="M133.96.295c36.976 3.03 66.04 34 66.04 71.757V81H0v-8.948C0 33.952 29.592 2.765 67.045.22Q67 .78 67 1.348c0 11.863 14.998 21.48 33.5 21.48S134 13.211 134 1.348q0-.53-.04-1.053"></path></defs><g id="Shirt" transform="translate(32 29)"><mask id="BlazerShirt-mask1" fill="#fff"><use href="#BlazerShirt-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerShirt-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerShirt-mask1')"><path id="Color" d="M0 0h264v110H0z" transform="translate(-32 -29)"></path></g><g id="Shadowy" fill="#000" mask="url('#BlazerShirt-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(60 -25)"></ellipse></g></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g></g>',1),$9=[L9];function R9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...$9])}const H9={render:R9},z9=t.createStaticVNode('<g id="Clothing/Blazer-+-Sweater" transform="translate(0 170)"><defs><path id="BlazerSweater-path1" d="M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"></path></defs><mask id="BlazerSweater-mask1" fill="#fff"><use href="#BlazerSweater-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerSweater-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerSweater-mask1')"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g><path id="Collar" fill="#F2F2F2" d="M156 21.539c6.772 4.597 11 11.117 11 18.349 0 7.4-4.428 14.057-11.48 18.668l-5.94-4.68-4.58.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48 0c-6.772 4.597-11 11.117-11 18.349 0 7.4 4.428 14.057 11.48 18.668l5.94-4.68 4.58.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"></path></g>',1),I9=[z9];function G9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...I9])}const j9={render:G9},q9=t.createElementVNode("g",{id:"Clothing/Collar-+-Sweater",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"CollarSweater-path1",d:"M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"})]),t.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#CollarSweater-path1"}),t.createElementVNode("path",{id:"Collar",fill:"#F2F2F2",d:"M156 22.28c6.182 4.555 10 10.826 10 17.748 0 7.205-4.137 13.705-10.771 18.3l-5.65-4.452-4.579.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48-.709c-6.767 4.603-11 11.169-11 18.457 0 7.398 4.362 14.052 11.308 18.664l6.113-4.816 4.579.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"})],-1),W9=[q9];function Y9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...W9])}const U9={render:Y9},X9=t.createStaticVNode('<g id="Clothing/Hoodie" transform="translate(0 170)"><defs><path id="Hoodie-path1" d="M108 13.07c-17.919 2.006-31.72 7.482-31.996 21.575C50.146 45.568 32 71.165 32 100.999V110h200v-9c0-29.835-18.146-55.432-44.004-66.355-.276-14.093-14.077-19.57-31.996-21.574V32c0 13.255-10.745 24-24 24s-24-10.745-24-24z"></path></defs><mask id="Hoodie-mask1" fill="#fff"><use href="#Hoodie-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Hoodie-path1"></use><path id="Straps" fill="#F4F4F4" d="M102 61.74V110h-7V58.15a65 65 0 0 0 7 3.59m67-3.59V98.5a3.5 3.5 0 1 1-7 0V61.74a65 65 0 0 0 7-3.59" mask="url('#Hoodie-mask1')"></path><path id="Shadow" fill="#000" d="M90.96 12.724C75.91 15.571 65.5 21.243 65.5 32.308 65.5 52.02 98.538 68 132 68s66.5-15.98 66.5-35.692c0-11.065-10.41-16.737-25.46-19.584 9.085 3.35 14.96 8.982 14.96 18.353C188 51.469 160.179 68 132 68S76 51.469 76 31.077c0-9.37 5.875-15.003 14.96-18.353" mask="url('#Hoodie-mask1')" opacity=".16"></path></g>',1),Z9=[X9];function Q9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Z9])}const K9={render:Q9},J9=t.createElementVNode("g",{id:"Clothing/Graphic-Shirt",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"GraphicShirt-path1",d:"M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"})]),t.createElementVNode("use",{fill:"#E6E6E6",class:"CustomColor",href:"#GraphicShirt-path1"})],-1),eh=[J9];function th(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...eh])}const ah={render:th},nh=t.createStaticVNode('<g id="Clothing/Overall" transform="translate(0 170)"><defs><path id="Overall-path1" d="M94 29.688V74h76V29.688a71.5 71.5 0 0 1 26 8.944V110H68V38.632a71.5 71.5 0 0 1 26-8.944"></path></defs><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Overall-path1"></use><circle id="Button" cx="81" cy="83" r="5" fill="#F4F4F4"></circle><circle id="Button" cx="183" cy="83" r="5" fill="#F4F4F4"></circle></g>',1),rh=[nh];function oh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...rh])}const ih={render:oh},sh=t.createStaticVNode('<g id="Clothing/Shirt-Crew-Neck" transform="translate(0 170)"><defs><path id="ShirtCrewNeck-path1" d="M165.96 29.295c36.976 3.03 66.04 34 66.04 71.757V110H32v-8.948c0-38.1 29.592-69.287 67.045-71.832Q99 29.78 99 30.348c0 11.863 14.998 21.48 33.5 21.48s33.5-9.617 33.5-21.48q0-.53-.04-1.053"></path></defs><mask id="ShirtCrewNeck-mask1" fill="#fff"><use href="#ShirtCrewNeck-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#ShirtCrewNeck-path1"></use><g id="Shadowy" fill="#000" mask="url('#ShirtCrewNeck-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(92 4)"></ellipse></g></g>',1),lh=[sh];function ch(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...lh])}const dh={render:ch},uh=t.createElementVNode("g",{id:"Clothing/Shirt-V-Neck",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"ShirtVNeck-path1",d:"M171.32 29.936C205.706 35.366 232 65.14 232 101.052V110H32v-8.948c0-35.914 26.294-65.686 60.682-71.116a23.9 23.9 0 0 0 7.554 13.603l29.085 26.229a4 4 0 0 0 5.358 0l29.085-26.229a24 24 0 0 0 1.234-1.196 23.9 23.9 0 0 0 6.322-12.407"})]),t.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtVNeck-path1"})],-1),fh=[uh];function mh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...fh])}const hh={render:mh},ph=t.createElementVNode("g",{id:"Clothing/Shirt-Scoop-Neck",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"ShirtScoopNeck-path1",d:"M181.544 32.33C210.784 41.488 232 68.792 232 101.052V110H32v-8.948c0-32.655 21.739-60.232 51.534-69.05A18 18 0 0 0 83 36.348c0 16.281 22.162 29.48 49.5 29.48S182 52.629 182 36.348c0-1.363-.155-2.704-.456-4.018"})]),t.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtScoopNeck-path1"})],-1),gh=[ph];function yh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...gh])}const kh={render:yh},bh={BlazerShirt:H9,CollarSweater:U9,BlazerSweater:j9,Hoodie:K9,GraphicShirt:ah,Overall:ih,ShirtCrewNeck:dh,ShirtVNeck:hh,ShirtScoopNeck:kh},xh=t.createStaticVNode('<g id="Top"><defs><path id="Eyepatch-path1" d="M0 0h264v280H0z"></path></defs><mask id="Eyepatch-mask1" fill="#fff"><use href="#Eyepatch-path1"></use></mask><g id="Top/Accesories/Eyepatch" mask="url('#Eyepatch-mask1')"><path fill="#28354B" d="M159.395 39.781c-3.077-3.088-6.276 3.858-7.772 5.647-3.61 4.32-7.083 8.755-10.755 13.024-7.252 8.43-14.429 16.922-21.634 25.388-1.094 1.286-.961 1.425-2.397 1.549-.951.082-2.274-.409-3.263-.463-2.75-.151-5.462.309-8.138.897-5.345 1.173-11.01 3.106-15.647 6.075-1.217.78-2.002 1.7-3.322 1.943-1.149.212-2.673-.211-3.845-.322-2.08-.195-5.084-1.046-7.127-.605-2.592.56-3.578 3.697-.935 5.086 2.01 1.056 6.01.476 8.264.645 2.573.192 1.788.06 1.423 2.52-.523 3.533.352 7.481 1.842 10.713 3.46 7.505 13.034 15.457 21.766 14.725 7.287-.61 13.672-7.19 16.664-13.503 1.532-3.231 2.436-6.908 2.731-10.472.189-2.266.084-4.67-.566-6.865-.321-1.085-.83-2.208-1.376-3.193-.442-.799-2.4-2.65-2.52-3.453-.232-1.557 4.185-5.73 5.028-6.773 3.973-4.916 7.964-9.812 11.906-14.755 3.881-4.869 7.784-9.725 11.768-14.51 1.804-2.17 10.828-10.364 7.905-13.298" class="CustomColor"></path></g></g>',1),wh=[xh];function vh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...wh])}const Eh={render:vh},Ch=t.createStaticVNode('<g id="Top"><defs><path id="LongHairMiaWallace-path1" d="M0 0h264v280H0z"></path><path id="LongHairMiaWallace-path2" d="M148.86 69q.14 1.982.14 4v38c0 22.34-13.08 41.623-32 50.611v8.706c18.146 1.499 35.721 4.018 46 6.683 9.953-13.56 22.885-26.2 23-51 .085-18.985-27.676-95.572-40-111-8.138-10.188-28.695-13.55-53-14S48.923 6.509 41 16C30.319 28.795-.085 107.015 0 126c.116 24.8 13.048 37.44 23 51 10.279-2.665 27.854-5.184 46-6.683v-8.706C50.08 152.623 37 133.339 37 111V73q0-2.018.14-4h28.234l3.879-21.444L72.058 69h76.801Z"></path></defs><mask id="LongHairMiaWallace-mask1" fill="#fff"><use href="#LongHairMiaWallace-path1"></use></mask><g id="Top/Long-Hair/Mia-Wallace" mask="url('#LongHairMiaWallace-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M69.033 76.213q19.407-49.626 41.025-49.626c.539 0 29.253-.238 48.055-.36C178.767 35.585 193 55.304 193 78.115V93h-82.942l-2.805-23.18-3.88 23.18H69V78.115q0-.955.033-1.902" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairMiaWallace-path2" transform="translate(40 19)"></use></g></g></g>',1),Sh=[Ch];function Mh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Sh])}const Bh={render:Mh},Ah=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortCurly-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortCurly-path1" d="M94.252 52.022q.185-.081-.916-.062 1.338-.003.916.062m-8.135-15.72c-.002-.02.017.15 0 0m107.648 34.464c-.264-3.317-.732-6.614-1.518-9.855-.625-2.576-1.478-5.033-2.487-7.491-.61-1.485-2.032-3.524-2.2-5.126-.165-1.577 1.067-3.325 1.33-5.162a16 16 0 0 0-.156-5.438c-.833-4.023-3.594-7.764-7.857-8.813-.952-.234-2.964.055-3.636-.5-.771-.635-1.308-2.8-2.006-3.669-1.99-2.476-5.095-4.07-8.37-3.514-2.41.409-1.026.907-2.833-.512-1.005-.788-1.756-1.993-2.732-2.847-1.467-1.283-3.15-2.38-4.892-3.282-4.557-2.358-9.754-4.072-14.844-4.908-9.285-1.524-19.195-.195-28.195 2.22-4.479 1.201-8.987 2.726-13.147 4.743-1.783.864-2.813 1.582-4.673 1.808-2.928.357-5.409.339-8.183 1.581-8.536 3.822-12.381 12.689-9.06 21.174a14.6 14.6 0 0 0 2.82 4.584c1.521 1.68 2.072 1.35.762 3.282a53 53 0 0 0-4.955 9.172c-3.529 8.402-4.12 17.864-3.89 26.824.081 3.137.216 6.313.71 9.42.214 1.344.274 3.872 1.282 4.87.512.506 1.241.788 1.969.587 1.71-.474 1.121-1.735 1.161-2.906.2-5.884-.07-11.089 1.33-16.902 1.033-4.294 2.755-8.195 4.988-12.035 2.838-4.884 5.903-9.173 9.807-13.355.917-.984 1.118-1.4 2.349-1.472.932-.054 2.295.584 3.2.805 1.999.487 4 .968 6.034 1.296 3.74.603 7.444.644 11.217.525 7.426-.232 14.885-.753 22.085-2.623 4.782-1.242 9.022-3.47 13.602-5.105.082-.029 1.23-.847 1.43-.814.282.047 1.978 1.826 2.264 2.05 2.226 1.746 4.667 2.479 7.07 3.83 2.964 1.667.094-.718 1.728 1.359.477.605.72 1.726 1.103 2.411a18.1 18.1 0 0 0 4.93 5.624c1.956 1.47 4.894 2.18 5.891 4.095.769 1.477 1.028 3.484 1.648 5.06 1.628 4.136 3.777 7.992 5.926 11.887 1.732 3.14 3.625 5.881 3.818 9.468.067 1.248-1.121 8.737 1.773 6.46.429-.338 1.353-4.156 1.543-4.804.772-2.633 1.046-5.381 1.395-8.086.694-5.38.923-10.498.47-15.916"></path></defs><mask id="ShortHairShortCurly-mask2" fill="#fff"><use href="#ShortHairShortCurly-path2"></use></mask><g id="Top/Short-Hair/Short-Curly" mask="url('#ShortHairShortCurly-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortCurly-path1" transform="translate(-1)"></use></g></g>',1),Vh=[Ah];function _h(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Vh])}const Nh={render:_h},Dh=t.createStaticVNode('<g id="Top"><defs><path id="Hat-path2" d="M0 0h264v280H0z"></path><path id="Hat-path1" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92a55.8 55.8 0 0 0-4.638-22.35C173.435 53 89.312 53.802 80.71 69.484A55.8 55.8 0 0 0 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path></defs><mask id="Hat-mask1" fill="#fff"><use href="#Hat-path2"></use></mask><g id="Top/Accesories/Hat" mask="url('#Hat-mask1')"><g transform="translate(-1)"><g id="Hat" transform="translate(1)"><mask id="Hat-mask2" fill="#fff"><use href="#Hat-path1"></use></mask><path fill="var(--avataaar-top-color)" d="M123.182 2h18.636c18.791 0 35.049 13.08 39.072 31.436L190 75H75l9.11-41.564C88.133 15.08 104.39 2 123.182 2" mask="url('#Hat-mask2')" style="fill-opacity:.6;"></path><ellipse id="Hipster" cx="132" cy="87.5" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="122" ry="57.5"></ellipse><ellipse id="Hipster" cx="132" cy="87.5" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="122" ry="57.5" style="fill-opacity:.1;"></ellipse><ellipse id="Very" cx="132" cy="82" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="62" ry="25"></ellipse><ellipse id="Very" cx="132" cy="82" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="62" ry="25" style="fill-opacity:.5;"></ellipse></g></g></g></g>',1),Th=[Dh];function Ph(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Th])}const Oh={render:Ph},Fh=t.createStaticVNode('<g id="Top"><defs><path id="LongHairNotTooLong-path1" d="M0 0h264v280H0z"></path><path id="LongHairNotTooLong-path2" d="M59 102.34V182a8 8 0 0 0 8 8h42v-9.389c-17.53-8.328-30.048-25.496-31.791-45.744C71.43 134.002 67 129.02 67 123v-13c0-3.49 1.49-6.633 3.87-8.826 11.539-2.619 24.1-7.536 36.472-14.679 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762c10.256 23.035 27.874 39.36 45.762 44.745.513 2.11.794 4.08.794 5.597v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V190h18c17.673 0 32-14.327 32-32v-54.125q0-.1-.028-.26-.216-18.391-.612-21.39C201.577 45.977 170.556 18 133 18c-36.085 0-66.137 25.828-73 60-5.523 0-10 5.596-10 12.5 0 4.55 1.695 8.643 4.853 10.773.905.61 2.47.925 4.147 1.067"></path></defs><mask id="LongHairNotTooLong-mask1" fill="#fff"><use href="#LongHairNotTooLong-path1"></use></mask><g id="Top/Long-Hair/Long-but-not-too-long" mask="url('#LongHairNotTooLong-mask1')"><g transform="translate(-1)"><use id="Behind" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairNotTooLong-path2"></use><g id="Top" opacity=".16" transform="translate(50 18)"><path id="Combined-Shape" fill="#FFF" d="M11.899 84.775c13.812-1.76 29.78-7.237 45.443-16.28 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762C114.382 68.471 136.296 86.194 157 88.151V74c0-40.87-33.13-74-74-74-36.085 0-66.137 25.828-72.679 60.006A8 8 0 0 0 10 60C4.477 60 0 65.596 0 72.5c0 6.482 3.947 11.811 9 12.438v.155q.474-.044.953-.093a8.2 8.2 0 0 0 1.946-.225"></path></g></g></g></g>',1),Lh=[Fh];function $h(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Lh])}const Rh={render:$h},Hh=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortFlat-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortFlat-path1" d="M180.15 39.92c-2.76-2.82-5.964-5.213-9.08-7.613-.688-.53-1.387-1.046-2.06-1.595-.152-.125-1.718-1.246-1.905-1.659-.451-.993-.19-.22-.128-1.404.079-1.498 3.134-5.73.854-6.7-1.003-.427-2.791.709-3.753 1.084a60 60 0 0 1-5.731 1.9c.932-1.857 2.708-5.574-.631-4.579-2.602.775-5.026 2.768-7.64 3.705.865-1.417 4.324-5.811 1.198-6.057-.972-.076-3.803 1.748-4.85 2.138-3.137 1.165-6.34 1.92-9.634 2.513-11.198 2.018-24.293 1.442-34.653 6.54-7.988 3.93-15.874 10.029-20.489 17.795-4.447 7.485-6.11 15.676-7.041 24.253-.683 6.295-.739 12.802-.42 19.119.105 2.07.338 11.61 3.345 8.721 1.498-1.44 1.487-7.253 1.864-9.22.751-3.916 1.474-7.848 2.726-11.638 2.206-6.68 4.809-13.793 10.305-18.393 3.527-2.952 6.004-6.941 9.379-9.919 1.516-1.337.36-1.198 2.797-1.022 1.638.117 3.282.162 4.923.205 3.796.099 7.598.074 11.395.087 7.647.028 15.258.136 22.898-.265 3.395-.177 6.799-.274 10.185-.588 1.891-.175 5.247-1.387 6.804-.461 1.425.847 2.905 3.615 3.928 4.748 2.418 2.679 5.3 4.724 8.126 6.92 5.895 4.58 8.87 10.332 10.66 17.488 1.784 7.13 1.284 13.745 3.491 20.762.389 1.233 1.416 3.36 2.682 1.454.235-.354.175-2.3.175-3.42 0-4.52 1.144-7.91 1.13-12.46-.056-13.832-.504-31.868-10.85-42.439"></path></defs><mask id="ShortHairShortFlat-mask2" fill="#fff"><use href="#ShortHairShortFlat-path2"></use></mask><g id="Top/Short-Hair/Short-Flat" mask="url('#ShortHairShortFlat-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortFlat-path1" transform="translate(-1)"></use></g></g>',1),zh=[Hh];function Ih(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...zh])}const Gh={render:Ih},jh=t.createStaticVNode('<g id="Top"><defs><path id="Hijab-path1" d="M0 0h264v280H0z"></path><path id="Hijab-path2" d="M66.042 77.075C71.68 45.205 99.513 21 133 21c37.555 0 68 30.445 68 68v30.751q1.313 14.705 2.456 20.603c1.377 7.104 5.694 4.761 5.694 14.866s-4.328 13.5-4.347 22.485c-.019 8.986 15.397 16.131 15.397 27.538s-7.074 65.233-77.622 65.233q-22.605 0-38.51-12.862Q105.091 267.349 106 280H59c.932-23.771-7.284-37.064-7.284-63.554S65.353 151.428 65 142q.03-.873.062-2.068A69 69 0 0 1 65 137V89c0-3.976.341-7.872.996-11.661L66 77zM132.5 53C102.4 53 78 77.4 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23c0-30.1-24.4-54.5-54.5-54.5z"></path></defs><mask id="Hijab-mask1" fill="#fff"><use href="#Hijab-path1"></use></mask><g id="Top/Accesories/Hijab" mask="url('#Hijab-mask1')"><g transform="translate(-1)"><mask id="Hijab-mask2" fill="#fff"><use href="#Hijab-path2"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Hijab-path2"></use><path id="Band" fill="#FFF" stroke="none" d="M72.074 104.96A61.4 61.4 0 0 1 71 93.5C71 59.534 98.758 32 133 32s62 27.534 62 61.5c0 3.916-.369 7.747-1.074 11.46C192.34 72.683 165.67 47 133 47s-59.341 25.683-60.926 57.96" mask="url('#Hijab-mask2')" opacity=".5"></path><path id="Shadows" fill="#000" stroke="none" d="M187.93 104.695A55 55 0 0 1 189 115.5v23c0 30.1-24.4 54.5-54.5 54.5h-3c-30.1 0-54.5-24.4-54.5-54.5v-23c0-3.7.369-7.312 1.07-10.805Q78 106.089 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23q0-1.41-.07-2.805m-73.763 102.3c6.484 4.986 21.496 6.713 38.238 3.761 16.74-2.951 30.257-9.71 34.645-16.612q.102.379.171.767c1.71 9.695-13.236 20.434-33.38 23.987-20.146 3.552-37.863-1.428-39.573-11.123a9 9 0 0 1-.101-.78m11.868 28.926c8.192 5.654 24.387 5.923 41.069-.149s28.915-16.687 31.556-26.284q.215.48.396.98c4.527 12.436-8.077 28.441-28.151 35.748s-40.017 3.147-44.544-9.29q-.181-.498-.326-1.005" mask="url('#Hijab-mask2')" opacity=".16"></path></g></g></g>',1),qh=[jh];function Wh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...qh])}const Yh={render:Wh},Uh=t.createStaticVNode('<g id="Top"><defs><path id="LongHairShavedSides-path2" d="M0 0h264v280H0z"></path><path id="LongHairShavedSides-path3" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="LongHairShavedSides-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><rect id="LongHairShavedSides-path4" width="112" height="150" x="0" y="0" rx="56"></rect></defs><mask id="LongHairShavedSides-mask2" fill="#fff"><use href="#LongHairShavedSides-path2"></use></mask><g id="Top/Long-Hair/Shaved-Sides" mask="url('#LongHairShavedSides-mask2')"><g transform="translate(-1)"><g id="Behind" fill="none" transform="translate(1)"><mask id="LongHairShavedSides-mask3" fill="#fff"><use href="#LongHairShavedSides-path3"></use></mask><path fill="var(--avataaar-hair-color)" d="M116.18 40H146c25.405 0 46 20.595 46 46v68.109c0 26.541 18.759 50.24 30.61 71.943s-7.355 42.19-26.84 50.717A38.5 38.5 0 0 1 180.332 280h-45.068c-56.352 0-65.046-63.69-67.566-133.496l2.52-62.36C71.213 59.48 91.497 40 116.179 40Z" class="CustomColor" mask="url('#LongHairShavedSides-mask3')"></path></g><g id="Top" fill="none" transform="translate(77 36)"><mask id="LongHairShavedSides-mask1" fill="#fff"><use href="#LongHairShavedSides-path4"></use></mask><path id="Shadow" fill="#000" d="M98.801 19.94C107.027 29.484 112 41.91 112 55.5v10-4c0-15.74-6.672-29.92-17.342-39.87q-46.107 16.57-77.717.378C6.505 31.937 0 45.958 0 61.5v4-10c0-13.607 4.987-26.05 13.233-35.6-3.834-3.04-4.974-11.713 6.234-15.023 11.845-3.499 9.84-18.079 27.99-20.803C65.61-18.65 63.972-11.375 81.03-12.35c17.057-.974 22.607-16.763 25.82-12.724 12.74 16.01 9.572 34.414-8.048 45.014Z" mask="url('#LongHairShavedSides-mask1')" opacity=".16"></path></g><path fill="#E0C863" d="M90.878 52.361q33.225 19.299 83.366 0c14.53-7.772 25.087-23.319 8.707-43.398-2.169-2.658-10.707 6.713-27.6 7.687s-13.271-3.3-31.248-.576-15.991 17.304-27.722 20.803c-11.73 3.498-9.803 12.987-5.503 15.484" class="CustomColor"></path></g></g></g>',1),Xh=[Uh];function Zh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Xh])}const Qh={render:Zh},Kh=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortRound-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortRound-path1" d="M167.309 35.006c-20.188-11.7-40.18-9.784-55.272-5.976s-24.02 14.621-31.68 30.618c-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677 6.401-8.327 17.482-8.802 26.28-13.384-.764 1.405-3.707 3.68-2.688 5.263.705 1.094 3.37.762 4.643.727 3.349-.092 6.713-.674 10.02-1.147 5.214-.745 10.099-2.255 15.005-4.089 4.016-1.502 8.603-2.892 11.622-6.078 4.87 5.048 11.14 9.795 17.401 13.003 5.618 2.88 14.679 4.318 18.113 10.158 4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153"></path></defs><mask id="ShortHairShortRound-mask2" fill="#fff"><use href="#ShortHairShortRound-path2"></use></mask><g id="Top/Short-Hair/Short-Round" mask="url('#ShortHairShortRound-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortRound-path1" transform="translate(-1)"></use></g></g>',1),Jh=[Kh];function ep(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Jh])}const tp={render:ep},ap=t.createStaticVNode('<g id="Top"><defs><path id="LongHairBigHair-path1" d="M0 0h264v280H0z"></path><path id="LongHairBigHair-path2" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806m-39.501-87.481c-21.52-11.588-39.994-28.18-52.038-47.023C112.764 73.924 76.53 78.535 51.224 94.68A12 12 0 0 0 51 97v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C178.57 121.002 183 116.02 183 110V97q-.001-.853-.116-1.675"></path><path id="LongHairBigHair-path3" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806M93 186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-46H93z"></path></defs><mask id="LongHairBigHair-mask2" fill="#fff"><use href="#LongHairBigHair-path1"></use></mask><g id="Top/Long-Hair/Big-Hair" mask="url('#LongHairBigHair-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBigHair-path2" transform="translate(16 13)"></use><g id="Shadow" fill="none" transform="translate(16 13)"><mask id="LongHairBigHair-mask1" fill="#fff"><use href="#LongHairBigHair-path3"></use></mask><path id="Shadow-Mask" fill="#000" d="M30.099 115.057c-2.374 3.026-5.57 7.471-5.737 7.137 1.873-2.383 3.013-5.182 2.979-8.758.177-18.101-11.904-25.569 0-60.017.669-1.91 1.766-3.715 3.245-5.414-10.343 34.454.783 42.35.617 60.995.02 2.295-.38 4.285-1.104 6.057m172.32-67.052c1.48 1.7 2.577 3.504 3.245 5.414 10.158 29.394 2.852 39.144.6 52.617-.3.805-.069 1.754-.384 2.567-30.673-10.458-58.29-30.043-74.385-52.991-22.784 29.424-73.14 29.761-97.821 55.324.387-.544.754-1.051 1.084-1.49 22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.108-13.833 8.84-23.926.043-53.228" mask="url('#LongHairBigHair-mask1')" opacity=".16"></path></g><path id="Light" fill="#FFF" d="M50.758 122.446c22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.155-14.144 9.144-24.378-.573-55.233-11.637-36.46-41.714-45.232-84.8-45.984l-1-.016c-43.086.768-73.163 9.54-84.8 46-11.39 36.16.169 44 0 63 .032 3.753-1.059 6.691-2.85 9.193.183.402 4.153-5.756 6.405-8.747" opacity=".1"></path></g></g></g>',1),np=[ap];function rp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...np])}const op={render:rp},ip=t.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight-path2" d="M133.506 81.335A12 12 0 0 1 140 92v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V181h4c17.49 0 33.525 6.237 46 16.608V74c0-20.435-8.283-38.935-21.674-52.326S94.435 0 74 0C33.13 0 0 33.13 0 74v183.716c13.57-1.94 24-13.61 24-27.716v-45.577A72 72 0 0 1 46 181h4v-18.389a56.23 56.23 0 0 1-26-25.365v-61.98c9.147-2.975 18.778-7.249 28.342-12.77 15.403-8.894 28.09-19.555 36.724-30.099a87 87 0 0 0 7.044 15.488c8.768 15.186 21.114 26.349 33.89 32.032v.249q.6.1 1.18.26 1.162.484 2.326.91Z"></path></defs><mask id="LongHairStraight-mask1" fill="#fff"><use href="#LongHairStraight-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M192.506 99.335c4.869 1.773 9.757 2.737 14.494 2.813V92c0-20.435-8.283-38.935-21.674-52.326C198.717 53.065 207 71.565 207 92v123.608C194.525 205.237 178.49 199 161 199h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13a12 12 0 0 0-6.494-10.665m-2.326-.91a12 12 0 0 0-1.18-.26v-.248q.59.262 1.18.509ZM83 155.246a56.23 56.23 0 0 0 26 25.366V199h-4c-7.673 0-15.065 1.2-22 3.423z" opacity=".24"></path></g></g></g>',1),sp=[ip];function lp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...sp])}const cp={render:lp},dp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortWaved-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortWaved-path1" d="M183.68 38.949c5.406-4.95 6.707-14.987 3.638-21.5-3.769-7.995-11.417-8.997-18.746-5.48-6.908 3.315-13.057 4.419-20.622 2.813-7.258-1.541-14.144-4.26-21.647-4.706-12.325-.733-24.3 3.839-32.7 13.053-1.603 1.758-2.894 3.768-4.115 5.805-.976 1.63-2.077 3.38-2.493 5.258-.198.894.17 3.098-.275 3.83-.48.79-2.296 1.515-3.069 2.102-1.567 1.189-2.924 2.53-4.18 4.047-2.666 3.222-4.133 6.587-5.368 10.572-4.102 13.245-4.45 28.998.854 42.004.707 1.734 2.898 5.352 4.186 1.638.255-.734-.334-3.194-.333-3.935.005-2.72 1.506-20.729 8.047-30.817 2.13-3.284 11.973-15.58 13.984-15.68 1.065 1.693 11.88 12.51 39.942 11.242 12.662-.572 22.4-6.26 24.738-8.727 1.028 5.533 12.992 13.816 14.815 17.224 5.267 9.846 6.435 30.304 8.445 30.265s3.453-5.237 3.867-6.23c3.072-7.375 3.595-16.632 3.267-24.559-.427-10.202-4.638-21.226-12.235-28.22Z"></path></defs><mask id="ShortHairShortWaved-mask2" fill="#fff"><use href="#ShortHairShortWaved-path2"></use></mask><g id="Top/Short-Hair/Short-Waved" mask="url('#ShortHairShortWaved-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortWaved-path1" transform="translate(-1)"></use></g></g>',1),up=[dp];function fp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...up])}const mp={render:fp},hp=t.createStaticVNode('<g id="Top"><defs><path id="LongHairBob-path1" d="M0 0h264v280H0z"></path><path id="LongHairBob-path2" d="M38 79.36V111c0 22.34 13.08 41.623 32 50.611v13.135c-19.637 2.688-35.359 7.418-46.615 6.254C9.162 179.53 1.496 150.796 1 126 .383 95.164 29.319 30.795 40 18 47.923 8.509 69.695.55 94 1s46.862 5.812 55 16c12.324 15.428 37.869 74.079 38 109 .094 24.8-9.537 49.66-23 51-11.08 1.103-26.524-1.489-46-3.003v-12.386c18.92-8.988 32-28.272 32-50.611V82.988q-14.282-7.286-25.846-17.647 4.812 7.944 10.46 13.532-40.526-11.37-64.473-38.528Q58.169 65.042 38 79.36"></path></defs><mask id="LongHairBob-mask1" fill="#fff"><use href="#LongHairBob-path1"></use></mask><g id="Top/Long-Hair/Bob" mask="url('#LongHairBob-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBob-path2" transform="translate(39 19)"></use></g></g></g>',1),pp=[hp];function gp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...pp])}const yp={render:gp},kp=t.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight2-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight2-path2" d="M21 157.54V69.047c0-3.532.398-6.971 1.152-10.275C25.205 38.731 36.775 22.811 50 13c19.905-14.76 53.442-19.018 65.047-1.478C123.698 7.681 136.52 11.182 146 20c9.565 9.415 17.2 30.197 12.657 47.204q.158 1.898.158 3.837v21.851A12.01 12.01 0 0 0 149 83.166V83c-6.036-21.536-23.77-31.42-34.57-41.223C97.535 60.673 44.823 60.74 27 98v10c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V166c2.93 43.855-6.642 98.797-69 82 13.606-7.962 20.808-58.944 21-90.46m96 8.071c17.53-8.328 30.048-25.496 31.791-45.744a12.01 12.01 0 0 0 10.024-9.76v1.363a100 100 0 0 0 10.963 45.524l26.949 52.707c6.963 13.619 4.919 29.473-3.936 40.768C189.966 213.289 158.903 184 121 184h-4z"></path><path id="LongHairStraight2-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraight2-mask1" fill="#fff"><use href="#LongHairStraight2-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight2-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight2-path2" transform="translate(40 15)"></use><path id="Shadow" fill="#000" d="M67 113c17.823-32.335 70.535-32.393 87.43-48.792 10.778 8.49 28.462 15.059 34.533 33.66-6.071-21.444-23.755-31.308-34.533-41.09C137.535 75.672 84.823 75.74 67 113" opacity=".16"></path></g></g></g>',1),bp=[kp];function xp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...bp])}const wp={render:xp},vp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairSides-path1" d="M0 0h264v280H0z"></path><path id="ShortHairSides-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairSides-path3" d="M6 28c-5.076.071-6-1.006-6-5C0 17.344 4.04 6.778 8 2c1.176-2.17 3.619-3.432 3 1-2.66 8.477.417 24.914-5 25m114 0c-5.417-.086-2.34-16.523-5-25-.619-4.432 1.824-3.17 3-1 3.96 4.778 8 15.344 8 21 0 3.994-.924 5.071-6 5"></path></defs><mask id="ShortHairSides-mask2" fill="#fff"><use href="#ShortHairSides-path1"></use></mask><g id="Top/Short-Hair/Sides" mask="url('#ShortHairSides-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairSides-path3" transform="translate(70 74)"></use></g></g></g>',1),Ep=[vp];function Cp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ep])}const Sp={render:Cp},Mp=t.createStaticVNode('<g id="Top"><defs><path id="LongHairBun-path2" d="M0 0h264v280H0z"></path><path id="LongHairBun-path1" d="M114.94 28.337q-1.48.334-2.903.693c-15.092 3.808-24.02 14.621-31.68 30.618-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677C91.188 60.521 95.765 43.206 133 41.671s48.749 25.79 52.183 31.63c4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153-5.443-3.154-10.87-5.319-16.192-6.723C154.177 25.31 156 21.568 156 17.5 156 7.835 145.703 0 133 0s-23 7.835-23 17.5c0 4.092 1.846 7.857 4.94 10.837"></path></defs><mask id="LongHairBun-mask2" fill="#fff"><use href="#LongHairBun-path2"></use></mask><g id="Top/Long-Hair/Bun" mask="url('#LongHairBun-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBun-path1" transform="translate(-1)"></use></g></g>',1),Bp=[Mp];function Ap(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Bp])}const Vp={render:Ap},_p=t.createStaticVNode('<g id="Top"><defs><path id="LongHairStraightStrand-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraightStrand-path2" d="M8.461 88.694C8.161 89.744 8 90.854 8 92v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V181h-4c-15.619 0-30.076 4.973-41.875 13.423A73.9 73.9 0 0 1 0 170V74C0 33.13 33.13 0 74 0s74 33.13 74 74v96a73.9 73.9 0 0 1-4.125 24.423C132.076 185.973 117.619 181 102 181h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C135.57 116.002 140 111.02 140 105V92c0-1.69-.349-3.297-.979-4.755-12.956-2.188-27.542-7.476-41.872-15.75-12.132-7.004-22.503-15.237-30.48-23.743q5.14 11.862 12.45 20.783-19.013-8.285-25.892-26.639a100 100 0 0 1-1.18 2.762c-9.84 22.1-26.456 38.024-43.586 44.036"></path><path id="LongHairStraightStrand-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraightStrand-mask1" fill="#fff"><use href="#LongHairStraightStrand-path1"></use></mask><g id="Top/Long-Hair/Straight-+-Strand" mask="url('#LongHairStraightStrand-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraightStrand-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M59 102.419v6.419c19.945-3.088 40.59-20.448 52.046-46.18q.615-1.38 1.18-2.762 6.008 16.029 21.27 24.378a78 78 0 0 0 4.622 6.261q-19.012-8.285-25.891-26.639a101 101 0 0 1-1.18 2.762C99.59 92.39 78.944 109.75 59 112.838zm148-1.279v9.14c-14.953-.867-33.099-6.535-50.851-16.785-10.273-5.93-19.283-12.743-26.646-19.855a99 99 0 0 1-3.833-7.888c7.976 8.506 18.347 16.74 30.479 23.743 17.752 10.25 35.898 15.918 50.851 16.786z" opacity=".16"></path></g></g></g>',1),Np=[_p];function Dp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Np])}const Tp={render:Dp},Pp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesar-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesar-path2" d="M1 64c.347 1.488 1.673 1.223 2 0-.463-1.554 3.296-28.752 13-36 3.618-2.517 23.008-4.768 42.313-4.754C77.409 23.259 96.42 25.51 100 28c9.704 7.248 13.463 34.446 13 36 .327 1.223 1.653 1.488 2 0 .72-10.298 0-63.726-57-63S.28 53.702 1 64"></path></defs><mask id="ShortHairTheCaesar-mask1" fill="#fff"><use href="#ShortHairTheCaesar-path1"></use></mask><g id="Top/Short-Hair/The-Caesar" mask="url('#ShortHairTheCaesar-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesar-path2" transform="translate(75 34)"></use></g></g></g>',1),Op=[Pp];function Fp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Op])}const Lp={render:Fp},$p=t.createStaticVNode('<g id="Top"><defs><path id="LongHairCurly-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurly-path2" d="M48.725 89.219A12 12 0 0 0 42 100v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V189h-4q-2.38 0-4.721.152a72 72 0 0 1-13.689-9.103A48 48 0 0 1 48 182c-26.51 0-48-21.49-48-48 0-14.41 6.349-27.335 16.402-36.134A43.8 43.8 0 0 1 8 72c0-21.84 15.911-39.962 36.774-43.41C51.019 11.89 67.12 0 86 0a43.8 43.8 0 0 1 22 5.886A43.8 43.8 0 0 1 130 0c18.88 0 34.981 11.89 41.226 28.59C192.09 32.039 208 50.16 208 72a43.8 43.8 0 0 1-8.402 25.866C209.65 106.665 216 119.591 216 134c0 26.51-21.49 48-48 48-4.72 0-9.281-.681-13.59-1.951a72 72 0 0 1-13.689 9.103A73 73 0 0 0 136 189h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C169.57 124.002 174 119.02 174 113v-13a11.99 11.99 0 0 0-5.476-10.073 24 24 0 0 1-3.235-1.47q-.63-.18-1.289-.291v-.453c-8.68-5.303-17.235-16.538-22.55-30.914C131.312 58.835 119.547 60 107 60c-11.961 0-23.212-1.059-33.02-2.921C68.756 71.064 60.465 82.043 52 87.423v.743a12 12 0 0 0-3.275 1.053"></path></defs><mask id="LongHairCurly-mask1" fill="#fff"><use href="#LongHairCurly-path1"></use></mask><g id="Top/Long-Hair/Curly" mask="url('#LongHairCurly-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M105.985 27.764C114.013 26.627 122.796 26 132 26c10.358 0 20.183.794 29 2.216C183.451 38.75 199 61.56 199 88v17.044c-11.538-.371-25.169-14.28-32.55-34.245C156.312 72.835 144.547 74 132 74c-11.961 0-23.212-1.059-33.02-2.921-7.304 19.548-20.597 33.223-31.98 33.943V88c0-26.825 16.004-49.913 38.985-60.236" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurly-path2" transform="translate(25 10)"></use></g></g></g>',1),Rp=[$p];function Hp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Rp])}const zp={render:Hp};function Ip(e,a){return t.openBlock(),t.createElementBlock("svg")}const Gp={render:Ip},jp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesarSidePart-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesarSidePart-path2" d="M82.018 24.378c-7.032-.693-15.36-1.127-23.705-1.132C39.008 23.232 19.618 25.483 16 28 6.296 35.248 2.537 62.446 3 64c-.327 1.223-1.653 1.488-2 0C.28 53.702 1 1.726 58 1s57.72 52.702 57 63c-.347 1.488-1.673 1.223-2 0 .463-1.554-3.296-28.752-13-36-1.76-1.224-7.247-2.39-14.641-3.261L89 16z"></path></defs><mask id="ShortHairTheCaesarSidePart-mask1" fill="#fff"><use href="#ShortHairTheCaesarSidePart-path1"></use></mask><g id="Top/Short-Hair/The-Caesar-+-Side-Part" mask="url('#ShortHairTheCaesarSidePart-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesarSidePart-path2" transform="translate(75 34)"></use></g></g></g>',1),qp=[jp];function Wp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...qp])}const Yp={render:Wp},Up=t.createStaticVNode('<g id="Top"><defs><path id="LongHairCurvy-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurvy-path2" d="M162.831 71.618A57 57 0 0 1 163 76v38c0 22.34-13.08 41.623-32 50.611V183h4c1.524 0 2.038.047 3.539.14-14.913 27.356-18.715 50.434-1.067 64.403 1.698 1.203 2.924 1.786 3.135 1.885 2.373 1.118 4.837 2.34 7.467 2.955 4.623 1.08 9.933-.373 14.557-.953 2.112-.266 4.217-.43 6.346-.436 2.565-.009 5.211.084 7.142 1.697 1.884 1.574 1.644 7.198-3.875 9.833 4.1 1.855 9.012-2.453 10.688-5.177 1.466-2.385 2.594-4.968 3.214-7.605.772-3.283.822-6.725.218-10.014-1.258-6.848-4.176-13.432-6.163-20.122-.732-2.466-1.686-5.165-2.102-7.69-.113-.684-.247-3.215-.141-3.744.078-.393.059-.797 1.415-1.176 3.916-1.096 8.007-2.933 10.852-5.52 3.365-3.058 5.119-7.03 6.533-10.979 2.24-6.252 3.523-12.947 4.113-19.44.122-1.349.191-2.695.215-4.047.015-.817-.085-1.747.008-2.565.153-1.34-.054-.987 1.248-1.874 4.257-2.9 7.58-7.122 9.71-11.37 3.346-6.672 3.782-13.708 1.066-20.467-2.253-5.607-5.827-11.235-11.392-14.846-2.137-1.386-4.392-2.643-6.61-3.93-1.21-.7-4.048-1.615-4.906-2.517-.6-.63.355-3.792.476-4.858.528-4.648-.08-9.157-1.165-13.696-2.394-10.008-12.033-26.149-15.903-35.662-3.325-8.172-8.136-55.3-65.031-55.026C51.69.473 41.419 50.438 33.716 59.774c-8.365 10.138-16.809 29.402-11.113 47.262-5.504 6.922-18.058 17.008-21.218 27.09-1.982 6.325-1.897 13.37.644 19.507 1.437 3.471 3.496 6.618 5.911 9.64 2.117 2.646 4.468 5.15 6.518 7.837 1.237 1.622 1.568 2.02 1.102 4.018-.92 3.94-2.819 7.725-4.466 11.475-2.552 5.81-4.697 11.22-5.014 17.413-.302 5.896 1.324 22.673 18.261 32.56a63 63 0 0 0 6.042 3.11c-1.09-3.396.146-15.524 2.343-20.032.56 1.55 1.511 3.043 2.536 4.398 1.6 2.115 5.374 7.409 10.147 7.655-1.937-2.984-4.02-4.998-4.624-8.598 3.977 1.96 9.634 3.747 14.262 3.582 3.404-.12 8.424-1.82 10.953-3.943-8.372 1.327-16.321-1.433-19.518-7.329-.667-1.23-1.174-2.52-1.468-3.86-.417-1.9-1.076-4.944-.191-6.697.215-.426.566-.86.984-1.29l-.197-.235c5.694-4.787 12.84-12.404 16.665-17.97q.106-.183.21-.367h.04l.085-.126A72.2 72.2 0 0 1 79 183h4v-18.389C64.08 155.623 51 136.339 51 114V76c0-2.463.159-4.888.467-7.267 3.942-1.263 7.898-2.455 11.932-3.528 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 2.503 2.279 7.226 4.024 10.574 5.905"></path></defs><mask id="LongHairCurvy-mask1" fill="#fff"><use href="#LongHairCurvy-path1"></use></mask><g id="Top/Long-Hair/Curvy" mask="url('#LongHairCurvy-mask1')"><g transform="translate(-1)"><path id="Top-Shadow" fill="#000" d="M100.9 42.465c-9.798 6.007-18.514 13.862-24.313 22.895-2.762 4.303-5.034 8.84-7.15 13.398a136 136 0 0 0-2.961 6.931c-.587 1.47-1.487 3.056-.64 4.599.517-.302.713-.194.388.347 2.692.734 6.434-1.335 8.767-2.099 4.763-1.56 9.53-3.033 14.408-4.331 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 3.092 2.814 9.569 4.816 12.66 7.263 1.108.876 2.143 1.792 3.183 2.726 1.156 1.037.985 1.188 1.36 2.378.113.356 1.256 2.199 1.743 2.35 1.733.536-10.154-30.486-13.417-34.453-3.368-4.094-25.211-31.654-54.174-30.752" opacity=".16"></path><g id="Hair" fill="none" transform="translate(26 16)"><mask id="LongHairCurvy-mask2" fill="#fff"><use href="#LongHairCurvy-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurvy-path2"></use><path id="Shadow" fill="#000" d="M62.68 184.462c7.075-9.707-.531-36.675-6.552-46.661q25.256-11.495 99.746 4.247-7.192 13.279-5.868 23.71-6.806 8.363-11.246 17.383l-34.871 8.606q-33.054 3.98-41.21-7.285Z" mask="url('#LongHairCurvy-mask2')" opacity=".24"></path></g><path id="Lights" fill="#FFF" d="M79.04 170.094c-.059-.201-.205-.427-.405-.665q.205.331.405.665m-22.63-49.719a88.6 88.6 0 0 0 4.456 18.002c2.062 5.721 4.42 11.46 7.813 16.69 3.161 4.876 6.924 9.425 9.956 14.362-.797-.948-2.472-2.1-3.114-2.778a50 50 0 0 1-2.984-3.458c-1.923-2.443-3.637-5-5.294-7.583-3.252-5.073-5.69-10.576-7.803-16.08-4.15-10.807-8.313-23.913-4.666-35.33-.282.735.459 2.488.575 3.297.204 1.414.386 2.837.478 4.26.185 2.883.184 5.749.583 8.618m12.445 44.666c-1.358-1.731-3.881-3.097-5.442-4.762-1.415-1.51-2.511-3.2-3.506-4.94-2.255-3.94-3.737-7.964-4.217-12.37.11.523.918 1.427 1.173 1.856a85 85 0 0 1 1.788 3.124c1.097 2.04 2.013 4.15 3.122 6.187 2.038 3.74 4.63 7.36 7.082 10.905m4.677 18.458c1.115 1.962 2.04 3.966 2.625 6.102a42 42 0 0 1 .77 3.413c.07.369.082 1.696.258 2.27-2.215-4.291-3.905-8.835-6.543-12.942-2.604-4.054-5.947-7.781-9.446-11.281-3.695-3.695-7.41-7.182-9.392-11.847-1.725-4.06-2.391-8.218-1.99-12.556.002 1.911 1.757 4.622 2.363 6.469.83 2.527 1.489 5.105 2.737 7.507 2.126 4.089 5.959 7.243 9.165 10.688 3.553 3.816 6.946 7.762 9.453 12.177m-14.303-9.32a22 22 0 0 1 2.806 3.275c.898 1.285 1.556 2.636 2.145 4.05.507 1.217.73 3.482 1.527 4.498-2.578-3.146-5.233-6.117-7.011-9.69-.607-1.222-1.548-3.023-2.243-4.495.231.593 2.253 1.86 2.776 2.362m-10.326 6.349c2.838 4.25 6.548 8.081 8.974 12.528 2.83 5.187 4.075 10.807 4.326 16.54.119 2.711.112 5.465-.253 8.168-.196 1.448-.51 2.886-.869 4.312-.136.54-.84 1.926-.977 2.77-.29-10.54 1.454-21.082-4.027-30.903-2.596-4.65-6.586-8.616-9.679-13.018-2.782-3.959-5.498-7.841-7.713-12.074 1.356 1.716 3.8 3.065 5.316 4.769 1.899 2.134 3.348 4.58 4.902 6.908m11.2 44.319c-.032.204-.033.377.014.5l-.013-.5Zm-9.543-22.353c.001.496.816 1.518 1.04 2.035.52 1.209.946 2.478 1.157 3.76.418 2.529-.13 5.14-1.067 7.561-1.9 4.907-4.874 9.253-8.613 13.3 1.335-1.748 1.867-4.589 2.806-6.538.965-2 2-3.97 2.85-6.011 1.92-4.605 1.75-9.311 1.827-14.107M41.917 221.2c.401-.548.193-3.183.405-3.872.392-1.273 1.07-2.502 1.849-3.635-.416.699.198 2.466-.005 3.373-.332 1.489-1.17 2.932-2.249 4.134m57.69-178.453a.9.9 0 0 0-.239.297zm-14.76 21.584c1.42-1.246 2.177-4.19 3.156-5.78 1.125-1.825 2.418-3.579 3.645-5.356 2.432-3.524 4.726-6.984 7.72-10.19-.622.934-1.173 3.768-1.514 4.513a34.6 34.6 0 0 1-3.221 5.605c-2.86 4.044-5.93 7.803-9.786 11.208m-.535-10.21c.75-1.327 1.894-2.448 3.18-3.414-.573.503-.831 2.575-1.225 3.275-.795 1.412-1.953 2.63-3.196 3.772.664-.582.772-2.803 1.24-3.633Zm119.194 98.006-.041.31c-.002-1.525-.68-3.2-.76-4.769-.113-2.19.202-4.315 1.082-6.392 1.74-4.101 5.003-7.207 9.164-9.638-1.145.674-2.267 3.213-3.001 4.268-1.103 1.586-2.282 3.187-3.214 4.85-1.943 3.469-2.506 7.618-3.23 11.371m-1.508-21.646a23 23 0 0 1-.989 3.626c-.474 1.279-1.093 2.523-1.783 3.728-.43.75-1.98 2.327-1.978 3.157-.083-4.898 1.728-9.335 5.172-13.257-.378.657-.283 2.03-.422 2.746m-.801 35.238c3.656-.517 7.105 1.261 9.421 3.551 1.238 1.224 2.338 2.63 3.065 4.133.547 1.13.546 2.983 1.28 3.92-1.797-2.419-4.076-4.373-6.324-6.464-1.564-1.455-4.688-5.181-7.442-5.14m-.778 10.377c-.192-.065-1.934-.558-2.337-.32.597-.267 1.33-.592 1.987-.679 4.284-.569 9.492 3.141 10.067 6.721-.478-1.226-3.025-2.24-4.176-2.85-1.823-.967-3.564-2.137-5.541-2.872m1.809 7.811c.742.182 2.32 1.176 3.047 1.165-2.929.07-5.572-.255-8.391-.914.152.041 1.759-.456 1.811-.463 1.215-.172 2.357-.076 3.533.212m-11.345 13.857c4.288-.242 9.336.384 13.431 1.417a22.3 22.3 0 0 1 5.692 2.295c1.414.814 3.93 1.932 4.876 3.137-3.74-6.452-11.85-9.803-20.16-8.14-1.107.222-2.808 1.276-3.84 1.291Zm-.96 12.433c2.688-.965 5.661-1.894 8.583-2.029 2.771-.127 5.845.29 8.41 1.173-.883-.24-2.993.332-3.92.437-1.297.147-2.596.299-3.896.418a52 52 0 0 1-4.801.222c-1.14-.002-3.32-.54-4.376-.221M179.46 227.41c.253 3.972 2.552 7.434 5.931 10.08 3.583 2.805 8.379 4.082 10.98 7.829 1.267 1.825 1.943 3.95 1.834 6.098-.056 1.106-.334 2.218-.635 3.294-.197.708-.902 1.868-.901 2.559.031-3.887.084-8.412-2.636-11.673-2.731-3.274-7.493-4.427-10.829-7.115-3.278-2.642-5.765-6.094-6.325-9.985-.452-3.144-.23-8.626 3.03-10.76-.662.39-.53 2.374-.547 2.931a74 74 0 0 0 .098 6.742m-2.453 15.262c.396.52 2.57 1.151 3.208 1.51 1.456.817 2.865 1.746 4.02 2.877 2.317 2.266 3.81 5.445 3.918 8.494 0-.72-1.646-2.457-2.109-3.073-.768-1.022-1.635-1.969-2.518-2.917-2.154-2.31-4.39-4.564-6.52-6.891Zm52.162-88.882c1.204 1.05 2.01 2.357 2.675 3.709 1.53 3.12 1.815 6.717.589 10 .203-.704-.401-2.184-.571-2.898-.373-1.563-.955-3.04-1.563-4.542-1.18-2.916-2.134-5.648-4.184-8.202.53.668 2.328 1.3 3.054 1.933M171.51 41.983c0 .332.917 1.293 1.123 1.654.517.902.924 1.849 1.064 2.855.158 1.142-.035 2.259-.381 3.369-.206.66-1.184 1.934-1.184 2.528-.16-3.498-.933-6.86-.622-10.406m7.637 6.822c.165 1.243-.24 2.644-.964 3.742.132-.31-.454-2.383-.473-2.762-.059-1.173.07-2.38.146-3.552.001.64 1.183 1.763 1.291 2.572m-60.77 1.568a35 35 0 0 1-4.15 4.243c-1.023.89-2.984 1.89-3.764 2.91 3.501-5.711 7.546-10.638 12.302-15.63-.716.92-.903 2.916-1.428 3.993-.774 1.587-1.81 3.076-2.96 4.484m5.898 2.479c.57-.336 1.104-1.993 1.538-2.55a17 17 0 0 1 2.578-2.63c-.205.22-.602 2.044-.825 2.402-.723 1.16-2 2.107-3.29 2.778Z" opacity=".6"></path></g></g></g>',1),Xp=[Up];function Zp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Xp])}const Qp={render:Zp},Kp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads01-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads01-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads01-path3" d="M185.832 73.929c1.757.988 3.148 10.899 3.216 14.689.042 2.338.08 11.256-2.394 10.485-.753-.235-1.902-4.956-2.066-7.719s-1.733-12.164-4.141-16.49c-.55-.988-2.126-2.723-1.445-3.56.844-1.036 1.664-.434 2.695-.02 1.115.45 3.937 2.504 4.135 2.615m.805-2.972c-.746.962-5.841-1.74-7.966-2.913-17.845-9.86-21.31-12.995-49.425-12.586-28.116.409-47.379 13.582-48.462 14.93-.754.937-1.716 3.44-2.508 10.413-.791 6.972.22 19.477-2.646 19.462-2.438-.013-2.97-23.786-1.916-33.217.161-1.448.784-4.038.333-5.34-.394-1.138-2.322-1.135-2.014-3.03.35-2.159 2.525-1.087 3.473-2.119 1.795-1.954-.974-2.417-1.433-4.126-.682-2.542 1.29-3.197 3.067-4 1.966-.887 1.71-.108 3.306-1.846-2.131-1.563-2.902-3.691.016-4.833 1.24-.485 4.465.157 5.436-.572.253-.19.353-1.28.51-1.502 1.55-2.219 1.168-3.825 1.01-6.316-.129-2.038-.112-3.909 2.329-4.112 1.628-.136 2.952 1.194 4.411 1.586 1.619.435 1.01.752 2.279-.121 2.226-1.533.711-4.52 2.476-6.303 2.423-2.446 4.01 1.14 5.956 1.41 4.222.588 2.867-3.7 5.367-5.272 2.988-1.876 3.277 2.251 5.143 2.398 1.617.127 4.529-2.993 5.938-3.575 4.183-1.726 6.255 3.13 10.237 2.511 2.89-.45 3.67-.816 6.277.828 2.53 1.595 3.132.454 5.998.432 2.025-.016 3.265 1.676 4.959 1.853.844.088 1.653-.792 2.56-.737 3.237.197 3.442 4.383 6.014 5.536 2.35 1.053 5.112-.427 7.445-.7 5.69-.668 1.793 4.647 1.954 7.819 2.233.52 4.5-1.564 6.724-1.18 3.502.604 2.18 4.233 1.368 6.68 2.427-.044 8.76-2.737 10.332.707.81 1.776-1.078 4.147-1.047 5.952.043 2.542 1.91 4.645 2.571 7.05.892 3.247 2.163 11.95-.072 14.833"></path></defs><mask id="ShortHairDreads01-mask2" fill="#fff"><use href="#ShortHairDreads01-path1"></use></mask><g id="Top/Short-Hair/Dreads-01" mask="url('#ShortHairDreads01-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads01-path3" transform="translate(1)"></use></g></g></g>',1),Jp=[Kp];function eg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Jp])}const tg={render:eg},ag=t.createStaticVNode('<g id="Top"><defs><path id="Turban-path1" d="M0 0h264v280H0z"></path><path id="Turban-path2" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="Turban-path3" d="M83.972 55.817C107.404 69.414 145.115 82.111 139 138q29.066-8.46 29-46.676C167.918 44.148 115.85 0 86 0q-1.012 0-2.008.088A23 23 0 0 0 82 0C52.074 0 .08 44.148 0 91.324Q-.067 130.498 29 138c-6.138-55.889 31.51-68.586 54.972-82.183"></path></defs><mask id="Turban-mask1" fill="#fff"><use href="#Turban-path1"></use></mask><g id="Top/Accesories/Turban" mask="url('#Turban-mask1')"><g id="Turban"><path id="Band" fill="#EDECE3" d="M74.53 97.5c-1-2.41-1.53-4.92-1.53-7.5 0-18.225 26.415-33 59-33s59 14.775 59 33c0 2.58-.53 5.09-1.53 7.5C183.398 82.888 159.972 72 132 72S80.602 82.888 74.53 97.5"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Turban-path3" transform="translate(48 3)"></use><path id="Shadow" fill="#000" d="M48.011 96.012q.555 37.65 28.99 44.988-29.068-7.066-29-43.97 0-.51.01-1.018m104.635-65.544c.744 5.727-.52 12.421-4.646 19.668-11.153 21.43-71.439 21.868-71.666 79.544-.229-61.919 60.471-62.3 71.666-85.136 2.67-4.977 4.141-9.709 4.646-14.076" opacity=".16"></path></g></g></g>',1),ng=[ag];function rg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ng])}const og={render:rg},ig=t.createStaticVNode('<g id="Top"><defs><path id="LongHairDreads-path1" d="M0 0h264v280H0z"></path><path id="LongHairDreads-path2" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99c-2.764-8.607-2.6-17.934-3.21-26.795-.805-11.68-.112-23.078 2.536-34.578 2.39-10.376 5.824-15.941 13.626-24.255 4.36-4.646 10.905-4.915 17.42-6.564 6.593-1.67 12.611-4.21 16.735-8.99 9.083 10.41 33.354 6.664 42.236 18.01 10.802 13.798 10.923 22.7 12.193 38.643.953 11.951-.528 33.564-.943 46.538A56.24 56.24 0 0 1 141 166.611V185h4c6.636 0 13.062.898 19.163 2.578-2.05 3.174-4.494 6.18-7.051 8.973-3.831 4.188-7.681 8.52-12 12.367-4.941 4.401-9.668 7.597-12.668 13.082-1.358 2.483-3.737 5.094-1.22 7.817 2.3 2.487 5.925 1.975 8.386.175 3.637-2.66 6.338-6.858 9.69-9.915-3.238 5.815-7.742 14.484-5.43 21.005.787 2.217 1.586 2.173 2.802 3.65q2.88.066 2.276 2.606l.54 1.451c1.456 2.594 4.243 4.41 7.78 3.188 11.56-3.994-1.775-21.961 10.953-27.302 2.278 2.83-1.086 10.779-1.177 14.256-.111 4.287.122 14.013 6.642 15.179 8.496 1.52 5.22-6.597 5.555-10.05.39-4.016 2.86-9.312 4.87-12.869-1.222 3.78-3.508 12.154 2.817 13.87 7.317 1.986 6.481-6.586 7.592-10.15.229 5.275 7.045 17.749 13.205 7.896 3.173-5.076 1.009-13.441.66-18.854 4.414 4.56 7.94-1.35 7.84-4.63 1.677 4.752 7.982 18.002 13.57 7.485 3.398-6.395-.226-14.985-2.483-21.16 5.944.52 4.75-5.236 3.864-8.095-1.307-4.222-.61-4.841-.34-9.206 8.25 4.805 7.997-8.234 7.542-11.432-1.146-8.051-7.409-15.261-12.243-22.052-3.466-4.871-9.935-13.352-8.038-19.226 1.957 2.468 6.507 2.442 8.316-.142 1.532-2.188-.091-5.796-.83-7.982-2.021-5.98-6.06-9.844-9.711-14.981-7.108-10.001-6.086-23.133-6.743-34.313-.82-13.949-3.814-27.68-16.48-37.827-6.787-5.437-15.058-9.914-21.37-15.682-1.722-1.573-2.45-3.521-4.066-5.038-1.813-1.701-2.66-1.298-4.158-3.72-2.668-4.315-5.802-8.355-12.25-8.558-4.22-.132-9.556 3.43-13.359 2.909-3.122-.427-5.094-4.879-7.656-6.373-3.966-2.312-6.734-1.414-10.972-.075-6.31 1.994-10.33 2.689-16.755.306C97.69 2.539 93.565-.846 88.402.357c-4.05.945-5.858 4.213-8.244 6.718-2.46 2.586-1.271 1.73-4.87 2.305-3.68.588-6.586 1.122-9.378 3.532-4.512 3.895-1.386 9.955-4.953 13.389-1.925 1.854-5.935 2.737-8.165 4.654-2.434 2.092-4.424 4.635-6.248 7.11-3.551 4.823-5.976 10.079-8.58 15.281-4.843 9.681-9.161 19.671-11.002 30.072-.945 5.347-2.538 10.577-3.512 15.912-.75 4.115-.43 8.622-1.896 12.617-1.74 4.74-5.899 9.096-8.152 13.757-2.988 6.183-4.994 12.115-5.63 18.771-.624 6.544 1.113 12.311 1.879 18.727.443 3.717-.324 4.139-2.88 7.647-1.967 2.7-3.96 5.373-5.225 8.378-2.361 5.615-2.23 11.077 1.879 16.013 2.82 3.388 12.299 6.933 11.523-.618-.36-3.508-4.772-5.095-3.93-9.12.584-2.787 3.425-4.715 6.874-5.577 2.436-.608 3.636-.582 4.735 2.09.996 2.42-.325 7.706-.63 10.25-.123 1.023-.305 1.92-.428 2.867-.868 6.674-1.028 12.815-4.682 18.944-2.244 3.766-6.636 9.073-1.628 12.703 3.959 2.87 10.79 1.121 13.877-1.882 3.256 4.027 2.532 8.423 1.314 12.869-.756 2.76-2.824 6.802.431 9.033 4.408 3.021 11.603-1.738 14.908-4.14 1.91 4.268 3.703 19.827 11.235 10.552 2.198-2.705 5.858-5.344 6.555-8.534 1.156-5.29.326-10.858.804-16.202 2.404 6.997 4.038 9.787 5.51 16.97.884 4.321 1.231 18.82 10.174 16.91 6.88-1.47 2.48-10.524 1.601-14.215-1.683-7.07-2.496-10.063-4.122-17.14 2.533 4.626 4.746 9.371 7.18 14.034 2.39 4.58 13.078 14.027 16.205 10.05 3.127-3.978-4.496-9.645-6.23-14.46-3.609-10.024-7.98-20.006-9.017-30.508-.499-5.049.436-9.712.846-14.703.28-3.41-.141-6.902-.812-10.34"></path></defs><mask id="LongHairDreads-mask2" fill="#fff"><use href="#LongHairDreads-path1"></use></mask><g id="Top/Long-Hair/Dreads" mask="url('#LongHairDreads-mask2')"><g transform="translate(-1)"><g id="Hair" transform="translate(16 14)"><mask id="LongHairDreads-mask1" fill="#fff"><use href="#LongHairDreads-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairDreads-path2"></use><path id="Shadows" fill="#000" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99 37 37 0 0 0 1.95 4.888c5.756 11.833 13.257 22.412 16.327 35.08.435 1.798.869 3.633 1.23 5.484m78.445 2.505A72 72 0 0 0 145 185h-4v-18.389a56.24 56.24 0 0 0 25.502-24.404c-.077 2.994-.01 5.972.373 8.849 1.07 8.044 4.001 15.31 2.64 23.58-.744 4.532-2.725 8.875-5.352 12.942" mask="url('#LongHairDreads-mask1')" opacity=".24"></path><path id="Highlights" fill="#FFF" d="M49.36 108.248c-.124-2.422-1.98-10.537.329-11.939 2.53-1.537 2.002 7.707 2.028 8.654.044 1.537 1.211 13.135-.927 13.084-2.132-.051-1.347-8.219-1.43-9.799m8.435 57.75c-.009 1.014-1.072.953-1.832.688-.937-.328-.363-2.484-.413-3.191-.13-1.86-1.023-7.338.34-8.873 2.726-3.069 1.916 9.948 1.905 11.376m-25.674 13.163c1.93-.054.144-37.832-2.821-37.79-2.083.03 1.361 37.827 2.821 37.79m2.232 19.355c-2.397 0-1.957 8.462-.545 9.139 2.14 1.025 3.227-9.139.545-9.139m15.237 3.539c.021 1.058-1.179 1.074-1.98.744-.908-.376-.528-3.506-.563-4.2-.114-2.188-2.017-10.672-.286-12.231 1.974-1.778 2.017.173 2.548 1.498 1.564 3.903.197 10.032.28 14.189Zm140.652-79.722c.11 1.463 1.069 11.018-.524 11.746-2.742 1.254-1.561-4.65-1.55-5.413.107-7.437-.969-14.812-1.787-22.21-.155-1.404-2.625-12.224-.816-13.12 2.707-1.342 2.303 2.245 2.458 3.41 1.129 8.468 1.628 17.078 2.22 25.587Zm-3.219 33.254c-2.532-.502-3.858 8.094-2.702 9.016 1.917 1.53 5.35-8.49 2.702-9.016m-.268 37.798c-1.139-.226-9.433 15.733-8.75 16.635 1.299 1.719 12.829-15.82 8.75-16.635m-20.422 7.374c-1.782-.803-9.334 10.75-7.406 11.619 1.748.786 9.561-10.652 7.406-11.62Zm42.092-43.312c-2.15 0-2.055 11.822-.4 12.568 1.711.77 2.942-12.568.4-12.568M178.14 48.844c-.609-.87-7.175-8.62-2.472-7.513 2.291.539 5.448 7.352 6.481 9.41.594 1.183 3.985 6.46.392 6.086-.977-.101-3.59-6.82-4.401-7.983m-23.092-15.488q-1.27.572.042 1.072 1.27-.57-.042-1.072m-84.43 8.13c-2.004 1.844-9.542 12.519-12.125 12.626-4.707.195 4.278-9.025 5.297-10.198.455-.527 2.486-3.092 3.722-3.723 1.261-.643 5.444-.859 3.107 1.295ZM43.255 69.981c-2.183-.43-5.835 10.264-4.56 11.555 1.923 1.95 7.007-11.07 4.56-11.555m24.939 119.011c.412 1.341 4.631 11.08 3.571 12.361-1.621 1.958-2.087-.817-2.617-1.967-1.178-2.555-4.238-8.846-3.746-11.536.477-2.608 2.375-.201 2.792 1.142m-8.207 22.824c-2.295 0-2.03 9.802-.663 10.385 2.116.902 3.478-10.385.663-10.385m161.805-8.37c.137.604 2.054 5.563-.663 4.845-1.562-.413-1.802-4.785-2.201-6.11-1.23-4.086-5.28-9.163-5.632-13.194-.34-3.897 1.84-2.412 3.515.889 2.236 4.407 3.913 8.87 4.981 13.57m-19.702-.495c-2.132-.01-2.235 10.773-.902 11.402 1.864.878 3.621-11.402.902-11.402m6.16-88.297c1.582-.412-3.41-13.325-5.177-13.183-2.695.217 2.776 13.803 5.178 13.183Zm-26.815 56.093q-1.27.57.043 1.071 1.27-.57-.043-1.071m-24.218 55.24c.794 0 1.121-1.223-.051-1.25-.775.006-1.184 1.25.051 1.25M58.684 170.63c.03-1.909-2.469-.51-2.453 1.101.032 3.214 2.4 1.746 2.453-1.101m-6.165-47.746c-.804 0-1.134 1.236.05 1.266.785-.006 1.198-1.266-.05-1.266m-19.132 62.51c-.078-1.941-1.7.043-1.61.046.288.007 1.67 1.417 1.61-.046M37.6 84.063c-2.368 0-2.025 5.754-.514 6.123 2.52.616 2.865-6.123.514-6.123m12.613 124.263c-2.286 0-2.44 7.814-.863 8.3 2.451.754 3.243-8.3.863-8.3m-18.756 5.606q-1.308.587.042 1.103 1.309-.585-.042-1.103m169.999 3.35c-2.32 0-2.23 9.554-.805 10.2 1.99.902 3.488-10.2.805-10.2m-23.51 8.88c-2.411-.482-3.674 7.405-2.55 8.29 1.852 1.459 5.025-7.796 2.55-8.29m-20.48 7.29c-1.998 0-1.508 3.574-.355 4.106 1.994.92 2.583-4.107.354-4.107ZM86.48 19.508c-1.672 0-12.16 4.744-8.24 6.15 2.396.859 12.497-6.15 8.24-6.15" mask="url('#LongHairDreads-mask1')" opacity=".3"></path></g></g></g></g>',1),sg=[ig];function lg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...sg])}const cg={render:lg},dg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads02-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads02-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads02-path3" d="M153.503 98.874C157.9 100.654 161 104.965 161 110v13c0 5.288-3.42 9.776-8.168 11.375a55.7 55.7 0 0 1-11.076 29.29c.209.807.41 1.625.556 2.503.55 3.327-.12 6.093 1.645 9.093.457.78 1.183 1.247 1.522 2.144.533 1.415-.232 4.594 1.95 4.595 3.106 0 1.374-5.966.596-7.384-1.525-2.772-2.462-3.45-2.383-7.044 1.745 1.16 7.53 3.376 9.448 2.316 4.432-2.448-6.662-4.936-7.438-5.453 1.704-1.666 3.656-2.55 5.197-4.746 1.26-1.793 2.406-4.397 4.55-4.501 1.186-.058 4.657 2.884 5.71.866.964-1.85-1.115-2.122-1.928-2.777-1.502-1.21-1.84-.006-1.474-2.134 1.085 1.165 2.789.429 3.244-1.015.49-1.559-1.127-2.024-1.097-3.014-.012.387.834-5.115.7-4.938.86-1.135 3.908-.784 5.413-.62 2.296.248 2.164.317 3.255 2.436.882 1.715 3.198 5.178 3.707.641.121-1.085-.869-3.404-1.45-4.338-.627-1.007-2.517-1.643-2.912-2.427-.944-1.87 2.165-6.034 1.639-8.854 1.093.418 3.857 6.927 5.198 1.599.707-2.8-6.505-8.945-3.514-9.894 2.289-.726 4.612 2.225 5.25 4.044.473 1.348.26 4.238 1.068 5.353 3.036 4.203 3.41-2.74 3.157-4.572-.559-4.026-1.984-6.988-5.623-8.51 1.295-1.607-.345-2.887-1.275-3.893 1.528-1.657 11.437.104 9.208-4.327-.538-1.072-2.481-1.262-3.467-1.655-2.49-.992-4.985-3.01-6.257-5.562 1.841-.46 7.28.798 6.565-2.996-.563-2.982-5.403-2.067-7.278-1.61 1.692-1.016 4.973-.174 5.434-2.941.531-3.183-3.288-3.076-5.08-2.402-.422-3.358 5.53-5.83 7.213-8.4.568-.867 1.47-1.164.746-2.633-1.306-2.643-4.68 1.086-5.792 2.09.876-1.628 3.32-8.403 2.95-10.122-.546-2.526-2.353-2.615-3.79-.568-.93 1.33-1.19 4.703-1.68 6.427-2.04-1.537-2.143.246-2.248-2.191-.068-1.58 2.002-4.701 2.532-6.248.456-1.329 1.668-3.76.943-5.046-1.776-3.143-3.473 1.172-3.94 2.652-.789-3.411 2.214-6.057 3.103-9.431.541-2.048 1.976-7.578-.51-8.561-3.394-1.341-2.2 4.956-2.678 7-.365 1.559-.922 4.077-2.139 4.845-.176.111-2.82.343-2.948.193-1.734-2.021 3.038-6.447 3.284-8.351.223-1.73-.44-2.825-2.061-2.929-.81-.051-2.12 1.2-2.495 1.119-1.48-.322.447-7.089.587-8.967.15-2.003-.094-7.172-3.483-4.785.227-2.697.364-5.236.734-7.891.195-1.4 1.398-2.645-.374-3.767-2.156-1.365-3.35 1.492-3.842 3.168-.846 2.885.9 7.375-3.158 7.466-4.665.106-1.444-4.73-1.215-7.868.128-1.74-1.012-6.421-3.262-3.263-.896 1.259-.587 5.694-1.084 7.183-1.106-.493.733-4.515-.23-5.564-2.06-2.247-3.788 1.026-5.099 1.692-.086-1.445-.187-2.891-.248-4.338-.093-2.2 1.255-6.83-.113-8.347-2.337-2.59-3.823.431-4.506 2.523-.613 1.884-.697 3.744-3.233 4 .208-2.717-2.258-8.436-1.035-10.727.553-1.035 1.679-.301 2.179-1.46.821-1.902-.524-2.71-1.986-2.771-6.792-.286-1.562 9.134-3.969 11.491-1.099-1.04.072-2.113-1.065-3.596-1.223-1.595-3.173-1.46-4.918-.738-.056-1.613 2.364-12.92-3.08-7.817-1.352 1.271-.974 3.393-1.693 4.886-.696 1.445-2.39 3.598-3.341 4.771-.51-2.067.272-4.63.82-6.666.38-1.415 2.931-5.805 2.387-7.244-1.58-4.167-6.323 2.72-7.572 3.832-1.582 1.41-7.88 6.045-9.901 4.64-.701-.487-.07-2.29-1.027-3.128-.47-.41-2.477-.6-3.05-.548.358-1.494-.346-3.427-2.055-2.91-2.149.65-1.219 3.838-2.58 5.002-2.53 2.164-5.535-2.112-8.245-1.992.414-1.755 3.485-8.062-1.399-6.144-1.246.49-2.13 3.351-2.44 4.54-.792 3.036-.222 3.593-3.509 4.45.257-1.76-.2-3.948.649-5.521.696-1.289 4.305-4.645.462-5.063-4.74-.516-4.274 7.672-4.855 10.44-4.206-2.549-6.974 1.098-9.48 4.252.447-1.419 1.553-15.557-2.965-11.237-1.292 1.237.138 3.066.05 4.478-.078 1.28-.5 2.422-.995 3.618-.796 1.921-1.72 3.887-2.974 5.524-1.573 2.059-1.015 2.22-2.82.823-2.425-1.873-3.577-6.624-3.457-9.525.09-2.16 1.196-6.548-2.384-5.531-3.507.996-1.649 7.974-1.296 10.453.381 2.687.635 5.436.183 8.173-2.984-3.05-3.42 3.302-4.017 4.385-.98 1.777-2.868 2.647-4.335 3.86-.8-2.794 2.405-5.157 1.77-7.38-1.194-4.165-4.571 1.716-5.313 2.87-.619.963-2.635 6.442-3.365 6.933-1.023.69-7.605-2.527-8.27-3.14-1.223-1.125-.778-4.272-2.316-4.99-4.72-2.197-1.932 5.735-1.005 7.375 2.419 4.284 3.516 9.456 2.949 14.504-.858-.302-1.915-1.312-2.468-2.077-1.076-1.49-.685-3.865-1.808-4.987-3.288-3.28-3.673 2.878-3.406 4.791.5 3.588 2.291 4.75 3.778 7.734 1.368 2.75-.445 6.069-.828 9.125-3.429-3.3-18.195-.543-14.396 4.502 1.978 2.633 4.318-2.377 6.598-2.25 4.083.225 6.235 5.295 5.967 8.846-.497-1.898-2.422-3.761-3.746-1.444-.897 1.573.635 4.26 1.374 5.823-.906-.444-5.372-2.52-6.246-2.161-3.44 1.414 1.3 4.151 2.537 4.698 4.224 1.868 6.887 3.92 8.2 8.992-2.367-.757-1.955-1.878-3.552-3.043-1.466-1.07-1.74-.518-3.09-.868-2.362-.611-5.441-1.427-8.11-.318-1.97.819-5.287 3.31-5.906 5.65-.757 2.874.844 3.606 2.904 2.143 2.45-1.739 2.897-5.105 6.583-4.96 1.769.068 3.52.995 4.64 2.325.835.993 1.323 2.43 2.12 3.495.703.94 2.564 2.259 2.957 3.254 1.418 3.595-1.276 6.795-3.083 9.314-.419-.554-3.477-1.758-4.11-1.878-2.94-.561-4.037.798-2.199 3.512.58.856 1.798 1.216 2.436 1.994.711.87 1.112 2.2 1.818 3.144 1.393 1.863 3.115 2.822 4.778 4.322-.613.41-.546-.624-1.102-.41-.404.156-1.107-.155-1.617.014-.828.275-.718 1.717-1.248 1.929-3.299 1.314-6.627-3.615-9.586-3.775-1.614-.088-2.975.994-2.2 3.022.538 1.412 2.87 2.178 4.036 2.767 3.246 1.644 6.478 2.868 9.948 1.607 2.797 2.438 6.159 3.64 9.674 3.675-2.011.998-4 2.235-4.702 4.721-1.189-1.23-4.108-6.952-5.633-2.462-1.045 3.087 3.723 6.871 5.92 8.262-2.555.755-4.677.907-7.277.607-1.357-.156-4.337-1.974-3.238 1.748 1.182 4.016 8.24 2.21 10.48 1.516.083-1.198-10.77 12.108-3.158 9.489 2.176-.748 2.385-5 5.418-5.373 3.503-.43 3.855 3.077 5.882 5.646 1.01 1.282 5.67 4.165 5.449 5.265-.191.952-2.75 1.496-3.293 2.828-.633 1.55-.347 2.746.532 4.078 1.538 2.333 4.36 2.691 6.592 3.604 3.164 1.295 4.31 2.867 5.73 6.217-2.502.12-9.62 7.36-5.258 8.648 1.625.48 1.372-.966 2.049-1.765l.821-1.545q.687-1.797 1.52-.22c.123-.031 1.61.388 1.947.409 1.708.105 2.85-1.192 4.266-1.893 1.023-.506 2.024-.418 2.795-1.586-.089.135.554-2.51.565-2.536.276-.637.985-.547 1.31-1.234-8.749-9.085-14.457-21.119-15.489-34.464C36.42 132.776 33 128.288 33 123v-13c0-5.035 3.1-9.345 7.497-11.126.531.374 1.27 0 1.503-.842-.463-1.506 3.296-27.854 13-34.876 3.618-2.438 23.008-2.619 42.313-2.606 19.096.014 38.108.195 41.687 2.606 9.704 7.022 13.463 33.37 13 34.876.233.843.972 1.216 1.503.842"></path></defs><mask id="ShortHairDreads02-mask2" fill="#fff"><use href="#ShortHairDreads02-path1"></use></mask><g id="Top/Short-Hair/Dreads-02" mask="url('#ShortHairDreads02-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads02-path3" transform="translate(36)"></use></g></g></g>',1),ug=[dg];function fg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ug])}const mg={render:fg},hg=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat1-path3" d="M0 0h264v280H0z"></path><path id="WinterHat1-path1" d="M120 54H20v101c0 5.523-4.477 10-10 10s-10-4.477-10-10V44C0 19.7 19.7 0 44 0h52c24.3 0 44 19.7 44 44v111c0 5.523-4.477 10-10 10s-10-4.477-10-10z"></path><rect id="WinterHat1-path2" width="118" height="36" x="74" y="50" rx="8"></rect></defs><g id="Top/Accessories/Winter-Hat-1" transform="translate(-1)"><g id="hat" transform="translate(63 20)"><path id="inside" fill="#F4F4F4" d="M1 48h22.671v105.664c0 6.26-5.075 11.336-11.335 11.336S1 159.925 1 153.664zm115.329 0H139v105.664c0 6.26-5.075 11.336-11.336 11.336-6.26 0-11.335-5.075-11.335-11.336z"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat1-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat1-path2')" href="#WinterHat1-path2"></use><use fill="#F4F4F4" href="#WinterHat1-path2"></use></g></g></g>',1),pg=[hg];function gg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...pg])}const yg={render:gg},kg=t.createStaticVNode('<g id="Top"><defs><filter id="filter5" width="107.7%" height="126.7%" x="-3.8%" y="-6.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter6" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter7" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter1" width="107.7%" height="115.4%" x="-3.8%" y="-3.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter2" width="105%" height="110%" x="-2.5%" y="-2.5%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter3" width="105.4%" height="110.8%" x="-2.7%" y="-2.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter4" width="103.6%" height="107.4%" x="-1.8%" y="-1.9%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><path id="LongHairFrida-path2" d="M0 0h264v280H0z"></path><path id="LongHairFrida-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFrida-mask1" fill="#fff"><use href="#LongHairFrida-path2"></use></mask><g id="Top/Long-Hair/Frida" mask="url('#LongHairFrida-mask1')"><g transform="translate(-1)"><path fill="var(--avataaar-hair-color)" d="M189 97.937v.229a12.01 12.01 0 0 1 9.893 10.227A16.44 16.44 0 0 0 203 97.5c0-2.13-.404-4.166-1.138-6.035A16.45 16.45 0 0 0 207 79.5c0-5.836-3.03-10.964-7.602-13.898A16.4 16.4 0 0 0 201 58.5c0-7.635-5.185-14.058-12.227-15.941q.226-1.499.227-3.059c0-11.322-9.178-20.5-20.5-20.5-2.63 0-5.143.495-7.453 1.397C157.317 15.306 151.295 12 144.5 12c-4.262 0-8.22 1.3-11.5 3.527A20.4 20.4 0 0 0 121.5 12c-6.795 0-12.817 3.306-16.547 8.397A20.5 20.5 0 0 0 97.5 19C86.178 19 77 28.178 77 39.5q.001 1.56.227 3.059C70.185 44.442 65 50.865 65 58.5c0 2.192.427 4.284 1.203 6.197C60.75 67.39 57 73.007 57 79.5c0 5.438 2.63 10.261 6.689 13.267A16.5 16.5 0 0 0 63 97.5c0 4.175 1.55 7.987 4.107 10.893A12.01 12.01 0 0 1 77 98.166v-.23l.083.064c2.903-47.147 48.47-30.258 55.917-56.664 7.447 26.406 53.014 9.517 55.917 56.664zm-80 82.674v4.2a16.6 16.6 0 0 1-2.5.189c-6.82 0-12.675-4.139-15.188-10.042C82.754 174.348 76 167.213 76 158.5c0-1.471.192-2.897.554-4.254C69.858 152.144 65 145.889 65 138.5c0-3.744 1.247-7.198 3.35-9.967a12.01 12.01 0 0 0 8.859 6.334c1.743 20.248 14.26 37.416 31.791 45.744m48 0v4.2q1.224.188 2.5.189c6.82 0 12.675-4.139 15.188-10.042 8.558-.61 15.312-7.745 15.312-16.458 0-1.471-.192-2.897-.554-4.254C196.142 152.144 201 145.889 201 138.5c0-3.744-1.247-7.198-3.35-9.967a12.01 12.01 0 0 1-8.859 6.334c-1.743 20.248-14.26 37.416-31.791 45.744" class="CustomColor"></path><g id="Ornamentos" transform="translate(67)"><g id="hoja" filter="url('#filter5')" opacity=".9" transform="scale(1 -1)rotate(-20 -137.666 -331.914)"><path id="leaf" fill="#5DD362" d="M3.611 10S1.95 0 13 0c7.222 0 12.278 5.714 12.278 5.714s-5.417 8.572-13.722 8.572C5.056 14.286 3.61 10 3.61 10Z"></path><path id="leaf" fill="#42BC53" d="M25.278 5.714s-5.417 8.572-13.722 8.572c-4.334 0-6.428-1.929-7.367-3.215-2.095 1.786-2.817 3.429-2.817 3.5-.072.286-.36.429-.65.429-.072 0-.216 0-.289-.071-.36-.143-.505-.572-.36-.929.071-.214 1.877-4.143 7.366-6.714 7.944-4.143 17.839-1.572 17.839-1.572"></path></g><g id="hoja" filter="url('#filter6')" transform="rotate(60 44.13 92.434)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="hoja" filter="url('#filter7')" transform="rotate(-120 31.465 30.827)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="Flor" filter="url('#filter1')" transform="matrix(-1 0 0 1 26 29)"><path fill="#4ACAD3" d="M24.424 20.956a5.17 5.17 0 0 0 .997-3.853 5.17 5.17 0 0 0-2.02-3.43c-.299-.225-.693-.41-1.141-.567.453-.141.854-.313 1.16-.527a5.206 5.206 0 0 0 1.277-7.243 5.206 5.206 0 0 0-7.242-1.277c-.306.215-.604.533-.893.911.006-.475-.033-.909-.143-1.267a5.16 5.16 0 0 0-2.532-3.07A5.17 5.17 0 0 0 9.926.25a5.207 5.207 0 0 0-3.453 6.493c.11.356.314.735.582 1.124-.448-.151-.869-.243-1.241-.25a5.206 5.206 0 0 0-5.29 5.11 5.18 5.18 0 0 0 .937 3.066 5.2 5.2 0 0 0 4.171 2.223c.373.006.796-.071 1.25-.206-.283.38-.5.75-.621 1.103a5.2 5.2 0 0 0 .662 4.68 5.17 5.17 0 0 0 2.561 1.93 5.206 5.206 0 0 0 6.61-3.225c.12-.352.178-.779.19-1.252.273.386.56.708.857.932a5.17 5.17 0 0 0 3.853.997 5.16 5.16 0 0 0 3.43-2.02Z"></path><path fill="#FFF" d="M11.178 8.64a1.444 1.444 0 1 1 2.763-.845c.233.763-.232 4.182-.232 4.182s-2.298-2.574-2.53-3.337Zm-2.242 5.797a1.444 1.444 0 1 1 .05-2.888c.798.014 3.905 1.513 3.905 1.513s-3.158 1.389-3.955 1.375m6.057-2.018s1.738-2.98 2.392-3.438a1.444 1.444 0 1 1 1.657 2.366c-.654.458-4.049 1.072-4.049 1.072m-3.073 6.838a1.444 1.444 0 0 1-.895-1.836c.26-.755 2.646-3.246 2.646-3.246s.345 3.432.086 4.187a1.445 1.445 0 0 1-1.837.895m5.32-1.96c-.638-.48-2.27-3.52-2.27-3.52s3.37.732 4.008 1.212a1.444 1.444 0 1 1-1.738 2.307Z"></path></g><g id="Flor" filter="url('#filter2')" transform="translate(20 16)"><path fill="#FDB599" d="m30.526 33.098.258-2.314 2.314-.26c2.847-.319 5.11-2.116 6.054-4.81 1.066-3.042.065-6.359-2.547-8.281l-1.874-1.38.932-2.134c1.229-2.806.645-5.895-1.52-8.061-2.167-2.166-5.256-2.75-8.063-1.522l-2.133.933-1.38-1.875C20.644.786 17.327-.218 14.284.848c-2.692.943-4.49 3.207-4.809 6.054l-.26 2.313-2.313.26c-2.847.319-5.11 2.117-6.054 4.81-.938 2.676-.298 5.56 1.669 7.528a8 8 0 0 0 .877.753l1.875 1.38-.934 2.134c-1.226 2.807-.643 5.896 1.523 8.062s5.255 2.749 8.062 1.523l2.134-.934 1.38 1.875c1.917 2.61 5.24 3.612 8.283 2.547 2.693-.945 4.49-3.208 4.809-6.055"></path><path fill="#FFF" d="M22.882 25.19a1.44 1.44 0 0 1-2.782.746C19.894 25.17 20 20 20 20s-2.492 4.529-3.055 5.091a1.44 1.44 0 0 1-2.036-2.036C15.47 22.492 20 20 20 20s-5.168.106-5.936-.1a1.44 1.44 0 0 1 .745-2.782C15.577 17.324 20 20 20 20s-2.676-4.423-2.882-5.19a1.44 1.44 0 0 1 2.782-.746c.206.768.1 5.936.1 5.936s2.492-4.529 3.055-5.091a1.44 1.44 0 0 1 2.036 2.036C24.53 17.508 20 20 20 20s5.169-.106 5.936.1a1.44 1.44 0 0 1-.745 2.782C24.423 22.676 20 20 20 20s2.675 4.422 2.882 5.19"></path></g><g id="Flor" filter="url('#filter3')" transform="translate(89 26)"><path fill="#F7D30C" d="M34.758 29.822a7.36 7.36 0 0 0 1.418-5.483 7.35 7.35 0 0 0-2.874-4.88c-.426-.321-.987-.584-1.625-.808.645-.201 1.216-.445 1.652-.75 3.342-2.34 4.158-6.964 1.817-10.307-2.34-3.342-6.964-4.157-10.306-1.817-.436.306-.86.758-1.27 1.296.008-.676-.048-1.294-.204-1.803A7.35 7.35 0 0 0 19.763.9a7.36 7.36 0 0 0-5.638-.543C10.223 1.55 8.019 5.695 9.21 9.597c.156.507.447 1.046.83 1.6-.638-.216-1.237-.346-1.768-.355-4.08-.071-7.456 3.19-7.528 7.27a7.37 7.37 0 0 0 1.334 4.363 7.4 7.4 0 0 0 5.936 3.164c.53.01 1.133-.1 1.777-.293-.4.54-.71 1.069-.883 1.57a7.4 7.4 0 0 0 .943 6.66 7.36 7.36 0 0 0 3.645 2.746c3.858 1.329 8.077-.73 9.405-4.588.173-.502.255-1.109.271-1.782.39.549.797 1.007 1.22 1.326a7.35 7.35 0 0 0 5.484 1.418 7.35 7.35 0 0 0 4.88-2.874Z"></path><path fill="#FFF" d="M15.908 12.295a2.055 2.055 0 1 1 3.93-1.202c.332 1.086-.33 5.95-.33 5.95s-3.269-3.662-3.6-4.748m-3.192 8.25a2.055 2.055 0 1 1 .072-4.11c1.135.02 5.558 2.153 5.558 2.153s-4.495 1.977-5.63 1.957m8.62-2.872s2.474-4.241 3.404-4.892a2.055 2.055 0 1 1 2.358 3.367c-.93.651-5.762 1.525-5.762 1.525m-4.373 9.731a2.055 2.055 0 0 1-1.274-2.613c.37-1.073 3.765-4.62 3.765-4.62s.492 4.886.123 5.96a2.056 2.056 0 0 1-2.614 1.273m7.57-2.79c-.907-.683-3.23-5.008-3.23-5.008s4.797 1.042 5.704 1.725a2.055 2.055 0 1 1-2.474 3.283"></path></g><g id="Flor" filter="url('#filter4')" transform="translate(48)"><path fill="#FF7398" d="M54.138 31.546c1.825-6.983-5.994-12.414-8.953-14.184.514-2.934 1.672-12.561-4.468-16.116C34.612-2.288 26.924 3.45 24.6 5.394q-.3-.189-.703-.423C20.83 3.196 13.13-.381 7.85 4.736 2.205 10.204 5.537 18.74 6.805 21.434c-2.16 2.01-8.384 8.592-5.818 15.59.706 1.929 2.011 3.456 3.882 4.538 4.03 2.334 9.607 1.958 11.723 1.707.993 1.88 3.83 6.712 7.888 9.061 1.67.967 3.375 1.413 5.07 1.325 6.905-.358 9.916-9.995 10.67-12.912 2.861-.396 12.086-2.199 13.918-9.197"></path><path fill="#FFF" d="M27.764 25.603s3.685 8.188.354 8.71c-3.334.521-1.46-8.591-1.46-8.591s-7.112 6.007-8.15 3.028c-1.04-2.979 7.7-4.048 7.7-4.048s-7.987-4.692-5.393-6.836 6.216 6.092 6.216 6.092 1.945-8.92 4.82-7.254c2.876 1.664-3.857 7.811-3.857 7.811s8.877-.99 8.37 2.352c-.505 3.342-8.6-1.264-8.6-1.264"></path></g></g><g id="Arete" transform="translate(182 129)"><rect id="Cadenita" width="2" height="39" x="9" y="0" fill="#E6E6E6" rx="1"></rect><path id="Rayo" fill="#9177FF" d="M20 37h-9.43L17 20H6L0 41h8.636L4 60z"></path></g></g></g></g>',1),bg=[kg];function xg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...bg])}const wg={render:xg},vg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairFrizzle-path2" d="M0 0h264v280H0z"></path><path id="ShortHairFrizzle-path1" d="M90.91 55.361h84.176c18.247-10.527 21.673-29.21 8.764-45.435-3.214-4.04-8.764 11.75-25.821 12.724s-15.42-6.3-33.571-3.576c-18.152 2.724-16.146 17.304-27.99 20.803q-11.846 3.499-5.558 15.484"></path></defs><mask id="ShortHairFrizzle-mask2" fill="#fff"><use href="#ShortHairFrizzle-path2"></use></mask><g id="Top/Short-Hair/Frizzle" mask="url('#ShortHairFrizzle-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairFrizzle-path1" transform="translate(-1)"></use></g></g>',1),Eg=[vg];function Cg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Eg])}const Sg={render:Cg},Mg=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat2-path3" d="M0 0h264v280H0z"></path><path id="WinterHat2-path1" d="M72 21c54.773 0 72 47.803 72 82.045v73.865c0 19.495-22.633 19.537-22.633-10.921V86.535c0-6.075-3.732-9-9.816-9H32.45c-6.084 0-9.816 2.925-9.816 9v79.454C22.633 196.447 0 196.405 0 176.91v-73.865C0 68.803 17.227 21 72 21"></path><path id="WinterHat2-path2" d="M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"></path></defs><g id="Top/Accessories/Winter-Hat-2" transform="translate(-1)"><g id="hat" transform="translate(61)"><g id="string" fill="#F4F4F4" transform="translate(0 176)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><g id="string" fill="#F4F4F4" transform="translate(126 168)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><circle id="puff" cx="72" cy="20" r="20" fill="#F4F4F4"></circle><mask id="WinterHat2-mask2" fill="#fff"><use href="#WinterHat2-path1"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat2-path1"></use><path id="color-dark" fill="#000" d="M-1 21h146v46H-1z" mask="url('#WinterHat2-mask2')" opacity=".2"></path><g id="light-triangles" fill="#FFF" opacity=".5" transform="translate(29 32)"><path id="Triangle" d="M12.5 0 25 18H0z" transform="rotate(180 12.5 9)"></path><path id="Triangle" d="M43.5 0 56 18H31z" transform="rotate(180 43.5 9)"></path><path id="Triangle" d="M74.5 0 87 18H62z" transform="rotate(180 74.5 9)"></path></g><g id="dark-triangles" fill="#000" opacity=".5" transform="translate(13 41)"><path id="Triangle" d="M12.5 0 25 18H0zm31 0L56 18H31zm31 0L87 18H62zm31 0L118 18H93z"></path></g></g></g></g>',1),Bg=[Mg];function Ag(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Bg])}const Vg={render:Ag},_g=t.createStaticVNode('<g id="Top"><defs><path id="LongHairFro-path1" d="M0 0h264v280H0z"></path><path id="LongHairFro-path2" d="M180.666 104.495A11.95 11.95 0 0 1 182 110v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744v9.443c3.832 1.896 8.059 2.946 12.5 2.946 7.621 0 14.61-3.093 20.059-8.242q2.193.241 4.441.242c18.39 0 34.26-12.316 41.622-30.116C224.9 149.814 229 141.454 229 132a32 32 0 0 0-.426-5.223C230.786 120.339 232 113.33 232 106c0-12.866-3.739-24.736-10.046-34.275Q222 70.869 222 70c0-10.957-5.507-20.443-13.53-25.043-7.31-17.588-22.73-29.966-40.773-30.9C163.274 9.075 157.201 6 150.5 6q-1.427.001-2.812.182C137.91 2.196 127.211 0 116 0S94.09 2.196 84.312 6.182A22 22 0 0 0 81.5 6c-6.701 0-12.774 3.075-17.197 8.057-18.044.934-33.463 13.312-40.774 30.9C15.507 49.557 10 59.043 10 70q0 .87.046 1.725C3.739 81.265 0 93.135 0 106c0 7.331 1.214 14.34 3.426 20.777A32 32 0 0 0 3 132c0 9.454 4.1 17.814 10.378 22.884C20.74 172.684 36.61 185 55 185q2.248-.001 4.441-.242C64.889 189.907 71.879 193 79.5 193c4.441 0 8.668-1.05 12.5-2.946v-9.443c-17.53-8.328-30.048-25.496-31.791-45.744C54.43 134.002 50 129.02 50 123v-13c0-1.983.481-3.854 1.333-5.502 2.702-.802 5.677-3.053 8.658-6.33l.009-.002v-.009c6.866-7.556 13.755-20.555 17.37-33.822 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 3.62 13.226 10.486 26.172 17.332 33.71v.018l.02.003c2.976 3.272 5.947 5.522 8.646 6.326"></path><path id="LongHairFro-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFro-mask1" fill="#fff"><use href="#LongHairFro-path1"></use></mask><g id="Top/Long-Hair/Fro" mask="url('#LongHairFro-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M67 109.778c9.038-1.06 21.922-20.447 27.37-40.443 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 5.462 19.953 18.31 39.269 27.332 40.339V89c0-22.884-11.647-43.048-29.336-54.887-.528 2.482-.88 5.222-1.04 8.184-10.34-1.404-22.396-2.21-35.27-2.21-13.164 0-25.472.842-35.964 2.306-.158-3-.512-5.775-1.047-8.286C78.65 45.947 67 66.113 67 89z" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFro-path2" transform="translate(17)"></use></g></g></g>',1),Ng=[_g];function Dg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ng])}const Tg={render:Dg},Pg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggy-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShaggy-path1" d="M198.747 37.856c-5.14-3.832-11.219-7.116-17.56-8.378-6.446-1.282-10.358-1.593-16.704-.073-1.633.392-2.184.78-3.62-.148-1.212-.783-9.663-9.49-35.421-4.657-26.035 4.885-33.77 44.075-43.427 45.566-3.48.537-7.781-.384-7.916-2.527-3.963 6.034-5.008 14.007-3.327 21.074 1.447 6.086 4.497 11.804 9.989 15.137 4.726 2.867 11.26 4.116 16.72 3.587 2.486-.24 4.746-.763 7.033-1.766 2.759-1.21 4.957-3.39 7.664-4.543a54 54 0 0 1-9.176 6.418c-1.64.907-3.304 1.532-5.113 2.024-1.236.336-3.761 1.481-4.956 1.182 7.807 1.396 15.16.18 22.32-3.163 3.23-1.508 6.338-3.332 9.19-5.476 2.833-2.13 6.095-4.307 8.31-7.11-.93 1.204.698-.586.913-.805a67 67 0 0 0 1.787-1.895c1.002-1.104 1.998-2.228 2.93-3.391 1.995-2.486 3.852-5.082 5.508-7.803 1.678-2.756 8.359-13.873 10.375-16.49-1.905 5.708-3.98 11.418-6.407 16.925 4.713-1.47 9.284-5.544 12.295-9.34 3.392-4.276 5.4-9.268 6.108-14.666 3.826 10.416 12.785 18.63 22.032 24.295-2.003-3.73-5.055-6.885-7.052-10.678 9.191 9.329 24.568 13.893 28.595 27.574 1.033-4.758 4.353-8.58 5.348-13.433 1.104-5.389 1.896-11.11 1.72-16.616-.396-12.242-8.631-23.723-18.158-30.824"></path></defs><mask id="ShortHairShaggy-mask2" fill="#fff"><use href="#ShortHairShaggy-path2"></use></mask><g id="Top/Short-Hair/Shaggy" mask="url('#ShortHairShaggy-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggy-path1" transform="matrix(-1 0 0 1 285.93 0)"></use></g></g>',1),Og=[Pg];function Fg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Og])}const Lg={render:Fg},$g=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat3-path3" d="M0 0h264v280H0z"></path><path id="WinterHat3-path1" d="M66 0c36.45 0 66 29.55 66 66v5H0v-5C0 29.55 29.55 0 66 0"></path><path id="WinterHat3-path2" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-3" transform="translate(-1)"><g id="hat" transform="translate(67 12)"><circle id="puff" cx="66" cy="8" r="20" fill="#F4F4F4"></circle><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat3-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat3-path2')" href="#WinterHat3-path2"></use><use fill="#F4F4F4" href="#WinterHat3-path2"></use></g></g></g>',1),Rg=[$g];function Hg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Rg])}const zg={render:Hg},Ig=t.createStaticVNode('<g id="Top"><defs><path id="LongHairFroBand-path1" d="M0 0h264v280H0z"></path><path id="LongHairFroBand-path2" d="M80.02 73.81A55.9 55.9 0 0 0 77 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744v10.944A36.4 36.4 0 0 1 93.5 195a36.35 36.35 0 0 1-23.19-8.312 54 54 0 0 1-5.81.312c-21.094 0-39.337-12.208-48.049-29.945C8.934 151.924 4 143.288 4 133.5c0-2.115.23-4.175.667-6.159A57.9 57.9 0 0 1 1 107c0-12.756 4.118-24.55 11.097-34.127A29 29 0 0 1 12 70.5c0-11.297 6.573-21.06 16.104-25.67 8.433-18.128 26.454-30.894 47.546-31.78A28.4 28.4 0 0 1 95.5 5c2.327 0 4.589.279 6.754.805C111.776 2.058 122.148 0 133 0c10.346 0 20.255 1.87 29.408 5.292A29 29 0 0 1 166.5 5a28.4 28.4 0 0 1 19.85 8.05c21.092.886 39.113 13.652 47.546 31.78C243.426 49.44 250 59.203 250 70.5q0 1.2-.097 2.373C256.882 82.45 261 94.243 261 107a57.9 57.9 0 0 1-3.667 20.341A28.6 28.6 0 0 1 258 133.5c0 9.788-4.934 18.424-12.451 23.555C236.837 174.792 218.594 187 197.5 187a54 54 0 0 1-5.81-.312A36.35 36.35 0 0 1 168.5 195c-4.018 0-7.884-.65-11.5-1.849v-12.54c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-5.441-.776-10.702-2.224-15.676l1.377 12.87-11.34-24-45.136-19.523-30.114 10.557L80.065 76.42l-.045-2.609Z"></path></defs><mask id="LongHairFroBand-mask1" fill="#fff"><use href="#LongHairFroBand-path1"></use></mask><g id="Top/Long-Hair/Fro-+-Band" mask="url('#LongHairFroBand-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFroBand-path2"></use><path id="Band" fill="#92D9FF" stroke="none" d="M76.631 98.975A48.6 48.6 0 0 1 76 91.152C76 62.35 101.296 39 132.5 39S189 62.35 189 91.152c0 2.659-.216 5.271-.631 7.823-4.09-25.092-27.545-44.33-55.869-44.33s-51.78 19.238-55.869 44.33"></path></g></g></g>',1),Gg=[Ig];function jg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Gg])}const qg={render:jg},Wg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggyMullet-path1" d="M0 0h264v280H0z"></path><path id="ShortHairShaggyMullet-path2" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Zm114.59-82.914c.175 5.507-.617 11.227-1.721 16.616-.995 4.852-4.315 8.675-5.348 13.433-4.027-13.68-19.404-18.245-28.595-27.574 1.997 3.793 5.049 6.948 7.052 10.678-9.247-5.665-18.206-13.88-22.032-24.295-.707 5.398-2.716 10.39-6.108 14.666-3.011 3.796-7.582 7.87-12.295 9.34 2.428-5.507 4.502-11.217 6.407-16.925-2.016 2.617-8.697 13.734-10.375 16.49-1.656 2.72-3.513 5.317-5.507 7.803-.933 1.163-1.929 2.287-2.93 3.391a67 67 0 0 1-1.788 1.895c-.215.219-1.842 2.01-.912.806-2.216 2.802-5.478 4.979-8.31 7.109-2.853 2.144-5.96 3.968-9.192 5.476-7.159 3.343-14.512 4.56-22.32 3.163 1.196.299 3.721-.846 4.957-1.182 1.809-.492 3.474-1.117 5.113-2.024a54 54 0 0 0 9.176-6.418c-2.707 1.152-4.905 3.334-7.664 4.543-2.287 1.003-4.547 1.526-7.032 1.766-5.462.529-11.995-.72-16.721-3.587-5.492-3.333-8.542-9.051-9.99-15.137-1.68-7.067-.635-15.04 3.328-21.074.135 2.143 4.436 3.064 7.916 2.527 9.658-1.49 15.403-38.048 40.427-44.566 19.961-5.2 34.21 3.874 35.42 4.657 1.437.928 1.988.54 3.621.148 6.346-1.52 13.258-2.209 19.705-.927 6.34 1.262 12.418 4.546 17.559 8.378 9.527 7.101 17.762 18.582 18.159 30.824"></path><path id="ShortHairShaggyMullet-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="ShortHairShaggyMullet-mask1" fill="#fff"><use href="#ShortHairShaggyMullet-path1"></use></mask><g id="Top/Short-Hair/Shaggy-Mullet" mask="url('#ShortHairShaggyMullet-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggyMullet-path2"></use><path id="Shadow" fill="#000" stroke="none" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Z" opacity=".16"></path></g></g></g>',1),Yg=[Wg];function Ug(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Yg])}const Xg={render:Ug},Zg=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat4-path5" d="M0 0h264v280H0z"></path><path id="WinterHat4-path1" d="M129.66 38.357A60.8 60.8 0 0 1 134 61v8H2v-8c0-8.025 1.55-15.688 4.366-22.707Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419C38.486 3.888 50.289 0 63 0h10c12.722 0 24.535 3.895 34.31 10.557q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237"></path><path id="WinterHat4-path2" d="M28.716 10.539c-9.957 6.778-17.804 16.426-22.35 27.754Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419m100.943 27.818c-4.538-11.346-12.386-21.01-22.349-27.8q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237Z"></path><path id="WinterHat4-path3" d="M21.862 15.96a61.3 61.3 0 0 0-11.433 14.08Q6.041 17.878 8.927 13.208q3.977-1.72 12.935 2.751Zm103.49 13.714a61.3 61.3 0 0 0-11.274-13.77q8.704-4.278 12.608-2.59 2.83 4.58-1.333 16.36Z"></path><path id="WinterHat4-path4" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-4" transform="translate(-1)"><g id="hat" transform="translate(65 4)"><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat4-path1"></use><use id="shadow" fill="#000" href="#WinterHat4-path2" opacity=".24"></use><use id="light" fill="#FFF" href="#WinterHat4-path3" opacity=".3"></use></g><g id="hat-front"><use filter="url('#WinterHat4-path4')" href="#WinterHat4-path4"></use><use fill="#F4F4F4" href="#WinterHat4-path4"></use></g></g></g>',1),Qg=[Zg];function Kg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Qg])}const Jg={render:Kg},ey={Eyepatch:Eh,Hat:Oh,Hijab:Yh,LongHairBigHair:op,LongHairBob:yp,LongHairBun:Vp,LongHairCurly:zp,LongHairCurvy:Qp,LongHairDreads:cg,LongHairFrida:wg,LongHairFro:Tg,LongHairFroBand:qg,LongHairMiaWallace:Bh,LongHairNotTooLong:Rh,LongHairShavedSides:Qh,LongHairStraight:cp,LongHairStraight2:wp,LongHairStraightStrand:Tp,NoHair:Gp,ShortHairDreads01:tg,ShortHairDreads02:mg,ShortHairFrizzle:Sg,ShortHairShaggy:Lg,ShortHairShaggyMullet:Xg,ShortHairShortCurly:Nh,ShortHairShortFlat:Gh,ShortHairShortRound:tp,ShortHairShortWaved:mp,ShortHairSides:Sp,ShortHairTheCaesar:Lp,ShortHairTheCaesarSidePart:Yp,Turban:og,WinterHat1:yg,WinterHat2:Vg,WinterHat3:zg,WinterHat4:Jg},ty=t.createElementVNode("g",{id:"Facial-Hair/Beard-Light",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"BeardLight-path1",d:"M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardLight-path1"})],-1),ay=[ty];function ny(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ay])}const ry={render:ny},oy=t.createElementVNode("g",{id:"Facial-Hair/Beard-Majestic",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"BeardMajestic-path1",d:"M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMajestic-path1"})],-1),iy=[oy];function sy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...iy])}const ly={render:sy},cy=t.createElementVNode("g",{id:"Facial-Hair/Moustache-Fancy",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"MoustacheFancy-path1",d:"M84 69.297c-6.792-3.586-16.422-4.148-21.611-2.165-5.775 2.205-10.884 8.451-19.75 5.696-.37-.114-.73.217-.619.58 1.374 4.51 9.008 7.599 11.602 7.7 11.34.442 20.473-8.278 30.378-8.947 9.906.67 19.04 9.389 30.379 8.947 2.594-.101 10.228-3.19 11.601-7.7.111-.363-.25-.694-.618-.58-8.867 2.755-13.976-3.49-19.75-5.696-5.19-1.983-14.82-1.42-21.612 2.165"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheFancy-path1"})],-1),dy=[cy];function uy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...dy])}const fy={render:uy},my=t.createElementVNode("g",{id:"Facial-Hair/Beard-Medium",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"BeardMedium-path1",d:"M105.018 94.13c-3.868 5.591-6.76 1.817-10.88-1.254-2.481-1.849-6.177-4.148-9.634-4.035-3.456-.113-7.152 2.186-9.633 4.035-4.12 3.07-7.013 6.845-10.88 1.254-2.903-4.198-1.688-11.256 1.024-15.227 3.859-5.652 9.094-2.918 14.947-3.563 1.592-.175 3.19-.617 4.542-1.34 1.352.723 2.95 1.165 4.542 1.34 5.854.645 11.089-2.089 14.948 3.563 2.712 3.97 3.926 11.03 1.024 15.227M140.39 26c-3.424 14.075-4.998 28.434-7.481 42.671a319 319 0 0 1-1.685 8.879c-.127.62-.251 2.923-.862 3.214-1.851.884-5.624-3.817-6.633-4.879-2.533-2.666-5.045-5.356-8.13-7.448-6.235-4.227-13.535-6.726-21.13-7.32-3.178-.248-7.475.186-10.47 1.993-2.995-1.807-7.292-2.24-10.47-1.992-7.596.593-14.895 3.092-21.13 7.32-3.085 2.091-5.597 4.781-8.13 7.447-1.01 1.062-4.782 5.763-6.633 4.88-.61-.292-.735-2.595-.862-3.215a319 319 0 0 1-1.685-8.879C32.607 54.434 31.034 40.075 27.61 26c-.997 0-1.871 18.748-1.983 20.495-.452 7.094-.98 14.03-.305 21.131 1.164 12.249 2.377 27.608 11.71 36.962 8.434 8.451 20.678 10.218 31.24 15.553 1.36.687 3.163 1.535 5.108 2.23 2.049 1.563 6.113 2.629 10.794 2.629 4.91 0 9.142-1.173 11.08-2.862a47 47 0 0 0 4.475-1.997c10.56-5.336 22.805-7.102 31.238-15.553 9.334-9.354 10.547-24.713 11.712-36.962.674-7.1.146-14.037-.306-21.131C142.26 44.748 141.387 26 140.39 26"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMedium-path1"})],-1),hy=[my];function py(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...hy])}const gy={render:py};function yy(e,a){return t.openBlock(),t.createElementBlock("svg")}const ky={render:yy},by=t.createElementVNode("g",{id:"Facial-Hair/Moustache-Magnum",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"MoustacheMagnum-path1",d:"M83.998 74.84a6.04 6.04 0 0 1-2.048 1.85c-8.902 4.82-18.073.642-23.074.94-2.416.144-5.535 1.785-6.66.05-1.24-1.913 2.852-12.46 12.505-14.216 7.01-1.275 16.776.138 19.277 3.474 2.5-3.336 12.267-4.749 19.276-3.474 9.654 1.757 13.745 12.303 12.506 14.215-1.125 1.736-4.244.095-6.66-.05-5.001-.297-14.172 3.881-23.074-.94a6.04 6.04 0 0 1-2.048-1.85Z"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheMagnum-path1"})],-1),xy=[by];function wy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...xy])}const vy={render:wy},Ey={BeardMajestic:ly,BeardLight:ry,MoustacheFancy:fy,BeardMedium:gy,Blank:ky,MoustacheMagnum:vy},Cy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bat" fill="#FFF" fill-rule="evenodd"><path id="Batman!" d="M87.685 13.403c-1.393-6.431-6.21-10.15-12.5-11.586-2.526-.577-10.913-2.387-9.607 2.408.593 2.172.263 3.964-1.553 5.766-1.77 1.755-5.231 2.2-6.952-.011-1.474-1.895.427-4.721-.721-6.567-.446-.717-1.216-1.083-2.028-.732-1.141.494-.534 1.555-1.073 2.318-.849 1.203-1.245.826-2.01-.373-.48-.754-.008-1.575-1.246-1.897-1.433-.372-1.903.828-2.032 1.923-.082.687.322 1.792.336 2.488.027 1.364-.09 3.323-.725 4.529-1.125 2.137-2.704 1.453-4.383.096-1.98-1.602-2.561-3.385-2.178-5.817.459-2.917.292-5.709-3.28-3.884-5.02 2.564-9.68 7.135-12.588 11.919-2.445 4.02-4.37 8.893-2.203 13.473 2.21 4.675 5.862 8.69 10.966 9.883 1.321.31 5.092 1.811 6.345.552 1.947-1.957-2.548-3.783-3.435-4.975-1.258-1.69-2.337-4.915-.957-6.822 1.76-2.427 3.6-1.074 5.045.644 1.136 1.348 2.75 4.826 4.506 2.022 1.21-1.931 1.101-5.102 4.4-3.717 4.715 1.978 4.86 11.112 5.7 15.291.367 1.83 2.035 4.064 3.47 1.525.79-1.396.364-4.421.22-5.863-.296-2.985-1.08-5.92-.11-8.877.562-1.71 2.001-4.16 4.13-2.844 1.725 1.066 1.006 5.816 3.353 5.807 2.066-.007 1.502-3.791 2.603-5.039 1.68-1.904 4.916-.999 5.91 1.249 1.336 3.025-2.203 5.126-2.044 7.785.154 2.591 3.494 1.58 4.89.923 2.872-1.35 5.119-3.853 6.676-6.571 2.407-4.204 4.125-10.222 3.075-15.026" transform="translate(77 58)"></path></g></g>',1),Sy=[Cy];function My(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Sy])}const By={render:My},Ay=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Cumbia" fill-rule="evenodd" stroke-width="1"><g id="Group" fill="#FFF" transform="translate(77 64)"><path id="Fill-1" d="M10.272 24.132c3.273-.559 5.73-3.554 5.18-6.788-.464-2.724-1.745-.343-2.976.853-1.335 1.298-2.45 2.574-4.536 2.054-3.607-.9-4.858-5.4-3.84-8.48a5.94 5.94 0 0 1 3.478-3.696c1.852-.746 3.204.09 4.748 1.094.289.187 1.73 1.37 1.994 1.25.462-.211.115-2.43.045-2.725-.338-1.421-1.266-2.575-2.617-3.238-3.333-1.635-7.514.489-9.64 3.055-4.884 5.897-.92 18.164 8.164 16.62"></path><path id="Fill-5" d="M20.283 5.038q0 .003 0 0m-1.594 12.865c.503 3.474 2.977 6.5 6.952 6.357 4.278-.155 6.056-4.098 7.008-7.486.957-3.399 2.052-7.683.664-11.093-.42-1.032-.685-2.38-1.716-1.53-1.252 1.033-1.409 4.039-1.515 5.442-.2 2.647-.781 9.97-4.108 10.944-4.179 1.222-4.048-5.847-4-7.977.04-1.896.246-3.734-.342-5.584-.313-.985-.59-2.44-1.528-1.634-1.29 1.108-1.453 3.828-1.544 5.327-.144 2.405-.214 4.842.129 7.234"></path><path id="Fill-7" d="M37.783 20.746c.188.412.624 1.402 1.02 1.679.944.66-.055.708.8-.059.813-.729 1.13-2.717 1.254-3.67.385-2.96-.12-6.108-.087-9.093 1.024 2.218 1.584 4.584 2.386 6.874.554 1.582 1.396 4.804 3.654 4.753 2.443-.055 2.57-3.145 2.894-4.819.461-2.37.97-4.721 1.676-7.037.092 3.91-1.427 10.995 2.108 13.92.014.013 1.432-4.15 1.467-4.406.223-1.691.083-3.444.107-5.148.051-3.597.718-8.003-.3-11.506C54.435 1.1 53.788-.03 52.354.001c-1.825.04-2.233 1.985-2.698 3.298-1.28 3.614-2.445 7.224-3.357 10.94-.548-1.68-5.339-16.421-8.789-10.901-.555.888-.315 2.218-.338 3.196-.044 1.879-.155 3.756-.196 5.635-.061 2.843-.41 5.907.808 8.577"></path><path id="Fill-9" d="M62.02 7.71c.72-.135 5.735-1.727 5.523-.136-.223 1.675-4.633 3.309-5.816 3.876a10.6 10.6 0 0 0-.643-3.567zm5.717-.64s-.027-.035 0 0m.122 8.341c2.272 1.22 1.287 3.417-.426 4.608-.649.45-6.53 1.802-6.513 1.663q.001.005-.004.005c.18-1.694-.257-5.018 1-6.02 1.304-1.04 4.5-.808 5.943-.256m.062-7.995c.009.022.001.002 0 0M57.944 24.26c.224.551.86 1.912 1.566 1.945.86.04.794-1.043.929-1.71 3.441 1.721 8.498-.047 10.907-3.03 2.787-3.45 1.348-8.27-2.579-9.745 2.113-1.688 4.026-5.399 1.255-7.49-2.196-1.655-5.828-1.747-8.123-.302-2.735 1.723-3.85 5.833-4.09 9.006-.255 3.382-1.158 8.125.135 11.326"></path><path id="Fill-11" d="M76.05 15.871c.074 2.07-.15 4.287.332 6.306.171.717.433 1.511.76 2.162.611 1.215.31 1.05 1.032.36 2.172-2.083 1.209-8.575 1.157-11.249-.041-2.078.064-4.28-.513-6.283-.162-.562-1.123-3.348-1.655-3.284-.816.098-1.376 3.93-1.423 4.693-.148 2.396.226 4.895.31 7.295"></path><path id="Fill-13" d="M94.748 16.43c-1.582-.137-3.622.075-5.117.557.697-1.916 1.475-4.054 2.238-5.79q.711-1.635 1.494-3.24c1.278 2.686 1.992 5.828 2.832 8.666q-.72-.13-1.447-.193m5.44.725c-.727-2.78-1.579-5.532-2.426-8.28-.538-1.743-1.13-3.911-2.6-5.168C91 .146 88.635 9.557 87.614 11.94c-.985 2.296-2.216 4.634-2.85 7.049a9.5 9.5 0 0 0-.244 3.652c.205 1.519-.004 1.741 1.294.914 1-.636 1.414-1.792 2.227-2.562.144-.136.218-.668.39-.755.188-.096 1.504.253 1.815.274 2.17.151 4.712-.218 6.715-1.054.205.842 1.627 5.962 2.977 5.773.597-.083.965-3.064.992-3.537.087-1.553-.352-3.049-.742-4.538"></path><path id="Fill-15" d="M109.302 3.432c-.264-1.203-.814-3.292-1.842-2.112-1.39 1.596-1.09 5.173-1.111 7.177-.015 1.451-1.552 12.062.556 11.883-.09 0 .845-1.668.98-1.922.815-1.524 1.131-2.97 1.329-4.722.365-3.237.783-7.111.088-10.304"></path><path id="Fill-17" d="M108.164 24.301c-2.24-2.728-6.311.658-5.041 3.374 1.729 3.7 7.331-.56 5.041-3.374"></path><path id="Fill-19" d="M94.898 28.545c-2.891-.738-6.297-.24-9.249-.152-3.081.092-6.16.264-9.24.357-6.568.198-13.124.092-19.692.038-12.454-.103-24.935.69-37.383.168-2.672-.112-5.545-.713-8.198-.209-.727.139-3.009.543-3.329 1.266-.336.76 1.402 1.555 2.331 1.955 2.422 1.044 5.329.858 7.9.964 2.93.12 5.887.058 8.819-.014 12.075-.297 24.089-1.343 36.18-1.165 6.976.103 13.937.038 20.912.001 3.32-.017 7 .526 10.273-.062.552-.1 3.763-.854 3.807-1.836.02-.453-2.806-1.228-3.13-1.311"></path></g></g></g>',1),Vy=[Ay];function _y(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Vy])}const Ny={render:_y},Dy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Diamond" fill-rule="evenodd" stroke-width="1"><g id="Diamond" fill="#FFF" transform="translate(106 60)"><path id="Fill-21" d="M34.78 27.737c-2.389 2.656-4.857 5.243-7.335 7.82.985-3.553 1.74-7.578 3.204-10.958.417-.962.1-1.084.927-1.493.609-.301 2.078.043 2.807.062 1.557.039 3.15.192 4.696-.05a222 222 0 0 0-4.299 4.619m-15.264 4.061c-2.699-3.282-5.384-6.568-8.658-9.317 1.289.137 2.696-.043 3.958.206 1.944.384 1.837.99 2.82 2.959 1.45 2.906 2.889 5.789 4.05 8.823-.711-.9-1.441-1.785-2.17-2.67m-9.098-12.532c.963-1.575 1.144-2.972 2.92-3.78 2.06-.939 5.3-.742 7.488-.916-1.37 1.523-3.037 3.103-3.604 5.122-.874-1.718-1.962-3.174-3.67-4.17-.215-.107 1.158 4.55 1.338 4.87-1.716-.096-3.522-.408-5.225-.092zm16.406-5.008c1.591.036 3.17.16 4.74.42-1.267 1.674-1.649 3.631-2.099 5.63-.478-2.258-2.209-4.362-3.734-6.048zm-3.498 1.074c.234-.158 4.457 5.086 5.066 5.556-3.312-.008-6.618-.17-9.926-.315 1.907-1.487 3.023-3.688 4.86-5.24m2.686 17.095c-.401 1.349-.777 2.708-1.214 4.047-1.555-4.732-3.862-9.188-6.008-13.674 3.34.088 6.676.209 10.016.256-.82 3.158-1.862 6.245-2.794 9.37m7.23-17.462c1.277 1.128 3.097 3.44 3.686 4.217a10 10 0 0 0 .179.23c.21.261.966 1.255 1.263 1.644-2.227-.226-4.545-.13-6.78-.15.498-2.054 1.104-4.012.584-6.128q.536.086 1.068.187m7.648 5.617c-2.158-2.676-4.37-7.258-7.864-8.077-3.472-.814-7.548-.454-11.074-.23-3.075.194-8.083-.204-10.795 1.593-1.393.923-2.425 3.005-2.908 4.551-.434 1.393.266 2.285-1.246 2.285-.096 0 2.504 3.673 2.81 3.962 2.272 2.14 4.444 4.202 6.457 6.597 2.835 3.374 5.405 8.338 9.145 9.736-.686-.339 2.792-2.967 3.21-3.419 2.11-2.288 4.246-4.554 6.372-6.83 1.938-2.073 4.05-4.03 5.93-6.15 1.435-1.619 1.439-2.175-.037-4.018"></path><path id="Fill-23" d="M6.999 12c.043.014-.909-2.045-.825-1.919-.475-.719-1.046-1.24-1.738-1.727C3.708 7.843.127 7.254 0 7c1.494 2.652 4.167 4.128 6.999 5"></path><path id="Fill-25" d="M22.355 7.196A6.2 6.2 0 0 0 23.15 9c.07.078.859-4.184.85-4.547C23.988 3.832 23.613 0 22.815 0c-1.337 0-.674 6.47-.459 7.196"></path><path id="Fill-27" d="M48.97 5c-2.992 0-9.68 5.854-8.908 9 .005.01.447-.35.35-.283l.057-.043c1.272-1.025 2.718-2.02 3.992-3.206.911-.85 1.987-1.612 2.816-2.54C47.362 7.832 49.263 5 48.97 5"></path></g></g></g>',1),Ty=[Dy];function Py(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ty])}const Oy={render:Py},Fy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Pizza" fill-rule="evenodd" stroke-width="1"><g id="Group-2" fill="#FFF" transform="translate(112 59)"><path id="Fill-29" d="M30.933 24.391c-4.082 1.38-8.55 3.324-10.905 7.074-1.847 2.942-1.971-.455-4.55.593-2.508 1.019-1.822 5.223-2.733 7.301-.708-1.191-1.043-2.516-1.935-3.604a6.6 6.6 0 0 0 1.814-1.724c.156-.32-4.792.348-5.076.43-1.411.401-2.74.77-4.088 1.429a79 79 0 0 0 1.965-2.989q.31-1.02 1.108-.006c.748.036 1.178.357 1.962.177 2.915-.667 3.843-6.223.25-5.987a93 93 0 0 0 4.253-8.802c.502 4.291 6.08 2.813 7.719.525 2.14-2.989-.604-8.662-4.484-8.112.581-1.375 1.17-2.762 1.65-4.178 1.092 1.61 3.001 2.39 4.538 3.457a18.2 18.2 0 0 1 4.163 4.006c2.386 3.14 3.793 7.007 6.215 10.052a7 7 0 0 0-1.866.358m9.006-4.388c-.632-5.757-5.15-11.601-9.44-15.176-2.55-2.125-10.24-7.385-13.306-3.34 2.472 1.071 5.2 1.33 7.65 2.489 3.32 1.572 5.922 4.16 8.168 7.055 3.137 4.045 7.97 12.283.474 14.386.518-.338.819-.709 1.228-1.308-1.007-.233-.6-1.878-.954-2.952-.412-1.25-1.21-2.467-1.884-3.582a57 57 0 0 0-3.504-5.171c-1.678-2.186-3.686-3.907-5.977-5.396-.907-.589-1.775-1.11-2.817-1.415-1.349-.394-.907.086-1.276-1.146-.232-.773-.024-1.763-.246-2.592-1.973 1.658-2.615 4.055-3.5 6.381-1.02 2.684-2.122 5.335-3.196 7.997-2.635 6.535-6.034 12.395-9.891 18.247-.672 1.02-2.165 2.95-1.09 4.174.96 1.095 2.33.306 3.386-.139 1.436-.604 3.385-2.164 4.935-1.347 1.998 1.054 1.054 4.984 4.214 4.827 3.114-.154 2.527-5.28 3.527-7.317 2.311 1.685 4.175.64 5.579-1.611 1.626-2.61 3.775-3.657 6.513-4.938 1.12-.524 3.034-1.94 4.2-2.115.966-.145 1.893.883 3.184.837 3.098-.113 4.392-4.253 4.023-6.848"></path><path id="Fill-31" d="M18.537 22.834c-2.425-.445-5.807-.074-6.029 3.153-.136 1.978 1.41 3.848 3.082 4.664 5.122 2.5 9.109-6.688 2.947-7.817"></path><path id="Fill-33" d="M28.336 19.158c-.65-.706-1.703-1.24-2.675-.993.31-.214.568-.6.864-.839-3.156-2.286-5.14 3.479-3.346 5.748 2.717 3.44 8.037-.766 5.157-3.916"></path></g></g></g>',1),Ly=[Fy];function $y(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ly])}const Ry={render:$y},Hy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Selena" fill-rule="evenodd" stroke-width="1"><g id="Selena" fill="#FFF" transform="translate(94 58)"><path id="Bom-Bom" d="M65.303 7.568c-.156.93-1.922 5.089-3.229 2.95-.509-.832.402-3.46.685-4.209.558-1.472.974-1.638 2.263-2.33.109 1.188.411 2.398.281 3.589m-2.984 3.319c.03.012.158.132 0 0m-.008-.007c-.006-.004 0 0 0 0M55.03 6.205c.01.008.053.042 0 0M42.555 11.16c-.207 1.22-.475 2.439-.904 3.6-.17-1.732.103-3.456 1-4.95q-.015.676-.096 1.35m-.01-2.502c-.004-.016-.159-.24 0 0M25.908 18.803c.153-1.533.768-3.017 1.906-4.044-.277 1.625-1.072 2.67-1.906 4.044m49.93-13.506c0 .637-2.06 2.335-2.574 2.803-.879.799-1.815 1.44-3.077 1.254-3.462-.51-2.09-4.206-2.641-6.481-.434-1.788-.879-1.114-2.082-1.227-1.118-.104-1.518-.656-2.682.187-2.096 1.519-3.766 3.496-4.659 5.98-.324-1.695-1.245-4.503-3.452-4.093-1.632.303-2.984 2.926-3.663 4.243-.052-1.198-.668-3.076-2.175-2.218-1.036.589-.991 3.381-1.218 4.41-.465 2.111-1.379 7.617-4.644 6.901 1.029-1.918 3.28-7.97 1.35-9.937-2.712-2.762-4.775 4.156-4.886 5.84-.08 1.205.806 3.944.329 4.692-.585.918-2.428 1.313-3.303.641-1.405-1.078-.85-2.83-.53-4.199.422-1.794.62-3.597.734-5.437.085-1.38 1.286-7.548-1.028-7.632-2.095-.075-2.309 5.138-2.458 6.563-.185 1.751-.296 3.525-.235 5.288.062 1.782.394 2.97-.297 4.643-.74 1.793-4.264 7.17-6.373 3.6 2.24-.983 4.911-5.518 3.71-8.067-1.667-3.534-5.416 1.85-5.96 3.656-.877 2.915-.491 6.722 2.864 7.671 3.493.989 6.19-2.286 7.421-5.18 1.002 1.588 2.845 1.986 4.55 1.505a5.8 5.8 0 0 0 1.89-.947c1.07-.81.444-.509 1.58-.542 3.297-.094 5.096-1.153 6.332-4.545-.015.934.343 2.36 1.598 1.849.974-.397.968-2.01 1.148-2.87.57-2.713 1.466-5.541 3.599-7.422 1.84 2.002.48 5.427 1.69 7.56 1.868 3.288 2.808-2.532 3.1-3.654.057 4.882 5.861 3.084 7.118-.157 3.3 3.515 10.234.349 8.923-4.678"></path><path id="Bidi" d="M69.434 15.349c-3.63 0-7.605 1.026-11.127 1.817a98 98 0 0 0-10.502 2.97c-3.871 1.339-7.812 2.554-11.59 4.122-3.276 1.36-7.508 2.353-9.512 5.416-.004.008 2.102-.088 2.272-.117 1.05-.174 1.952-.543 2.917-.956 1.747-.746 3.482-1.519 5.224-2.276 3.904-1.698 7.98-3.095 11.988-4.554 3.996-1.453 8.095-2.685 12.255-3.625 3.39-.767 7.182-.914 10.303-2.273q-.176.066.23-.091c-.079.038-2.221-.433-2.458-.433m-47.317 5.476c-2.27-.998-5.477-.558-7.835-.239-2.143.29-5.496.935-6.833 1.108-1.106.14-4.406 1.04-5.01-.197-.649-1.331 2.72-5.403 3.456-6.363 3.315-4.32 7.3-9.12 12.08-11.923-.44 1.95-.825 3.918-1.227 5.876-.166.808-.95 5.164.486 5.508.59.14 1.772-2.783 1.87-3.044.823-2.19 1.012-4.71 1.391-7.002.217-1.311 1.2-4.05-.694-4.502-1.629-.389-3.836 1.727-4.923 2.619-3.282 2.692-6.127 5.947-8.787 9.22-1.31 1.613-2.615 3.234-3.714 4.997-.904 1.45-3.09 4.49-2.145 6.282 1.698 3.221 9.84.398 12.432-.032 2.045-.339 4.152-.66 6.227-.376 2.162.295 2.057 1.27 1.339 3.196-1.478 3.96-4.776 7.36-7.724 10.32-1.299 1.303-6.38 7.419-7.66 4.091-.87-2.26-.1-5.035.9-7.114.468-.973 1.089-1.861 1.577-2.824.133-.263.802-2.425.947-2.473-3.87 1.35-6.117 6.585-6.332 10.287-.102 1.741.136 4.324 1.8 5.368s3.226-.227 4.549-1.185c3.642-2.64 6.891-5.998 9.865-9.335 1.626-1.824 8.453-10.287 3.965-12.263"></path></g></g></g>',1),zy=[Hy];function Iy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...zy])}const Gy={render:Iy},jy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull-Outline" fill-rule="evenodd" stroke-width="1"><g id="Skull" fill="#FFF" transform="translate(113 59)"><path id="Boo!" d="M36.335 17.04c-.18 1.038-.442 2.069-.988 2.989-.72 1.211-2.026 1.707-2.783 2.818-1.193 1.752.392 4.276-.786 5.837-1.266 1.68-4.142.663-5.262 2.892-1.18 2.35.538 5.492-.943 7.83-1.47-.37-1.922-5.886-4.189-2.367-1.452 2.254-.471 3.475-2.649.235-.756-1.125-1.61-2.136-3.096-1.393-1.043.521-1.258 2.837-2.21 3.086-2.333.612-2.418-5.617-3.212-6.796-.436-.648-.842-1.032-1.617-1.277-.672-.213-1.869.215-2.425-.1-1.045-.592-1.186-2.556-1.225-3.598-.074-1.939.575-3.919.04-5.838-.451-1.612-1.887-2.603-2.357-4.183C.1 8.64 11.683 3.895 18.3 3.63c7.74-.31 19.037 4.222 18.036 13.41m1.838-5.316c-1.456-3.441-4.655-6.177-7.915-8.013a18.5 18.5 0 0 0-5.085-1.94c-1.641-.36-3.558-.123-5.125-.576C18.728.812 17.91-.048 16.356.002c-2.118.068-4.319 1.172-6.168 2.086-3.66 1.807-6.771 4.148-8.726 7.743-2.098 3.859-1.9 7.356.349 10.952 2.145 3.434-.974 8.262 2.167 11.526C5.3 33.68 6.6 32.68 7.85 33.34c.962.508.921 3.462 1.188 4.328 1.2 3.893 5.514 5.4 7.506 1.191.94 2.353 4.655 4.764 6.385 1.686 1.082 1.4 2.954 1.995 4.383.795 1.344-1.128 1.492-3.755 1.56-5.343.054-1.238-.497-2.764.454-3.658 1.047-.984 3.194-.57 4.37-1.839 1.34-1.45.789-3.146.892-4.872.104-1.746.416-1.301 1.71-2.562 2.885-2.81 3.374-7.807 1.875-11.343"></path><path id="Boo!" d="M14.42 28.121c2.02-1.822 1.591-7.397 1.424-9.959-.316-4.86-3.355-3.408-5.206-.38-1.4 2.29-4.766 5.994-3.257 8.876 1.202 2.296 5.18 3.136 7.039 1.463m13.37-8.847c-1.034-1.92-1.42-2.212-2.65-3.785-.791-1.011-1.9-2.802-3.404-2.442-2.582.62-1.528 6.612-1.498 8.402.024 1.358-.277 2.765.851 3.728 1.155.986 3.053.897 4.44.69 4.259-.633 4.062-3.253 2.262-6.593M19.24 31.83c-.284-.036.077-.362.12-.587.187.614.326.643-.12.587m1.045-4.31c-2.617-2.77-7.574 6.397-4.08 7.425.805.237 1.4-.363 2.155-.468 1.1-.153 2.024.487 2.973-.522 1.491-1.584.187-5.098-1.048-6.436"></path></g></g></g>',1),qy=[jy];function Wy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...qy])}const Yy={render:Wy},Uy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bear" fill-rule="evenodd" stroke-width="1"><defs><path id="poly-1" d="M47.892.43v41.49H.453V.43z"></path></defs><g id="Group-76" transform="translate(108 59)"><path id="Fill-74" fill="#FFF" d="M34.447 31.586c-.479 2.816-4.08 7.345-7.147 4.384-3.467-3.344 4.225-4.81 1.481-7.594-1.184-1.2-4.412-.537-6.002-.41-1.49.117-3.866.454-3.296 2.624.433 1.65 1.71.944 2.389 1.892.535.748.308 3.507-.49 4.267-1.002.956-2.189.663-3.584.05-3.192-1.4-4.677-5.312-2.575-8.216 4.155-5.741 20.067-7.059 19.224 3.003M14.985 14.724c.985-.443 2.148-.203 2.732.787.802 1.356-.357 3.173-1.975 2.956-1.707-.23-2.57-2.919-.757-3.743m17.962 1.655c-.856 3.006-5.636-.378-2.936-2.29 1.552-1.099 3.447.491 2.936 2.29m14.88 6.79c-.236-2.38-.9-4.646-2.088-6.73-.623-1.093-1.393-2.111-2.19-3.081-.3-.365-.906-1.008-1.023-1.213-.709-1.24-.638-.362-.247-1.785.616-2.243 1.947-4.08.884-6.49-.99-2.24-3.655-3.293-5.984-3.426a8.2 8.2 0 0 0-3.207.449c-1.035.368-2.001 1.64-2.9 1.9-.698.204-2.685-.46-3.441-.508-1.395-.089-2.798-.05-4.192.034-1.63.096-5.376 1.263-6.913.877-1.015-.255-2.209-1.781-3.381-2.164C11.853.61 10.467.468 9.178.954c-2.285.864-4 3.552-4.053 5.942-.028 1.255.655 2.115.79 3.25.203 1.716.437.357-.487 1.726-.47.697-1.295 1.31-1.824 1.982C.779 17.44-.28 22.732.974 27.074c3.159 10.94 13.668 15.394 24.44 14.793 9.25-.516 23.564-7.718 22.413-18.698"></path></g></g></g>',1),Xy=[Uy];function Zy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Xy])}const Qy={render:Zy},Ky=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Deer" fill="#FFF" fill-rule="evenodd"><path id="oh,-deer!" d="M76.96 16.235c.395 1.425-2.228 2.67-3.106 3.419-1.507 1.283-3.065 2.634-4.825 3.547-.748.388-1.553.703-2.362.935-1.247.357-1.104.107-1.58 1.165-.838 1.86-1.055 4.334-1.812 6.312-1.704 4.454-5.767 14.8-12.267 10.259-2.068-1.445-3.197-4.247-4.36-6.436-1.335-2.512-2.613-5.508-3.381-8.25-.375-1.336-.137-1.79-1.13-2.415-.622-.392-1.679-.493-2.383-.78-1.5-.61-2.813-1.436-4.088-2.43-1.238-.966-6.11-4.951-2.132-5.691 1.825-.34 4.217-.214 6.067-.12 2.027.102 4.073.57 5.876 1.535 1.841.987 1.301.701 3.21.15-3.322-1.126-6.649-2.998-8.884-5.781-1.207-1.503-4-7.654-1.9-9.065 2.52-1.696 2.73 5.346 3.439 6.567 1.592 2.744 4.508 3.78 7.042 5.299-1.74-1.668-3.04-3.505-3.673-5.868-.275-1.025-1.026-3.489-.519-4.486.529-1.04 1.772-1.106 2.458-.22.618.797.462 2.63.674 3.591.35 1.589.921 2.81 1.982 4.04 1.505 1.747 3.417 3.175 5.669 3.728 5.127 1.258 6.92-4.108 7.608-8.245.168-1.013-.08-2.693 1.05-3.18 1.367-.588 1.896.747 1.936 1.782.087 2.314-1.056 5.857-2.166 7.845 2.79-1.732 5.003-4.478 5.899-7.688.33-1.188.062-3.836 1.174-4.503 1.54-.924 2.029.917 1.975 2.022-.319 6.515-5.298 12.44-11.488 14.069 1.518.759 1.318.93 2.848.023.885-.525 1.845-.93 2.827-1.23 1.47-.452 3.055-.682 4.58-.817 1.22-.107 5.274-.817 5.742.917m-18.1 8.386c.86-2.138-2.496-2.216-2.822.095-.416 2.945 2.755 3.176 2.822-.095m-1.93 9.016c.659-2.196-3.526-2.112-3.896-.17-.436 2.291 3.406 1.73 3.896.17M51.702 27c2.324 0 3.272-3.065.997-3.861-2.89-1.013-3.815 3.861-.997 3.861" transform="translate(77 58)"></path></g></g>',1),Jy=[Ky];function ek(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Jy])}const tk={render:ek},ak=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Hola" fill="#FFF" fill-rule="evenodd"><path id="Hola" d="M74.637 16.948c1.28 5.762-.904 11.244-5.33 15.004-2.08 1.768-4.434 3.074-7.056 3.835a25 25 0 0 1-4.497.87c-1.136.111-2.784-.4-3.79-.111-1.12.321-2.559 1.865-3.757 2.362a20 20 0 0 1-2.068.727c-1.506.438-3.065.734-4.613.977-1.602.25-8.283 1.302-7.455-1.637.284-1.01 3.11-2.504 3.724-3.184.454-.502 3.145-3.364 3.019-4.295-.04-.294-1.747-1.63-2.148-2.08-.909-1.019-1.762-2.058-2.245-3.351-.829-2.216-.786-4.998-.51-7.32.688-5.804 3.566-9.659 8.602-12.55 2.855-1.637 5.96-2.538 9.205-2.934 3.956-.483 7.11-.498 10.467 1.75 4.42 2.96 7.275 6.668 8.452 11.937m-5.131 6.988c1.086-.3-.308-3.053-1.079-1.72-.277.48.463 1.889 1.079 1.72m-1.821-5.322c.088.36.434.47.748.427.75-.104.28-.981.301-1.373.04-.749.107-2.639-.172-3.32-.513-1.254-.975-1.014-1.274.214-.267 1.1.123 2.947.397 4.052m-1.048 4.279c.843-.498-1.38-6.176-1.868-6.988-1.892-3.145-2.504 2.431-2.794 3.81-.125.596-1.518 6.781.339 4.787.99-1.064-.558-4.602 2.243-3.78.984.29.272.207.874 1.11.22.33.458 1.5 1.206 1.06Zm-6.342-1.294c.786-1.35-2.665-.721-3.062-.697.094-1.8.445-3.623.44-5.422 0-.475.165-2.191-.958-1.381-.454.327-.298 1.83-.336 2.28-.09 1.057-.948 4.707-.108 5.56.595.603 3.693.22 4.024-.34m-4.799-2.44c.338-1.344-.084-4.253-1.845-4.28-.613-.008-.335.831-.487.92-1.065.621-1.528.542-2.16 1.646-2.486 4.35 3.067 7.445 4.492 1.714m-6.027 3.83c.761-.21.546-9.977-.331-9.983-1.51-.008-.063 4.84-.635 5.49-.17.196-1.026.015-1.25.056-1.14.212-1.89.092-2.24-.606-.312-.62.36-4.88-1.258-2.79q.023 1.107.035 2.213.504 1.072-.376 1.306c-.03.47.392.864.397 1.017.025.771-.484 4.231.9 4.064.885-.107.32-3.481.317-4.03 1.143.027 2.34.155 3.475.008.006.427-.288 3.603.966 3.256ZM63.837 17A19 19 0 0 1 65 18.842q-.999.086-2 .158c.272-.668.544-1.335.837-2m-9.914 0c.145.423.256 3.288-1.355 2.976-.92-.177-.507-1.764-.246-2.091.55-.69.873-.448 1.601-.885" transform="translate(77 58)"></path></g></g>',1),nk=[ak];function rk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...nk])}const ok={render:rk},ik=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Resist" fill-rule="evenodd" stroke-width="1"><g id="Resist" fill="#FFF" transform="translate(80 67)"><path id="!" d="M102.565 21.071c-3.082-.666-5.192 3.535-1.912 4.784 2.815 1.072 4.845-4.145 1.912-4.784"></path><path id="H" d="M101.191 18c3.657 0 2.308-5.981 2.321-7.965.014-2.137 1.545-8.596-.89-9.734-4.216-1.971-3.06 6.325-3.034 7.968.028 1.816.167 3.72-.229 5.508-.35 1.58-1.129 4.223 1.832 4.223"></path><path id="C" d="M96.058 1.974c-1.082-.622-2.801-.32-3.987-.374-1.349-.06-2.69-.195-4.035-.293-2.177-.16-4.956-.563-7.118-.068-1.226.28-2.338 1.225-1.761 2.608.62 1.49 2.303 1.105 3.58 1.03.585-.035 2.033-.29 2.605-.089.997.35.573-.108.801 1.067.349 1.807.14 4 .125 5.838-.026 3.174-.036 6.364-.103 9.536-.026 1.236-.44 2.632.757 3.448.998.68 2.216.225 2.733-.793.514-1.013.026-3.067-.029-4.196-.066-1.347-.136-2.676-.097-4.025.104-3.585.282-7.167.368-10.754.943.046 1.922.018 2.856.15.683.095 1.665.535 2.322.5 1.9-.1 2.694-2.587.983-3.585"></path><path id="A" d="M67.722 8.813c-.012-.053-.082-.644 0 0m-.037-.276c.004.025 0 .008 0 0m1.432-3.11c3.416-3.981 4.583 4.347 7.246 3.995 4.26-.564-.941-6.953-2.669-7.776-3.515-1.675-6.605.08-8.277 3.267-2.098 4-.77 6.708 3.258 8.444 1.471.635 7.04 2.528 5.53 4.959-.76 1.224-3.526 1.329-4.7 1.086-2.356-.486-1.989-2.086-3.135-3.573-1.033-1.34-3.03-.947-3.342.781-.245 1.358 1.17 3.425 2.115 4.38 2.233 2.256 6.04 2.437 8.887 1.41 4.386-1.583 4.917-5.71 1.806-8.905-1.749-1.795-3.933-2.34-6.113-3.418-2.645-1.306-2.15-2.39-.606-4.65"></path><path id="E" d="M58.75 20.568c-.564-4.825-.696-9.717-.78-14.563-.027-1.554.706-5.206-1.453-5.865-2.915-.89-2.528 2.692-2.467 4.164.205 4.913.842 9.789 1.071 14.696.073 1.557-.429 4.574 1.831 4.946 2.75.454 2.008-2.081 1.798-3.378"></path><path id="P" d="M49.472 4.68c-2.36-3.159-7.154-3.669-10.09-.758-2.072 2.054-3.377 6.92-1.416 9.403 2.124 2.691 7.355.332 8.725 3.383 1.682 3.743-2.73 5.148-5.074 2.663-.843-.894-.659-2.454-1.9-3.007-1.763-.785-2.864.928-2.517 2.359.848 3.5 4.652 5.39 8.101 5.272 3.768-.13 5.402-2.977 5.163-6.4-.33-4.735-3.985-5.476-7.99-5.998-1.698-.22-1.92-.2-1.816-1.952.128-2.118 1.37-4.567 3.991-4.063 2.106.405 2.294 3.571 4.455 3.718 3.496.239 1.256-3.433.368-4.62"></path><path id="M" d="M31.721 20.438c-1.337.32-2.963.098-4.327.073-1.053-.019-4.574.427-5.261-.296-.76-.8-.513-3.247-.545-4.286-.046-1.454-.404-1.67.872-2 .749-.193 1.907-.096 2.682-.131 1.515-.07 3.465.21 4.93-.088 1.37-.28 2.502-1.751 1.25-3.004-.886-.888-2.542-.411-3.631-.386-2.034.046-4.069.036-6.103.072.008-1.568-.043-3.147.079-4.71 2.847.14 5.812.881 8.659.745 1.44-.07 3.04-.992 2.31-2.73-.624-1.49-2.521-1.287-3.843-1.346-1.653-.075-3.308-.113-4.962-.17-1.224-.042-3.005-.445-4.159.107-2.362 1.13-1.55 5.01-1.485 7.112.084 2.666.085 5.268.177 7.956.084 2.433-.037 5.641 2.852 6.325 2.89.684 6.245.033 9.192.176 1.209.058 2.861.41 3.455-.996.569-1.349-.73-2.774-2.142-2.423"></path><path id="I" d="M8.41 5.88c2.321.5 2.942 3.014 3.02 5.149.054 1.46.183 1.373-1.003 1.74-1.19.368-2.92.169-4.139.116-2.543-.11-2.235-.278-2.284-2.945-.012-.625-.475-3.504-.108-3.91.476-.528 3.839-.203 4.514-.15m5.077 14.838c-1.29-1.504-2.586-2.94-4.034-4.286 2.158-.06 4.503-.473 5.27-2.819.648-1.982.085-5-.668-6.872-.994-2.47-3.062-4.119-5.635-4.478-1.796-.251-6.278-.673-7.62.71C-.665 4.482.352 8.623.442 10.47c.16 3.271.044 6.518-.157 9.785-.064 1.055-.582 2.787-.041 3.737.6 1.054 2.059 1.317 2.969.537.984-.844.529-1.878.468-2.961-.093-1.676.075-3.404.174-5.074 1.608 1.312 3.25 2.591 4.762 4.022 1.493 1.414 2.564 3.202 3.99 4.627 1.011 1.01 2.82 1.425 3.331-.448.44-1.608-1.571-2.951-2.451-3.977"></path></g></g></g>',1),sk=[ik];function lk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...sk])}const ck={render:lk},dk=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull" fill="#FFF" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Fill-49" d="M65.282 19.929c-.298 2.777-5.693 4.274-7.672 2.448-.912-.842-.927-2.574-1.128-3.702-.38-2.133-.656-4.258-.751-6.423-.058-1.325-.406-2.385 1.044-2.582.883-.12 1.793.468 2.515.933 2.447 1.573 6.33 6.138 5.992 9.326m-12.4-5.853c.284 2.825 1.32 7.739-.936 10.105-2.016 2.115-6.16.018-6.783-2.473-.773-3.09 2.275-6.78 4.145-8.87.574-.641 1.844-2.412 2.836-1.82.382.228.693 2.612.737 3.058m1.44 11.03c.647-1.523 6.913 3.019 3.953 5.18-.482.352-4.16 1.465-4.864.941-1.485-1.103.43-4.964.911-6.12m19.004-7.58c-.443-15.476-20.26-19.84-30.85-11.023-4.048 3.372-6.362 7.5-6.468 12.779-.09 4.471.619 8.689 4.034 11.764 1.481 1.333 2.46 2.149 3.245 3.97.824 1.906 1.2 4.335 2.742 5.833.85.825 2.09 1.492 3.266.96 2.162-.98 1.47-3.978 2.125-5.65 2.037 4.97 7.211 6.554 8.15.25 1.031 1.819 3.726 4.2 5.7 2.21.812-.82.934-2.15 1.072-3.227.245-1.912-.18-2.664 1.355-3.975 4.039-3.45 5.773-8.672 5.63-13.891" transform="translate(77 58)"></path></g></g>',1),uk=[dk];function fk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...uk])}const mk={render:fk},hk={Bat:By,Cumbia:Ny,Diamond:Oy,Pizza:Ry,Selena:Gy,SkullOutline:Yy,Bear:Qy,Deer:tk,Hola:ok,Resist:ck,Skull:mk},pk=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Closed",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("path",{id:"Closed-Eye",d:"M16.16 32.447C18.007 28.65 22.164 26 26.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 28.65 80.164 26 84.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125",transform:"matrix(1 0 0 -1 0 60)"})])],-1),gk=[pk];function yk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...gk])}const kk={render:yk},bk=t.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[t.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),t.createElementVNode("circle",{id:"Eye",cx:"82",cy:"22",r:"6"})],-1),xk=[bk];function wk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...xk])}const vk={render:wk},Ek=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Eye-Roll" transform="translate(0 8)"><circle id="Eyeball" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="The-white-stuff" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="14" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="14" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),Ck=[Ek];function Sk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ck])}const Mk={render:Sk},Bk=t.createElementVNode("g",{fill:"#FF5353",class:"CustomColor",opacity:".8",transform:"translate(76 90)"},[t.createElementVNode("path",{id:"Heart",d:"M35.958 10c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C17.552 10 14 13.334 14 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C40.585 26.77 45 23.37 45 17.64c0-4.306-3.552-7.64-9.042-7.64m53 0c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C70.552 10 67 13.334 67 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C93.585 26.77 98 23.37 98 17.64c0-4.306-3.552-7.64-9.042-7.64"})],-1),Ak=[Bk];function Vk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ak])}const _k={render:Vk},Nk=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Squint" transform="translate(0 8)"><defs><path id="Eye1" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path><path id="Eye2" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path></defs><g id="Eye" transform="translate(16 13)"><mask id="EyeMask1" fill="#fff"><use href="#Eye1"></use></mask><use id="The-white-stuff" fill="#FFF" href="#Eye1"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask1')" opacity=".7"></circle></g><g id="Eye" transform="translate(68 13)"><mask id="EyeMask2" fill="#fff"><use href="#Eye2"></use></mask><use id="Eyeball-Mask" fill="#FFF" href="#Eye2"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask2')" opacity=".7"></circle></g></g></g>',1),Dk=[Nk];function Tk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Dk])}const Pk={render:Tk},Ok=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Wink",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),t.createElementVNode("path",{id:"Winky-Wink",d:"M70.412 24.205c1.847-3.799 6.005-6.447 10.838-6.447 4.816 0 8.961 2.63 10.818 6.407.551 1.122-.234 2.04-1.025 1.36-2.451-2.108-5.932-3.424-9.793-3.424-3.74 0-7.124 1.235-9.56 3.228-.891.729-1.818-.013-1.278-1.124",transform:"rotate(-4 81.252 21.758)"})])],-1),Fk=[Ok];function Lk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Fk])}const $k={render:Lk},Rk=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Cry" transform="translate(0 8)"><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".6"></circle><path id="Drop" fill="#92D9FF" d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27"></path><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".6"></circle></g></g>',1),Hk=[Rk];function zk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Hk])}const Ik={render:zk},Gk=t.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[t.createElementVNode("path",{id:"Eye",d:"m29 25.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L32.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L29 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0zm54 0 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L86.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L83 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0z"})],-1),jk=[Gk];function qk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...jk])}const Wk={render:qk},Yk=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Happy",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("path",{id:"Squint",d:"M16.16 22.447C18.007 18.65 22.164 16 26.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 18.65 80.164 16 84.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125"})])],-1),Uk=[Yk];function Xk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Uk])}const Zk={render:Xk},Qk=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Side",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("path",{id:"Eye",d:"M27.241 20.346a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C33.9 17.317 30.506 16 26.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228zm58 0a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C91.9 17.317 88.506 16 84.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228z"})])],-1),Kk=[Qk];function Jk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Kk])}const eb={render:Jk},tb=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Surprised" transform="translate(0 8)"><circle id="The-White-Stuff" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="Eye-Ball" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),ab=[tb];function nb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ab])}const rb={render:nb},ob=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Wink-Wacky" transform="translate(0 8)"><circle id="cornea" cx="82" cy="22" r="12" fill="#FFF"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle><path id="Winky-Doodle" fill="#000" d="M16.16 25.447C18.007 21.65 22.164 19 26.998 19c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125" opacity=".6"></path></g></g>',1),ib=[ob];function sb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ib])}const lb={render:sb},cb={Close:kk,Default:vk,EyeRoll:Mk,Hearts:_k,Squint:Pk,Wink:$k,Cry:Ik,Dizzy:Wk,Happy:Zk,Side:eb,Surprised:rb,WinkWacky:lb},db=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Outline/Angry",d:"M15.611 15.185c4.24-5.769 6.878-5.484 13.313-.629l.67.508C34.422 18.726 36.708 20 40 20a2 2 0 1 0 0-4c-2.066 0-3.901-1.022-7.989-4.123-.375-.285-.492-.373-.678-.513-3.76-2.837-5.959-4.077-8.695-4.372-3.684-.398-7.058 1.482-10.25 5.823a2 2 0 0 0 3.223 2.37m80.777 0c-4.24-5.769-6.877-5.484-13.312-.629l-.67.508C77.578 18.726 75.292 20 72 20a2 2 0 1 1 0-4c2.066 0 3.901-1.022 7.989-4.123.375-.285.492-.373.678-.513 3.76-2.837 5.959-4.077 8.695-4.372 3.684-.398 7.058 1.482 10.25 5.823a2 2 0 0 1-3.224 2.37",class:"CustomColor",opacity:".6"})],-1),ub=[db];function fb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ub])}const mb={render:fb},hb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Flat-Natural",d:"M38.66 11.09c-4.998.362-9.923.086-14.918-.122-3.83-.158-7.717-.681-11.374 1.012-.7.324-4.53 2.28-4.44 3.349.07.855 3.935 2.191 4.63 2.436 3.67 1.29 7.181.896 10.954.67 4.628-.278 9.236-.074 13.861-.214 3.116-.093 7.917-.62 9.457-4.398.464-1.137.105-3.413-.36-4.657-.185-.496-.72-.683-1.125-.397-1.45 1.023-4.261 2.146-6.685 2.321m34.68 0c4.998.362 9.923.086 14.918-.122 3.83-.158 7.717-.681 11.374 1.012.7.324 4.53 2.28 4.44 3.349-.07.855-3.935 2.191-4.63 2.436-3.67 1.29-7.181.896-10.954.67-4.628-.278-9.236-.074-13.861-.214-3.116-.093-7.917-.62-9.457-4.398-.464-1.137-.105-3.413.36-4.657.185-.496.72-.683 1.125-.397 1.45 1.023 4.261 2.146 6.685 2.321",class:"CustomColor",opacity:".6"})],-1),pb=[hb];function gb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...pb])}const yb={render:gb},kb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Outline/Sad-Concerned",d:"M38.028 5.591c-1.48 8.389-14.09 14.18-23.238 10.432-1.015-.416-2.19.031-2.627.999s.033 2.09 1.048 2.505c11.444 4.69 26.835-2.38 28.762-13.303.183-1.039-.551-2.023-1.64-2.197-1.09-.175-2.122.525-2.305 1.564m35.945 0c1.48 8.389 14.09 14.18 23.238 10.432 1.014-.416 2.19.031 2.627.999s-.033 2.09-1.048 2.505c-11.444 4.69-26.835-2.38-28.762-13.303-.183-1.039.551-2.023 1.64-2.197 1.09-.175 2.121.525 2.305 1.564",class:"CustomColor",opacity:".6"})],-1),bb=[kb];function xb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...bb])}const wb={render:xb},vb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Up-Down-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303M86.993 12.07c5.761.773 14.746 5.795 13.994 11.607-.024.19-.312.25-.436.091-2.487-3.188-21.712-7.872-28.714-6.894-.64.09-1.063-.571-.626-.984 3.744-3.535 10.62-4.518 15.782-3.82",class:"CustomColor",opacity:".6"})],-1),Eb=[vb];function Cb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Eb])}const Sb={render:Cb},Mb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Angry-Natural",d:"M44.095 17.125q.006-.014 0 0M19.284 5.005c-2.368-.266-4.858.497-6.427 2.434-.59.728-1.553 2.48-1.509 3.417.017.356.225.375 1.124.59 1.646.392 4.5-1.114 6.355-.972 2.582.198 5.047 1.395 7.283 2.679 3.838 2.202 8.354 6.84 13.093 6.598.353-.018 5.42-1.739 4.41-2.723-.316-.484-3.034-1.128-3.501-1.361-2.172-1.084-4.367-2.448-6.443-3.718-4.528-2.772-8.944-6.338-14.385-6.944m48.746 12.12q-.006-.014 0 0m24.876-12.12c2.368-.266 4.857.497 6.426 2.434.59.728 1.554 2.48 1.509 3.417-.017.356-.225.375-1.124.59-1.645.392-4.5-1.114-6.355-.972-2.582.198-5.046 1.395-7.282 2.679-3.839 2.202-8.355 6.84-13.093 6.598-.353-.018-5.42-1.739-4.411-2.723.317-.484 3.034-1.128 3.502-1.361 2.171-1.084 4.367-2.448 6.442-3.718 4.528-2.772 8.945-6.338 14.386-6.944",class:"CustomColor",opacity:".6"})],-1),Bb=[Mb];function Ab(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Bb])}const Vb={render:Ab},_b=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Frown-Natural",d:"M36.37 6.876c-1.97 2.905-5.546 4.64-8.738 5.684-3.943 1.29-18.552 3.38-15.112 11.348a.147.147 0 0 0 .272.002c1.153-2.645 17.465-5.123 18.973-5.704 4.445-1.709 8.393-5.49 9.162-10.543.352-2.317-.637-6.049-1.548-7.55-.11-.18-.374-.136-.43.069-.36 1.331-1.41 4.971-2.58 6.694m39.261 0c1.97 2.905 5.546 4.64 8.738 5.684 3.943 1.29 18.551 3.379 15.112 11.348a.147.147 0 0 1-.272.002c-1.153-2.645-17.465-5.123-18.973-5.704-4.445-1.709-8.393-5.49-9.162-10.543-.352-2.317.637-6.049 1.548-7.55.11-.18.374-.136.43.069.36 1.331 1.41 4.971 2.58 6.694",class:"CustomColor",opacity:".6"})],-1),Nb=[_b];function Db(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Nb])}const Tb={render:Db},Pb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Sad-Concerned-Natural",d:"m31.234 20.422-.911.402c-5.242 2.081-13.188 1.209-18.046-1.123-.567-.272-.18-1.153.402-1.108 14.919 1.151 24.963-8.146 28.375-14.44.101-.187.407-.208.482-.034 2.308 5.319-4.45 13.985-10.302 16.303m49.532 0 .911.402c5.242 2.081 13.188 1.209 18.046-1.123.567-.272.18-1.153-.402-1.108-14.919 1.151-24.963-8.146-28.375-14.44-.101-.187-.407-.208-.482-.034-2.308 5.319 4.45 13.985 10.302 16.303",class:"CustomColor",opacity:".6"})],-1),Ob=[Pb];function Fb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ob])}const Lb={render:Fb},$b=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyebrow/Outline/Default",opacity:".6"},[t.createElementVNode("path",{id:"I-Browse",d:"M15.63 17.159c3.915-5.51 14.648-8.598 23.893-6.328a2 2 0 0 0 .954-3.884C29.74 4.31 17.312 7.887 12.37 14.84a2 2 0 0 0 3.26 2.318Zm80.74 0c-3.915-5.51-14.648-8.598-23.893-6.328a2 2 0 0 1-.954-3.884c10.737-2.637 23.165.94 28.108 7.894a2 2 0 0 1-3.26 2.318Z",class:"CustomColor"})])],-1),Rb=[$b];function Hb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Rb])}const zb={render:Hb},Ib=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyebrow/Outline/Raised-Excited",opacity:".6"},[t.createElementVNode("path",{id:"I-Browse",d:"M15.976 17.128C17.47 7.605 30.059 1.108 39.164 5.3a2 2 0 0 0 1.672-3.633c-11.487-5.29-26.9 2.664-28.812 14.84a2 2 0 1 0 3.952.62Zm80.048 0C94.53 7.605 81.942 1.108 72.837 5.3a2 2 0 0 1-1.673-3.633c11.487-5.29 26.9 2.664 28.812 14.84a2 2 0 0 1-3.952.62Z",class:"CustomColor"})])],-1),Gb=[Ib];function jb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Gb])}const qb={render:jb},Wb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyebrow/Natural/Unibrow-Natural",opacity:".6"},[t.createElementVNode("path",{d:"M56.997 12.82q0-.005 0 0m2.559 2.805c1.892 1.101 4.717 1.734 6.315 1.94 6.277.807 12.266-1.535 18.386-2.68 5.432-1.015 11.625-1.925 16.73.91.13.072 1.162.667 1.707 1.184a.81.81 0 0 0 1.291-.224c1.325-2.726-6.402-8.594-7.865-9.153-6.627-2.528-15.176.704-21.796 2.001-3.717.728-7.462 1.252-11.115 2.29-1.31.373-2.58 1.007-3.862 1.218-.162-.224-.362-.36-.588-.352-1.17.04-2.796 3.557-.56 3.676.7.038 1.13-.312 1.357-.81",class:"CustomColor"}),t.createElementVNode("path",{d:"M55.003 12.79q.002-.005 0 0M15.881 7.573c6.626-2.528 15.176.705 21.796 2.001 3.716.729 7.461 1.253 11.114 2.291 1.47.418 2.887 1.165 4.33 1.274.7.053 1.106.903.635 1.435-1.545 1.74-5.586 2.7-7.626 2.962-6.278.807-12.267-1.534-18.387-2.679-5.432-1.016-11.624-1.925-16.73.91-.13.071-1.161.666-1.707 1.184a.81.81 0 0 1-1.29-.224C6.69 14 14.417 8.133 15.881 7.573m39.092 4.217c1.17.041 2.762 4.5.525 4.674-2.237.173-1.696-4.715-.525-4.674",class:"CustomColor"})])],-1),Yb=[Wb];function Ub(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Yb])}const Xb={render:Ub},Zb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Default-Natural",d:"M26.547 6.148c-5.807.269-15.195 4.488-14.953 10.344.008.192.29.276.427.129 2.755-2.96 22.316-5.95 29.205-4.365.63.145 1.11-.477.71-.927-3.422-3.848-10.186-5.426-15.389-5.18m59.906-.001c5.807.269 15.195 4.488 14.953 10.344-.008.192-.29.276-.427.129-2.755-2.96-22.316-5.95-29.205-4.365-.63.145-1.11-.477-.71-.927 3.422-3.848 10.186-5.426 15.389-5.18",class:"CustomColor",opacity:".6"})],-1),Qb=[Zb];function Kb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Qb])}const Jb={render:Kb},ex=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Raised-Excited-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303m66.468 0-.911-.402C83.08-.905 75.135-.033 70.277 2.299c-.567.272-.18 1.153.402 1.108 14.919-1.151 24.963 8.146 28.375 14.44.101.187.407.208.482.034 2.308-5.319-4.45-13.985-10.302-16.303",class:"CustomColor",opacity:".6"})],-1),tx=[ex];function ax(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...tx])}const nx={render:ax},rx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Outline/Up-Down",d:"M15.591 14.162c4.496-6.326 14.012-9.508 23.756-6.366a2 2 0 1 0 1.228-3.807c-11.408-3.68-22.74.11-28.244 7.856a2 2 0 1 0 3.26 2.317m80.786 6.996c-3.914-5.509-14.647-8.598-23.892-6.328a2 2 0 0 1-.954-3.884c10.736-2.637 23.165.94 28.107 7.895a2 2 0 1 1-3.26 2.317Z",class:"CustomColor",opacity:".6"})],-1),ox=[rx];function ix(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ox])}const sx={render:ix},lx={Angry:mb,FlatNatural:yb,SadConcerned:wb,UpDownNatural:Sb,AngryNatural:Vb,FrownNatural:Tb,SadConcernedNatural:Lb,Default:zb,RaisedExcited:qb,UnibrowNatural:Xb,DefaultNatural:Jb,RaisedExcitedNatural:nx,UpDown:sx},cx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Concerned" transform="translate(2 52)"><defs><path id="Mouth1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="MouthMask1" fill="#fff"><use href="#Mouth1" transform="matrix(1 0 0 -1 0 45)"></use></mask><use id="Mouth" fill="#000" href="#Mouth1" opacity=".7" transform="matrix(1 0 0 -1 0 45)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#MouthMask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#MouthMask1')"><g transform="translate(38 24)"><circle id="friend?" cx="11" cy="11" r="11"></circle><circle id="How-you-doing" cx="21" cy="11" r="11"></circle></g></g></g></g>',1),dx=[cx];function ux(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...dx])}const fx={render:ux},mx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Disbelief",fill:"#000",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14",transform:"matrix(1 0 0 -1 0 44)"})])],-1),hx=[mx];function px(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...hx])}const gx={render:px},yx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Grimace" transform="translate(2 52)"><defs><rect id="Grimace-path1" width="60" height="22" x="24" y="9" rx="11"></rect></defs><rect id="Mouth" width="64" height="26" x="22" y="7" fill="#000" opacity=".6" rx="13"></rect><mask id="Grimace-mask1" fill="#fff"><use href="#Grimace-path1"></use></mask><use id="Mouth" fill="#FFF" href="#Grimace-path1"></use><path id="Grimace-Teeth" fill="#E6E6E6" d="M71 22h-9v12h-4V22h-9v12h-4V22h-9v12h-4V22h-8v-4h8V6h4v12h9V6h4v12h9V6h4v12h9V6h4v12h8.867v4H75v12h-4z" mask="url('#Grimace-mask1')"></path></g></g>',1),kx=[yx];function bx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...kx])}const xx={render:bx},wx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Scream-Open" transform="translate(2 52)"><defs><path id="ScreamOpen-path1" d="M34.008 15.136C35.128 29.124 38.235 40.993 53.996 41c15.762.007 18.92-11.943 19.998-25.994.087-1.13-.82-2.006-1.957-2.006-6.686 0-9.367 1.994-18.048 2s-13.232-2-17.897-2c-1.143 0-2.196.737-2.084 2.136"></path></defs><mask id="ScreamOpen-mask1" fill="#fff"><use href="#ScreamOpen-path1" transform="matrix(1 0 0 -1 0 54)"></use></mask><use id="Mouth" fill="#000" href="#ScreamOpen-path1" opacity=".7" transform="matrix(1 0 0 -1 0 54)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#ScreamOpen-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#ScreamOpen-mask1')"><g id="Say-ahhhh" transform="translate(38 32)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),vx=[wx];function Ex(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...vx])}const Cx={render:Ex},Sx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Smile" transform="translate(2 52)"><defs><path id="Smile-path1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="Smile-mask1" fill="#fff"><use href="#Smile-path1"></use></mask><use id="Mouth" fill="#000" href="#Smile-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Smile-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#Smile-mask1')"><g transform="translate(38 24)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Mx=[Sx];function Bx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Mx])}const Ax={render:Bx},Vx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Twinkle",fill:"#000",opacity:".6",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40 16c0 5.372 6.158 9 14 9s14-3.628 14-9c0-1.105-.95-2-2-2-1.293 0-1.87.905-2 2-1.242 2.938-4.317 4.716-10 5-5.683-.284-8.758-2.062-10-5-.13-1.095-.707-2-2-2-1.05 0-2 .895-2 2"})])],-1),_x=[Vx];function Nx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[..._x])}const Dx={render:Nx},Tx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Default",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14"})])],-1),Px=[Tx];function Ox(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Px])}const Fx={render:Ox},Lx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Eating" transform="translate(2 52)"><g id="Om-Nom-Nom" fill="#000" opacity=".6" transform="translate(28 6)"><path id="Delicious" d="M16.19 10.106C16.019 4.996 11.793.797 6.295 0 9.66 1.959 11.98 5.495 11.98 9.677c0 5.668-5.473 10.568-11.803 10.568H0A13 13 0 0 0 4.392 21c5.322 0 9.821-3.153 11.294-7.486 2.475 2.156 6.177 3.525 10.314 3.525s7.84-1.37 10.314-3.525C37.787 17.847 42.286 21 47.608 21c1.552 0 3.034-.268 4.392-.756l-.177.001c-6.33 0-11.803-4.9-11.803-10.568 0-4.182 2.32-7.718 5.686-9.677-5.498.797-9.724 4.996-9.897 10.106-2.564 1.736-6.014 2.8-9.809 2.8s-7.245-1.064-9.81-2.8"></path></g><circle id="Redish" cx="17" cy="15" r="9" fill="#FF4646" opacity=".2"></circle><circle id="Redish" cx="91" cy="15" r="9" fill="#FF4646" opacity=".2"></circle></g></g>',1),$x=[Lx];function Rx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...$x])}const Hx={render:Rx},zx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Sad",fill:"#000",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40.058 16.654c.65 7.03 6.644 11.723 13.942 11.723 7.342 0 13.363-4.75 13.953-11.848.031-.378-.876-.676-1.324-.452q-8.308 4.16-12.629 4.16-4.266 0-12.446-4.069c-.507-.252-1.534.068-1.496.486",transform:"matrix(1 0 0 -1 0 44.377)"})])],-1),Ix=[zx];function Gx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ix])}const jx={render:Gx},qx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Serious",fill:"#000",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("rect",{id:"Why-so-serious?",width:"24",height:"6",x:"42",y:"18",rx:"3"})])],-1),Wx=[qx];function Yx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Wx])}const Ux={render:Yx},Xx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Tongue" transform="translate(2 52)"><defs><path id="Tongue-path1" d="M29 15.609C30.41 25.23 41.062 33 54 33c12.968 0 23.646-7.817 25-18.26.101-.4-.225-1.74-2.174-1.74H31.174c-1.79 0-2.304 1.24-2.174 2.609"></path></defs><mask id="Tongue-mask1" fill="#fff"><use href="#Tongue-path1"></use></mask><use id="Mouth" fill="#000" href="#Tongue-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Tongue-mask1')" rx="5"></rect><path id="Tongue" fill="#FF4F6D" d="M65.984 23.747Q66 23.871 66 24v9c0 6.075-4.925 11-11 11h-1c-6.075 0-11-4.925-11-11v-9q0-.129.016-.253A2 2 0 0 1 43 23.5c0-1.933 2.91-3.5 6.5-3.5 2.01 0 3.808.491 5 1.263 1.192-.772 2.99-1.263 5-1.263 3.59 0 6.5 1.567 6.5 3.5q0 .124-.016.247"></path></g></g>',1),Zx=[Xx];function Qx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Zx])}const Kx={render:Qx},Jx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Vomit" transform="translate(2 52)"><defs><path id="Vomit-path1" d="M34.008 12.602c1.12 10.49 4.227 19.392 19.988 19.398 15.762.006 18.92-8.958 19.998-19.495.087-.848-.82-1.505-1.957-1.505-6.686 0-9.367 1.495-18.048 1.5S40.757 11 36.092 11c-1.143 0-2.196.552-2.084 1.602"></path><path id="Vomit-path2" d="M59.917 36H60a6 6 0 1 0 12 0v-5a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v7a6 6 0 1 0 12 0v-2h.083a6.002 6.002 0 0 1 11.834 0"></path><filter id="filter1" width="102.8%" height="105.3%" x="-1.4%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"></feComposite><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter></defs><mask id="Vomit-mask1" fill="#fff"><use href="#Vomit-path1" transform="matrix(1 0 0 -1 0 43)"></use></mask><use id="Mouth" fill="#000" href="#Vomit-path1" opacity=".7" transform="matrix(1 0 0 -1 0 43)"></use><rect id="Teeth" width="31" height="16" x="39" y="0" fill="#FFF" mask="url('#Vomit-mask1')" rx="5"></rect><g id="Vomit-Stuff"><use fill="#88C553" href="#Vomit-path2"></use><use filter="url('#filter1')" href="#Vomit-path2"></use></g></g></g>',1),ew=[Jx];function tw(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ew])}const aw={render:tw},nw={Concerned:fx,Disbelief:gx,Grimace:xx,ScreamOpen:Cx,Smile:Ax,Twinkle:Dx,Default:Fx,Eating:Hx,Sad:jx,Serious:Ux,Tongue:Kx,Vomit:aw},rw=(e="#6fb8e0")=>[t.h("g",{id:"Circle","stroke-width":"1","fill-rule":"evenodd",transform:"translate(12.000000, 40.000000)"},[t.h("mask",{id:"mask-1",fill:"white"},[t.h("use",{href:"#path-1"})]),t.h("use",{id:"Circle-Background",fill:"#E6E6E6",href:"#path-1"}),t.h("g",{id:"Color/Palette/Blue-01",mask:"url(#mask-1)",fill:e},[t.h("rect",{id:"Color",x:"0",y:"0",width:"240",height:"240"})])]),t.h("mask",{id:"mask-2",fill:"white"},[t.h("use",{href:"#path-2"})])],ow=e=>{const a={"--avataaar-hair-color":e.hairColor,"--avataaar-facial-hair-color":e.facialHairColor,"--avataaar-top-color":e.topColor,"--avataaar-shirt-color":e.clothesColor};return t.h("svg",{viewBox:"0 0 264 280",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.h("desc","vue3-avataaars"),t.h("defs",[t.h("circle",{id:"path-1",cx:"120",cy:"120",r:"120"}),t.h("path",{id:"path-2",d:"M12,160 C12,226.27417 65.72583,280 132,280 C198.27417,280 252,226.27417 252,160 L264,160 L264,-1.42108547e-14 L-3.19744231e-14,-1.42108547e-14 L-3.19744231e-14,160 L12,160 Z"}),t.h("path",{id:"path-silhouette",d:"M124,144.610951 L124,163 L128,163 L128,163 C167.764502,163 200,195.235498 200,235 L200,244 L0,244 L0,235 C-4.86974701e-15,195.235498 32.235498,163 72,163 L72,163 L76,163 L76,144.610951 C58.7626345,136.422372 46.3722246,119.687011 44.3051388,99.8812385 C38.4803105,99.0577866 34,94.0521096 34,88 L34,74 C34,68.0540074 38.3245733,63.1180731 44,62.1659169 L44,56 L44,56 C44,25.072054 69.072054,5.68137151e-15 100,0 L100,0 L100,0 C130.927946,-5.68137151e-15 156,25.072054 156,56 L156,62.1659169 C161.675427,63.1180731 166,68.0540074 166,74 L166,88 C166,94.0521096 161.51969,99.0577866 155.694861,99.8812385 C153.627775,119.687011 141.237365,136.422372 124,144.610951 Z"})]),t.h("g",{id:"Avataaar",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.h("g",{id:"Avataaar/Circle",transform:"translate(-825.000000, -1100.000000)"},[t.h("g",{transform:"translate(825.000000, 1100.000000)"},[e.isCircle?rw(e.circleColor):null,t.h("g",{id:"Mask"}),t.h("g",{id:"Avataaar","stroke-width":"1","fill-rule":"evenodd",fill:"black",mask:"url(#mask-2)",style:a},[t.h("g",{id:"Body",transform:"translate(32.000000, 36.000000)"},[t.h("mask",{id:"mask-silhouette",fill:"white"},[t.h("use",{href:"#path-silhouette"})]),t.h("use",{fill:e.skinColor,href:"#path-silhouette"}),t.h("path",{id:"Neck-Shadow",d:"M156,79 L156,102 C156,132.927946 130.927946,158 100,158 C69.072054,158 44,132.927946 44,102 L44,79 L44,94 C44,124.927946 69.072054,150 100,150 C130.927946,150 156,124.927946 156,94 L156,79 Z","fill-opacity":"0.100000001",fill:"#000000",mask:"url(#mask-silhouette)"})]),t.h(bh[e.clothes]),e.clothes==="GraphicShirt"?t.h(hk[e.graphicShirt]):null,t.h(cb[e.eyes]),t.h(lx[e.eyebrows]),t.h(nw[e.mouth]),t.h("svg",[t.h("g",{fill:"black",transform:"translate(76.000000, 82.000000)"},[t.h("g",{id:"Nose/Default",transform:"translate(28.000000, 40.000000)",opacity:"0.16"},[t.h("path",{id:"Nose",d:"M16,8 C16,12.418278 21.372583,16 28,16 L28,16 C34.627417,16 40,12.418278 40,8"})])])]),t.h(ey[e.top]),t.h(Ey[e.facialHair]),t.h(F9[e.accessories])])])])])])};function na(e){return e[Math.floor(Math.random()*e.length)]}function iw(e){return na(Object.keys(e))}function An(e){return e[iw(e)]}const F1={Black:"#262E33",Blue01:"#65C9FF",Blue02:"#5199E4",Blue03:"#25557C",Gray01:"#E6E6E6",Gray02:"#929598",Heather:"#3C4F5C",PastelBlue:"#B1E2FF",PastelGreen:"#A7FFC4",PastelOrange:"#FFBC69",PastelRed:"#FFAFB9",PastelYellow:"#FFFFB1",Pink:"#FF488E",Red:"#FF5C5C",White:"#FFFFFF"},L1={Auburn:"#A55728",Black:"#2C1B18",Blonde:"#B58143",BlondeGolden:"#D6B370",Brown:"#724133",BrownDark:"#4A312C",PastelPink:"#F59797",Platinum:"#ECDCBF",Red:"#C93305",SilverGray:"#E8E1E1"},sw={Tanned:"#FD9841",Yellow:"#F8D25C",Pale:"#FFDBB4",Light:"#EDB98A",Brown:"#D08B5B",DarkBrown:"#AE5D29",Black:"#614335"},lw=["Blank","Prescription01","Round","Wayfarers","Kurt","Prescription02","Sunglasses"],cw=["Close","Default","EyeRoll","Hearts","Squint","Wink","Cry","Dizzy","Happy","Side","Surprised","WinkWacky"],dw=["Angry","FlatNatural","SadConcerned","UpDownNatural","AngryNatural","FrownNatural","SadConcernedNatural","Default","RaisedExcited","UnibrowNatural","DefaultNatural","RaisedExcitedNatural","UpDown"],uw=["BeardMajestic","BeardLight","MoustacheFancy","BeardMedium","Blank","MoustacheMagnum"],fw=["Concerned","Disbelief","Grimace","ScreamOpen","Smile","Twinkle","Default","Eating","Sad","Serious","Tongue","Vomit"],mw=["Eyepatch","Hat","Hijab","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairMiaWallace","LongHairNotTooLong","LongHairShavedSides","LongHairStraight","LongHairStraight2","LongHairStraightStrand","NoHair","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4"],hw=["BlazerShirt","CollarSweater","BlazerSweater","Hoodie","GraphicShirt","Overall","ShirtCrewNeck","ShirtVNeck","ShirtScoopNeck"],pw=["Bat","Cumbia","Diamond","Pizza","Selena","SkullOutline","Bear","Deer","Hola","Resist","Skull"],wr=(e={})=>{var a,n,r,o,i,s,l,c,m,u,f,d,p,h;return{isCircle:e.isCircle===void 0?!1:e.isCircle,circleColor:(a=e.circleColor)!=null?a:void 0,skinColor:(n=e.skinColor)!=null?n:An(sw),hairColor:(r=e.hairColor)!=null?r:An(L1),topColor:(o=e.topColor)!=null?o:An(F1),clothesColor:(i=e.clothesColor)!=null?i:An(F1),facialHairColor:(s=e.facialHairColor)!=null?s:An(L1),accessories:(l=e.accessories)!=null?l:na(lw),eyes:(c=e.eyes)!=null?c:na(cw),eyebrows:(m=e.eyebrows)!=null?m:na(dw),mouth:(u=e.mouth)!=null?u:na(fw),top:(f=e.top)!=null?f:na(mw),clothes:(d=e.clothes)!=null?d:na(hw),graphicShirt:(p=e.graphicShirt)!=null?p:na(pw),facialHair:(h=e.facialHair)!=null?h:na(uw)}},$1={isCircle:!0,circleColor:"#22c55e",skinColor:"#D08B5B",hairColor:"#E8E1E1",topColor:"#E6E6E6",clothesColor:"blue",facialHairColor:"#E8E1E1",accessories:"Blank",eyes:"Default",eyebrows:"DefaultNatural",mouth:"Default",top:"NoHair",clothes:"GraphicShirt",graphicShirt:"Pizza",facialHair:"Blank"},gw={class:"main-container"},yw=["src"],kw={key:1,class:"avatar-section flex flex-col"},bw={id:"avatar-container",class:"avatar-container"},xw={class:"controls"},ww={class:"checkbox-label checkbox-wrapper-2",for:"avatarLabel"},R1=je({__name:"randomAvatar",props:{content:{type:String,default:null}},emits:["base64","random"],setup(e,{emit:a}){const n=t.ref($1),r=t.ref($1),o=t.ref(!1);t.onMounted(async()=>{n.value=wr(n.value),await t.nextTick(),m()});const i=a,s=e,l=async()=>{if(o.value)n.value=wr(r.value);else{const u={...r.value,facialHair:"Blank"};n.value=wr(u)}await t.nextTick(),m()},c=async()=>{n.value=wr({isCircle:!0,circleColor:"#22c55e",facialHair:o.value?"Blank":null});const u=n.value;r.value=u,await t.nextTick(),m()},m=()=>{const u=document.querySelector("#avatar-container svg");if(!u){console.error("Avatar não encontrado!");return}let d=new XMLSerializer().serializeToString(u);const h=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(d)))}`;i("base64",h)};return(u,f)=>(t.openBlock(),t.createElementBlock("main",gw,[s.content?(t.openBlock(),t.createElementBlock("img",{key:0,class:"max-w-[45%] max-h-[45%] flex items-center justify-center mx-auto",src:s.content},null,8,yw)):(t.openBlock(),t.createElementBlock("section",kw,[t.createElementVNode("div",bw,[t.createVNode(t.unref(ow),t.normalizeProps(t.guardReactiveProps(n.value)),null,16)]),t.createElementVNode("div",xw,[t.createElementVNode("label",ww,[t.withDirectives(t.createElementVNode("input",{id:"avatarLabel","onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),type:"checkbox",onInput:l,class:"sc-gJwTLC ikxBAC"},null,544),[[t.vModelCheckbox,o.value]]),f[1]||(f[1]=t.createTextVNode(" Remover barba "))]),t.createElementVNode("button",{onClick:c,class:"generate-button"}," Gerar Avatar ")])]))]))}},[["__scopeId","data-v-a1b7ef69"]]),vw={class:"modal_container"},Ew={class:"modal_box"},Cw={class:"modal_header"},H1=je({__name:"min_modal",props:{defineWidth:{type:String,default:"max-width-md"}},emits:["close"],setup(e,{emit:a}){const n=a,r=()=>{n("close")};return(o,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"min_modal"},[t.createElementVNode("div",{class:"modal_overlay",onClick:r})]),t.createElementVNode("div",vw,[t.createElementVNode("div",{class:t.normalizeClass(["modal_content ",e.defineWidth])},[t.createElementVNode("div",Ew,[t.createElementVNode("div",Cw,[t.renderSlot(o.$slots,"header",{},void 0,!0),t.createElementVNode("button",{class:"modal_close",onClick:i[0]||(i[0]=s=>r())},i[1]||(i[1]=[t.createElementVNode("svg",{class:"modal_close_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),t.createElementVNode("div",null,[t.renderSlot(o.$slots,"body",{},void 0,!0)])])],2)])],64))}},[["__scopeId","data-v-172c0a39"]]),Sw={v:"5.4.4",fr:30,ip:0,op:110,w:800,h:600,nm:"Comp 1",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Sub Rocket 01",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
96
|
+
*/const k1=["viewport","carousel"],kr={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},b1=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],e8={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},x1=["slide","fade"],w1=["center","start","end","center-even","center-odd"],v1=10,br=.08,at={autoplay:0,breakpointMode:k1[0],breakpoints:void 0,dir:b1[0],enabled:!0,gap:0,height:"auto",i18n:e8,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:x1[0],snapAlign:w1[0],touchDrag:!0,transition:300,wrapAround:!1},Oa=Symbol("carousel"),t8=e=>{const a=t.shallowReactive([]),n=r=>{r!==void 0?a.slice(r).forEach((o,i)=>{var s;(s=o.exposed)===null||s===void 0||s.setIndex(r+i)}):a.forEach((o,i)=>{var s;(s=o.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{a.splice(0,a.length)},getSlides:()=>a,registerSlide:(r,o)=>{if(!r||r.props.isClone)return;const i=o??a.length;a.splice(i,0,r),n(i),e("slide-registered",{slide:r,index:i})},unregisterSlide:r=>{const o=a.indexOf(r);o!==-1&&(e("slide-unregistered",{slide:r,index:o}),a.splice(o,1),n(o))}}};function a8(e){return e.length===0?0:e.reduce((n,r)=>n+r,0)/e.length}function E1({slides:e,position:a,toShow:n}){const r=[],o=a==="before",i=o?-n:0,s=o?0:n;if(e.length<=0)return r;for(let l=i;l<s;l++){const m={index:o?l:l+e.length,isClone:!0,id:void 0,key:`clone-${a}-${l}`},u=e[(l%e.length+e.length)%e.length].vnode,f=t.cloneVNode(u,m);f.el=null,r.push(f)}return r}const n8='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function C1(e){if(!e.el||!(e.el instanceof Element))return;const a=e.el.querySelectorAll(n8);for(const n of a)n instanceof HTMLElement&&!n.hasAttribute("disabled")&&n.getAttribute("aria-hidden")!=="true"&&n.setAttribute("tabindex","-1")}function r8(e,a){return Object.keys(e).filter(n=>!a.includes(n)).reduce((n,r)=>(n[r]=e[r],n),{})}function o8(e){const{isVertical:a,isReversed:n,dragged:r,effectiveSlideSize:o,threshold:i}=e,s=a?r.y:r.x;if(s===0)return 0;const l=s/o,c=Math.abs(l);if(c<i)return 0;const m=c<1?Math.sign(l):Math.round(l);return n?m:-m}function aa({val:e,max:a,min:n}){return a<n?e:Math.min(Math.max(e,isNaN(n)?e:n),isNaN(a)?e:a)}function i8(e){const{transform:a}=window.getComputedStyle(e);return a.split(/[(,)]/).slice(1,-1).map(n=>parseFloat(n))}function s8(e){let a=1,n=1;return e.forEach(r=>{const o=i8(r);o.length===6&&(a/=o[0],n/=o[3])}),{widthMultiplier:a,heightMultiplier:n}}function l8(e,a){switch(e){case"start":return 0;case"center":case"center-odd":return(a-1)/2;case"center-even":return(a-2)/2;case"end":return a-1;default:return 0}}function c8(e,a,n){switch(e){case"start":return 0;case"center":case"center-odd":return(n-a)/2;case"center-even":return n/2-a;case"end":return n-a;default:return 0}}function Yo({slideSize:e,viewportSize:a,align:n,itemsToShow:r}){return r!==void 0?l8(n,r):e!==void 0&&a!==void 0?c8(n,e,a):0}function S1(e="",a={}){return Object.entries(a).reduce((n,[r,o])=>n.replace(`{${r}}`,String(o)),e)}function M1({val:e,max:a,min:n=0}){const r=a-n+1;return((e-n)%r+r)%r+n}function Uo(e,a=0){let n=!1,r=0,o=null;function i(...s){if(n)return;n=!0;const l=()=>{o=requestAnimationFrame(c=>{c-r>a?(r=c,e(...s),n=!1):l()})};l()}return i.cancel=()=>{o&&(cancelAnimationFrame(o),o=null,n=!1)},i}function xr(e,a="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${a}`:e}const d8=t.defineComponent({name:"CarouselAria",setup(){const e=t.inject(Oa);return e?()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},S1(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function u8(e){let a=!1;const n={x:0,y:0},r=t.reactive({x:0,y:0}),o=t.ref(!1),{isSliding:i}=e,s=t.computed(()=>typeof i=="boolean"?i:i.value),l=u=>{var f;const d=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(d)||s.value||(a=u.type==="touchstart",a&&u.touches.length>1))return;if(!a&&(u.preventDefault(),u.button!==0))return;n.x=a?u.touches[0].clientX:u.clientX,n.y=a?u.touches[0].clientY:u.clientY;const p=a?"touchmove":"mousemove",h=a?"touchend":"mouseup";document.addEventListener(p,c,{passive:!1}),document.addEventListener(h,m,{passive:!0}),(f=e.onDragStart)===null||f===void 0||f.call(e)},c=Uo(u=>{var f;if(a&&u.touches.length>1)return;o.value=!0;const d=a?u.touches[0].clientX:u.clientX,p=a?u.touches[0].clientY:u.clientY;r.x=d-n.x,r.y=p-n.y,(f=e.onDrag)===null||f===void 0||f.call(e,{deltaX:r.x,deltaY:r.y,isTouch:a})}),m=()=>{var u;c.cancel();const f=Math.abs(r.x)+Math.abs(r.y);!a&&f>10&&window.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation()},{once:!0,capture:!0}),(u=e.onDragEnd)===null||u===void 0||u.call(e),r.x=0,r.y=0,o.value=!1;const d=a?"touchmove":"mousemove",p=a?"touchend":"mouseup";document.removeEventListener(d,c),document.removeEventListener(p,m)};return{dragged:r,isDragging:o,handleDragStart:l}}function f8(){const e=t.ref(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function m8(e){const{isVertical:a,isSliding:n,config:r}=e,o=t.computed(()=>typeof a=="boolean"?a:a.value),i=t.computed(()=>typeof n=="boolean"?n:n.value);return{handleScroll:l=>{var c,m;if(l.preventDefault(),!r.mouseWheel||i.value)return;const u=typeof r.mouseWheel=="object"&&(c=r.mouseWheel.threshold)!==null&&c!==void 0?c:v1,f=Math.abs(l.deltaY)>u?l.deltaY:0,d=Math.abs(l.deltaX)>u?l.deltaX:0;if(f===0&&d===0)return;const p=o.value?f:d,g=(p!==0?p:o.value?d:f)>0;(m=e.onWheel)===null||m===void 0||m.call(e,{deltaX:d,deltaY:f,isScrollingForward:g})}}}const h8={autoplay:{default:at.autoplay,type:Number},breakpoints:{default:at.breakpoints,type:Object},breakpointMode:{default:at.breakpointMode,validator(e){return k1.includes(e)}},clamp:{type:Boolean},dir:{type:String,default:at.dir,validator(e,a){if(!b1.includes(e))return!1;const n=e in kr?kr[e]:e;return["ttb","btt"].includes(n)&&(!a.height||a.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${e}" is not supported with height "auto".`),!0}},enabled:{default:at.enabled,type:Boolean},gap:{default:at.gap,type:Number},height:{default:at.height,type:[Number,String]},i18n:{default:at.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:at.itemsToScroll,type:Number},itemsToShow:{default:at.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:at.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:at.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:at.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:at.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(e,a){return e&&a.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:at.slideEffect,validator(e){return x1.includes(e)}},snapAlign:{default:at.snapAlign,validator(e){return w1.includes(e)}},touchDrag:{default:at.touchDrag,type:[Boolean,Object]},transition:{default:at.transition,type:Number},wrapAround:{default:at.wrapAround,type:Boolean}},p8=t.defineComponent({name:"VueCarousel",props:h8,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:a,emit:n,expose:r}){var o;const i=t8(n),s=i.getSlides(),l=t.computed(()=>s.length),c=t.ref(null),m=t.ref(null),u=t.ref(0),f=t.computed(()=>Object.assign(Object.assign(Object.assign({},at),r8(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},at.i18n),e.i18n)})),d=t.shallowReactive(Object.assign({},f.value)),p=t.ref((o=e.modelValue)!==null&&o!==void 0?o:0),h=t.ref(p.value);t.watch(p,R=>h.value=R);const g=t.ref(0),b=t.computed(()=>Math.ceil((l.value-1)/2)),v=t.computed(()=>l.value-1),x=t.computed(()=>0);let k=null,A=null,_=null;const T=t.computed(()=>u.value+d.gap),N=t.computed(()=>{const R=d.dir||"ltr";return R in kr?kr[R]:R}),S=t.computed(()=>["rtl","btt"].includes(N.value)),B=t.computed(()=>["ttb","btt"].includes(N.value)),G=t.computed(()=>d.itemsToShow==="auto"),P=t.computed(()=>B.value?"height":"width");function Q(){var R;if(!J.value)return;const $=(f.value.breakpointMode==="carousel"?(R=c.value)===null||R===void 0?void 0:R.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,ae=Object.keys(e.breakpoints||{}).map(xe=>Number(xe)).sort((xe,Ae)=>+Ae-+xe),le={};ae.some(xe=>$>=xe?(Object.assign(le,e.breakpoints[xe]),le.i18n&&Object.assign(le.i18n,f.value.i18n,e.breakpoints[xe].i18n),!0):!1),Object.assign(d,f.value,le),G.value||(d.itemsToShow=aa({val:Number(d.itemsToShow),max:e.clamp?l.value:1/0,min:1}))}const U=Uo(()=>{Q(),w(),V()}),E=t.shallowReactive(new Set),D=t.ref([]);function F({widthMultiplier:R,heightMultiplier:$}){D.value=s.map(ae=>{var le;const xe=(le=ae.exposed)===null||le===void 0?void 0:le.getBoundingRect();return{width:xe.width*R,height:xe.height*$}})}const q=t.ref({width:0,height:0});function oe({widthMultiplier:R,heightMultiplier:$}){var ae;const le=((ae=m.value)===null||ae===void 0?void 0:ae.getBoundingClientRect())||{width:0,height:0};q.value={width:le.width*R,height:le.height*$}}function V(){if(!m.value)return;const R=s8(E);if(oe(R),F(R),G.value)u.value=a8(D.value.map($=>$[P.value]));else{const $=Number(d.itemsToShow),ae=($-1)*d.gap;u.value=(q.value[P.value]-ae)/$}}function w(){!d.wrapAround&&l.value>0&&(p.value=aa({val:p.value,max:v.value,min:x.value}))}const X=t.computed(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);t.watchEffect(()=>w()),t.watchEffect(()=>{V()});let K;const W=R=>{const $=R.target;if(!(!($!=null&&$.contains(c.value))||Array.isArray(X.value)&&X.value.includes(R.animationName))&&(E.add($),!K)){const ae=()=>{K=requestAnimationFrame(()=>{V(),ae()})};ae()}},M=R=>{const $=R.target;$&&E.delete($),K&&E.size===0&&(cancelAnimationFrame(K),V())},J=t.ref(!1);typeof document<"u"&&t.watchEffect(()=>{J.value&&X.value!==!1?(document.addEventListener("animationstart",W),document.addEventListener("animationend",M)):(document.removeEventListener("animationstart",W),document.removeEventListener("animationend",M))}),t.onMounted(()=>{J.value=!0,Q(),C(),c.value&&(_=new ResizeObserver(U),_.observe(c.value)),n("init")}),t.onBeforeUnmount(()=>{J.value=!1,i.cleanup(),A&&clearTimeout(A),K&&cancelAnimationFrame(K),k&&clearInterval(k),_&&(_.disconnect(),_=null),typeof document<"u"&&fe(),c.value&&(c.value.removeEventListener("transitionend",V),c.value.removeEventListener("animationiteration",V))});const{isHover:ce,handleMouseEnter:z,handleMouseLeave:he}=f8(),ee=Uo(R=>{if(!R.ctrlKey)switch(R.key){case"ArrowLeft":case"ArrowUp":B.value===R.key.endsWith("Up")&&(S.value?me(!0):Me(!0));break;case"ArrowRight":case"ArrowDown":B.value===R.key.endsWith("Down")&&(S.value?Me(!0):me(!0));break}},200),fe=()=>{document.removeEventListener("keydown",ee)},L=()=>{document.addEventListener("keydown",ee)};function C(){!d.autoplay||d.autoplay<=0||(k=setInterval(()=>{d.pauseAutoplayOnHover&&ce.value||me()},d.autoplay))}function y(){O(),C()}function O(){k&&(clearInterval(k),k=null)}const I=t.ref(!1),H=({deltaX:R,deltaY:$,isTouch:ae})=>{var le,xe,Ae,De;n("drag",{deltaX:R,deltaY:$});const Pe=ae?typeof d.touchDrag=="object"&&(xe=(le=d.touchDrag)===null||le===void 0?void 0:le.threshold)!==null&&xe!==void 0?xe:br:typeof d.mouseDrag=="object"&&(De=(Ae=d.mouseDrag)===null||Ae===void 0?void 0:Ae.threshold)!==null&&De!==void 0?De:br,qe=o8({isVertical:B.value,isReversed:S.value,dragged:{x:R,y:$},effectiveSlideSize:T.value,threshold:Pe});qe!==0&&(h.value=d.wrapAround?p.value+qe:aa({val:p.value+qe,max:v.value,min:x.value}))},te=()=>_e(h.value),{dragged:j,isDragging:ne,handleDragStart:ue}=u8({isSliding:I,onDrag:H,onDragEnd:te}),ye=({deltaX:R,deltaY:$,isScrollingForward:ae})=>{n("wheel",{deltaX:R,deltaY:$}),ae?S.value?Me():me():S.value?me():Me()},{handleScroll:be}=m8({isVertical:B,isSliding:I,config:d,onWheel:ye});function me(R=!1){_e(p.value+d.itemsToScroll,R)}function Me(R=!1){_e(p.value-d.itemsToScroll,R)}function _e(R,$=!1){if(!$&&I.value)return;const ae=(d.wrapAround?M1:aa)({val:R,max:v.value,min:x.value});if(p.value===ae)return;g.value=p.value,n("slide-start",{slidingToIndex:R,currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),O(),I.value=!0,p.value=R,ae!==R&&Se.pause(),n("update:modelValue",ae),A=setTimeout(()=>{d.wrapAround&&ae!==R&&(Se.resume(),p.value=ae,n("loop",{currentSlideIndex:p.value,slidingToIndex:R})),n("slide-end",{currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),I.value=!1,y()},d.transition)}function Ne(){Q(),w(),V(),y()}t.watch(()=>[f.value,e.breakpoints],()=>Q(),{deep:!0}),t.watch(()=>e.autoplay,()=>y());const Se=t.watch(()=>e.modelValue,R=>{R!==p.value&&_e(Number(R),!0)});n("before-init");const Le=t.computed(()=>{if(!d.wrapAround)return{before:0,after:0};if(G.value)return{before:s.length,after:s.length};const R=Number(d.itemsToShow),$=Math.ceil(R+(d.itemsToScroll-1)),ae=$-h.value,le=$-(l.value-(h.value+1));return{before:Math.max(0,ae),after:Math.max(0,le)}}),Be=t.computed(()=>Le.value.before?G.value?D.value.slice(-1*Le.value.before).reduce((R,$)=>R+$[P.value]+d.gap,0)*-1:Le.value.before*T.value*-1:0),Z=t.computed(()=>{var R;if(G.value){const $=(p.value%s.length+s.length)%s.length;return Yo({slideSize:(R=D.value[$])===null||R===void 0?void 0:R[P.value],viewportSize:q.value[P.value],align:d.snapAlign})}return Yo({align:d.snapAlign,itemsToShow:+d.itemsToShow})}),re=t.computed(()=>{let R=0;if(G.value){if(p.value<0?R=D.value.slice(p.value).reduce(($,ae)=>$+ae[P.value]+d.gap,0)*-1:R=D.value.slice(0,p.value).reduce(($,ae)=>$+ae[P.value]+d.gap,0),R-=Z.value,!d.wrapAround){const $=D.value.reduce((ae,le)=>ae+le[P.value]+d.gap,0)-q.value[P.value]-d.gap;R=aa({val:R,max:$,min:0})}}else{let $=p.value-Z.value;d.wrapAround||($=aa({val:$,max:l.value-+d.itemsToShow,min:0})),R=$*T.value}return R*(S.value?1:-1)}),ie=t.computed(()=>{var R,$;if(!G.value){const xe=p.value-Z.value;return d.wrapAround?{min:Math.floor(xe),max:Math.ceil(xe+Number(d.itemsToShow)-1)}:{min:Math.floor(aa({val:xe,max:l.value-Number(d.itemsToShow),min:0})),max:Math.ceil(aa({val:xe+Number(d.itemsToShow)-1,max:l.value-1,min:0}))}}let ae=0;{let xe=0,Ae=0-Le.value.before;const De=Math.abs(re.value+Be.value);for(;xe<=De;){const Pe=(Ae%s.length+s.length)%s.length;xe+=((R=D.value[Pe])===null||R===void 0?void 0:R[P.value])+d.gap,Ae++}ae=Ae-1}let le=0;{let xe=ae,Ae=0;for(xe<0?Ae=D.value.slice(0,xe).reduce((De,Pe)=>De+Pe[P.value]+d.gap,0)-Math.abs(re.value+Be.value):Ae=D.value.slice(0,xe).reduce((De,Pe)=>De+Pe[P.value]+d.gap,0)-Math.abs(re.value);Ae<q.value[P.value];){const De=(xe%s.length+s.length)%s.length;Ae+=(($=D.value[De])===null||$===void 0?void 0:$[P.value])+d.gap,xe++}le=xe-1}return{min:Math.floor(ae),max:Math.ceil(le)}}),de=t.computed(()=>{if(d.slideEffect==="fade")return;const R=B.value?"Y":"X",$=B.value?j.y:j.x;let ae=re.value+$;if(!d.wrapAround&&d.preventExcessiveDragging){let le=0;G.value?le=D.value.reduce((De,Pe)=>De+Pe[P.value],0):le=(l.value-Number(d.itemsToShow))*T.value;const xe=S.value?0:-1*le,Ae=S.value?le:0;ae=aa({val:ae,min:xe,max:Ae})}return`translate${R}(${ae}px)`}),Ee=t.computed(()=>({"--vc-carousel-height":xr(d.height),"--vc-cloned-offset":xr(Be.value),"--vc-slide-gap":xr(d.gap),"--vc-transition-duration":I.value?xr(d.transition,"ms"):void 0})),pe={slideTo:_e,next:me,prev:Me},ke=t.reactive({activeSlide:h,config:d,currentSlide:p,isSliding:I,isVertical:B,maxSlide:v,minSlide:x,nav:pe,normalizedDir:N,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:m,visibleRange:ie});t.provide(Oa,ke);const Y=t.reactive({config:d,currentSlide:p,maxSlide:v,middleSlide:b,minSlide:x,slideSize:u,slidesCount:l});return r(t.reactive(Object.assign({data:Y,next:me,prev:Me,restartCarousel:Ne,slideTo:_e,updateBreakpointsConfig:Q,updateSlideSize:V,updateSlidesData:w},t.toRefs(ke)))),()=>{var R;const $=a.default||a.slides,ae=($==null?void 0:$(Y))||[],{before:le,after:xe}=Le.value,Ae=E1({slides:s,position:"before",toShow:le}),De=E1({slides:s,position:"after",toShow:xe}),Pe=[...Ae,...ae,...De];if(!d.enabled||!Pe.length)return t.h("section",{ref:c,class:["carousel","is-disabled"]},Pe);const qe=((R=a.addons)===null||R===void 0?void 0:R.call(a,Y))||[],nt=t.h("ol",{class:"carousel__track",onMousedownCapture:d.mouseDrag?ue:null,onTouchstartPassiveCapture:d.touchDrag?ue:null,onWheel:d.mouseWheel?be:null,style:{transform:de.value}},Pe),bt=t.h("div",{class:"carousel__viewport",ref:m},nt);return t.h("section",{ref:c,class:["carousel",`is-${N.value}`,`is-effect-${d.slideEffect}`,{"is-dragging":ne.value,"is-hover":ce.value,"is-sliding":I.value,"is-vertical":B.value}],dir:N.value,style:Ee.value,"aria-label":d.i18n.ariaGallery,tabindex:"0",onBlur:fe,onFocus:L,onMouseenter:z,onMouseleave:he},[bt,qe,t.h(d8)])}}});var Xo;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})(Xo||(Xo={}));const B1=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,g8={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function y8(e){return e in Xo}const A1=e=>e&&y8(e),V1=t.defineComponent({props:{name:{type:String,required:!0,validator:A1},title:{type:String,default:e=>e.name?at.i18n[B1(e.name)]:""}},setup(e){const a=t.inject(Oa,null);return()=>{const n=e.name;if(!n||!A1(n))return;const r=g8[n],o=t.h("path",{d:r}),i=(a==null?void 0:a.config.i18n[B1(n)])||e.title,s=t.h("title",i);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,o])}}}),k8=t.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:a,attrs:n}){let r=t.inject(Oa,null);const{next:o,prev:i}=a,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],c=t.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),m=t.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(e.carousel&&(r=e.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:u}=r.config,f=t.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},n),{class:["carousel__prev",{"carousel__prev--disabled":c.value},n.class]}),(i==null?void 0:i())||t.h(V1,{name:s()})),d=t.h("button",Object.assign(Object.assign({type:"button",disabled:m.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},n),{class:["carousel__next",{"carousel__next--disabled":m.value},n.class]}),(o==null?void 0:o())||t.h(V1,{name:l()}));return[f,d]}}});t.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(e){let a=t.inject(Oa,null);const n=t.computed(()=>a.config.itemsToShow),r=t.computed(()=>Yo({align:a.config.snapAlign,itemsToShow:n.value})),o=t.computed(()=>e.paginateByItemsToShow&&n.value>1),i=t.computed(()=>Math.ceil((a.activeSlide-r.value)/n.value)),s=t.computed(()=>Math.ceil(a.slidesCount/n.value)),l=c=>M1(o.value?{val:i.value,max:s.value-1,min:0}:{val:a.activeSlide,max:a.maxSlide,min:a.minSlide})===c;return()=>{var c,m;if(e.carousel&&(a=e.carousel),!a)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const u=[];for(let f=o.value?0:a.minSlide;f<=(o.value?s.value-1:a.maxSlide);f++){const d=S1(a.config.i18n[o.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),p=l(f),h=t.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":p},"aria-label":d,"aria-pressed":p,"aria-controls":(m=(c=a.slides[f])===null||c===void 0?void 0:c.exposed)===null||m===void 0?void 0:m.id,title:d,disabled:e.disableOnClick,onClick:()=>a.nav.slideTo(o.value?Math.floor(f*+a.config.itemsToShow+r.value):f)}),g=t.h("li",{class:"carousel__pagination-item",key:f},h);u.push(g)}return t.h("ol",{class:"carousel__pagination"},u)}}});const b8=t.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:t.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:a,slots:n,expose:r}){const o=t.inject(Oa);if(t.provide(Oa,void 0),!o)return()=>"";const i=t.ref(e.index),s=h=>{i.value=h},l=t.getCurrentInstance(),c=()=>{const h=l.vnode.el;return h?h.getBoundingClientRect():{width:0,height:0}};r({id:e.id,setIndex:s,getBoundingRect:c});const m=t.computed(()=>i.value===o.activeSlide),u=t.computed(()=>i.value===o.activeSlide-1),f=t.computed(()=>i.value===o.activeSlide+1),d=t.computed(()=>i.value>=o.visibleRange.min&&i.value<=o.visibleRange.max),p=t.computed(()=>{if(o.config.itemsToShow==="auto")return;const h=o.config.itemsToShow,g=o.config.gap>0&&h>1?`calc(${100/h}% - ${o.config.gap*(h-1)/h}px)`:`${100/h}%`;return o.isVertical?{height:g}:{width:g}});return o.slideRegistry.registerSlide(l,e.index),t.onUnmounted(()=>{o.slideRegistry.unregisterSlide(l)}),e.isClone&&(t.onMounted(()=>{C1(l.vnode)}),t.onUpdated(()=>{C1(l.vnode)})),()=>{var h,g;return o.config.enabled?t.h("li",{style:[a.style,Object.assign({},p.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d.value,"carousel__slide--active":m.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":o.isSliding},onFocusin:()=>{o.viewport&&(o.viewport.scrollLeft=0),o.nav.slideTo(i.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0},(g=n.default)===null||g===void 0?void 0:g.call(n,{currentIndex:i.value,isActive:m.value,isClone:e.isClone,isPrev:u.value,isNext:f.value,isSliding:o.isSliding,isVisible:d.value})):(h=n.default)===null||h===void 0?void 0:h.call(n)}}}),x8={key:0,class:"preview-overlay bg-base-300"},w8={class:"preview-info"},v8={class:"text-black"},E8={class:"queue-info"},C8={class:"carousel-container bg-base-200"},S8={class:"carousel-item"},M8=["onClick"],B8=["onClick"],A8={class:"send-footer"},V8={key:1,class:"toast-loader-files"},_1=je({__name:"dropFilesArea",props:{sendFilesToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0},isMobile:{type:Boolean,default:!1}},setup(e,{expose:a}){const n=e,r={itemsToShow:6,wrapAround:!1,gap:8,mouseDrag:!0,touchDrag:!0,mouseWheel:!0,snapAlign:"start",breakpoints:{1024:{itemsToShow:4},768:{itemsToShow:4},480:{itemsToShow:4},320:{itemsToShow:2},0:{itemsToShow:1}}},o=t.ref(!1),i=t.ref(""),s=t.ref(null),l=t.ref([]),c=t.ref([]),m=t.ref(null),u=t.ref(0),f=t.ref(!1),d=t.ref(0),p=t.ref(0),h=Q=>new Promise((U,E)=>{const D=new FileReader;D.readAsDataURL(Q),D.onload=()=>{U(D.result)},D.onerror=F=>{E(F)}}),g=()=>{o.value=!0},b=()=>{o.value=!1},v=()=>{c.value=[],l.value=[],i.value="",m.value=null,u.value=0},x=Q=>{if(!(Q<0||Q>=c.value.length)){if(c.value.splice(Q,1),l.value.splice(Q,1),c.value.length===0){m.value=null,u.value=0;return}if(Q===u.value){const U=Q>0?Q-1:0;m.value=c.value[U],u.value=U}else Q<u.value&&(u.value-=1)}},k=()=>{s.value.click()},A=async Q=>{const U=Array.from(Q.target.files);l.value=U,c.value=await Promise.all(U.map(async E=>({name:E.name,base64:await h(E)}))),m.value=c.value[0],t.nextTick(()=>{B()})},_=async Q=>{o.value=!1;const U=Array.from(Q.dataTransfer.files);l.value.push(...U);const E=await Promise.all(U.map(async D=>({name:D.name,base64:await h(D)})));c.value.push(...E),m.value||(m.value=c.value[0],u.value=0),t.nextTick(()=>{B()})},T=Q=>Q?Q.split(";")[0].split(":")[1]:null,N=async()=>{try{f.value=!0,d.value=l.value.length,p.value=0;for(let Q=0;Q<l.value.length;Q++){const U=Q===l.value.length-1,E={type:"file",media:{name:c.value[Q].name,mimetype:T(c.value[Q].base64),data:c.value[Q].base64}};U&&(E.content=i.value),await n.sendFilesToAttendant(n.selectedAttendant.id,E,n.attendant,!0),p.value++}await t.nextTick()}catch(Q){console.error(Q)}finally{f.value=!1,v(),b()}},S=t.ref(null),B=()=>{S.value&&S.value.focus()},G=(Q,U)=>{m.value=Q,u.value=U},P=async Q=>{var D;const U=(D=Q.clipboardData)==null?void 0:D.items;if(!U)return;const E=[];for(const F of U)if(F.kind==="file"){const q=F.getAsFile();q&&E.push(q)}if(E.length>0){const F=new Set(l.value.map(V=>V.name));if(E.filter(V=>!F.has(V.name)).length===0)return;l.value.push(...E);const oe=await Promise.all(E.map(async V=>({name:V.name,base64:await h(V)})));c.value.push(...oe),m.value||(m.value=oe[0],u.value=0)}t.nextTick(()=>{B()})};return t.watch(u,(Q,U)=>{m.value=c.value[Q]}),t.onMounted(()=>{window.addEventListener("paste",P)}),t.onUnmounted(()=>{window.removeEventListener("paste",P)}),a({chooseFiles:k}),(Q,U)=>{var E,D,F;return t.openBlock(),t.createElementBlock("main",{onDragover:t.withModifiers(g,["prevent"]),onDragleave:b,onDrop:t.withModifiers(_,["prevent"])},[t.createElementVNode("section",{class:t.normalizeClass(["dropzone-container ",{"dropzone-active":o.value}])},[!f.value&&c.value.length>0&&!o.value?(t.openBlock(),t.createElementBlock("div",x8,[t.createElementVNode("button",{onClick:U[0]||(U[0]=q=>v()),class:"close-button"},U[6]||(U[6]=[t.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])),t.createElementVNode("section",w8,[t.createElementVNode("p",v8,t.toDisplayString((E=m.value)==null?void 0:E.name),1),t.createVNode(qo,{isMobile:e.isMobile,avatar:null,mode:"preview",base64:(D=m.value)==null?void 0:D.base64,mimetype:T((F=m.value)==null?void 0:F.base64)},null,8,["isMobile","base64","mimetype"]),t.withDirectives(t.createElementVNode("input",{ref_key:"textInput",ref:S,onKeydown:U[1]||(U[1]=t.withKeys(q=>N(),["enter"])),placeholder:"Digite uma mensagem para acompanhar o arquivo",class:"input-drop-files-area bg-base-200 text-text-base","onUpdate:modelValue":U[2]||(U[2]=q=>i.value=q),type:"text"},null,544),[[t.vModelText,i.value]])]),t.createElementVNode("div",E8,[U[8]||(U[8]=t.createElementVNode("p",null,"fila de envio",-1)),t.createElementVNode("section",C8,[t.createVNode(t.unref(p8),t.mergeProps({modelValue:u.value,"onUpdate:modelValue":U[4]||(U[4]=q=>u.value=q)},r),t.createSlots({default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(q,oe)=>(t.openBlock(),t.createBlock(t.unref(b8),{key:oe},{default:t.withCtx(()=>[t.createElementVNode("section",S8,[u.value===oe?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:V=>x(oe),class:"remove-file-btn"},U[7]||(U[7]=[t.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)]),8,M8)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(["bg-base-100",["carousel-preview",{active:u.value===oe}]]),onDragstart:U[3]||(U[3]=t.withModifiers(()=>{},["prevent"])),onClick:V=>G(q,oe)},[t.createVNode(qo,{isMobile:e.isMobile,avatar:null,mode:"miniature",base64:q.base64,mimetype:T(q.base64)},null,8,["isMobile","base64","mimetype"])],42,B8)])]),_:2},1024))),128))]),_:2},[e.isMobile?{name:"addons",fn:t.withCtx(()=>[t.createVNode(t.unref(k8))]),key:"0"}:void 0]),1040,["modelValue"])])]),t.createElementVNode("footer",A8,[t.createElementVNode("button",{class:"send-button",onClick:U[5]||(U[5]=q=>N())},U[9]||(U[9]=[t.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))])])):t.createCommentVNode("",!0),f.value?(t.openBlock(),t.createElementBlock("section",V8," Enviando Arquivos... ("+t.toDisplayString(p.value)+" / "+t.toDisplayString(d.value)+") ",1)):t.createCommentVNode("",!0),t.renderSlot(Q.$slots,"default",{},void 0,!0)],2),t.createElementVNode("input",{onChange:A,multiple:"",ref_key:"manualFile",ref:s,type:"file",hidden:""},null,544)],32)}}},[["__scopeId","data-v-119c077a"]]),_8={key:0,class:"chat-icon"},N8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},D8={key:0,class:"unread-count"},T8={key:0,class:"chat-content"},P8={key:1,class:"h-full"},N1=je({__name:"chatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},mode:{type:String,default:"dark"}},emits:["unreadMessagesEmit"],setup(e,{emit:a}){const n=e,{attendants:r,loadingMessages:o,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:m,resetUnreadMessages:u,loadingAttendants:f}=cl(),d=t.ref(!1),p=t.ref(!1),h=t.ref(null),g=t.ref(null),b=a,v=t.ref(null),x=()=>{var P;(P=v.value)==null||P.chooseFiles()},k=t.computed(()=>{if(h.value){const P=r.value.find(Q=>Q.id===h.value.id);return P?P.internal_chat.unread:0}return 0}),A=P=>{var E;const Q=(E=g.value)==null?void 0:E.contains(P.target),U=P.target.closest(".fancybox__container");!Q&&!U&&d.value&&S()};t.onMounted(()=>{document.addEventListener("click",A)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",A)});const _=t.ref(!1),T=t.ref(!1),N=t.computed(()=>T.value?{position:"absolute",width:"42px",height:"42px",transition:"width 0.2s ease-in, height 0.2s ease-out"}:_.value||d.value?{position:"absolute",width:"400px",height:"65vh",transition:"width 0.2s ease-in, height 0.2s ease-out"}:{position:"relative",width:"42px",height:"42px",transition:"none"}),S=()=>{d.value?(T.value=!0,setTimeout(()=>{d.value=!1,T.value=!1},200)):(d.value=!0,_.value=!0,setTimeout(()=>{_.value=!1},200))},B=()=>{d.value||S()},G=async P=>{const Q=r.value.find(E=>E.id===P.id),U=Q?Q.internal_chat.unread:0;b("unreadMessagesEmit",U),h.value=P,u(P.id),P.hasNextPage||await i(P.id)};return t.watch(()=>n.socketMessage,(P,Q)=>{var U;P!==Q&&s(P,d.value,(U=h.value)==null?void 0:U.id)}),t.watch(d,P=>{P&&setTimeout(()=>{p.value=!0},400)}),(P,Q)=>(t.openBlock(),t.createElementBlock("div",{class:"chat-container",ref_key:"chatContainer",ref:g},[d.value?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:t.withModifiers(S,["stop"]),style:{width:"42px",height:"42px","border-radius":"50%","background-color":"#02a9db",display:"flex","justify-content":"center"}},Q[1]||(Q[1]=[t.createElementVNode("span",{style:{"margin-top":"auto","margin-bottom":"auto"},class:"chat-icon my-auto"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[t.createElementVNode("path",{fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})])],-1)]))):t.createCommentVNode("",!0),!d.value&&e.countMessages>0?(t.openBlock(),t.createElementBlock("section",{key:1,style:t.normalizeStyle(e.countMessages>10?"padding: 0.2rem 0.500rem;":"padding: 0.2rem 0.625rem;"),class:"chat-count"},t.toDisplayString(e.countMessages),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{onClick:t.withModifiers(B,["stop"]),class:t.normalizeClass(["group relative",d.value?"chat-box border-base-200 open bg-base-200":"chat-box closed"]),style:t.normalizeStyle(N.value)},[d.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",_8,[(t.openBlock(),t.createElementBlock("svg",N8,[t.createElementVNode("path",{class:t.normalizeClass(e.mode==="dark"?"dark-chat-window-icon":"chat-window-icon"),fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"},null,2)])),k.value>0?(t.openBlock(),t.createElementBlock("span",D8,t.toDisplayString(k.value),1)):t.createCommentVNode("",!0),Q[2]||(Q[2]=t.createElementVNode("div",{class:"chat-tooltip"},[t.createElementVNode("div",{class:"text-sm my-auto text-center"},"Chat interno")],-1))])),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx(()=>[d.value&&!T.value?(t.openBlock(),t.createElementBlock("div",T8,[t.createElementVNode("button",{onClick:t.withModifiers(S,["stop"]),class:"close-button"},Q[3]||(Q[3]=[t.createElementVNode("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L17.94 6M18 18L6.06 6"})],-1)])),t.unref(o)||t.unref(f)?(t.openBlock(),t.createBlock(y1,{key:0})):h.value&&!t.unref(o)?(t.openBlock(),t.createElementBlock("div",P8,[t.createVNode(_1,{ref_key:"dropFilesRef",ref:v,attendant:e.attendant,selectedAttendant:h.value,sendFilesToAttendant:t.unref(c)},{default:t.withCtx(()=>[t.createVNode(g1,{isMobile:!1,onSendFiles:x,attendant:e.attendant,selectedAtendente:h.value,onVoltar:Q[0]||(Q[0]=U=>h.value=null),loadMessagesForAtendente:t.unref(m),sendMessageToAtendente:t.unref(c),hasNextPageForAtendente:t.unref(l)},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):t.createCommentVNode("",!0),!h.value&&!t.unref(f)?(t.openBlock(),t.createBlock(dl,{key:2,attendant:e.attendant,atendentes:t.unref(r),onAtendenteSelecionado:G},null,8,["attendant","atendentes"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),_:1})],6)],512))}},[["__scopeId","data-v-f69203ed"]]),O8={class:"chat-content"},F8={key:1,class:"h-full"},D1=je({__name:"mobileChatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},downloadFilesMobile:{type:Function,required:!0},openMobilePdf:{type:Function}},emits:["unreadMessagesEmit"],setup(e,{emit:a}){const n=e,{attendants:r,loadingMessages:o,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:m,resetUnreadMessages:u,loadingAttendants:f}=cl(),d=t.ref(!1),p=t.ref(!1),h=t.ref(null),g=t.ref(null),b=a,v=t.ref(null),x=()=>{var S;(S=v.value)==null||S.chooseFiles()};t.computed(()=>{if(h.value){const S=r.value.find(B=>B.id===h.value.id);return S?S.internal_chat.unread:0}return 0});const k=S=>{g.value&&!g.value.contains(S.target)&&d.value&&T()};t.onMounted(()=>{document.addEventListener("click",k)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",k)});const A=t.ref(!1),_=t.ref(!1),T=()=>{d.value?(_.value=!0,setTimeout(()=>{d.value=!1,_.value=!1},200)):(d.value=!0,A.value=!0,setTimeout(()=>{A.value=!1},200))},N=async S=>{const B=r.value.find(P=>P.id===S.id),G=B?B.internal_chat.unread:0;b("unreadMessagesEmit",G),h.value=S,u(S.id),S.hasNextPage||await i(S.id)};return t.watch(()=>n.socketMessage,(S,B)=>{var G;S!==B&&s(S,d.value,(G=h.value)==null?void 0:G.id)}),t.watch(d,S=>{S&&setTimeout(()=>{p.value=!0},400)}),(S,B)=>(t.openBlock(),t.createElementBlock("div",O8,[t.unref(o)||t.unref(f)?(t.openBlock(),t.createBlock(y1,{key:0})):h.value&&!t.unref(o)?(t.openBlock(),t.createElementBlock("div",F8,[t.createVNode(_1,{ref_key:"dropFilesRef",ref:v,isMobile:"",attendant:e.attendant,selectedAttendant:h.value,sendFilesToAttendant:t.unref(c)},{default:t.withCtx(()=>[t.createVNode(g1,{isMobile:"",attendant:e.attendant,selectedAtendente:h.value,loadMessagesForAtendente:t.unref(m),sendMessageToAtendente:t.unref(c),hasNextPageForAtendente:t.unref(l),downloadFilesMobile:e.downloadFilesMobile,openMobilePdf:e.openMobilePdf,onVoltar:B[0]||(B[0]=G=>h.value=null),onSendFiles:x},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente","downloadFilesMobile","openMobilePdf"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):t.createCommentVNode("",!0),!h.value&&!t.unref(f)?(t.openBlock(),t.createBlock(dl,{key:2,mobile:!0,attendant:e.attendant,atendentes:t.unref(r),onAtendenteSelecionado:N},null,8,["attendant","atendentes"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-a1f8f1b3"]]),Zo=It.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(e=""){try{let a=`${a2}`;const n=await ra.get(a);this.departments=n.data,this.count=this.departments.length}catch(a){console.log("Erro ao buscar departamentos:",a)}},removeDepartments(e){this.departments=this.departments.filter(a=>a.id!==e)},addDepartments(e){const a=this.departments.findIndex(n=>n.id===e.id);a!==-1?this.departments[a]=e:this.departments.push(e)}}}),L8={class:"depart-select-container"},$8={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},R8=["placeholder"],H8={key:0,class:"selection-container bg-base-300 border-b border-base-200"},z8=["onClick"],I8={class:"department-list"},G8=["onClick"],j8={key:0,style:{width:"150px"}},q8=["onUpdate:modelValue","onChange"],W8={key:0,class:"no-departments bg-base-300"},Y8={key:0},U8={key:1,class:"library-loading-spinner"},T1=je({__name:"departSelect",props:{department:{type:[Array,String],default:null},modal_filter:{type:String,default:null},multiSelect:{type:Boolean,default:!0},permissions:{type:Boolean,default:!1},externalDepartments:{type:Array,default:null},attDel:{type:String,default:null},hiddenDepartment:{type:String,default:null}},emits:["depart","component-mounted"],setup(e,{emit:a}){t.useSlots();const n=e,r=a,o=Zo(),i=t.ref(""),s=t.ref([]),l=t.ref(!1),c=t.ref(!1),m=t.computed(()=>(n.externalDepartments||o.departments).filter(k=>!(n.hiddenDepartment&&k.id===n.hiddenDepartment)).filter(k=>!i.value||k.name.toLowerCase().includes(i.value.toLowerCase())));t.onMounted(async()=>{await d(),await f(),r("component-mounted")}),t.watch(()=>o.departments.length,async()=>{await d(),await t.nextTick(),await f()},{immediate:!0}),t.watch(()=>n.attDel,x=>x&&u(x),{immediate:!0});function u(x){const A=(n.externalDepartments||o.departments).findIndex(_=>_.id===x);A!==-1&&(s.value=s.value.filter(_=>_.id!==x),n.externalDepartments?n.externalDepartments.splice(A,1):o.removeDepartments(x),r("depart",s.value))}async function f(){c.value=!0;const x=n.externalDepartments||o.departments;n.permissions&&x.forEach(k=>{k.permission||(k.permission="normal")}),await p(),c.value=!1}async function d(){(n.externalDepartments||o.departments).forEach(k=>k.selected=!1),s.value=[]}async function p(){const x=n.externalDepartments||o.departments;if(!(x!=null&&x.length))return;(Array.isArray(n.department)?n.department:n.department?[n.department]:[]).forEach(A=>{const _=typeof A=="object"?A.id:A,T=typeof A=="object"?A.permission:void 0,N=x.find(S=>S.id===_);N&&(N.selected=!0,T&&(N.permission=T),s.value.some(S=>S.id===_)||s.value.push(N))}),r("depart",s.value)}function h(x){const k=s.value.findIndex(A=>A.id===x.id);k!==-1?(x.selected=!1,s.value.splice(k,1)):(n.multiSelect||d(),x.selected=!0,s.value.push(x)),r("depart",s.value)}function g(){r("depart",s.value)}function b(x,k){x.selected=!1,s.value.splice(k,1),r("depart",s.value)}const v=t.computed(()=>i.value.trim().length>0);return t.watch(v,x=>{r("searching",x)}),(x,k)=>(t.openBlock(),t.createElementBlock("div",L8,[t.createElementVNode("div",$8,[t.createElementVNode("div",{class:t.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:l.value||s.value.length>0}]),onClick:k[1]||(k[1]=A=>l.value=!l.value)},[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":k[0]||(k[0]=A=>i.value=A),placeholder:s.value.length>0?e.multiSelect?`Selecionados: ${s.value.length}`:`Selecionado: ${s.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,R8),[[t.vModelText,i.value]]),k[2]||(k[2]=t.createElementVNode("div",{class:"icon-container"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),s.value.length>0&&e.multiSelect&&t.unref(o).loaded?(t.openBlock(),t.createElementBlock("main",H8,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(A,_)=>(t.openBlock(),t.createElementBlock("div",{key:A.id,class:"selection-item"},[t.createTextVNode(t.toDisplayString(A.name)+" ",1),t.createElementVNode("button",{onClick:T=>b(A,_),class:"close-btn"},k[3]||(k[3]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,z8)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass([s.value.length>0&&e.multiSelect?"dropdown-depart-expanded":"dropdown-depart","dropdown-depart bg-base-300"])},[t.createElementVNode("div",I8,[t.createElementVNode("div",{class:t.normalizeClass([{"two-columns":m.value.length>4},"grid-container"])},[t.unref(o).loaded?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value,A=>(t.openBlock(),t.createElementBlock("div",{key:A.id,class:t.normalizeClass([{selected:A.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[t.createElementVNode("span",{onClick:_=>h(A),class:"department-name h-full w-full"},t.toDisplayString(A.name),9,G8),e.multiSelect&&e.permissions?(t.openBlock(),t.createElementBlock("div",j8,[t.withDirectives(t.createElementVNode("select",{"onUpdate:modelValue":_=>A.permission=_,onChange:_=>g(),class:"select-dropdown-depart bg-base-300"},k[4]||(k[4]=[t.createElementVNode("option",{value:"normal"},"normal",-1),t.createElementVNode("option",{value:"supervisor"},"supervisor",-1)]),40,q8),[[t.vModelSelect,A.permission]])])):t.createCommentVNode("",!0)],2))),128)):t.createCommentVNode("",!0)],2)]),t.unref(o).loaded&&m.value.length===0?(t.openBlock(),t.createElementBlock("div",W8,[x.$slots.default?t.renderSlot(x.$slots,"default",{key:1},void 0,!0):(t.openBlock(),t.createElementBlock("p",Y8,"Nenhum departamento disponível."))])):t.createCommentVNode("",!0),t.unref(o).loaded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",U8,k[5]||(k[5]=[t.createTextVNode(" Inicializando departamentos "),t.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-cb89eac6"]]),X8={class:"depart-select-container"},Z8={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},Q8=["placeholder"],K8={key:0,class:"selection-container bg-base-300 border-b border-base-200"},J8=["onClick"],e9={class:"department-list"},t9={style:{"padding-left":"5px"}},a9=["src"],n9={key:1,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"},class:"bg-base-300","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},r9=["onClick"],o9={key:0,class:"no-departments bg-base-300"},i9={key:1,class:"library-loading-spinner"},P1=je({__name:"attendantSelect",props:{attendance:{type:[Array,String],default:null},multiSelect:{type:Boolean,default:!0},department:{type:Array,default:[]},modal_filter:{type:String,default:null},attDel:{type:Object,default:{id:null}},method:{type:String,default:null}},emits:["attend","component-mounted"],setup(e,{emit:a}){const n=e,r=a,o=er(),i=t.ref(""),s=t.ref(!1),l=t.ref([]);function c(){const v=Array.isArray(n.attendance)?n.attendance:n.attendance?[n.attendance]:[];return new Set(v.filter(Boolean).map(x=>typeof x=="object"?x.id:x))}const m=t.computed(()=>{const v=o.attendants.filter(k=>k.status===!0),x=i.value?v.filter(k=>k.name.toLowerCase().includes(i.value.toLowerCase())):v;return f(u(x))});function u(v){var x;if(n.method==="remove")return(Array.isArray(n.attendance)?n.attendance:n.attendance?[n.attendance]:v).filter(A=>{var T;return(typeof A=="object"?A.id:A)!==((T=n==null?void 0:n.attDel)==null?void 0:T.id)});if(n.method==="addParticipant"){const k=c();return(x=n==null?void 0:n.attDel)!=null&&x.id&&k.add(n.attDel.id),v.filter(A=>!k.has(A.id))}return v}function f(v){return Array.isArray(n.department)&&n.department.length>0?v.filter(x=>x.department.some(k=>n.department.some(A=>A.id===k.id))):v}t.onMounted(()=>{d(),r("component-mounted")}),t.watch(()=>o.attendants.length,async()=>{await t.nextTick(),d()},{immediate:!0}),t.watch(()=>n.modal_filter,()=>{!n.modal_filter&&n.multiSelect&&p()},{immediate:!0}),t.watch(()=>n.department,()=>d(),{deep:!0});function d(){p(),h()}function p(){o.attendants.forEach(v=>v.selected=!1),l.value=[]}function h(){const v=o.attendants;v!=null&&v.length&&r("attend",l.value)}function g(v){const x=l.value.findIndex(k=>k.id===v.id);x!==-1?(v.selected=!1,l.value.splice(x,1)):(n.multiSelect||p(),v.selected=!0,l.value.push(v)),r("attend",l.value)}function b(v,x){v.selected=!1,l.value.splice(x,1),r("attend",l.value)}return(v,x)=>(t.openBlock(),t.createElementBlock("div",X8,[t.createElementVNode("div",Z8,[t.createElementVNode("div",{class:t.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:s.value||l.value.length>0}]),onClick:x[1]||(x[1]=k=>s.value=!s.value)},[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=k=>i.value=k),placeholder:l.value.length>0?e.multiSelect?`Selecionados: ${l.value.length}`:`Selecionado: ${l.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,Q8),[[t.vModelText,i.value]]),x[2]||(x[2]=t.createElementVNode("div",{class:"icon-container"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),l.value.length>0&&e.multiSelect&&t.unref(o).loaded?(t.openBlock(),t.createElementBlock("main",K8,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(k,A)=>(t.openBlock(),t.createElementBlock("div",{key:k,class:"selection-item"},[t.createTextVNode(t.toDisplayString(k.name)+" ",1),t.createElementVNode("button",{onClick:_=>b(k,A),class:"close-btn"},x[3]||(x[3]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,J8)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass([l.value.length>0&&e.multiSelect?"dropdown-attendance-expanded":"dropdown-attendance","dropdown-attendance bg-base-300"])},[t.createElementVNode("div",e9,[t.createElementVNode("div",{class:t.normalizeClass([{"two-columns":m.value.length>4},"grid-container"])},[t.unref(o).loaded?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value,k=>(t.openBlock(),t.createElementBlock("div",{key:k,class:t.normalizeClass([{selected:k.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[t.createElementVNode("div",t9,[k.photo?(t.openBlock(),t.createElementBlock("img",{key:0,src:k.photo,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"}},null,8,a9)):(t.openBlock(),t.createElementBlock("svg",n9,x[4]||(x[4]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"},null,-1)])))]),t.createElementVNode("span",{onClick:A=>g(k),class:"department-name h-full w-full"},t.toDisplayString(k.name),9,r9)],2))),128)):t.createCommentVNode("",!0)],2)]),t.unref(o).loaded&&m.value.length===0?(t.openBlock(),t.createElementBlock("div",o9," Nenhum atendente disponível. ")):t.createCommentVNode("",!0),t.unref(o).loaded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",i9,x[5]||(x[5]=[t.createTextVNode(" Inicializando atendentes "),t.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-d8f12584"]]),s9={class:""},l9={class:"flex justify-between mb-3"},c9={class:""},O1=je({__name:"filterSelect",props:{title:{type:String,default:"Filtros"},modelValue:{default:null}},setup(e){const a=t.ref(!0);return(n,r)=>{const o=t.resolveComponent("Popper");return t.openBlock(),t.createBlock(o,{placement:"bottom",arrow:!1,class:"dark:popper-light popper-dark"},{content:t.withCtx(({close:i})=>[t.createElementVNode("section",s9,[t.createElementVNode("div",null,[t.createElementVNode("div",l9,[t.createElementVNode("p",null,t.toDisplayString(e.title),1),r[1]||(r[1]=t.createElementVNode("svg",{class:"w-4 h-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{d:"M5 3a2 2 0 0 0-1.5 3.3l5.4 6v5c0 .4.3.9.6 1.1l3.1 2.3c1 .7 2.5 0 2.5-1.2v-7.1l5.4-6C21.6 5 20.7 3 19 3H5Z"})],-1))]),t.createElementVNode("div",c9,[t.renderSlot(n.$slots,"default",{},void 0,!0)])])])]),default:t.withCtx(()=>[t.createElementVNode("button",{onClick:r[0]||(r[0]=i=>a.value=!a.value),class:"group max-w-max relative flex p-0.5 flex-col items-center justify-center cursor-pointer rounded-md text-xs font-semibold"},r[2]||(r[2]=[t.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"})],-1)]))]),_:3})}}},[["__scopeId","data-v-1dfa2696"]]);function d9(e,a){return t.openBlock(),t.createElementBlock("svg")}const u9={render:d9},f9=t.createStaticVNode('<g id="Top/_Resources/Prescription-01" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Glasses" fill="#D6EAF2" filter="url('#filter1')" transform="translate(8 8)"><path id="Frame-Stuff" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame-Stuff" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g>',1),m9=[f9];function h9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...m9])}const p9={render:h9},g9=t.createStaticVNode('<g id="Top/_Resources/Round" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.6%" height="108.3%" x="-.8%" y="-2.1%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter><path id="Round-path1" d="M80.465 16.394C84.38 8.46 92.553 3 102 3c8.92 0 16.703 4.866 20.84 12.088q.316-.087.66-.088h8a2.5 2.5 0 1 1 0 5h-6.537A24 24 0 0 1 126 27c0 13.255-10.745 24-24 24S78 40.255 78 27c0-1.422.124-2.815.36-4.169C78.277 18.455 74.915 15 70.863 15c-3.736 0-6.887 2.94-7.42 6.83.365 1.665.558 3.395.558 5.17 0 13.255-10.745 24-24 24S16 40.255 16 27c0-2.435.363-4.785 1.037-7H10.5a2.5 2.5 0 1 1 0-5h8q.343 0 .66.088C23.297 7.866 31.08 3 40 3c9.352 0 17.455 5.35 21.416 13.155C63.493 13.039 66.949 11 70.862 11c4.013 0 7.545 2.144 9.603 5.394M40 47c11.046 0 20-8.954 20-20S51.046 7 40 7s-20 8.954-20 20 8.954 20 20 20m62 0c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20"></path></defs><g id="Lennon-Glasses"><use fill="#000" filter="url('#filter1')" href="#Round-path1"></use><use fill="#252C2F" href="#Round-path1"></use></g></g>',1),y9=[g9];function k9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...y9])}const b9={render:k9},x9=t.createStaticVNode('<g id="Top/_Resources/Wayfarers" fill="none" stroke-width="1" transform="translate(62 85)"><defs><path id="react-path-1157" d="M44.918 17.571c0 9.703-8.25 17.572-21.998 17.572h-2.75C6.423 35.143.923 27.27.923 17.57.923 7.866 2.207 0 21.455 0h2.931c19.248 0 20.532 7.866 20.532 17.571"></path><path id="react-path-1158" d="M106.486 17.571c0 9.703-8.247 17.572-21.997 17.572h-2.75c-13.748 0-19.248-7.872-19.248-17.572C62.491 7.866 63.775 0 83.023 0h2.932c19.244 0 20.531 7.866 20.531 17.571"></path><linearGradient id="react-linear-gradient-1160" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><filter id="react-filter-1159" width="101.6%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" filter="url(#react-filter-1159)" transform="translate(7 7)"><g id="Shades" fill-rule="evenodd" transform="translate(10.795 2.929)"><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1157"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1157" style="mix-blend-mode:screen;"></use></g><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1158"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1158" style="mix-blend-mode:screen;"></use></g></g><path id="Left" fill="#252C2F" fill-rule="nonzero" d="M33.716 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5C8.787 10.127 10.6 0 32.25 0h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.93 20.5M32.25 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.83 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Right" fill="#252C2F" fill-rule="nonzero" d="M95.284 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5 0-10.373 1.813-20.5 23.464-20.5h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.929 20.5M93.818 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.833 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Stuff" fill="#252C2F" fill-rule="nonzero" d="M2.932 5.857C3.618 5.172 11.123 0 32.25 0c17.714 0 21.464 1.88 27.14 4.72l.415.21c.395.143 2.413.844 4.773.921a16.5 16.5 0 0 0 4.528-.881C75.584 1.748 81.926 0 96.75 0c21.127 0 28.632 5.172 29.318 5.857A2.93 2.93 0 0 1 129 8.786v2.928c0 1.62-1.31 2.929-2.932 2.929 0 0-5.863 0-5.863 2.928s-2.932-4.237-2.932-5.857V8.862c-3.576-1.4-9.976-3.005-20.523-3.005-11.75 0-17.602 1.131-22.622 3.247l.056.139-2.496 1.007 2.493 1.008-2.2 5.43-2.717-1.1a13 13 0 0 0-1.493-.457c-2.024-.51-4.106-.666-5.946-.28a7.7 7.7 0 0 0-1.877.642l-2.622 1.31-2.623-5.238 2.622-1.31.006-.003-2.512-1.015.08-.198C50.57 6.976 46.58 5.857 32.25 5.857c-10.546 0-16.947 1.604-20.523 3.004v2.853c0 1.62-2.932 8.786-2.932 5.857s-5.863-2.928-5.863-2.928A2.93 2.93 0 0 1 0 11.714V8.786a2.93 2.93 0 0 1 2.932-2.929"></path></g></g>',1),w9=[x9];function v9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...w9])}const E9={render:v9},C9=t.createStaticVNode('<g id="Top/_Resources/Kurt" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="108%" x="-.8%" y="-2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Kurts" filter="url('#filter1')" transform="translate(5 2)"><path id="It!" fill="#F4F4F4" d="M66 11.111c-11.037 0-12.63-9.084-35.33-10.37C7.987-.283.816 6.449.777 11.11c.037 4.293-1.128 15.45 13.589 28.519 14.772 15.512 29.905 10.252 35.33 5.185C55.134 42.473 61.34 21.46 66 21.48s10.865 20.992 16.306 23.334c5.424 5.067 20.557 10.327 35.33-5.185 14.716-13.069 13.55-24.226 13.588-28.519-.04-4.662-7.21-11.394-29.895-10.37C78.63 2.027 77.037 11.11 66 11.11"></path><path id="Did" fill="#2F383B" d="M55.13 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.256.299-16.111 9.453-16.306 12.963-.349 8.133 8.367 26.415 24.459 25.926 16.091-.51 18.803-18.28 19.023-23.334"></path><path id="Courtney" fill="#2F383B" d="M120.353 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.255.299-16.11 9.453-16.305 12.963-.35 8.133 8.367 26.415 24.458 25.926 16.092-.51 18.804-18.28 19.024-23.334" transform="matrix(-1 0 0 1 197.224 0)"></path></g></g>',1),S9=[C9];function M9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...S9])}const B9={render:M9},A9=t.createStaticVNode('<g id="Top/_Resources/Prescription-02" fill="none" stroke-width="1" transform="translate(62 85)"><defs><filter id="react-filter-1166" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" fill="#252C2F" fill-rule="nonzero" filter="url(#react-filter-1166)" transform="translate(6 7)"><path id="Left" d="M34 41h-2.758C17.315 41 9 33.336 9 20.5 9 10.127 10.817 0 32.53 0h2.94C57.183 0 59 10.127 59 20.5 59 32.569 48.721 41 34 41M32.385 6C13 6 13 12.841 13 21.502 13 28.572 16.116 37 30.97 37H34c12.365 0 21-6.373 21-15.498C55 12.84 55 6 35.615 6z"></path><path id="Right" d="M96 41h-2.758C79.315 41 71 33.336 71 20.5 71 10.127 72.817 0 94.53 0h2.94C119.183 0 121 10.127 121 20.5 121 32.569 110.721 41 96 41M94.385 6C75 6 75 12.841 75 21.502 75 28.572 78.12 37 92.97 37H96c12.365 0 21-6.373 21-15.498C117 12.84 117 6 97.615 6z"></path><path id="Stuff" d="M2.955 5.772C3.645 5.096 11.21 0 32.5 0c17.851 0 21.63 1.853 27.35 4.652l.419.207c.398.14 2.431.83 4.81.907a17 17 0 0 0 4.563-.869C76.17 1.722 82.562 0 97.5 0c21.29 0 28.854 5.096 29.545 5.772 1.634 0 2.955 1.29 2.955 2.885v2.886c0 1.596-1.32 2.886-2.955 2.886 0 0-6.901 0-6.901 2.886 0 2.885-1.962-4.176-1.962-5.772v-2.81c-3.603-1.38-10.054-3.947-20.682-3.947-11.842 0-17.739 2.1-22.798 4.185l.057.137-.003 1.986-2.217 5.35L69.8 15.36c-.244-.097-.772-.27-1.504-.451-2.04-.503-4.137-.656-5.992-.276q-1.021.21-1.891.633l-2.643 1.29-2.643-5.16.117-2.295.08-.195c-4.362-2.033-8.385-4.12-22.824-4.12-10.628 0-17.078 2.565-20.682 3.944v2.812c0 1.596-2.954 8.657-2.954 5.772 0-2.886-5.91-2.886-5.91-2.886-1.63 0-2.954-1.29-2.954-2.886V8.657c0-1.595 1.324-2.885 2.955-2.885"></path></g></g>',1),V9=[A9];function _9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...V9])}const N9={render:_9},D9=t.createStaticVNode('<g id="Top/_Resources/Sunglasses" fill="none" stroke-width="1" transform="translate(62 85)"><defs><linearGradient id="react-linear-gradient-1164" x1="50%" x2="50%" y1="0%" y2="70.506%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="100%" stop-opacity=".5"></stop></linearGradient><linearGradient id="react-linear-gradient-1165" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><path id="react-path-1161" d="M47.01 6.277c2.511.024 3.698.45 4.126 3.115.433 2.7.012 5.736-.488 8.395-.762 4.06-2.031 8.04-4.984 11.007-1.555 1.564-3.452 2.81-5.47 3.66-1.071.452-2.203.778-3.334 1.026-.33.072-3.154.468-1.422.267-4.041.47-8.425.45-11.8-2.168-3.74-2.901-6.301-7.493-7.427-12.066-.66-2.676-2.044-9.076.486-11.216 2.898-2.452 30.313-2.02 30.313-2.02"></path><path id="react-path-1162" d="M78.92 6.275c-2.512.024-3.699.449-4.126 3.114-.434 2.7-.012 5.736.487 8.395.763 4.061 2.032 8.04 4.984 11.008 1.556 1.563 3.453 2.809 5.47 3.66 1.072.451 2.204.778 3.335 1.025.33.072 3.153.469 1.422.267 4.04.47 8.425.45 11.8-2.167 3.74-2.902 6.3-7.493 7.427-12.066.66-2.677 2.043-9.077-.486-11.217-2.898-2.451-30.314-2.02-30.314-2.02"></path><filter id="react-filter-1163" width="101.6%" height="110.5%" x="-.8%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Sunglasses" filter="url(#react-filter-1163)" transform="translate(8 8)"><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1161"></use><use fill="url(#react-linear-gradient-1164)" href="#react-path-1161" style="mix-blend-mode:screen;"></use></g><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1162"></use><use fill="url(#react-linear-gradient-1165)" href="#react-path-1162" style="mix-blend-mode:screen;"></use></g><g id="Glasses" fill="#252C2F"><path id="Frame" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g></g>',1),T9=[D9];function P9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...T9])}const O9={render:P9},F9={Blank:u9,Prescription01:p9,Round:b9,Wayfarers:E9,Kurt:B9,Prescription02:N9,Sunglasses:O9},L9=t.createStaticVNode('<g id="Clothing/Blazer-+-Shirt" transform="translate(0 170)"><defs><path id="BlazerShirt-path1" d="M133.96.295c36.976 3.03 66.04 34 66.04 71.757V81H0v-8.948C0 33.952 29.592 2.765 67.045.22Q67 .78 67 1.348c0 11.863 14.998 21.48 33.5 21.48S134 13.211 134 1.348q0-.53-.04-1.053"></path></defs><g id="Shirt" transform="translate(32 29)"><mask id="BlazerShirt-mask1" fill="#fff"><use href="#BlazerShirt-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerShirt-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerShirt-mask1')"><path id="Color" d="M0 0h264v110H0z" transform="translate(-32 -29)"></path></g><g id="Shadowy" fill="#000" mask="url('#BlazerShirt-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(60 -25)"></ellipse></g></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g></g>',1),$9=[L9];function R9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...$9])}const H9={render:R9},z9=t.createStaticVNode('<g id="Clothing/Blazer-+-Sweater" transform="translate(0 170)"><defs><path id="BlazerSweater-path1" d="M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"></path></defs><mask id="BlazerSweater-mask1" fill="#fff"><use href="#BlazerSweater-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerSweater-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerSweater-mask1')"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g><path id="Collar" fill="#F2F2F2" d="M156 21.539c6.772 4.597 11 11.117 11 18.349 0 7.4-4.428 14.057-11.48 18.668l-5.94-4.68-4.58.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48 0c-6.772 4.597-11 11.117-11 18.349 0 7.4 4.428 14.057 11.48 18.668l5.94-4.68 4.58.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"></path></g>',1),I9=[z9];function G9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...I9])}const j9={render:G9},q9=t.createElementVNode("g",{id:"Clothing/Collar-+-Sweater",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"CollarSweater-path1",d:"M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"})]),t.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#CollarSweater-path1"}),t.createElementVNode("path",{id:"Collar",fill:"#F2F2F2",d:"M156 22.28c6.182 4.555 10 10.826 10 17.748 0 7.205-4.137 13.705-10.771 18.3l-5.65-4.452-4.579.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48-.709c-6.767 4.603-11 11.169-11 18.457 0 7.398 4.362 14.052 11.308 18.664l6.113-4.816 4.579.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"})],-1),W9=[q9];function Y9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...W9])}const U9={render:Y9},X9=t.createStaticVNode('<g id="Clothing/Hoodie" transform="translate(0 170)"><defs><path id="Hoodie-path1" d="M108 13.07c-17.919 2.006-31.72 7.482-31.996 21.575C50.146 45.568 32 71.165 32 100.999V110h200v-9c0-29.835-18.146-55.432-44.004-66.355-.276-14.093-14.077-19.57-31.996-21.574V32c0 13.255-10.745 24-24 24s-24-10.745-24-24z"></path></defs><mask id="Hoodie-mask1" fill="#fff"><use href="#Hoodie-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Hoodie-path1"></use><path id="Straps" fill="#F4F4F4" d="M102 61.74V110h-7V58.15a65 65 0 0 0 7 3.59m67-3.59V98.5a3.5 3.5 0 1 1-7 0V61.74a65 65 0 0 0 7-3.59" mask="url('#Hoodie-mask1')"></path><path id="Shadow" fill="#000" d="M90.96 12.724C75.91 15.571 65.5 21.243 65.5 32.308 65.5 52.02 98.538 68 132 68s66.5-15.98 66.5-35.692c0-11.065-10.41-16.737-25.46-19.584 9.085 3.35 14.96 8.982 14.96 18.353C188 51.469 160.179 68 132 68S76 51.469 76 31.077c0-9.37 5.875-15.003 14.96-18.353" mask="url('#Hoodie-mask1')" opacity=".16"></path></g>',1),Z9=[X9];function Q9(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Z9])}const K9={render:Q9},J9=t.createElementVNode("g",{id:"Clothing/Graphic-Shirt",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"GraphicShirt-path1",d:"M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"})]),t.createElementVNode("use",{fill:"#E6E6E6",class:"CustomColor",href:"#GraphicShirt-path1"})],-1),eh=[J9];function th(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...eh])}const ah={render:th},nh=t.createStaticVNode('<g id="Clothing/Overall" transform="translate(0 170)"><defs><path id="Overall-path1" d="M94 29.688V74h76V29.688a71.5 71.5 0 0 1 26 8.944V110H68V38.632a71.5 71.5 0 0 1 26-8.944"></path></defs><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Overall-path1"></use><circle id="Button" cx="81" cy="83" r="5" fill="#F4F4F4"></circle><circle id="Button" cx="183" cy="83" r="5" fill="#F4F4F4"></circle></g>',1),rh=[nh];function oh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...rh])}const ih={render:oh},sh=t.createStaticVNode('<g id="Clothing/Shirt-Crew-Neck" transform="translate(0 170)"><defs><path id="ShirtCrewNeck-path1" d="M165.96 29.295c36.976 3.03 66.04 34 66.04 71.757V110H32v-8.948c0-38.1 29.592-69.287 67.045-71.832Q99 29.78 99 30.348c0 11.863 14.998 21.48 33.5 21.48s33.5-9.617 33.5-21.48q0-.53-.04-1.053"></path></defs><mask id="ShirtCrewNeck-mask1" fill="#fff"><use href="#ShirtCrewNeck-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#ShirtCrewNeck-path1"></use><g id="Shadowy" fill="#000" mask="url('#ShirtCrewNeck-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(92 4)"></ellipse></g></g>',1),lh=[sh];function ch(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...lh])}const dh={render:ch},uh=t.createElementVNode("g",{id:"Clothing/Shirt-V-Neck",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"ShirtVNeck-path1",d:"M171.32 29.936C205.706 35.366 232 65.14 232 101.052V110H32v-8.948c0-35.914 26.294-65.686 60.682-71.116a23.9 23.9 0 0 0 7.554 13.603l29.085 26.229a4 4 0 0 0 5.358 0l29.085-26.229a24 24 0 0 0 1.234-1.196 23.9 23.9 0 0 0 6.322-12.407"})]),t.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtVNeck-path1"})],-1),fh=[uh];function mh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...fh])}const hh={render:mh},ph=t.createElementVNode("g",{id:"Clothing/Shirt-Scoop-Neck",transform:"translate(0 170)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"ShirtScoopNeck-path1",d:"M181.544 32.33C210.784 41.488 232 68.792 232 101.052V110H32v-8.948c0-32.655 21.739-60.232 51.534-69.05A18 18 0 0 0 83 36.348c0 16.281 22.162 29.48 49.5 29.48S182 52.629 182 36.348c0-1.363-.155-2.704-.456-4.018"})]),t.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtScoopNeck-path1"})],-1),gh=[ph];function yh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...gh])}const kh={render:yh},bh={BlazerShirt:H9,CollarSweater:U9,BlazerSweater:j9,Hoodie:K9,GraphicShirt:ah,Overall:ih,ShirtCrewNeck:dh,ShirtVNeck:hh,ShirtScoopNeck:kh},xh=t.createStaticVNode('<g id="Top"><defs><path id="Eyepatch-path1" d="M0 0h264v280H0z"></path></defs><mask id="Eyepatch-mask1" fill="#fff"><use href="#Eyepatch-path1"></use></mask><g id="Top/Accesories/Eyepatch" mask="url('#Eyepatch-mask1')"><path fill="#28354B" d="M159.395 39.781c-3.077-3.088-6.276 3.858-7.772 5.647-3.61 4.32-7.083 8.755-10.755 13.024-7.252 8.43-14.429 16.922-21.634 25.388-1.094 1.286-.961 1.425-2.397 1.549-.951.082-2.274-.409-3.263-.463-2.75-.151-5.462.309-8.138.897-5.345 1.173-11.01 3.106-15.647 6.075-1.217.78-2.002 1.7-3.322 1.943-1.149.212-2.673-.211-3.845-.322-2.08-.195-5.084-1.046-7.127-.605-2.592.56-3.578 3.697-.935 5.086 2.01 1.056 6.01.476 8.264.645 2.573.192 1.788.06 1.423 2.52-.523 3.533.352 7.481 1.842 10.713 3.46 7.505 13.034 15.457 21.766 14.725 7.287-.61 13.672-7.19 16.664-13.503 1.532-3.231 2.436-6.908 2.731-10.472.189-2.266.084-4.67-.566-6.865-.321-1.085-.83-2.208-1.376-3.193-.442-.799-2.4-2.65-2.52-3.453-.232-1.557 4.185-5.73 5.028-6.773 3.973-4.916 7.964-9.812 11.906-14.755 3.881-4.869 7.784-9.725 11.768-14.51 1.804-2.17 10.828-10.364 7.905-13.298" class="CustomColor"></path></g></g>',1),wh=[xh];function vh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...wh])}const Eh={render:vh},Ch=t.createStaticVNode('<g id="Top"><defs><path id="LongHairMiaWallace-path1" d="M0 0h264v280H0z"></path><path id="LongHairMiaWallace-path2" d="M148.86 69q.14 1.982.14 4v38c0 22.34-13.08 41.623-32 50.611v8.706c18.146 1.499 35.721 4.018 46 6.683 9.953-13.56 22.885-26.2 23-51 .085-18.985-27.676-95.572-40-111-8.138-10.188-28.695-13.55-53-14S48.923 6.509 41 16C30.319 28.795-.085 107.015 0 126c.116 24.8 13.048 37.44 23 51 10.279-2.665 27.854-5.184 46-6.683v-8.706C50.08 152.623 37 133.339 37 111V73q0-2.018.14-4h28.234l3.879-21.444L72.058 69h76.801Z"></path></defs><mask id="LongHairMiaWallace-mask1" fill="#fff"><use href="#LongHairMiaWallace-path1"></use></mask><g id="Top/Long-Hair/Mia-Wallace" mask="url('#LongHairMiaWallace-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M69.033 76.213q19.407-49.626 41.025-49.626c.539 0 29.253-.238 48.055-.36C178.767 35.585 193 55.304 193 78.115V93h-82.942l-2.805-23.18-3.88 23.18H69V78.115q0-.955.033-1.902" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairMiaWallace-path2" transform="translate(40 19)"></use></g></g></g>',1),Sh=[Ch];function Mh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Sh])}const Bh={render:Mh},Ah=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortCurly-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortCurly-path1" d="M94.252 52.022q.185-.081-.916-.062 1.338-.003.916.062m-8.135-15.72c-.002-.02.017.15 0 0m107.648 34.464c-.264-3.317-.732-6.614-1.518-9.855-.625-2.576-1.478-5.033-2.487-7.491-.61-1.485-2.032-3.524-2.2-5.126-.165-1.577 1.067-3.325 1.33-5.162a16 16 0 0 0-.156-5.438c-.833-4.023-3.594-7.764-7.857-8.813-.952-.234-2.964.055-3.636-.5-.771-.635-1.308-2.8-2.006-3.669-1.99-2.476-5.095-4.07-8.37-3.514-2.41.409-1.026.907-2.833-.512-1.005-.788-1.756-1.993-2.732-2.847-1.467-1.283-3.15-2.38-4.892-3.282-4.557-2.358-9.754-4.072-14.844-4.908-9.285-1.524-19.195-.195-28.195 2.22-4.479 1.201-8.987 2.726-13.147 4.743-1.783.864-2.813 1.582-4.673 1.808-2.928.357-5.409.339-8.183 1.581-8.536 3.822-12.381 12.689-9.06 21.174a14.6 14.6 0 0 0 2.82 4.584c1.521 1.68 2.072 1.35.762 3.282a53 53 0 0 0-4.955 9.172c-3.529 8.402-4.12 17.864-3.89 26.824.081 3.137.216 6.313.71 9.42.214 1.344.274 3.872 1.282 4.87.512.506 1.241.788 1.969.587 1.71-.474 1.121-1.735 1.161-2.906.2-5.884-.07-11.089 1.33-16.902 1.033-4.294 2.755-8.195 4.988-12.035 2.838-4.884 5.903-9.173 9.807-13.355.917-.984 1.118-1.4 2.349-1.472.932-.054 2.295.584 3.2.805 1.999.487 4 .968 6.034 1.296 3.74.603 7.444.644 11.217.525 7.426-.232 14.885-.753 22.085-2.623 4.782-1.242 9.022-3.47 13.602-5.105.082-.029 1.23-.847 1.43-.814.282.047 1.978 1.826 2.264 2.05 2.226 1.746 4.667 2.479 7.07 3.83 2.964 1.667.094-.718 1.728 1.359.477.605.72 1.726 1.103 2.411a18.1 18.1 0 0 0 4.93 5.624c1.956 1.47 4.894 2.18 5.891 4.095.769 1.477 1.028 3.484 1.648 5.06 1.628 4.136 3.777 7.992 5.926 11.887 1.732 3.14 3.625 5.881 3.818 9.468.067 1.248-1.121 8.737 1.773 6.46.429-.338 1.353-4.156 1.543-4.804.772-2.633 1.046-5.381 1.395-8.086.694-5.38.923-10.498.47-15.916"></path></defs><mask id="ShortHairShortCurly-mask2" fill="#fff"><use href="#ShortHairShortCurly-path2"></use></mask><g id="Top/Short-Hair/Short-Curly" mask="url('#ShortHairShortCurly-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortCurly-path1" transform="translate(-1)"></use></g></g>',1),Vh=[Ah];function _h(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Vh])}const Nh={render:_h},Dh=t.createStaticVNode('<g id="Top"><defs><path id="Hat-path2" d="M0 0h264v280H0z"></path><path id="Hat-path1" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92a55.8 55.8 0 0 0-4.638-22.35C173.435 53 89.312 53.802 80.71 69.484A55.8 55.8 0 0 0 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path></defs><mask id="Hat-mask1" fill="#fff"><use href="#Hat-path2"></use></mask><g id="Top/Accesories/Hat" mask="url('#Hat-mask1')"><g transform="translate(-1)"><g id="Hat" transform="translate(1)"><mask id="Hat-mask2" fill="#fff"><use href="#Hat-path1"></use></mask><path fill="var(--avataaar-top-color)" d="M123.182 2h18.636c18.791 0 35.049 13.08 39.072 31.436L190 75H75l9.11-41.564C88.133 15.08 104.39 2 123.182 2" mask="url('#Hat-mask2')" style="fill-opacity:.6;"></path><ellipse id="Hipster" cx="132" cy="87.5" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="122" ry="57.5"></ellipse><ellipse id="Hipster" cx="132" cy="87.5" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="122" ry="57.5" style="fill-opacity:.1;"></ellipse><ellipse id="Very" cx="132" cy="82" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="62" ry="25"></ellipse><ellipse id="Very" cx="132" cy="82" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="62" ry="25" style="fill-opacity:.5;"></ellipse></g></g></g></g>',1),Th=[Dh];function Ph(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Th])}const Oh={render:Ph},Fh=t.createStaticVNode('<g id="Top"><defs><path id="LongHairNotTooLong-path1" d="M0 0h264v280H0z"></path><path id="LongHairNotTooLong-path2" d="M59 102.34V182a8 8 0 0 0 8 8h42v-9.389c-17.53-8.328-30.048-25.496-31.791-45.744C71.43 134.002 67 129.02 67 123v-13c0-3.49 1.49-6.633 3.87-8.826 11.539-2.619 24.1-7.536 36.472-14.679 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762c10.256 23.035 27.874 39.36 45.762 44.745.513 2.11.794 4.08.794 5.597v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V190h18c17.673 0 32-14.327 32-32v-54.125q0-.1-.028-.26-.216-18.391-.612-21.39C201.577 45.977 170.556 18 133 18c-36.085 0-66.137 25.828-73 60-5.523 0-10 5.596-10 12.5 0 4.55 1.695 8.643 4.853 10.773.905.61 2.47.925 4.147 1.067"></path></defs><mask id="LongHairNotTooLong-mask1" fill="#fff"><use href="#LongHairNotTooLong-path1"></use></mask><g id="Top/Long-Hair/Long-but-not-too-long" mask="url('#LongHairNotTooLong-mask1')"><g transform="translate(-1)"><use id="Behind" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairNotTooLong-path2"></use><g id="Top" opacity=".16" transform="translate(50 18)"><path id="Combined-Shape" fill="#FFF" d="M11.899 84.775c13.812-1.76 29.78-7.237 45.443-16.28 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762C114.382 68.471 136.296 86.194 157 88.151V74c0-40.87-33.13-74-74-74-36.085 0-66.137 25.828-72.679 60.006A8 8 0 0 0 10 60C4.477 60 0 65.596 0 72.5c0 6.482 3.947 11.811 9 12.438v.155q.474-.044.953-.093a8.2 8.2 0 0 0 1.946-.225"></path></g></g></g></g>',1),Lh=[Fh];function $h(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Lh])}const Rh={render:$h},Hh=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortFlat-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortFlat-path1" d="M180.15 39.92c-2.76-2.82-5.964-5.213-9.08-7.613-.688-.53-1.387-1.046-2.06-1.595-.152-.125-1.718-1.246-1.905-1.659-.451-.993-.19-.22-.128-1.404.079-1.498 3.134-5.73.854-6.7-1.003-.427-2.791.709-3.753 1.084a60 60 0 0 1-5.731 1.9c.932-1.857 2.708-5.574-.631-4.579-2.602.775-5.026 2.768-7.64 3.705.865-1.417 4.324-5.811 1.198-6.057-.972-.076-3.803 1.748-4.85 2.138-3.137 1.165-6.34 1.92-9.634 2.513-11.198 2.018-24.293 1.442-34.653 6.54-7.988 3.93-15.874 10.029-20.489 17.795-4.447 7.485-6.11 15.676-7.041 24.253-.683 6.295-.739 12.802-.42 19.119.105 2.07.338 11.61 3.345 8.721 1.498-1.44 1.487-7.253 1.864-9.22.751-3.916 1.474-7.848 2.726-11.638 2.206-6.68 4.809-13.793 10.305-18.393 3.527-2.952 6.004-6.941 9.379-9.919 1.516-1.337.36-1.198 2.797-1.022 1.638.117 3.282.162 4.923.205 3.796.099 7.598.074 11.395.087 7.647.028 15.258.136 22.898-.265 3.395-.177 6.799-.274 10.185-.588 1.891-.175 5.247-1.387 6.804-.461 1.425.847 2.905 3.615 3.928 4.748 2.418 2.679 5.3 4.724 8.126 6.92 5.895 4.58 8.87 10.332 10.66 17.488 1.784 7.13 1.284 13.745 3.491 20.762.389 1.233 1.416 3.36 2.682 1.454.235-.354.175-2.3.175-3.42 0-4.52 1.144-7.91 1.13-12.46-.056-13.832-.504-31.868-10.85-42.439"></path></defs><mask id="ShortHairShortFlat-mask2" fill="#fff"><use href="#ShortHairShortFlat-path2"></use></mask><g id="Top/Short-Hair/Short-Flat" mask="url('#ShortHairShortFlat-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortFlat-path1" transform="translate(-1)"></use></g></g>',1),zh=[Hh];function Ih(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...zh])}const Gh={render:Ih},jh=t.createStaticVNode('<g id="Top"><defs><path id="Hijab-path1" d="M0 0h264v280H0z"></path><path id="Hijab-path2" d="M66.042 77.075C71.68 45.205 99.513 21 133 21c37.555 0 68 30.445 68 68v30.751q1.313 14.705 2.456 20.603c1.377 7.104 5.694 4.761 5.694 14.866s-4.328 13.5-4.347 22.485c-.019 8.986 15.397 16.131 15.397 27.538s-7.074 65.233-77.622 65.233q-22.605 0-38.51-12.862Q105.091 267.349 106 280H59c.932-23.771-7.284-37.064-7.284-63.554S65.353 151.428 65 142q.03-.873.062-2.068A69 69 0 0 1 65 137V89c0-3.976.341-7.872.996-11.661L66 77zM132.5 53C102.4 53 78 77.4 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23c0-30.1-24.4-54.5-54.5-54.5z"></path></defs><mask id="Hijab-mask1" fill="#fff"><use href="#Hijab-path1"></use></mask><g id="Top/Accesories/Hijab" mask="url('#Hijab-mask1')"><g transform="translate(-1)"><mask id="Hijab-mask2" fill="#fff"><use href="#Hijab-path2"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Hijab-path2"></use><path id="Band" fill="#FFF" stroke="none" d="M72.074 104.96A61.4 61.4 0 0 1 71 93.5C71 59.534 98.758 32 133 32s62 27.534 62 61.5c0 3.916-.369 7.747-1.074 11.46C192.34 72.683 165.67 47 133 47s-59.341 25.683-60.926 57.96" mask="url('#Hijab-mask2')" opacity=".5"></path><path id="Shadows" fill="#000" stroke="none" d="M187.93 104.695A55 55 0 0 1 189 115.5v23c0 30.1-24.4 54.5-54.5 54.5h-3c-30.1 0-54.5-24.4-54.5-54.5v-23c0-3.7.369-7.312 1.07-10.805Q78 106.089 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23q0-1.41-.07-2.805m-73.763 102.3c6.484 4.986 21.496 6.713 38.238 3.761 16.74-2.951 30.257-9.71 34.645-16.612q.102.379.171.767c1.71 9.695-13.236 20.434-33.38 23.987-20.146 3.552-37.863-1.428-39.573-11.123a9 9 0 0 1-.101-.78m11.868 28.926c8.192 5.654 24.387 5.923 41.069-.149s28.915-16.687 31.556-26.284q.215.48.396.98c4.527 12.436-8.077 28.441-28.151 35.748s-40.017 3.147-44.544-9.29q-.181-.498-.326-1.005" mask="url('#Hijab-mask2')" opacity=".16"></path></g></g></g>',1),qh=[jh];function Wh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...qh])}const Yh={render:Wh},Uh=t.createStaticVNode('<g id="Top"><defs><path id="LongHairShavedSides-path2" d="M0 0h264v280H0z"></path><path id="LongHairShavedSides-path3" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="LongHairShavedSides-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><rect id="LongHairShavedSides-path4" width="112" height="150" x="0" y="0" rx="56"></rect></defs><mask id="LongHairShavedSides-mask2" fill="#fff"><use href="#LongHairShavedSides-path2"></use></mask><g id="Top/Long-Hair/Shaved-Sides" mask="url('#LongHairShavedSides-mask2')"><g transform="translate(-1)"><g id="Behind" fill="none" transform="translate(1)"><mask id="LongHairShavedSides-mask3" fill="#fff"><use href="#LongHairShavedSides-path3"></use></mask><path fill="var(--avataaar-hair-color)" d="M116.18 40H146c25.405 0 46 20.595 46 46v68.109c0 26.541 18.759 50.24 30.61 71.943s-7.355 42.19-26.84 50.717A38.5 38.5 0 0 1 180.332 280h-45.068c-56.352 0-65.046-63.69-67.566-133.496l2.52-62.36C71.213 59.48 91.497 40 116.179 40Z" class="CustomColor" mask="url('#LongHairShavedSides-mask3')"></path></g><g id="Top" fill="none" transform="translate(77 36)"><mask id="LongHairShavedSides-mask1" fill="#fff"><use href="#LongHairShavedSides-path4"></use></mask><path id="Shadow" fill="#000" d="M98.801 19.94C107.027 29.484 112 41.91 112 55.5v10-4c0-15.74-6.672-29.92-17.342-39.87q-46.107 16.57-77.717.378C6.505 31.937 0 45.958 0 61.5v4-10c0-13.607 4.987-26.05 13.233-35.6-3.834-3.04-4.974-11.713 6.234-15.023 11.845-3.499 9.84-18.079 27.99-20.803C65.61-18.65 63.972-11.375 81.03-12.35c17.057-.974 22.607-16.763 25.82-12.724 12.74 16.01 9.572 34.414-8.048 45.014Z" mask="url('#LongHairShavedSides-mask1')" opacity=".16"></path></g><path fill="#E0C863" d="M90.878 52.361q33.225 19.299 83.366 0c14.53-7.772 25.087-23.319 8.707-43.398-2.169-2.658-10.707 6.713-27.6 7.687s-13.271-3.3-31.248-.576-15.991 17.304-27.722 20.803c-11.73 3.498-9.803 12.987-5.503 15.484" class="CustomColor"></path></g></g></g>',1),Xh=[Uh];function Zh(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Xh])}const Qh={render:Zh},Kh=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortRound-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortRound-path1" d="M167.309 35.006c-20.188-11.7-40.18-9.784-55.272-5.976s-24.02 14.621-31.68 30.618c-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677 6.401-8.327 17.482-8.802 26.28-13.384-.764 1.405-3.707 3.68-2.688 5.263.705 1.094 3.37.762 4.643.727 3.349-.092 6.713-.674 10.02-1.147 5.214-.745 10.099-2.255 15.005-4.089 4.016-1.502 8.603-2.892 11.622-6.078 4.87 5.048 11.14 9.795 17.401 13.003 5.618 2.88 14.679 4.318 18.113 10.158 4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153"></path></defs><mask id="ShortHairShortRound-mask2" fill="#fff"><use href="#ShortHairShortRound-path2"></use></mask><g id="Top/Short-Hair/Short-Round" mask="url('#ShortHairShortRound-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortRound-path1" transform="translate(-1)"></use></g></g>',1),Jh=[Kh];function ep(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Jh])}const tp={render:ep},ap=t.createStaticVNode('<g id="Top"><defs><path id="LongHairBigHair-path1" d="M0 0h264v280H0z"></path><path id="LongHairBigHair-path2" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806m-39.501-87.481c-21.52-11.588-39.994-28.18-52.038-47.023C112.764 73.924 76.53 78.535 51.224 94.68A12 12 0 0 0 51 97v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C178.57 121.002 183 116.02 183 110V97q-.001-.853-.116-1.675"></path><path id="LongHairBigHair-path3" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806M93 186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-46H93z"></path></defs><mask id="LongHairBigHair-mask2" fill="#fff"><use href="#LongHairBigHair-path1"></use></mask><g id="Top/Long-Hair/Big-Hair" mask="url('#LongHairBigHair-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBigHair-path2" transform="translate(16 13)"></use><g id="Shadow" fill="none" transform="translate(16 13)"><mask id="LongHairBigHair-mask1" fill="#fff"><use href="#LongHairBigHair-path3"></use></mask><path id="Shadow-Mask" fill="#000" d="M30.099 115.057c-2.374 3.026-5.57 7.471-5.737 7.137 1.873-2.383 3.013-5.182 2.979-8.758.177-18.101-11.904-25.569 0-60.017.669-1.91 1.766-3.715 3.245-5.414-10.343 34.454.783 42.35.617 60.995.02 2.295-.38 4.285-1.104 6.057m172.32-67.052c1.48 1.7 2.577 3.504 3.245 5.414 10.158 29.394 2.852 39.144.6 52.617-.3.805-.069 1.754-.384 2.567-30.673-10.458-58.29-30.043-74.385-52.991-22.784 29.424-73.14 29.761-97.821 55.324.387-.544.754-1.051 1.084-1.49 22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.108-13.833 8.84-23.926.043-53.228" mask="url('#LongHairBigHair-mask1')" opacity=".16"></path></g><path id="Light" fill="#FFF" d="M50.758 122.446c22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.155-14.144 9.144-24.378-.573-55.233-11.637-36.46-41.714-45.232-84.8-45.984l-1-.016c-43.086.768-73.163 9.54-84.8 46-11.39 36.16.169 44 0 63 .032 3.753-1.059 6.691-2.85 9.193.183.402 4.153-5.756 6.405-8.747" opacity=".1"></path></g></g></g>',1),np=[ap];function rp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...np])}const op={render:rp},ip=t.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight-path2" d="M133.506 81.335A12 12 0 0 1 140 92v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V181h4c17.49 0 33.525 6.237 46 16.608V74c0-20.435-8.283-38.935-21.674-52.326S94.435 0 74 0C33.13 0 0 33.13 0 74v183.716c13.57-1.94 24-13.61 24-27.716v-45.577A72 72 0 0 1 46 181h4v-18.389a56.23 56.23 0 0 1-26-25.365v-61.98c9.147-2.975 18.778-7.249 28.342-12.77 15.403-8.894 28.09-19.555 36.724-30.099a87 87 0 0 0 7.044 15.488c8.768 15.186 21.114 26.349 33.89 32.032v.249q.6.1 1.18.26 1.162.484 2.326.91Z"></path></defs><mask id="LongHairStraight-mask1" fill="#fff"><use href="#LongHairStraight-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M192.506 99.335c4.869 1.773 9.757 2.737 14.494 2.813V92c0-20.435-8.283-38.935-21.674-52.326C198.717 53.065 207 71.565 207 92v123.608C194.525 205.237 178.49 199 161 199h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13a12 12 0 0 0-6.494-10.665m-2.326-.91a12 12 0 0 0-1.18-.26v-.248q.59.262 1.18.509ZM83 155.246a56.23 56.23 0 0 0 26 25.366V199h-4c-7.673 0-15.065 1.2-22 3.423z" opacity=".24"></path></g></g></g>',1),sp=[ip];function lp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...sp])}const cp={render:lp},dp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortWaved-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortWaved-path1" d="M183.68 38.949c5.406-4.95 6.707-14.987 3.638-21.5-3.769-7.995-11.417-8.997-18.746-5.48-6.908 3.315-13.057 4.419-20.622 2.813-7.258-1.541-14.144-4.26-21.647-4.706-12.325-.733-24.3 3.839-32.7 13.053-1.603 1.758-2.894 3.768-4.115 5.805-.976 1.63-2.077 3.38-2.493 5.258-.198.894.17 3.098-.275 3.83-.48.79-2.296 1.515-3.069 2.102-1.567 1.189-2.924 2.53-4.18 4.047-2.666 3.222-4.133 6.587-5.368 10.572-4.102 13.245-4.45 28.998.854 42.004.707 1.734 2.898 5.352 4.186 1.638.255-.734-.334-3.194-.333-3.935.005-2.72 1.506-20.729 8.047-30.817 2.13-3.284 11.973-15.58 13.984-15.68 1.065 1.693 11.88 12.51 39.942 11.242 12.662-.572 22.4-6.26 24.738-8.727 1.028 5.533 12.992 13.816 14.815 17.224 5.267 9.846 6.435 30.304 8.445 30.265s3.453-5.237 3.867-6.23c3.072-7.375 3.595-16.632 3.267-24.559-.427-10.202-4.638-21.226-12.235-28.22Z"></path></defs><mask id="ShortHairShortWaved-mask2" fill="#fff"><use href="#ShortHairShortWaved-path2"></use></mask><g id="Top/Short-Hair/Short-Waved" mask="url('#ShortHairShortWaved-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortWaved-path1" transform="translate(-1)"></use></g></g>',1),up=[dp];function fp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...up])}const mp={render:fp},hp=t.createStaticVNode('<g id="Top"><defs><path id="LongHairBob-path1" d="M0 0h264v280H0z"></path><path id="LongHairBob-path2" d="M38 79.36V111c0 22.34 13.08 41.623 32 50.611v13.135c-19.637 2.688-35.359 7.418-46.615 6.254C9.162 179.53 1.496 150.796 1 126 .383 95.164 29.319 30.795 40 18 47.923 8.509 69.695.55 94 1s46.862 5.812 55 16c12.324 15.428 37.869 74.079 38 109 .094 24.8-9.537 49.66-23 51-11.08 1.103-26.524-1.489-46-3.003v-12.386c18.92-8.988 32-28.272 32-50.611V82.988q-14.282-7.286-25.846-17.647 4.812 7.944 10.46 13.532-40.526-11.37-64.473-38.528Q58.169 65.042 38 79.36"></path></defs><mask id="LongHairBob-mask1" fill="#fff"><use href="#LongHairBob-path1"></use></mask><g id="Top/Long-Hair/Bob" mask="url('#LongHairBob-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBob-path2" transform="translate(39 19)"></use></g></g></g>',1),pp=[hp];function gp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...pp])}const yp={render:gp},kp=t.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight2-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight2-path2" d="M21 157.54V69.047c0-3.532.398-6.971 1.152-10.275C25.205 38.731 36.775 22.811 50 13c19.905-14.76 53.442-19.018 65.047-1.478C123.698 7.681 136.52 11.182 146 20c9.565 9.415 17.2 30.197 12.657 47.204q.158 1.898.158 3.837v21.851A12.01 12.01 0 0 0 149 83.166V83c-6.036-21.536-23.77-31.42-34.57-41.223C97.535 60.673 44.823 60.74 27 98v10c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V166c2.93 43.855-6.642 98.797-69 82 13.606-7.962 20.808-58.944 21-90.46m96 8.071c17.53-8.328 30.048-25.496 31.791-45.744a12.01 12.01 0 0 0 10.024-9.76v1.363a100 100 0 0 0 10.963 45.524l26.949 52.707c6.963 13.619 4.919 29.473-3.936 40.768C189.966 213.289 158.903 184 121 184h-4z"></path><path id="LongHairStraight2-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraight2-mask1" fill="#fff"><use href="#LongHairStraight2-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight2-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight2-path2" transform="translate(40 15)"></use><path id="Shadow" fill="#000" d="M67 113c17.823-32.335 70.535-32.393 87.43-48.792 10.778 8.49 28.462 15.059 34.533 33.66-6.071-21.444-23.755-31.308-34.533-41.09C137.535 75.672 84.823 75.74 67 113" opacity=".16"></path></g></g></g>',1),bp=[kp];function xp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...bp])}const wp={render:xp},vp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairSides-path1" d="M0 0h264v280H0z"></path><path id="ShortHairSides-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairSides-path3" d="M6 28c-5.076.071-6-1.006-6-5C0 17.344 4.04 6.778 8 2c1.176-2.17 3.619-3.432 3 1-2.66 8.477.417 24.914-5 25m114 0c-5.417-.086-2.34-16.523-5-25-.619-4.432 1.824-3.17 3-1 3.96 4.778 8 15.344 8 21 0 3.994-.924 5.071-6 5"></path></defs><mask id="ShortHairSides-mask2" fill="#fff"><use href="#ShortHairSides-path1"></use></mask><g id="Top/Short-Hair/Sides" mask="url('#ShortHairSides-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairSides-path3" transform="translate(70 74)"></use></g></g></g>',1),Ep=[vp];function Cp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ep])}const Sp={render:Cp},Mp=t.createStaticVNode('<g id="Top"><defs><path id="LongHairBun-path2" d="M0 0h264v280H0z"></path><path id="LongHairBun-path1" d="M114.94 28.337q-1.48.334-2.903.693c-15.092 3.808-24.02 14.621-31.68 30.618-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677C91.188 60.521 95.765 43.206 133 41.671s48.749 25.79 52.183 31.63c4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153-5.443-3.154-10.87-5.319-16.192-6.723C154.177 25.31 156 21.568 156 17.5 156 7.835 145.703 0 133 0s-23 7.835-23 17.5c0 4.092 1.846 7.857 4.94 10.837"></path></defs><mask id="LongHairBun-mask2" fill="#fff"><use href="#LongHairBun-path2"></use></mask><g id="Top/Long-Hair/Bun" mask="url('#LongHairBun-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBun-path1" transform="translate(-1)"></use></g></g>',1),Bp=[Mp];function Ap(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Bp])}const Vp={render:Ap},_p=t.createStaticVNode('<g id="Top"><defs><path id="LongHairStraightStrand-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraightStrand-path2" d="M8.461 88.694C8.161 89.744 8 90.854 8 92v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V181h-4c-15.619 0-30.076 4.973-41.875 13.423A73.9 73.9 0 0 1 0 170V74C0 33.13 33.13 0 74 0s74 33.13 74 74v96a73.9 73.9 0 0 1-4.125 24.423C132.076 185.973 117.619 181 102 181h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C135.57 116.002 140 111.02 140 105V92c0-1.69-.349-3.297-.979-4.755-12.956-2.188-27.542-7.476-41.872-15.75-12.132-7.004-22.503-15.237-30.48-23.743q5.14 11.862 12.45 20.783-19.013-8.285-25.892-26.639a100 100 0 0 1-1.18 2.762c-9.84 22.1-26.456 38.024-43.586 44.036"></path><path id="LongHairStraightStrand-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraightStrand-mask1" fill="#fff"><use href="#LongHairStraightStrand-path1"></use></mask><g id="Top/Long-Hair/Straight-+-Strand" mask="url('#LongHairStraightStrand-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraightStrand-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M59 102.419v6.419c19.945-3.088 40.59-20.448 52.046-46.18q.615-1.38 1.18-2.762 6.008 16.029 21.27 24.378a78 78 0 0 0 4.622 6.261q-19.012-8.285-25.891-26.639a101 101 0 0 1-1.18 2.762C99.59 92.39 78.944 109.75 59 112.838zm148-1.279v9.14c-14.953-.867-33.099-6.535-50.851-16.785-10.273-5.93-19.283-12.743-26.646-19.855a99 99 0 0 1-3.833-7.888c7.976 8.506 18.347 16.74 30.479 23.743 17.752 10.25 35.898 15.918 50.851 16.786z" opacity=".16"></path></g></g></g>',1),Np=[_p];function Dp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Np])}const Tp={render:Dp},Pp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesar-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesar-path2" d="M1 64c.347 1.488 1.673 1.223 2 0-.463-1.554 3.296-28.752 13-36 3.618-2.517 23.008-4.768 42.313-4.754C77.409 23.259 96.42 25.51 100 28c9.704 7.248 13.463 34.446 13 36 .327 1.223 1.653 1.488 2 0 .72-10.298 0-63.726-57-63S.28 53.702 1 64"></path></defs><mask id="ShortHairTheCaesar-mask1" fill="#fff"><use href="#ShortHairTheCaesar-path1"></use></mask><g id="Top/Short-Hair/The-Caesar" mask="url('#ShortHairTheCaesar-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesar-path2" transform="translate(75 34)"></use></g></g></g>',1),Op=[Pp];function Fp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Op])}const Lp={render:Fp},$p=t.createStaticVNode('<g id="Top"><defs><path id="LongHairCurly-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurly-path2" d="M48.725 89.219A12 12 0 0 0 42 100v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V189h-4q-2.38 0-4.721.152a72 72 0 0 1-13.689-9.103A48 48 0 0 1 48 182c-26.51 0-48-21.49-48-48 0-14.41 6.349-27.335 16.402-36.134A43.8 43.8 0 0 1 8 72c0-21.84 15.911-39.962 36.774-43.41C51.019 11.89 67.12 0 86 0a43.8 43.8 0 0 1 22 5.886A43.8 43.8 0 0 1 130 0c18.88 0 34.981 11.89 41.226 28.59C192.09 32.039 208 50.16 208 72a43.8 43.8 0 0 1-8.402 25.866C209.65 106.665 216 119.591 216 134c0 26.51-21.49 48-48 48-4.72 0-9.281-.681-13.59-1.951a72 72 0 0 1-13.689 9.103A73 73 0 0 0 136 189h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C169.57 124.002 174 119.02 174 113v-13a11.99 11.99 0 0 0-5.476-10.073 24 24 0 0 1-3.235-1.47q-.63-.18-1.289-.291v-.453c-8.68-5.303-17.235-16.538-22.55-30.914C131.312 58.835 119.547 60 107 60c-11.961 0-23.212-1.059-33.02-2.921C68.756 71.064 60.465 82.043 52 87.423v.743a12 12 0 0 0-3.275 1.053"></path></defs><mask id="LongHairCurly-mask1" fill="#fff"><use href="#LongHairCurly-path1"></use></mask><g id="Top/Long-Hair/Curly" mask="url('#LongHairCurly-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M105.985 27.764C114.013 26.627 122.796 26 132 26c10.358 0 20.183.794 29 2.216C183.451 38.75 199 61.56 199 88v17.044c-11.538-.371-25.169-14.28-32.55-34.245C156.312 72.835 144.547 74 132 74c-11.961 0-23.212-1.059-33.02-2.921-7.304 19.548-20.597 33.223-31.98 33.943V88c0-26.825 16.004-49.913 38.985-60.236" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurly-path2" transform="translate(25 10)"></use></g></g></g>',1),Rp=[$p];function Hp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Rp])}const zp={render:Hp};function Ip(e,a){return t.openBlock(),t.createElementBlock("svg")}const Gp={render:Ip},jp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesarSidePart-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesarSidePart-path2" d="M82.018 24.378c-7.032-.693-15.36-1.127-23.705-1.132C39.008 23.232 19.618 25.483 16 28 6.296 35.248 2.537 62.446 3 64c-.327 1.223-1.653 1.488-2 0C.28 53.702 1 1.726 58 1s57.72 52.702 57 63c-.347 1.488-1.673 1.223-2 0 .463-1.554-3.296-28.752-13-36-1.76-1.224-7.247-2.39-14.641-3.261L89 16z"></path></defs><mask id="ShortHairTheCaesarSidePart-mask1" fill="#fff"><use href="#ShortHairTheCaesarSidePart-path1"></use></mask><g id="Top/Short-Hair/The-Caesar-+-Side-Part" mask="url('#ShortHairTheCaesarSidePart-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesarSidePart-path2" transform="translate(75 34)"></use></g></g></g>',1),qp=[jp];function Wp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...qp])}const Yp={render:Wp},Up=t.createStaticVNode('<g id="Top"><defs><path id="LongHairCurvy-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurvy-path2" d="M162.831 71.618A57 57 0 0 1 163 76v38c0 22.34-13.08 41.623-32 50.611V183h4c1.524 0 2.038.047 3.539.14-14.913 27.356-18.715 50.434-1.067 64.403 1.698 1.203 2.924 1.786 3.135 1.885 2.373 1.118 4.837 2.34 7.467 2.955 4.623 1.08 9.933-.373 14.557-.953 2.112-.266 4.217-.43 6.346-.436 2.565-.009 5.211.084 7.142 1.697 1.884 1.574 1.644 7.198-3.875 9.833 4.1 1.855 9.012-2.453 10.688-5.177 1.466-2.385 2.594-4.968 3.214-7.605.772-3.283.822-6.725.218-10.014-1.258-6.848-4.176-13.432-6.163-20.122-.732-2.466-1.686-5.165-2.102-7.69-.113-.684-.247-3.215-.141-3.744.078-.393.059-.797 1.415-1.176 3.916-1.096 8.007-2.933 10.852-5.52 3.365-3.058 5.119-7.03 6.533-10.979 2.24-6.252 3.523-12.947 4.113-19.44.122-1.349.191-2.695.215-4.047.015-.817-.085-1.747.008-2.565.153-1.34-.054-.987 1.248-1.874 4.257-2.9 7.58-7.122 9.71-11.37 3.346-6.672 3.782-13.708 1.066-20.467-2.253-5.607-5.827-11.235-11.392-14.846-2.137-1.386-4.392-2.643-6.61-3.93-1.21-.7-4.048-1.615-4.906-2.517-.6-.63.355-3.792.476-4.858.528-4.648-.08-9.157-1.165-13.696-2.394-10.008-12.033-26.149-15.903-35.662-3.325-8.172-8.136-55.3-65.031-55.026C51.69.473 41.419 50.438 33.716 59.774c-8.365 10.138-16.809 29.402-11.113 47.262-5.504 6.922-18.058 17.008-21.218 27.09-1.982 6.325-1.897 13.37.644 19.507 1.437 3.471 3.496 6.618 5.911 9.64 2.117 2.646 4.468 5.15 6.518 7.837 1.237 1.622 1.568 2.02 1.102 4.018-.92 3.94-2.819 7.725-4.466 11.475-2.552 5.81-4.697 11.22-5.014 17.413-.302 5.896 1.324 22.673 18.261 32.56a63 63 0 0 0 6.042 3.11c-1.09-3.396.146-15.524 2.343-20.032.56 1.55 1.511 3.043 2.536 4.398 1.6 2.115 5.374 7.409 10.147 7.655-1.937-2.984-4.02-4.998-4.624-8.598 3.977 1.96 9.634 3.747 14.262 3.582 3.404-.12 8.424-1.82 10.953-3.943-8.372 1.327-16.321-1.433-19.518-7.329-.667-1.23-1.174-2.52-1.468-3.86-.417-1.9-1.076-4.944-.191-6.697.215-.426.566-.86.984-1.29l-.197-.235c5.694-4.787 12.84-12.404 16.665-17.97q.106-.183.21-.367h.04l.085-.126A72.2 72.2 0 0 1 79 183h4v-18.389C64.08 155.623 51 136.339 51 114V76c0-2.463.159-4.888.467-7.267 3.942-1.263 7.898-2.455 11.932-3.528 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 2.503 2.279 7.226 4.024 10.574 5.905"></path></defs><mask id="LongHairCurvy-mask1" fill="#fff"><use href="#LongHairCurvy-path1"></use></mask><g id="Top/Long-Hair/Curvy" mask="url('#LongHairCurvy-mask1')"><g transform="translate(-1)"><path id="Top-Shadow" fill="#000" d="M100.9 42.465c-9.798 6.007-18.514 13.862-24.313 22.895-2.762 4.303-5.034 8.84-7.15 13.398a136 136 0 0 0-2.961 6.931c-.587 1.47-1.487 3.056-.64 4.599.517-.302.713-.194.388.347 2.692.734 6.434-1.335 8.767-2.099 4.763-1.56 9.53-3.033 14.408-4.331 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 3.092 2.814 9.569 4.816 12.66 7.263 1.108.876 2.143 1.792 3.183 2.726 1.156 1.037.985 1.188 1.36 2.378.113.356 1.256 2.199 1.743 2.35 1.733.536-10.154-30.486-13.417-34.453-3.368-4.094-25.211-31.654-54.174-30.752" opacity=".16"></path><g id="Hair" fill="none" transform="translate(26 16)"><mask id="LongHairCurvy-mask2" fill="#fff"><use href="#LongHairCurvy-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurvy-path2"></use><path id="Shadow" fill="#000" d="M62.68 184.462c7.075-9.707-.531-36.675-6.552-46.661q25.256-11.495 99.746 4.247-7.192 13.279-5.868 23.71-6.806 8.363-11.246 17.383l-34.871 8.606q-33.054 3.98-41.21-7.285Z" mask="url('#LongHairCurvy-mask2')" opacity=".24"></path></g><path id="Lights" fill="#FFF" d="M79.04 170.094c-.059-.201-.205-.427-.405-.665q.205.331.405.665m-22.63-49.719a88.6 88.6 0 0 0 4.456 18.002c2.062 5.721 4.42 11.46 7.813 16.69 3.161 4.876 6.924 9.425 9.956 14.362-.797-.948-2.472-2.1-3.114-2.778a50 50 0 0 1-2.984-3.458c-1.923-2.443-3.637-5-5.294-7.583-3.252-5.073-5.69-10.576-7.803-16.08-4.15-10.807-8.313-23.913-4.666-35.33-.282.735.459 2.488.575 3.297.204 1.414.386 2.837.478 4.26.185 2.883.184 5.749.583 8.618m12.445 44.666c-1.358-1.731-3.881-3.097-5.442-4.762-1.415-1.51-2.511-3.2-3.506-4.94-2.255-3.94-3.737-7.964-4.217-12.37.11.523.918 1.427 1.173 1.856a85 85 0 0 1 1.788 3.124c1.097 2.04 2.013 4.15 3.122 6.187 2.038 3.74 4.63 7.36 7.082 10.905m4.677 18.458c1.115 1.962 2.04 3.966 2.625 6.102a42 42 0 0 1 .77 3.413c.07.369.082 1.696.258 2.27-2.215-4.291-3.905-8.835-6.543-12.942-2.604-4.054-5.947-7.781-9.446-11.281-3.695-3.695-7.41-7.182-9.392-11.847-1.725-4.06-2.391-8.218-1.99-12.556.002 1.911 1.757 4.622 2.363 6.469.83 2.527 1.489 5.105 2.737 7.507 2.126 4.089 5.959 7.243 9.165 10.688 3.553 3.816 6.946 7.762 9.453 12.177m-14.303-9.32a22 22 0 0 1 2.806 3.275c.898 1.285 1.556 2.636 2.145 4.05.507 1.217.73 3.482 1.527 4.498-2.578-3.146-5.233-6.117-7.011-9.69-.607-1.222-1.548-3.023-2.243-4.495.231.593 2.253 1.86 2.776 2.362m-10.326 6.349c2.838 4.25 6.548 8.081 8.974 12.528 2.83 5.187 4.075 10.807 4.326 16.54.119 2.711.112 5.465-.253 8.168-.196 1.448-.51 2.886-.869 4.312-.136.54-.84 1.926-.977 2.77-.29-10.54 1.454-21.082-4.027-30.903-2.596-4.65-6.586-8.616-9.679-13.018-2.782-3.959-5.498-7.841-7.713-12.074 1.356 1.716 3.8 3.065 5.316 4.769 1.899 2.134 3.348 4.58 4.902 6.908m11.2 44.319c-.032.204-.033.377.014.5l-.013-.5Zm-9.543-22.353c.001.496.816 1.518 1.04 2.035.52 1.209.946 2.478 1.157 3.76.418 2.529-.13 5.14-1.067 7.561-1.9 4.907-4.874 9.253-8.613 13.3 1.335-1.748 1.867-4.589 2.806-6.538.965-2 2-3.97 2.85-6.011 1.92-4.605 1.75-9.311 1.827-14.107M41.917 221.2c.401-.548.193-3.183.405-3.872.392-1.273 1.07-2.502 1.849-3.635-.416.699.198 2.466-.005 3.373-.332 1.489-1.17 2.932-2.249 4.134m57.69-178.453a.9.9 0 0 0-.239.297zm-14.76 21.584c1.42-1.246 2.177-4.19 3.156-5.78 1.125-1.825 2.418-3.579 3.645-5.356 2.432-3.524 4.726-6.984 7.72-10.19-.622.934-1.173 3.768-1.514 4.513a34.6 34.6 0 0 1-3.221 5.605c-2.86 4.044-5.93 7.803-9.786 11.208m-.535-10.21c.75-1.327 1.894-2.448 3.18-3.414-.573.503-.831 2.575-1.225 3.275-.795 1.412-1.953 2.63-3.196 3.772.664-.582.772-2.803 1.24-3.633Zm119.194 98.006-.041.31c-.002-1.525-.68-3.2-.76-4.769-.113-2.19.202-4.315 1.082-6.392 1.74-4.101 5.003-7.207 9.164-9.638-1.145.674-2.267 3.213-3.001 4.268-1.103 1.586-2.282 3.187-3.214 4.85-1.943 3.469-2.506 7.618-3.23 11.371m-1.508-21.646a23 23 0 0 1-.989 3.626c-.474 1.279-1.093 2.523-1.783 3.728-.43.75-1.98 2.327-1.978 3.157-.083-4.898 1.728-9.335 5.172-13.257-.378.657-.283 2.03-.422 2.746m-.801 35.238c3.656-.517 7.105 1.261 9.421 3.551 1.238 1.224 2.338 2.63 3.065 4.133.547 1.13.546 2.983 1.28 3.92-1.797-2.419-4.076-4.373-6.324-6.464-1.564-1.455-4.688-5.181-7.442-5.14m-.778 10.377c-.192-.065-1.934-.558-2.337-.32.597-.267 1.33-.592 1.987-.679 4.284-.569 9.492 3.141 10.067 6.721-.478-1.226-3.025-2.24-4.176-2.85-1.823-.967-3.564-2.137-5.541-2.872m1.809 7.811c.742.182 2.32 1.176 3.047 1.165-2.929.07-5.572-.255-8.391-.914.152.041 1.759-.456 1.811-.463 1.215-.172 2.357-.076 3.533.212m-11.345 13.857c4.288-.242 9.336.384 13.431 1.417a22.3 22.3 0 0 1 5.692 2.295c1.414.814 3.93 1.932 4.876 3.137-3.74-6.452-11.85-9.803-20.16-8.14-1.107.222-2.808 1.276-3.84 1.291Zm-.96 12.433c2.688-.965 5.661-1.894 8.583-2.029 2.771-.127 5.845.29 8.41 1.173-.883-.24-2.993.332-3.92.437-1.297.147-2.596.299-3.896.418a52 52 0 0 1-4.801.222c-1.14-.002-3.32-.54-4.376-.221M179.46 227.41c.253 3.972 2.552 7.434 5.931 10.08 3.583 2.805 8.379 4.082 10.98 7.829 1.267 1.825 1.943 3.95 1.834 6.098-.056 1.106-.334 2.218-.635 3.294-.197.708-.902 1.868-.901 2.559.031-3.887.084-8.412-2.636-11.673-2.731-3.274-7.493-4.427-10.829-7.115-3.278-2.642-5.765-6.094-6.325-9.985-.452-3.144-.23-8.626 3.03-10.76-.662.39-.53 2.374-.547 2.931a74 74 0 0 0 .098 6.742m-2.453 15.262c.396.52 2.57 1.151 3.208 1.51 1.456.817 2.865 1.746 4.02 2.877 2.317 2.266 3.81 5.445 3.918 8.494 0-.72-1.646-2.457-2.109-3.073-.768-1.022-1.635-1.969-2.518-2.917-2.154-2.31-4.39-4.564-6.52-6.891Zm52.162-88.882c1.204 1.05 2.01 2.357 2.675 3.709 1.53 3.12 1.815 6.717.589 10 .203-.704-.401-2.184-.571-2.898-.373-1.563-.955-3.04-1.563-4.542-1.18-2.916-2.134-5.648-4.184-8.202.53.668 2.328 1.3 3.054 1.933M171.51 41.983c0 .332.917 1.293 1.123 1.654.517.902.924 1.849 1.064 2.855.158 1.142-.035 2.259-.381 3.369-.206.66-1.184 1.934-1.184 2.528-.16-3.498-.933-6.86-.622-10.406m7.637 6.822c.165 1.243-.24 2.644-.964 3.742.132-.31-.454-2.383-.473-2.762-.059-1.173.07-2.38.146-3.552.001.64 1.183 1.763 1.291 2.572m-60.77 1.568a35 35 0 0 1-4.15 4.243c-1.023.89-2.984 1.89-3.764 2.91 3.501-5.711 7.546-10.638 12.302-15.63-.716.92-.903 2.916-1.428 3.993-.774 1.587-1.81 3.076-2.96 4.484m5.898 2.479c.57-.336 1.104-1.993 1.538-2.55a17 17 0 0 1 2.578-2.63c-.205.22-.602 2.044-.825 2.402-.723 1.16-2 2.107-3.29 2.778Z" opacity=".6"></path></g></g></g>',1),Xp=[Up];function Zp(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Xp])}const Qp={render:Zp},Kp=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads01-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads01-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads01-path3" d="M185.832 73.929c1.757.988 3.148 10.899 3.216 14.689.042 2.338.08 11.256-2.394 10.485-.753-.235-1.902-4.956-2.066-7.719s-1.733-12.164-4.141-16.49c-.55-.988-2.126-2.723-1.445-3.56.844-1.036 1.664-.434 2.695-.02 1.115.45 3.937 2.504 4.135 2.615m.805-2.972c-.746.962-5.841-1.74-7.966-2.913-17.845-9.86-21.31-12.995-49.425-12.586-28.116.409-47.379 13.582-48.462 14.93-.754.937-1.716 3.44-2.508 10.413-.791 6.972.22 19.477-2.646 19.462-2.438-.013-2.97-23.786-1.916-33.217.161-1.448.784-4.038.333-5.34-.394-1.138-2.322-1.135-2.014-3.03.35-2.159 2.525-1.087 3.473-2.119 1.795-1.954-.974-2.417-1.433-4.126-.682-2.542 1.29-3.197 3.067-4 1.966-.887 1.71-.108 3.306-1.846-2.131-1.563-2.902-3.691.016-4.833 1.24-.485 4.465.157 5.436-.572.253-.19.353-1.28.51-1.502 1.55-2.219 1.168-3.825 1.01-6.316-.129-2.038-.112-3.909 2.329-4.112 1.628-.136 2.952 1.194 4.411 1.586 1.619.435 1.01.752 2.279-.121 2.226-1.533.711-4.52 2.476-6.303 2.423-2.446 4.01 1.14 5.956 1.41 4.222.588 2.867-3.7 5.367-5.272 2.988-1.876 3.277 2.251 5.143 2.398 1.617.127 4.529-2.993 5.938-3.575 4.183-1.726 6.255 3.13 10.237 2.511 2.89-.45 3.67-.816 6.277.828 2.53 1.595 3.132.454 5.998.432 2.025-.016 3.265 1.676 4.959 1.853.844.088 1.653-.792 2.56-.737 3.237.197 3.442 4.383 6.014 5.536 2.35 1.053 5.112-.427 7.445-.7 5.69-.668 1.793 4.647 1.954 7.819 2.233.52 4.5-1.564 6.724-1.18 3.502.604 2.18 4.233 1.368 6.68 2.427-.044 8.76-2.737 10.332.707.81 1.776-1.078 4.147-1.047 5.952.043 2.542 1.91 4.645 2.571 7.05.892 3.247 2.163 11.95-.072 14.833"></path></defs><mask id="ShortHairDreads01-mask2" fill="#fff"><use href="#ShortHairDreads01-path1"></use></mask><g id="Top/Short-Hair/Dreads-01" mask="url('#ShortHairDreads01-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads01-path3" transform="translate(1)"></use></g></g></g>',1),Jp=[Kp];function eg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Jp])}const tg={render:eg},ag=t.createStaticVNode('<g id="Top"><defs><path id="Turban-path1" d="M0 0h264v280H0z"></path><path id="Turban-path2" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="Turban-path3" d="M83.972 55.817C107.404 69.414 145.115 82.111 139 138q29.066-8.46 29-46.676C167.918 44.148 115.85 0 86 0q-1.012 0-2.008.088A23 23 0 0 0 82 0C52.074 0 .08 44.148 0 91.324Q-.067 130.498 29 138c-6.138-55.889 31.51-68.586 54.972-82.183"></path></defs><mask id="Turban-mask1" fill="#fff"><use href="#Turban-path1"></use></mask><g id="Top/Accesories/Turban" mask="url('#Turban-mask1')"><g id="Turban"><path id="Band" fill="#EDECE3" d="M74.53 97.5c-1-2.41-1.53-4.92-1.53-7.5 0-18.225 26.415-33 59-33s59 14.775 59 33c0 2.58-.53 5.09-1.53 7.5C183.398 82.888 159.972 72 132 72S80.602 82.888 74.53 97.5"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Turban-path3" transform="translate(48 3)"></use><path id="Shadow" fill="#000" d="M48.011 96.012q.555 37.65 28.99 44.988-29.068-7.066-29-43.97 0-.51.01-1.018m104.635-65.544c.744 5.727-.52 12.421-4.646 19.668-11.153 21.43-71.439 21.868-71.666 79.544-.229-61.919 60.471-62.3 71.666-85.136 2.67-4.977 4.141-9.709 4.646-14.076" opacity=".16"></path></g></g></g>',1),ng=[ag];function rg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ng])}const og={render:rg},ig=t.createStaticVNode('<g id="Top"><defs><path id="LongHairDreads-path1" d="M0 0h264v280H0z"></path><path id="LongHairDreads-path2" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99c-2.764-8.607-2.6-17.934-3.21-26.795-.805-11.68-.112-23.078 2.536-34.578 2.39-10.376 5.824-15.941 13.626-24.255 4.36-4.646 10.905-4.915 17.42-6.564 6.593-1.67 12.611-4.21 16.735-8.99 9.083 10.41 33.354 6.664 42.236 18.01 10.802 13.798 10.923 22.7 12.193 38.643.953 11.951-.528 33.564-.943 46.538A56.24 56.24 0 0 1 141 166.611V185h4c6.636 0 13.062.898 19.163 2.578-2.05 3.174-4.494 6.18-7.051 8.973-3.831 4.188-7.681 8.52-12 12.367-4.941 4.401-9.668 7.597-12.668 13.082-1.358 2.483-3.737 5.094-1.22 7.817 2.3 2.487 5.925 1.975 8.386.175 3.637-2.66 6.338-6.858 9.69-9.915-3.238 5.815-7.742 14.484-5.43 21.005.787 2.217 1.586 2.173 2.802 3.65q2.88.066 2.276 2.606l.54 1.451c1.456 2.594 4.243 4.41 7.78 3.188 11.56-3.994-1.775-21.961 10.953-27.302 2.278 2.83-1.086 10.779-1.177 14.256-.111 4.287.122 14.013 6.642 15.179 8.496 1.52 5.22-6.597 5.555-10.05.39-4.016 2.86-9.312 4.87-12.869-1.222 3.78-3.508 12.154 2.817 13.87 7.317 1.986 6.481-6.586 7.592-10.15.229 5.275 7.045 17.749 13.205 7.896 3.173-5.076 1.009-13.441.66-18.854 4.414 4.56 7.94-1.35 7.84-4.63 1.677 4.752 7.982 18.002 13.57 7.485 3.398-6.395-.226-14.985-2.483-21.16 5.944.52 4.75-5.236 3.864-8.095-1.307-4.222-.61-4.841-.34-9.206 8.25 4.805 7.997-8.234 7.542-11.432-1.146-8.051-7.409-15.261-12.243-22.052-3.466-4.871-9.935-13.352-8.038-19.226 1.957 2.468 6.507 2.442 8.316-.142 1.532-2.188-.091-5.796-.83-7.982-2.021-5.98-6.06-9.844-9.711-14.981-7.108-10.001-6.086-23.133-6.743-34.313-.82-13.949-3.814-27.68-16.48-37.827-6.787-5.437-15.058-9.914-21.37-15.682-1.722-1.573-2.45-3.521-4.066-5.038-1.813-1.701-2.66-1.298-4.158-3.72-2.668-4.315-5.802-8.355-12.25-8.558-4.22-.132-9.556 3.43-13.359 2.909-3.122-.427-5.094-4.879-7.656-6.373-3.966-2.312-6.734-1.414-10.972-.075-6.31 1.994-10.33 2.689-16.755.306C97.69 2.539 93.565-.846 88.402.357c-4.05.945-5.858 4.213-8.244 6.718-2.46 2.586-1.271 1.73-4.87 2.305-3.68.588-6.586 1.122-9.378 3.532-4.512 3.895-1.386 9.955-4.953 13.389-1.925 1.854-5.935 2.737-8.165 4.654-2.434 2.092-4.424 4.635-6.248 7.11-3.551 4.823-5.976 10.079-8.58 15.281-4.843 9.681-9.161 19.671-11.002 30.072-.945 5.347-2.538 10.577-3.512 15.912-.75 4.115-.43 8.622-1.896 12.617-1.74 4.74-5.899 9.096-8.152 13.757-2.988 6.183-4.994 12.115-5.63 18.771-.624 6.544 1.113 12.311 1.879 18.727.443 3.717-.324 4.139-2.88 7.647-1.967 2.7-3.96 5.373-5.225 8.378-2.361 5.615-2.23 11.077 1.879 16.013 2.82 3.388 12.299 6.933 11.523-.618-.36-3.508-4.772-5.095-3.93-9.12.584-2.787 3.425-4.715 6.874-5.577 2.436-.608 3.636-.582 4.735 2.09.996 2.42-.325 7.706-.63 10.25-.123 1.023-.305 1.92-.428 2.867-.868 6.674-1.028 12.815-4.682 18.944-2.244 3.766-6.636 9.073-1.628 12.703 3.959 2.87 10.79 1.121 13.877-1.882 3.256 4.027 2.532 8.423 1.314 12.869-.756 2.76-2.824 6.802.431 9.033 4.408 3.021 11.603-1.738 14.908-4.14 1.91 4.268 3.703 19.827 11.235 10.552 2.198-2.705 5.858-5.344 6.555-8.534 1.156-5.29.326-10.858.804-16.202 2.404 6.997 4.038 9.787 5.51 16.97.884 4.321 1.231 18.82 10.174 16.91 6.88-1.47 2.48-10.524 1.601-14.215-1.683-7.07-2.496-10.063-4.122-17.14 2.533 4.626 4.746 9.371 7.18 14.034 2.39 4.58 13.078 14.027 16.205 10.05 3.127-3.978-4.496-9.645-6.23-14.46-3.609-10.024-7.98-20.006-9.017-30.508-.499-5.049.436-9.712.846-14.703.28-3.41-.141-6.902-.812-10.34"></path></defs><mask id="LongHairDreads-mask2" fill="#fff"><use href="#LongHairDreads-path1"></use></mask><g id="Top/Long-Hair/Dreads" mask="url('#LongHairDreads-mask2')"><g transform="translate(-1)"><g id="Hair" transform="translate(16 14)"><mask id="LongHairDreads-mask1" fill="#fff"><use href="#LongHairDreads-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairDreads-path2"></use><path id="Shadows" fill="#000" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99 37 37 0 0 0 1.95 4.888c5.756 11.833 13.257 22.412 16.327 35.08.435 1.798.869 3.633 1.23 5.484m78.445 2.505A72 72 0 0 0 145 185h-4v-18.389a56.24 56.24 0 0 0 25.502-24.404c-.077 2.994-.01 5.972.373 8.849 1.07 8.044 4.001 15.31 2.64 23.58-.744 4.532-2.725 8.875-5.352 12.942" mask="url('#LongHairDreads-mask1')" opacity=".24"></path><path id="Highlights" fill="#FFF" d="M49.36 108.248c-.124-2.422-1.98-10.537.329-11.939 2.53-1.537 2.002 7.707 2.028 8.654.044 1.537 1.211 13.135-.927 13.084-2.132-.051-1.347-8.219-1.43-9.799m8.435 57.75c-.009 1.014-1.072.953-1.832.688-.937-.328-.363-2.484-.413-3.191-.13-1.86-1.023-7.338.34-8.873 2.726-3.069 1.916 9.948 1.905 11.376m-25.674 13.163c1.93-.054.144-37.832-2.821-37.79-2.083.03 1.361 37.827 2.821 37.79m2.232 19.355c-2.397 0-1.957 8.462-.545 9.139 2.14 1.025 3.227-9.139.545-9.139m15.237 3.539c.021 1.058-1.179 1.074-1.98.744-.908-.376-.528-3.506-.563-4.2-.114-2.188-2.017-10.672-.286-12.231 1.974-1.778 2.017.173 2.548 1.498 1.564 3.903.197 10.032.28 14.189Zm140.652-79.722c.11 1.463 1.069 11.018-.524 11.746-2.742 1.254-1.561-4.65-1.55-5.413.107-7.437-.969-14.812-1.787-22.21-.155-1.404-2.625-12.224-.816-13.12 2.707-1.342 2.303 2.245 2.458 3.41 1.129 8.468 1.628 17.078 2.22 25.587Zm-3.219 33.254c-2.532-.502-3.858 8.094-2.702 9.016 1.917 1.53 5.35-8.49 2.702-9.016m-.268 37.798c-1.139-.226-9.433 15.733-8.75 16.635 1.299 1.719 12.829-15.82 8.75-16.635m-20.422 7.374c-1.782-.803-9.334 10.75-7.406 11.619 1.748.786 9.561-10.652 7.406-11.62Zm42.092-43.312c-2.15 0-2.055 11.822-.4 12.568 1.711.77 2.942-12.568.4-12.568M178.14 48.844c-.609-.87-7.175-8.62-2.472-7.513 2.291.539 5.448 7.352 6.481 9.41.594 1.183 3.985 6.46.392 6.086-.977-.101-3.59-6.82-4.401-7.983m-23.092-15.488q-1.27.572.042 1.072 1.27-.57-.042-1.072m-84.43 8.13c-2.004 1.844-9.542 12.519-12.125 12.626-4.707.195 4.278-9.025 5.297-10.198.455-.527 2.486-3.092 3.722-3.723 1.261-.643 5.444-.859 3.107 1.295ZM43.255 69.981c-2.183-.43-5.835 10.264-4.56 11.555 1.923 1.95 7.007-11.07 4.56-11.555m24.939 119.011c.412 1.341 4.631 11.08 3.571 12.361-1.621 1.958-2.087-.817-2.617-1.967-1.178-2.555-4.238-8.846-3.746-11.536.477-2.608 2.375-.201 2.792 1.142m-8.207 22.824c-2.295 0-2.03 9.802-.663 10.385 2.116.902 3.478-10.385.663-10.385m161.805-8.37c.137.604 2.054 5.563-.663 4.845-1.562-.413-1.802-4.785-2.201-6.11-1.23-4.086-5.28-9.163-5.632-13.194-.34-3.897 1.84-2.412 3.515.889 2.236 4.407 3.913 8.87 4.981 13.57m-19.702-.495c-2.132-.01-2.235 10.773-.902 11.402 1.864.878 3.621-11.402.902-11.402m6.16-88.297c1.582-.412-3.41-13.325-5.177-13.183-2.695.217 2.776 13.803 5.178 13.183Zm-26.815 56.093q-1.27.57.043 1.071 1.27-.57-.043-1.071m-24.218 55.24c.794 0 1.121-1.223-.051-1.25-.775.006-1.184 1.25.051 1.25M58.684 170.63c.03-1.909-2.469-.51-2.453 1.101.032 3.214 2.4 1.746 2.453-1.101m-6.165-47.746c-.804 0-1.134 1.236.05 1.266.785-.006 1.198-1.266-.05-1.266m-19.132 62.51c-.078-1.941-1.7.043-1.61.046.288.007 1.67 1.417 1.61-.046M37.6 84.063c-2.368 0-2.025 5.754-.514 6.123 2.52.616 2.865-6.123.514-6.123m12.613 124.263c-2.286 0-2.44 7.814-.863 8.3 2.451.754 3.243-8.3.863-8.3m-18.756 5.606q-1.308.587.042 1.103 1.309-.585-.042-1.103m169.999 3.35c-2.32 0-2.23 9.554-.805 10.2 1.99.902 3.488-10.2.805-10.2m-23.51 8.88c-2.411-.482-3.674 7.405-2.55 8.29 1.852 1.459 5.025-7.796 2.55-8.29m-20.48 7.29c-1.998 0-1.508 3.574-.355 4.106 1.994.92 2.583-4.107.354-4.107ZM86.48 19.508c-1.672 0-12.16 4.744-8.24 6.15 2.396.859 12.497-6.15 8.24-6.15" mask="url('#LongHairDreads-mask1')" opacity=".3"></path></g></g></g></g>',1),sg=[ig];function lg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...sg])}const cg={render:lg},dg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads02-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads02-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads02-path3" d="M153.503 98.874C157.9 100.654 161 104.965 161 110v13c0 5.288-3.42 9.776-8.168 11.375a55.7 55.7 0 0 1-11.076 29.29c.209.807.41 1.625.556 2.503.55 3.327-.12 6.093 1.645 9.093.457.78 1.183 1.247 1.522 2.144.533 1.415-.232 4.594 1.95 4.595 3.106 0 1.374-5.966.596-7.384-1.525-2.772-2.462-3.45-2.383-7.044 1.745 1.16 7.53 3.376 9.448 2.316 4.432-2.448-6.662-4.936-7.438-5.453 1.704-1.666 3.656-2.55 5.197-4.746 1.26-1.793 2.406-4.397 4.55-4.501 1.186-.058 4.657 2.884 5.71.866.964-1.85-1.115-2.122-1.928-2.777-1.502-1.21-1.84-.006-1.474-2.134 1.085 1.165 2.789.429 3.244-1.015.49-1.559-1.127-2.024-1.097-3.014-.012.387.834-5.115.7-4.938.86-1.135 3.908-.784 5.413-.62 2.296.248 2.164.317 3.255 2.436.882 1.715 3.198 5.178 3.707.641.121-1.085-.869-3.404-1.45-4.338-.627-1.007-2.517-1.643-2.912-2.427-.944-1.87 2.165-6.034 1.639-8.854 1.093.418 3.857 6.927 5.198 1.599.707-2.8-6.505-8.945-3.514-9.894 2.289-.726 4.612 2.225 5.25 4.044.473 1.348.26 4.238 1.068 5.353 3.036 4.203 3.41-2.74 3.157-4.572-.559-4.026-1.984-6.988-5.623-8.51 1.295-1.607-.345-2.887-1.275-3.893 1.528-1.657 11.437.104 9.208-4.327-.538-1.072-2.481-1.262-3.467-1.655-2.49-.992-4.985-3.01-6.257-5.562 1.841-.46 7.28.798 6.565-2.996-.563-2.982-5.403-2.067-7.278-1.61 1.692-1.016 4.973-.174 5.434-2.941.531-3.183-3.288-3.076-5.08-2.402-.422-3.358 5.53-5.83 7.213-8.4.568-.867 1.47-1.164.746-2.633-1.306-2.643-4.68 1.086-5.792 2.09.876-1.628 3.32-8.403 2.95-10.122-.546-2.526-2.353-2.615-3.79-.568-.93 1.33-1.19 4.703-1.68 6.427-2.04-1.537-2.143.246-2.248-2.191-.068-1.58 2.002-4.701 2.532-6.248.456-1.329 1.668-3.76.943-5.046-1.776-3.143-3.473 1.172-3.94 2.652-.789-3.411 2.214-6.057 3.103-9.431.541-2.048 1.976-7.578-.51-8.561-3.394-1.341-2.2 4.956-2.678 7-.365 1.559-.922 4.077-2.139 4.845-.176.111-2.82.343-2.948.193-1.734-2.021 3.038-6.447 3.284-8.351.223-1.73-.44-2.825-2.061-2.929-.81-.051-2.12 1.2-2.495 1.119-1.48-.322.447-7.089.587-8.967.15-2.003-.094-7.172-3.483-4.785.227-2.697.364-5.236.734-7.891.195-1.4 1.398-2.645-.374-3.767-2.156-1.365-3.35 1.492-3.842 3.168-.846 2.885.9 7.375-3.158 7.466-4.665.106-1.444-4.73-1.215-7.868.128-1.74-1.012-6.421-3.262-3.263-.896 1.259-.587 5.694-1.084 7.183-1.106-.493.733-4.515-.23-5.564-2.06-2.247-3.788 1.026-5.099 1.692-.086-1.445-.187-2.891-.248-4.338-.093-2.2 1.255-6.83-.113-8.347-2.337-2.59-3.823.431-4.506 2.523-.613 1.884-.697 3.744-3.233 4 .208-2.717-2.258-8.436-1.035-10.727.553-1.035 1.679-.301 2.179-1.46.821-1.902-.524-2.71-1.986-2.771-6.792-.286-1.562 9.134-3.969 11.491-1.099-1.04.072-2.113-1.065-3.596-1.223-1.595-3.173-1.46-4.918-.738-.056-1.613 2.364-12.92-3.08-7.817-1.352 1.271-.974 3.393-1.693 4.886-.696 1.445-2.39 3.598-3.341 4.771-.51-2.067.272-4.63.82-6.666.38-1.415 2.931-5.805 2.387-7.244-1.58-4.167-6.323 2.72-7.572 3.832-1.582 1.41-7.88 6.045-9.901 4.64-.701-.487-.07-2.29-1.027-3.128-.47-.41-2.477-.6-3.05-.548.358-1.494-.346-3.427-2.055-2.91-2.149.65-1.219 3.838-2.58 5.002-2.53 2.164-5.535-2.112-8.245-1.992.414-1.755 3.485-8.062-1.399-6.144-1.246.49-2.13 3.351-2.44 4.54-.792 3.036-.222 3.593-3.509 4.45.257-1.76-.2-3.948.649-5.521.696-1.289 4.305-4.645.462-5.063-4.74-.516-4.274 7.672-4.855 10.44-4.206-2.549-6.974 1.098-9.48 4.252.447-1.419 1.553-15.557-2.965-11.237-1.292 1.237.138 3.066.05 4.478-.078 1.28-.5 2.422-.995 3.618-.796 1.921-1.72 3.887-2.974 5.524-1.573 2.059-1.015 2.22-2.82.823-2.425-1.873-3.577-6.624-3.457-9.525.09-2.16 1.196-6.548-2.384-5.531-3.507.996-1.649 7.974-1.296 10.453.381 2.687.635 5.436.183 8.173-2.984-3.05-3.42 3.302-4.017 4.385-.98 1.777-2.868 2.647-4.335 3.86-.8-2.794 2.405-5.157 1.77-7.38-1.194-4.165-4.571 1.716-5.313 2.87-.619.963-2.635 6.442-3.365 6.933-1.023.69-7.605-2.527-8.27-3.14-1.223-1.125-.778-4.272-2.316-4.99-4.72-2.197-1.932 5.735-1.005 7.375 2.419 4.284 3.516 9.456 2.949 14.504-.858-.302-1.915-1.312-2.468-2.077-1.076-1.49-.685-3.865-1.808-4.987-3.288-3.28-3.673 2.878-3.406 4.791.5 3.588 2.291 4.75 3.778 7.734 1.368 2.75-.445 6.069-.828 9.125-3.429-3.3-18.195-.543-14.396 4.502 1.978 2.633 4.318-2.377 6.598-2.25 4.083.225 6.235 5.295 5.967 8.846-.497-1.898-2.422-3.761-3.746-1.444-.897 1.573.635 4.26 1.374 5.823-.906-.444-5.372-2.52-6.246-2.161-3.44 1.414 1.3 4.151 2.537 4.698 4.224 1.868 6.887 3.92 8.2 8.992-2.367-.757-1.955-1.878-3.552-3.043-1.466-1.07-1.74-.518-3.09-.868-2.362-.611-5.441-1.427-8.11-.318-1.97.819-5.287 3.31-5.906 5.65-.757 2.874.844 3.606 2.904 2.143 2.45-1.739 2.897-5.105 6.583-4.96 1.769.068 3.52.995 4.64 2.325.835.993 1.323 2.43 2.12 3.495.703.94 2.564 2.259 2.957 3.254 1.418 3.595-1.276 6.795-3.083 9.314-.419-.554-3.477-1.758-4.11-1.878-2.94-.561-4.037.798-2.199 3.512.58.856 1.798 1.216 2.436 1.994.711.87 1.112 2.2 1.818 3.144 1.393 1.863 3.115 2.822 4.778 4.322-.613.41-.546-.624-1.102-.41-.404.156-1.107-.155-1.617.014-.828.275-.718 1.717-1.248 1.929-3.299 1.314-6.627-3.615-9.586-3.775-1.614-.088-2.975.994-2.2 3.022.538 1.412 2.87 2.178 4.036 2.767 3.246 1.644 6.478 2.868 9.948 1.607 2.797 2.438 6.159 3.64 9.674 3.675-2.011.998-4 2.235-4.702 4.721-1.189-1.23-4.108-6.952-5.633-2.462-1.045 3.087 3.723 6.871 5.92 8.262-2.555.755-4.677.907-7.277.607-1.357-.156-4.337-1.974-3.238 1.748 1.182 4.016 8.24 2.21 10.48 1.516.083-1.198-10.77 12.108-3.158 9.489 2.176-.748 2.385-5 5.418-5.373 3.503-.43 3.855 3.077 5.882 5.646 1.01 1.282 5.67 4.165 5.449 5.265-.191.952-2.75 1.496-3.293 2.828-.633 1.55-.347 2.746.532 4.078 1.538 2.333 4.36 2.691 6.592 3.604 3.164 1.295 4.31 2.867 5.73 6.217-2.502.12-9.62 7.36-5.258 8.648 1.625.48 1.372-.966 2.049-1.765l.821-1.545q.687-1.797 1.52-.22c.123-.031 1.61.388 1.947.409 1.708.105 2.85-1.192 4.266-1.893 1.023-.506 2.024-.418 2.795-1.586-.089.135.554-2.51.565-2.536.276-.637.985-.547 1.31-1.234-8.749-9.085-14.457-21.119-15.489-34.464C36.42 132.776 33 128.288 33 123v-13c0-5.035 3.1-9.345 7.497-11.126.531.374 1.27 0 1.503-.842-.463-1.506 3.296-27.854 13-34.876 3.618-2.438 23.008-2.619 42.313-2.606 19.096.014 38.108.195 41.687 2.606 9.704 7.022 13.463 33.37 13 34.876.233.843.972 1.216 1.503.842"></path></defs><mask id="ShortHairDreads02-mask2" fill="#fff"><use href="#ShortHairDreads02-path1"></use></mask><g id="Top/Short-Hair/Dreads-02" mask="url('#ShortHairDreads02-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads02-path3" transform="translate(36)"></use></g></g></g>',1),ug=[dg];function fg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ug])}const mg={render:fg},hg=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat1-path3" d="M0 0h264v280H0z"></path><path id="WinterHat1-path1" d="M120 54H20v101c0 5.523-4.477 10-10 10s-10-4.477-10-10V44C0 19.7 19.7 0 44 0h52c24.3 0 44 19.7 44 44v111c0 5.523-4.477 10-10 10s-10-4.477-10-10z"></path><rect id="WinterHat1-path2" width="118" height="36" x="74" y="50" rx="8"></rect></defs><g id="Top/Accessories/Winter-Hat-1" transform="translate(-1)"><g id="hat" transform="translate(63 20)"><path id="inside" fill="#F4F4F4" d="M1 48h22.671v105.664c0 6.26-5.075 11.336-11.335 11.336S1 159.925 1 153.664zm115.329 0H139v105.664c0 6.26-5.075 11.336-11.336 11.336-6.26 0-11.335-5.075-11.335-11.336z"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat1-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat1-path2')" href="#WinterHat1-path2"></use><use fill="#F4F4F4" href="#WinterHat1-path2"></use></g></g></g>',1),pg=[hg];function gg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...pg])}const yg={render:gg},kg=t.createStaticVNode('<g id="Top"><defs><filter id="filter5" width="107.7%" height="126.7%" x="-3.8%" y="-6.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter6" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter7" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter1" width="107.7%" height="115.4%" x="-3.8%" y="-3.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter2" width="105%" height="110%" x="-2.5%" y="-2.5%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter3" width="105.4%" height="110.8%" x="-2.7%" y="-2.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter4" width="103.6%" height="107.4%" x="-1.8%" y="-1.9%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><path id="LongHairFrida-path2" d="M0 0h264v280H0z"></path><path id="LongHairFrida-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFrida-mask1" fill="#fff"><use href="#LongHairFrida-path2"></use></mask><g id="Top/Long-Hair/Frida" mask="url('#LongHairFrida-mask1')"><g transform="translate(-1)"><path fill="var(--avataaar-hair-color)" d="M189 97.937v.229a12.01 12.01 0 0 1 9.893 10.227A16.44 16.44 0 0 0 203 97.5c0-2.13-.404-4.166-1.138-6.035A16.45 16.45 0 0 0 207 79.5c0-5.836-3.03-10.964-7.602-13.898A16.4 16.4 0 0 0 201 58.5c0-7.635-5.185-14.058-12.227-15.941q.226-1.499.227-3.059c0-11.322-9.178-20.5-20.5-20.5-2.63 0-5.143.495-7.453 1.397C157.317 15.306 151.295 12 144.5 12c-4.262 0-8.22 1.3-11.5 3.527A20.4 20.4 0 0 0 121.5 12c-6.795 0-12.817 3.306-16.547 8.397A20.5 20.5 0 0 0 97.5 19C86.178 19 77 28.178 77 39.5q.001 1.56.227 3.059C70.185 44.442 65 50.865 65 58.5c0 2.192.427 4.284 1.203 6.197C60.75 67.39 57 73.007 57 79.5c0 5.438 2.63 10.261 6.689 13.267A16.5 16.5 0 0 0 63 97.5c0 4.175 1.55 7.987 4.107 10.893A12.01 12.01 0 0 1 77 98.166v-.23l.083.064c2.903-47.147 48.47-30.258 55.917-56.664 7.447 26.406 53.014 9.517 55.917 56.664zm-80 82.674v4.2a16.6 16.6 0 0 1-2.5.189c-6.82 0-12.675-4.139-15.188-10.042C82.754 174.348 76 167.213 76 158.5c0-1.471.192-2.897.554-4.254C69.858 152.144 65 145.889 65 138.5c0-3.744 1.247-7.198 3.35-9.967a12.01 12.01 0 0 0 8.859 6.334c1.743 20.248 14.26 37.416 31.791 45.744m48 0v4.2q1.224.188 2.5.189c6.82 0 12.675-4.139 15.188-10.042 8.558-.61 15.312-7.745 15.312-16.458 0-1.471-.192-2.897-.554-4.254C196.142 152.144 201 145.889 201 138.5c0-3.744-1.247-7.198-3.35-9.967a12.01 12.01 0 0 1-8.859 6.334c-1.743 20.248-14.26 37.416-31.791 45.744" class="CustomColor"></path><g id="Ornamentos" transform="translate(67)"><g id="hoja" filter="url('#filter5')" opacity=".9" transform="scale(1 -1)rotate(-20 -137.666 -331.914)"><path id="leaf" fill="#5DD362" d="M3.611 10S1.95 0 13 0c7.222 0 12.278 5.714 12.278 5.714s-5.417 8.572-13.722 8.572C5.056 14.286 3.61 10 3.61 10Z"></path><path id="leaf" fill="#42BC53" d="M25.278 5.714s-5.417 8.572-13.722 8.572c-4.334 0-6.428-1.929-7.367-3.215-2.095 1.786-2.817 3.429-2.817 3.5-.072.286-.36.429-.65.429-.072 0-.216 0-.289-.071-.36-.143-.505-.572-.36-.929.071-.214 1.877-4.143 7.366-6.714 7.944-4.143 17.839-1.572 17.839-1.572"></path></g><g id="hoja" filter="url('#filter6')" transform="rotate(60 44.13 92.434)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="hoja" filter="url('#filter7')" transform="rotate(-120 31.465 30.827)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="Flor" filter="url('#filter1')" transform="matrix(-1 0 0 1 26 29)"><path fill="#4ACAD3" d="M24.424 20.956a5.17 5.17 0 0 0 .997-3.853 5.17 5.17 0 0 0-2.02-3.43c-.299-.225-.693-.41-1.141-.567.453-.141.854-.313 1.16-.527a5.206 5.206 0 0 0 1.277-7.243 5.206 5.206 0 0 0-7.242-1.277c-.306.215-.604.533-.893.911.006-.475-.033-.909-.143-1.267a5.16 5.16 0 0 0-2.532-3.07A5.17 5.17 0 0 0 9.926.25a5.207 5.207 0 0 0-3.453 6.493c.11.356.314.735.582 1.124-.448-.151-.869-.243-1.241-.25a5.206 5.206 0 0 0-5.29 5.11 5.18 5.18 0 0 0 .937 3.066 5.2 5.2 0 0 0 4.171 2.223c.373.006.796-.071 1.25-.206-.283.38-.5.75-.621 1.103a5.2 5.2 0 0 0 .662 4.68 5.17 5.17 0 0 0 2.561 1.93 5.206 5.206 0 0 0 6.61-3.225c.12-.352.178-.779.19-1.252.273.386.56.708.857.932a5.17 5.17 0 0 0 3.853.997 5.16 5.16 0 0 0 3.43-2.02Z"></path><path fill="#FFF" d="M11.178 8.64a1.444 1.444 0 1 1 2.763-.845c.233.763-.232 4.182-.232 4.182s-2.298-2.574-2.53-3.337Zm-2.242 5.797a1.444 1.444 0 1 1 .05-2.888c.798.014 3.905 1.513 3.905 1.513s-3.158 1.389-3.955 1.375m6.057-2.018s1.738-2.98 2.392-3.438a1.444 1.444 0 1 1 1.657 2.366c-.654.458-4.049 1.072-4.049 1.072m-3.073 6.838a1.444 1.444 0 0 1-.895-1.836c.26-.755 2.646-3.246 2.646-3.246s.345 3.432.086 4.187a1.445 1.445 0 0 1-1.837.895m5.32-1.96c-.638-.48-2.27-3.52-2.27-3.52s3.37.732 4.008 1.212a1.444 1.444 0 1 1-1.738 2.307Z"></path></g><g id="Flor" filter="url('#filter2')" transform="translate(20 16)"><path fill="#FDB599" d="m30.526 33.098.258-2.314 2.314-.26c2.847-.319 5.11-2.116 6.054-4.81 1.066-3.042.065-6.359-2.547-8.281l-1.874-1.38.932-2.134c1.229-2.806.645-5.895-1.52-8.061-2.167-2.166-5.256-2.75-8.063-1.522l-2.133.933-1.38-1.875C20.644.786 17.327-.218 14.284.848c-2.692.943-4.49 3.207-4.809 6.054l-.26 2.313-2.313.26c-2.847.319-5.11 2.117-6.054 4.81-.938 2.676-.298 5.56 1.669 7.528a8 8 0 0 0 .877.753l1.875 1.38-.934 2.134c-1.226 2.807-.643 5.896 1.523 8.062s5.255 2.749 8.062 1.523l2.134-.934 1.38 1.875c1.917 2.61 5.24 3.612 8.283 2.547 2.693-.945 4.49-3.208 4.809-6.055"></path><path fill="#FFF" d="M22.882 25.19a1.44 1.44 0 0 1-2.782.746C19.894 25.17 20 20 20 20s-2.492 4.529-3.055 5.091a1.44 1.44 0 0 1-2.036-2.036C15.47 22.492 20 20 20 20s-5.168.106-5.936-.1a1.44 1.44 0 0 1 .745-2.782C15.577 17.324 20 20 20 20s-2.676-4.423-2.882-5.19a1.44 1.44 0 0 1 2.782-.746c.206.768.1 5.936.1 5.936s2.492-4.529 3.055-5.091a1.44 1.44 0 0 1 2.036 2.036C24.53 17.508 20 20 20 20s5.169-.106 5.936.1a1.44 1.44 0 0 1-.745 2.782C24.423 22.676 20 20 20 20s2.675 4.422 2.882 5.19"></path></g><g id="Flor" filter="url('#filter3')" transform="translate(89 26)"><path fill="#F7D30C" d="M34.758 29.822a7.36 7.36 0 0 0 1.418-5.483 7.35 7.35 0 0 0-2.874-4.88c-.426-.321-.987-.584-1.625-.808.645-.201 1.216-.445 1.652-.75 3.342-2.34 4.158-6.964 1.817-10.307-2.34-3.342-6.964-4.157-10.306-1.817-.436.306-.86.758-1.27 1.296.008-.676-.048-1.294-.204-1.803A7.35 7.35 0 0 0 19.763.9a7.36 7.36 0 0 0-5.638-.543C10.223 1.55 8.019 5.695 9.21 9.597c.156.507.447 1.046.83 1.6-.638-.216-1.237-.346-1.768-.355-4.08-.071-7.456 3.19-7.528 7.27a7.37 7.37 0 0 0 1.334 4.363 7.4 7.4 0 0 0 5.936 3.164c.53.01 1.133-.1 1.777-.293-.4.54-.71 1.069-.883 1.57a7.4 7.4 0 0 0 .943 6.66 7.36 7.36 0 0 0 3.645 2.746c3.858 1.329 8.077-.73 9.405-4.588.173-.502.255-1.109.271-1.782.39.549.797 1.007 1.22 1.326a7.35 7.35 0 0 0 5.484 1.418 7.35 7.35 0 0 0 4.88-2.874Z"></path><path fill="#FFF" d="M15.908 12.295a2.055 2.055 0 1 1 3.93-1.202c.332 1.086-.33 5.95-.33 5.95s-3.269-3.662-3.6-4.748m-3.192 8.25a2.055 2.055 0 1 1 .072-4.11c1.135.02 5.558 2.153 5.558 2.153s-4.495 1.977-5.63 1.957m8.62-2.872s2.474-4.241 3.404-4.892a2.055 2.055 0 1 1 2.358 3.367c-.93.651-5.762 1.525-5.762 1.525m-4.373 9.731a2.055 2.055 0 0 1-1.274-2.613c.37-1.073 3.765-4.62 3.765-4.62s.492 4.886.123 5.96a2.056 2.056 0 0 1-2.614 1.273m7.57-2.79c-.907-.683-3.23-5.008-3.23-5.008s4.797 1.042 5.704 1.725a2.055 2.055 0 1 1-2.474 3.283"></path></g><g id="Flor" filter="url('#filter4')" transform="translate(48)"><path fill="#FF7398" d="M54.138 31.546c1.825-6.983-5.994-12.414-8.953-14.184.514-2.934 1.672-12.561-4.468-16.116C34.612-2.288 26.924 3.45 24.6 5.394q-.3-.189-.703-.423C20.83 3.196 13.13-.381 7.85 4.736 2.205 10.204 5.537 18.74 6.805 21.434c-2.16 2.01-8.384 8.592-5.818 15.59.706 1.929 2.011 3.456 3.882 4.538 4.03 2.334 9.607 1.958 11.723 1.707.993 1.88 3.83 6.712 7.888 9.061 1.67.967 3.375 1.413 5.07 1.325 6.905-.358 9.916-9.995 10.67-12.912 2.861-.396 12.086-2.199 13.918-9.197"></path><path fill="#FFF" d="M27.764 25.603s3.685 8.188.354 8.71c-3.334.521-1.46-8.591-1.46-8.591s-7.112 6.007-8.15 3.028c-1.04-2.979 7.7-4.048 7.7-4.048s-7.987-4.692-5.393-6.836 6.216 6.092 6.216 6.092 1.945-8.92 4.82-7.254c2.876 1.664-3.857 7.811-3.857 7.811s8.877-.99 8.37 2.352c-.505 3.342-8.6-1.264-8.6-1.264"></path></g></g><g id="Arete" transform="translate(182 129)"><rect id="Cadenita" width="2" height="39" x="9" y="0" fill="#E6E6E6" rx="1"></rect><path id="Rayo" fill="#9177FF" d="M20 37h-9.43L17 20H6L0 41h8.636L4 60z"></path></g></g></g></g>',1),bg=[kg];function xg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...bg])}const wg={render:xg},vg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairFrizzle-path2" d="M0 0h264v280H0z"></path><path id="ShortHairFrizzle-path1" d="M90.91 55.361h84.176c18.247-10.527 21.673-29.21 8.764-45.435-3.214-4.04-8.764 11.75-25.821 12.724s-15.42-6.3-33.571-3.576c-18.152 2.724-16.146 17.304-27.99 20.803q-11.846 3.499-5.558 15.484"></path></defs><mask id="ShortHairFrizzle-mask2" fill="#fff"><use href="#ShortHairFrizzle-path2"></use></mask><g id="Top/Short-Hair/Frizzle" mask="url('#ShortHairFrizzle-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairFrizzle-path1" transform="translate(-1)"></use></g></g>',1),Eg=[vg];function Cg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Eg])}const Sg={render:Cg},Mg=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat2-path3" d="M0 0h264v280H0z"></path><path id="WinterHat2-path1" d="M72 21c54.773 0 72 47.803 72 82.045v73.865c0 19.495-22.633 19.537-22.633-10.921V86.535c0-6.075-3.732-9-9.816-9H32.45c-6.084 0-9.816 2.925-9.816 9v79.454C22.633 196.447 0 196.405 0 176.91v-73.865C0 68.803 17.227 21 72 21"></path><path id="WinterHat2-path2" d="M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"></path></defs><g id="Top/Accessories/Winter-Hat-2" transform="translate(-1)"><g id="hat" transform="translate(61)"><g id="string" fill="#F4F4F4" transform="translate(0 176)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><g id="string" fill="#F4F4F4" transform="translate(126 168)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><circle id="puff" cx="72" cy="20" r="20" fill="#F4F4F4"></circle><mask id="WinterHat2-mask2" fill="#fff"><use href="#WinterHat2-path1"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat2-path1"></use><path id="color-dark" fill="#000" d="M-1 21h146v46H-1z" mask="url('#WinterHat2-mask2')" opacity=".2"></path><g id="light-triangles" fill="#FFF" opacity=".5" transform="translate(29 32)"><path id="Triangle" d="M12.5 0 25 18H0z" transform="rotate(180 12.5 9)"></path><path id="Triangle" d="M43.5 0 56 18H31z" transform="rotate(180 43.5 9)"></path><path id="Triangle" d="M74.5 0 87 18H62z" transform="rotate(180 74.5 9)"></path></g><g id="dark-triangles" fill="#000" opacity=".5" transform="translate(13 41)"><path id="Triangle" d="M12.5 0 25 18H0zm31 0L56 18H31zm31 0L87 18H62zm31 0L118 18H93z"></path></g></g></g></g>',1),Bg=[Mg];function Ag(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Bg])}const Vg={render:Ag},_g=t.createStaticVNode('<g id="Top"><defs><path id="LongHairFro-path1" d="M0 0h264v280H0z"></path><path id="LongHairFro-path2" d="M180.666 104.495A11.95 11.95 0 0 1 182 110v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744v9.443c3.832 1.896 8.059 2.946 12.5 2.946 7.621 0 14.61-3.093 20.059-8.242q2.193.241 4.441.242c18.39 0 34.26-12.316 41.622-30.116C224.9 149.814 229 141.454 229 132a32 32 0 0 0-.426-5.223C230.786 120.339 232 113.33 232 106c0-12.866-3.739-24.736-10.046-34.275Q222 70.869 222 70c0-10.957-5.507-20.443-13.53-25.043-7.31-17.588-22.73-29.966-40.773-30.9C163.274 9.075 157.201 6 150.5 6q-1.427.001-2.812.182C137.91 2.196 127.211 0 116 0S94.09 2.196 84.312 6.182A22 22 0 0 0 81.5 6c-6.701 0-12.774 3.075-17.197 8.057-18.044.934-33.463 13.312-40.774 30.9C15.507 49.557 10 59.043 10 70q0 .87.046 1.725C3.739 81.265 0 93.135 0 106c0 7.331 1.214 14.34 3.426 20.777A32 32 0 0 0 3 132c0 9.454 4.1 17.814 10.378 22.884C20.74 172.684 36.61 185 55 185q2.248-.001 4.441-.242C64.889 189.907 71.879 193 79.5 193c4.441 0 8.668-1.05 12.5-2.946v-9.443c-17.53-8.328-30.048-25.496-31.791-45.744C54.43 134.002 50 129.02 50 123v-13c0-1.983.481-3.854 1.333-5.502 2.702-.802 5.677-3.053 8.658-6.33l.009-.002v-.009c6.866-7.556 13.755-20.555 17.37-33.822 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 3.62 13.226 10.486 26.172 17.332 33.71v.018l.02.003c2.976 3.272 5.947 5.522 8.646 6.326"></path><path id="LongHairFro-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFro-mask1" fill="#fff"><use href="#LongHairFro-path1"></use></mask><g id="Top/Long-Hair/Fro" mask="url('#LongHairFro-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M67 109.778c9.038-1.06 21.922-20.447 27.37-40.443 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 5.462 19.953 18.31 39.269 27.332 40.339V89c0-22.884-11.647-43.048-29.336-54.887-.528 2.482-.88 5.222-1.04 8.184-10.34-1.404-22.396-2.21-35.27-2.21-13.164 0-25.472.842-35.964 2.306-.158-3-.512-5.775-1.047-8.286C78.65 45.947 67 66.113 67 89z" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFro-path2" transform="translate(17)"></use></g></g></g>',1),Ng=[_g];function Dg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ng])}const Tg={render:Dg},Pg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggy-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShaggy-path1" d="M198.747 37.856c-5.14-3.832-11.219-7.116-17.56-8.378-6.446-1.282-10.358-1.593-16.704-.073-1.633.392-2.184.78-3.62-.148-1.212-.783-9.663-9.49-35.421-4.657-26.035 4.885-33.77 44.075-43.427 45.566-3.48.537-7.781-.384-7.916-2.527-3.963 6.034-5.008 14.007-3.327 21.074 1.447 6.086 4.497 11.804 9.989 15.137 4.726 2.867 11.26 4.116 16.72 3.587 2.486-.24 4.746-.763 7.033-1.766 2.759-1.21 4.957-3.39 7.664-4.543a54 54 0 0 1-9.176 6.418c-1.64.907-3.304 1.532-5.113 2.024-1.236.336-3.761 1.481-4.956 1.182 7.807 1.396 15.16.18 22.32-3.163 3.23-1.508 6.338-3.332 9.19-5.476 2.833-2.13 6.095-4.307 8.31-7.11-.93 1.204.698-.586.913-.805a67 67 0 0 0 1.787-1.895c1.002-1.104 1.998-2.228 2.93-3.391 1.995-2.486 3.852-5.082 5.508-7.803 1.678-2.756 8.359-13.873 10.375-16.49-1.905 5.708-3.98 11.418-6.407 16.925 4.713-1.47 9.284-5.544 12.295-9.34 3.392-4.276 5.4-9.268 6.108-14.666 3.826 10.416 12.785 18.63 22.032 24.295-2.003-3.73-5.055-6.885-7.052-10.678 9.191 9.329 24.568 13.893 28.595 27.574 1.033-4.758 4.353-8.58 5.348-13.433 1.104-5.389 1.896-11.11 1.72-16.616-.396-12.242-8.631-23.723-18.158-30.824"></path></defs><mask id="ShortHairShaggy-mask2" fill="#fff"><use href="#ShortHairShaggy-path2"></use></mask><g id="Top/Short-Hair/Shaggy" mask="url('#ShortHairShaggy-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggy-path1" transform="matrix(-1 0 0 1 285.93 0)"></use></g></g>',1),Og=[Pg];function Fg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Og])}const Lg={render:Fg},$g=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat3-path3" d="M0 0h264v280H0z"></path><path id="WinterHat3-path1" d="M66 0c36.45 0 66 29.55 66 66v5H0v-5C0 29.55 29.55 0 66 0"></path><path id="WinterHat3-path2" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-3" transform="translate(-1)"><g id="hat" transform="translate(67 12)"><circle id="puff" cx="66" cy="8" r="20" fill="#F4F4F4"></circle><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat3-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat3-path2')" href="#WinterHat3-path2"></use><use fill="#F4F4F4" href="#WinterHat3-path2"></use></g></g></g>',1),Rg=[$g];function Hg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Rg])}const zg={render:Hg},Ig=t.createStaticVNode('<g id="Top"><defs><path id="LongHairFroBand-path1" d="M0 0h264v280H0z"></path><path id="LongHairFroBand-path2" d="M80.02 73.81A55.9 55.9 0 0 0 77 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744v10.944A36.4 36.4 0 0 1 93.5 195a36.35 36.35 0 0 1-23.19-8.312 54 54 0 0 1-5.81.312c-21.094 0-39.337-12.208-48.049-29.945C8.934 151.924 4 143.288 4 133.5c0-2.115.23-4.175.667-6.159A57.9 57.9 0 0 1 1 107c0-12.756 4.118-24.55 11.097-34.127A29 29 0 0 1 12 70.5c0-11.297 6.573-21.06 16.104-25.67 8.433-18.128 26.454-30.894 47.546-31.78A28.4 28.4 0 0 1 95.5 5c2.327 0 4.589.279 6.754.805C111.776 2.058 122.148 0 133 0c10.346 0 20.255 1.87 29.408 5.292A29 29 0 0 1 166.5 5a28.4 28.4 0 0 1 19.85 8.05c21.092.886 39.113 13.652 47.546 31.78C243.426 49.44 250 59.203 250 70.5q0 1.2-.097 2.373C256.882 82.45 261 94.243 261 107a57.9 57.9 0 0 1-3.667 20.341A28.6 28.6 0 0 1 258 133.5c0 9.788-4.934 18.424-12.451 23.555C236.837 174.792 218.594 187 197.5 187a54 54 0 0 1-5.81-.312A36.35 36.35 0 0 1 168.5 195c-4.018 0-7.884-.65-11.5-1.849v-12.54c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-5.441-.776-10.702-2.224-15.676l1.377 12.87-11.34-24-45.136-19.523-30.114 10.557L80.065 76.42l-.045-2.609Z"></path></defs><mask id="LongHairFroBand-mask1" fill="#fff"><use href="#LongHairFroBand-path1"></use></mask><g id="Top/Long-Hair/Fro-+-Band" mask="url('#LongHairFroBand-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFroBand-path2"></use><path id="Band" fill="#92D9FF" stroke="none" d="M76.631 98.975A48.6 48.6 0 0 1 76 91.152C76 62.35 101.296 39 132.5 39S189 62.35 189 91.152c0 2.659-.216 5.271-.631 7.823-4.09-25.092-27.545-44.33-55.869-44.33s-51.78 19.238-55.869 44.33"></path></g></g></g>',1),Gg=[Ig];function jg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Gg])}const qg={render:jg},Wg=t.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggyMullet-path1" d="M0 0h264v280H0z"></path><path id="ShortHairShaggyMullet-path2" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Zm114.59-82.914c.175 5.507-.617 11.227-1.721 16.616-.995 4.852-4.315 8.675-5.348 13.433-4.027-13.68-19.404-18.245-28.595-27.574 1.997 3.793 5.049 6.948 7.052 10.678-9.247-5.665-18.206-13.88-22.032-24.295-.707 5.398-2.716 10.39-6.108 14.666-3.011 3.796-7.582 7.87-12.295 9.34 2.428-5.507 4.502-11.217 6.407-16.925-2.016 2.617-8.697 13.734-10.375 16.49-1.656 2.72-3.513 5.317-5.507 7.803-.933 1.163-1.929 2.287-2.93 3.391a67 67 0 0 1-1.788 1.895c-.215.219-1.842 2.01-.912.806-2.216 2.802-5.478 4.979-8.31 7.109-2.853 2.144-5.96 3.968-9.192 5.476-7.159 3.343-14.512 4.56-22.32 3.163 1.196.299 3.721-.846 4.957-1.182 1.809-.492 3.474-1.117 5.113-2.024a54 54 0 0 0 9.176-6.418c-2.707 1.152-4.905 3.334-7.664 4.543-2.287 1.003-4.547 1.526-7.032 1.766-5.462.529-11.995-.72-16.721-3.587-5.492-3.333-8.542-9.051-9.99-15.137-1.68-7.067-.635-15.04 3.328-21.074.135 2.143 4.436 3.064 7.916 2.527 9.658-1.49 15.403-38.048 40.427-44.566 19.961-5.2 34.21 3.874 35.42 4.657 1.437.928 1.988.54 3.621.148 6.346-1.52 13.258-2.209 19.705-.927 6.34 1.262 12.418 4.546 17.559 8.378 9.527 7.101 17.762 18.582 18.159 30.824"></path><path id="ShortHairShaggyMullet-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="ShortHairShaggyMullet-mask1" fill="#fff"><use href="#ShortHairShaggyMullet-path1"></use></mask><g id="Top/Short-Hair/Shaggy-Mullet" mask="url('#ShortHairShaggyMullet-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggyMullet-path2"></use><path id="Shadow" fill="#000" stroke="none" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Z" opacity=".16"></path></g></g></g>',1),Yg=[Wg];function Ug(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Yg])}const Xg={render:Ug},Zg=t.createStaticVNode('<g id="Top"><defs><path id="WinterHat4-path5" d="M0 0h264v280H0z"></path><path id="WinterHat4-path1" d="M129.66 38.357A60.8 60.8 0 0 1 134 61v8H2v-8c0-8.025 1.55-15.688 4.366-22.707Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419C38.486 3.888 50.289 0 63 0h10c12.722 0 24.535 3.895 34.31 10.557q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237"></path><path id="WinterHat4-path2" d="M28.716 10.539c-9.957 6.778-17.804 16.426-22.35 27.754Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419m100.943 27.818c-4.538-11.346-12.386-21.01-22.349-27.8q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237Z"></path><path id="WinterHat4-path3" d="M21.862 15.96a61.3 61.3 0 0 0-11.433 14.08Q6.041 17.878 8.927 13.208q3.977-1.72 12.935 2.751Zm103.49 13.714a61.3 61.3 0 0 0-11.274-13.77q8.704-4.278 12.608-2.59 2.83 4.58-1.333 16.36Z"></path><path id="WinterHat4-path4" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-4" transform="translate(-1)"><g id="hat" transform="translate(65 4)"><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat4-path1"></use><use id="shadow" fill="#000" href="#WinterHat4-path2" opacity=".24"></use><use id="light" fill="#FFF" href="#WinterHat4-path3" opacity=".3"></use></g><g id="hat-front"><use filter="url('#WinterHat4-path4')" href="#WinterHat4-path4"></use><use fill="#F4F4F4" href="#WinterHat4-path4"></use></g></g></g>',1),Qg=[Zg];function Kg(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Qg])}const Jg={render:Kg},ey={Eyepatch:Eh,Hat:Oh,Hijab:Yh,LongHairBigHair:op,LongHairBob:yp,LongHairBun:Vp,LongHairCurly:zp,LongHairCurvy:Qp,LongHairDreads:cg,LongHairFrida:wg,LongHairFro:Tg,LongHairFroBand:qg,LongHairMiaWallace:Bh,LongHairNotTooLong:Rh,LongHairShavedSides:Qh,LongHairStraight:cp,LongHairStraight2:wp,LongHairStraightStrand:Tp,NoHair:Gp,ShortHairDreads01:tg,ShortHairDreads02:mg,ShortHairFrizzle:Sg,ShortHairShaggy:Lg,ShortHairShaggyMullet:Xg,ShortHairShortCurly:Nh,ShortHairShortFlat:Gh,ShortHairShortRound:tp,ShortHairShortWaved:mp,ShortHairSides:Sp,ShortHairTheCaesar:Lp,ShortHairTheCaesarSidePart:Yp,Turban:og,WinterHat1:yg,WinterHat2:Vg,WinterHat3:zg,WinterHat4:Jg},ty=t.createElementVNode("g",{id:"Facial-Hair/Beard-Light",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"BeardLight-path1",d:"M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardLight-path1"})],-1),ay=[ty];function ny(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ay])}const ry={render:ny},oy=t.createElementVNode("g",{id:"Facial-Hair/Beard-Majestic",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"BeardMajestic-path1",d:"M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMajestic-path1"})],-1),iy=[oy];function sy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...iy])}const ly={render:sy},cy=t.createElementVNode("g",{id:"Facial-Hair/Moustache-Fancy",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"MoustacheFancy-path1",d:"M84 69.297c-6.792-3.586-16.422-4.148-21.611-2.165-5.775 2.205-10.884 8.451-19.75 5.696-.37-.114-.73.217-.619.58 1.374 4.51 9.008 7.599 11.602 7.7 11.34.442 20.473-8.278 30.378-8.947 9.906.67 19.04 9.389 30.379 8.947 2.594-.101 10.228-3.19 11.601-7.7.111-.363-.25-.694-.618-.58-8.867 2.755-13.976-3.49-19.75-5.696-5.19-1.983-14.82-1.42-21.612 2.165"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheFancy-path1"})],-1),dy=[cy];function uy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...dy])}const fy={render:uy},my=t.createElementVNode("g",{id:"Facial-Hair/Beard-Medium",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"BeardMedium-path1",d:"M105.018 94.13c-3.868 5.591-6.76 1.817-10.88-1.254-2.481-1.849-6.177-4.148-9.634-4.035-3.456-.113-7.152 2.186-9.633 4.035-4.12 3.07-7.013 6.845-10.88 1.254-2.903-4.198-1.688-11.256 1.024-15.227 3.859-5.652 9.094-2.918 14.947-3.563 1.592-.175 3.19-.617 4.542-1.34 1.352.723 2.95 1.165 4.542 1.34 5.854.645 11.089-2.089 14.948 3.563 2.712 3.97 3.926 11.03 1.024 15.227M140.39 26c-3.424 14.075-4.998 28.434-7.481 42.671a319 319 0 0 1-1.685 8.879c-.127.62-.251 2.923-.862 3.214-1.851.884-5.624-3.817-6.633-4.879-2.533-2.666-5.045-5.356-8.13-7.448-6.235-4.227-13.535-6.726-21.13-7.32-3.178-.248-7.475.186-10.47 1.993-2.995-1.807-7.292-2.24-10.47-1.992-7.596.593-14.895 3.092-21.13 7.32-3.085 2.091-5.597 4.781-8.13 7.447-1.01 1.062-4.782 5.763-6.633 4.88-.61-.292-.735-2.595-.862-3.215a319 319 0 0 1-1.685-8.879C32.607 54.434 31.034 40.075 27.61 26c-.997 0-1.871 18.748-1.983 20.495-.452 7.094-.98 14.03-.305 21.131 1.164 12.249 2.377 27.608 11.71 36.962 8.434 8.451 20.678 10.218 31.24 15.553 1.36.687 3.163 1.535 5.108 2.23 2.049 1.563 6.113 2.629 10.794 2.629 4.91 0 9.142-1.173 11.08-2.862a47 47 0 0 0 4.475-1.997c10.56-5.336 22.805-7.102 31.238-15.553 9.334-9.354 10.547-24.713 11.712-36.962.674-7.1.146-14.037-.306-21.131C142.26 44.748 141.387 26 140.39 26"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMedium-path1"})],-1),hy=[my];function py(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...hy])}const gy={render:py};function yy(e,a){return t.openBlock(),t.createElementBlock("svg")}const ky={render:yy},by=t.createElementVNode("g",{id:"Facial-Hair/Moustache-Magnum",transform:"translate(49 72)"},[t.createElementVNode("defs",null,[t.createElementVNode("path",{id:"MoustacheMagnum-path1",d:"M83.998 74.84a6.04 6.04 0 0 1-2.048 1.85c-8.902 4.82-18.073.642-23.074.94-2.416.144-5.535 1.785-6.66.05-1.24-1.913 2.852-12.46 12.505-14.216 7.01-1.275 16.776.138 19.277 3.474 2.5-3.336 12.267-4.749 19.276-3.474 9.654 1.757 13.745 12.303 12.506 14.215-1.125 1.736-4.244.095-6.66-.05-5.001-.297-14.172 3.881-23.074-.94a6.04 6.04 0 0 1-2.048-1.85Z"})]),t.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheMagnum-path1"})],-1),xy=[by];function wy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...xy])}const vy={render:wy},Ey={BeardMajestic:ly,BeardLight:ry,MoustacheFancy:fy,BeardMedium:gy,Blank:ky,MoustacheMagnum:vy},Cy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bat" fill="#FFF" fill-rule="evenodd"><path id="Batman!" d="M87.685 13.403c-1.393-6.431-6.21-10.15-12.5-11.586-2.526-.577-10.913-2.387-9.607 2.408.593 2.172.263 3.964-1.553 5.766-1.77 1.755-5.231 2.2-6.952-.011-1.474-1.895.427-4.721-.721-6.567-.446-.717-1.216-1.083-2.028-.732-1.141.494-.534 1.555-1.073 2.318-.849 1.203-1.245.826-2.01-.373-.48-.754-.008-1.575-1.246-1.897-1.433-.372-1.903.828-2.032 1.923-.082.687.322 1.792.336 2.488.027 1.364-.09 3.323-.725 4.529-1.125 2.137-2.704 1.453-4.383.096-1.98-1.602-2.561-3.385-2.178-5.817.459-2.917.292-5.709-3.28-3.884-5.02 2.564-9.68 7.135-12.588 11.919-2.445 4.02-4.37 8.893-2.203 13.473 2.21 4.675 5.862 8.69 10.966 9.883 1.321.31 5.092 1.811 6.345.552 1.947-1.957-2.548-3.783-3.435-4.975-1.258-1.69-2.337-4.915-.957-6.822 1.76-2.427 3.6-1.074 5.045.644 1.136 1.348 2.75 4.826 4.506 2.022 1.21-1.931 1.101-5.102 4.4-3.717 4.715 1.978 4.86 11.112 5.7 15.291.367 1.83 2.035 4.064 3.47 1.525.79-1.396.364-4.421.22-5.863-.296-2.985-1.08-5.92-.11-8.877.562-1.71 2.001-4.16 4.13-2.844 1.725 1.066 1.006 5.816 3.353 5.807 2.066-.007 1.502-3.791 2.603-5.039 1.68-1.904 4.916-.999 5.91 1.249 1.336 3.025-2.203 5.126-2.044 7.785.154 2.591 3.494 1.58 4.89.923 2.872-1.35 5.119-3.853 6.676-6.571 2.407-4.204 4.125-10.222 3.075-15.026" transform="translate(77 58)"></path></g></g>',1),Sy=[Cy];function My(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Sy])}const By={render:My},Ay=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Cumbia" fill-rule="evenodd" stroke-width="1"><g id="Group" fill="#FFF" transform="translate(77 64)"><path id="Fill-1" d="M10.272 24.132c3.273-.559 5.73-3.554 5.18-6.788-.464-2.724-1.745-.343-2.976.853-1.335 1.298-2.45 2.574-4.536 2.054-3.607-.9-4.858-5.4-3.84-8.48a5.94 5.94 0 0 1 3.478-3.696c1.852-.746 3.204.09 4.748 1.094.289.187 1.73 1.37 1.994 1.25.462-.211.115-2.43.045-2.725-.338-1.421-1.266-2.575-2.617-3.238-3.333-1.635-7.514.489-9.64 3.055-4.884 5.897-.92 18.164 8.164 16.62"></path><path id="Fill-5" d="M20.283 5.038q0 .003 0 0m-1.594 12.865c.503 3.474 2.977 6.5 6.952 6.357 4.278-.155 6.056-4.098 7.008-7.486.957-3.399 2.052-7.683.664-11.093-.42-1.032-.685-2.38-1.716-1.53-1.252 1.033-1.409 4.039-1.515 5.442-.2 2.647-.781 9.97-4.108 10.944-4.179 1.222-4.048-5.847-4-7.977.04-1.896.246-3.734-.342-5.584-.313-.985-.59-2.44-1.528-1.634-1.29 1.108-1.453 3.828-1.544 5.327-.144 2.405-.214 4.842.129 7.234"></path><path id="Fill-7" d="M37.783 20.746c.188.412.624 1.402 1.02 1.679.944.66-.055.708.8-.059.813-.729 1.13-2.717 1.254-3.67.385-2.96-.12-6.108-.087-9.093 1.024 2.218 1.584 4.584 2.386 6.874.554 1.582 1.396 4.804 3.654 4.753 2.443-.055 2.57-3.145 2.894-4.819.461-2.37.97-4.721 1.676-7.037.092 3.91-1.427 10.995 2.108 13.92.014.013 1.432-4.15 1.467-4.406.223-1.691.083-3.444.107-5.148.051-3.597.718-8.003-.3-11.506C54.435 1.1 53.788-.03 52.354.001c-1.825.04-2.233 1.985-2.698 3.298-1.28 3.614-2.445 7.224-3.357 10.94-.548-1.68-5.339-16.421-8.789-10.901-.555.888-.315 2.218-.338 3.196-.044 1.879-.155 3.756-.196 5.635-.061 2.843-.41 5.907.808 8.577"></path><path id="Fill-9" d="M62.02 7.71c.72-.135 5.735-1.727 5.523-.136-.223 1.675-4.633 3.309-5.816 3.876a10.6 10.6 0 0 0-.643-3.567zm5.717-.64s-.027-.035 0 0m.122 8.341c2.272 1.22 1.287 3.417-.426 4.608-.649.45-6.53 1.802-6.513 1.663q.001.005-.004.005c.18-1.694-.257-5.018 1-6.02 1.304-1.04 4.5-.808 5.943-.256m.062-7.995c.009.022.001.002 0 0M57.944 24.26c.224.551.86 1.912 1.566 1.945.86.04.794-1.043.929-1.71 3.441 1.721 8.498-.047 10.907-3.03 2.787-3.45 1.348-8.27-2.579-9.745 2.113-1.688 4.026-5.399 1.255-7.49-2.196-1.655-5.828-1.747-8.123-.302-2.735 1.723-3.85 5.833-4.09 9.006-.255 3.382-1.158 8.125.135 11.326"></path><path id="Fill-11" d="M76.05 15.871c.074 2.07-.15 4.287.332 6.306.171.717.433 1.511.76 2.162.611 1.215.31 1.05 1.032.36 2.172-2.083 1.209-8.575 1.157-11.249-.041-2.078.064-4.28-.513-6.283-.162-.562-1.123-3.348-1.655-3.284-.816.098-1.376 3.93-1.423 4.693-.148 2.396.226 4.895.31 7.295"></path><path id="Fill-13" d="M94.748 16.43c-1.582-.137-3.622.075-5.117.557.697-1.916 1.475-4.054 2.238-5.79q.711-1.635 1.494-3.24c1.278 2.686 1.992 5.828 2.832 8.666q-.72-.13-1.447-.193m5.44.725c-.727-2.78-1.579-5.532-2.426-8.28-.538-1.743-1.13-3.911-2.6-5.168C91 .146 88.635 9.557 87.614 11.94c-.985 2.296-2.216 4.634-2.85 7.049a9.5 9.5 0 0 0-.244 3.652c.205 1.519-.004 1.741 1.294.914 1-.636 1.414-1.792 2.227-2.562.144-.136.218-.668.39-.755.188-.096 1.504.253 1.815.274 2.17.151 4.712-.218 6.715-1.054.205.842 1.627 5.962 2.977 5.773.597-.083.965-3.064.992-3.537.087-1.553-.352-3.049-.742-4.538"></path><path id="Fill-15" d="M109.302 3.432c-.264-1.203-.814-3.292-1.842-2.112-1.39 1.596-1.09 5.173-1.111 7.177-.015 1.451-1.552 12.062.556 11.883-.09 0 .845-1.668.98-1.922.815-1.524 1.131-2.97 1.329-4.722.365-3.237.783-7.111.088-10.304"></path><path id="Fill-17" d="M108.164 24.301c-2.24-2.728-6.311.658-5.041 3.374 1.729 3.7 7.331-.56 5.041-3.374"></path><path id="Fill-19" d="M94.898 28.545c-2.891-.738-6.297-.24-9.249-.152-3.081.092-6.16.264-9.24.357-6.568.198-13.124.092-19.692.038-12.454-.103-24.935.69-37.383.168-2.672-.112-5.545-.713-8.198-.209-.727.139-3.009.543-3.329 1.266-.336.76 1.402 1.555 2.331 1.955 2.422 1.044 5.329.858 7.9.964 2.93.12 5.887.058 8.819-.014 12.075-.297 24.089-1.343 36.18-1.165 6.976.103 13.937.038 20.912.001 3.32-.017 7 .526 10.273-.062.552-.1 3.763-.854 3.807-1.836.02-.453-2.806-1.228-3.13-1.311"></path></g></g></g>',1),Vy=[Ay];function _y(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Vy])}const Ny={render:_y},Dy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Diamond" fill-rule="evenodd" stroke-width="1"><g id="Diamond" fill="#FFF" transform="translate(106 60)"><path id="Fill-21" d="M34.78 27.737c-2.389 2.656-4.857 5.243-7.335 7.82.985-3.553 1.74-7.578 3.204-10.958.417-.962.1-1.084.927-1.493.609-.301 2.078.043 2.807.062 1.557.039 3.15.192 4.696-.05a222 222 0 0 0-4.299 4.619m-15.264 4.061c-2.699-3.282-5.384-6.568-8.658-9.317 1.289.137 2.696-.043 3.958.206 1.944.384 1.837.99 2.82 2.959 1.45 2.906 2.889 5.789 4.05 8.823-.711-.9-1.441-1.785-2.17-2.67m-9.098-12.532c.963-1.575 1.144-2.972 2.92-3.78 2.06-.939 5.3-.742 7.488-.916-1.37 1.523-3.037 3.103-3.604 5.122-.874-1.718-1.962-3.174-3.67-4.17-.215-.107 1.158 4.55 1.338 4.87-1.716-.096-3.522-.408-5.225-.092zm16.406-5.008c1.591.036 3.17.16 4.74.42-1.267 1.674-1.649 3.631-2.099 5.63-.478-2.258-2.209-4.362-3.734-6.048zm-3.498 1.074c.234-.158 4.457 5.086 5.066 5.556-3.312-.008-6.618-.17-9.926-.315 1.907-1.487 3.023-3.688 4.86-5.24m2.686 17.095c-.401 1.349-.777 2.708-1.214 4.047-1.555-4.732-3.862-9.188-6.008-13.674 3.34.088 6.676.209 10.016.256-.82 3.158-1.862 6.245-2.794 9.37m7.23-17.462c1.277 1.128 3.097 3.44 3.686 4.217a10 10 0 0 0 .179.23c.21.261.966 1.255 1.263 1.644-2.227-.226-4.545-.13-6.78-.15.498-2.054 1.104-4.012.584-6.128q.536.086 1.068.187m7.648 5.617c-2.158-2.676-4.37-7.258-7.864-8.077-3.472-.814-7.548-.454-11.074-.23-3.075.194-8.083-.204-10.795 1.593-1.393.923-2.425 3.005-2.908 4.551-.434 1.393.266 2.285-1.246 2.285-.096 0 2.504 3.673 2.81 3.962 2.272 2.14 4.444 4.202 6.457 6.597 2.835 3.374 5.405 8.338 9.145 9.736-.686-.339 2.792-2.967 3.21-3.419 2.11-2.288 4.246-4.554 6.372-6.83 1.938-2.073 4.05-4.03 5.93-6.15 1.435-1.619 1.439-2.175-.037-4.018"></path><path id="Fill-23" d="M6.999 12c.043.014-.909-2.045-.825-1.919-.475-.719-1.046-1.24-1.738-1.727C3.708 7.843.127 7.254 0 7c1.494 2.652 4.167 4.128 6.999 5"></path><path id="Fill-25" d="M22.355 7.196A6.2 6.2 0 0 0 23.15 9c.07.078.859-4.184.85-4.547C23.988 3.832 23.613 0 22.815 0c-1.337 0-.674 6.47-.459 7.196"></path><path id="Fill-27" d="M48.97 5c-2.992 0-9.68 5.854-8.908 9 .005.01.447-.35.35-.283l.057-.043c1.272-1.025 2.718-2.02 3.992-3.206.911-.85 1.987-1.612 2.816-2.54C47.362 7.832 49.263 5 48.97 5"></path></g></g></g>',1),Ty=[Dy];function Py(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ty])}const Oy={render:Py},Fy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Pizza" fill-rule="evenodd" stroke-width="1"><g id="Group-2" fill="#FFF" transform="translate(112 59)"><path id="Fill-29" d="M30.933 24.391c-4.082 1.38-8.55 3.324-10.905 7.074-1.847 2.942-1.971-.455-4.55.593-2.508 1.019-1.822 5.223-2.733 7.301-.708-1.191-1.043-2.516-1.935-3.604a6.6 6.6 0 0 0 1.814-1.724c.156-.32-4.792.348-5.076.43-1.411.401-2.74.77-4.088 1.429a79 79 0 0 0 1.965-2.989q.31-1.02 1.108-.006c.748.036 1.178.357 1.962.177 2.915-.667 3.843-6.223.25-5.987a93 93 0 0 0 4.253-8.802c.502 4.291 6.08 2.813 7.719.525 2.14-2.989-.604-8.662-4.484-8.112.581-1.375 1.17-2.762 1.65-4.178 1.092 1.61 3.001 2.39 4.538 3.457a18.2 18.2 0 0 1 4.163 4.006c2.386 3.14 3.793 7.007 6.215 10.052a7 7 0 0 0-1.866.358m9.006-4.388c-.632-5.757-5.15-11.601-9.44-15.176-2.55-2.125-10.24-7.385-13.306-3.34 2.472 1.071 5.2 1.33 7.65 2.489 3.32 1.572 5.922 4.16 8.168 7.055 3.137 4.045 7.97 12.283.474 14.386.518-.338.819-.709 1.228-1.308-1.007-.233-.6-1.878-.954-2.952-.412-1.25-1.21-2.467-1.884-3.582a57 57 0 0 0-3.504-5.171c-1.678-2.186-3.686-3.907-5.977-5.396-.907-.589-1.775-1.11-2.817-1.415-1.349-.394-.907.086-1.276-1.146-.232-.773-.024-1.763-.246-2.592-1.973 1.658-2.615 4.055-3.5 6.381-1.02 2.684-2.122 5.335-3.196 7.997-2.635 6.535-6.034 12.395-9.891 18.247-.672 1.02-2.165 2.95-1.09 4.174.96 1.095 2.33.306 3.386-.139 1.436-.604 3.385-2.164 4.935-1.347 1.998 1.054 1.054 4.984 4.214 4.827 3.114-.154 2.527-5.28 3.527-7.317 2.311 1.685 4.175.64 5.579-1.611 1.626-2.61 3.775-3.657 6.513-4.938 1.12-.524 3.034-1.94 4.2-2.115.966-.145 1.893.883 3.184.837 3.098-.113 4.392-4.253 4.023-6.848"></path><path id="Fill-31" d="M18.537 22.834c-2.425-.445-5.807-.074-6.029 3.153-.136 1.978 1.41 3.848 3.082 4.664 5.122 2.5 9.109-6.688 2.947-7.817"></path><path id="Fill-33" d="M28.336 19.158c-.65-.706-1.703-1.24-2.675-.993.31-.214.568-.6.864-.839-3.156-2.286-5.14 3.479-3.346 5.748 2.717 3.44 8.037-.766 5.157-3.916"></path></g></g></g>',1),Ly=[Fy];function $y(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ly])}const Ry={render:$y},Hy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Selena" fill-rule="evenodd" stroke-width="1"><g id="Selena" fill="#FFF" transform="translate(94 58)"><path id="Bom-Bom" d="M65.303 7.568c-.156.93-1.922 5.089-3.229 2.95-.509-.832.402-3.46.685-4.209.558-1.472.974-1.638 2.263-2.33.109 1.188.411 2.398.281 3.589m-2.984 3.319c.03.012.158.132 0 0m-.008-.007c-.006-.004 0 0 0 0M55.03 6.205c.01.008.053.042 0 0M42.555 11.16c-.207 1.22-.475 2.439-.904 3.6-.17-1.732.103-3.456 1-4.95q-.015.676-.096 1.35m-.01-2.502c-.004-.016-.159-.24 0 0M25.908 18.803c.153-1.533.768-3.017 1.906-4.044-.277 1.625-1.072 2.67-1.906 4.044m49.93-13.506c0 .637-2.06 2.335-2.574 2.803-.879.799-1.815 1.44-3.077 1.254-3.462-.51-2.09-4.206-2.641-6.481-.434-1.788-.879-1.114-2.082-1.227-1.118-.104-1.518-.656-2.682.187-2.096 1.519-3.766 3.496-4.659 5.98-.324-1.695-1.245-4.503-3.452-4.093-1.632.303-2.984 2.926-3.663 4.243-.052-1.198-.668-3.076-2.175-2.218-1.036.589-.991 3.381-1.218 4.41-.465 2.111-1.379 7.617-4.644 6.901 1.029-1.918 3.28-7.97 1.35-9.937-2.712-2.762-4.775 4.156-4.886 5.84-.08 1.205.806 3.944.329 4.692-.585.918-2.428 1.313-3.303.641-1.405-1.078-.85-2.83-.53-4.199.422-1.794.62-3.597.734-5.437.085-1.38 1.286-7.548-1.028-7.632-2.095-.075-2.309 5.138-2.458 6.563-.185 1.751-.296 3.525-.235 5.288.062 1.782.394 2.97-.297 4.643-.74 1.793-4.264 7.17-6.373 3.6 2.24-.983 4.911-5.518 3.71-8.067-1.667-3.534-5.416 1.85-5.96 3.656-.877 2.915-.491 6.722 2.864 7.671 3.493.989 6.19-2.286 7.421-5.18 1.002 1.588 2.845 1.986 4.55 1.505a5.8 5.8 0 0 0 1.89-.947c1.07-.81.444-.509 1.58-.542 3.297-.094 5.096-1.153 6.332-4.545-.015.934.343 2.36 1.598 1.849.974-.397.968-2.01 1.148-2.87.57-2.713 1.466-5.541 3.599-7.422 1.84 2.002.48 5.427 1.69 7.56 1.868 3.288 2.808-2.532 3.1-3.654.057 4.882 5.861 3.084 7.118-.157 3.3 3.515 10.234.349 8.923-4.678"></path><path id="Bidi" d="M69.434 15.349c-3.63 0-7.605 1.026-11.127 1.817a98 98 0 0 0-10.502 2.97c-3.871 1.339-7.812 2.554-11.59 4.122-3.276 1.36-7.508 2.353-9.512 5.416-.004.008 2.102-.088 2.272-.117 1.05-.174 1.952-.543 2.917-.956 1.747-.746 3.482-1.519 5.224-2.276 3.904-1.698 7.98-3.095 11.988-4.554 3.996-1.453 8.095-2.685 12.255-3.625 3.39-.767 7.182-.914 10.303-2.273q-.176.066.23-.091c-.079.038-2.221-.433-2.458-.433m-47.317 5.476c-2.27-.998-5.477-.558-7.835-.239-2.143.29-5.496.935-6.833 1.108-1.106.14-4.406 1.04-5.01-.197-.649-1.331 2.72-5.403 3.456-6.363 3.315-4.32 7.3-9.12 12.08-11.923-.44 1.95-.825 3.918-1.227 5.876-.166.808-.95 5.164.486 5.508.59.14 1.772-2.783 1.87-3.044.823-2.19 1.012-4.71 1.391-7.002.217-1.311 1.2-4.05-.694-4.502-1.629-.389-3.836 1.727-4.923 2.619-3.282 2.692-6.127 5.947-8.787 9.22-1.31 1.613-2.615 3.234-3.714 4.997-.904 1.45-3.09 4.49-2.145 6.282 1.698 3.221 9.84.398 12.432-.032 2.045-.339 4.152-.66 6.227-.376 2.162.295 2.057 1.27 1.339 3.196-1.478 3.96-4.776 7.36-7.724 10.32-1.299 1.303-6.38 7.419-7.66 4.091-.87-2.26-.1-5.035.9-7.114.468-.973 1.089-1.861 1.577-2.824.133-.263.802-2.425.947-2.473-3.87 1.35-6.117 6.585-6.332 10.287-.102 1.741.136 4.324 1.8 5.368s3.226-.227 4.549-1.185c3.642-2.64 6.891-5.998 9.865-9.335 1.626-1.824 8.453-10.287 3.965-12.263"></path></g></g></g>',1),zy=[Hy];function Iy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...zy])}const Gy={render:Iy},jy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull-Outline" fill-rule="evenodd" stroke-width="1"><g id="Skull" fill="#FFF" transform="translate(113 59)"><path id="Boo!" d="M36.335 17.04c-.18 1.038-.442 2.069-.988 2.989-.72 1.211-2.026 1.707-2.783 2.818-1.193 1.752.392 4.276-.786 5.837-1.266 1.68-4.142.663-5.262 2.892-1.18 2.35.538 5.492-.943 7.83-1.47-.37-1.922-5.886-4.189-2.367-1.452 2.254-.471 3.475-2.649.235-.756-1.125-1.61-2.136-3.096-1.393-1.043.521-1.258 2.837-2.21 3.086-2.333.612-2.418-5.617-3.212-6.796-.436-.648-.842-1.032-1.617-1.277-.672-.213-1.869.215-2.425-.1-1.045-.592-1.186-2.556-1.225-3.598-.074-1.939.575-3.919.04-5.838-.451-1.612-1.887-2.603-2.357-4.183C.1 8.64 11.683 3.895 18.3 3.63c7.74-.31 19.037 4.222 18.036 13.41m1.838-5.316c-1.456-3.441-4.655-6.177-7.915-8.013a18.5 18.5 0 0 0-5.085-1.94c-1.641-.36-3.558-.123-5.125-.576C18.728.812 17.91-.048 16.356.002c-2.118.068-4.319 1.172-6.168 2.086-3.66 1.807-6.771 4.148-8.726 7.743-2.098 3.859-1.9 7.356.349 10.952 2.145 3.434-.974 8.262 2.167 11.526C5.3 33.68 6.6 32.68 7.85 33.34c.962.508.921 3.462 1.188 4.328 1.2 3.893 5.514 5.4 7.506 1.191.94 2.353 4.655 4.764 6.385 1.686 1.082 1.4 2.954 1.995 4.383.795 1.344-1.128 1.492-3.755 1.56-5.343.054-1.238-.497-2.764.454-3.658 1.047-.984 3.194-.57 4.37-1.839 1.34-1.45.789-3.146.892-4.872.104-1.746.416-1.301 1.71-2.562 2.885-2.81 3.374-7.807 1.875-11.343"></path><path id="Boo!" d="M14.42 28.121c2.02-1.822 1.591-7.397 1.424-9.959-.316-4.86-3.355-3.408-5.206-.38-1.4 2.29-4.766 5.994-3.257 8.876 1.202 2.296 5.18 3.136 7.039 1.463m13.37-8.847c-1.034-1.92-1.42-2.212-2.65-3.785-.791-1.011-1.9-2.802-3.404-2.442-2.582.62-1.528 6.612-1.498 8.402.024 1.358-.277 2.765.851 3.728 1.155.986 3.053.897 4.44.69 4.259-.633 4.062-3.253 2.262-6.593M19.24 31.83c-.284-.036.077-.362.12-.587.187.614.326.643-.12.587m1.045-4.31c-2.617-2.77-7.574 6.397-4.08 7.425.805.237 1.4-.363 2.155-.468 1.1-.153 2.024.487 2.973-.522 1.491-1.584.187-5.098-1.048-6.436"></path></g></g></g>',1),qy=[jy];function Wy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...qy])}const Yy={render:Wy},Uy=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bear" fill-rule="evenodd" stroke-width="1"><defs><path id="poly-1" d="M47.892.43v41.49H.453V.43z"></path></defs><g id="Group-76" transform="translate(108 59)"><path id="Fill-74" fill="#FFF" d="M34.447 31.586c-.479 2.816-4.08 7.345-7.147 4.384-3.467-3.344 4.225-4.81 1.481-7.594-1.184-1.2-4.412-.537-6.002-.41-1.49.117-3.866.454-3.296 2.624.433 1.65 1.71.944 2.389 1.892.535.748.308 3.507-.49 4.267-1.002.956-2.189.663-3.584.05-3.192-1.4-4.677-5.312-2.575-8.216 4.155-5.741 20.067-7.059 19.224 3.003M14.985 14.724c.985-.443 2.148-.203 2.732.787.802 1.356-.357 3.173-1.975 2.956-1.707-.23-2.57-2.919-.757-3.743m17.962 1.655c-.856 3.006-5.636-.378-2.936-2.29 1.552-1.099 3.447.491 2.936 2.29m14.88 6.79c-.236-2.38-.9-4.646-2.088-6.73-.623-1.093-1.393-2.111-2.19-3.081-.3-.365-.906-1.008-1.023-1.213-.709-1.24-.638-.362-.247-1.785.616-2.243 1.947-4.08.884-6.49-.99-2.24-3.655-3.293-5.984-3.426a8.2 8.2 0 0 0-3.207.449c-1.035.368-2.001 1.64-2.9 1.9-.698.204-2.685-.46-3.441-.508-1.395-.089-2.798-.05-4.192.034-1.63.096-5.376 1.263-6.913.877-1.015-.255-2.209-1.781-3.381-2.164C11.853.61 10.467.468 9.178.954c-2.285.864-4 3.552-4.053 5.942-.028 1.255.655 2.115.79 3.25.203 1.716.437.357-.487 1.726-.47.697-1.295 1.31-1.824 1.982C.779 17.44-.28 22.732.974 27.074c3.159 10.94 13.668 15.394 24.44 14.793 9.25-.516 23.564-7.718 22.413-18.698"></path></g></g></g>',1),Xy=[Uy];function Zy(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Xy])}const Qy={render:Zy},Ky=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Deer" fill="#FFF" fill-rule="evenodd"><path id="oh,-deer!" d="M76.96 16.235c.395 1.425-2.228 2.67-3.106 3.419-1.507 1.283-3.065 2.634-4.825 3.547-.748.388-1.553.703-2.362.935-1.247.357-1.104.107-1.58 1.165-.838 1.86-1.055 4.334-1.812 6.312-1.704 4.454-5.767 14.8-12.267 10.259-2.068-1.445-3.197-4.247-4.36-6.436-1.335-2.512-2.613-5.508-3.381-8.25-.375-1.336-.137-1.79-1.13-2.415-.622-.392-1.679-.493-2.383-.78-1.5-.61-2.813-1.436-4.088-2.43-1.238-.966-6.11-4.951-2.132-5.691 1.825-.34 4.217-.214 6.067-.12 2.027.102 4.073.57 5.876 1.535 1.841.987 1.301.701 3.21.15-3.322-1.126-6.649-2.998-8.884-5.781-1.207-1.503-4-7.654-1.9-9.065 2.52-1.696 2.73 5.346 3.439 6.567 1.592 2.744 4.508 3.78 7.042 5.299-1.74-1.668-3.04-3.505-3.673-5.868-.275-1.025-1.026-3.489-.519-4.486.529-1.04 1.772-1.106 2.458-.22.618.797.462 2.63.674 3.591.35 1.589.921 2.81 1.982 4.04 1.505 1.747 3.417 3.175 5.669 3.728 5.127 1.258 6.92-4.108 7.608-8.245.168-1.013-.08-2.693 1.05-3.18 1.367-.588 1.896.747 1.936 1.782.087 2.314-1.056 5.857-2.166 7.845 2.79-1.732 5.003-4.478 5.899-7.688.33-1.188.062-3.836 1.174-4.503 1.54-.924 2.029.917 1.975 2.022-.319 6.515-5.298 12.44-11.488 14.069 1.518.759 1.318.93 2.848.023.885-.525 1.845-.93 2.827-1.23 1.47-.452 3.055-.682 4.58-.817 1.22-.107 5.274-.817 5.742.917m-18.1 8.386c.86-2.138-2.496-2.216-2.822.095-.416 2.945 2.755 3.176 2.822-.095m-1.93 9.016c.659-2.196-3.526-2.112-3.896-.17-.436 2.291 3.406 1.73 3.896.17M51.702 27c2.324 0 3.272-3.065.997-3.861-2.89-1.013-3.815 3.861-.997 3.861" transform="translate(77 58)"></path></g></g>',1),Jy=[Ky];function ek(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Jy])}const tk={render:ek},ak=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Hola" fill="#FFF" fill-rule="evenodd"><path id="Hola" d="M74.637 16.948c1.28 5.762-.904 11.244-5.33 15.004-2.08 1.768-4.434 3.074-7.056 3.835a25 25 0 0 1-4.497.87c-1.136.111-2.784-.4-3.79-.111-1.12.321-2.559 1.865-3.757 2.362a20 20 0 0 1-2.068.727c-1.506.438-3.065.734-4.613.977-1.602.25-8.283 1.302-7.455-1.637.284-1.01 3.11-2.504 3.724-3.184.454-.502 3.145-3.364 3.019-4.295-.04-.294-1.747-1.63-2.148-2.08-.909-1.019-1.762-2.058-2.245-3.351-.829-2.216-.786-4.998-.51-7.32.688-5.804 3.566-9.659 8.602-12.55 2.855-1.637 5.96-2.538 9.205-2.934 3.956-.483 7.11-.498 10.467 1.75 4.42 2.96 7.275 6.668 8.452 11.937m-5.131 6.988c1.086-.3-.308-3.053-1.079-1.72-.277.48.463 1.889 1.079 1.72m-1.821-5.322c.088.36.434.47.748.427.75-.104.28-.981.301-1.373.04-.749.107-2.639-.172-3.32-.513-1.254-.975-1.014-1.274.214-.267 1.1.123 2.947.397 4.052m-1.048 4.279c.843-.498-1.38-6.176-1.868-6.988-1.892-3.145-2.504 2.431-2.794 3.81-.125.596-1.518 6.781.339 4.787.99-1.064-.558-4.602 2.243-3.78.984.29.272.207.874 1.11.22.33.458 1.5 1.206 1.06Zm-6.342-1.294c.786-1.35-2.665-.721-3.062-.697.094-1.8.445-3.623.44-5.422 0-.475.165-2.191-.958-1.381-.454.327-.298 1.83-.336 2.28-.09 1.057-.948 4.707-.108 5.56.595.603 3.693.22 4.024-.34m-4.799-2.44c.338-1.344-.084-4.253-1.845-4.28-.613-.008-.335.831-.487.92-1.065.621-1.528.542-2.16 1.646-2.486 4.35 3.067 7.445 4.492 1.714m-6.027 3.83c.761-.21.546-9.977-.331-9.983-1.51-.008-.063 4.84-.635 5.49-.17.196-1.026.015-1.25.056-1.14.212-1.89.092-2.24-.606-.312-.62.36-4.88-1.258-2.79q.023 1.107.035 2.213.504 1.072-.376 1.306c-.03.47.392.864.397 1.017.025.771-.484 4.231.9 4.064.885-.107.32-3.481.317-4.03 1.143.027 2.34.155 3.475.008.006.427-.288 3.603.966 3.256ZM63.837 17A19 19 0 0 1 65 18.842q-.999.086-2 .158c.272-.668.544-1.335.837-2m-9.914 0c.145.423.256 3.288-1.355 2.976-.92-.177-.507-1.764-.246-2.091.55-.69.873-.448 1.601-.885" transform="translate(77 58)"></path></g></g>',1),nk=[ak];function rk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...nk])}const ok={render:rk},ik=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Resist" fill-rule="evenodd" stroke-width="1"><g id="Resist" fill="#FFF" transform="translate(80 67)"><path id="!" d="M102.565 21.071c-3.082-.666-5.192 3.535-1.912 4.784 2.815 1.072 4.845-4.145 1.912-4.784"></path><path id="H" d="M101.191 18c3.657 0 2.308-5.981 2.321-7.965.014-2.137 1.545-8.596-.89-9.734-4.216-1.971-3.06 6.325-3.034 7.968.028 1.816.167 3.72-.229 5.508-.35 1.58-1.129 4.223 1.832 4.223"></path><path id="C" d="M96.058 1.974c-1.082-.622-2.801-.32-3.987-.374-1.349-.06-2.69-.195-4.035-.293-2.177-.16-4.956-.563-7.118-.068-1.226.28-2.338 1.225-1.761 2.608.62 1.49 2.303 1.105 3.58 1.03.585-.035 2.033-.29 2.605-.089.997.35.573-.108.801 1.067.349 1.807.14 4 .125 5.838-.026 3.174-.036 6.364-.103 9.536-.026 1.236-.44 2.632.757 3.448.998.68 2.216.225 2.733-.793.514-1.013.026-3.067-.029-4.196-.066-1.347-.136-2.676-.097-4.025.104-3.585.282-7.167.368-10.754.943.046 1.922.018 2.856.15.683.095 1.665.535 2.322.5 1.9-.1 2.694-2.587.983-3.585"></path><path id="A" d="M67.722 8.813c-.012-.053-.082-.644 0 0m-.037-.276c.004.025 0 .008 0 0m1.432-3.11c3.416-3.981 4.583 4.347 7.246 3.995 4.26-.564-.941-6.953-2.669-7.776-3.515-1.675-6.605.08-8.277 3.267-2.098 4-.77 6.708 3.258 8.444 1.471.635 7.04 2.528 5.53 4.959-.76 1.224-3.526 1.329-4.7 1.086-2.356-.486-1.989-2.086-3.135-3.573-1.033-1.34-3.03-.947-3.342.781-.245 1.358 1.17 3.425 2.115 4.38 2.233 2.256 6.04 2.437 8.887 1.41 4.386-1.583 4.917-5.71 1.806-8.905-1.749-1.795-3.933-2.34-6.113-3.418-2.645-1.306-2.15-2.39-.606-4.65"></path><path id="E" d="M58.75 20.568c-.564-4.825-.696-9.717-.78-14.563-.027-1.554.706-5.206-1.453-5.865-2.915-.89-2.528 2.692-2.467 4.164.205 4.913.842 9.789 1.071 14.696.073 1.557-.429 4.574 1.831 4.946 2.75.454 2.008-2.081 1.798-3.378"></path><path id="P" d="M49.472 4.68c-2.36-3.159-7.154-3.669-10.09-.758-2.072 2.054-3.377 6.92-1.416 9.403 2.124 2.691 7.355.332 8.725 3.383 1.682 3.743-2.73 5.148-5.074 2.663-.843-.894-.659-2.454-1.9-3.007-1.763-.785-2.864.928-2.517 2.359.848 3.5 4.652 5.39 8.101 5.272 3.768-.13 5.402-2.977 5.163-6.4-.33-4.735-3.985-5.476-7.99-5.998-1.698-.22-1.92-.2-1.816-1.952.128-2.118 1.37-4.567 3.991-4.063 2.106.405 2.294 3.571 4.455 3.718 3.496.239 1.256-3.433.368-4.62"></path><path id="M" d="M31.721 20.438c-1.337.32-2.963.098-4.327.073-1.053-.019-4.574.427-5.261-.296-.76-.8-.513-3.247-.545-4.286-.046-1.454-.404-1.67.872-2 .749-.193 1.907-.096 2.682-.131 1.515-.07 3.465.21 4.93-.088 1.37-.28 2.502-1.751 1.25-3.004-.886-.888-2.542-.411-3.631-.386-2.034.046-4.069.036-6.103.072.008-1.568-.043-3.147.079-4.71 2.847.14 5.812.881 8.659.745 1.44-.07 3.04-.992 2.31-2.73-.624-1.49-2.521-1.287-3.843-1.346-1.653-.075-3.308-.113-4.962-.17-1.224-.042-3.005-.445-4.159.107-2.362 1.13-1.55 5.01-1.485 7.112.084 2.666.085 5.268.177 7.956.084 2.433-.037 5.641 2.852 6.325 2.89.684 6.245.033 9.192.176 1.209.058 2.861.41 3.455-.996.569-1.349-.73-2.774-2.142-2.423"></path><path id="I" d="M8.41 5.88c2.321.5 2.942 3.014 3.02 5.149.054 1.46.183 1.373-1.003 1.74-1.19.368-2.92.169-4.139.116-2.543-.11-2.235-.278-2.284-2.945-.012-.625-.475-3.504-.108-3.91.476-.528 3.839-.203 4.514-.15m5.077 14.838c-1.29-1.504-2.586-2.94-4.034-4.286 2.158-.06 4.503-.473 5.27-2.819.648-1.982.085-5-.668-6.872-.994-2.47-3.062-4.119-5.635-4.478-1.796-.251-6.278-.673-7.62.71C-.665 4.482.352 8.623.442 10.47c.16 3.271.044 6.518-.157 9.785-.064 1.055-.582 2.787-.041 3.737.6 1.054 2.059 1.317 2.969.537.984-.844.529-1.878.468-2.961-.093-1.676.075-3.404.174-5.074 1.608 1.312 3.25 2.591 4.762 4.022 1.493 1.414 2.564 3.202 3.99 4.627 1.011 1.01 2.82 1.425 3.331-.448.44-1.608-1.571-2.951-2.451-3.977"></path></g></g></g>',1),sk=[ik];function lk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...sk])}const ck={render:lk},dk=t.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull" fill="#FFF" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Fill-49" d="M65.282 19.929c-.298 2.777-5.693 4.274-7.672 2.448-.912-.842-.927-2.574-1.128-3.702-.38-2.133-.656-4.258-.751-6.423-.058-1.325-.406-2.385 1.044-2.582.883-.12 1.793.468 2.515.933 2.447 1.573 6.33 6.138 5.992 9.326m-12.4-5.853c.284 2.825 1.32 7.739-.936 10.105-2.016 2.115-6.16.018-6.783-2.473-.773-3.09 2.275-6.78 4.145-8.87.574-.641 1.844-2.412 2.836-1.82.382.228.693 2.612.737 3.058m1.44 11.03c.647-1.523 6.913 3.019 3.953 5.18-.482.352-4.16 1.465-4.864.941-1.485-1.103.43-4.964.911-6.12m19.004-7.58c-.443-15.476-20.26-19.84-30.85-11.023-4.048 3.372-6.362 7.5-6.468 12.779-.09 4.471.619 8.689 4.034 11.764 1.481 1.333 2.46 2.149 3.245 3.97.824 1.906 1.2 4.335 2.742 5.833.85.825 2.09 1.492 3.266.96 2.162-.98 1.47-3.978 2.125-5.65 2.037 4.97 7.211 6.554 8.15.25 1.031 1.819 3.726 4.2 5.7 2.21.812-.82.934-2.15 1.072-3.227.245-1.912-.18-2.664 1.355-3.975 4.039-3.45 5.773-8.672 5.63-13.891" transform="translate(77 58)"></path></g></g>',1),uk=[dk];function fk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...uk])}const mk={render:fk},hk={Bat:By,Cumbia:Ny,Diamond:Oy,Pizza:Ry,Selena:Gy,SkullOutline:Yy,Bear:Qy,Deer:tk,Hola:ok,Resist:ck,Skull:mk},pk=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Closed",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("path",{id:"Closed-Eye",d:"M16.16 32.447C18.007 28.65 22.164 26 26.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 28.65 80.164 26 84.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125",transform:"matrix(1 0 0 -1 0 60)"})])],-1),gk=[pk];function yk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...gk])}const kk={render:yk},bk=t.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[t.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),t.createElementVNode("circle",{id:"Eye",cx:"82",cy:"22",r:"6"})],-1),xk=[bk];function wk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...xk])}const vk={render:wk},Ek=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Eye-Roll" transform="translate(0 8)"><circle id="Eyeball" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="The-white-stuff" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="14" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="14" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),Ck=[Ek];function Sk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ck])}const Mk={render:Sk},Bk=t.createElementVNode("g",{fill:"#FF5353",class:"CustomColor",opacity:".8",transform:"translate(76 90)"},[t.createElementVNode("path",{id:"Heart",d:"M35.958 10c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C17.552 10 14 13.334 14 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C40.585 26.77 45 23.37 45 17.64c0-4.306-3.552-7.64-9.042-7.64m53 0c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C70.552 10 67 13.334 67 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C93.585 26.77 98 23.37 98 17.64c0-4.306-3.552-7.64-9.042-7.64"})],-1),Ak=[Bk];function Vk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ak])}const _k={render:Vk},Nk=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Squint" transform="translate(0 8)"><defs><path id="Eye1" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path><path id="Eye2" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path></defs><g id="Eye" transform="translate(16 13)"><mask id="EyeMask1" fill="#fff"><use href="#Eye1"></use></mask><use id="The-white-stuff" fill="#FFF" href="#Eye1"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask1')" opacity=".7"></circle></g><g id="Eye" transform="translate(68 13)"><mask id="EyeMask2" fill="#fff"><use href="#Eye2"></use></mask><use id="Eyeball-Mask" fill="#FFF" href="#Eye2"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask2')" opacity=".7"></circle></g></g></g>',1),Dk=[Nk];function Tk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Dk])}const Pk={render:Tk},Ok=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Wink",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),t.createElementVNode("path",{id:"Winky-Wink",d:"M70.412 24.205c1.847-3.799 6.005-6.447 10.838-6.447 4.816 0 8.961 2.63 10.818 6.407.551 1.122-.234 2.04-1.025 1.36-2.451-2.108-5.932-3.424-9.793-3.424-3.74 0-7.124 1.235-9.56 3.228-.891.729-1.818-.013-1.278-1.124",transform:"rotate(-4 81.252 21.758)"})])],-1),Fk=[Ok];function Lk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Fk])}const $k={render:Lk},Rk=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Cry" transform="translate(0 8)"><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".6"></circle><path id="Drop" fill="#92D9FF" d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27"></path><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".6"></circle></g></g>',1),Hk=[Rk];function zk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Hk])}const Ik={render:zk},Gk=t.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[t.createElementVNode("path",{id:"Eye",d:"m29 25.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L32.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L29 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0zm54 0 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L86.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L83 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0z"})],-1),jk=[Gk];function qk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...jk])}const Wk={render:qk},Yk=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Happy",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("path",{id:"Squint",d:"M16.16 22.447C18.007 18.65 22.164 16 26.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 18.65 80.164 16 84.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125"})])],-1),Uk=[Yk];function Xk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Uk])}const Zk={render:Xk},Qk=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyes/Side",opacity:".6",transform:"translate(0 8)"},[t.createElementVNode("path",{id:"Eye",d:"M27.241 20.346a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C33.9 17.317 30.506 16 26.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228zm58 0a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C91.9 17.317 88.506 16 84.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228z"})])],-1),Kk=[Qk];function Jk(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Kk])}const eb={render:Jk},tb=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Surprised" transform="translate(0 8)"><circle id="The-White-Stuff" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="Eye-Ball" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),ab=[tb];function nb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ab])}const rb={render:nb},ob=t.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Wink-Wacky" transform="translate(0 8)"><circle id="cornea" cx="82" cy="22" r="12" fill="#FFF"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle><path id="Winky-Doodle" fill="#000" d="M16.16 25.447C18.007 21.65 22.164 19 26.998 19c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125" opacity=".6"></path></g></g>',1),ib=[ob];function sb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ib])}const lb={render:sb},cb={Close:kk,Default:vk,EyeRoll:Mk,Hearts:_k,Squint:Pk,Wink:$k,Cry:Ik,Dizzy:Wk,Happy:Zk,Side:eb,Surprised:rb,WinkWacky:lb},db=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Outline/Angry",d:"M15.611 15.185c4.24-5.769 6.878-5.484 13.313-.629l.67.508C34.422 18.726 36.708 20 40 20a2 2 0 1 0 0-4c-2.066 0-3.901-1.022-7.989-4.123-.375-.285-.492-.373-.678-.513-3.76-2.837-5.959-4.077-8.695-4.372-3.684-.398-7.058 1.482-10.25 5.823a2 2 0 0 0 3.223 2.37m80.777 0c-4.24-5.769-6.877-5.484-13.312-.629l-.67.508C77.578 18.726 75.292 20 72 20a2 2 0 1 1 0-4c2.066 0 3.901-1.022 7.989-4.123.375-.285.492-.373.678-.513 3.76-2.837 5.959-4.077 8.695-4.372 3.684-.398 7.058 1.482 10.25 5.823a2 2 0 0 1-3.224 2.37",class:"CustomColor",opacity:".6"})],-1),ub=[db];function fb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ub])}const mb={render:fb},hb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Flat-Natural",d:"M38.66 11.09c-4.998.362-9.923.086-14.918-.122-3.83-.158-7.717-.681-11.374 1.012-.7.324-4.53 2.28-4.44 3.349.07.855 3.935 2.191 4.63 2.436 3.67 1.29 7.181.896 10.954.67 4.628-.278 9.236-.074 13.861-.214 3.116-.093 7.917-.62 9.457-4.398.464-1.137.105-3.413-.36-4.657-.185-.496-.72-.683-1.125-.397-1.45 1.023-4.261 2.146-6.685 2.321m34.68 0c4.998.362 9.923.086 14.918-.122 3.83-.158 7.717-.681 11.374 1.012.7.324 4.53 2.28 4.44 3.349-.07.855-3.935 2.191-4.63 2.436-3.67 1.29-7.181.896-10.954.67-4.628-.278-9.236-.074-13.861-.214-3.116-.093-7.917-.62-9.457-4.398-.464-1.137-.105-3.413.36-4.657.185-.496.72-.683 1.125-.397 1.45 1.023 4.261 2.146 6.685 2.321",class:"CustomColor",opacity:".6"})],-1),pb=[hb];function gb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...pb])}const yb={render:gb},kb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Outline/Sad-Concerned",d:"M38.028 5.591c-1.48 8.389-14.09 14.18-23.238 10.432-1.015-.416-2.19.031-2.627.999s.033 2.09 1.048 2.505c11.444 4.69 26.835-2.38 28.762-13.303.183-1.039-.551-2.023-1.64-2.197-1.09-.175-2.122.525-2.305 1.564m35.945 0c1.48 8.389 14.09 14.18 23.238 10.432 1.014-.416 2.19.031 2.627.999s-.033 2.09-1.048 2.505c-11.444 4.69-26.835-2.38-28.762-13.303-.183-1.039.551-2.023 1.64-2.197 1.09-.175 2.121.525 2.305 1.564",class:"CustomColor",opacity:".6"})],-1),bb=[kb];function xb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...bb])}const wb={render:xb},vb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Up-Down-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303M86.993 12.07c5.761.773 14.746 5.795 13.994 11.607-.024.19-.312.25-.436.091-2.487-3.188-21.712-7.872-28.714-6.894-.64.09-1.063-.571-.626-.984 3.744-3.535 10.62-4.518 15.782-3.82",class:"CustomColor",opacity:".6"})],-1),Eb=[vb];function Cb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Eb])}const Sb={render:Cb},Mb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Angry-Natural",d:"M44.095 17.125q.006-.014 0 0M19.284 5.005c-2.368-.266-4.858.497-6.427 2.434-.59.728-1.553 2.48-1.509 3.417.017.356.225.375 1.124.59 1.646.392 4.5-1.114 6.355-.972 2.582.198 5.047 1.395 7.283 2.679 3.838 2.202 8.354 6.84 13.093 6.598.353-.018 5.42-1.739 4.41-2.723-.316-.484-3.034-1.128-3.501-1.361-2.172-1.084-4.367-2.448-6.443-3.718-4.528-2.772-8.944-6.338-14.385-6.944m48.746 12.12q-.006-.014 0 0m24.876-12.12c2.368-.266 4.857.497 6.426 2.434.59.728 1.554 2.48 1.509 3.417-.017.356-.225.375-1.124.59-1.645.392-4.5-1.114-6.355-.972-2.582.198-5.046 1.395-7.282 2.679-3.839 2.202-8.355 6.84-13.093 6.598-.353-.018-5.42-1.739-4.411-2.723.317-.484 3.034-1.128 3.502-1.361 2.171-1.084 4.367-2.448 6.442-3.718 4.528-2.772 8.945-6.338 14.386-6.944",class:"CustomColor",opacity:".6"})],-1),Bb=[Mb];function Ab(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Bb])}const Vb={render:Ab},_b=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Frown-Natural",d:"M36.37 6.876c-1.97 2.905-5.546 4.64-8.738 5.684-3.943 1.29-18.552 3.38-15.112 11.348a.147.147 0 0 0 .272.002c1.153-2.645 17.465-5.123 18.973-5.704 4.445-1.709 8.393-5.49 9.162-10.543.352-2.317-.637-6.049-1.548-7.55-.11-.18-.374-.136-.43.069-.36 1.331-1.41 4.971-2.58 6.694m39.261 0c1.97 2.905 5.546 4.64 8.738 5.684 3.943 1.29 18.551 3.379 15.112 11.348a.147.147 0 0 1-.272.002c-1.153-2.645-17.465-5.123-18.973-5.704-4.445-1.709-8.393-5.49-9.162-10.543-.352-2.317.637-6.049 1.548-7.55.11-.18.374-.136.43.069.36 1.331 1.41 4.971 2.58 6.694",class:"CustomColor",opacity:".6"})],-1),Nb=[_b];function Db(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Nb])}const Tb={render:Db},Pb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Sad-Concerned-Natural",d:"m31.234 20.422-.911.402c-5.242 2.081-13.188 1.209-18.046-1.123-.567-.272-.18-1.153.402-1.108 14.919 1.151 24.963-8.146 28.375-14.44.101-.187.407-.208.482-.034 2.308 5.319-4.45 13.985-10.302 16.303m49.532 0 .911.402c5.242 2.081 13.188 1.209 18.046-1.123.567-.272.18-1.153-.402-1.108-14.919 1.151-24.963-8.146-28.375-14.44-.101-.187-.407-.208-.482-.034-2.308 5.319 4.45 13.985 10.302 16.303",class:"CustomColor",opacity:".6"})],-1),Ob=[Pb];function Fb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ob])}const Lb={render:Fb},$b=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyebrow/Outline/Default",opacity:".6"},[t.createElementVNode("path",{id:"I-Browse",d:"M15.63 17.159c3.915-5.51 14.648-8.598 23.893-6.328a2 2 0 0 0 .954-3.884C29.74 4.31 17.312 7.887 12.37 14.84a2 2 0 0 0 3.26 2.318Zm80.74 0c-3.915-5.51-14.648-8.598-23.893-6.328a2 2 0 0 1-.954-3.884c10.737-2.637 23.165.94 28.108 7.894a2 2 0 0 1-3.26 2.318Z",class:"CustomColor"})])],-1),Rb=[$b];function Hb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Rb])}const zb={render:Hb},Ib=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyebrow/Outline/Raised-Excited",opacity:".6"},[t.createElementVNode("path",{id:"I-Browse",d:"M15.976 17.128C17.47 7.605 30.059 1.108 39.164 5.3a2 2 0 0 0 1.672-3.633c-11.487-5.29-26.9 2.664-28.812 14.84a2 2 0 1 0 3.952.62Zm80.048 0C94.53 7.605 81.942 1.108 72.837 5.3a2 2 0 0 1-1.673-3.633c11.487-5.29 26.9 2.664 28.812 14.84a2 2 0 0 1-3.952.62Z",class:"CustomColor"})])],-1),Gb=[Ib];function jb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Gb])}const qb={render:jb},Wb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Eyebrow/Natural/Unibrow-Natural",opacity:".6"},[t.createElementVNode("path",{d:"M56.997 12.82q0-.005 0 0m2.559 2.805c1.892 1.101 4.717 1.734 6.315 1.94 6.277.807 12.266-1.535 18.386-2.68 5.432-1.015 11.625-1.925 16.73.91.13.072 1.162.667 1.707 1.184a.81.81 0 0 0 1.291-.224c1.325-2.726-6.402-8.594-7.865-9.153-6.627-2.528-15.176.704-21.796 2.001-3.717.728-7.462 1.252-11.115 2.29-1.31.373-2.58 1.007-3.862 1.218-.162-.224-.362-.36-.588-.352-1.17.04-2.796 3.557-.56 3.676.7.038 1.13-.312 1.357-.81",class:"CustomColor"}),t.createElementVNode("path",{d:"M55.003 12.79q.002-.005 0 0M15.881 7.573c6.626-2.528 15.176.705 21.796 2.001 3.716.729 7.461 1.253 11.114 2.291 1.47.418 2.887 1.165 4.33 1.274.7.053 1.106.903.635 1.435-1.545 1.74-5.586 2.7-7.626 2.962-6.278.807-12.267-1.534-18.387-2.679-5.432-1.016-11.624-1.925-16.73.91-.13.071-1.161.666-1.707 1.184a.81.81 0 0 1-1.29-.224C6.69 14 14.417 8.133 15.881 7.573m39.092 4.217c1.17.041 2.762 4.5.525 4.674-2.237.173-1.696-4.715-.525-4.674",class:"CustomColor"})])],-1),Yb=[Wb];function Ub(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Yb])}const Xb={render:Ub},Zb=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Default-Natural",d:"M26.547 6.148c-5.807.269-15.195 4.488-14.953 10.344.008.192.29.276.427.129 2.755-2.96 22.316-5.95 29.205-4.365.63.145 1.11-.477.71-.927-3.422-3.848-10.186-5.426-15.389-5.18m59.906-.001c5.807.269 15.195 4.488 14.953 10.344-.008.192-.29.276-.427.129-2.755-2.96-22.316-5.95-29.205-4.365-.63.145-1.11-.477-.71-.927 3.422-3.848 10.186-5.426 15.389-5.18",class:"CustomColor",opacity:".6"})],-1),Qb=[Zb];function Kb(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Qb])}const Jb={render:Kb},ex=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Natural/Raised-Excited-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303m66.468 0-.911-.402C83.08-.905 75.135-.033 70.277 2.299c-.567.272-.18 1.153.402 1.108 14.919-1.151 24.963 8.146 28.375 14.44.101.187.407.208.482.034 2.308-5.319-4.45-13.985-10.302-16.303",class:"CustomColor",opacity:".6"})],-1),tx=[ex];function ax(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...tx])}const nx={render:ax},rx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("path",{id:"Eyebrow/Outline/Up-Down",d:"M15.591 14.162c4.496-6.326 14.012-9.508 23.756-6.366a2 2 0 1 0 1.228-3.807c-11.408-3.68-22.74.11-28.244 7.856a2 2 0 1 0 3.26 2.317m80.786 6.996c-3.914-5.509-14.647-8.598-23.892-6.328a2 2 0 0 1-.954-3.884c10.736-2.637 23.165.94 28.107 7.895a2 2 0 1 1-3.26 2.317Z",class:"CustomColor",opacity:".6"})],-1),ox=[rx];function ix(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ox])}const sx={render:ix},lx={Angry:mb,FlatNatural:yb,SadConcerned:wb,UpDownNatural:Sb,AngryNatural:Vb,FrownNatural:Tb,SadConcernedNatural:Lb,Default:zb,RaisedExcited:qb,UnibrowNatural:Xb,DefaultNatural:Jb,RaisedExcitedNatural:nx,UpDown:sx},cx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Concerned" transform="translate(2 52)"><defs><path id="Mouth1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="MouthMask1" fill="#fff"><use href="#Mouth1" transform="matrix(1 0 0 -1 0 45)"></use></mask><use id="Mouth" fill="#000" href="#Mouth1" opacity=".7" transform="matrix(1 0 0 -1 0 45)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#MouthMask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#MouthMask1')"><g transform="translate(38 24)"><circle id="friend?" cx="11" cy="11" r="11"></circle><circle id="How-you-doing" cx="21" cy="11" r="11"></circle></g></g></g></g>',1),dx=[cx];function ux(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...dx])}const fx={render:ux},mx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Disbelief",fill:"#000",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14",transform:"matrix(1 0 0 -1 0 44)"})])],-1),hx=[mx];function px(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...hx])}const gx={render:px},yx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Grimace" transform="translate(2 52)"><defs><rect id="Grimace-path1" width="60" height="22" x="24" y="9" rx="11"></rect></defs><rect id="Mouth" width="64" height="26" x="22" y="7" fill="#000" opacity=".6" rx="13"></rect><mask id="Grimace-mask1" fill="#fff"><use href="#Grimace-path1"></use></mask><use id="Mouth" fill="#FFF" href="#Grimace-path1"></use><path id="Grimace-Teeth" fill="#E6E6E6" d="M71 22h-9v12h-4V22h-9v12h-4V22h-9v12h-4V22h-8v-4h8V6h4v12h9V6h4v12h9V6h4v12h9V6h4v12h8.867v4H75v12h-4z" mask="url('#Grimace-mask1')"></path></g></g>',1),kx=[yx];function bx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...kx])}const xx={render:bx},wx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Scream-Open" transform="translate(2 52)"><defs><path id="ScreamOpen-path1" d="M34.008 15.136C35.128 29.124 38.235 40.993 53.996 41c15.762.007 18.92-11.943 19.998-25.994.087-1.13-.82-2.006-1.957-2.006-6.686 0-9.367 1.994-18.048 2s-13.232-2-17.897-2c-1.143 0-2.196.737-2.084 2.136"></path></defs><mask id="ScreamOpen-mask1" fill="#fff"><use href="#ScreamOpen-path1" transform="matrix(1 0 0 -1 0 54)"></use></mask><use id="Mouth" fill="#000" href="#ScreamOpen-path1" opacity=".7" transform="matrix(1 0 0 -1 0 54)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#ScreamOpen-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#ScreamOpen-mask1')"><g id="Say-ahhhh" transform="translate(38 32)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),vx=[wx];function Ex(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...vx])}const Cx={render:Ex},Sx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Smile" transform="translate(2 52)"><defs><path id="Smile-path1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="Smile-mask1" fill="#fff"><use href="#Smile-path1"></use></mask><use id="Mouth" fill="#000" href="#Smile-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Smile-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#Smile-mask1')"><g transform="translate(38 24)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Mx=[Sx];function Bx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Mx])}const Ax={render:Bx},Vx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Twinkle",fill:"#000",opacity:".6",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40 16c0 5.372 6.158 9 14 9s14-3.628 14-9c0-1.105-.95-2-2-2-1.293 0-1.87.905-2 2-1.242 2.938-4.317 4.716-10 5-5.683-.284-8.758-2.062-10-5-.13-1.095-.707-2-2-2-1.05 0-2 .895-2 2"})])],-1),_x=[Vx];function Nx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[..._x])}const Dx={render:Nx},Tx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Default",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14"})])],-1),Px=[Tx];function Ox(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Px])}const Fx={render:Ox},Lx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Eating" transform="translate(2 52)"><g id="Om-Nom-Nom" fill="#000" opacity=".6" transform="translate(28 6)"><path id="Delicious" d="M16.19 10.106C16.019 4.996 11.793.797 6.295 0 9.66 1.959 11.98 5.495 11.98 9.677c0 5.668-5.473 10.568-11.803 10.568H0A13 13 0 0 0 4.392 21c5.322 0 9.821-3.153 11.294-7.486 2.475 2.156 6.177 3.525 10.314 3.525s7.84-1.37 10.314-3.525C37.787 17.847 42.286 21 47.608 21c1.552 0 3.034-.268 4.392-.756l-.177.001c-6.33 0-11.803-4.9-11.803-10.568 0-4.182 2.32-7.718 5.686-9.677-5.498.797-9.724 4.996-9.897 10.106-2.564 1.736-6.014 2.8-9.809 2.8s-7.245-1.064-9.81-2.8"></path></g><circle id="Redish" cx="17" cy="15" r="9" fill="#FF4646" opacity=".2"></circle><circle id="Redish" cx="91" cy="15" r="9" fill="#FF4646" opacity=".2"></circle></g></g>',1),$x=[Lx];function Rx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...$x])}const Hx={render:Rx},zx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Sad",fill:"#000",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("path",{id:"Mouth",d:"M40.058 16.654c.65 7.03 6.644 11.723 13.942 11.723 7.342 0 13.363-4.75 13.953-11.848.031-.378-.876-.676-1.324-.452q-8.308 4.16-12.629 4.16-4.266 0-12.446-4.069c-.507-.252-1.534.068-1.496.486",transform:"matrix(1 0 0 -1 0 44.377)"})])],-1),Ix=[zx];function Gx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Ix])}const jx={render:Gx},qx=t.createElementVNode("g",{transform:"translate(76 82)"},[t.createElementVNode("g",{id:"Mouth/Serious",fill:"#000",opacity:".7",transform:"translate(2 52)"},[t.createElementVNode("rect",{id:"Why-so-serious?",width:"24",height:"6",x:"42",y:"18",rx:"3"})])],-1),Wx=[qx];function Yx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Wx])}const Ux={render:Yx},Xx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Tongue" transform="translate(2 52)"><defs><path id="Tongue-path1" d="M29 15.609C30.41 25.23 41.062 33 54 33c12.968 0 23.646-7.817 25-18.26.101-.4-.225-1.74-2.174-1.74H31.174c-1.79 0-2.304 1.24-2.174 2.609"></path></defs><mask id="Tongue-mask1" fill="#fff"><use href="#Tongue-path1"></use></mask><use id="Mouth" fill="#000" href="#Tongue-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Tongue-mask1')" rx="5"></rect><path id="Tongue" fill="#FF4F6D" d="M65.984 23.747Q66 23.871 66 24v9c0 6.075-4.925 11-11 11h-1c-6.075 0-11-4.925-11-11v-9q0-.129.016-.253A2 2 0 0 1 43 23.5c0-1.933 2.91-3.5 6.5-3.5 2.01 0 3.808.491 5 1.263 1.192-.772 2.99-1.263 5-1.263 3.59 0 6.5 1.567 6.5 3.5q0 .124-.016.247"></path></g></g>',1),Zx=[Xx];function Qx(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...Zx])}const Kx={render:Qx},Jx=t.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Vomit" transform="translate(2 52)"><defs><path id="Vomit-path1" d="M34.008 12.602c1.12 10.49 4.227 19.392 19.988 19.398 15.762.006 18.92-8.958 19.998-19.495.087-.848-.82-1.505-1.957-1.505-6.686 0-9.367 1.495-18.048 1.5S40.757 11 36.092 11c-1.143 0-2.196.552-2.084 1.602"></path><path id="Vomit-path2" d="M59.917 36H60a6 6 0 1 0 12 0v-5a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v7a6 6 0 1 0 12 0v-2h.083a6.002 6.002 0 0 1 11.834 0"></path><filter id="filter1" width="102.8%" height="105.3%" x="-1.4%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"></feComposite><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter></defs><mask id="Vomit-mask1" fill="#fff"><use href="#Vomit-path1" transform="matrix(1 0 0 -1 0 43)"></use></mask><use id="Mouth" fill="#000" href="#Vomit-path1" opacity=".7" transform="matrix(1 0 0 -1 0 43)"></use><rect id="Teeth" width="31" height="16" x="39" y="0" fill="#FFF" mask="url('#Vomit-mask1')" rx="5"></rect><g id="Vomit-Stuff"><use fill="#88C553" href="#Vomit-path2"></use><use filter="url('#filter1')" href="#Vomit-path2"></use></g></g></g>',1),ew=[Jx];function tw(e,a){return t.openBlock(),t.createElementBlock("svg",null,[...ew])}const aw={render:tw},nw={Concerned:fx,Disbelief:gx,Grimace:xx,ScreamOpen:Cx,Smile:Ax,Twinkle:Dx,Default:Fx,Eating:Hx,Sad:jx,Serious:Ux,Tongue:Kx,Vomit:aw},rw=(e="#6fb8e0")=>[t.h("g",{id:"Circle","stroke-width":"1","fill-rule":"evenodd",transform:"translate(12.000000, 40.000000)"},[t.h("mask",{id:"mask-1",fill:"white"},[t.h("use",{href:"#path-1"})]),t.h("use",{id:"Circle-Background",fill:"#E6E6E6",href:"#path-1"}),t.h("g",{id:"Color/Palette/Blue-01",mask:"url(#mask-1)",fill:e},[t.h("rect",{id:"Color",x:"0",y:"0",width:"240",height:"240"})])]),t.h("mask",{id:"mask-2",fill:"white"},[t.h("use",{href:"#path-2"})])],ow=e=>{const a={"--avataaar-hair-color":e.hairColor,"--avataaar-facial-hair-color":e.facialHairColor,"--avataaar-top-color":e.topColor,"--avataaar-shirt-color":e.clothesColor};return t.h("svg",{viewBox:"0 0 264 280",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.h("desc","vue3-avataaars"),t.h("defs",[t.h("circle",{id:"path-1",cx:"120",cy:"120",r:"120"}),t.h("path",{id:"path-2",d:"M12,160 C12,226.27417 65.72583,280 132,280 C198.27417,280 252,226.27417 252,160 L264,160 L264,-1.42108547e-14 L-3.19744231e-14,-1.42108547e-14 L-3.19744231e-14,160 L12,160 Z"}),t.h("path",{id:"path-silhouette",d:"M124,144.610951 L124,163 L128,163 L128,163 C167.764502,163 200,195.235498 200,235 L200,244 L0,244 L0,235 C-4.86974701e-15,195.235498 32.235498,163 72,163 L72,163 L76,163 L76,144.610951 C58.7626345,136.422372 46.3722246,119.687011 44.3051388,99.8812385 C38.4803105,99.0577866 34,94.0521096 34,88 L34,74 C34,68.0540074 38.3245733,63.1180731 44,62.1659169 L44,56 L44,56 C44,25.072054 69.072054,5.68137151e-15 100,0 L100,0 L100,0 C130.927946,-5.68137151e-15 156,25.072054 156,56 L156,62.1659169 C161.675427,63.1180731 166,68.0540074 166,74 L166,88 C166,94.0521096 161.51969,99.0577866 155.694861,99.8812385 C153.627775,119.687011 141.237365,136.422372 124,144.610951 Z"})]),t.h("g",{id:"Avataaar",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.h("g",{id:"Avataaar/Circle",transform:"translate(-825.000000, -1100.000000)"},[t.h("g",{transform:"translate(825.000000, 1100.000000)"},[e.isCircle?rw(e.circleColor):null,t.h("g",{id:"Mask"}),t.h("g",{id:"Avataaar","stroke-width":"1","fill-rule":"evenodd",fill:"black",mask:"url(#mask-2)",style:a},[t.h("g",{id:"Body",transform:"translate(32.000000, 36.000000)"},[t.h("mask",{id:"mask-silhouette",fill:"white"},[t.h("use",{href:"#path-silhouette"})]),t.h("use",{fill:e.skinColor,href:"#path-silhouette"}),t.h("path",{id:"Neck-Shadow",d:"M156,79 L156,102 C156,132.927946 130.927946,158 100,158 C69.072054,158 44,132.927946 44,102 L44,79 L44,94 C44,124.927946 69.072054,150 100,150 C130.927946,150 156,124.927946 156,94 L156,79 Z","fill-opacity":"0.100000001",fill:"#000000",mask:"url(#mask-silhouette)"})]),t.h(bh[e.clothes]),e.clothes==="GraphicShirt"?t.h(hk[e.graphicShirt]):null,t.h(cb[e.eyes]),t.h(lx[e.eyebrows]),t.h(nw[e.mouth]),t.h("svg",[t.h("g",{fill:"black",transform:"translate(76.000000, 82.000000)"},[t.h("g",{id:"Nose/Default",transform:"translate(28.000000, 40.000000)",opacity:"0.16"},[t.h("path",{id:"Nose",d:"M16,8 C16,12.418278 21.372583,16 28,16 L28,16 C34.627417,16 40,12.418278 40,8"})])])]),t.h(ey[e.top]),t.h(Ey[e.facialHair]),t.h(F9[e.accessories])])])])])])};function na(e){return e[Math.floor(Math.random()*e.length)]}function iw(e){return na(Object.keys(e))}function An(e){return e[iw(e)]}const F1={Black:"#262E33",Blue01:"#65C9FF",Blue02:"#5199E4",Blue03:"#25557C",Gray01:"#E6E6E6",Gray02:"#929598",Heather:"#3C4F5C",PastelBlue:"#B1E2FF",PastelGreen:"#A7FFC4",PastelOrange:"#FFBC69",PastelRed:"#FFAFB9",PastelYellow:"#FFFFB1",Pink:"#FF488E",Red:"#FF5C5C",White:"#FFFFFF"},L1={Auburn:"#A55728",Black:"#2C1B18",Blonde:"#B58143",BlondeGolden:"#D6B370",Brown:"#724133",BrownDark:"#4A312C",PastelPink:"#F59797",Platinum:"#ECDCBF",Red:"#C93305",SilverGray:"#E8E1E1"},sw={Tanned:"#FD9841",Yellow:"#F8D25C",Pale:"#FFDBB4",Light:"#EDB98A",Brown:"#D08B5B",DarkBrown:"#AE5D29",Black:"#614335"},lw=["Blank","Prescription01","Round","Wayfarers","Kurt","Prescription02","Sunglasses"],cw=["Close","Default","EyeRoll","Hearts","Squint","Wink","Cry","Dizzy","Happy","Side","Surprised","WinkWacky"],dw=["Angry","FlatNatural","SadConcerned","UpDownNatural","AngryNatural","FrownNatural","SadConcernedNatural","Default","RaisedExcited","UnibrowNatural","DefaultNatural","RaisedExcitedNatural","UpDown"],uw=["BeardMajestic","BeardLight","MoustacheFancy","BeardMedium","Blank","MoustacheMagnum"],fw=["Concerned","Disbelief","Grimace","ScreamOpen","Smile","Twinkle","Default","Eating","Sad","Serious","Tongue","Vomit"],mw=["Eyepatch","Hat","Hijab","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairMiaWallace","LongHairNotTooLong","LongHairShavedSides","LongHairStraight","LongHairStraight2","LongHairStraightStrand","NoHair","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4"],hw=["BlazerShirt","CollarSweater","BlazerSweater","Hoodie","GraphicShirt","Overall","ShirtCrewNeck","ShirtVNeck","ShirtScoopNeck"],pw=["Bat","Cumbia","Diamond","Pizza","Selena","SkullOutline","Bear","Deer","Hola","Resist","Skull"],wr=(e={})=>{var a,n,r,o,i,s,l,c,m,u,f,d,p,h;return{isCircle:e.isCircle===void 0?!1:e.isCircle,circleColor:(a=e.circleColor)!=null?a:void 0,skinColor:(n=e.skinColor)!=null?n:An(sw),hairColor:(r=e.hairColor)!=null?r:An(L1),topColor:(o=e.topColor)!=null?o:An(F1),clothesColor:(i=e.clothesColor)!=null?i:An(F1),facialHairColor:(s=e.facialHairColor)!=null?s:An(L1),accessories:(l=e.accessories)!=null?l:na(lw),eyes:(c=e.eyes)!=null?c:na(cw),eyebrows:(m=e.eyebrows)!=null?m:na(dw),mouth:(u=e.mouth)!=null?u:na(fw),top:(f=e.top)!=null?f:na(mw),clothes:(d=e.clothes)!=null?d:na(hw),graphicShirt:(p=e.graphicShirt)!=null?p:na(pw),facialHair:(h=e.facialHair)!=null?h:na(uw)}},$1={isCircle:!0,circleColor:"#22c55e",skinColor:"#D08B5B",hairColor:"#E8E1E1",topColor:"#E6E6E6",clothesColor:"blue",facialHairColor:"#E8E1E1",accessories:"Blank",eyes:"Default",eyebrows:"DefaultNatural",mouth:"Default",top:"NoHair",clothes:"GraphicShirt",graphicShirt:"Pizza",facialHair:"Blank"},gw={class:"main-container"},yw=["src"],kw={key:1,class:"avatar-section flex flex-col"},bw={id:"avatar-container",class:"avatar-container"},xw={class:"controls"},ww={class:"checkbox-label checkbox-wrapper-2",for:"avatarLabel"},R1=je({__name:"randomAvatar",props:{content:{type:String,default:null}},emits:["base64","random"],setup(e,{emit:a}){const n=t.ref($1),r=t.ref($1),o=t.ref(!1);t.onMounted(async()=>{n.value=wr(n.value),await t.nextTick(),m()});const i=a,s=e,l=async()=>{if(o.value)n.value=wr(r.value);else{const u={...r.value,facialHair:"Blank"};n.value=wr(u)}await t.nextTick(),m()},c=async()=>{n.value=wr({isCircle:!0,circleColor:"#22c55e",facialHair:o.value?"Blank":null});const u=n.value;r.value=u,await t.nextTick(),m()},m=()=>{const u=document.querySelector("#avatar-container svg");if(!u){console.error("Avatar não encontrado!");return}let d=new XMLSerializer().serializeToString(u);const h=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(d)))}`;i("base64",h)};return(u,f)=>(t.openBlock(),t.createElementBlock("main",gw,[s.content?(t.openBlock(),t.createElementBlock("img",{key:0,class:"max-w-[45%] max-h-[45%] flex items-center justify-center mx-auto",src:s.content},null,8,yw)):(t.openBlock(),t.createElementBlock("section",kw,[t.createElementVNode("div",bw,[t.createVNode(t.unref(ow),t.normalizeProps(t.guardReactiveProps(n.value)),null,16)]),t.createElementVNode("div",xw,[t.createElementVNode("label",ww,[t.withDirectives(t.createElementVNode("input",{id:"avatarLabel","onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),type:"checkbox",onInput:l,class:"sc-gJwTLC ikxBAC"},null,544),[[t.vModelCheckbox,o.value]]),f[1]||(f[1]=t.createTextVNode(" Remover barba "))]),t.createElementVNode("button",{onClick:c,class:"generate-button"}," Gerar Avatar ")])]))]))}},[["__scopeId","data-v-a1b7ef69"]]),vw={class:"modal_container"},Ew={class:"modal_box"},Cw={class:"modal_header"},H1=je({__name:"min_modal",props:{defineWidth:{type:String,default:"max-width-md"}},emits:["close"],setup(e,{emit:a}){const n=a,r=()=>{n("close")};return(o,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"min_modal"},[t.createElementVNode("div",{class:"modal_overlay",onClick:r})]),t.createElementVNode("div",vw,[t.createElementVNode("div",{class:t.normalizeClass(["modal_content ",e.defineWidth])},[t.createElementVNode("div",Ew,[t.createElementVNode("div",Cw,[t.renderSlot(o.$slots,"header",{},void 0,!0),t.createElementVNode("button",{class:"modal_close",onClick:i[0]||(i[0]=s=>r())},i[1]||(i[1]=[t.createElementVNode("svg",{class:"modal_close_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),t.createElementVNode("div",null,[t.renderSlot(o.$slots,"body",{},void 0,!0)])])],2)])],64))}},[["__scopeId","data-v-172c0a39"]]),Sw={v:"5.4.4",fr:30,ip:0,op:110,w:800,h:600,nm:"Comp 1",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Sub Rocket 01",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
97
97
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:0,op:15,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Sub Rocket 09",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
98
98
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:90,op:105,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Sub Rocket 07",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
99
99
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:60,op:75,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Sub Rocket 05",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
@@ -117,4 +117,4 @@ $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833]
|
|
|
117
117
|
$bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0},{ddd:0,ind:36,ty:4,nm:"Sub Rocket 01 Joint",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
118
118
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[520.1,-144.585],[290.744,84.771],[288.864,289.211],[520.1,57.975]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[57.36,0],e:[556.36,0],to:[83.167,0],ti:[0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[556.36,0],e:[57.36,0],to:[0,0],ti:[83.167,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
119
119
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833],y:[.833,.833]},o:{x:[.167,.167],y:[.167,.167]},t:0,s:[100,100],e:[-100,100]},{i:{x:[.833,.833],y:[.833,.833]},o:{x:[.167,.167],y:[.167,.167]},t:15,s:[-100,100],e:[100,100]},{t:30}],ix:3,x:`var $bm_rt;
|
|
120
|
-
$bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"Position Control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:400,ix:3},y:{a:1,k:[{i:{x:[.349],y:[1]},o:{x:[.039],y:[.602]},t:0,s:[840],e:[300]},{i:{x:[.65],y:[1]},o:{x:[.333],y:[0]},t:30,s:[300],e:[460]},{i:{x:[.818],y:[.968]},o:{x:[.023],y:[.564]},t:80,s:[460],e:[-420]},{t:96}],ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.49,.49,.49],y:[1,1,1]},o:{x:[.49,.49,.49],y:[0,0,0]},t:15,s:[70,70,100],e:[40,40,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle Rate",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:0,k:0,ix:1}}]}],ip:0,op:100,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Rocket",parent:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.833,0,0],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[148.754,148.754,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.21],y:[.928]},o:{x:[.04],y:[.361]},t:0,s:[.667],e:[2]},{i:{x:[.38],y:[1]},o:{x:[.49],y:[0]},t:30.062,s:[2],e:[3.2]},{i:{x:[.82],y:[.986]},o:{x:[.49],y:[0]},t:80,s:[3.2],e:[4.333]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:96,s:[4.333],e:[4.333]},{t:130}],ix:2},w:600,h:600,ip:0,op:110,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fire 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fire 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,329.554],[-38.976,320.296],[.001,386.814],[38.976,320.296],[45.339,329.554]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fire 1 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,136.488,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,136.488,100],e:[100,101,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,101,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Scale Wiggle",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:29,s:[0],e:[1]},{t:30}],ix:1}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,107.501],[-24.746,101.624],[0,143.856],[24.746,101.624],[28.785,107.501]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fire 2 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,144.049,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,144.049,100],e:[100,96,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,96,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,169.194],[-38.976,159.936],[.001,226.454],[38.976,159.936],[45.339,169.194]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,168.845],[-38.976,159.587],[.001,226.105],[38.976,159.587],[45.339,168.845]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-142,ix:10},p:{a:0,k:[401.5,412,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:74,s:[0],e:[100]},{t:78}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[6],e:[100]},{t:75}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[5],e:[0]},{t:78}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:71,op:110,st:71,bm:0},{ddd:0,ind:8,ty:4,nm:"Line 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-7,ix:10},p:{a:0,k:[405.5,406,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0],e:[100]},{t:75}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[6],e:[100]},{t:72}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[5],e:[0]},{t:75}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:68,op:110,st:68,bm:0},{ddd:0,ind:9,ty:4,nm:"Line 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-88,ix:10},p:{a:0,k:[399.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:69,s:[0],e:[100]},{t:73}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[6],e:[100]},{t:70}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[5],e:[0]},{t:73}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:66,op:110,st:66,bm:0},{ddd:0,ind:10,ty:4,nm:"Line 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-197,ix:10},p:{a:0,k:[395.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[0],e:[100]},{t:70}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[6],e:[100]},{t:67}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[5],e:[0]},{t:70}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:63,op:110,st:63,bm:0},{ddd:0,ind:11,ty:4,nm:"Line 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:98,ix:10},p:{a:0,k:[393.5,418,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:55,s:[0],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[6],e:[100]},{t:56}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[5],e:[0]},{t:59}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:52,op:110,st:52,bm:0},{ddd:0,ind:12,ty:4,nm:"Line 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:68,ix:10},p:{a:0,k:[411.5,320,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:37,s:[0],e:[100]},{t:41}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[6],e:[100]},{t:38}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[5],e:[0]},{t:41}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:34,op:110,st:34,bm:0},{ddd:0,ind:13,ty:4,nm:"Blasting Circle 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,855,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:14,ty:4,nm:"Blasting Circle 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,615,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:15,ty:4,nm:"Blasting Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,415,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:61,s:[1007,1007],e:[0,0]},{t:71}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[5],e:[0]},{t:71}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:61,op:110,st:61,bm:0},{ddd:0,ind:16,ty:4,nm:"Blasting Circle ",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[399,320,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:40,s:[1007,1007],e:[0,0]},{t:50}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[5],e:[0]},{t:50}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:40,op:110,st:40,bm:0},{ddd:0,ind:17,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"rc",d:1,s:{a:0,k:[800,600],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.03137254902,.101960784314,.149019607843,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:110,op:110,st:0,bm:0,hidden:0}],markers:[]},Mw={class:"main-send-suggestion"},Bw={key:0,class:"sent-suggestion-section"},Aw={class:"sent-suggestion-content"},Vw={class:"container-send-suggestion"},_w={key:0,class:"tool_tip_suggestion_error"},Nw={key:0,class:"loader-suggestion"},Dw={key:1},Tw=je({__name:"sendSuggestion",props:{loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["postSuccess"],setup(e,{emit:a}){const n=a,r=t.ref(""),o=t.ref(!1),i=()=>{if(o.value=!1,!r.value){o.value=!0;return}n("postSuccess",r.value)};return(s,l)=>{const c=t.resolveComponent("Vue3Lottie");return t.openBlock(),t.createElementBlock("main",Mw,[e.sentSuccess?(t.openBlock(),t.createElementBlock("section",Bw,[t.createElementVNode("div",Aw,[l[2]||(l[2]=t.createElementVNode("p",{class:"text-lg font-semibold uppercase"}," Sua sugestão foi recebida com sucesso ",-1)),t.createVNode(c,{"animation-data":t.unref(Sw),height:200,width:200,"auto-play":!0,loop:!0},null,8,["animation-data"]),l[3]||(l[3]=t.createElementVNode("span",{class:"flex flex-col gap-3 lg:text-justify"},[t.createElementVNode("p",{class:"font-semibold"}," Nossa equipe irá avaliá-la com atenção e considerar sua implementação. "),t.createElementVNode("p",{class:"text-[12px]"}," Você irá receber um e-mail com as informações da solicitação e nossa equipe irá responder em até 30 dias ")],-1)),l[4]||(l[4]=t.createElementVNode("p",{class:"font-bold"},"Agradecemos sua colaboração",-1))])])):t.createCommentVNode("",!0),t.createElementVNode("section",Vw,[l[5]||(l[5]=t.createElementVNode("h1",{class:"header_send_suggestion"},"Envie sua sugestão para nós",-1)),t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=m=>r.value=m),class:"input_send_suggestion textarea-send-suggestion",placeholder:"Gostaria que vocês adicionassem...",type:"text"},null,512),[[t.vModelText,r.value]]),o.value?(t.openBlock(),t.createElementBlock("span",_w," Por favor, preencha o campo antes de continuar ")):t.createCommentVNode("",!0),t.createElementVNode("button",{onClick:l[1]||(l[1]=m=>i()),class:"submit-button-send-suggestion"},[e.loader?(t.openBlock(),t.createElementBlock("div",Nw)):(t.openBlock(),t.createElementBlock("p",Dw,"Enviar"))])])])}}},[["__scopeId","data-v-839ab724"]]),Pw=e=>`<svg class="${e}" aria-hidden="true" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778" /> </svg>`,Ow=e=>`<svg class="${e}" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 10h16m-8-3V4M7 7V4m10 3V4M5 20h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Zm3-7h.01v.01H8V13Zm4 0h.01v.01H12V13Zm4 0h.01v.01H16V13Zm-8 4h.01v.01H8V17Zm4 0h.01v.01H12V17Zm4 0h.01v.01H16V17Z" /> </svg>`,Fw=["innerHTML"],z1={__name:"svg",props:{svgContent:{type:String,required:!0}},setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("div",{innerHTML:e.svgContent},null,8,Fw))}},Lw={class:"feature-card__header"},$w={class:"feature-card__title"},Rw={class:"flex items-center gap-2"},Hw={key:0,class:"sparkle-badge"},zw={key:0},Iw={class:"feature-card__content"},Gw={class:"feature-card__description scroll_area_feature_card"},jw=["innerHTML"],qw=["href"],Ww={class:"feature-card__footer"},Yw={class:"feature-card__footer-section"},I1=je({__name:"feature_card",props:{state:{type:String,required:!0,default:"updated"},title:{type:String,required:!0},description:{type:String,required:!0},date:{type:[String,null],required:!0},tutorial:{type:String,default:null},flag:{type:String,required:!0},sparkles:{type:Boolean,default:!1}},setup(e){const a=t.ref(!1),n=t.ref(null),r=e;li(n,()=>{a.value=!1});const i=t.computed(()=>({"arrow-icon-patch-notes":!0,rotate:!a.value})),s=t.computed(()=>({"feature-card":!0,"feature-card--updated":r.state==="updated","feature-card--future":r.state==="future-update","feature-card--other":r.state!=="updated"&&r.state!=="future-update"})),l=t.computed(()=>({"pill-flag":!0,"pill-flag--new-feature":r.flag==="new-feature","pill-flag--improvement":r.flag==="improvement","pill-flag--bug-fix":r.flag==="bug-fix"})),c=t.computed(()=>r.flag==="improvement"?"Melhorias":r.flag==="new-feature"?"Novo Recurso":"correção de erros"),m=t.computed(()=>({"pill-date":!0,"pill-date--updated":r.state==="updated","pill-date--future":r.state!=="updated"}));return(u,f)=>{const d=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("main",{class:t.normalizeClass(["feature_style relative",s.value]),ref_key:"targetFeatureCard",ref:n,onClick:f[0]||(f[0]=p=>a.value=!a.value)},[t.createElementVNode("header",Lw,[t.createElementVNode("h1",$w,t.toDisplayString(e.title),1),t.createElementVNode("section",Rw,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),viewBox:"0 0 24 24",fill:"none"},f[1]||(f[1]=[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M15 11L12 8M12 8L9 11M12 8V16M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)),e.sparkles?(t.openBlock(),t.createElementBlock("div",Hw,f[2]||(f[2]=[t.createStaticVNode('<svg class="size-4" viewBox="0 0 128 128" data-v-252b53a7><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-252b53a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-252b53a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-252b53a7></path><g data-v-252b53a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-252b53a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-252b53a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-252b53a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-252b53a7></path></svg>',1)]))):t.createCommentVNode("",!0)])]),t.createVNode(t.Transition,{name:"fade-slide"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",zw,[f[4]||(f[4]=t.createElementVNode("hr",{class:"feature-card__divider"},null,-1)),t.createElementVNode("section",Iw,[t.createElementVNode("span",Gw,[t.createElementVNode("p",{class:"feature-card__paragraph",innerHTML:e.description.replace(/\n/g,"<br>")},null,8,jw)]),e.tutorial?(t.openBlock(),t.createElementBlock("a",{key:0,class:"feature-card__tutorial-button",href:e.tutorial,target:"__blank"},[f[3]||(f[3]=t.createTextVNode(" Veja o tutorial ")),t.createVNode(z1,{svgContent:t.unref(Pw)("size-4 text-blue-900")},null,8,["svgContent"])],8,qw)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),_:1}),t.createElementVNode("footer",Ww,[t.createElementVNode("section",Yw,[t.createElementVNode("span",{class:t.normalizeClass(l.value)},t.toDisplayString(c.value),3),t.createVNode(d,{class:"pill_date_popper",hover:"",disabled:e.state==="updated",arrow:!0,content:"Essa é uma data prevista para o lançamento deste recurso, a mesma está sujeita a mudanças a qualquer momento"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(m.value)},[t.createVNode(z1,{svgContent:t.unref(Ow)("size-4 text-white")},null,8,["svgContent"]),t.createElementVNode("p",null,t.toDisplayString(new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(e.date+"T12:00:00")).replace(/ de /g," ")),1)],2)]),_:1},8,["disabled"])])])],2)}}},[["__scopeId","data-v-252b53a7"]]),Uw={class:"modal-container-patch-notes"},Xw={class:"modal-content-patch-notes scroll_area_patch_notes_latest_update"},Zw={class:"modal-header-patch-notes"},Qw={class:"modal-body-patch-notes"},Kw={class:"modal-body-control"},Jw={class:"modal-section-patch-notes updates-section-patch-notes"},ev={key:0,class:"sections-skeleton-loader"},tv={class:"skeleton-loader skeleton-color-latest_update"},av={key:1,class:"text-not-patchs"},nv={class:"modal-section-patch-notes future-section-patch-notes"},rv={key:0,class:"sections-skeleton-loader"},ov={class:"skeleton-loader skeleton-color-latest_update"},iv={key:1,class:"text-not-patchs"},G1=je({__name:"patchNotes",props:{future_updates:{type:[Object,null],required:!0},latest_update:{type:[Object,null],required:!0},loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["close","postSuggestion","loadMoreFutureUpdates","loadMoreLatestUpdates"],setup(e,{emit:a}){const n=t.ref(1),r=t.ref(1),o=t.ref(null),i=t.ref(null),s=a,l=d=>{s("postSuggestion",d)},c=()=>{s("close"),n.value=1,r.value=1},m=({loaded:d,complete:p})=>{s("loadMoreFutureUpdates",{loaded:d,complete:p,page:n.value}),n.value++},u=({loaded:d,complete:p})=>{s("loadMoreLatestUpdates",{loaded:d,complete:p,page:r.value}),r.value++},f=d=>{if(!d)return!1;const p=new Date,h=new Date(d+"T12:00:00");return Math.abs(p-h)/(1e3*60*60*24)<=3};return(d,p)=>(t.openBlock(),t.createElementBlock("main",null,[p[8]||(p[8]=t.createElementVNode("div",{class:"modal-overlay-patch-notes"},[t.createElementVNode("div",{class:"modal-backdrop-patch-notes"})],-1)),t.createElementVNode("div",Uw,[t.createElementVNode("div",Xw,[t.createElementVNode("div",Zw,[t.createElementVNode("button",{onClick:p[0]||(p[0]=h=>c()),class:"modal-close-btn-patch-notes"},p[1]||(p[1]=[t.createElementVNode("svg",{class:"modal-close-icon-patch-notes","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),t.createElementVNode("div",Qw,[t.createElementVNode("div",Kw,[t.createElementVNode("section",Jw,[p[4]||(p[4]=t.createElementVNode("h1",{class:"header_latest_update"},"Ultimas Atualizações",-1)),t.createElementVNode("div",{ref_key:"scrollLasContainer",ref:i,class:"features-list scrollable-section scroll_area_patch_notes_latest_update"},[e.latest_update?e.latest_update<=0?(t.openBlock(),t.createElementBlock("span",av," Nenhuma atualização programada ")):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("section",ev,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(15,h=>t.createElementVNode("div",tv)),64))])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.latest_update,(h,g)=>(t.openBlock(),t.createBlock(I1,{key:g,state:"updated",title:h.title,description:h.description,date:h.launched_at,tutorial:h.tutorial,flag:h.flag,sparkles:f(h.launched_at)},null,8,["title","description","date","tutorial","flag","sparkles"]))),128)),t.createVNode(t.unref(Co),{distance:20,target:i.value,onInfinite:u},{complete:t.withCtx(()=>p[2]||(p[2]=[t.createElementVNode("span",{class:""},null,-1)])),spinner:t.withCtx(()=>p[3]||(p[3]=[t.createElementVNode("section",{class:"sections-skeleton-loader"},[t.createElementVNode("div",{class:"skeleton-loader skeleton-color-latest_update"},[t.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)]),t.createElementVNode("section",nv,[p[7]||(p[7]=t.createElementVNode("h1",{class:"header_future_updates"},"Futuras Atualizações",-1)),t.createElementVNode("div",{ref_key:"scrollFutContainer",ref:o,class:"features-list scrollable-section scroll_area_patch_notes_future_updates"},[e.future_updates?e.future_updates<=0?(t.openBlock(),t.createElementBlock("span",iv," Nenhuma atualização programada ")):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.future_updates,(h,g)=>(t.openBlock(),t.createBlock(I1,{key:g,state:"future-update",title:h.title,description:h.description,date:h.launched_at,tutorial:h.tutorial,flag:h.flag},null,8,["title","description","date","tutorial","flag"]))),128)):(t.openBlock(),t.createElementBlock("section",rv,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(15,h=>t.createElementVNode("div",ov)),64))])),t.createVNode(t.unref(Co),{distance:20,target:o.value,onInfinite:m},{complete:t.withCtx(()=>p[5]||(p[5]=[t.createElementVNode("span",{class:""},null,-1)])),spinner:t.withCtx(()=>p[6]||(p[6]=[t.createElementVNode("section",{class:"sections-skeleton-loader"},[t.createElementVNode("div",{class:"skeleton-loader skeleton-color-future_updates"},[t.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)])]),t.createVNode(Tw,{loader:e.loader,sentSuccess:e.sentSuccess,onPostSuccess:l},null,8,["loader","sentSuccess"])])])])]))}},[["__scopeId","data-v-f7b5b5bc"]]),sv={key:0,class:"sparkle-badge"},lv={key:0,class:"text-white text-center flex-1"},cv={key:1,class:"sparkle-badge"},j1=je({__name:"btnNewUpdates",props:{type:{type:String,default:"attendant",required:!0},mode:{type:String,default:"dark"},sparkles:{type:Boolean,default:!1}},emits:["openNewUpdates"],setup(e,{emit:a}){const n=a,r=e,o=(l,c)=>{const m={attendant:{container:"main-container-new-update",button:"update-button",tooltip:"tooltip-new-update",iconSize:"size-4",usePopper:!1,text:null},managerSideBarClose:{container:"main-container-new-update-manager-close",button:"new_update-button ",tooltip:null,iconSize:"size-6",usePopper:!0,text:null},managerSideBarOpen:{container:"main-container-new-update-manager-open",button:"new_update-button-open-side open-width",tooltip:null,iconSize:"size-6",usePopper:!1,text:"Notas de atualização"}};return m[l]||m.attendant},i=t.computed(()=>o(r.type,r.sparkles)),s=()=>{n("openNewUpdates")};return(l,c)=>(t.openBlock(),t.createElementBlock("main",{class:t.normalizeClass(["relative",i.value.container]),onClick:s},[i.value.usePopper?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("button",{class:t.normalizeClass(i.value.button)},c[0]||(c[0]=[t.createElementVNode("svg",{class:"new_update-icon",fill:"currentColor",viewBox:"0 0 420.827 420.827"},[t.createElementVNode("g",null,[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),t.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])])],-1)]),2),e.sparkles?(t.openBlock(),t.createElementBlock("div",sv,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},c[1]||(c[1]=[t.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>',5)]),2))])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{class:t.normalizeClass(["relative",i.value.button])},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.mode==="dark"?"dark_new_update-icon":"new_update-icon"),fill:"currentColor",viewBox:"0 0 420.827 420.827"},c[2]||(c[2]=[t.createElementVNode("g",null,[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),t.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])],-1)]),2)),i.value.text?(t.openBlock(),t.createElementBlock("span",lv,t.toDisplayString(i.value.text),1)):t.createCommentVNode("",!0),e.sparkles?(t.openBlock(),t.createElementBlock("div",cv,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},c[3]||(c[3]=[t.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>',5)]),2))])):t.createCommentVNode("",!0)],2),t.withDirectives(t.createElementVNode("p",{class:t.normalizeClass(i.value.tooltip)}," Notas de atualização ",2),[[t.vShow,i.value.tooltip]])],64))],2))}},[["__scopeId","data-v-b6196bab"]]);It.defineStore("debug",{state:()=>({message:"Debug store initialized"}),actions:{logMessage(){console.log(this.message)}}});function dv(e){e.component("primarySelect",ci),e.component("departSelect",T1),e.component("attendantSelect",P1),e.component("SimpleModal",di),e.component("simpleCard",ui),e.component("instanceSelect",Zi),e.component("calendar",il),e.component("MFA",sl),e.component("MfaQrCode",$5),e.component("chatWindow",N1),e.component("FilterSelectLib",O1),e.component("MobileInternalChat",D1),e.component("RandomAvatar",R1),e.component("MinModal",H1),e.component("LibPatchNotes",G1),e.component("BtnNewUpdates",j1)}function q1(e,a="add"){const n=Zo();a==="add"?n.addDepartments(e):a==="delete"?n.removeDepartments(e):a==="update"?(n.departments=e,n.loaded=!0):console.error(`Ação "${a}" não suportada em attLibDeparts.`)}function W1(e,a="add"){const n=er();a==="add"?n.addAttendants(e):a==="delete"?n.removeAttendants(e):a==="update"?(n.attendants=e,n.loaded=!0):console.error(`Ação "${a}" não suportada em attLibAttendants.`)}function Y1(e,a="add"){const n=$r();a==="add"?n.addInstance(e):a==="delete"?n.removeInstance(e):a==="update"?(n.instances=e,n.loaded=!0):console.error(`Ação "${a}" não suportada em attLibInstances.`)}async function U1(e,a,n,r=[],o=[],i=[]){try{const s=await Xi(e);a&&await s.setToken(a),n&&(ra.defaults.baseURL=n);const l=Zo(e);o.length>0&&(l.departments=o,l.count=o.length);const c=er(e);r.length>0&&(c.attendants=r,c.count=r.length),await $r(e).fetchInstances()}catch(s){console.error("Erro no setupLibrary:",s)}}const uv={install:dv,setupLibrary:U1,attLibDeparts:q1,attLibAttendants:W1,attLibInstances:Y1,primarySelect:ci,simpleModal:di,simpleCard:ui,instanceSelect:Zi,calendar:il,MFA:sl,chatWindow:N1,departSelect:T1,attendantSelect:P1,FilterSelectLib:O1,MobileInternalChat:D1,RandomAvatar:R1,MinModal:H1,libPatchNotes:G1,btnNewUpdates:j1};function fv(e){e.CapacitorUtils.Synapse=new Proxy({},{get(a,n){return new Proxy({},{get(r,o){return(i,s,l)=>{const c=e.Capacitor.Plugins[n];if(c===void 0){l(new Error(`Capacitor plugin ${n} not found`));return}if(typeof c[o]!="function"){l(new Error(`Method ${o} not found in Capacitor plugin ${n}`));return}(async()=>{try{const m=await c[o](i);s(m)}catch(m){l(m)}})()}}})}})}function mv(e){e.CapacitorUtils.Synapse=new Proxy({},{get(a,n){return e.cordova.plugins[n]}})}function hv(e=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!e?fv(window):window.cordova!==void 0&&mv(window))}var X1;(function(e){e.Documents="DOCUMENTS",e.Data="DATA",e.Library="LIBRARY",e.Cache="CACHE",e.External="EXTERNAL",e.ExternalStorage="EXTERNAL_STORAGE",e.ExternalCache="EXTERNAL_CACHE",e.LibraryNoCloud="LIBRARY_NO_CLOUD",e.Temporary="TEMPORARY"})(X1||(X1={}));var Qo;(function(e){e.UTF8="utf8",e.ASCII="ascii",e.UTF16="utf16"})(Qo||(Qo={}));const vr=Bn("Filesystem",{web:()=>Promise.resolve().then(()=>Pv).then(e=>new e.FilesystemWeb)});hv();const pv=Bn("BlobWriter");function gv(e){return window.btoa(Array.from(new Uint8Array(e)).map(function(a){return String.fromCharCode(a)}).join(""))}function yv({path:e,directory:a,blob:n,recursive:r}){return vr.writeFile({directory:a,path:e,recursive:r,data:""}).then(function(){return new Promise(function(o,i){function s(c){i(c.target.error)}const l=window.indexedDB.open("Disc");l.onerror=s,l.onsuccess=function(){const m=l.result.transaction("FileStorage","readwrite");m.onerror=s;const u=m.objectStore("FileStorage"),f=`/${a}/${e.replace(/^\//,"")}`,d=u.get(f);d.onsuccess=function(){d.result.size=n.size,d.result.content=n;const p=u.put(d.result);p.onsuccess=function(){o(void 0)}}}})})}function Z1({path:e,directory:a,blob:n,recursive:r}){return vr.writeFile({directory:a,path:e,recursive:r,data:""}).then(function o(){if(n.size===0)return Promise.resolve();const i=3*128*1024,s=n.slice(0,i);return n=n.slice(i),new Response(s).arrayBuffer().then(function(c){return vr.appendFile({directory:a,path:e,data:gv(c)})}).then(o)})}function kv(e){const{path:a,directory:n,blob:r,fast_mode:o=!1,recursive:i,on_fallback:s}=e;return!r||!Number.isSafeInteger(r.size)||typeof r.type!="string"?Promise.reject(new Error("Not a Blob.")):pr.getPlatform()==="web"?o?yv(e):Z1(e):Promise.all([pv.get_config(),vr.getUri({path:a,directory:n})]).then(function([l,c]){const m=c.uri.replace("file://","");return(window.CapacitorWebFetch||window.fetch)(l.base_url+m+(i?"?recursive=true":""),{headers:{authorization:l.auth_token},method:"put",body:r}).then(function(f){if(f.status!==204)throw new Error("Bad HTTP status: "+f.status);return c.uri})}).catch(function(c){return s!==void 0&&s(c),Z1(e)})}const bv=Object.freeze(kv);function xv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q1={};function wv(e){return e&&e.__esModule?e:{default:e}}var vv=wv,Ko={exports:{}},K1;function Ev(){return K1||(K1=1,function(e){var a=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(V,w,X){V[w]=X.value},s,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",m=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(V,w,X){return Object.defineProperty(V,w,{value:X,enumerable:!0,configurable:!0,writable:!0}),V[w]}try{f({},"")}catch{f=function(w,X,K){return w[X]=K}}function d(V,w,X,K){var W=w&&w.prototype instanceof b?w:b,M=Object.create(W.prototype),J=new F(K||[]);return i(M,"_invoke",{value:Q(V,X,J)}),M}n.wrap=d;function p(V,w,X){try{return{type:"normal",arg:V.call(w,X)}}catch(K){return{type:"throw",arg:K}}}var h="suspendedStart",g="suspendedYield",k="executing",v="completed",x={};function b(){}function A(){}function _(){}var O={};f(O,c,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(q([])));S&&S!==r&&o.call(S,c)&&(O=S);var B=_.prototype=b.prototype=Object.create(O);A.prototype=_,i(B,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:A,configurable:!0}),A.displayName=f(_,u,"GeneratorFunction");function G(V){["next","throw","return"].forEach(function(w){f(V,w,function(X){return this._invoke(w,X)})})}n.isGeneratorFunction=function(V){var w=typeof V=="function"&&V.constructor;return w?w===A||(w.displayName||w.name)==="GeneratorFunction":!1},n.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,_):(V.__proto__=_,f(V,u,"GeneratorFunction")),V.prototype=Object.create(B),V},n.awrap=function(V){return{__await:V}};function T(V,w){function X(M,J,ce,z){var he=p(V[M],V,J);if(he.type==="throw")z(he.arg);else{var ee=he.arg,fe=ee.value;return fe&&typeof fe=="object"&&o.call(fe,"__await")?w.resolve(fe.__await).then(function(L){X("next",L,ce,z)},function(L){X("throw",L,ce,z)}):w.resolve(fe).then(function(L){ee.value=L,ce(ee)},function(L){return X("throw",L,ce,z)})}}var K;function W(M,J){function ce(){return new w(function(z,he){X(M,J,z,he)})}return K=K?K.then(ce,ce):ce()}i(this,"_invoke",{value:W})}G(T.prototype),f(T.prototype,m,function(){return this}),n.AsyncIterator=T,n.async=function(V,w,X,K,W){W===void 0&&(W=Promise);var M=new T(d(V,w,X,K),W);return n.isGeneratorFunction(w)?M:M.next().then(function(J){return J.done?J.value:M.next()})};function Q(V,w,X){var K=h;return function(M,J){if(K===k)throw new Error("Generator is already running");if(K===v){if(M==="throw")throw J;return oe()}for(X.method=M,X.arg=J;;){var ce=X.delegate;if(ce){var z=U(ce,X);if(z){if(z===x)continue;return z}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(K===h)throw K=v,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);K=k;var he=p(V,w,X);if(he.type==="normal"){if(K=X.done?v:g,he.arg===x)continue;return{value:he.arg,done:X.done}}else he.type==="throw"&&(K=v,X.method="throw",X.arg=he.arg)}}}function U(V,w){var X=w.method,K=V.iterator[X];if(K===s)return w.delegate=null,X==="throw"&&V.iterator.return&&(w.method="return",w.arg=s,U(V,w),w.method==="throw")||X!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+X+"' method")),x;var W=p(K,V.iterator,w.arg);if(W.type==="throw")return w.method="throw",w.arg=W.arg,w.delegate=null,x;var M=W.arg;if(!M)return w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,x;if(M.done)w[V.resultName]=M.value,w.next=V.nextLoc,w.method!=="return"&&(w.method="next",w.arg=s);else return M;return w.delegate=null,x}G(B),f(B,u,"Generator"),f(B,c,function(){return this}),f(B,"toString",function(){return"[object Generator]"});function E(V){var w={tryLoc:V[0]};1 in V&&(w.catchLoc=V[1]),2 in V&&(w.finallyLoc=V[2],w.afterLoc=V[3]),this.tryEntries.push(w)}function D(V){var w=V.completion||{};w.type="normal",delete w.arg,V.completion=w}function F(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(E,this),this.reset(!0)}n.keys=function(V){var w=Object(V),X=[];for(var K in w)X.push(K);return X.reverse(),function W(){for(;X.length;){var M=X.pop();if(M in w)return W.value=M,W.done=!1,W}return W.done=!0,W}};function q(V){if(V){var w=V[c];if(w)return w.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var X=-1,K=function W(){for(;++X<V.length;)if(o.call(V,X))return W.value=V[X],W.done=!1,W;return W.value=s,W.done=!0,W};return K.next=K}}return{next:oe}}n.values=q;function oe(){return{value:s,done:!0}}return F.prototype={constructor:F,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(D),!V)for(var w in this)w.charAt(0)==="t"&&o.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=s)},stop:function(){this.done=!0;var V=this.tryEntries[0],w=V.completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var w=this;function X(z,he){return M.type="throw",M.arg=V,w.next=z,he&&(w.method="next",w.arg=s),!!he}for(var K=this.tryEntries.length-1;K>=0;--K){var W=this.tryEntries[K],M=W.completion;if(W.tryLoc==="root")return X("end");if(W.tryLoc<=this.prev){var J=o.call(W,"catchLoc"),ce=o.call(W,"finallyLoc");if(J&&ce){if(this.prev<W.catchLoc)return X(W.catchLoc,!0);if(this.prev<W.finallyLoc)return X(W.finallyLoc)}else if(J){if(this.prev<W.catchLoc)return X(W.catchLoc,!0)}else if(ce){if(this.prev<W.finallyLoc)return X(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(V,w){for(var X=this.tryEntries.length-1;X>=0;--X){var K=this.tryEntries[X];if(K.tryLoc<=this.prev&&o.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var W=K;break}}W&&(V==="break"||V==="continue")&&W.tryLoc<=w&&w<=W.finallyLoc&&(W=null);var M=W?W.completion:{};return M.type=V,M.arg=w,W?(this.method="next",this.next=W.finallyLoc,x):this.complete(M)},complete:function(V,w){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&w&&(this.next=w),x},finish:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var X=this.tryEntries[w];if(X.finallyLoc===V)return this.complete(X.completion,X.afterLoc),D(X),x}},catch:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var X=this.tryEntries[w];if(X.tryLoc===V){var K=X.completion;if(K.type==="throw"){var W=K.arg;D(X)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(V,w,X){return this.delegate={iterator:q(V),resultName:w,nextLoc:X},this.method==="next"&&(this.arg=s),x}},n}(e.exports);try{regeneratorRuntime=a}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}}(Ko)),Ko.exports}var Jo,J1;function Cv(){return J1||(J1=1,Jo=Ev()),Jo}var ei,e0;function Sv(){if(e0)return ei;e0=1;function e(n,r,o,i,s,l,c){try{var m=n[l](c),u=m.value}catch(f){o(f);return}m.done?r(u):Promise.resolve(u).then(i,s)}function a(n){return function(){var r=this,o=arguments;return new Promise(function(i,s){var l=n.apply(r,o);function c(u){e(l,i,s,c,m,"next",u)}function m(u){e(l,i,s,c,m,"throw",u)}c(void 0)})}}return ei=a,ei}(function(e){var a=vv;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=a(Cv()),r=a(Sv());function o(s){return i.apply(this,arguments)}function i(){return(i=(0,r.default)(n.default.mark(function s(l){var c,m;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=document.createElement("video"),m=new Promise(function(f,d){c.addEventListener("loadedmetadata",function(){c.duration===1/0?(c.currentTime=Number.MAX_SAFE_INTEGER,c.ontimeupdate=function(){c.ontimeupdate=null,f(c.duration),c.currentTime=0}):f(c.duration)}),c.onerror=function(p){return d(p.target.error)}}),c.src=typeof l=="string"||l instanceof String?l:window.URL.createObjectURL(l),u.abrupt("return",m);case 4:case"end":return u.stop()}},s)}))).apply(this,arguments)}})(Q1);const Mv=xv(Q1),wa=()=>({value:!0}),Vn=()=>({value:!1}),Bv=()=>new Error("MISSING_PERMISSION"),Av=()=>new Error("ALREADY_RECORDING"),Vv=()=>new Error("DEVICE_CANNOT_VOICE_RECORD"),t0=()=>new Error("FAILED_TO_RECORD"),_v=()=>new Error("EMPTY_RECORDING"),ti=()=>new Error("RECORDING_HAS_NOT_STARTED"),a0=()=>new Error("FAILED_TO_FETCH_RECORDING"),ai=()=>new Error("COULD_NOT_QUERY_PERMISSION_STATUS"),n0={"audio/aac":".aac","audio/mp4":".mp3","audio/webm;codecs=opus":".ogg","audio/webm":".ogg","audio/ogg;codecs=opus":".ogg"},r0=()=>new Promise(()=>{});class zt{constructor(){this.mediaRecorder=null,this.chunks=[],this.pendingResult=r0()}static async canDeviceVoiceRecord(){var a;return((a=navigator==null?void 0:navigator.mediaDevices)===null||a===void 0?void 0:a.getUserMedia)==null||zt.getSupportedMimeType()==null?Vn():wa()}async startRecording(a){if(this.mediaRecorder!=null)throw Av();if(!(await zt.canDeviceVoiceRecord()).value)throw Vv();if(!(await zt.hasAudioRecordingPermission().catch(()=>wa())).value)throw Bv();return navigator.mediaDevices.getUserMedia({audio:!0}).then(o=>this.onSuccessfullyStartedRecording(o,a)).catch(this.onFailedToStartRecording.bind(this))}async stopRecording(){if(this.mediaRecorder==null)throw ti();try{return this.mediaRecorder.stop(),this.mediaRecorder.stream.getTracks().forEach(a=>a.stop()),this.pendingResult}catch{throw a0()}finally{this.prepareInstanceForNextOperation()}}static async hasAudioRecordingPermission(){return navigator.permissions.query==null?navigator.mediaDevices==null?Promise.reject(ai()):navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>wa()).catch(()=>{throw ai()}):navigator.permissions.query({name:"microphone"}).then(a=>({value:a.state==="granted"})).catch(()=>{throw ai()})}static async requestAudioRecordingPermission(){return(await zt.hasAudioRecordingPermission().catch(()=>Vn())).value?wa():navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>wa()).catch(()=>Vn())}pauseRecording(){if(this.mediaRecorder==null)throw ti();return this.mediaRecorder.state==="recording"?(this.mediaRecorder.pause(),Promise.resolve(wa())):Promise.resolve(Vn())}resumeRecording(){if(this.mediaRecorder==null)throw ti();return this.mediaRecorder.state==="paused"?(this.mediaRecorder.resume(),Promise.resolve(wa())):Promise.resolve(Vn())}getCurrentStatus(){return this.mediaRecorder==null?Promise.resolve({status:yr.NONE}):this.mediaRecorder.state==="recording"?Promise.resolve({status:yr.RECORDING}):this.mediaRecorder.state==="paused"?Promise.resolve({status:yr.PAUSED}):Promise.resolve({status:yr.NONE})}static getSupportedMimeType(){if((MediaRecorder==null?void 0:MediaRecorder.isTypeSupported)==null)return null;const a=Object.keys(n0).find(n=>MediaRecorder.isTypeSupported(n));return a??null}onSuccessfullyStartedRecording(a,n){return this.pendingResult=new Promise((r,o)=>{this.mediaRecorder=new MediaRecorder(a),this.mediaRecorder.onerror=()=>{this.prepareInstanceForNextOperation(),o(t0())},this.mediaRecorder.onstop=async()=>{var i,s,l;const c=zt.getSupportedMimeType();if(c==null){this.prepareInstanceForNextOperation(),o(a0());return}const m=new Blob(this.chunks,{type:c});if(m.size<=0){this.prepareInstanceForNextOperation(),o(_v());return}let u,f;n!=null?(u=`${(l=(s=(i=n.subDirectory)===null||i===void 0?void 0:i.match(/^\/?(.+[^/])\/?$/))===null||s===void 0?void 0:s[1])!==null&&l!==void 0?l:""}/recording-${new Date().getTime()}${n0[c]}`,await bv({blob:m,directory:n.directory,fast_mode:!0,path:u,recursive:!0})):f=await zt.blobToBase64(m);const d=await Mv(m);this.prepareInstanceForNextOperation(),r({value:{recordDataBase64:f,mimeType:c,msDuration:d*1e3,path:u}})},this.mediaRecorder.ondataavailable=i=>this.chunks.push(i.data),this.mediaRecorder.start()}),wa()}onFailedToStartRecording(){throw this.prepareInstanceForNextOperation(),t0()}static blobToBase64(a){return new Promise(n=>{const r=new FileReader;r.onloadend=()=>{const o=String(r.result),i=o.split("base64,"),s=i.length>1?i[1]:o;n(s.trim())},r.readAsDataURL(a)})}prepareInstanceForNextOperation(){if(this.mediaRecorder!=null&&this.mediaRecorder.state==="recording")try{this.mediaRecorder.stop()}catch(a){console.warn("While trying to stop a media recorder, an error was thrown",a)}this.pendingResult=r0(),this.mediaRecorder=null,this.chunks=[]}}class Nv extends gr{constructor(){super(...arguments),this.voiceRecorderInstance=new zt}canDeviceVoiceRecord(){return zt.canDeviceVoiceRecord()}hasAudioRecordingPermission(){return zt.hasAudioRecordingPermission()}requestAudioRecordingPermission(){return zt.requestAudioRecordingPermission()}startRecording(a){return this.voiceRecorderInstance.startRecording(a)}stopRecording(){return this.voiceRecorderInstance.stopRecording()}pauseRecording(){return this.voiceRecorderInstance.pauseRecording()}resumeRecording(){return this.voiceRecorderInstance.resumeRecording()}getCurrentStatus(){return this.voiceRecorderInstance.getCurrentStatus()}}const Dv=Object.freeze(Object.defineProperty({__proto__:null,VoiceRecorderWeb:Nv},Symbol.toStringTag,{value:"Module"}));function o0(e){const a=e.split("/").filter(r=>r!=="."),n=[];return a.forEach(r=>{r===".."&&n.length>0&&n[n.length-1]!==".."?n.pop():n.push(r)}),n.join("/")}function Tv(e,a){e=o0(e),a=o0(a);const n=e.split("/"),r=a.split("/");return e!==a&&n.every((o,i)=>o===r[i])}class Er extends gr{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async a=>{var n,r;const o=m1(a,a.webFetchExtra),i=await fetch(a.url,o);let s;if(!a.progress)s=await i.blob();else if(!(i!=null&&i.body))s=new Blob;else{const c=i.body.getReader();let m=0;const u=[],f=i.headers.get("content-type"),d=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:k}=await c.read();if(g)break;u.push(k),m+=(k==null?void 0:k.length)||0;const v={url:a.url,bytes:m,contentLength:d};this.notifyListeners("progress",v)}const p=new Uint8Array(m);let h=0;for(const g of u)typeof g>"u"||(p.set(g,h),h+=g.length);s=new Blob([p.buffer],{type:f||void 0})}return{path:(await this.writeFile({path:a.path,directory:(n=a.directory)!==null&&n!==void 0?n:void 0,recursive:(r=a.recursive)!==null&&r!==void 0?r:!1,data:s})).uri,blob:s}}}readFileInChunks(a,n){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((a,n)=>{const r=indexedDB.open(this.DB_NAME,this.DB_VERSION);r.onupgradeneeded=Er.doUpgrade,r.onsuccess=()=>{this._db=r.result,a(r.result)},r.onerror=()=>n(r.error),r.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(a){const r=a.target.result;switch(a.oldVersion){case 0:case 1:default:r.objectStoreNames.contains("FileStorage")&&r.deleteObjectStore("FileStorage"),r.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(a,n){const r=this._writeCmds.indexOf(a)!==-1?"readwrite":"readonly";return this.initDb().then(o=>new Promise((i,s)=>{const m=o.transaction(["FileStorage"],r).objectStore("FileStorage")[a](...n);m.onsuccess=()=>i(m.result),m.onerror=()=>s(m.error)}))}async dbIndexRequest(a,n,r){const o=this._writeCmds.indexOf(n)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,l)=>{const f=i.transaction(["FileStorage"],o).objectStore("FileStorage").index(a)[n](...r);f.onsuccess=()=>s(f.result),f.onerror=()=>l(f.error)}))}getPath(a,n){const r=n!==void 0?n.replace(/^[/]+|[/]+$/g,""):"";let o="";return a!==void 0&&(o+="/"+a),n!==""&&(o+="/"+r),o}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(a){const n=this.getPath(a.directory,a.path),r=await this.dbRequest("get",[n]);if(r===void 0)throw Error("File does not exist.");return{data:r.content?r.content:""}}async writeFile(a){const n=this.getPath(a.directory,a.path);let r=a.data;const o=a.encoding,i=a.recursive,s=await this.dbRequest("get",[n]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const l=n.substr(0,n.lastIndexOf("/"));if(await this.dbRequest("get",[l])===void 0){const f=l.indexOf("/",1);if(f!==-1){const d=l.substr(f);await this.mkdir({path:d,directory:a.directory,recursive:i})}}if(!o&&!(r instanceof Blob)&&(r=r.indexOf(",")>=0?r.split(",")[1]:r,!this.isBase64String(r)))throw Error("The supplied data is not valid base64 content.");const m=Date.now(),u={path:n,folder:l,type:"file",size:r instanceof Blob?r.size:r.length,ctime:m,mtime:m,content:r};return await this.dbRequest("put",[u]),{uri:u.path}}async appendFile(a){const n=this.getPath(a.directory,a.path);let r=a.data;const o=a.encoding,i=n.substr(0,n.lastIndexOf("/")),s=Date.now();let l=s;const c=await this.dbRequest("get",[n]);if(c&&c.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){const f=i.indexOf("/",1);if(f!==-1){const d=i.substr(f);await this.mkdir({path:d,directory:a.directory,recursive:!0})}}if(!o&&!this.isBase64String(r))throw Error("The supplied data is not valid base64 content.");if(c!==void 0){if(c.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");c.content!==void 0&&!o?r=btoa(atob(c.content)+atob(r)):r=c.content+r,l=c.ctime}const u={path:n,folder:i,type:"file",size:r.length,ctime:l,mtime:s,content:r};await this.dbRequest("put",[u])}async deleteFile(a){const n=this.getPath(a.directory,a.path);if(await this.dbRequest("get",[n])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(n)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[n])}async mkdir(a){const n=this.getPath(a.directory,a.path),r=a.recursive,o=n.substr(0,n.lastIndexOf("/")),i=(n.match(/\//g)||[]).length,s=await this.dbRequest("get",[o]),l=await this.dbRequest("get",[n]);if(i===1)throw Error("Cannot create Root directory");if(l!==void 0)throw Error("Current directory does already exist.");if(!r&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(r&&i!==2&&s===void 0){const u=o.substr(o.indexOf("/",1));await this.mkdir({path:u,directory:a.directory,recursive:r})}const c=Date.now(),m={path:n,folder:o,type:"directory",size:0,ctime:c,mtime:c};await this.dbRequest("put",[m])}async rmdir(a){const{path:n,directory:r,recursive:o}=a,i=this.getPath(r,n),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const l=await this.readdir({path:n,directory:r});if(l.files.length!==0&&!o)throw Error("Folder is not empty");for(const c of l.files){const m=`${n}/${c.name}`;(await this.stat({path:m,directory:r})).type==="file"?await this.deleteFile({path:m,directory:r}):await this.rmdir({path:m,directory:r,recursive:o})}await this.dbRequest("delete",[i])}async readdir(a){const n=this.getPath(a.directory,a.path),r=await this.dbRequest("get",[n]);if(a.path!==""&&r===void 0)throw Error("Folder does not exist.");const o=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(n)]);return{files:await Promise.all(o.map(async s=>{let l=await this.dbRequest("get",[s]);return l===void 0&&(l=await this.dbRequest("get",[s+"/"])),{name:s.substring(n.length+1),type:l.type,size:l.size,ctime:l.ctime,mtime:l.mtime,uri:l.path}}))}}async getUri(a){const n=this.getPath(a.directory,a.path);let r=await this.dbRequest("get",[n]);return r===void 0&&(r=await this.dbRequest("get",[n+"/"])),{uri:(r==null?void 0:r.path)||n}}async stat(a){const n=this.getPath(a.directory,a.path);let r=await this.dbRequest("get",[n]);if(r===void 0&&(r=await this.dbRequest("get",[n+"/"])),r===void 0)throw Error("Entry does not exist.");return{name:r.path.substring(n.length+1),type:r.type,size:r.size,ctime:r.ctime,mtime:r.mtime,uri:r.path}}async rename(a){await this._copy(a,!0)}async copy(a){return this._copy(a,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(a,n=!1){let{toDirectory:r}=a;const{to:o,from:i,directory:s}=a;if(!o||!i)throw Error("Both to and from must be provided");r||(r=s);const l=this.getPath(s,i),c=this.getPath(r,o);if(l===c)return{uri:c};if(Tv(l,c))throw Error("To path cannot contain the from path");let m;try{m=await this.stat({path:o,directory:r})}catch{const h=o.split("/");h.pop();const g=h.join("/");if(h.length>0&&(await this.stat({path:g,directory:r})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(m&&m.type==="directory")throw new Error("Cannot overwrite a directory with a file");const u=await this.stat({path:i,directory:s}),f=async(p,h,g)=>{const k=this.getPath(r,p),v=await this.dbRequest("get",[k]);v.ctime=h,v.mtime=g,await this.dbRequest("put",[v])},d=u.ctime?u.ctime:Date.now();switch(u.type){case"file":{const p=await this.readFile({path:i,directory:s});n&&await this.deleteFile({path:i,directory:s});let h;!(p.data instanceof Blob)&&!this.isBase64String(p.data)&&(h=Qo.UTF8);const g=await this.writeFile({path:o,directory:r,data:p.data,encoding:h});return n&&await f(o,d,u.mtime),g}case"directory":{if(m)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:o,directory:r,recursive:!1}),n&&await f(o,d,u.mtime)}catch{}const p=(await this.readdir({path:i,directory:s})).files;for(const h of p)await this._copy({from:`${i}/${h.name}`,to:`${o}/${h.name}`,directory:s,toDirectory:r},n);n&&await this.rmdir({path:i,directory:s})}}return{uri:c}}isBase64String(a){try{return btoa(atob(a))==a}catch{return!1}}}Er._debug=!0;const Pv=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:Er},Symbol.toStringTag,{value:"Module"}));ut.attLibAttendants=W1,ut.attLibDeparts=q1,ut.attLibInstances=Y1,ut.default=uv,ut.setupLibrary=U1,Object.defineProperties(ut,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
120
|
+
$bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"Position Control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:400,ix:3},y:{a:1,k:[{i:{x:[.349],y:[1]},o:{x:[.039],y:[.602]},t:0,s:[840],e:[300]},{i:{x:[.65],y:[1]},o:{x:[.333],y:[0]},t:30,s:[300],e:[460]},{i:{x:[.818],y:[.968]},o:{x:[.023],y:[.564]},t:80,s:[460],e:[-420]},{t:96}],ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.49,.49,.49],y:[1,1,1]},o:{x:[.49,.49,.49],y:[0,0,0]},t:15,s:[70,70,100],e:[40,40,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle Rate",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:0,k:0,ix:1}}]}],ip:0,op:100,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Rocket",parent:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.833,0,0],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[148.754,148.754,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.21],y:[.928]},o:{x:[.04],y:[.361]},t:0,s:[.667],e:[2]},{i:{x:[.38],y:[1]},o:{x:[.49],y:[0]},t:30.062,s:[2],e:[3.2]},{i:{x:[.82],y:[.986]},o:{x:[.49],y:[0]},t:80,s:[3.2],e:[4.333]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:96,s:[4.333],e:[4.333]},{t:130}],ix:2},w:600,h:600,ip:0,op:110,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fire 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fire 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,329.554],[-38.976,320.296],[.001,386.814],[38.976,320.296],[45.339,329.554]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fire 1 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,136.488,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,136.488,100],e:[100,101,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,101,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Scale Wiggle",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:29,s:[0],e:[1]},{t:30}],ix:1}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,107.501],[-24.746,101.624],[0,143.856],[24.746,101.624],[28.785,107.501]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fire 2 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,144.049,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,144.049,100],e:[100,96,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,96,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,169.194],[-38.976,159.936],[.001,226.454],[38.976,159.936],[45.339,169.194]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,168.845],[-38.976,159.587],[.001,226.105],[38.976,159.587],[45.339,168.845]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-142,ix:10},p:{a:0,k:[401.5,412,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:74,s:[0],e:[100]},{t:78}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[6],e:[100]},{t:75}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[5],e:[0]},{t:78}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:71,op:110,st:71,bm:0},{ddd:0,ind:8,ty:4,nm:"Line 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-7,ix:10},p:{a:0,k:[405.5,406,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0],e:[100]},{t:75}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[6],e:[100]},{t:72}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[5],e:[0]},{t:75}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:68,op:110,st:68,bm:0},{ddd:0,ind:9,ty:4,nm:"Line 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-88,ix:10},p:{a:0,k:[399.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:69,s:[0],e:[100]},{t:73}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[6],e:[100]},{t:70}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[5],e:[0]},{t:73}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:66,op:110,st:66,bm:0},{ddd:0,ind:10,ty:4,nm:"Line 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-197,ix:10},p:{a:0,k:[395.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[0],e:[100]},{t:70}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[6],e:[100]},{t:67}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[5],e:[0]},{t:70}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:63,op:110,st:63,bm:0},{ddd:0,ind:11,ty:4,nm:"Line 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:98,ix:10},p:{a:0,k:[393.5,418,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:55,s:[0],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[6],e:[100]},{t:56}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[5],e:[0]},{t:59}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:52,op:110,st:52,bm:0},{ddd:0,ind:12,ty:4,nm:"Line 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:68,ix:10},p:{a:0,k:[411.5,320,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:37,s:[0],e:[100]},{t:41}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[6],e:[100]},{t:38}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[5],e:[0]},{t:41}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:34,op:110,st:34,bm:0},{ddd:0,ind:13,ty:4,nm:"Blasting Circle 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,855,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:14,ty:4,nm:"Blasting Circle 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,615,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:15,ty:4,nm:"Blasting Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,415,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:61,s:[1007,1007],e:[0,0]},{t:71}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[5],e:[0]},{t:71}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:61,op:110,st:61,bm:0},{ddd:0,ind:16,ty:4,nm:"Blasting Circle ",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[399,320,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:40,s:[1007,1007],e:[0,0]},{t:50}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[5],e:[0]},{t:50}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:40,op:110,st:40,bm:0},{ddd:0,ind:17,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"rc",d:1,s:{a:0,k:[800,600],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.03137254902,.101960784314,.149019607843,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:110,op:110,st:0,bm:0,hidden:0}],markers:[]},Mw={class:"main-send-suggestion"},Bw={key:0,class:"sent-suggestion-section"},Aw={class:"sent-suggestion-content"},Vw={class:"container-send-suggestion"},_w={key:0,class:"tool_tip_suggestion_error"},Nw={key:0,class:"loader-suggestion"},Dw={key:1},Tw=je({__name:"sendSuggestion",props:{loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["postSuccess"],setup(e,{emit:a}){const n=a,r=t.ref(""),o=t.ref(!1),i=()=>{if(o.value=!1,!r.value){o.value=!0;return}n("postSuccess",r.value)};return(s,l)=>{const c=t.resolveComponent("Vue3Lottie");return t.openBlock(),t.createElementBlock("main",Mw,[e.sentSuccess?(t.openBlock(),t.createElementBlock("section",Bw,[t.createElementVNode("div",Aw,[l[2]||(l[2]=t.createElementVNode("p",{class:"text-lg font-semibold uppercase"}," Sua sugestão foi recebida com sucesso ",-1)),t.createVNode(c,{"animation-data":t.unref(Sw),height:200,width:200,"auto-play":!0,loop:!0},null,8,["animation-data"]),l[3]||(l[3]=t.createElementVNode("span",{class:"flex flex-col gap-3 lg:text-justify"},[t.createElementVNode("p",{class:"font-semibold"}," Nossa equipe irá avaliá-la com atenção e considerar sua implementação. "),t.createElementVNode("p",{class:"text-[12px]"}," Você irá receber um e-mail com as informações da solicitação e nossa equipe irá responder em até 30 dias ")],-1)),l[4]||(l[4]=t.createElementVNode("p",{class:"font-bold"},"Agradecemos sua colaboração",-1))])])):t.createCommentVNode("",!0),t.createElementVNode("section",Vw,[l[5]||(l[5]=t.createElementVNode("h1",{class:"header_send_suggestion"},"Envie sua sugestão para nós",-1)),t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=m=>r.value=m),class:"input_send_suggestion textarea-send-suggestion",placeholder:"Gostaria que vocês adicionassem...",type:"text"},null,512),[[t.vModelText,r.value]]),o.value?(t.openBlock(),t.createElementBlock("span",_w," Por favor, preencha o campo antes de continuar ")):t.createCommentVNode("",!0),t.createElementVNode("button",{onClick:l[1]||(l[1]=m=>i()),class:"submit-button-send-suggestion"},[e.loader?(t.openBlock(),t.createElementBlock("div",Nw)):(t.openBlock(),t.createElementBlock("p",Dw,"Enviar"))])])])}}},[["__scopeId","data-v-839ab724"]]),Pw=e=>`<svg class="${e}" aria-hidden="true" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778" /> </svg>`,Ow=e=>`<svg class="${e}" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 10h16m-8-3V4M7 7V4m10 3V4M5 20h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Zm3-7h.01v.01H8V13Zm4 0h.01v.01H12V13Zm4 0h.01v.01H16V13Zm-8 4h.01v.01H8V17Zm4 0h.01v.01H12V17Zm4 0h.01v.01H16V17Z" /> </svg>`,Fw=["innerHTML"],z1={__name:"svg",props:{svgContent:{type:String,required:!0}},setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("div",{innerHTML:e.svgContent},null,8,Fw))}},Lw={class:"feature-card__header"},$w={class:"feature-card__title"},Rw={class:"flex items-center gap-2"},Hw={key:0,class:"sparkle-badge"},zw={key:0},Iw={class:"feature-card__content"},Gw={class:"feature-card__description scroll_area_feature_card"},jw=["innerHTML"],qw=["href"],Ww={class:"feature-card__footer"},Yw={class:"feature-card__footer-section"},I1=je({__name:"feature_card",props:{state:{type:String,required:!0,default:"updated"},title:{type:String,required:!0},description:{type:String,required:!0},date:{type:[String,null],required:!0},tutorial:{type:String,default:null},flag:{type:String,required:!0},sparkles:{type:Boolean,default:!1}},setup(e){const a=t.ref(!1),n=t.ref(null),r=e;li(n,()=>{a.value=!1});const i=t.computed(()=>({"arrow-icon-patch-notes":!0,rotate:!a.value})),s=t.computed(()=>({"feature-card":!0,"feature-card--updated":r.state==="updated","feature-card--future":r.state==="future-update","feature-card--other":r.state!=="updated"&&r.state!=="future-update"})),l=t.computed(()=>({"pill-flag":!0,"pill-flag--new-feature":r.flag==="new-feature","pill-flag--improvement":r.flag==="improvement","pill-flag--bug-fix":r.flag==="bug-fix"})),c=t.computed(()=>r.flag==="improvement"?"Melhorias":r.flag==="new-feature"?"Novo Recurso":"correção de erros"),m=t.computed(()=>({"pill-date":!0,"pill-date--updated":r.state==="updated","pill-date--future":r.state!=="updated"}));return(u,f)=>{const d=t.resolveComponent("Popper");return t.openBlock(),t.createElementBlock("main",{class:t.normalizeClass(["feature_style relative",s.value]),ref_key:"targetFeatureCard",ref:n,onClick:f[0]||(f[0]=p=>a.value=!a.value)},[t.createElementVNode("header",Lw,[t.createElementVNode("h1",$w,t.toDisplayString(e.title),1),t.createElementVNode("section",Rw,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),viewBox:"0 0 24 24",fill:"none"},f[1]||(f[1]=[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M15 11L12 8M12 8L9 11M12 8V16M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)),e.sparkles?(t.openBlock(),t.createElementBlock("div",Hw,f[2]||(f[2]=[t.createStaticVNode('<svg class="size-4" viewBox="0 0 128 128" data-v-252b53a7><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-252b53a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-252b53a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-252b53a7></path><g data-v-252b53a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-252b53a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-252b53a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-252b53a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-252b53a7></path></svg>',1)]))):t.createCommentVNode("",!0)])]),t.createVNode(t.Transition,{name:"fade-slide"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",zw,[f[4]||(f[4]=t.createElementVNode("hr",{class:"feature-card__divider"},null,-1)),t.createElementVNode("section",Iw,[t.createElementVNode("span",Gw,[t.createElementVNode("p",{class:"feature-card__paragraph",innerHTML:e.description.replace(/\n/g,"<br>")},null,8,jw)]),e.tutorial?(t.openBlock(),t.createElementBlock("a",{key:0,class:"feature-card__tutorial-button",href:e.tutorial,target:"__blank"},[f[3]||(f[3]=t.createTextVNode(" Veja o tutorial ")),t.createVNode(z1,{svgContent:t.unref(Pw)("size-4 text-blue-900")},null,8,["svgContent"])],8,qw)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),_:1}),t.createElementVNode("footer",Ww,[t.createElementVNode("section",Yw,[t.createElementVNode("span",{class:t.normalizeClass(l.value)},t.toDisplayString(c.value),3),t.createVNode(d,{class:"pill_date_popper",hover:"",disabled:e.state==="updated",arrow:!0,content:"Essa é uma data prevista para o lançamento deste recurso, a mesma está sujeita a mudanças a qualquer momento"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(m.value)},[t.createVNode(z1,{svgContent:t.unref(Ow)("size-4 text-white")},null,8,["svgContent"]),t.createElementVNode("p",null,t.toDisplayString(new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(e.date+"T12:00:00")).replace(/ de /g," ")),1)],2)]),_:1},8,["disabled"])])])],2)}}},[["__scopeId","data-v-252b53a7"]]),Uw={class:"modal-container-patch-notes"},Xw={class:"modal-content-patch-notes scroll_area_patch_notes_latest_update"},Zw={class:"modal-header-patch-notes"},Qw={class:"modal-body-patch-notes"},Kw={class:"modal-body-control"},Jw={class:"modal-section-patch-notes updates-section-patch-notes"},ev={key:0,class:"sections-skeleton-loader"},tv={class:"skeleton-loader skeleton-color-latest_update"},av={key:1,class:"text-not-patchs"},nv={class:"modal-section-patch-notes future-section-patch-notes"},rv={key:0,class:"sections-skeleton-loader"},ov={class:"skeleton-loader skeleton-color-latest_update"},iv={key:1,class:"text-not-patchs"},G1=je({__name:"patchNotes",props:{future_updates:{type:[Object,null],required:!0},latest_update:{type:[Object,null],required:!0},loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["close","postSuggestion","loadMoreFutureUpdates","loadMoreLatestUpdates"],setup(e,{emit:a}){const n=t.ref(1),r=t.ref(1),o=t.ref(null),i=t.ref(null),s=a,l=d=>{s("postSuggestion",d)},c=()=>{s("close"),n.value=1,r.value=1},m=({loaded:d,complete:p})=>{s("loadMoreFutureUpdates",{loaded:d,complete:p,page:n.value}),n.value++},u=({loaded:d,complete:p})=>{s("loadMoreLatestUpdates",{loaded:d,complete:p,page:r.value}),r.value++},f=d=>{if(!d)return!1;const p=new Date,h=new Date(d+"T12:00:00");return Math.abs(p-h)/(1e3*60*60*24)<=3};return(d,p)=>(t.openBlock(),t.createElementBlock("main",null,[p[8]||(p[8]=t.createElementVNode("div",{class:"modal-overlay-patch-notes"},[t.createElementVNode("div",{class:"modal-backdrop-patch-notes"})],-1)),t.createElementVNode("div",Uw,[t.createElementVNode("div",Xw,[t.createElementVNode("div",Zw,[t.createElementVNode("button",{onClick:p[0]||(p[0]=h=>c()),class:"modal-close-btn-patch-notes"},p[1]||(p[1]=[t.createElementVNode("svg",{class:"modal-close-icon-patch-notes","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),t.createElementVNode("div",Qw,[t.createElementVNode("div",Kw,[t.createElementVNode("section",Jw,[p[4]||(p[4]=t.createElementVNode("h1",{class:"header_latest_update"},"Ultimas Atualizações",-1)),t.createElementVNode("div",{ref_key:"scrollLasContainer",ref:i,class:"features-list scrollable-section scroll_area_patch_notes_latest_update"},[e.latest_update?e.latest_update<=0?(t.openBlock(),t.createElementBlock("span",av," Nenhuma atualização programada ")):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("section",ev,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(15,h=>t.createElementVNode("div",tv)),64))])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.latest_update,(h,g)=>(t.openBlock(),t.createBlock(I1,{key:g,state:"updated",title:h.title,description:h.description,date:h.launched_at,tutorial:h.tutorial,flag:h.flag,sparkles:f(h.launched_at)},null,8,["title","description","date","tutorial","flag","sparkles"]))),128)),t.createVNode(t.unref(Co),{distance:20,target:i.value,onInfinite:u},{complete:t.withCtx(()=>p[2]||(p[2]=[t.createElementVNode("span",{class:""},null,-1)])),spinner:t.withCtx(()=>p[3]||(p[3]=[t.createElementVNode("section",{class:"sections-skeleton-loader"},[t.createElementVNode("div",{class:"skeleton-loader skeleton-color-latest_update"},[t.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)]),t.createElementVNode("section",nv,[p[7]||(p[7]=t.createElementVNode("h1",{class:"header_future_updates"},"Futuras Atualizações",-1)),t.createElementVNode("div",{ref_key:"scrollFutContainer",ref:o,class:"features-list scrollable-section scroll_area_patch_notes_future_updates"},[e.future_updates?e.future_updates<=0?(t.openBlock(),t.createElementBlock("span",iv," Nenhuma atualização programada ")):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.future_updates,(h,g)=>(t.openBlock(),t.createBlock(I1,{key:g,state:"future-update",title:h.title,description:h.description,date:h.launched_at,tutorial:h.tutorial,flag:h.flag},null,8,["title","description","date","tutorial","flag"]))),128)):(t.openBlock(),t.createElementBlock("section",rv,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(15,h=>t.createElementVNode("div",ov)),64))])),t.createVNode(t.unref(Co),{distance:20,target:o.value,onInfinite:m},{complete:t.withCtx(()=>p[5]||(p[5]=[t.createElementVNode("span",{class:""},null,-1)])),spinner:t.withCtx(()=>p[6]||(p[6]=[t.createElementVNode("section",{class:"sections-skeleton-loader"},[t.createElementVNode("div",{class:"skeleton-loader skeleton-color-future_updates"},[t.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)])]),t.createVNode(Tw,{loader:e.loader,sentSuccess:e.sentSuccess,onPostSuccess:l},null,8,["loader","sentSuccess"])])])])]))}},[["__scopeId","data-v-f7b5b5bc"]]),sv={key:0,class:"sparkle-badge"},lv={key:0,class:"text-white text-center flex-1"},cv={key:1,class:"sparkle-badge"},j1=je({__name:"btnNewUpdates",props:{type:{type:String,default:"attendant",required:!0},mode:{type:String,default:"dark"},sparkles:{type:Boolean,default:!1}},emits:["openNewUpdates"],setup(e,{emit:a}){const n=a,r=e,o=(l,c)=>{const m={attendant:{container:"main-container-new-update",button:"update-button",tooltip:"tooltip-new-update",iconSize:"size-4",usePopper:!1,text:null},managerSideBarClose:{container:"main-container-new-update-manager-close",button:"new_update-button ",tooltip:null,iconSize:"size-6",usePopper:!0,text:null},managerSideBarOpen:{container:"main-container-new-update-manager-open",button:"new_update-button-open-side open-width",tooltip:null,iconSize:"size-6",usePopper:!1,text:"Notas de atualização"}};return m[l]||m.attendant},i=t.computed(()=>o(r.type,r.sparkles)),s=()=>{n("openNewUpdates")};return(l,c)=>(t.openBlock(),t.createElementBlock("main",{class:t.normalizeClass(["relative",i.value.container]),onClick:s},[i.value.usePopper?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("button",{class:t.normalizeClass(i.value.button)},c[0]||(c[0]=[t.createElementVNode("svg",{class:"new_update-icon",fill:"currentColor",viewBox:"0 0 420.827 420.827"},[t.createElementVNode("g",null,[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),t.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])])],-1)]),2),e.sparkles?(t.openBlock(),t.createElementBlock("div",sv,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},c[1]||(c[1]=[t.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>',5)]),2))])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{class:t.normalizeClass(["relative",i.value.button])},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.mode==="dark"?"dark_new_update-icon":"new_update-icon"),fill:"currentColor",viewBox:"0 0 420.827 420.827"},c[2]||(c[2]=[t.createElementVNode("g",null,[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),t.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])],-1)]),2)),i.value.text?(t.openBlock(),t.createElementBlock("span",lv,t.toDisplayString(i.value.text),1)):t.createCommentVNode("",!0),e.sparkles?(t.openBlock(),t.createElementBlock("div",cv,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},c[3]||(c[3]=[t.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>',5)]),2))])):t.createCommentVNode("",!0)],2),t.withDirectives(t.createElementVNode("p",{class:t.normalizeClass(i.value.tooltip)}," Notas de atualização ",2),[[t.vShow,i.value.tooltip]])],64))],2))}},[["__scopeId","data-v-b6196bab"]]);It.defineStore("debug",{state:()=>({message:"Debug store initialized"}),actions:{logMessage(){console.log(this.message)}}});function dv(e){e.component("primarySelect",ci),e.component("departSelect",T1),e.component("attendantSelect",P1),e.component("SimpleModal",di),e.component("simpleCard",ui),e.component("instanceSelect",Zi),e.component("calendar",il),e.component("MFA",sl),e.component("MfaQrCode",$5),e.component("chatWindow",N1),e.component("FilterSelectLib",O1),e.component("MobileInternalChat",D1),e.component("RandomAvatar",R1),e.component("MinModal",H1),e.component("LibPatchNotes",G1),e.component("BtnNewUpdates",j1)}function q1(e,a="add"){const n=Zo();a==="add"?n.addDepartments(e):a==="delete"?n.removeDepartments(e):a==="update"?(n.departments=e,n.loaded=!0):console.error(`Ação "${a}" não suportada em attLibDeparts.`)}function W1(e,a="add"){const n=er();a==="add"?n.addAttendants(e):a==="delete"?n.removeAttendants(e):a==="update"?(n.attendants=e,n.loaded=!0):console.error(`Ação "${a}" não suportada em attLibAttendants.`)}function Y1(e,a="add"){const n=$r();a==="add"?n.addInstance(e):a==="delete"?n.removeInstance(e):a==="update"?(n.instances=e,n.loaded=!0):console.error(`Ação "${a}" não suportada em attLibInstances.`)}async function U1(e,a,n,r=[],o=[],i=[]){try{const s=await Xi(e);a&&await s.setToken(a),n&&(ra.defaults.baseURL=n);const l=Zo(e);o.length>0&&(l.departments=o,l.count=o.length);const c=er(e);r.length>0&&(c.attendants=r,c.count=r.length),await $r(e).fetchInstances()}catch(s){console.error("Erro no setupLibrary:",s)}}const uv={install:dv,setupLibrary:U1,attLibDeparts:q1,attLibAttendants:W1,attLibInstances:Y1,primarySelect:ci,simpleModal:di,simpleCard:ui,instanceSelect:Zi,calendar:il,MFA:sl,chatWindow:N1,departSelect:T1,attendantSelect:P1,FilterSelectLib:O1,MobileInternalChat:D1,RandomAvatar:R1,MinModal:H1,libPatchNotes:G1,btnNewUpdates:j1};function fv(e){e.CapacitorUtils.Synapse=new Proxy({},{get(a,n){return new Proxy({},{get(r,o){return(i,s,l)=>{const c=e.Capacitor.Plugins[n];if(c===void 0){l(new Error(`Capacitor plugin ${n} not found`));return}if(typeof c[o]!="function"){l(new Error(`Method ${o} not found in Capacitor plugin ${n}`));return}(async()=>{try{const m=await c[o](i);s(m)}catch(m){l(m)}})()}}})}})}function mv(e){e.CapacitorUtils.Synapse=new Proxy({},{get(a,n){return e.cordova.plugins[n]}})}function hv(e=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!e?fv(window):window.cordova!==void 0&&mv(window))}var X1;(function(e){e.Documents="DOCUMENTS",e.Data="DATA",e.Library="LIBRARY",e.Cache="CACHE",e.External="EXTERNAL",e.ExternalStorage="EXTERNAL_STORAGE",e.ExternalCache="EXTERNAL_CACHE",e.LibraryNoCloud="LIBRARY_NO_CLOUD",e.Temporary="TEMPORARY"})(X1||(X1={}));var Qo;(function(e){e.UTF8="utf8",e.ASCII="ascii",e.UTF16="utf16"})(Qo||(Qo={}));const vr=Bn("Filesystem",{web:()=>Promise.resolve().then(()=>Pv).then(e=>new e.FilesystemWeb)});hv();const pv=Bn("BlobWriter");function gv(e){return window.btoa(Array.from(new Uint8Array(e)).map(function(a){return String.fromCharCode(a)}).join(""))}function yv({path:e,directory:a,blob:n,recursive:r}){return vr.writeFile({directory:a,path:e,recursive:r,data:""}).then(function(){return new Promise(function(o,i){function s(c){i(c.target.error)}const l=window.indexedDB.open("Disc");l.onerror=s,l.onsuccess=function(){const m=l.result.transaction("FileStorage","readwrite");m.onerror=s;const u=m.objectStore("FileStorage"),f=`/${a}/${e.replace(/^\//,"")}`,d=u.get(f);d.onsuccess=function(){d.result.size=n.size,d.result.content=n;const p=u.put(d.result);p.onsuccess=function(){o(void 0)}}}})})}function Z1({path:e,directory:a,blob:n,recursive:r}){return vr.writeFile({directory:a,path:e,recursive:r,data:""}).then(function o(){if(n.size===0)return Promise.resolve();const i=3*128*1024,s=n.slice(0,i);return n=n.slice(i),new Response(s).arrayBuffer().then(function(c){return vr.appendFile({directory:a,path:e,data:gv(c)})}).then(o)})}function kv(e){const{path:a,directory:n,blob:r,fast_mode:o=!1,recursive:i,on_fallback:s}=e;return!r||!Number.isSafeInteger(r.size)||typeof r.type!="string"?Promise.reject(new Error("Not a Blob.")):pr.getPlatform()==="web"?o?yv(e):Z1(e):Promise.all([pv.get_config(),vr.getUri({path:a,directory:n})]).then(function([l,c]){const m=c.uri.replace("file://","");return(window.CapacitorWebFetch||window.fetch)(l.base_url+m+(i?"?recursive=true":""),{headers:{authorization:l.auth_token},method:"put",body:r}).then(function(f){if(f.status!==204)throw new Error("Bad HTTP status: "+f.status);return c.uri})}).catch(function(c){return s!==void 0&&s(c),Z1(e)})}const bv=Object.freeze(kv);function xv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q1={};function wv(e){return e&&e.__esModule?e:{default:e}}var vv=wv,Ko={exports:{}},K1;function Ev(){return K1||(K1=1,function(e){var a=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(V,w,X){V[w]=X.value},s,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",m=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(V,w,X){return Object.defineProperty(V,w,{value:X,enumerable:!0,configurable:!0,writable:!0}),V[w]}try{f({},"")}catch{f=function(w,X,K){return w[X]=K}}function d(V,w,X,K){var W=w&&w.prototype instanceof k?w:k,M=Object.create(W.prototype),J=new F(K||[]);return i(M,"_invoke",{value:Q(V,X,J)}),M}n.wrap=d;function p(V,w,X){try{return{type:"normal",arg:V.call(w,X)}}catch(K){return{type:"throw",arg:K}}}var h="suspendedStart",g="suspendedYield",b="executing",v="completed",x={};function k(){}function A(){}function _(){}var T={};f(T,c,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(q([])));S&&S!==r&&o.call(S,c)&&(T=S);var B=_.prototype=k.prototype=Object.create(T);A.prototype=_,i(B,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:A,configurable:!0}),A.displayName=f(_,u,"GeneratorFunction");function G(V){["next","throw","return"].forEach(function(w){f(V,w,function(X){return this._invoke(w,X)})})}n.isGeneratorFunction=function(V){var w=typeof V=="function"&&V.constructor;return w?w===A||(w.displayName||w.name)==="GeneratorFunction":!1},n.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,_):(V.__proto__=_,f(V,u,"GeneratorFunction")),V.prototype=Object.create(B),V},n.awrap=function(V){return{__await:V}};function P(V,w){function X(M,J,ce,z){var he=p(V[M],V,J);if(he.type==="throw")z(he.arg);else{var ee=he.arg,fe=ee.value;return fe&&typeof fe=="object"&&o.call(fe,"__await")?w.resolve(fe.__await).then(function(L){X("next",L,ce,z)},function(L){X("throw",L,ce,z)}):w.resolve(fe).then(function(L){ee.value=L,ce(ee)},function(L){return X("throw",L,ce,z)})}}var K;function W(M,J){function ce(){return new w(function(z,he){X(M,J,z,he)})}return K=K?K.then(ce,ce):ce()}i(this,"_invoke",{value:W})}G(P.prototype),f(P.prototype,m,function(){return this}),n.AsyncIterator=P,n.async=function(V,w,X,K,W){W===void 0&&(W=Promise);var M=new P(d(V,w,X,K),W);return n.isGeneratorFunction(w)?M:M.next().then(function(J){return J.done?J.value:M.next()})};function Q(V,w,X){var K=h;return function(M,J){if(K===b)throw new Error("Generator is already running");if(K===v){if(M==="throw")throw J;return oe()}for(X.method=M,X.arg=J;;){var ce=X.delegate;if(ce){var z=U(ce,X);if(z){if(z===x)continue;return z}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(K===h)throw K=v,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);K=b;var he=p(V,w,X);if(he.type==="normal"){if(K=X.done?v:g,he.arg===x)continue;return{value:he.arg,done:X.done}}else he.type==="throw"&&(K=v,X.method="throw",X.arg=he.arg)}}}function U(V,w){var X=w.method,K=V.iterator[X];if(K===s)return w.delegate=null,X==="throw"&&V.iterator.return&&(w.method="return",w.arg=s,U(V,w),w.method==="throw")||X!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+X+"' method")),x;var W=p(K,V.iterator,w.arg);if(W.type==="throw")return w.method="throw",w.arg=W.arg,w.delegate=null,x;var M=W.arg;if(!M)return w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,x;if(M.done)w[V.resultName]=M.value,w.next=V.nextLoc,w.method!=="return"&&(w.method="next",w.arg=s);else return M;return w.delegate=null,x}G(B),f(B,u,"Generator"),f(B,c,function(){return this}),f(B,"toString",function(){return"[object Generator]"});function E(V){var w={tryLoc:V[0]};1 in V&&(w.catchLoc=V[1]),2 in V&&(w.finallyLoc=V[2],w.afterLoc=V[3]),this.tryEntries.push(w)}function D(V){var w=V.completion||{};w.type="normal",delete w.arg,V.completion=w}function F(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(E,this),this.reset(!0)}n.keys=function(V){var w=Object(V),X=[];for(var K in w)X.push(K);return X.reverse(),function W(){for(;X.length;){var M=X.pop();if(M in w)return W.value=M,W.done=!1,W}return W.done=!0,W}};function q(V){if(V){var w=V[c];if(w)return w.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var X=-1,K=function W(){for(;++X<V.length;)if(o.call(V,X))return W.value=V[X],W.done=!1,W;return W.value=s,W.done=!0,W};return K.next=K}}return{next:oe}}n.values=q;function oe(){return{value:s,done:!0}}return F.prototype={constructor:F,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(D),!V)for(var w in this)w.charAt(0)==="t"&&o.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=s)},stop:function(){this.done=!0;var V=this.tryEntries[0],w=V.completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var w=this;function X(z,he){return M.type="throw",M.arg=V,w.next=z,he&&(w.method="next",w.arg=s),!!he}for(var K=this.tryEntries.length-1;K>=0;--K){var W=this.tryEntries[K],M=W.completion;if(W.tryLoc==="root")return X("end");if(W.tryLoc<=this.prev){var J=o.call(W,"catchLoc"),ce=o.call(W,"finallyLoc");if(J&&ce){if(this.prev<W.catchLoc)return X(W.catchLoc,!0);if(this.prev<W.finallyLoc)return X(W.finallyLoc)}else if(J){if(this.prev<W.catchLoc)return X(W.catchLoc,!0)}else if(ce){if(this.prev<W.finallyLoc)return X(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(V,w){for(var X=this.tryEntries.length-1;X>=0;--X){var K=this.tryEntries[X];if(K.tryLoc<=this.prev&&o.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var W=K;break}}W&&(V==="break"||V==="continue")&&W.tryLoc<=w&&w<=W.finallyLoc&&(W=null);var M=W?W.completion:{};return M.type=V,M.arg=w,W?(this.method="next",this.next=W.finallyLoc,x):this.complete(M)},complete:function(V,w){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&w&&(this.next=w),x},finish:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var X=this.tryEntries[w];if(X.finallyLoc===V)return this.complete(X.completion,X.afterLoc),D(X),x}},catch:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var X=this.tryEntries[w];if(X.tryLoc===V){var K=X.completion;if(K.type==="throw"){var W=K.arg;D(X)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(V,w,X){return this.delegate={iterator:q(V),resultName:w,nextLoc:X},this.method==="next"&&(this.arg=s),x}},n}(e.exports);try{regeneratorRuntime=a}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}}(Ko)),Ko.exports}var Jo,J1;function Cv(){return J1||(J1=1,Jo=Ev()),Jo}var ei,e0;function Sv(){if(e0)return ei;e0=1;function e(n,r,o,i,s,l,c){try{var m=n[l](c),u=m.value}catch(f){o(f);return}m.done?r(u):Promise.resolve(u).then(i,s)}function a(n){return function(){var r=this,o=arguments;return new Promise(function(i,s){var l=n.apply(r,o);function c(u){e(l,i,s,c,m,"next",u)}function m(u){e(l,i,s,c,m,"throw",u)}c(void 0)})}}return ei=a,ei}(function(e){var a=vv;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=a(Cv()),r=a(Sv());function o(s){return i.apply(this,arguments)}function i(){return(i=(0,r.default)(n.default.mark(function s(l){var c,m;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=document.createElement("video"),m=new Promise(function(f,d){c.addEventListener("loadedmetadata",function(){c.duration===1/0?(c.currentTime=Number.MAX_SAFE_INTEGER,c.ontimeupdate=function(){c.ontimeupdate=null,f(c.duration),c.currentTime=0}):f(c.duration)}),c.onerror=function(p){return d(p.target.error)}}),c.src=typeof l=="string"||l instanceof String?l:window.URL.createObjectURL(l),u.abrupt("return",m);case 4:case"end":return u.stop()}},s)}))).apply(this,arguments)}})(Q1);const Mv=xv(Q1),wa=()=>({value:!0}),Vn=()=>({value:!1}),Bv=()=>new Error("MISSING_PERMISSION"),Av=()=>new Error("ALREADY_RECORDING"),Vv=()=>new Error("DEVICE_CANNOT_VOICE_RECORD"),t0=()=>new Error("FAILED_TO_RECORD"),_v=()=>new Error("EMPTY_RECORDING"),ti=()=>new Error("RECORDING_HAS_NOT_STARTED"),a0=()=>new Error("FAILED_TO_FETCH_RECORDING"),ai=()=>new Error("COULD_NOT_QUERY_PERMISSION_STATUS"),n0={"audio/aac":".aac","audio/mp4":".mp3","audio/webm;codecs=opus":".ogg","audio/webm":".ogg","audio/ogg;codecs=opus":".ogg"},r0=()=>new Promise(()=>{});class zt{constructor(){this.mediaRecorder=null,this.chunks=[],this.pendingResult=r0()}static async canDeviceVoiceRecord(){var a;return((a=navigator==null?void 0:navigator.mediaDevices)===null||a===void 0?void 0:a.getUserMedia)==null||zt.getSupportedMimeType()==null?Vn():wa()}async startRecording(a){if(this.mediaRecorder!=null)throw Av();if(!(await zt.canDeviceVoiceRecord()).value)throw Vv();if(!(await zt.hasAudioRecordingPermission().catch(()=>wa())).value)throw Bv();return navigator.mediaDevices.getUserMedia({audio:!0}).then(o=>this.onSuccessfullyStartedRecording(o,a)).catch(this.onFailedToStartRecording.bind(this))}async stopRecording(){if(this.mediaRecorder==null)throw ti();try{return this.mediaRecorder.stop(),this.mediaRecorder.stream.getTracks().forEach(a=>a.stop()),this.pendingResult}catch{throw a0()}finally{this.prepareInstanceForNextOperation()}}static async hasAudioRecordingPermission(){return navigator.permissions.query==null?navigator.mediaDevices==null?Promise.reject(ai()):navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>wa()).catch(()=>{throw ai()}):navigator.permissions.query({name:"microphone"}).then(a=>({value:a.state==="granted"})).catch(()=>{throw ai()})}static async requestAudioRecordingPermission(){return(await zt.hasAudioRecordingPermission().catch(()=>Vn())).value?wa():navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>wa()).catch(()=>Vn())}pauseRecording(){if(this.mediaRecorder==null)throw ti();return this.mediaRecorder.state==="recording"?(this.mediaRecorder.pause(),Promise.resolve(wa())):Promise.resolve(Vn())}resumeRecording(){if(this.mediaRecorder==null)throw ti();return this.mediaRecorder.state==="paused"?(this.mediaRecorder.resume(),Promise.resolve(wa())):Promise.resolve(Vn())}getCurrentStatus(){return this.mediaRecorder==null?Promise.resolve({status:yr.NONE}):this.mediaRecorder.state==="recording"?Promise.resolve({status:yr.RECORDING}):this.mediaRecorder.state==="paused"?Promise.resolve({status:yr.PAUSED}):Promise.resolve({status:yr.NONE})}static getSupportedMimeType(){if((MediaRecorder==null?void 0:MediaRecorder.isTypeSupported)==null)return null;const a=Object.keys(n0).find(n=>MediaRecorder.isTypeSupported(n));return a??null}onSuccessfullyStartedRecording(a,n){return this.pendingResult=new Promise((r,o)=>{this.mediaRecorder=new MediaRecorder(a),this.mediaRecorder.onerror=()=>{this.prepareInstanceForNextOperation(),o(t0())},this.mediaRecorder.onstop=async()=>{var i,s,l;const c=zt.getSupportedMimeType();if(c==null){this.prepareInstanceForNextOperation(),o(a0());return}const m=new Blob(this.chunks,{type:c});if(m.size<=0){this.prepareInstanceForNextOperation(),o(_v());return}let u,f;n!=null?(u=`${(l=(s=(i=n.subDirectory)===null||i===void 0?void 0:i.match(/^\/?(.+[^/])\/?$/))===null||s===void 0?void 0:s[1])!==null&&l!==void 0?l:""}/recording-${new Date().getTime()}${n0[c]}`,await bv({blob:m,directory:n.directory,fast_mode:!0,path:u,recursive:!0})):f=await zt.blobToBase64(m);const d=await Mv(m);this.prepareInstanceForNextOperation(),r({value:{recordDataBase64:f,mimeType:c,msDuration:d*1e3,path:u}})},this.mediaRecorder.ondataavailable=i=>this.chunks.push(i.data),this.mediaRecorder.start()}),wa()}onFailedToStartRecording(){throw this.prepareInstanceForNextOperation(),t0()}static blobToBase64(a){return new Promise(n=>{const r=new FileReader;r.onloadend=()=>{const o=String(r.result),i=o.split("base64,"),s=i.length>1?i[1]:o;n(s.trim())},r.readAsDataURL(a)})}prepareInstanceForNextOperation(){if(this.mediaRecorder!=null&&this.mediaRecorder.state==="recording")try{this.mediaRecorder.stop()}catch(a){console.warn("While trying to stop a media recorder, an error was thrown",a)}this.pendingResult=r0(),this.mediaRecorder=null,this.chunks=[]}}class Nv extends gr{constructor(){super(...arguments),this.voiceRecorderInstance=new zt}canDeviceVoiceRecord(){return zt.canDeviceVoiceRecord()}hasAudioRecordingPermission(){return zt.hasAudioRecordingPermission()}requestAudioRecordingPermission(){return zt.requestAudioRecordingPermission()}startRecording(a){return this.voiceRecorderInstance.startRecording(a)}stopRecording(){return this.voiceRecorderInstance.stopRecording()}pauseRecording(){return this.voiceRecorderInstance.pauseRecording()}resumeRecording(){return this.voiceRecorderInstance.resumeRecording()}getCurrentStatus(){return this.voiceRecorderInstance.getCurrentStatus()}}const Dv=Object.freeze(Object.defineProperty({__proto__:null,VoiceRecorderWeb:Nv},Symbol.toStringTag,{value:"Module"}));function o0(e){const a=e.split("/").filter(r=>r!=="."),n=[];return a.forEach(r=>{r===".."&&n.length>0&&n[n.length-1]!==".."?n.pop():n.push(r)}),n.join("/")}function Tv(e,a){e=o0(e),a=o0(a);const n=e.split("/"),r=a.split("/");return e!==a&&n.every((o,i)=>o===r[i])}class Er extends gr{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async a=>{var n,r;const o=m1(a,a.webFetchExtra),i=await fetch(a.url,o);let s;if(!a.progress)s=await i.blob();else if(!(i!=null&&i.body))s=new Blob;else{const c=i.body.getReader();let m=0;const u=[],f=i.headers.get("content-type"),d=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:b}=await c.read();if(g)break;u.push(b),m+=(b==null?void 0:b.length)||0;const v={url:a.url,bytes:m,contentLength:d};this.notifyListeners("progress",v)}const p=new Uint8Array(m);let h=0;for(const g of u)typeof g>"u"||(p.set(g,h),h+=g.length);s=new Blob([p.buffer],{type:f||void 0})}return{path:(await this.writeFile({path:a.path,directory:(n=a.directory)!==null&&n!==void 0?n:void 0,recursive:(r=a.recursive)!==null&&r!==void 0?r:!1,data:s})).uri,blob:s}}}readFileInChunks(a,n){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((a,n)=>{const r=indexedDB.open(this.DB_NAME,this.DB_VERSION);r.onupgradeneeded=Er.doUpgrade,r.onsuccess=()=>{this._db=r.result,a(r.result)},r.onerror=()=>n(r.error),r.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(a){const r=a.target.result;switch(a.oldVersion){case 0:case 1:default:r.objectStoreNames.contains("FileStorage")&&r.deleteObjectStore("FileStorage"),r.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(a,n){const r=this._writeCmds.indexOf(a)!==-1?"readwrite":"readonly";return this.initDb().then(o=>new Promise((i,s)=>{const m=o.transaction(["FileStorage"],r).objectStore("FileStorage")[a](...n);m.onsuccess=()=>i(m.result),m.onerror=()=>s(m.error)}))}async dbIndexRequest(a,n,r){const o=this._writeCmds.indexOf(n)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,l)=>{const f=i.transaction(["FileStorage"],o).objectStore("FileStorage").index(a)[n](...r);f.onsuccess=()=>s(f.result),f.onerror=()=>l(f.error)}))}getPath(a,n){const r=n!==void 0?n.replace(/^[/]+|[/]+$/g,""):"";let o="";return a!==void 0&&(o+="/"+a),n!==""&&(o+="/"+r),o}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(a){const n=this.getPath(a.directory,a.path),r=await this.dbRequest("get",[n]);if(r===void 0)throw Error("File does not exist.");return{data:r.content?r.content:""}}async writeFile(a){const n=this.getPath(a.directory,a.path);let r=a.data;const o=a.encoding,i=a.recursive,s=await this.dbRequest("get",[n]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const l=n.substr(0,n.lastIndexOf("/"));if(await this.dbRequest("get",[l])===void 0){const f=l.indexOf("/",1);if(f!==-1){const d=l.substr(f);await this.mkdir({path:d,directory:a.directory,recursive:i})}}if(!o&&!(r instanceof Blob)&&(r=r.indexOf(",")>=0?r.split(",")[1]:r,!this.isBase64String(r)))throw Error("The supplied data is not valid base64 content.");const m=Date.now(),u={path:n,folder:l,type:"file",size:r instanceof Blob?r.size:r.length,ctime:m,mtime:m,content:r};return await this.dbRequest("put",[u]),{uri:u.path}}async appendFile(a){const n=this.getPath(a.directory,a.path);let r=a.data;const o=a.encoding,i=n.substr(0,n.lastIndexOf("/")),s=Date.now();let l=s;const c=await this.dbRequest("get",[n]);if(c&&c.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){const f=i.indexOf("/",1);if(f!==-1){const d=i.substr(f);await this.mkdir({path:d,directory:a.directory,recursive:!0})}}if(!o&&!this.isBase64String(r))throw Error("The supplied data is not valid base64 content.");if(c!==void 0){if(c.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");c.content!==void 0&&!o?r=btoa(atob(c.content)+atob(r)):r=c.content+r,l=c.ctime}const u={path:n,folder:i,type:"file",size:r.length,ctime:l,mtime:s,content:r};await this.dbRequest("put",[u])}async deleteFile(a){const n=this.getPath(a.directory,a.path);if(await this.dbRequest("get",[n])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(n)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[n])}async mkdir(a){const n=this.getPath(a.directory,a.path),r=a.recursive,o=n.substr(0,n.lastIndexOf("/")),i=(n.match(/\//g)||[]).length,s=await this.dbRequest("get",[o]),l=await this.dbRequest("get",[n]);if(i===1)throw Error("Cannot create Root directory");if(l!==void 0)throw Error("Current directory does already exist.");if(!r&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(r&&i!==2&&s===void 0){const u=o.substr(o.indexOf("/",1));await this.mkdir({path:u,directory:a.directory,recursive:r})}const c=Date.now(),m={path:n,folder:o,type:"directory",size:0,ctime:c,mtime:c};await this.dbRequest("put",[m])}async rmdir(a){const{path:n,directory:r,recursive:o}=a,i=this.getPath(r,n),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const l=await this.readdir({path:n,directory:r});if(l.files.length!==0&&!o)throw Error("Folder is not empty");for(const c of l.files){const m=`${n}/${c.name}`;(await this.stat({path:m,directory:r})).type==="file"?await this.deleteFile({path:m,directory:r}):await this.rmdir({path:m,directory:r,recursive:o})}await this.dbRequest("delete",[i])}async readdir(a){const n=this.getPath(a.directory,a.path),r=await this.dbRequest("get",[n]);if(a.path!==""&&r===void 0)throw Error("Folder does not exist.");const o=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(n)]);return{files:await Promise.all(o.map(async s=>{let l=await this.dbRequest("get",[s]);return l===void 0&&(l=await this.dbRequest("get",[s+"/"])),{name:s.substring(n.length+1),type:l.type,size:l.size,ctime:l.ctime,mtime:l.mtime,uri:l.path}}))}}async getUri(a){const n=this.getPath(a.directory,a.path);let r=await this.dbRequest("get",[n]);return r===void 0&&(r=await this.dbRequest("get",[n+"/"])),{uri:(r==null?void 0:r.path)||n}}async stat(a){const n=this.getPath(a.directory,a.path);let r=await this.dbRequest("get",[n]);if(r===void 0&&(r=await this.dbRequest("get",[n+"/"])),r===void 0)throw Error("Entry does not exist.");return{name:r.path.substring(n.length+1),type:r.type,size:r.size,ctime:r.ctime,mtime:r.mtime,uri:r.path}}async rename(a){await this._copy(a,!0)}async copy(a){return this._copy(a,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(a,n=!1){let{toDirectory:r}=a;const{to:o,from:i,directory:s}=a;if(!o||!i)throw Error("Both to and from must be provided");r||(r=s);const l=this.getPath(s,i),c=this.getPath(r,o);if(l===c)return{uri:c};if(Tv(l,c))throw Error("To path cannot contain the from path");let m;try{m=await this.stat({path:o,directory:r})}catch{const h=o.split("/");h.pop();const g=h.join("/");if(h.length>0&&(await this.stat({path:g,directory:r})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(m&&m.type==="directory")throw new Error("Cannot overwrite a directory with a file");const u=await this.stat({path:i,directory:s}),f=async(p,h,g)=>{const b=this.getPath(r,p),v=await this.dbRequest("get",[b]);v.ctime=h,v.mtime=g,await this.dbRequest("put",[v])},d=u.ctime?u.ctime:Date.now();switch(u.type){case"file":{const p=await this.readFile({path:i,directory:s});n&&await this.deleteFile({path:i,directory:s});let h;!(p.data instanceof Blob)&&!this.isBase64String(p.data)&&(h=Qo.UTF8);const g=await this.writeFile({path:o,directory:r,data:p.data,encoding:h});return n&&await f(o,d,u.mtime),g}case"directory":{if(m)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:o,directory:r,recursive:!1}),n&&await f(o,d,u.mtime)}catch{}const p=(await this.readdir({path:i,directory:s})).files;for(const h of p)await this._copy({from:`${i}/${h.name}`,to:`${o}/${h.name}`,directory:s,toDirectory:r},n);n&&await this.rmdir({path:i,directory:s})}}return{uri:c}}isBase64String(a){try{return btoa(atob(a))==a}catch{return!1}}}Er._debug=!0;const Pv=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:Er},Symbol.toStringTag,{value:"Module"}));ut.attLibAttendants=W1,ut.attLibDeparts=q1,ut.attLibInstances=Y1,ut.default=uv,ut.setupLibrary=U1,Object.defineProperties(ut,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|